Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Connect serial devices to ethernet with NL201 and send serial commands from the datalogger


grmc Jul 24, 2017 03:15 PM

Hello, i thinking in use NL201 to try to connect some serial devices ina network and if possible send commands from a data logger to the serial devices, well I want to use NL201 interface to connect some RS232 devices to a network, but im doubt about some things I want to do, maybe some one already do somthing similar:

 1.- If I want to connect an RS232 device (other than a datalogger) to a Ethernet network I see 2 options,

Option 1: Use a NL201 at device location and another NL201 at computer location connected to the PC, I think this can work im ride?

Option2: Use only one NL201 at device location, but don’t use the second NL201 at computer location do you know a way to emulate a com port and redirect to the ip direction of NL201 at device location? You think is possible or have experience doing something like this?

2.- Now if I connect the RS232 device to a network using NL201, there is a way that the datalogger (CR1000 or CR6) can send and receive serial data over the Ethernet link to control this devices, under this scenario the datalogger will not be connected to serial devices direct from a com port but will send and receive serial data over TCPIP connection.  

Thank you in advance for any help

Regards


GaryTRoberts Jul 27, 2017 03:20 AM

What you are proposing is possible.  The logger could open a connection to the NL201 connected serial sensor using TCPOpen then send serial commands to the sensor as if it was connected using the socket handle instead of a comport.  

A computer could do the same thing with a sensor connected to a NL201 as well.  It would have to be programmed to do so or use a comport to IP software adapter.  You would not need a NL201 at the computer location.

#2 and #1 option 1 are both doable.


grmc Jul 28, 2017 08:25 PM

Hello Gary,

Thank you very much for you answer, i will try TCPOpen to send the serial comands as you mention. 

now that i know its possible will go deep in the crbasic to program this and test.

Best Regards

Log in or register to post/reply in the forum.