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!
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.