Shop OBEX P1 Docs P2 Docs Learn Events
RF communication, XStream — Parallax Forums

RF communication, XStream

ArchiverArchiver Posts: 46,084
edited 2003-01-29 21:06 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-01-29 05:33
    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
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-29 05:39
    I'm using BS2p, and I want to acheive 19200 baud. I'm
    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
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-29 09:29
    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
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-29 21:06
    Gentlemen,

    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
Sign In or Register to comment.