2021-12-12 08:12:06 +00:00
|
|
|
|
# iotgateway
|
2021-12-15 16:16:22 +00:00
|
|
|
|
## github地址:[iotgateway](https://github.com/iioter/iotgateway/) https://github.com/iioter/iotgateway
|
|
|
|
|
## gitee地址:[iotgateway](https://gitee.com/wang_haidong/iotgateway/) https://gitee.com/wang_haidong/iotgateway
|
2021-12-13 13:52:45 +00:00
|
|
|
|
基于.net5的跨平台物联网网关。通过可视化配置,轻松的连接到你的任何设备和系统(如PLC、扫码枪、CNC、数据库、串口设备、上位机、OPC Server、OPC UA Server、Mqtt Server等),从而与 Thingsboard、IoTSharp或您自己的物联网平台进行双向数据通讯。提供简单的驱动开发接口;当然也可以进行边缘计算。
|
2021-12-12 08:12:06 +00:00
|
|
|
|
* 物联网网关mqtt输出,支持thingsboard
|
|
|
|
|
* 抛砖引玉,共同进步
|
|
|
|
|
* 可视化的配置方式实现数据采集(使用wtm开发)
|
|
|
|
|
* 基于.net5的开源物联网网关
|
2021-12-17 08:05:20 +00:00
|
|
|
|
* 内置Mqtt服务端,支持websocket,端口1888,/mqtt,可查看客户端列表
|
2021-12-17 10:52:08 +00:00
|
|
|
|
* 内置Modbus驱动全协议支持
|
2021-12-16 08:25:02 +00:00
|
|
|
|
* 内置西门子PLC驱动
|
2021-12-17 08:05:20 +00:00
|
|
|
|
* 增加计算表达式
|
2021-12-20 08:08:43 +00:00
|
|
|
|
* 支持驱动二次开发(短期内会提供三菱、fanuc通讯)
|
2021-12-12 08:12:06 +00:00
|
|
|
|
* 数据通过mqtt推送,支持thingsboard
|
|
|
|
|
* 目前只支持遥测数据上传,后续支持属性的双向通信
|
2021-12-21 06:10:48 +00:00
|
|
|
|
* 简单集成了web组态项目
|
2021-12-13 15:14:46 +00:00
|
|
|
|
# 体验
|
|
|
|
|
1. 在线体验[iotgateway](http://wanghaidong.cloud:518/)后台:http://wanghaidong.cloud:518/
|
|
|
|
|
2. 用户名 admin 密码 000000
|
|
|
|
|
3. 内置Modbustcp模拟设备 ip 172.17.0.1 port 16051 不要修改,否则连不上
|
|
|
|
|
4. 其中modbus地址0-1为固定值,2-9为随机值,10-19为0
|
2021-12-13 15:18:13 +00:00
|
|
|
|
5. 想要外网访问modbus设备,请连接:wanghaidong.cloud:16051,进行标准modbus协议读写
|
2021-12-17 08:22:56 +00:00
|
|
|
|
6. 想要通过mqtt接收数据,请连接mqttserver:wanghaidong.cloud,1888 admin 000000;订阅topic: v1/gateway/telemetry
|
2021-12-22 07:50:27 +00:00
|
|
|
|

|
2021-12-22 07:57:25 +00:00
|
|
|
|

|
2021-12-21 06:10:48 +00:00
|
|
|
|

|
2021-12-22 07:57:25 +00:00
|
|
|
|

|
2021-12-13 15:14:46 +00:00
|
|
|
|
|
|
|
|
|
|
2021-12-12 15:44:04 +00:00
|
|
|
|
# 运行
|
|
|
|
|
## windows运行:
|
2021-12-21 11:34:53 +00:00
|
|
|
|
1. [下载Releasev0.02](https://github.com/iioter/iotgateway/releases/download/v0.02/iotgateway-winx64-v0.02.zip)发布版本
|
2021-12-12 15:44:04 +00:00
|
|
|
|
2. [下载.net5](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) sdk或runtime
|
|
|
|
|
3. 安装.net5
|
|
|
|
|
4. 解压release包,运行IoTGateway.exe
|
|
|
|
|
5. 访问[iotgateway](http://localhost:518/)后台:http://localhost:518
|
2021-12-13 14:42:05 +00:00
|
|
|
|
## linux docker运行
|
2021-12-16 05:43:53 +00:00
|
|
|
|
1. docker pull registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway
|
|
|
|
|
2. docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway 15261671110/iotgateway
|
2021-12-16 08:25:02 +00:00
|
|
|
|
3. docker run -d -p 518:518 -p 1888:1888 --name iotgateway --restart always 15261671110/iotgateway
|
2021-12-12 15:44:04 +00:00
|
|
|
|
## 登入系统
|
|
|
|
|
1. 用户名 admin,密码 000000
|
|
|
|
|
2. 打开发布文件路径下的ReadMe文件夹中的手摸手,按照顺序添加设备进行采集
|
|
|
|
|
# 采集配置
|
2021-12-12 08:12:06 +00:00
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
# thingsboard接入教程
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
2021-12-15 16:16:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 声明
|
|
|
|
|
## 君子性非异也,善假于物也
|
|
|
|
|
1. [WTM(MIT)](https://github.com/dotnetcore/WTM)
|
|
|
|
|
2. [NModbus4(MIT)](https://github.com/NModbus4/NModbus4)
|
2021-12-16 08:25:02 +00:00
|
|
|
|
2. [S7NetPlus(MIT)](https://github.com/S7NetPlus/s7netplus)
|
|
|
|
|
2. [MQTTnet(MIT)](https://github.com/chkr1011/MQTTnet)
|
2021-12-17 08:05:20 +00:00
|
|
|
|
4. [DynamicExpresso(MIT)](https://github.com/dynamicexpresso/DynamicExpresso)
|
2021-12-15 16:16:22 +00:00
|
|
|
|
3. [EFCore(MIT)](https://github.com/dotnet/efcore)
|
|
|
|
|
4. [LayUI(MIT)](https://github.com/sentsin/layui)
|
|
|
|
|
5. [SQLite](https://github.com/sqlite/sqlite)
|