📜 ⬆️ ⬇️

How to develop and produce IoT devices in Russia

We have looked with great curiosity at the R & D department of our long-time partners - the Strig company, which itself develops and manufactures base stations in Russia, IoT end devices, transmission protocols and software. Most of our questions related to the organization of the development process and the difficulties they encountered.



Anyone who is in the subject of IoT, probably heard about the company Swift . It is a manufacturer of wireless devices class LPWAN (Low-Power Wide-Area Network) for the Internet of things. They develop telemetry systems for housing and utilities, security, smart cities and agriculture. Moreover, they create a full range of devices, including various meters (electricity, gas, water), base stations, statistics collection servers and cloud data access interfaces, and all production is in Russia.

Their main development is the radio protocol XNB (Extended Narrowband). Thanks to the work in the ultra-narrow band, XNB allows you to transmit a signal in the city up to 10 km. It is adapted for transmitting signals up to 25 mW at a frequency of 868.8 MHz (does not require permits and licenses).
')
A feature of the protocol is high penetrating power. Building structures are not a serious obstacle, and transmission is possible from basements and through thick walls, where GSM does not catch it.

All data is transmitted in encrypted form, the following encryption algorithms are supported: AES-128, XTEA-256, GOST R34.12-2015.

What exactly do they produce


The main list of devices looks like this: single-phase / three-phase electricity meters, water meters, gas meters, heat meters, radio modems, basic LPWAN radio stations, DevKIT XNB. It is noteworthy in the meters that in the conditions of urban development they can send a signal up to a distance of 10 km, and from one built-in battery with a capacity of 3600 mAh work 10 years.

Outwardly, these devices look like this:


The water meter SVK 15-3-2 with the radio modem "STRIZH" DU15 110 mm

A3 meter with built-in LPWAN radio modem


Radio modem “SWIFT” integrated with leakage sensor




Baseline LPWAN radio station "STRIZH"

Here are some of its characteristics:


Even in their arsenal there is a kit for developers.


DevKIT XNB

The DevKIT is based on an XNB modem based on the Semiconductor ax8052f143 chip with an 8051 architecture and rich radio peripherals . The board has two antennas: one, transmitting, operates at a frequency of 868.8 MHz, the second, receiving, at a frequency of 446 MHz.

When developing an IoT device, there is no need to worry about the radio communication protocol or encryption, the modem will do everything by itself, it only needs to transmit data on the UART and the command to send. When receiving data, the modem will also decrypt the data and transmit it to the microcontroller for processing.

For more serious tasks, it is possible to use the SDK of the Semiconductor ax8052f143 chip with the XNB libraries. This eliminates the need for an external control microcontroller and reduces the power consumption of the device as a whole. True, it will have to put more effort into developing the firmware.

Where does the development start


The first option is when a manufacturer of water or electricity meters calls for the addition of radio transmission functions to its products. In this case, each company is developing / refining its part, which speeds up the process as a whole. The finished “smart” device comes out in a month, while one programmer and one circuit engineer are working, and most of the time the device is tested on the stand.

The second option - the device is being developed to the requirements of the electricity supplier or the water supply company. With such orders, the company often must participate in the tender, and from the point of view of finance, this is the most costly option. But in case of victory, all investments will pay off. For example, according to this scheme, Swift worked with Mosenergosbyt.

Process itself


The first stage is the wording of the technical specifications. For IoT Strizh devices, it always includes requirements such as long (about 10 years) battery life, data transmission distance in a city of 10 km, in open space - 50 km, type of communication (one-way or two-way).

Then begins the development of schemes. Experts come up with a component base, determine the location of the elements inside the case and the placement of antennas, choose the case material, which will allow for good radio characteristics in a particular case.



Domestic items suppliers bring without prior payment, which greatly accelerates production. Radio chips Semiconductor ax8052f143 are purchased directly from the manufacturer in large quantities, which allows you to get the lowest possible price.

Printed circuit boards are produced in Zelenograd by Rezonit, which any amateur knows, perhaps.

Several devices are constantly under development.



After the release of the payment programmers are taken to work. The firmware for the device is usually written by one person. After that, the device is installed on the stand and thoroughly tested, since subsequently it will have to work without failures for several years. Signal transmission power cannot exceed 25 mW. For control, every engineer has an oscilloscope and tools for analyzing the radio. If within a month the device works without failures, development is considered complete.



Since each device is unique, many new problems have to be solved during development. Most of Strizh’s developers are concerned with this list of tasks:


Water or gas meters can only send a signal (uplink) to the base station and, accordingly, are equipped with only one antenna at 868.8 MHz. Electricity meters, in addition to sending readings, must also accept changes in the tariff schedule. Receives a signal (downlink) from the base station electric meter at a frequency of 446 MHz. Antennas should be positioned in such a way as not to interfere with each other's work, and one should not forget about the dimensions of the device.


To transmit a radio signal to a maximum range, the antenna must be properly designed and located inside the case. Testing of antennas occurs in real conditions. For example, an electric meter is installed in a metal cabinet and sends data with the door closed. In this case, attention is primarily paid to the standing wave ratio (CWS) of the antenna and, to a lesser extent, to the radiation pattern.


The channel bandwidth of the transmitting device is only 100 Hz. Narrowband signal and high power per bit ensure a good energy potential of the communication channel and high noise immunity, but at the same time it becomes difficult to get to the correct frequency when downlink. Therefore, with the help of complex software algorithms, it is necessary to predict frequency drift.


In order not to degrade the performance, but at the same time save on components, we constantly have to invent know-how. For example, the same power supply for an electric meter from 220 V to 12 V should be compact, with good output characteristics. At the same time cost no more than $ 2.


The base LPWAN station is a computer with Linux Debian Jessie OS in a sealed shockproof case with an SDR receiver and transmitter and a large antenna. It can be operated anywhere in Russia, so the requirements for the working temperature are very serious: from -40 to +60 ° C.

The BS is tested in a special freezer, as well as in the southern cities of our Homeland, where in summer the temperature in the sun can reach 50 ° C. In all cases, the system should be stable.




Usually, the cloud load is uniform, but if, for example, the base station of the cottage community is unable to transfer data from the meters to the STRIZh.Cloud service due to a broken Internet cable, it begins to accumulate them and, after the Internet connection is restored, it can send more million messages, which is essentially a DoS attack.




In addition to the basic support functions, engineers have the task of tracking anomalous activity, or vice versa, not subscriber equipment activity. If the device has not been contacted for a long time, then a specialist is required to check out the cause. The meter may have been covered with a metal plate that does not transmit radio signals.

In case the owners intervene in the operation of the device (for example, stopping the counter with a magnet), the devices are equipped with magnetic field sensors and a number of other sensors.





Here is a list of concerns today for Russian IoT developers, who, by the way, are ready to share their experience. Three Swift specialists will speak at our January InoThings ++ 2018 conference. Andrei Tsislav, Technical Director, will have a report on the topic “Development of IoT devices - something that is not written in the books”, the head of the Internet development Sergey Aksenov will cover the topic “Anti-patterns of developing software systems for the Internet of things”, and Stanislav Elizarov, the head of the network department infrastructure, will make the report "Almost reliable solutions."

For those interested, we have a small bonus - a code for a 15 percent discount on tickets (HabraIoT2018), which must be entered during registration.

No, no, not like that. We decided to make the first conference for the developers of the Internet-things completely free . Register and come!

Source: https://habr.com/ru/post/346658/


All Articles