Shop OBEX P1 Docs P2 Docs Learn Events
Sx/b and pink serin string — Parallax Forums

Sx/b and pink serin string

10gigbill10gigbill Posts: 79
edited 2006-02-20 03:18 in General Discussion
OK HERE'S THE DEAL
I have my SX28 hooked to my Pink module.· I would like to read a
string variable in the pink into a temp var in the sx then send it to
a local display hooked to the sx.·· The local display of strings works
fine. I just can't figure how to read a string in from the pink....
I send the pink:· serout topink,slowbaud,"!NB0Ro3"
then :· serin frompink,slowbaud,temp

where temp is var· byte(16)

this don't work??


·

Comments

  • BeanBean Posts: 8,129
    edited 2006-02-19 22:20
    Please post your complete program.
    Then we won't have to guess.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."
    ·
  • 10gigbill10gigbill Posts: 79
    edited 2006-02-20 00:08
    Quick response there Bean!
    Ok The BS-2 will let you read a serin string into a multi byte var.
    I don't see any examples of this with the sxb
    so If I send to the NetBurner :

    Serout RC.7,1200,"!NBOR03"

    The NetBurner will spit out the asci contents of it's Variable 3
    which can be any length up to 64 bytes. is that right? so I can use serin on the sx and take one character
    at a time and check for the end of line char that I put in the NB var.
    I would like to store the string from the NB in the sx.
    comments?

    Thanks Bill
  • BeanBean Posts: 8,129
    edited 2006-02-20 01:49
    Bill,
    The SXB SEROUT command can only send one character also. So "!NBOR03" will only send the "!".
    Same with SERIN it will only read one character at a time.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."
    ·
  • 10gigbill10gigbill Posts: 79
    edited 2006-02-20 02:03
    Thanks again Bean. That explains a lot. I'll add a char out sub and let ya know

    Bill
  • 10gigbill10gigbill Posts: 79
    edited 2006-02-20 03:18
    OK. Now I can read a var in the PINK do serin @ 1200 baud then send one character
    at a time to a VF display at 9600 baud and it works... Now to read it in and store the
    string as data in the sx.
    Thanks for the help.

    Bill
Sign In or Register to comment.