Shop OBEX P1 Docs P2 Docs Learn Events
Serial pass through propeller help — Parallax Forums

Serial pass through propeller help

libadmanlibadman Posts: 36
edited 2013-12-07 06:29 in General Discussion
Hi I have been using the basic stamp for some years now and I have had the propeller for about the last year and a half but not have done much with it I want to now,I have a BS2 application, I will like to use SMS to control it I'm going to use Andruino GPRS module along with the Andruino uno when I'm trying to do is send serial information from the andruino to the propeller and then to the basic stamp I do understand everything that I will like to do can be done with the propeller and the GPRS module itself, anyway I guess my question is can someone help me with code for the propeller to receive serial data on one pin at a certain baud rate and send it out on another port/pin at another baudrate almost simultaneously, I'm ok with 1-2 second lags, I do not understand just yet how to use the propeller and I know it's ba to just ask for code but can some one help me out?
I want to received data on one pin and send the same exact data out on another pin at a different baud with the possibility of bidirectional communication please please please and thank you I'm mike I'm not new here I got help with my bs2 but I forgot my login info

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-06 20:10
    This topic was raised a few days ago. You can see some of the idea in the first link under "Similar Threads" below.

    I wrote a simple bridge program to sure with a Propeller and SayIt module. The bridge program is attached to post #15 of this thread.

    If the GPRS module is likely to send null characters, you'll want to change:
    result := Com[0].rxcheck
        if result <> -1 and result <> 0
    

    To:
    result := Com[0].rxcheck
        if result <> -1
    

    You'll want to do the same for "Com[1]" as well.

    Make sure and take a look at the recent serial bridge thread.
  • libadmanlibadman Posts: 36
    edited 2013-12-07 06:29
    Thank you so much that is exactly what I was looking for it helped out a lot, after everything was said and done I realize that I could lower the baud rate of my GPRS module and communicate directly with the basic stamp, my new issue is when I plug the GPRS module to the basic stamp on pin zero and attempt to do a serin command I get garbage, When I send serial strings from the basic stamp to GPRS module everything is fine and works, i've implemented several variations of the serin command and for some reason it's just not working. Right now the GPRS module is connected to the basic stamp the basic step is connected to the computer, I Serin data and attempt to debug it without any luck, I even went from a baud of 19200 to 2400 and same thing no luck, my second issue is I need the basic stamp to receive data from GPRS about 25 to 50 characters then extract a string and send a serial command according to the string from GPRS . I'm sorry I'm all Over the place with this I been working on this one main issue for about 2 weeks now
Sign In or Register to comment.