RF communication, XStream
Archiver
Posts: 46,084
Where can I find a code sample for communication of the Stamp and
XStream radio?
I wrote this to test out connection, but it doesn't work (the
receiving XStream unit is an XStream w/ adapter board).
Start:
serout 1, 19200, [noparse][[/noparse]"Hello", CR]
debug "XYZ", CR
sleep 1
goto Start
The DI pin of the radio is connected to the P1 of the stamp.
Thanks,
Nick
--- In basicstamps@yahoogroups.com, "Robert Ussery" <uavscience@f...>
wrote:
> > I was wondering if it's possible to send RF messages to a basic
stamp
> > directly from a computer.
>
> Well, although I haven't used them for this purpose the Maxstream
9XStream
> and 24XStream radios are capable of this. The 24X can send data over
> hundreds of feet with reasonable antennas, while the 9X is capable
of up to
> 10 miles with reasonable antennas. I find these radios extremely
easy to use
> with the Stamps, and they provide a high-speed, very reliable data
link.
>
> Robert
XStream radio?
I wrote this to test out connection, but it doesn't work (the
receiving XStream unit is an XStream w/ adapter board).
Start:
serout 1, 19200, [noparse][[/noparse]"Hello", CR]
debug "XYZ", CR
sleep 1
goto Start
The DI pin of the radio is connected to the P1 of the stamp.
Thanks,
Nick
--- In basicstamps@yahoogroups.com, "Robert Ussery" <uavscience@f...>
wrote:
> > I was wondering if it's possible to send RF messages to a basic
stamp
> > directly from a computer.
>
> Well, although I haven't used them for this purpose the Maxstream
9XStream
> and 24XStream radios are capable of this. The 24X can send data over
> hundreds of feet with reasonable antennas, while the 9X is capable
of up to
> 10 miles with reasonable antennas. I find these radios extremely
easy to use
> with the Stamps, and they provide a high-speed, very reliable data
link.
>
> Robert
Comments
> I wrote this to test out connection, but it doesn't work (the
> receiving XStream unit is an XStream w/ adapter board).
>
> Start:
> serout 1, 19200, [noparse][[/noparse]"Hello", CR]
> debug "XYZ", CR
> sleep 1
> goto Start
I don't know what version of the Stamp you're using, but with a BS2SX,
here's the code I use:
Serout 1, 240, [noparse][[/noparse]"Hello", 13]
With the BS2SX, this outputs the data at 9600 baud, 8 bit, no parity, true
logic. What version of the XStream's are you using? I'm using a couple of
9600 baud 9XStream's.
- Robert
using 9XStream; it's default baud rate is 19200. How
can I calculate the second argument for the SEROUT
from the baud rate?
Thanks,
Nick
--- Robert Ussery <uavscience@f...> wrote:
> From: <kender_a@y...>
> > I wrote this to test out connection, but it
> doesn't work (the
> > receiving XStream unit is an XStream w/ adapter
> board).
> >
> > Start:
> > serout 1, 19200, [noparse][[/noparse]"Hello", CR]
> > debug "XYZ", CR
> > sleep 1
> > goto Start
>
> I don't know what version of the Stamp you're using,
> but with a BS2SX,
> here's the code I use:
>
> Serout 1, 240, [noparse][[/noparse]"Hello", 13]
>
> With the BS2SX, this outputs the data at 9600 baud,
> 8 bit, no parity, true
> logic. What version of the XStream's are you using?
> I'm using a couple of
> 9600 baud 9XStream's.
>
> - Robert
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
= 110 for 19200bps
The formula is on page 296 of the stamp manual 2.0
Note that this is a theoretical number, may be the stamp can handle
serial com at that speed may be not (I think it can send at 19200bps
but may be unable to recevie reliably at that speed).
hope this helps
Adrian
Thanks, I had adjusted the baud rate, and made the
XStream transmision.
Nick
--- "Adrian Schneider
<adrian.schneider@t...>"
<adrian.schneider@t...> wrote:
> INT(2500000 / baudrate) – 20
> = 110 for 19200bps
>
> The formula is on page 296 of the stamp manual 2.0
>
> Note that this is a theoretical number, may be the
> stamp can handle
> serial com at that speed may be not (I think it can
> send at 19200bps
> but may be unable to recevie reliably at that
> speed).
>
> hope this helps
> Adrian
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com