I’m trying to setup a direct IP connection to a CR1000 datalogger using a COM111 Modem.
For now, I can establish a PPP connection, which gives me the following results:
PPP is the default network. ppp state: dialed -> IP Opened IP: 10.166.98.78 gw: 192.168.111.111 dns: 10.4.0.240 dns: 10.4.0.230 dns: 192.168.10.110 dns: 184.108.40.206
From there, using the program below, I can get another IP (calling a web IP API), something like 92.184.XXX.XXX.
Public ip_flag As Boolean Public ip_api_return As String * 200 Public splitResult(15) As String * 20 Public logger_ip As String * 40 Dim Commands As String * 200 WebPageBegin ("default.html",Commands) 'Some basic HTTPOut instructions WebPageEnd BeginProg 'PPPOpen ip_flag = False Scan (1,Sec,3,0) If ip_flag Then HTTPGet ("http://ip-api.com/csv",ip_api_return,"") SplitStr(splitResult(), ip_api_return, ",", 15, 5) logger_ip = splitResult(14) ip_flag = False End If NextScan EndProg
However, no matter which IP I’m trying to use, I can’t connect to my datalogger. Using LoggerLink, it tries to connect without success. Using a web browser, it just tells me that the host is unreachable. I can’t ping the datalogger, even while having checked "Ping (ICMP) Enabled".
This is what I tried so far (without success):
- adding a "PPPOpen" instruction in my code;
- changing default PakBus/TCP Port in "Network Services" from 6785 to 80
I tried to configure the modem & the datalogger through Mobile Data Assistant, but for an unknown reason it cannot connect and send configuration to the modem.
Is there an additional step I need to do (like forwarding connection from modem to datalogger)? Or am I missing something else?
I guess that the SIM card you are using is a dynamic IP SIM card which is hidden behind the networks firewall. It is not possible with a dynamic SIm to connect directly to its IP address.
There are two solutions :-
1. Use the KonectPakBusRouter solution. See details here :
Using this solution, the CR1000 connects to the PakBus routing port in the cloud and when LoggerLink or LoggerNet connects to that same point in the cloud, data and normal communications between Campbell Scientific software and the datalogger can take place using the PakBus protocol.
2. Purchase a static IP SIM card from a network supplier that is either Public facing or within the supplier network and they supply you with VPN access to gain access to the IP address. In this way you can get direct access to the datalogger through the COM111 modem.