Anatomy of an IoT public safety application

 

Connecting state and local government leaders

How a technology team at a SmartAmerica Challenge built an Internet of Things prototype to create a sensor network for automating public housing safety alerts.

Second of two parts. Read part one.

At a recent SmartAmerica Challenge, a group of government and industry technologists sat down to what they thought was a discussion on IT infrastructure. But they were soon brainstorming about a much more palpable goal: how to build a sensor system designed to transmit safety alerts in public housing complexes.

The group, which eventually expanded to include 10 public sector and industry organizations, put together a prototype for the Safe Community Alert Network (SCALE), an open-software based network for safety monitoring and an early instance of the Internet of Things designed for public services challenges.  

Making the system work required development and integration on three major fronts: applications, sensors and networks, according to its architects.  The team built the back end of SCALE primarily with open-source software. 

The software

At the heart of the system is Data In Motion Exchange (DIME), software developed by John Cohn, an IBM fellow and chief scientist for computer-aided design, and Charles Fracchia, a colleague from MIT, to serve as a data hub. 

“There are things like Data.gov, but all of that data is data at rest,” said Cohn.  “What we’re trying to support with DIME is the same thing, but with data in motion.”

The type of data in motion that DIME is designed to handle is sensor data – data from motion detectors, smoke detectors and other sensors.  DIME relies on MQTT – an open-source, publish-subscribe messaging protocol originally developed by IBM for satellite telemetry – for directing data from sensors to the data hub. Using MQTT, a programmer can name the data and attach a data payload.  The data is then encoded in JSON, the standard mobile data format, for transmission to clients.

According to Cohn, one of the best things about MQTT is that since it is open source, anyone can program it to access and analyze the data. “Anyone can come in and do that, long after you deploy the software,” he said.  “I don’t have to change the code every time I change a feature or add a new device.”

For the purposes of the SCALE project, the team created two programs for data handling.  One team generated a Python script for analyzing the data, which was capable of addressing queries such as, “Is there smoke in apartment 3G? Or did grandma fall?” said Cohn.  “The analytics piece looks at data in the data hub to make that determination. And if there is an event, it publishes it back into the data hub.”

At that point, a JavaScript dashboard takes over, employing rules generated by users to act on the data and generate alerts to designated recipients.  The team turned to Twilio to handle the routing of such messages.

The sensors

Prototype sensor boxes that were placed in apartments, developed primarily by a team at the University of California at Irvine, are only a little smaller than a toaster.  But they carry a lot of hardware, including processing power from a Raspberry Pi board and a SheevaPlug computer and three network interfaces: a Wi-Fi dongle, a SigFox radio adapter and an Ethernet interface. 

The boxes pack five separate sensors: an explosive gas sensor, a light sensor, a passive infrared sensor, an accelerometer and a temperature sensor.

“The sensor box isn’t transmitting location or personal information,” said Dan Hoffman, chief innovation officer of Montgomery County. “It is just transmitting its registration number and the event being sent. It’s only when it is paired up in the cloud service that it actually links that bit of data with who should be notified and any rules around notification.”

The network

As deployed for the SmartAmerica Challenge, sensor data could be routed to servers via either a mesh network or SigFox’s ultra-narrow-band network.

“Mesh networks are for some of the more data-rich types of things that we are trying to send,” said Hoffman.  “We can use a mesh network to gather data and information within the building. But it is still dependent on electricity and Internet connectivity.  So we were trying to build a hybrid where the building itself has a mesh network array of sensors that all connect to a gateway or ultra-narrow-band hub.”

Future iterations of SCALE, for example, may use body sensors to collect physiological information such as EKG data or glucose levels.  “That kind of stuff is not really great for ultra-narrow-band, but you could aggregate a lot of that data and send back just a bare minimum over the ultra-narrow band,” Hoffman said.

There are several advantages to designing SCALE to use an ultra-narrow-band network.  “It’s very cheap,” noted Luke D’Arcy, director of SigFox’s U.S. operations. “And the power consumption is much lower than broadband.”

In fact, said D’Arcy, power requirements of a ultra-narrow-band transmitter are so small that a smoke detector equipped with a transmitter and a couple of AA batteries can last for years. And it has a much bigger range than Wi-Fi.  According to D’Arcy, a SigFox ultra-narrow-band base station can cover a 10-mile range, even in urban areas. “It’s not unusual for devices to connect to our base stations even up to 50 or 60 miles away,” he added. 

The downside of ultra-narrow-band?  D’Arcy is quick to acknowledge that it can’t carry a lot of data.  “It’s narrow band,” he said.  “The devices can send or receive short messages of 12 bytes long.” That’s sufficient for relaying sensor data but not, he noted, for streaming movies. 

Read part one: SCALE brings Internet of Things to public housing

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.