eb500, BOE 19.2K buad transmission
markward
Posts: 7
Question:· I'm looking to transmit data at 19.2 baud with a BS2px equipped BOE.· PC is XP SP2.· Acquistion appplication is PLX-DAQ or STAMPPLOT. Setting 8/1/N.· My best guess for the set up for this would look something like the below:
Looking for 2 things:· is this doable? and second, is the transition from 396 (px @ 9600 baud) to 188 (px @ 19.2kb) correct immediately after the command is issued?· Both StampPlot and StampDaq would be configured to communicate at 19.2kb.
Anything I'm missing?
\
Thanks! - have a great weekend.
Mark
'{$STAMP BS2px}
szData VAR BYTE(20)
'Wait for the eb500 radio to be ready
PAUSE 1000
'Connect to the remote device
SEROUT 1,396,[noparse][[/noparse]"con xx[noparse]:xx:[/noparse]xx[noparse]:xx:[/noparse]xx:xx",CR] 'insert corect address here
SERIN 0,396,[noparse][[/noparse]WAIT("ACK",CR)]
‘Wait for the connection to be established and switch into data mode.
WaitForConnection:
·· IF in5 = 0 THEN WaitForConnection
LOW 6
SERIN 0,396,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "In Command Mode",CR
'Set Baud Rate
SEROUT 1,396,[noparse][[/noparse]"set baud 19200",CR]
SERIN 0,188,[noparse][[/noparse]WAIT("ACK",CR)]
'Return to Data Mode
HIGH 6
PAUSE 300
.
.
BODY OF PROGRAM
SEROUT 1,188,[noparse]/noparse][i]vaiable list[/i
.
.
.
LOW 6
SERIN 0,84,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "In Command Mode",CR
'Disconnect from remote device
SEROUT 1,84,[noparse][[/noparse]"dis",CR]
SERIN 0,84,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "Disconnected",CR
Post Edited (markward) : 2/15/2008 8:12:02 PM GMT
Looking for 2 things:· is this doable? and second, is the transition from 396 (px @ 9600 baud) to 188 (px @ 19.2kb) correct immediately after the command is issued?· Both StampPlot and StampDaq would be configured to communicate at 19.2kb.
Anything I'm missing?
\
Thanks! - have a great weekend.
Mark
'{$STAMP BS2px}
szData VAR BYTE(20)
'Wait for the eb500 radio to be ready
PAUSE 1000
'Connect to the remote device
SEROUT 1,396,[noparse][[/noparse]"con xx[noparse]:xx:[/noparse]xx[noparse]:xx:[/noparse]xx:xx",CR] 'insert corect address here
SERIN 0,396,[noparse][[/noparse]WAIT("ACK",CR)]
‘Wait for the connection to be established and switch into data mode.
WaitForConnection:
·· IF in5 = 0 THEN WaitForConnection
LOW 6
SERIN 0,396,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "In Command Mode",CR
'Set Baud Rate
SEROUT 1,396,[noparse][[/noparse]"set baud 19200",CR]
SERIN 0,188,[noparse][[/noparse]WAIT("ACK",CR)]
'Return to Data Mode
HIGH 6
PAUSE 300
.
.
BODY OF PROGRAM
SEROUT 1,188,[noparse]/noparse][i]vaiable list[/i
.
.
.
LOW 6
SERIN 0,84,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "In Command Mode",CR
'Disconnect from remote device
SEROUT 1,84,[noparse][[/noparse]"dis",CR]
SERIN 0,84,[noparse][[/noparse]WAIT(CR,">")]
DEBUG "Disconnected",CR
Post Edited (markward) : 2/15/2008 8:12:02 PM GMT