Here's what I need to accomplish:
I have a linux pc and an BlackWidow (with a LCD display and a few buttons) on the same subnet. I have it set up such that I can send some periodic messages to the BW to be displayed on the LCD, I'm doing this with udp packets sent from the linux pc using netcat. This works fine, however I also need to be able to send udp packet to the linux machine when buttons are pressed on the BW to make the linux pc do some things. This is where I've run into a problem. Basically, I need to have a listener on port X on the linux pc waiting for button press commands from the BW, while I'm doing that I'm not able to send the periodic messages from Linux->BW since I will have to send the packet from source port X as well and I get a port-in-use error on the linux pc.
One way to solve the problem is for me to listen on port X on the linux machine while I use port Y for sending the periodic packets to the BW. This does not appear to be possible on the BW, since the rport gets fixed to a single value (either by explicitly setting it when I do uip_udp_new() or implicitly based on the src port value of the first incoming packet).
First question is: is there a way to deal with 2 udp connections at the same time on the BW (both unidirectional).
2nd question: If this is not possible, can you think of any other way to accomplish what I need.
Thanks
