Hi all.
I am using a CR1000 with a NL115 and a modem.
When deployed the system does not use the ethernet port of the NL115 but goes online via the GPRS-modem.
But while developing i really like the NL115 for debugging as i often have the RS232 port of the logger in use.
Now my question is, how does the logger know "which interface has to be used/queried" if there are multiple "ways out".
For example:
The logger has received a IP via the NL115 (DHCP)
Also the logger has received a IP via the the modem (pppOpen).
Now when i drop a TCPOpen() in code and get a valid socket, how does the logger decide for which interface the socket is valid?
Same question for the Route() function. Any way to distinguish the relevant interface?
thanks in advance.
A brief answer. You can use RS232 and both IP interfaces at the same time.
For incoming messages the logger keeps track of which interface the message came from. For outgoing messages, see the IPRoute command for more information. This was introduced relatively recently.
BTW: Make sure though that you do not try to have two versions of Loggernet or nay device with the same Pakbus address try to talk to the logger - the Pakbus addresses have to be unique.
When deployed the system does not use the ethernet port of the NL115 but goes online via the GPRS-modem.
Since you are not using the Ethernet port when deployed you might also look at the "EthernetPower" instruction. This would be for power consumption considerations.
* Last updated by: Sam on 1/17/2010 @ 8:18 PM *
hi,
thanks a lot.
Those instructions are quite useful.