This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UDP broadcast vs Unicast

I have a simple project that just sends a "Hello World" string UDP to a remote pier. That is all.

TCP #define tick timer set to 100ms
RTX #define tick timmer set to 100ms (all preemtive no RR)
timer_tick called every 100ms with os_wait
checked with toggling a bit and Oscope.

Timming seems to be corerct ARP #defined every 2 sec and WireShark captures ARP every 2 sec.

My project will send "Hello World" using address
192.168.1.255 BroadCast
udp_send(...) returns 1 (__TRUE)every time. Good!
Captured with WireShark premis mode.

My projcet will not send "Hello World" using address
192.168.1.144 Unicast
udp_send(...) returns 0 (__FALSE)every time. Bad!
Nothing Captured with WireShark premis mode.

I will paste my code if any body has interest in giving me a hand. This project is a small test image developed independent from a larger image. I should also say that the large image contains three TCP sockets that work. I just created this smaller project to recreate the same problem, troubleshoot problem, and make it small enough to past in to this Forum

BW

0