I have four datalogger transmitting data per 10 min. to a PC in a far location with wireless IPPort. Each datalogger is connected to a modem moxa G2105I via RS-232 port with connection PPP. So each datalogger is online. Each datalogger are in a different far location. The conection between each datalogger and the PC is wireless.
The PC has a IP public and a public port.
As each datalogger is online. They has a different Public IP that is changing when the datalogger restart.
Is posible connect two datalogger each other? wireless?.
If they are connecting to the same PakbusTcpServer(configured in Setup) of Loggernet, two dataloggers can send messages to each other. Both dataloggers need open connections at the same time.
When you say, both dataloggers need open connections at the same time. You mean like this (for example):
In one datalogger use for example: SendFile()
and another one use: GetFile()
And they open at the same time. Dont they?
PakBus is an addressable and routable protocol that allows for the exchange between two nodes. If the devices cannot connect directly to each other, they can exchange messages through one or more PakBus routers.
Your dataloggers and LoggerNet are each PakBus nodes. By default, LoggerNet will serve as a PakBus router.
You will first want to make sure that you have LoggerNet configured to accept connections from the dataloggers. To do so, add a PakBusTcpServer to your LoggerNet network setup. Then add your four dataloggers under that PakBusTcpServer. You will want to configure your PakBusTcpServer with PakBus Port Always Open enabled and with a PakBus TCP Password set. You will want to configure the dataloggers added to the PakBusTcpServer with the correct PakBus Address, security code, and encryption key.
Next you will want to configure your dataloggers to connect back to LoggerNet over their PPP/IP connection. They will each need a unique PakBus address and the correct security code, encryption key, and PakBus TCP password settings. They will also need the connection back to LoggerNet specified in the PakBus/TCP Clients Address and Port number settings.
With the dataloggers each connecting back to the shared LoggerNet PakBusTcpServer, they will be able to exchange information through LoggerNet which is acting as a router.
Whe you say "They will also need the connection back to LoggerNet specified in the PakBus/TCP Clients Address and Port number settings". You mean in each datalogger in its Device Configuration Utility in the tab "Network Services" right?. The option "Packbus/TCP Client Conections" I think.
But there you have to put Addres and port of the Loggernet (it is the router). In this case I have to put "4094:6785"?. Or the IP and port public of the server where is working the loggernet?.
Yes, you need to put in the public IP address and IP port of the server.