The access server is responsible for platform user and device information, based on the binding method between the user account of the open intelligent gateway platform and the gateway device...

1. based on the binding method of the user account of the open intelligent gateway platform and the gateway device, it is characterized in that, comprising the following steps: S1: the gateway device and the access server are connected; S2: the gateway device sends the device information to the access server , and the information of the gateway device is forwarded to the aggregation center server by the access server; S3: the aggregation center server checks whether the device identification of the gateway device is stored in the database server, and if yes, the aggregation center server verifies the gateway device according to the device identification ; No, then this gateway device is assigned a device identification, and stored in the database server, then the gateway device is verified according to the assigned device identification; S4: the aggregation center server judges whether the gateway device is verified successfully, yes, then the aggregation center server Modify the status information of the gateway device to "online" in the database server, and send the information of "verification successful" to the access server; if not, clear the original device ID, repeatedly assign the device ID to the gateway device, and verify , until the gateway device is successfully verified, and then the aggregation center server modifies the status information of the gateway device to "online" in the database server, and sends the "verification successful" information to the access server; S5: The access server sends "registered" "Success" message to the gateway device; S6: The user logs in to the intelligent gateway platform system, and the user device is connected to the offload server, and the offload server assigns the user device to the aggregation center server; S7: The user device establishes a UDP connection with the gateway device; S8: The user equipment requests to bind with the gateway device, and sends an authentication request, and the gateway device authenticates the authentication request; S9: The gateway device authenticates successfully, and replies to the user equipment "Binding Successful"; will fail".

2. the binding method based on an open intelligent gateway platform user account and gateway device according to claim 1, is characterized in that, in described step S1, gateway device and the access server connecting basic service application channel adopt UDP by default If the connection is unsuccessful, the connection is established by TCP.

3. the binding method based on an open intelligent gateway platform user account and gateway equipment according to claim 1 and 2, is characterized in that, described step S1 comprises the following steps: S101: gateway equipment randomly selects access server; S102 : the gateway device sends a connection request to the access server, and starts the timer in the gateway device; S103: within the time set by the timer, the gateway device determines whether it has received a response request sent by the access server, and yes, Then the gateway device and the access server are connected successfully; No, then execute step S104; S104: determine whether the connection request sent by the gateway device to the current access server exceeds three times, if yes, then automatically connect the next access server, and repeat the steps S102; No, the gateway device sends a connection request to the access server again, resets the timer, and then repeats step S103.

4. The binding method based on an open intelligent gateway platform user account and a gateway device according to claim 3, wherein in the step S3, the aggregation center server allocates a device identifier for the gateway device and verifies the concrete The process is as follows: (1) The aggregation center server sends a serial number with all zeros to the access server, the access server generates a random number, and then forms the device identifier of the gateway device with the serial number, and replies to the gateway device, and the gateway device obtains (2) The gateway device encrypts the device ID according to the message digest algorithm MD5, and sends it to the access server; (3) The access server receives the encrypted device ID, decrypts it, and confirms the Whether the received device identification is consistent with its storage, if yes, the verification is successful, and the device identification is sent to the aggregation center server, and step (4) is performed; if no, the original device identification is cleared, and fed back to the aggregation center server, and then repeat Step (1); (4) The aggregation center server verifies the gateway device according to the device identification.

5. The binding method based on an open intelligent gateway platform user account and a gateway device according to claim 4, characterized in that, in the step S5, after the gateway device is successfully registered, it is also regularly sent to the gateway device according to the set heartbeat cycle. The aggregation center server reports status information, and the aggregation center server adjusts the heartbeat cycle of the gateway device according to the load to ensure the normal connection between the gateway device and the access server.

6. 根据权利要求5所述的基于开放式智能网关平台用户账号与网关设备的绑定方法,其特征在于,汇聚中心服务器调整网关设备的心跳周期、确保网关设备与接入服务器正常连接的具体过程如下: (a) 网关设备按照设定的心跳周期定期向接入层服务器报告其状态信息; (b) 接入服务器判断是否有定时接收到网关设备发送的状态信息,是,则将状态信息转发至汇聚中心服务器,并执行步骤(c)至(e);否,则执行步骤(f)至(h); (c) 汇聚层服务器收到网关设备状态信息,判定当前连接的网关设备的数量是否超过了其预设的阈值,是,则继续保持该心跳周期,同时回复接入服务器;否,则将网关设备的心跳周期加倍,并回复至接入服务器; (d) 接入服务器将回复信息转至网关设备; (e) 判定网关设备是否收到回复,是,则重复步骤(a);否,则执行步骤(f); (f) 网关设备判定其发送状态信息的次数是否有超过三次后仍然未得到响应,是,则执行步骤(g);否,则网关设备将设定的心跳周期时间减半,并重复步骤(a); (g) 网关设备与接入服务器断开连接; (h) 接入服务器发送“状态修改”消息到汇聚中心服务器,汇聚中心服务器在数据库服务器中将该网关设备的状态信息修改为“离线”,并执行步骤(i); (i) 网关设备与接入服务器重新建立连接。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324090633&siteId=291194637