CN113497829B - Method for controlling electronic ban card based on websocket - Google Patents

Method for controlling electronic ban card based on websocket Download PDF

Info

Publication number
CN113497829B
CN113497829B CN202110614651.XA CN202110614651A CN113497829B CN 113497829 B CN113497829 B CN 113497829B CN 202110614651 A CN202110614651 A CN 202110614651A CN 113497829 B CN113497829 B CN 113497829B
Authority
CN
China
Prior art keywords
server
electronic
instruction
ban
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110614651.XA
Other languages
Chinese (zh)
Other versions
CN113497829A (en
Inventor
封宛昌
庄志莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Xiaoniu Electronic Technology Co ltd
Original Assignee
Jiangsu Xiaoniu Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Xiaoniu Electronic Technology Co ltd filed Critical Jiangsu Xiaoniu Electronic Technology Co ltd
Priority to CN202110614651.XA priority Critical patent/CN113497829B/en
Publication of CN113497829A publication Critical patent/CN113497829A/en
Application granted granted Critical
Publication of CN113497829B publication Critical patent/CN113497829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The invention discloses a method for controlling electronic banners based on websocket, wherein the electronic banners and a server side in the method are built in the same local area network and are communicated with a third party database through an external network. Compared with the existing one-way polling type electronic ban card instruction sending mode, the method has the advantages that through application of the WebSocket transmission protocol, bidirectional data exchange between the client and the server can reduce pressure of the campus server and improve response time of the electronic ban card; and further, the repeated sending of instructions of the electronic banners and the server side is reduced, and redundant data is prevented from occupying the transmission channels, the server and the storage space of the third party database. Meanwhile, the third party database is connected with a plurality of electronic banners and the server through a network, so that the response speed of the electronic banners is facilitated, and the network transmission and the memory load of the server are reduced.

Description

Method for controlling electronic ban card based on websocket
Technical Field
The invention belongs to the field of communication equipment in schools, and particularly relates to a method for controlling electronic banners based on websocket.
Background
The existing electronic ban control is mainly distributed management, namely the electronic ban is in communication connection with a server, an information storage instruction from the server is obtained, then information to be stored is stored in response to the information storage instruction, an information calling instruction is obtained, and the stored information is called; and responding to the information calling instruction, and displaying the stored information, so that the information displayed by the electronic ban board has timeliness. Meanwhile, the existing electronic ban card is easy to be interfered by other terminal equipment to cause the loss of display data.
Disclosure of Invention
The invention aims to: a method for controlling electronic banners based on websocket is provided to solve the problems existing in the prior art.
The technical scheme is as follows: a method for controlling electronic banners based on websocket includes constructing electronic banners and server side in same local area network, communicating with third party database via external network
The client handshake establishes a connection channel to the server, and the client sends an instruction to the server;
the server judges whether the storage instruction is a storage instruction, if so, the server transmits the storage instruction to the appointed electronic ban board;
after receiving the storage instruction, the appointed electronic class board uploads the data to a third party cloud database, after uploading is successful, the server side sends a message to the server side, and after acquiring the uploaded storage path, the server side sends the acquired storage path to the client side;
the server side judges that the instruction is not a storage instruction, carries out second identification judgment, judges whether the client side sends an operation instruction or not, if the server side judges that the operation instruction is the operation instruction, the operation instruction is transmitted to the electronic ban application layer for execution, and judges whether the operation instruction is repeatedly executed or not; if the repeated execution condition exists, returning a message to the server side, and prohibiting the client side from sending the instruction again;
if the server side judges that the operation instruction is not the operation instruction, judging the type of the inspection instruction;
and if the repeated execution does not exist, the electronic ban card is transmitted to an application layer for operation execution.
In a further embodiment, the single electronic class board is provided with a unique device serial number, and before the further client handshake establishes a connection channel to the server, the client handshake establishes the connection channel to the server, and encrypts the transmission instruction through WebSocket transmission protocol.
In a further embodiment, after the designated electronic class board receives the storage instruction and uploads the data to the third party cloud database, a clearing program is set to clear the storage instruction which is not called in three months in the third party cloud database.
In a further embodiment, the transmission encryption method is:
a plurality of electronic banners and a server are transmitted end to end through a client of an electronic banner control system; an encryption algorithm is arranged in each electronic class card transmission module, and the transmission information is encrypted;
the server establishes an encryption system and an encryption system database corresponding to the encryption algorithm;
the equipment serial number and the instruction of the single electronic class card are encrypted by an encryption algorithm and then sent to a server to obtain ciphertext,
after receiving the ciphertext, the server encrypts the ciphertext again;
the server encryption system carries out decryption inquiry on the encrypted ciphertext through an encryption system database;
if the matching is correct, the electronic ban card is connected with the electronic ban card through a handshake protocol;
in a further embodiment, the third party cloud database cleaning procedure includes the steps of:
the method comprises the steps that a storage instruction is sent to a server through a client control system, and is forwarded to a designated electronic class board through the server to be sent to a third party database;
before the electronic ban is appointed to send the storage instruction to the third party database, the server acquires the time stamp of the uploading of the storage instruction and the ciphertext of the serial number of the electronic ban device, and further files and records the uploading operation;
the third party database provides a temporary shield for the server and hides the encryption key in the encryption system;
and the server side clears the stored instruction in the third party database according to the timestamp of the archived data and the ciphertext of the equipment serial number, and simultaneously sends the timestamp data of the deleting instruction to the server side for archiving, so that the later data recovery is facilitated.
The beneficial effects are that: compared with the existing one-way polling type electronic ban card instruction sending mode, the method has the advantages that through application of the WebSocket transmission protocol, bidirectional data exchange between the client and the server can reduce pressure of the campus server and improve response time of the electronic ban card; and further, the repeated sending of instructions of the electronic banners and the server side is reduced, and redundant data is prevented from occupying the transmission channels, the server and the storage space of the third party database. Meanwhile, the third party database is connected with a plurality of electronic banners and the server through a network, so that the response speed of the electronic banners is facilitated, and the network transmission and the memory load of the server are reduced.
Drawings
Fig. 1 is a structural frame diagram of the websocket-based electronic ban card system of the present invention.
Fig. 2 is a flowchart of the websocket-based electronic ban card control operation of the present invention.
Fig. 3 is a flow chart of the operation of the encrypted transmission of the present invention.
FIG. 4 is a flowchart of the operation of the third party data execution delete instruction of the present invention.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced without one or more of these details. In other instances, well-known features have not been described in detail in order to avoid obscuring the invention.
The applicant finds that the existing electronic ban control is mainly distributed management, namely the electronic ban is in communication connection with a server, an information storage instruction from the server is obtained, then information to be stored is stored in response to the information storage instruction, an information calling instruction is obtained, and the stored information is called; and responding to the information calling instruction, and displaying the stored information, so that the information displayed by the electronic ban board has timeliness. Meanwhile, the existing electronic ban card is easy to be interfered by other terminal equipment to cause the loss of display data.
The existing server is adopted to send a storage instruction and then respond to an information storage instruction, and then acquire a calling instruction, the control effect is always untimely due to the time delay, and the instruction is easy to repeat and returns to the calling instruction but not respond, so that the pressure of the server is not only the potential fault hazard of a ban board. The server sends an information storage instruction to the equipment, then the electronic ban card responds to the storage instruction, then the server calls and sends a call instruction, the ban card responds again, the storage of the mode occupies the memory of the server, and the storage of the server is not set to be emptied at regular time to influence the calculation speed. The server sends the instruction to the electronic ban card from the storage of the instruction to the return of the instruction, the electronic ban card does not feed back, and if the electronic ban card fails or is in a standby state and the instruction of the server cannot be received, the server continues to request not only the waste of resources but also the error information.
The method for controlling the electronic ban card based on websocket is shown in fig. 1 to 2, wherein the electronic ban card and the server side are built in the same local area network and are communicated with a third party database through an external network.
The method comprises the following steps:
step one, a client handshake establishes a connection channel to a server, and the client sends an instruction to the server;
judging whether the storage instruction is the storage instruction or not by the server, if so, transmitting the storage instruction to the appointed electronic ban by the server;
step three, the appointed electronic class board uploads data to a third party cloud database after receiving a storage instruction, and after uploading is successful, the server sends a message to the server, and the server obtains an uploaded storage path and then sends the obtained storage path to the client;
judging whether the instruction is a storage instruction or not by the server side, performing second identification judgment, judging whether the client side sends the operation instruction or not, if the operation instruction is judged to be the operation instruction by the server side, transmitting the operation instruction to the electronic ban application layer for execution, and judging whether the operation instruction is repeatedly executed or not; if the repeated execution condition exists, returning a message to the server side, and prohibiting the client side from sending the instruction again;
step five, if the server side judges that the operation instruction is not the operation instruction, judging the type of the inspection instruction;
and step six, if the situation of repeated execution does not exist, the electronic ban card is transmitted to an operating system to be operated and executed.
The application of the WebSocket transmission protocol enables the bidirectional data exchange between the client and the server to relieve the pressure of the campus server and improve the response time of the electronic ban card; and further, the repeated sending of instructions of the electronic banners and the server side is reduced, and redundant data is prevented from occupying the transmission channels, the server and the storage space of the third party database.
The single electronic class board is provided with a unique equipment serial number, and in the further step one, the client side handshakes with the server side to establish a connection channel, and the sending instruction is transmitted and encrypted through a WebSocket transmission protocol.
The use and the distribution scene of each electronic class card are different, so that the identity authentication is carried out in the local area network through the equipment serial number, and further the operation instructions and different tasks are distributed. The electronic ban card transmission encryption method as shown in fig. 3 comprises the following steps:
step 1.1, realizing end-to-end transmission of a plurality of electronic banners and a server through a client of an electronic banner control system; an encryption algorithm is arranged in each electronic class card transmission module, and the transmission information is encrypted;
step 1.2, the server establishes an encryption system and an encryption system database corresponding to the encryption algorithm;
step 1.3, the equipment serial number and the instruction of the single electronic class card are encrypted by an encryption algorithm and then sent to a server to obtain ciphertext,
step 1.4, after receiving the ciphertext, the server encrypts the ciphertext again;
step 1.5, the server encryption system decrypts and inquires the encrypted ciphertext through an encryption system database;
step 1.6, if the matching is correct, the electronic ban card is connected with the electronic ban card through a handshake protocol;
and in the third step, the storage instructions which are not called in three months in the third party cloud database are cleared. Secondly, the conditions of searching and recovering the deleted data are considered.
Considering that the third party database also has memory limitation, the data in the third party data is cleared in sequence by adopting a clearing algorithm according to the time stamp of the storage instruction as the identification basis, and the time interval for starting the clearing algorithm can be self-timed, such as the clearing in three months. The step of third party cloud database cleaning as shown in fig. 4 further comprises:
step 3.1, a storage instruction is sent to a server through a client control system, and the storage instruction is forwarded to a designated electronic class board through the server to send the storage instruction to a third party database;
step 3.2, before the electronic banners are appointed to send the storage instructions to the third party database, the server acquires the time stamp of uploading the storage instructions and the ciphertext of the serial number of the electronic banners, and further files and records uploading operation;
step 3.3, providing a temporary shield for the server by the third party database, and hiding an encryption key in the encryption system; the temporary shield corresponds to a password of a period of time, and the privacy and the security of the third party file are protected at intervals of time
And 3.4, the server side clears the storage instruction in the third party database according to the timestamp of the archived data and the ciphertext of the equipment serial number, and simultaneously sends the timestamp data of the deletion instruction to the server side for archiving, so that the later searching and deleting of the document and the recovery of the data are facilitated.
In addition, the invention can repeatedly call the function, can operate a plurality of electronic banners to modify the function, modify the ciphertext rule, and modify the timing deletion storage instruction of the third party library for operating different types of equipment by remote connection.
The third party database is connected with a plurality of electronic banners and servers through a network, so that the response speed of the electronic banners is facilitated, the network transmission and the memory load of the server are reduced, the repeated sending of instructions of the electronic banners and the server are reduced, and the redundant data quantity is prevented from occupying the transmission channel, the server and the storage space of the third party database.
Compared with the existing one-way polling type electronic ban card instruction sending mode, the method has the advantages that through application of the WebSocket transmission protocol, bidirectional data exchange between the client and the server can reduce pressure of the campus server and improve response time of the electronic ban card; and further, the repeated sending of instructions of the electronic banners and the server side is reduced, and redundant data is prevented from occupying the transmission channels, the server and the storage space of the third party database. Meanwhile, the third party database is connected with a plurality of electronic banners and the server through a network, so that the response speed of the electronic banners is facilitated, and the network transmission and the memory load of the server are reduced.
The preferred embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the specific details of the above embodiments, and various equivalent changes can be made to the technical solutions of the present invention within the scope of the technical concept of the present invention, and these equivalent changes all fall within the scope of the present invention.

Claims (4)

1. A method for controlling electronic banners based on websocket, the electronic banners and server side in the method are constructed in the same local area network and simultaneously communicate with a third party database through an external network, the method is characterized by comprising the following steps of
The client handshake establishes a connection channel to the server, and the client sends an instruction to the server;
the server judges whether the storage instruction is a storage instruction, if so, the server transmits the storage instruction to the appointed electronic ban board;
after receiving the storage instruction, the appointed electronic class board uploads the data to a third party cloud database, after uploading is successful, the server side sends a message to the server side, and after acquiring the uploaded storage path, the server side sends the acquired storage path to the client side;
the server side judges that the instruction is not a storage instruction, carries out second identification judgment, judges whether the client side sends an operation instruction or not, if the server side judges that the operation instruction is the operation instruction, the operation instruction is transmitted to the electronic ban application layer for execution, and judges whether the operation instruction is repeatedly executed or not; if the repeated execution condition exists, returning a message to the server side, and prohibiting the client side from sending the instruction again;
if the server side judges that the operation instruction is not the operation instruction, judging the type of the inspection instruction;
if the situation of repeated execution does not exist, the electronic ban board is transmitted to an application layer to be operated and executed;
the single electronic class board is provided with a unique equipment serial number, and before a further client-side handshake establishes a connection channel to a server-side handshake, the client-side handshake establishes the connection channel to the server-side handshake and encrypts a sending instruction in a transmission manner through a WebSocket transmission protocol.
2. The method for controlling the electronic ban card based on websocket according to claim 1, wherein after the designated electronic ban card receives the storage instruction and uploads the data to the third party cloud database, a clearing program is set to clear the storage instruction which is not called in three months in the third party cloud database.
3. The method for controlling electronic ban cards based on websocket as claimed in claim 2, wherein the transmission encryption method is as follows:
a plurality of electronic banners and a server are transmitted end to end through a client of an electronic banner control system; an encryption algorithm is arranged in each electronic class card transmission module, and the transmission information is encrypted;
the server establishes an encryption system and an encryption system database corresponding to the encryption algorithm;
the equipment serial number and the instruction of the single electronic class card are encrypted by an encryption algorithm and then sent to a server to obtain ciphertext,
after receiving the ciphertext, the server encrypts the ciphertext again;
the server encryption system carries out decryption inquiry on the encrypted ciphertext through an encryption system database;
and if the matching is correct, the electronic ban card is connected with the electronic ban card through a handshake protocol.
4. The method for controlling electronic ban cards based on websocket as set forth in claim 3, wherein the step of the third party cloud database clearing program is as follows:
the method comprises the steps that a storage instruction is sent to a server through a client control system, and is forwarded to a designated electronic class board through the server to be sent to a third party database;
before the electronic banners are designated to send the storage instructions to the third party database, the server acquires the time stamp and the ciphertext of the equipment serial number of the electronic banners when the storage instructions are uploaded, and further files and records uploading operation;
the third party database provides a temporary shield for the server and hides the encryption key in the encryption system;
and the server side clears the stored instruction in the third party database according to the timestamp of the archived data and the ciphertext of the equipment serial number, and simultaneously sends the timestamp data of the deleting instruction to the server side for archiving, so that the later data recovery is facilitated.
CN202110614651.XA 2021-06-02 2021-06-02 Method for controlling electronic ban card based on websocket Active CN113497829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110614651.XA CN113497829B (en) 2021-06-02 2021-06-02 Method for controlling electronic ban card based on websocket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110614651.XA CN113497829B (en) 2021-06-02 2021-06-02 Method for controlling electronic ban card based on websocket

Publications (2)

Publication Number Publication Date
CN113497829A CN113497829A (en) 2021-10-12
CN113497829B true CN113497829B (en) 2024-02-13

Family

ID=77997613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110614651.XA Active CN113497829B (en) 2021-06-02 2021-06-02 Method for controlling electronic ban card based on websocket

Country Status (1)

Country Link
CN (1) CN113497829B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064359A (en) * 2018-07-06 2018-12-21 安徽电科恒钛智能科技有限公司 A kind of wisdom class board management system and its method based on cell phone application
CN109769001A (en) * 2019-03-19 2019-05-17 中信梧桐港供应链管理有限公司 A kind of internet of things data transmission method and system
CN110459128A (en) * 2019-08-27 2019-11-15 宁波阶梯教育科技有限公司 A kind of control method of electronics class board and electronics class board
CN110599378A (en) * 2019-09-18 2019-12-20 合肥纵联大数据科技有限公司 Wisdom education cloud platform
CN111835828A (en) * 2020-06-15 2020-10-27 浙江蓝鸽科技有限公司 Intelligent classroom electronic class board and access control system and method
CN212675749U (en) * 2020-08-07 2021-03-09 耀上数字技术(江苏)有限公司 Electronic class card system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051617B (en) * 2012-12-18 2015-09-02 北京奇虎科技有限公司 The method of the network behavior of recognizer, Apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064359A (en) * 2018-07-06 2018-12-21 安徽电科恒钛智能科技有限公司 A kind of wisdom class board management system and its method based on cell phone application
CN109769001A (en) * 2019-03-19 2019-05-17 中信梧桐港供应链管理有限公司 A kind of internet of things data transmission method and system
CN110459128A (en) * 2019-08-27 2019-11-15 宁波阶梯教育科技有限公司 A kind of control method of electronics class board and electronics class board
CN110599378A (en) * 2019-09-18 2019-12-20 合肥纵联大数据科技有限公司 Wisdom education cloud platform
CN111835828A (en) * 2020-06-15 2020-10-27 浙江蓝鸽科技有限公司 Intelligent classroom electronic class board and access control system and method
CN212675749U (en) * 2020-08-07 2021-03-09 耀上数字技术(江苏)有限公司 Electronic class card system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电子班牌的发展演变及教育应用;马宗兵;王晶晶;;中国教育信息化(第22期);全文 *

Also Published As

Publication number Publication date
CN113497829A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN106549933B (en) Data transmission system and method of block chain
US11876829B2 (en) Method for emulating a known attack on a target computer network
CN109194651B (en) Identity authentication method, device, equipment and storage medium
CN112055078B (en) Data transmission method, device, computer equipment and storage medium
CN113923655B (en) Data decryption receiving method and device based on adjacent nodes
US9332405B2 (en) Short message backup method, mobile terminal, and server
CN115022101A (en) Account data changing method and device, computer equipment and storage medium
CN101821748A (en) Device data management system
CN113992427B (en) Data encryption sending method and device based on adjacent nodes
CN112491955B (en) Method and system for realizing iframe system data exchange based on proxy server
CN113497829B (en) Method for controlling electronic ban card based on websocket
CN103034632A (en) Information transmitting method and a system
CN112105003A (en) Data synchronization system, method and device of intelligent door lock and readable storage medium
CN111327680A (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN110740139A (en) secret key device and secret key management method, system, equipment and computer medium
CN110602133A (en) Intelligent contract processing method, block chain management device and storage medium
CN113938883B (en) Data encryption sending method and device based on intermediate node
CN113014545B (en) Data processing method and device, computer equipment and storage medium
CN112598843B (en) Voting data processing method and device and storage medium
KR102330240B1 (en) System for distributing and managing data automatically based messenger
CN112839037A (en) Power distribution network protocol instruction tamper-proofing method and system
CN110941412A (en) Method, system and terminal for realizing multi-terminal animation co-browsing based on imaging
CN113067951B (en) Terminal communication management method and device, computer equipment and readable storage medium
CN111193586A (en) Information processing method, packet transport network device and quantum key device
CN109962962A (en) A kind of method and apparatus of socket connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant