The ultimate solution for communication interconnection layer in IoT construction

Source: Internet
Author: User

1. Self-Introduction

I have been working for 10 years and have been in the industrial field. In the first line of work carried out, under the mine, after the project, with the team, have done software research and development, out of the product, after the project group management, pre-sales and market contacts, during the period of pure software company also worked for nearly two years, familiar with software development process and management. Though I have not achieved much, I have experienced a lot.

The internet "industry" in full swing development, once also wanted to go to do "Internet", but hesitated too long, has not raised too much interest. With the precipitation and accumulation of the year, there is a framework for semi-finished products, in the case of dull work, not hesitate to devote to the development of the IoT framework and product-based process. Others say that the era of Internet of Things is coming, if this is true, do not know whether their choice is good, or life good.

This work is purely personal hobbies, spare time in the dry, usually 21 o'clock to 23 O ' Night is their second working time. These two years have been actively engaged in the new framework development, improve performance, unified interface, cross-platform ... and other aspects of the work. Also made their own base hardware products, smart gateways.

Some people ask, what do you do for a regular job? In the industry section of a group of companies responsible for big data construction related work. In the absence of big data, cloud service concepts, have done remote e-service-related projects. To tell the truth, it is difficult for the traditional industry. But as a business, either die or die in a change, it is entirely their choice.

2. occupy the brain and lose its feet

Don't know when, IoT, big data, cloud services, cloud computing ... And so on a group of concepts popular. Companies are vying for high ground, big data, cloud services, a variety of standards ... and doing all of these things makes sense. But I was thinking, everyone to occupy the brain, the foot is not important?! Obviously not, it should be equally important. Huawei Equipment Department, ZTE Instrument ... For the foundation, it is also a headache, it is the foundation of the building, especially in the industrial field. So, I firmly believe that there is a lot of market application space for our framework, the direct value of creation is another matter.

3. practical difficulties in the matter of the Union

The premise of difficulty understanding is the cognition of the real world, some traditional manufacturing industry do not have the basic conditions of things, not to mention the Internet of things, intelligent manufacturing, intelligent factory, but because of backwardness, there is a broad market space. Even if there is the foundation of things, the conditions are relatively backward, the base is relatively thin, facing four diversity: equipment diversity, Protocol diversity, communication mechanism diversity, data diversity. This is the problem we are facing, how big is the problem? In order to survive, businesses say they can do it. However, the problem of structural diversity should be solved by means of structure or framework, which is the precondition of guaranteeing all aspects.

4. efficiency and cost

Contact a Shanghai company, there is someone responsible for the gateway layer of data collection, there is someone responsible for the service (cloud) end of the docking, not too stable, often problems. To solve the details of the problem, can not use the details of the way of thinking to solve, but to have a broader thinking, structured thinking can be thorough, better solve the problem. Can the gateway layer, the server side, use the same set of frameworks? And can the frames be seamlessly docked? If it can be achieved, the application of the same framework, the development efficiency will be increased, the cost of employing and the cost of time will be reduced. A good organizational structure, a good framework to solve the overall efficiency and cost, otherwise there is no value.

5. Reverse Thinking

Manufacturers are in the cloud Platform, protocol standards ..., of course, they have the capital and strength to do so, the software with their, hardware with their, for them, to raise so many people, but the cost is the lowest. They adhere to the first-class enterprise standards, using this mode of thinking to integrate resources, competition is more than the occupation of resources. We seriously consider, for the traditional enterprises, the original survival is very difficult, and real estate, the Internet to invest in the inability to compare, they have the ability to completely unify the replacement of it?! Participated in the Shanghai Industrial Exposition, also conducted a market research, is simply joking. We will seriously consider, with the framework of things to solve the diversity of equipment, protocol diversity, communication mechanism diversity, data diversity issues, in the construction of the Internet of things and integrated systems is also a means of integrating resources?! First, solve the problem of enterprise interconnection monitoring, and then solve the problem of enterprise standardization, so is it a mode of thinking?! Yes, we'll do it first!

