PUT,GET w/ serin
ratronic
Posts: 1,451
I am trying to figure out how to use put command with serin command receiving bytes coming in from garmin
oem gps or any other unit. I have figured out the·PUT command ,my problem is using it with the serin command
w/ RS232 bytes comming· in at 19.2 baud. I am using a BS2px chip. I am trying to figure out the syntax for using
the Put command withen the serin command so I can use the 126 bytes of scratch pad ram rather than 26
variable bytes of normal system variable ram. I have figured out a routine using the 26 variable bytes. I have
figured· out using MR Hebels extended serail object routine w/ the propellar chip. I have looked at the basic stamp and didn't find anything
of use. Maybe it can,t be done, so I would appreciate any help stirring me the right direction. Thanks Dave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
oem gps or any other unit. I have figured out the·PUT command ,my problem is using it with the serin command
w/ RS232 bytes comming· in at 19.2 baud. I am using a BS2px chip. I am trying to figure out the syntax for using
the Put command withen the serin command so I can use the 126 bytes of scratch pad ram rather than 26
variable bytes of normal system variable ram. I have figured out a routine using the 26 variable bytes. I have
figured· out using MR Hebels extended serail object routine w/ the propellar chip. I have looked at the basic stamp and didn't find anything
of use. Maybe it can,t be done, so I would appreciate any help stirring me the right direction. Thanks Dave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D RatFix it if ain't broke said...
(replace this text with what was said)
Comments
delve into that , do you know of examples you could leed me to using the spstr command. Thanks Dave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat
can't seem to get the syntax right, I am fairly newbee, I can't just get it right. Attached is a simple raw
program that I am playing with - can someone show me the right syntax for using the spstr in the serin command?? Thanks Dave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat
There is no backslash int the SPSTR modifier.
SERIN gpsin,gpsbd,3000,no_data,[noparse][[/noparse]WAIT("GPRMC,"),SPSTR 25]
not SERIN gpsin,gpsbd,3000,no_data,[noparse][[/noparse]WAIT("GPRMC,"),SPSTR \25]
Also as Mike said, you need a NEXT to go with your FOR, and with 25 bytes the index will go from 0 to 24. If it branches to "no_data" (which I presume was in your program but not listed), that means something else is wrong!
When you have a very short program snippet like that or a question on one syntax issue, it is okay to include the code in your post.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
else can use this info. I was able to recieve a full sentence using scratch pad ram. I am working on recieving
another sentence right after word using variable ram. Thanks again, these forums are great when you get stuck.
Dave.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat