Shop OBEX P1 Docs P2 Docs Learn Events
Pink module — Parallax Forums

Pink module

Dave ADave A Posts: 31
edited 2007-10-04 17:20 in BASIC Stamp
I need help sending and receiving UDP code using the Pink Module.· Can some one help me.· Attached are samples of my send and receive code with no luck.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-01 15:18
    First problem I see without analyzing the code is that you have the wrong Baud Rate constant if your comment lines are correct. Comment lines indicate a BS2P40 yet the code is written for a BS2.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-01 15:30
    Second problem I see is that your TX code is sending a verbose message such as that intended for a human while the RX code is looking for a single byte, neither of which will match the first character you're sending.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Dave ADave A Posts: 31
    edited 2007-10-02 09:30
    Chris, I was just using your example for transmit.· I just want to send a single byte.· If my receive code is correct, can you show an example of what my transmit code should look like.· I have tried all combinations and had no luck.
  • Dave ADave A Posts: 31
    edited 2007-10-02 09:33
    Chris see attached code.· Does this look better?· It however still does not work.
    Dave
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-02 14:35
    Dave,

    Looking at your receive code it seems you’re not even checking to see if the data has arrived (UDP Flag). You’re just reading whatever is there in a loop. I’ll tell you what…I had been meaning to create an example for PINK-to-PINK UDP transmission so I will try to do that this week and post it on our website for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-04 17:20
    Just an update that I am going to build the example on my home network so that it is more compatible with what customers will most likely use for network setup. This means I will post it on Monday. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.