1. Protocols and connections: an overview
Often the intended use case for a sensor and the quantity of sensor data sent dictate the ways in which a sensor communicates with other devices. Sensors can communicate information with host devices in a variety of ways — ranging from simply notifying an "on" or "off" state, to complex series of signals that communicate what the device is, the device's condition, various measurements, and many more. Some sensors can even communicate over local networks or the Internet, so a host controller may need to handle a multitude of different protocols.
Of the many common protocols that complex sensors can use, three stand out: Universal Asynchronous Reception and Transmission (UART), Inter-integrated Circuit (I2C), and Serial Peripheral Interface (SPI). Despite the diversity in their names, they're all serial communications protocols — that is, data is sent and received sequentially on a transmission line one bit at a time.
UART is the only one of these three that doesn't use an independent clock line to send or receive data, so it is used most commonly with simpler devices that send data at slower rates.
I2C is used for slightly more complex devices, so it requires a clock to ensure that both sides know when they're sending/receiving data, and how much of it. I2C allows for up to 128 devices to communicate with a host controller even if all connected devices are plugged into a single port.
SPI is the fastest of the three, because it combines a functionality similar to that of I2C which allows multiple devices on the same line with some hardware guarantees, which makes it the best for communicating with other microcontrollers. While it is theoretically possible to have an unlimited number of devices on the same line, it's functionally limited by what is available on the hardware.
As you can see, it may seem as simple as plugging a wire into a socket on a board, but what goes on under the hood can be very complex!
2. Connecting sensors to NEQTO-compatible devices
There are too many connections to list here, but configuring sensors to work with NEQTO-compatible controllers is simple.
3. Connecting sensors to the NEQTO Console
Components are the metaphorical representation of any sensor or sub-device connected to a NEQTO device on the NEQTO Console. They can be created on a Template's page:
NEQTO uses the LwM2M registry2 standard to uniquely identify each Component attached to a Template.
If the NEQTO Insights service is enabled, then Judges can be created as part of that Component. Judges trigger Actions when a Component sends data that activates their condition. This can be used to closely monitor sensitive equipment, quickly react to failure modes and alert the relevant authorities.
Furthermore, the received data can be viewed in a chart or graph from the NEQTO Console. The selected Resource ID determines the type of graph it is given in the NEQTO Console. This data can be downloaded for further manipulation. Graphs can be accessed from a Node's page.
4. Benefits of controlling devices with NEQTO
NEQTO devices are easily configurable and offer users a wide range of available connections through which they connect their devices. This allows users to connect their devices to NEQTO and its cloud to receive analytics data and send alerts from one convenient console. By entrusting their sensor connections to a NEQTO device and the NEQTO Console, users can eliminate the administrative load of managing data-handling servers and responding to abnormal activity.
Furthermore, NEQTO Components are available to be used with Machine Driver, which allows users to control their devices to an even greater degree. We will write more about Machine Driver in a later blog, so please keep an eye out for it!
In this blog, we discussed the simplicity of connecting devices to NEQTO. Connecting a sensor to a NEQTO-compatible device is as easy as creating a space for it in the NEQTO Console and adding a short snippet of code telling the NEQTO device to publish that data. While there are a large variety of communication standards, NEQTO makes it possible to flexibly support those standards even in running systems.