pwhiteis Posted February 19, 2013 Share Posted February 19, 2013 Hello, I am writing an application that communicates with the brick using UDP datagrams. The application sends a command and waits for a reply, but always times out. When I setup the socket to use TCP I always get the reply. Is the UDP protocol always enabled (assuming the IP address is setup correctly), or is this protocol mutually exclusive from TCP? I have also tried switching between TCP and UDP using the 100 Base T setup utility, but the utility always seems to revert back to TCP. Is the protocol selection stored in EEPROM? I cannot find anything in the Brick Controller Users Manual which speaks to protocol selection. Thanks, -Pete- Link to comment Share on other sites More sharing options...
steve.milici Posted February 20, 2013 Share Posted February 20, 2013 UDP protocol must be enabled with the “ETHUSBConfigure.EXE” ("Configure USB 2.0" or "Configure Ethernet 100 BaseT" in the common directory) program though a USB connection – there is a radio button to enable this. Note that you must hold in the "BOOT" switch during the enable process untill the application is closed. Link to comment Share on other sites More sharing options...
pwhiteis Posted February 20, 2013 Author Share Posted February 20, 2013 Thanks .. that did the trick. However, the PMAC executive won't talk with the brick any longer. Does it auto-detect the protocol or do I need to tell it which one I'm using? UDP protocol must be enabled with the “ETHUSBConfigure.EXE” ("Configure USB 2.0" or "Configure Ethernet 100 BaseT" in the common directory) program though a USB connection – there is a radio button to enable this. Note that you must hold in the "BOOT" switch during the enable process untill the application is closed. Link to comment Share on other sites More sharing options...
steve.milici Posted February 20, 2013 Share Posted February 20, 2013 Our Ethernet driver does not support UDP mode. You must manually switch each time you wish to change there is no auto-detect. You can however communicate over USB while in UDP mode. Link to comment Share on other sites More sharing options...
steve.milici Posted February 20, 2013 Share Posted February 20, 2013 One other item of note: the Ethernet and USB share the same host port. This means you want to avoid simultaneous communication. Our driver tries to make the USB thread somewhat atomic but large responses on either port will interfere with the other. Link to comment Share on other sites More sharing options...
pwhiteis Posted February 27, 2013 Author Share Posted February 27, 2013 Thanks Steve. Under "General Setup" in PEWin, I do not see a way to communicate USB. It only seems to allow one to insert a device that communicates over Ethernet or standard serial port. -Pete- Our Ethernet driver does not support UDP mode. You must manually switch each time you wish to change there is no auto-detect. You can however communicate over USB while in UDP mode. Link to comment Share on other sites More sharing options...
steve.milici Posted February 27, 2013 Share Posted February 27, 2013 The Windows OS requires the USB cable to be plugged in to install the driver. Once this is done a USB0 device will be available to insert. Link to comment Share on other sites More sharing options...
Recommended Posts