Shop OBEX P1 Docs P2 Docs Learn Events
assign a device nnumber for Parallax 433 MHz RF Transmitter and Recive — Parallax Forums

assign a device nnumber for Parallax 433 MHz RF Transmitter and Recive

chris joneschris jones Posts: 391
edited 2009-09-29 22:48 in BASIC Stamp
Hello

i have 3 basic stamp boards i need a way to send data from my recever and transmiter and bother devices know what device sent that message.Let me know if this is clear as mud

Comments

  • dev/nulldev/null Posts: 381
    edited 2009-09-29 22:12
    smile.gif mud it is.

    Just include a number in the first string of all your data. If you send HELLO, instead send 1HELLO or 2HELLO.

    At receiver: SERIN ..., [noparse][[/noparse]dev, mydata]

    dev being a Byte variable.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy

    Post Edited (dev/null) : 9/29/2009 10:17:14 PM GMT
  • chris joneschris jones Posts: 391
    edited 2009-09-29 22:27
    is there a way to send it befor the emssage

    i have a vb program that i want to say what set of RF's are connected

    exmaple

    my vb app will report device 1 and device 2 online then it sends the message
  • dev/nulldev/null Posts: 381
    edited 2009-09-29 22:39
    Add a SEROUT line before your send line, and send SEROUT ...., "#1" or "#2".

    Have your VB program check for the # sign and get the number...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
  • chris joneschris jones Posts: 391
    edited 2009-09-29 22:48
    i am sorry did i say that the 3 board will be connected to the computer to allow the vb program to intercept data. can you show me a small exmaple of what my master board code should look like and my slave boards.

    MASTER
    device 1 connected
    device 2 connected
    Accept the ID's

    SLAVES
    Send out ID Device 1
    Send out ID device 2
Sign In or Register to comment.