📜 ⬆️ ⬇️

As I developed the device, from idea to production. Part 2



Who has not read the first part, it can be found here , and for the time being I am publishing the second part, which contains more technical details than the first. The third and final part is also on the line, it is still being prepared, as full of details, photos of prototypes and technical information as possible. I hope that habrazhiteli like the second part no less than the first. Let's get started

A small lyrical digression about ZigBee technology.


')
ZigBee is a special case of the IEEE 802.15.4 standard.

Like much of what has become firmly established in our life, ZigBee is in fact a civilian application of military technology. Imagine that you need to establish a reliable connection between several command posts (or collect a lot of some data on the territory). A plane flies over the terrain, from which a large number of devices that are almost imperceptible to the enemy and are capable of autonomous work for a long time are scattered. These devices, scattered on the ground, imperceptibly form a data network, which is almost impossible to break. When one of the nodes is destroyed, the information is automatically transmitted along other routes. It turns out a sort of local mini-Internet.

About the visual application of technology can be found on the website of Meshnetics - the Russian company developing the ZigBee protocol stack for global brands. It is noteworthy that this company develops SW and exports it outside of Russia, but over time (after three or four years) these developments come back to us in the form of ready-made solutions. And we have already sold for other money.



Choosing a chip and software!



Naturally for a mass product you need to do cheap. Making a device on ready-made ZigBee modules is pop (simple and expensive). And doing it yourself on chips is cheap but difficult (but interesting).

All over the world, you can count the manufacturers of ZigBee chips on your fingers. And the decisive role, other things being equal, is played by the level of technical support from the manufacturer. Since I often visited various technical seminars (in Kompale, Symetron, Makrotim), I was able to evaluate various debugging tools and the level of support from different manufacturers. A worthy manufacturing company has been found.

I love Linux, freedom, and when the documentation is written in a language that is clear for Russian brains (in order to understand this, you should at least once in your life try to read the English version of the Hitachi documentation).

Young English company Jennic provided the highest level of technical support. Starting a project with its documentation is not difficult. And after I talked to the English engineers and programmers from the online technical support service, I really understood that they were really great.

Again, this company is notable for the fact that all the tools are developed on OpenSource platforms, moreover, it has developed its own microcontrollers on the free core of the OpenRisc-1000 processor!

FSF (Free Software Foundation, FSF.org) FOREVER, I thought, choose Jennic!



So. The choice of wireless communication technology has been made - we make it on a Jennic 2.4 GHz, 802.15.4, ZigBee chip .

What does a man need? Fortunately, an ordinary person does not like, does not want and does not know how to program. Anyway, we are all lazy. And this is good. Imagine if we were not too lazy to take the stairs, we would never have invented an elevator. Or a car. Or GUI. Or iPod.

It seems to me that in this case everything should work on the principles of plug & play. And this means that the keystone of the MT9000 project was to become simplicity. In particular, it was necessary to pay attention to usability, so to speak, of software and hardware. Often, a simple Chinese lamp is a mystery even for an electrical engineer. In our case, I wanted to do everything as it should, and not “as always.”

Therefore, at least 2 languages, Russian and English, and the possibility of long human messages like “Distant bathroom: leakage detected.”, But in no case idiocy of the form “d1 = 0, d2 = 1, d3 = 0, d4 = 0 ".

As it seems to me, the simplicity and humanity of the interface was realized: the software is written in such a way that to install the kit when you first turn on you need to spend 2 minutes:
- we pull out the insulators protecting batteries from sensors and base;
- insert the SIM card;
- Call from your mobile phone to the device;
- we lay out (we attach) sensors to those places which we want to control.

All set to fight (to the flood, fire, burglary) is ready.

The principle of simplicity is inherent in the design of the wireless sensor. It is a device capable of simultaneously performing all three functions:
- if you throw the sensor on the floor, it will report water leakage;
- if attached to the door with a magnet, the sensor will report opening and closing of the door (there is a velcro for fastening);
- if the temperature rises, the sensor will inform about it.

With a small sensor size, the operating time of a CR2430 lithium battery is a year!



It took six months to write and test the software together with colleagues. The understanding of the slot / channel model of interaction between entities (the idea of ​​the TrollTech QT library) greatly helped in writing software. Therefore, theoretically, any of our sensors (including those that are currently at the design stage) or an actuator can be connected to the MT9000.

In the software of the first versions of the device, there was still a bug, shameful. In Russia, 11 characters are used in mobile communications, and in general there can be from 10 to 14. For example, in Ukraine, you can use the simplified 10-digit dialing method or the full, 12-digit one for a call within the country. Due to the difference in the number of characters recruited, the device did not work on the territory of ex-USSR except Russia, plus the battery quickly discharged in some sensors. I had to withdraw all these devices from the market and correct them. But now everything is OK, the project is ready, the device can be purchased, and it seemed to me that it would be interesting for the Habras community to read about all this.

This is how the product MT9000 was made, which can already be seen on the manufacturer's website and purchased. In the continuation of the article about the project, in the third and final part of it, I will try to specify as much technical details as possible, including photographs of the device, starting with early prototypes and other things that may be of great interest to you, habra people. Waiting for the third part, you can evaluate other gadgets Master Kit .

Next in line is something new (namely, the third part of the article , already ready for use by Habrom).

UPD . At the request of colleagues from MasterKit, I publish an announcement of cooperation with the authors:

We offer representatives of the habrasoobshchestvo cooperation with those who like all sorts of gadgets, and who can describe them in such a way that the soul first folds and then turns around so that everything is clear and intelligible. There are a couple more criteria. On the conditions of cooperation with the authors can be found here .

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


All Articles