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.
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
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
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.
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
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
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
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 Savage
Parallax Tech Support