5. Smart Gateway, running Windows ten IOT and Ubuntu Mate

Gateway is an important link in the construction of Internet of things and integration system, realizes the initial integration (acquisition) of data, and then forwards the data, and forms a cascade network system with clear system level. The gateway to the market is divided into two categories: pure hardware interface conversion, the operating system of the minicomputer. Of course, there are hardware based on the deployment of their own software framework, but rare. On our smart gateway can be implemented with our Serversuperio IoT framework, which enables seamless integration of software and hardware, device-driven interfaces unified, can develop a set of drives running on different embedded operating systems, Windows IoT and Ubuntu Mate, More flexibility is available for system construction options.

Hardware configuration of the Smart gateway:

L Quad Core 1.2GHz Broadcom BCM2837 64-bit CPU.

L 1GB RAM.

L onboard BCM43143 wifi and Bluetooth low function consumption (BLE).

L 40 pin expansion Gpio.

L 4 USB ports.

L full inch hdmi, and turn VGA interface.

L Micro SD card port for running the operating system and the media that stores the data.

L upgrade switching micro-USB power supply up to 2.5A.

L can be equipped with the operating system: Ubuntu Mate, Windows IOT.

Smart Gateway Physical Machine Photos:

6.SuperIO to Serversuperio the development process and the realization problem of solving

Superio&serversuperio Earliest prototype in 2010 began to develop, at that time mainly to solve the company's internal hardware products, many agreements, the previous software often out of the question, high maintenance costs, to engage in all aspects of integration system is very tired. After two or three years of development, did solve the company's internal product system problems, all hardware products can be mounted to the platform to run. After leaving the company, feel the platform from the code, application and other aspects there is a great development space, 2014 gradually after the production of the Superio (SIO) this platform.

But Sio also only solves the problem of device-driven (many protocols) plug-in mounts, but is limited to running on a Windows-series operating system, with no problems with data collection on general PC and IPC computers. But in terms of operational efficiency there is still a lot of room for improvement, the device-driven interface can be further standardized (for all levels can be applied), cross-platform operation must be overcome, the device (driver) between the information interaction and control must be implemented, the framework at different levels of application cascade and control must be implemented, multi-service instance application, etc. A range of frameworks and technical issues can be further refined. From the framework of the overall IoT construction, starting from the beginning of 2015, the new generation of IoT framework was re-developed based on Sio's core idea, that is, now the Serversuperio (Ssio) framework, after more than two years of development, installed on the basis of Intelligent Gateway, Can form a comprehensive solution.

7. A set of device drivers, support a variety of IO communication

Whether it is ZigBee, WiFi, wired network, or RS485, RS232, RS422, in short, mainly divided into two kinds of hardware interface: Network port and serial port. As for the OPC protocol, it can be implemented indirectly by the formation of the Ssio service interface, forming part of the service plug-in. If not structured design IO, network port and serial port independent existence, with the product more and more, is very headache of one thing, also not necessarily run stable. For Serversuperio framework, it is very convenient to develop a set of device drivers which can interact with the hardware device (sensor) through the network port or serial port respectively. Some people think that communication is very simple, in fact, if the many problems are taken into account, then it will become very complex. There are also a lot of pure network communication framework, business scenarios, communication mechanisms, the Pure network communication framework may not be fully applicable to the field environment. Based on years of work experience, the communication mechanism and application scenarios for Ssio are added, see: Serial | Internet of Things Framework Serversuperio Tutorial 1.4 Communication mode mechanism.

As follows:

8. a set of device-driven, unified interface, multi-platform mount Operation

For the Serversuperio framework of the device driver interface to standardize the design, in addition to the Serversuperio framework itself for the cross-platform operation of the porting work, so a development device driver, can be mounted on a variety of platforms to run. Supported platforms include: Windows XP SP3 and above, OS (including server), Windows IoT embedded operating system, Ubuntu&ubuntu mate operating system.

As follows:

9. cascade of IoT communications

