-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fox
authored and
fox
committed
Nov 17, 2022
1 parent
1e9101c
commit 30a6f46
Showing
5 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
# InGateway532快速使用手册 | ||
本文档用于对InGateway532(以下简称IG532)联网、软件版本更新等基础配置操作进行说明,便于用户掌握IG532的基础配置和常用功能的使用方法。 | ||
|
||
- [1. 配置IG532网络参数](#configure-ig532-network-parameters) | ||
- [1.1 访问IG532](#set-lan-parameters) | ||
- [1.2 IG532连接Internet](#set-wan-parameters) | ||
- [2. 更新软件版本](#update-the-software) | ||
- [2.1 更新IG532固件版本](#update-the-firmware-software) | ||
- [2.2 更新IG532 Python SDK版本](#update-the-sdk-software) | ||
- [3. Pyhon边缘计算](#use-python-edge-computing) | ||
- [3.1 安装和运行Python App](#install-and-run-python-app) | ||
- [3.2 更新Python App运行配置](#update-configuration-file-for-app) | ||
- [3.3 更新Python App版本](#update-python-app-version) | ||
- [3.4 开启调试模式](#enable-the-debug-mode) | ||
- [4. 设备云平台](#device-manager) | ||
- [5. 数据采集及数据上云](#device-supervisor) | ||
- [附录](#appendix) | ||
- [恢复出厂设置](#factory-reset) | ||
|
||
|
||
<a id="configure-ig532-network-parameters"> </a> | ||
|
||
## 1. 配置IG532网络参数 | ||
|
||
<a id="set-lan-parameters"> </a> | ||
|
||
### 1.1 访问IG532 | ||
- 步骤1:IG532的WAN口的默认ip地址为192.168.1.1,LAN口的默认ip地址为192.168.2.1。本文档以通过LAN口访问IG532为例,设置PC的IP地址与LAN口处于同一网段。 | ||
- 方法一:自动获取IP地址(推荐) | ||
|
||
![](./images/2019-11-07-10-36-47.png) | ||
|
||
- 方法二:使用固定IP地址 | ||
|
||
选择“使用下面的IP地址”,输入IP地址(默认为192.168.2.2~192.168.2.254中任意值);子网掩码(默认255.255.255.0);默认网关(默认为192.168.2.1)以及DNS服务器地址,单击确定。 | ||
|
||
![](images/2020-01-13-10-16-08.png) | ||
|
||
- 步骤2:打开浏览器,访问IG532的LAN口IP地址并输入登录用户名和密码。设备出厂的用户名/密码默认为adm/123456。 | ||
|
||
![](images/2021-01-19-17-42-55.png) | ||
|
||
- 步骤3:登录成功后,您可以看到如下图所示的网页。 | ||
|
||
![](images/2021-01-19-17-09-10.png) | ||
|
||
- 步骤4:如需修改WEB管理界面的用户名和密码可进入IG532的“系统管理>>用户管理”页面设置新的用户名和密码。 | ||
|
||
![](images/2021-01-19-17-09-53.png) | ||
|
||
- 步骤5:如需修改LAN口的IP地址可访问IG532的“网络>>网络接口>>LAN”页面进行修改。 | ||
|
||
![](images/2021-01-19-17-10-57.png) | ||
|
||
<a id="set-wan-parameters"> </a> | ||
|
||
### 1.2 IG532连接Internet | ||
- 方法一:使用SIM卡拨号连接Internet | ||
- 步骤1:将SIM卡插入卡槽(注意:插拔SIM卡操作时,必须拔掉电源,以免造成数据丢失或设备损坏)。插入SIM卡后将4G LTE天线与ANT口连接,接通IG532的电源。 | ||
|
||
![](images/IG532-sim-internet.png) | ||
|
||
- 步骤2:进入IG532的“网络>>网络接口>>蜂窝网”页面,勾选“启用蜂窝网”并点击提交。 | ||
|
||
![](images/2021-01-19-17-23-43.png) | ||
|
||
待网络连接状态显示为“已连接”并且显示已分配相应IP地址等状态时说明IG532已通过SIM卡联网。 | ||
|
||
![](images/2021-01-19-17-27-34.png) | ||
|
||
- 方法二:使用以太网连接Internet | ||
- 步骤1:使用以太网线连接IG532的WAN和LAN口,如下图: | ||
|
||
![](images/IG532-internet.png) | ||
|
||
- 步骤2:进入IG532的“网络>>网络接口>>WAN”页面,配置WAN口的IP地址(网络类型为静态IP地址时需要根据现场网络情况配置IP、子网掩码等信息)并点击提交。 | ||
|
||
![](images/2021-01-19-17-26-32.png) | ||
|
||
![](images/2021-01-19-17-28-41.png) | ||
|
||
- 步骤3:进入IG532的“网络>>路由>>静态路由”页面,为WAN口添加静态路由(接口项选择“WAN”,其余项根据现场网络情况配置)并点击提交。 | ||
|
||
![](images/2021-01-19-17-31-13.png) | ||
|
||
- 步骤4:进入IG532的“系统管理>>工具”页面,使用Ping命令检测IG532是否成功接入Internet。 | ||
|
||
![](images/2021-01-19-17-33-36.png) | ||
|
||
<a id="update-the-software"> </a> | ||
|
||
## 2. 更新软件版本 | ||
如需获取IG532产品最新软件版本及其功能特性信息,请访问[资源中心](https://www.inhand.com.cn/downlist/edge-computing-gateway/)。如需更新IG532的软件版本,请参考如下方法。 | ||
|
||
<a id="update-the-firmware-software"> </a> | ||
|
||
### 2.1 更新IG532固件版本 | ||
|
||
点击“系统管理>>固件升级”,选择相应的固件文件后点击“开始升级”。IG532升级完成后,会提示重启设备以应用新的固件。 | ||
|
||
![](images/2021-01-19-17-35-35.png) | ||
|
||
<a id="update-the-sdk-software"> </a> | ||
|
||
### 2.2 更新IG532 Python SDK版本 | ||
|
||
进入“边缘计算>>Python边缘计算”页面,勾选“Python边缘计算引擎”并选择相应的Python SDK文件点击“升级”;弹出升级确认窗口时点击“确认”,IG532会自动完成升级操作。 | ||
|
||
![](images/2021-01-19-17-44-00.png) | ||
|
||
<a id="use-python-edge-computing"> </a> | ||
|
||
## 3. Pyhon边缘计算 | ||
|
||
<a id="install-and-run-python-app"> </a> | ||
|
||
### 3.1 安装和运行Python App | ||
在IG532中安装和运行Python App(以下简称App)请参考如下流程,本文档以**Device Supervisor**为例: | ||
- 步骤1:安装App | ||
|
||
安装App前需要确保Python边缘计算引擎已启用且已安装Python SDK,如下图所示: | ||
|
||
![](images/2021-01-19-17-44-41.png) | ||
|
||
进入“边缘计算>>Python边缘计算”页面,点击添加按钮并选择需要安装的App包文件,随后点击确定。 | ||
|
||
![](images/2021-01-19-17-46-05.png) | ||
|
||
导入成功后可以查看已导入的App,如下图所示: | ||
|
||
![](images/2021-01-19-17-46-54.png) | ||
|
||
- 步骤2:运行App | ||
|
||
勾选启用App并点击提交。 | ||
|
||
![](images/2021-01-19-17-48-22.png) | ||
|
||
启用后App将在IG532中运行并且每次开机后自动运行。 | ||
|
||
![](images/2021-01-19-17-50-46.png) | ||
|
||
<a id="update-configuration-file-for-app"> </a> | ||
|
||
### 3.2 更新Python App运行配置 | ||
如果已安装的App支持导入配置文件修改运行方式,可参照如下流程更新App运行配置: | ||
- 步骤1:进入“边缘计算>>Python边缘计算”页面,点击导入配置按钮并选择需要导入的配置文件,随后点击确认。 | ||
|
||
![](images/2021-01-19-18-02-21.png) | ||
|
||
- 步骤2:导入成功后重启App,App重启完成后将按照导入后的配置文件运行。 | ||
|
||
![](images/2021-01-19-18-03-03.png) | ||
|
||
<a id="update-python-app-version"> </a> | ||
|
||
### 3.3 更新Python App版本 | ||
通常如需更新Python App版本时直接在“边缘计算>>Python边缘计算”页面导入新版本的App即可。 | ||
|
||
![](images/2021-01-19-18-05-48.png) | ||
|
||
更新完成后如下图所示: | ||
|
||
![](images/2021-01-19-18-06-53.png) | ||
|
||
<a id="enable-the-debug-mode"> </a> | ||
|
||
### 3.4 开启调试模式 | ||
如需在IG532上运行并调试Python代码,需要启用IG532的调试模式。在“边缘计算>>Python边缘计算”页面中,勾选“启用调试模式”,启用后可通过VS Code对IG532进行开发。如何使用VS Code对IG532进行Python开发请参考[MobiusPi Python开发快速入门](http://sdk.ig.inhand.com.cn/zh_CN/latest/MobiusPi-Python-QuickStart-CN.html)。 | ||
|
||
![](images/2021-01-19-18-07-16.png) | ||
|
||
启用调试模式后,IG532启动一个SSH Server,监听LAN网络(默认IP地址192.168.2.1)的222端口。SSH Server的用户名和密码将被显示到上述网页中。为了提高安全性,每次开启调试模式或重启设备,都会重新随机生成新的密码。 | ||
|
||
<a id="device-manager"> </a> | ||
|
||
## 4. 设备云平台 | ||
映翰通开发的设备云平台支持监视IG532状态、远程维护设备、远程批量下发IG532配置和IG532批量升级等功能,帮助用户便捷、高效的管理IG532和现场设备。为了使设备云平台能够远程管理IG532和现场设备,需要将IG532连接到云平台上,连接方法如下: | ||
进入“系统管理>>设备云平台”页面,勾选启用设备云平台并配置相应的服务器地址以及注册账户,配置完成后点击提交即可。其中**InHand Connect Service**平台主要为用户提供远程维护通道,**InHand Device Manager**平台主要为用户提供网关管理服务(如批量远程升级等)。 | ||
- 服务器地址:即设备云平台地址 | ||
- 注册账户:即IG532关联的设备云平台账号(如果还未注册账户需要先注册一个账号) | ||
- 高级设置:包含心跳间隔等配置,一般使用默认配置即可 | ||
|
||
![](images/2021-01-19-18-09-35.png) | ||
|
||
IG532与设备云平台连接成功后状态描述为连接成功。 | ||
|
||
![](images/2021-01-19-18-10-10.png) | ||
|
||
<a id="device-supervisor"> </a> | ||
|
||
## 5. 数据采集及数据上云 | ||
- 步骤1:连接PLC | ||
|
||
使用以太网或串口线连接IG532和PLC,IG532串口接线如下图所示: | ||
|
||
![](images/IG532-RS485.png) | ||
|
||
- 步骤2:安装并运行Device Supervisor | ||
|
||
如何安装并运行Device Supervisor请参考[3.1 安装和运行Python App](#install-and-run-python-app)。 | ||
|
||
- 步骤3:添加PLC设备 | ||
|
||
进入“边缘计算 > 设备监控 > 设备列表”页面,在设备列表中点击“添加”按钮并配置PLC的通讯参数。下图为添加S7-1200 PLC的示例: | ||
|
||
![](images/2020-05-24-16-13-17.png) | ||
|
||
- 步骤4:添加变量 | ||
|
||
在“设备列表”页面的变量列表中点击“添加”按钮,在弹出框中配置变量参数。 | ||
|
||
![](images/2020-05-20-17-38-05.png) | ||
|
||
- 步骤5:配置云服务上报和接收下发数据 | ||
|
||
进入“边缘计算 > 设备监控 > 云服务”页面,勾选启用云服务并配置相应的MQTT连接参数和发布及订阅消息(本文档以配置发布消息为例),配置完成后点击提交。以上配置正确完成后即可在网关和云平台中监控采集的数据了。 | ||
|
||
![](images/2020-07-27-13-47-55.png) | ||
|
||
![](images/2020-05-16-19-36-03.png) | ||
|
||
<a id="io-module"> </a> | ||
|
||
<a id="white-Eagle"> </a> | ||
|
||
|
||
## 附录 | ||
|
||
<a id="factory-reset"> </a> | ||
|
||
### 恢复出厂设置 | ||
IG532恢复出厂设置的方式有两种:硬件恢复出厂设置和软件恢复出厂设置 | ||
- 硬件恢复出厂设置 | ||
- 步骤1:设备上电后10内长按RESET键; | ||
- 步骤2:ERR灯常亮时,松开RESET键; | ||
- 步骤3:ERR灯熄灭后,再次按住RESET键,ERR灯闪烁时松开RESET键;等待ERR灯熄灭,表明恢复出厂设置成功。 | ||
|
||
- 软件恢复出厂设置 | ||
|
||
进入“系统管理>>配置管理”页面,点击重置按钮并选择确定。IG532将自行完成恢复出厂设置操作。 | ||
|
||
![](images/2021-01-19-18-11-03.png) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.