What do you do if you have two dataloggers installed really close to each other and you only want to pay the bill for running one cellular modem? How do you get data from both dataloggers using a single modem? How do you get your dataloggers to read the values from each other’s data tables? The short answer to these questions is to use PakBus networking. In this article, I’ll share with you how PakBus networking works and its many possibilities—all in the context of collecting data from two dataloggers with a single cellular modem.
PakBus is the proprietary communications protocol for Campbell Scientific dataloggers. The name derives from the fact that it is a packetized data bus. All data is transferred in packets that include destination and source addresses. It is optimized by design to work well on low bandwidth connections (such as with radios).
Here are three key capabilities that the PakBus communications protocol adds to our dataloggers:
The easiest way to design a PakBus network is to use Network Planner. (Network Planner has been included in LoggerNet since version 4.0.) This tool was specifically designed to help you set up dataloggers in PakBus networks so that they can communicate with each other and the LoggerNet server.
Network Planner allows the graphical layout of devices and the specification of the links between the devices. It can then use that information to generate settings for all the devices and provide the means to program those settings into the devices and also to configure LoggerNet.
Tip: To access Network Planner, open LoggerNet, navigate to the Tools menu, and click the Network Planner link.
Recommended for You: If you’re not familiar with Network Planner, watch the “LoggerNet Software | Network Planner” video.
In this example, I’m going to add LoggerNet software, a CR1000 datalogger, and a CR6 datalogger to the network. I connected LoggerNet to the CR1000 on ComRS232, and I connected the CR1000 Com1 to the CR6 ComU1.
If you look at the settings that Network Planner provides for the dataloggers, these are the key settings:
One thing that Network Planner doesn’t do for you is explain the physical wiring. You need to wire the transmit terminals to the receive terminals on the other datalogger as shown in the image below:
After the settings from Network Planner have been applied to LoggerNet and both dataloggers, you are able to communicate to the CR6 through the CR1000. You may send programs, collect data, and even change your settings.
At the beginning of this article, I mentioned using one cell modem for two dataloggers. The only change needed is to add a cell modem to the CR1000 and use that in place of the RS-232 connection to LoggerNet. You will still be able to collect data from the CR6.
You can also add a radio onto the CR6 for communication to a dozen CR206X dataloggers. It is possible to add more dataloggers to the network until you reach the throughput limits of your communication links.
CRBasic instructions even exist that allow one of your dataloggers to collect data from another. You can find them listed in the PakBus category of instructions in the CRBasic Editor.
As you can see, there are many possibilities when you use PakBus networking. It might seem a bit complicated at first, but a tool such as Network Planner makes it simple. Putting PakBus networking to work for you can really simplify your job. Don’t forget to also add a Device Activity in Network Planner to enable Scheduled Collection. Scheduled Collection can automatically poll data from any station in the PakBus network. We created the PakBus communications protocol for our dataloggers because we know your measurements matter.
Recommended for You: If you'd like to learn more about Network Planner, review the "Tips and Tricks: Get Active!" newsletter article.
If you have any questions or comments about PakBus networking, post them below.