Over the past 15 years the team at M2M Connectivity & M2M One have coached, consulted, celebrated and at times commiserated with thousands of hopeful developers trying to make their mark on the Machine to Machine/Internet of Things landscape.
A big question we get asked is “How do I keep my device online as long as possible?” While it’s almost impossible to provide 100 percent uptime for any wireless device, we’ve provided a few tips below to help you get closer.
- Expect outages - Despite best intentions, every single mobile operator in the world still has to have periods where they restart or change a network element either planned or otherwise.
- ‘Mobile’ Networks - Most people aren’t in the same spot using their phone or iPad for 24 hours a day so they don’t notice network changes or intricacies, but M2M devices are a bit different. A data-logger measuring the water level of a reservoir isn’t going anywhere, so if the network goes down even for a moment, its communication is going to be interrupted.
- Is coverage available? - In countries like Australia you can have vast regions of unpopulated land, so at some point you’re going to run out of cellular coverage. You need to think of how to cope.
How can you preempt a lack of cellular coverage?
- Store and forward – Make sure you have enough memory on your hardware to store at least two days of data, that way if you experience an outage or your device moves out of cellular coverage temporarily, nothing is lost.
- Build a smarter modem – This is particularly important for devices that don’t move between cell towers. Previously we advised customers building M2M devices that they should factor in an automatic reboots to any stationary M2M device at minimum once a day. This is a great tried-and-tested solution and if you need something that communicates 24 hours a day, an unnecessary restart may be impractical.
A majority of modem manufacturers include a “watchdog” feature in their hardware that can be set to ping an IP address at certain intervals, this can either be a public known IP like Google or your own network. If the device is unable to ping the watchdog address, then it will automatically power cycle the modem without you having to do anything.
For older devices without a watchdog, we still recommend an automatic reboot at least once a day, and having some kind of failover, like being able to restart the device with an SMS.
Why is restarting the modem important? Most raw M2M hardware is reasonably dumb. If it can see a network and can communicate with that network, it assumes everything is ok. This, however, is not the case. Have you ever been in a situation where you can make calls or send an SMS but can’t surf the Internet on your phone? Normally, if you put it in and out of airplane mode it fixes the issue. The same principals apply here. The modem assumes everything is normal, but really it can’t make a data/IP connection. By restarting the modem you force it to create a brand new connection which 99 percent of the time brings voice, SMS & data back.
Can you feel my heart (beat)? – For those of you who are building and deploying devices using public Internet APNs (those commonly shared with mobile phones and tablets), we highly recommend putting in a “heartbeat” to remind the network your device is still there. Public networks are highly aggressive when it comes to closing sessions in order to maximize capacity and reduce congestion.
Unfortunately networks around the world have different timeouts, ranging from minutes to hours to days. We can’t prescribe the perfect solution, but as most heartbeats send a minimum amount of data (around 1 byte per beat) you can usually be reasonably safe with every few minutes.
How critical is your data? – Most of the time store and forward will be ok; when a device is back in cellular coverage, your data is sitting there waiting for you. If you absolutely need 24 hour uptime, you need some kind of failover like cellular became standard failover for ethernet or wifi.
Some devices can get away with utilizing multiple SIM cards or connecting to multiple carriers via a roaming SIM. This is a great option for areas of high cellular coverage with multiple operators. Remote locations tend to have a single operator or none at all. This is where utilizing satellite technology becomes critical.
A lot of people cringe when I start talking about satellite communications. Their minds instantly go back to the days of $10,000 phone bills and hardware that cost and weighed as much as a car. This really isn’t the case anymore. Using satellite as a failover for cellular is fast becoming commonplace in OH&S solutions in the remote operations, utilities and mining sectors.
Hopefully these tips have inspired you to build some extra smarts or redundancy into your next or current M2M project.
Did you find this tip useful? Do you have some questions on the Machine-to-Machine and Internet of Things industry we can answer for you? Let us know on Twitter @M2MOneAU, on LinkedIn at M2M One or visit our website at www.m2mone.com.au.
Edited by
Ken Briodagh