Serial Data from stamp(cont 2)
Archiver
Posts: 46,084
iS that going to Come thru the serial Port as a ASCII String ? also
Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JOhIcTAlGxSHfkImaWxCIubiqKGep9H0yzrplLy6VysNgGUJoHvw48fYRJzSxTLmlPCIi6Pt-YLNUmM]subrian@m...[/url
Sent: Thursday, December 18, 2003 11:14 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp(2)
Do I use the same Serial Cable I program with, > to get the data with VB
from my PC ? ? with the program below. ?
Do you care about baud rate? If your PC program will work with the
Stamp's DEBUG output (9600 baud) then you can use this as-is, otherwise
change it to SEROUT (on pin 16 if you want to use the programming port)
for the baud you need.
In your example the only fields that changed were the index and the
third so this little demo does that (using RANDOM to change field 3).
' {$STAMP BS2}
' $PBASIC 2.5}
idx VAR Word
field3 VAR Word
Setup:
idx = 1
Main:
DO
RANDOM field3
field3 = field3 // 10 + 90
DEBUG DEC4 idx, ",+032,12.1,-", DEC3 field3, ",-095,04.3,1,014,015",
CR
idx = idx + 1
PAUSE 2000
LOOP
END
Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JOhIcTAlGxSHfkImaWxCIubiqKGep9H0yzrplLy6VysNgGUJoHvw48fYRJzSxTLmlPCIi6Pt-YLNUmM]subrian@m...[/url
Sent: Thursday, December 18, 2003 8:27 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Serial Data from stamp
I Need the basic stamp the Input into my Serial port on my PC the
following String, 0001,+032,12.1,-093,-095,04.3,1,014,015
{Then a Pause For 2 Seconds}
0003,+032,12.1,-092,-091,04.3,1,014,015
{Then a Pause For 2 Seconds}
0004,+032,12.1,-098,-097,04.3,1,014,015
0005,+032,12.1,-095,-099,04.3,1,014,015
0006,+032,12.1,-091,-092,04.3,1,014,015
0007,+032,12.1,-099,-090,04.3,1,014,015
.
. ect ect
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JOhIcTAlGxSHfkImaWxCIubiqKGep9H0yzrplLy6VysNgGUJoHvw48fYRJzSxTLmlPCIi6Pt-YLNUmM]subrian@m...[/url
Sent: Thursday, December 18, 2003 11:14 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Serial Data from stamp(2)
Do I use the same Serial Cable I program with, > to get the data with VB
from my PC ? ? with the program below. ?
Do you care about baud rate? If your PC program will work with the
Stamp's DEBUG output (9600 baud) then you can use this as-is, otherwise
change it to SEROUT (on pin 16 if you want to use the programming port)
for the baud you need.
In your example the only fields that changed were the index and the
third so this little demo does that (using RANDOM to change field 3).
' {$STAMP BS2}
' $PBASIC 2.5}
idx VAR Word
field3 VAR Word
Setup:
idx = 1
Main:
DO
RANDOM field3
field3 = field3 // 10 + 90
DEBUG DEC4 idx, ",+032,12.1,-", DEC3 field3, ",-095,04.3,1,014,015",
CR
idx = idx + 1
PAUSE 2000
LOOP
END
Original Message
From: Brian E Boothe [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JOhIcTAlGxSHfkImaWxCIubiqKGep9H0yzrplLy6VysNgGUJoHvw48fYRJzSxTLmlPCIi6Pt-YLNUmM]subrian@m...[/url
Sent: Thursday, December 18, 2003 8:27 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Serial Data from stamp
I Need the basic stamp the Input into my Serial port on my PC the
following String, 0001,+032,12.1,-093,-095,04.3,1,014,015
{Then a Pause For 2 Seconds}
0003,+032,12.1,-092,-091,04.3,1,014,015
{Then a Pause For 2 Seconds}
0004,+032,12.1,-098,-097,04.3,1,014,015
0005,+032,12.1,-095,-099,04.3,1,014,015
0006,+032,12.1,-091,-092,04.3,1,014,015
0007,+032,12.1,-099,-090,04.3,1,014,015
.
. ect ect
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/