10-14-2020 02:48 AM
Dear community,
I need to write a program that communicates between my pc and a remote device that supports udp (as referred to in its manual). It is possible to establish a connection to this device via any hyperterminal programm (using telnet or "raw protocol") by inputting the IP adress of the device and its port. Attached you'll find my communication vi (LabVIEW 2017). I am able to establish a connection via tcp (the code in the bottom side of the panel) and this works fine. But i can not seem to be able to establish the same connection via udp (the code in the upper side of the panel). I get a timeout error in udp read. Where is the problem?
Thanks in advance!
10-14-2020 02:59 AM
Hi labviewette,
@labviewette wrote:
I need to write a program that communicates between my pc and a remote device that supports udp (as referred to in its manual). It is possible to establish a connection to this device via any hyperterminal programm (using telnet or "raw protocol") by inputting the IP adress of the device and its port.
I am able to establish a connection via tcp (the code in the bottom side of the panel) and this works fine. But i can not seem to be able to establish the same connection via udp
When the communication uses the Telnet protocol then it certainly needs a TCP connection.
Read Wikipedia on Telnet…
10-14-2020 04:13 AM
Thank you for your quick reply GerdW.
Yes, a telnet connection uses tcp but does that mean that the device can not support both protocols?
Since the manual does not provide information on that it seems that I am going to need to contact the manufacturer.
10-14-2020 04:27 AM
Hi labviewette,
@labviewette wrote:
Yes, a telnet connection uses tcp but does that mean that the device can not support both protocols?
Telnet is TCP-based. When this (still unnamed) device supports "telnet over UDP" then it operates outside the standard behaviour.
@labviewette wrote:
Since the manual does not provide information on that it seems that I am going to need to contact the manufacturer.
As you didn't name that device nor the manufacturer (and also not attached a manual) you need to contact the manufacturer on your own…