A data processing method and system based on websocket long connection

A data processing and long-term connection technology, applied in the field of communication, can solve problems such as increased server pressure, data loss, and poor real-time performance, and achieve the effect of reducing pressure

Active Publication Date: 2021-08-31
XIAMEN ZKTECO BIOMETRIC IDENTIFICATION TECHNOLOGY CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With http short connection, only a single channel of the terminal device can be used to regularly send requests to the server. If the timing time is too long, the real-time performance will be poor, and if the timing time is too short, the pressure on the server will increase. Therefore, this http short connection communication method It is basically difficult to apply to terminal equipment with high real-time requirements, such as security, attendance, witness and other terminal equipment, and on this basis, it is impossible to monitor the online status of terminal equipment in real time
[0003] At present, most Internet of Things industries adopt low-power mqtt protocol more. For data uploaded by terminal devices, the server needs to monitor each terminal device. , basically depends on the mqtt qos attribute, once there is a problem with the underlying layer, there may be a problem of data loss

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data processing method and system based on websocket long connection
  • A data processing method and system based on websocket long connection
  • A data processing method and system based on websocket long connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The present invention will be further described below through specific embodiments.

[0049] see figure 1 As shown, on the one hand, the present invention proposes a data processing method based on Websocket long connection, comprising:

[0050] S101, after the terminal device is connected to the network, log in to the communication address provided by the server through a login password to establish a Websocket long connection with the server; the login password is generated based on a device code used to identify the type and / or model of the terminal device.

[0051] Specifically, the terminal equipment includes, but is not limited to, attendance equipment, security equipment, identification (comparison) terminals, access control machines, video screen monitoring equipment, collectors, and the like.

[0052] The server may be one server, or a server cluster composed of several servers, or a cloud server. The cloud server is a super large server cluster, an important...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data processing method and system based on a Websocket long connection. The method includes: after a terminal device is connected to the network, it logs in to a ws communication address provided by a server through a login password to establish a Websocket long connection with the server; the login password is generated based on an authorization code ; The authorization code is generated based on a device code used to identify the terminal device type and / or terminal device model; based on the Websocket persistent connection, the terminal device and the server perform message interaction according to a preset JSON format message. The data processing method and system based on the Websocket persistent connection of the present invention can realize the two-way communication between the terminal equipment and the server; at the same time, it can ensure that the data in the two-way communication is not lost.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a data processing method and system based on Websocket persistent connection. Background technique [0002] In the early stage of traditional Internet of Things communication, HTTP short connections were mostly used. Specifically, the terminal device regularly requests the server to realize data upload and delivery interaction. With http short connection, only a single channel of the terminal device can be used to regularly send requests to the server. If the timing time is too long, the real-time performance will be poor, and if the timing time is too short, the pressure on the server will increase. Therefore, this http short connection communication method Basically, it is difficult to apply to terminal equipment with high real-time requirements, such as security, attendance, witness and other terminal equipment, and on this basis, it is impossible to monitor the online ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/06H04L9/08H04L12/26
CPCH04L9/0866H04L43/10H04L63/083H04L67/02H04L67/145H04L69/162
Inventor 林惠武梁贤森
Owner XIAMEN ZKTECO BIOMETRIC IDENTIFICATION TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products