This issue recommends an open source industrial Internet of Things gateway — iotgateway.

class=”pgc-h-arrow-right” data-track=”3″> What is an industrial iot gateway
An IIoTGateway is a hardware device or software program, As a bridge between local equipment (such as PLC, scanning code gun, robot, CNC machine tool, non-standard host computer, etc.) and cloud system (such as Internet of Things platform, SCADA system, MES system, etc.), All data flowing between the device and the cloud passes through the IoT gateway.
class=”pgc-h-arrow-right”> data flow
- Communication from device to cloud ( data collection )
- Communication from cloud to device ( reverse control )
- Communication from device to device (M2M)
based on. NET6’s open source Industrial iot gateway
- benefit from. NET in the field of industrial control and medical treatment and other long-term accumulation, the Internet is indeed scattered a lot of communication related dll, source code and projects, but there is no open source project based on B/S architecture, this is the original intention of this project
- Support. NET6 open source, cross-platform, high-performance characteristics, as well as the WTM (https://github.com/dotnetcore/WTM) framework mode of low code development, set up the gateway application quickly. Telemetry and attribute uploading have been completed, and reverse control is under development

class=”pgc-h-arrow-right”>
Run across platforms
- can be either windows or linux
- can be run by the host or through docker
- can be either x86 host, arm32, arm64 embedded development board
arm gateway
docker run
Built-in multiple drivers
- The driver can be regarded as an intangible asset of the company. Currently provide Modbus complete protocol, Siemens full range of PLC, Mitsubishi QPLC, Omron PLC, ABPLC, MTConnect CNC machine tools and other drivers. Of course you also can drive the Demo realizes own drive, also can be integrated industry popular IoTClient (https://gitee.com/zhaopeiym/IoTClient), an HSL provide driver to consolidate < / li >
computed expression
- Similar to js and other scripting languages, C# can also be dynamically compiled and executed as a script. You can modify the expression at any time to calculate the data twice, not just the multiplier calculation.
MQTT service
- Built-in MQTT Se is similar to js and other scripting languages, C# can also be used as a script for dynamic compilation execution, you can modify the expression at any time to calculate the data twice, not only the multiplier calculation oh. rver, you can subscribe to data to integrate with your business system, of course, the gateway can also act as an MQTT client, pushing data to your MQTT service.
MQTT service
MQTT subscribe data
OPCUA service
- Built-in OPCUA Server, your industrial control system can be very convenient to obtain data. Note that the OPCUA-related functions in the project are only used for learning and testing. If you use OPCUA protocol, please contact the OPC Foundation for authorization. Any disputes arising therefrom have nothing to do with the project.
OPCUA service
Digital twin 3D visualization
- By using threejs to build a digital twin demo, the front end through WebSocket-based Mqtt protocol subscription data changes, real-time access to data updates, rather than through WebAPI rotation training.
3D visualization
Variable update
In line configuration
- Seamlessly integrate with line configuration projects to quickly design and deploy your visualization applications.
in line configuration
Why do you need an iot gateway
protocol conversion
In the face of devices of different ages, different manufacturers and different protocols, it will be a headache to some degree. IoT gateway will help you shield the differences of protocols and convert them into common iot protocols (such as MQTT, HTTP, etc.) to output to the platform. It gives you more time to focus on building your business on the platform.
Ensure security
All IoT devices are subject to external influence and attack. However, iot gateways add another layer between the Internet and the device itself, greatly reducing the number of devices connected to the Internet. Gateways become the first line of defense to prevent unauthorized control of iot devices by external parties.
Easy to expand
In the highly decentralized premise of the industrial site, with the increasing number of connected devices and the continuous access of devices with different protocols, these complex changes can only be managed and controlled through gateways, rather than the painful upgrade of the past.
data processing
- data preprocessing: such as magnification , offset processing, etc., which contributes to the development of edge computing, because it is a simple application of edge intelligence itself.
- data filtering: it must be overwhelming to send all the massive data generated by the device to the platform. On the one hand, transmission, processing and storage are costly; On the other hand, only part of it may need attention, such as ** changing ** output, it needs to change before uploading, it is meaningless to push the same value all the time.
- data summary and aggregation: In some scenarios, different variables of different devices or the same device need to be aggregated and calculated and sent to the platform. Some original data are not particularly valuable, and of course, this can also share part of the pressure on the platform .
- data cache: Network communication is not 100% reliable. In case of disconnection, the IoT gateway needs to temporarily store data and send it to the cloud after network recovery; In addition, is needed to store the control policy of the cloud so that the control process can be executed in time.
—END—
Open source protocol: MIT