If the data and control of the acquisition hardware can only be regarded as the local system, it is necessary to form a systematic and networked framework in the construction of the Internet of things and integrated systems. So Serversuperio in the collection of data in the scope of information and control, but also to form a serversuperio with the previous level of data interaction, and receive the next level of Serversuperio Interactive data, Then Serversuperio formed a cascade of relations, the main completion of two major responsibilities: data cascade upload and reverse control, and then the device itself Cascade control.

The structure is as follows:

Communication and control between devices

Acquisition and control of a single device, in the actual application is not enough, but also to be able to transfer information and control equipment and equipment, and return to the sending control source device confirmation information. For example: In the case of monitoring the serious alarm of the flowmeter, whether the valve should be adjusted or controlled at the source of the liquid. There are a lot of similar examples.

In the latest version of Serversuperio 3.1 (not yet released), the device is enabled to send information and control to another device, whether the device immediately returns a confirmation message, or autonomously asynchronously decides to return a confirmation message. Added the ability to return acknowledgment information asynchronously, because the control command is only sent to another device driver, the device driver will further interact with the actual hardware device, and after the successful hardware interaction, and then return the confirmation information to the originating device driver.

As follows:

interaction and control with the cloud

Serversuperio provides a service-driven interface that, in addition to the capabilities of the device-driven class, can exist in a service-driven manner, such as the convergence model calculation of data collected by multiple devices, interaction with other platforms or upper layers, and so on, only as an example of interacting with the server. The interaction and control with the device driver is different, the device driver actively transmits the collected data information to the service driver, the service drive interacts with the cloud, and after receiving the cloud instruction, it initiates the transmitting information or controls the device driver, and the device drives and returns the confirmation information to the service driver.

As follows:

planning for the future

From the big environment, there must be a wide range of applications, from the company, the future in the industrial base of the United level, will certainly be used, from the personal interests, but also willing to continue to do this work, of course, in addition to formal work.

From Serversuperio itself, the 3.1 release (unpublished) optimizes the code and adds the ability to interactively return acknowledgement information asynchronously. Later, the verification mechanism of data security scheme is added to ensure the security of data interaction and control in the industrial field. In addition, from the architecture, based on the Serversuperio framework, to increase the ability to build the cloud, such as: data distributed persistence and so on. From the embedded application for the speaking, to increase the remote configurable capabilities, and so on.

Concluding remarks

In today's society, long-term adherence to do one thing is not easy, to make product-level and coordination system solution is not easy. Slowly go down, hoping that the opportunity will favor those who are practical and pragmatic. Inf!!!

1.[serial] "C # communication (Serial and network) framework design and implementation"

2.[Open source]c# cross-platform IoT communication Framework Serversuperio (Ssio) Introduction

2. Superio (SIO) and open-source cross-platform IoT framework Serversuperio (SSIO) building a system's overall solution

3.c# Technology Roadmap for industrial IoT and Integrated system solutions (data source, data acquisition, upload and receive, ActiveMQ, Mongodb, WEBAPI, mobile app)

5.ServerSuperIO Open Source Address: Https://github.com/wxzz/ServerSuperIO

Internet of Things & Integration technology (. NET) QQ group :54256083

Serial Tutorials:

1.4 Modes of communication mechanism
2. Description of configuration parameters for the service instance
3. Introduction to Device drivers
4. Develop a set of device drivers while supporting serial and network communication
5. Polling communication mode development and precautions
6. Concurrency communication mode Development and considerations
7. Self-control communication mode development and matters needing attention
8. Single Case communication mode development and precautions
9. Protocol filter to solve a packet of multi-hair, sticky packets, redundant data
10. Two ways to continuously stream large chunks of data (e.g. files)
11. Implement device (drive) and device (drive) Interaction and cascade control.
12. Development of service interfaces and bi-directional interaction with the cloud
13. Custom view display interface development to meet different display requirements
14. Description of the compounding tool, as well as device drivers, view drivers, and service instance mounts

The ultimate solution for communication interconnection layer in IoT construction

Related Article

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.