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.

NL100


Bo Feb 5, 2009 01:27 PM

Hello.

I find the NL100 manual a little to short.

I have configured the NL100 and only enabled the RS232 for TCP serial server, 9600 baud and port 8080. And connected it to my CR1000 via a standard RS232 cable.

How do I send and receive something to/from the computer at the other end of the cross over Ethernet cable? The manual does not have any code examples. Do I use TCPOpen or SerialOpen? I have tried several things but I can't get it to work. Can anybody send me a code example?

Bo


jtrauntvein Feb 5, 2009 08:42 PM

The answer to your question is going to depend upon what exactly you are trying to do with the connection to the NL100. Assuming that you are going to be trying to use LoggerNet, PC400, or PC200, you need to create the devices for communicating with the logger in those packages. PC400 and PC200 use a wizard that allows you to specify the type of datalogger (a CR1000) as well as the type of link to use. In this case, you would use an "IP Port" connection and you would provide the following on the "Internet IP Address" line in the wizard (assuming the NL100 IP address is 192.168.4.30):

192.168.4.30:8080

LoggerNet provides a similar wizard in its ezsetup client.


Bo Feb 17, 2009 08:54 AM

Thank you for the answer jtrauntvein.

No, I am not communicating from a Windows PC with LoggerNet or similar but trying to request and save data from a device where the only way of communicating is TCP. So I need to be able to send special TCP commands from my CR1000 and for that I am using a NL100 but I am not sure what commands I should use to open/enabling the port and send TCP commands.

I just came home from my winter vacation. That's why it took me so long to reply.

//Bo


jtrauntvein Feb 17, 2009 12:27 PM

With that understanding of what you are trying to do, you will need to keep the following things in mind:

- With the CR1000 connected to the NL100 in this way, you will not be exercising the TCP/IP stack on the CR1000 at all. Because of this, you will need to use SerialOpen() combined with SerialOut() instructions in your CRBasic program.

- The NL100 will need to be configured as a serial server on the port that is connected to the CR1000. In this configuration, it cannot be configured to make an outgoing TCP client connection. Rather, your "other device" will have to make a connection to the NL100 using the TCP serial server port that you have specified in the settings for the NL100.

- If you want to take advantage of the TCP/IP stack in the CR1000, you can do so by installing an NL115 or an NL120 on the expansion port of the CR1000. In this configuration, you would be able to make calls to TCPOpen() in your CRBasic program to connect to a TCP server on your other device.

Regards,

Jon Trauntvein

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