Huawei EU Business Accelration Summit -- YIQISOFT Partner
The article is a document for Huawei EU Business Accelration Submmit (CIBIT 2018).
YIQISOFT as a Huawei IoT partner, describe NB-IoT development case in CIBIT2018.
About YIQISOFT
We(YIQISOFT) have already developed several IoT applications, today I will show you a smart device base on NB-IoT technology. We cancalled: An Environment Device. As you can see, a green electric board in the box, and a mobile app. Let’s figure out how to do this.
In order to develop the iot application, we need three parts, the first one is a south device, or we called IoT device, it embedded Huawei LiteOS, and collect sensors data, send to the platform. The second one is an IoT platform, like Huawei OceanConnect, we should upload profiles and plugins to parse the business data, we can also set some rules, like alarm metric. The third is north application, it connects to platform, it should be a backend application, because when the device upload data to the platform, it will receive the data automatically.
In the past few years, we have done a lot of devices, so we have some experience to share everyone, we called development action, we could connect to iot platform in 2 minutes, just input the platform authentication info in our north application, we also develop an NB-IoT device by our evaluation board in 1 day, and verify the IoT application in 2 weeks, it‘s amazing. So we hope everyone can build their own IoT application. How to do this?
Now we can see the End-to-End IoT architecture, IoT devices send data to Platform via NB-IoT or GPRS, IoT platform hold datatemporarily, north application should connect to platform use open api, such as register device, pull data of device, and store the data inlocal database. Finally, we can show the data in web browser or mobile app,if you have business intelligence software, just useYiServer’s open api to do some virtualization. Let’s analyze step-by-step.
If we want to make an IoT device, We have to develop a hardware, it’s a pcb with in several sensors, in this case we use three, temperature, humidity, and illumination. In the hardware, we could use MCU embedded device or opencpu solution. An battery, it’soptional if you have long-term power supply. An pcb-antenna or an external antenna is mandatory. We can see a NB-IoT module in theboard, you can choose your favorite. When we done the hardware, we will go to develop software.
In our device, we use Huawei LiteOS as the base system, we create tasks, signals and interrupts, read data from sensors. And use ATcommands to send to platform.
This sample data structure is describing a BYTES stream. We encode the stream to BYTES in two sections. Base info is mandatory, itcontains Device header, battery info, and connectivity info. because time limit, I cant describe one-by-one. Sensor data section is optionaland customizable. In your case, you can add any data. Everything is OK, send it.
OceanConnect has lots of functions, Hundreds of APIs, but we have to decode the device data by ourselves. We write the device profile,develop the plugin, package them and upload to platform. If the profile and plugin work fine, we will see the JSON format data, like this,in battery section battery level is 85 percent, and so on. Until now, we could develop our north application.
In our north application YiServer , we developed user management, device management, system configuration, and so on. We bind usersand devices, when users login the application, they can get their own device info and data. We also log the user’s activity, send alarms,and do some statistics. Web front or mobile app accesses the north application by our open APIs.
Now, as you can see, we use web front as management interface, and end user interface could be a mobile app.
In our development case, we use four steps to do. Step one, preparation, choose some sensors to integrate, develop software and thendownload into the device. Step two, up to cloud, initialize the IoT platform by your account, upload profiles and plugins. Step three,Launch, north application is ready for system manager, register users, register devices. Step four, Bigdata or AI, or devops, or visualization.If you have done the four steps, I could confirm you have finished the IoT application.
The board embedded NB-IoT module and Wi-Fi module, li-ion battery, PCB antenna, several LEDs, buzzer, user key and lots of IOs. and weprovide a external temperature sensor DS18B20 for test.
Thank you!
对应的中文版本在这里:如何借助一套框架快速开发一个NB-IoT物联网应用
- 点赞
- 收藏
- 关注作者
评论(0)