Coder Social home page Coder Social logo

jeffreyeinstern / iotgateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iioter/iotgateway

0.0 0.0 0.0 16.96 MB

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.

License: MIT License

C# 86.72% HTML 4.88% Dockerfile 0.05% JavaScript 7.42% CSS 0.94%

iotgateway's Introduction

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
  • 内置AB(罗克韦尔)PLC驱动
  • 内置三菱PLC驱动
  • 内置Modbus驱动全协议支持
  • 内置MT机床驱动
  • 内置欧姆龙PLC驱动
  • 内置OPCUA客户端驱动
  • 内置西门子PLC驱动
  • 增支持计算表达式,数据边缘预处理
  • 支持驱动二次开发
  • 目前只支持遥测数据上传,后续支持属性的双向通信
  • 简单集成了web组态项目
  • 3D可视化展示Demo

免责声明

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

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

体验

  1. 在线体验iotgateway后台:http://42.193.160.84:518/
  2. 用户名 admin 密码 000000
  3. 内置Modbustcp模拟设备 ip 172.17.0.1 port 503 不要修改,否则连不上
  4. 其中modbus地址0-1为固定值,2-9为随机值,10-19为0
  5. 外网访问测试modbus设备,请连接:42.193.160.84:503,进行标准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.3.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 -p 503:503 --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 -p 503:503 --name iotgateway --restart always 15261671110/iotgateway

linux/arm64 docker运行(官方仓)

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

linux/arm64 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 -p 503:503 --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

iotgateway's People

Contributors

dapeng17951 avatar iioter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.