A cross-platform IoT gateway based on .net6. Through visual configuration, you can easily connect to any of your devices and systems (such as PLC, barcode scanner, CNC, database, serial device, host computer, OPC Server, OPC UA Server, Mqtt Server, etc.), so as to interact with Thingsboard, IoTSharp or Your own IoT platform for two-way data communication. Provide a simple driver development interface; of course, edge computing can also be performed.
Go to file
2022-03-13 23:02:12 +08:00
.vs/IoTGateway 首页添加设备状态和设备变量状态图表展示 2022-03-13 23:01:11 +08:00
drivers/net6.0 升级至 .net6 2022-01-24 23:10:56 +08:00
IoTGateway 添加3d展示源文件,js文件过多压缩上传,使用时原路径解压即可 2022-03-13 23:02:12 +08:00
IoTGateway.DataAccess 升级至 .net6 2022-01-24 23:10:56 +08:00
IoTGateway.Model 升级至 .net6 2022-01-24 23:10:56 +08:00
IoTGateway.ViewModel 升级至 .net6 2022-01-24 23:10:56 +08:00
Plugins 首页添加设备状态和设备变量状态图表展示 2022-03-13 23:01:11 +08:00
WalkingTec.Mvvm 升级至 .net6 2022-01-24 23:10:56 +08:00
.dockerignore 初步可用版本 2021-12-12 14:55:48 +08:00
.gitattributes Update .gitattributes 2021-12-13 21:51:31 +08:00
.gitignore 初步可用版本 2021-12-12 14:55:48 +08:00
appsettings.json 1.集成MqttServer,可查看当前客户端列表 2.增加表达式 2021-12-17 15:51:25 +08:00
Dockerfile 修改.net6 dockerfile 2022-01-24 23:19:10 +08:00
iotgateway.db 内置虚拟modbus设备,端口503 2022-02-16 23:10:52 +08:00
IoTGateway.sln 升级至 .net6 2022-01-24 23:10:56 +08:00
LICENSE Initial commit 2021-12-08 21:48:45 +08:00
Quickstarts.ReferenceServer.Config.xml 添加opcua服务端和opc客户端驱动 2021-12-24 14:22:45 +08:00
README.md Update README.md 2022-01-24 23:39:15 +08:00
webscada-project.json 升级至 .net6 2022-01-24 23:10:56 +08:00

iotgateway

github地址:iotgateway https://github.com/iioter/iotgateway

gitee地址:iotgateway https://gitee.com/iioter/iotgateway

基于.net6的跨平台物联网网关。通过可视化配置轻松的连接到你的任何设备和系统(如PLC、扫码枪、CNC、数据库、串口设备、上位机、OPC Server、OPC UA Server、Mqtt Server等),从而与 Thingsboard、IoTSharp或您自己的物联网平台进行双向数据通讯。提供简单的驱动开发接口当然也可以进行边缘计算。

  • 抛砖引玉,共同进步
  • 基于.net6的开源物联网网关
  • 可视化的配置方式实现数据采集(使用wtm开发)
  • 物联网网关mqtt+opcua输出支持thingsboard、iotsharp等
  • 内置Mqtt服务端,支持websocket进行标准mqtt输出。本地端口1888 admin 000000
  • 内置OPCUA服务端,数据实时更新。匿名本地访问:opc.tcp://localhost:62541/Quickstarts/ReferenceServer
  • 内置Modbus驱动全协议支持
  • 内置西门子PLC驱动
  • 内置三菱PLC驱动
  • 内置欧姆龙PLC驱动
  • 内置AB(罗克韦尔)PLC驱动
  • 内置OPCUA客户端驱动
  • 增加计算表达式
  • 支持驱动二次开发短期内会提供三菱、fanuc通讯
  • 数据通过mqtt推送支持thingsboard
  • 目前只支持遥测数据上传,后续支持属性的双向通信
  • 简单集成了web组态项目

免责声明

生产环境使用请做好评估;

项目中OPCUA相关功能仅用作学习及测试如使用OPCUA协议请联系OPC基金会进行授权产生一切纠纷与本项目无关

体验

  1. 在线体验iotgateway后台:http://42.193.160.84:518/
  2. 用户名 admin 密码 000000
  3. 内置Modbustcp模拟设备 ip 172.17.0.1 port 16051 不要修改,否则连不上
  4. 其中modbus地址0-1为固定值2-9为随机值10-19为0
  5. 外网访问测试modbus设备请连接:42.193.160.84:16051进行标准modbus协议读写
  6. 外网访问测试mqtt服务器42.193.160.84:1888 admin 000000
  7. 外网访问测试opcua服务opc.tcp://42.193.160.84:62541/Quickstarts/ReferenceServer 匿名访问
  8. 想要通过mqtt接收数据请连接mqttserver:42.193.160.84,1888 admin 000000订阅topic: v1/gateway/telemetry easteregg iotgateway 795d56161e78c770a2ca4d32f8e6b73 iotgateway image image

运行

windows主机运行

  1. 下载Releasev0.2.0发布版本
  2. 下载.net6 sdk或runtime
  3. 安装.net6
  4. 解压release包运行IoTGateway.exe
  5. 访问iotgateway后台:http://localhost:518

linux/amd64,win/amd64 docker运行(官方仓)

  1. docker run -d -p 518:518 -p 1888:1888 -p 62541:62541 --name iotgateway --restart always 15261671110/iotgateway

linux/amd64,win/amd64 docker运行(阿里仓)

  1. docker pull registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway
  2. docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway 15261671110/iotgateway
  3. docker run -d -p 518:518 -p 1888:1888 -p 62541:62541 --name iotgateway --restart always 15261671110/iotgateway

linux/arm docker运行(官方仓)

  1. docker run -d -p 518:518 -p 1888:1888 -p 62541:62541 --name iotgateway --restart always 15261671110/iotgateway:arm

linux/arm docker运行(阿里仓)

  1. docker pull registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm
  2. docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm 15261671110/iotgateway
  3. docker run -d -p 518:518 -p 1888:1888 -p 62541:62541 --name iotgateway --restart always 15261671110/iotgateway

登入系统

  1. 用户名 admin,密码 000000
  2. 打开发布文件路径下的ReadMe文件夹中的手摸手按照顺序添加设备进行采集

采集配置

1 登录 2 首页 3 网关配置 4 设备维护 5 设备参数配置 6 设备变量配置 7 设备变量配置-新建

thingsboard接入教程

0 准备一个modsim 或者modbus tcp设备 1 thingsboard  新建网关 2 gateway 修改网关传输配置 3 gateway 创建组 4 gateway 创建设备 5 gateway 配置设备参数 6 gateway 新建变量 6 gateway 修改设备为自启动 7 thingsboard 查看到设备和数据 8 gateway 查看到数据

善于假于物

  1. WTM(MIT)
  2. OPCUA(OPCUA)
  3. NModbus4(MIT)
  4. S7NetPlus(MIT)
  5. MQTTnet(MIT)
  6. DynamicExpresso(MIT)
  7. EFCore(MIT)
  8. LayUI(MIT)
  9. SQLite
  10. mtconnect