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.

Input to Program through TC/IP


gk Mar 5, 2014 07:27 PM

I am looking to install a sensor interfaced to a CR1000, that will require a manual trigger for it to be turned on. The site is remote , but the logger is connected to a Raven and loggernet. I was wondering if I could use a TCPOPEN command to develop the code to give the program input ( 0 or 1) to turn on or off the sensor. While I understand that I can get the logger to look for input through the TCP/IP port through a SerianIn command, and parse the information, I was wondering what is needed on the loggernet/computer side to provide the input. Could anyone share an example ?

Thanks!


aps Mar 6, 2014 10:48 AM

You can send any text you like using SerialOut (or SerialOutblock) via a TCP Socket. There are some limited notes about this in the help for those instructions. Essentially though it is the same as using a serial port.

Alternatively you could consider using HTTPPut or HTTPPost instructions if the code in the device you are connecting to runs some form of http server code, or you find that easier to implement.

If using GPRS connections please beware, as detailed in other posts, that some networks have limitations about the sockets you can use and/or restrictions on GPRS to GPRS device connections.

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