Hellox operating system and China Mobile Onenet IoT platform successfully completed docking

Source: Internet
Author: User

Hellox successfully docking with China Mobile IoT platform

Through the efforts of Hellox project team colleagues, especially Tywin (@ Hurricane) efforts, Hellox the latest version V1.78 has successfully completed docking with China Mobile Onenet (open.iot.10086.cn) IoT platform. This marks a significant step forward for the Hellox operating system to applications in the IoT domain.

The Onenet platform is a cloud platform dedicated to Internet of things devices by China Mobile's IoT company, and any terminal can be interfaced with onenet via the web as long as it follows the Onenet access protocol. At present, the Onenet platform supports access methods such as restful and EDP, and Hellox uses EDP to access onenet.

Unlike traditional embedded operating system access methods, access code exists as a standalone application and is not compiled with the operating system kernel. This is similar to the general operating system, where the access code is compiled into a standalone application (EXE file) that is stored on an external storage medium. If you want to access the cloud platform, you only need to run this platform-specific program. After the operation is complete, it will be unloaded dynamically. This approach ensures that the platform code is independent of the operating system kernel while facilitating access to more cloud platforms. Incomplete statistics, the current business of the Internet of Things cloud platform, has reached more than 160. How to effectively integrate these different cloud platforms and solve the "tight coupling" problem is a challenge in the internet of things. The Hellox operating system tries to solve this problem by dynamically loading and unloading.

Here are some of the capture images of the access process. First, on the terminal running Hellox (here is the virtual machine), run the Platform Access application (./run.bat is a batch file that runs the Cloud Platform Access app):


At this point, the client code of the cloud platform will establish a network connection with the Onenet platform and then use JSON to deliver the data to cloud platform. , we upload the Hellox's local NIC's message to the cloud platform every two seconds.

With Onenet's mobile client, you can view the data uploaded by the device. The following illustration shows the number of Hellox received on the datagram (every two seconds, the Onenet iphone client needs to be added):


It can be seen that in most cases, the number of bytes received every 2 seconds is around 400 bytes. But there will be occasional emergencies, such as sometimes reaching 110,000 or so bytes. At this time the network should have burst broadcast traffic.

Interested friends, can actually experience a bit. The approximate steps are as follows:

1. Download the latest code (GITHUB.COM/HELLOX-PROJECT/HELLOX_OS) to GitHub. Code in the/bin directory, there is a created virtual hard disk file (Vdisk.rar), decompression can be directly guided VirtualBox virtual machine;

2. Create and configure the VirtualBox virtual machine and complete the network settings (refer to the following article to complete Network setup: http://blog.csdn.net/hellochina15/article/details/48013881). Then use Vdisk to boot the virtual machine;

3. After the boot is complete, under the character command line, run the command "./run.bat" (Note that there is also a point in front of the backslash) to load the Onenet platform code and start sending data to onenet (network statistics only, no personal information involved);

4. At this time, go to the Onenet platform to see the corresponding device situation, you should be able to see the latest updated data. Links are as follows: http://open.iot.10086.cn/device/detail?pid=20423&device_id=151403

If you want to try to modify the Onenet access code, you can use VisualStudio (2010 or more) to open the project under/IOTCLOUD/CMCC/EDP for code modification.

Subsequent Hellox will interface with more cloud platforms, gradually enriching the ecosystem at the cloud platform level. For the convenience of developers and end-users, in the source code of Hellox, a Iotcloud directory is created to hold the client code of the cloud platform successfully docking. All the latest codes have been officially posted on GitHub and welcome interested friends to download the experiment.

Finally, welcome to the IoT operating system development and application of friends to join us, let us work together in the era of the digital nerve structure.

QQ Group: 38467832, in order to provide a better communication environment for members of the group, refuse spam ads, please specify the purpose of accession.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Hellox operating system and China Mobile Onenet IoT platform successfully completed docking

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.