Incontrol Posted July 29, 2011 Share Posted July 29, 2011 Hi could anyone point me in the direction of an example of UDP driver my colleague is trying to control a driver for this lighting interface that uses UDP , help really appreciated Richard Link to comment Share on other sites More sharing options...
alanchow Posted August 1, 2011 Share Posted August 1, 2011 The driverworks SDK has everything you need to get started with development including basic examples, API, getting started guide, etc. I recommend that he read through those documents to get started. Link to comment Share on other sites More sharing options...
Incontrol Posted August 4, 2011 Author Share Posted August 4, 2011 Hi Alan,Thank you for your reply. I am replying on behalf of Richard, the creator of this thread.Actually the lighting device that I am trying to control does the following:- It listens on UDP port, say, 1234- It accepts UDP datagrams with a formatted data string, interprets the data string and forwards the command to an internal shared bus and performs the respective action.- The Acknowledgment data string is generated from the internal shared bus and packed into UDP datagram. The UDP datagram is then broadcasted on the network on the same port i.e. 1234As for now, I am able to send UDP packets to the target device and get the required action done. But the driver is unable to receive ack packets that are being broadcasted on the network destined to port 1234. Implying that I am able to do one-way communication.The required behavior of the driver is that it should listen to broadcast UDP packets on a specific port, say, 1234.I'll really appreciate your assistance.Arsalan Link to comment Share on other sites More sharing options...
RyanE Posted August 4, 2011 Share Posted August 4, 2011 Unfortunately, I don't believe the driver support of UDP will work that way.If the device being controlled sent back the UDP feedback on the *same port* that the driver originated the UDP on (a high-valued port), it would work properly, but I don't believe DriverWorks drivers can receive UDP on an arbitrary (or broadcast) port.I could be wrong, but I don't think so in this case.RyanE Link to comment Share on other sites More sharing options...
mensinck Posted November 12, 2011 Share Posted November 12, 2011 I am facing the same problem with communication over UDP.I am able to send packets, but do not receive any on the same port the driver originated the UDP.Please let me know if you found any solution for your problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.