CN108989321B - Communication protocol adaptation method, device and system - Google Patents

Communication protocol adaptation method, device and system Download PDF

Info

Publication number
CN108989321B
CN108989321B CN201810852165.XA CN201810852165A CN108989321B CN 108989321 B CN108989321 B CN 108989321B CN 201810852165 A CN201810852165 A CN 201810852165A CN 108989321 B CN108989321 B CN 108989321B
Authority
CN
China
Prior art keywords
access control
control terminal
communication protocol
packaging
cloud server
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
CN201810852165.XA
Other languages
Chinese (zh)
Other versions
CN108989321A (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.)
Guangzhou Yunzhiyi Internet Of Things Co ltd
Original Assignee
Guangzhou Yunzhiyi Internet Of Things 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 Guangzhou Yunzhiyi Internet Of Things Co ltd filed Critical Guangzhou Yunzhiyi Internet Of Things Co ltd
Priority to CN201810852165.XA priority Critical patent/CN108989321B/en
Publication of CN108989321A publication Critical patent/CN108989321A/en
Application granted granted Critical
Publication of CN108989321B publication Critical patent/CN108989321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/08Protocols for interworking; Protocol conversion
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a communication protocol adaptation method, a device and a system, wherein the method is applied to a user terminal and comprises the following steps: if an opening permission notice corresponding to the target access control terminal identification returned by the cloud server is received, determining that the communication protocol corresponding to the target access control terminal identification is a target communication protocol; packaging the equipment key corresponding to the target access control terminal identification by using a target communication protocol to obtain a packaged equipment key; sending the encapsulation device key to an access control terminal corresponding to the target access control terminal identification; de-packaging the packaging opening notice by using a target communication protocol to obtain an opening notice; the user information and the opening notice are packaged by the aid of the unified communication protocol to obtain a packaging result, the packaging result is sent to the cloud server, the problem of low efficiency of the process of uniformly managing the access control terminal by the cloud server in the prior art is solved, and the technical effect of improving the efficiency of uniformly managing the access control terminal by the cloud server is achieved.

Description

Communication protocol adaptation method, device and system
Technical Field
The present invention relates to the field of communication protocol adaptation technologies, and in particular, to a method, an apparatus, and a system for communication protocol adaptation.
Background
The entrance guard safety management system is a modern safety management system, it integrates microcomputer automatic identification technology and modern safety management measures into one body, it relates to many new technologies of electronics, machinery, optics, computer technology, communication technology and biological technology. The method is an effective measure for realizing safety precaution management at the entrance and exit of important departments.
In practical applications, a plurality of access terminals in the access control system may be provided by different suppliers, and each access terminal supports one communication protocol. For example, one access control system includes three access control terminals, which are respectively an access control terminal a, an access control terminal B and an access control terminal C, where the access control terminal a supports a communication protocol a1, the access control terminal B supports a communication protocol B1, and the access control terminal C supports a communication protocol C1. The cloud server manages a plurality of access control terminals in the access control system, and because the communication protocols supported by each access control terminal are different, the opening notification returned by the access control terminals received by the cloud server is encapsulated by using different communication protocols. If the cloud server needs to uniformly manage the unlocking information in the unlocking notification, before uniform management is carried out, the unlocking notification needs to be unpacked by using different communication protocols to obtain the unlocking information, and then the unlocking information is uniformly managed, so that the efficiency of the cloud server uniformly managing the access control terminal is low.
Disclosure of Invention
In view of the above, the present invention provides a communication protocol adaptation method, device and system to solve the technical problem of low efficiency of the unified management of the access control terminal by the cloud server in the prior art.
In a first aspect, an embodiment of the present invention provides a communication protocol adaptation method, which is applied to a user terminal, where the user terminal is in communication connection with a cloud server and a plurality of access control terminals disposed in a security area, the plurality of access control terminals support at least two communication protocols, and access control terminal information and user information synchronized from the cloud server are stored in the user terminal, where the access control terminal information includes: the method comprises the following steps of respectively corresponding to each access control terminal identification, and a communication protocol and an equipment key, wherein the method comprises the following steps:
if an opening permission notice corresponding to a target access control terminal identification returned by the cloud server is received, determining that a communication protocol corresponding to the target access control terminal identification is a target communication protocol, wherein the target access control terminal identification is input by a user;
packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key;
sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, wherein the packaging opening notice is packaged by the access control terminal by using the target communication protocol;
de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification;
and packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the method further includes:
and before the opening permission notice is received, sending the user information and the target access control terminal identification to the cloud server, so that the cloud server generates the opening permission notice according to the user information and the target access control terminal identification.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes:
receiving the user information input by a user so as to enable the user to complete registration;
and sending the user information to the cloud server.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the third possible implementation manner further includes:
when the mobile terminal is in the non-login state, a login account and a login password input by a user are received;
sending the login account and the login password to the cloud server so that the cloud server performs login verification according to the login account, the login password and the user information;
and if the login authentication passing notification sent by the cloud server is received, displaying the login authentication passing notification.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the method further includes:
after the user successfully logs in, synchronizing the access control terminal information and the user information corresponding to the login account from the cloud server;
and saving the access control terminal information and the user information corresponding to the login account.
In a second aspect, an embodiment of the present invention further provides a communication protocol adaptation method, where the method is applied to an access control terminal, the access control terminal is disposed in a security area, the access control terminal is respectively in communication connection with a plurality of user terminals, the access control terminal supports a preset communication protocol, and a preset device key for opening the access control terminal is stored in the access control terminal, and the method includes:
receiving an encapsulation device key sent by the user terminal, wherein the encapsulation device key is obtained by encapsulating a device key corresponding to the access control terminal by the user terminal by using the preset communication protocol;
de-packaging the packaged equipment key by using the preset communication protocol to obtain the equipment key;
judging whether the device key is the same as the preset device key;
if the device key is the same as the preset device key, starting, and simultaneously generating a starting notice;
and packaging the opening notice by using the preset communication protocol to obtain a packaging opening notice, and returning the packaging opening notice to the user terminal.
In a third aspect, an embodiment of the present invention further provides a communication protocol adaptation method, where the method is applied to a cloud server, the cloud server is in communication connection with a plurality of user terminals, and a correspondence between an area identifier and an identifier set of an access control terminal allowed to be opened is stored in the cloud server, and the method includes:
receiving user information and a target access control terminal identification sent by the user terminal;
according to the target area identification in the user information, determining an entrance guard terminal identification set which is allowed to be opened and corresponds to the target area identification as a target identification set in the corresponding relation between the area identification and the entrance guard terminal identification set which is allowed to be opened;
judging whether the target access control terminal identification is located in the target identification set;
and if the target access control terminal identification is located in the target identification set, sending an opening permission notice corresponding to the target access control terminal identification to the user terminal.
In a fourth aspect, an embodiment of the present invention further provides a communication protocol adaptation apparatus, including: the device comprises a determining module, a first packaging module, a sending module, a decapsulating module and a second packaging module;
the determining module is used for determining that a communication protocol corresponding to a target access control terminal identifier is a target communication protocol if an opening permission notice corresponding to the target access control terminal identifier returned by the cloud server is received, and the target access control terminal identifier is input by a user;
the first encapsulation module is used for encapsulating the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain an encapsulated equipment key;
the sending module is used for sending the packaging equipment key to the access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, and the packaging opening notice is packaged by the access control terminal by using the target communication protocol;
the decapsulation module is configured to decapsulate the received encapsulation opening notification by using the target communication protocol to obtain an opening notification;
the second packaging module is used for packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
In a fifth aspect, an embodiment of the present invention further provides a communication protocol adaptation system, including: a plurality of user terminals applying the method according to any one of the first aspect, a plurality of access terminals applying the method according to the second aspect, and a cloud server applying the method according to the third aspect.
In a sixth aspect, the present invention also provides a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method according to any one of the first, second and third aspects.
The embodiment of the invention has the following beneficial effects: the communication protocol adaptation method provided by the embodiment of the invention is applied to a user terminal, the user terminal is respectively in communication connection with a cloud server and a plurality of entrance guard terminals arranged in a security area, the plurality of entrance guard terminals support at least two communication protocols, entrance guard terminal information and user information which are synchronized from the cloud server are stored in the user terminal, and the entrance guard terminal information comprises: the method comprises the following steps of respectively corresponding to each access control terminal identification, and a communication protocol and an equipment key, wherein the method comprises the following steps: if an opening permission notice corresponding to a target access control terminal identification returned by the cloud server is received, determining that a communication protocol corresponding to the target access control terminal identification is a target communication protocol, wherein the target access control terminal identification is input by a user; packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key; sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, wherein the packaging opening notice is packaged by the access control terminal by using the target communication protocol; de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification; and packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
Therefore, if the user terminal receives an opening permission notice corresponding to the target access control terminal identification returned by the cloud server, the communication protocol corresponding to the target access control terminal identification is determined to be a target communication protocol; packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key; sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification; de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification; the user information and the opening notice are packaged by using a preset unified communication protocol to obtain a packaging result, the packaging result is sent to the cloud server, so that the cloud server uniformly manages a plurality of access control terminals, the packaging result received by the cloud server is packaged by using the unified communication protocol, the cloud server unpacks the received packaging result by using the unified communication protocol to obtain the user information and the opening notice, and further uniformly manages the user information and the opening notice without unpacking the received packaging result by using different communication protocols before performing uniform management, thereby avoiding the technical problem of low efficiency of the access control terminal unified management process of the cloud server caused by the fact that the cloud server needs to unpack the packaging result by using different communication protocols before performing the uniform management, therefore, the technical problem of low efficiency of the process of uniformly managing the access control terminal by the cloud server in the prior art is solved, and the technical effect of improving the efficiency of uniformly managing the access control terminal by the cloud server is achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a first flowchart of a communication protocol adaptation method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a communication protocol adaptation method according to an embodiment of the present invention;
fig. 3 is a third flowchart of a communication protocol adaptation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication protocol adaptation system according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the entrance guard safety management system is a novel modern safety management system, integrates the microcomputer automatic identification technology and modern safety management measures into a whole, and relates to a plurality of new technologies such as electronics, machinery, optics, computer technology, communication technology, biotechnology and the like. The method is an effective measure for realizing safety precaution management at the entrance and exit of important departments.
In practical applications, a plurality of access terminals in the access control system may be provided by different suppliers, and each access terminal supports one communication protocol. For example, one access control system includes three access control terminals, which are respectively an access control terminal a, an access control terminal B and an access control terminal C, where the access control terminal a supports a communication protocol a1, the access control terminal B supports a communication protocol B1, and the access control terminal C supports a communication protocol C1. The cloud server manages a plurality of access control terminals in the access control system, and because the communication protocols supported by each access control terminal are different, the opening notification returned by the access control terminals received by the cloud server is encapsulated by using different communication protocols. If the cloud server needs to uniformly manage the unlocking information in the opening notification, before uniform management is performed, the opening notification needs to be unpacked by using different communication protocols to obtain the unlocking information, and then the unlocking information is uniformly managed, so that the efficiency of the process of uniformly managing the access control terminal by the cloud server is low.
To facilitate understanding of the embodiment, a detailed description is first given of a communication protocol adaptation method disclosed in the embodiment of the present invention, where the method is applied to a user terminal, the user terminal is respectively in communication connection with a cloud server and a plurality of access control terminals disposed in a security area, the plurality of access control terminals support at least two communication protocols, and access control terminal information and user information synchronized from the cloud server are stored in the user terminal, where the access control terminal information includes: as shown in fig. 1, the communication protocol adaptation method may include the following steps.
For example, the access terminal information may be as shown in table 1.
TABLE 1
Entrance guard terminal identification Communication protocol Device key
A1 Communication protocol C Device key F
A2 Communication protocol D Device key G
A3 Communication protocol E Device key H
Illustratively, the access terminal information and the user information correspond to each other. And if the target area identifier included in the user information is A, the A includes access terminals with access terminal identifiers of A1, A2 and A3 respectively. Then, the user terminal can only synchronize to the access control terminal information shown in table 1 from the cloud server. That is, the user resides in a, and the user terminal cannot be synchronized to the access terminal information of B from the cloud server.
For example, the access control terminal identifier a1 is taken as an example for explanation. The entrance guard terminal corresponding to the entrance guard terminal identification A1 supports the communication protocol C, and the entrance guard terminal corresponding to the entrance guard terminal identification A1 is opened after receiving the equipment key F.
And S101, if an opening permission notice corresponding to a target access control terminal identification returned by the cloud server is received, determining that a communication protocol corresponding to the target access control terminal identification is a target communication protocol, wherein the target access control terminal identification is input by a user.
For example, before the user wants to open the access control terminal corresponding to the target access control terminal identifier, the user terminal determines whether the user has the right to open the access control terminal corresponding to the target access control terminal identifier from the cloud server. And if the cloud server confirms that the user has the authority to open the access control terminal corresponding to the target access control terminal identification, returning an opening permission notice corresponding to the target access control terminal identification to the user terminal.
And S102, packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key.
For example, when the user wants to open the access control terminal corresponding to the access control terminal identifier a2, the target communication protocol is communication protocol D. Therefore, the device key G corresponding to the access terminal identifier a2 is encapsulated by using the communication protocol D to obtain an encapsulated device key.
And S103, sending the packaging equipment key to the access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, wherein the packaging opening notice is obtained by packaging the access control terminal by using the target communication protocol.
And step S104, de-encapsulating the received encapsulation opening notice by using the target communication protocol to obtain an opening notice.
And S105, encapsulating the user information and the opening notification by using a preset unified communication protocol to obtain an encapsulation result, and sending the encapsulation result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
For example, the cloud server may be respectively in communication connection with a plurality of user terminals, and each user terminal encapsulates the user information and the opening notification by using a unified communication protocol before sending the user information and the opening notification to the cloud server. Therefore, the cloud server can decapsulate the encapsulation result sent from each user terminal only by using the unified communication protocol.
In the embodiment of the present invention, the communication protocol adaptation method provided by the embodiment of the present invention is applied to a user terminal, the user terminal is respectively in communication connection with a cloud server and a plurality of access control terminals arranged in a security area, the plurality of access control terminals support at least two communication protocols, access control terminal information and user information synchronized from the cloud server are stored in the user terminal, and the access control terminal information includes: the method comprises the following steps of respectively corresponding to each access control terminal identification, and a communication protocol and an equipment key, wherein the method comprises the following steps: if an opening permission notice corresponding to a target access control terminal identification returned by the cloud server is received, determining that a communication protocol corresponding to the target access control terminal identification is a target communication protocol, wherein the target access control terminal identification is input by a user; packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key; sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, wherein the packaging opening notice is packaged by the access control terminal by using the target communication protocol; de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification; and packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
Therefore, if the user terminal receives an opening permission notice corresponding to the target access control terminal identification returned by the cloud server, the communication protocol corresponding to the target access control terminal identification is determined to be a target communication protocol; packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key; sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification; de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification; the user information and the opening notice are packaged by using a preset unified communication protocol to obtain a packaging result, the packaging result is sent to the cloud server, so that the cloud server uniformly manages a plurality of access control terminals, the packaging result received by the cloud server is packaged by using the unified communication protocol, the cloud server unpacks the received packaging result by using the unified communication protocol to obtain the user information and the opening notice, and further uniformly manages the user information and the opening notice without unpacking the received packaging result by using different communication protocols before performing uniform management, thereby avoiding the technical problem of low efficiency of the access control terminal unified management process of the cloud server caused by the fact that the cloud server needs to unpack the packaging result by using different communication protocols before performing the uniform management, therefore, the technical problem of low efficiency of the process of uniformly managing the access control terminal by the cloud server in the prior art is solved, and the technical effect of improving the efficiency of uniformly managing the access control terminal by the cloud server is achieved.
In another embodiment of the present invention, the method for adapting a communication protocol may further include:
and before the opening permission notice is received, sending the user information and the target access control terminal identification to the cloud server, so that the cloud server generates the opening permission notice according to the user information and the target access control terminal identification.
Illustratively, when a user wants to open an access control terminal corresponding to a target access control terminal identifier, the user terminal sends the user information and the target access control terminal identifier to the cloud server. And the cloud server determines whether the user has the authority to open the access control terminal corresponding to the target access control terminal identification according to the user information and the target access control terminal identification.
In another embodiment of the present invention, the method for adapting a communication protocol may further include:
and receiving the user information input by the user so as to enable the user to complete registration.
And sending the user information to the cloud server.
Illustratively, the user information is entered at the user terminal when the user registers at the user terminal. And the user terminal receives the user information input by the user and sends the user information to the cloud server.
In another embodiment of the present invention, the method for adapting a communication protocol may further include:
when the mobile terminal is in the non-login state, a login account and a login password input by a user are received;
sending the login account and the login password to the cloud server so that the cloud server performs login verification according to the login account, the login password and the user information;
and if the login authentication passing notification sent by the cloud server is received, displaying the login authentication passing notification.
Illustratively, after the user has registered at the user terminal, a login is made. When logging in, a user terminal inputs a login account and a login password. The method comprises the steps that a user terminal receives a login account and a login password input by a user, and the login account and the login password are sent to the cloud server. And after receiving the login account and the login password, the cloud server performs login verification according to the login account, the login password and the user information, and if the login verification is passed, the cloud server sends a login verification passing notice to the user terminal. And if the user terminal receives the login authentication passing notification sent by the cloud server, displaying the login authentication passing notification.
In another embodiment of the present invention, the method for adapting a communication protocol may further include:
and after the user successfully logs in, synchronizing the access control terminal information and the user information corresponding to the login account from the cloud server.
And saving the access control terminal information and the user information corresponding to the login account.
In another embodiment of the present invention, a detailed description is given of a communication protocol adaptation method disclosed in the embodiment of the present invention, where the method is applied to an access control terminal, the access control terminal is disposed in a security area, the access control terminal is respectively in communication connection with a plurality of user terminals, the access control terminal supports a preset communication protocol, and a preset device key for opening the access control terminal is stored in the access control terminal, as shown in fig. 2, the communication protocol adaptation method may include the following steps.
Step S201, receiving an encapsulation device key sent by the user terminal, wherein the encapsulation device key is obtained by the user terminal encapsulating a device key corresponding to the access control terminal by using the preset communication protocol.
Step S202, the preset communication protocol is utilized to decapsulate the encapsulated device key to obtain the device key.
Step S203, determining whether the device key is the same as the preset device key.
And step S204, if the equipment key is the same as the preset equipment key, starting, and simultaneously generating a starting notice.
Step S205, using the preset communication protocol to encapsulate the opening notification, so as to obtain an encapsulation opening notification, and return the encapsulation opening notification to the user terminal.
In another embodiment of the present invention, a detailed description is given of the communication protocol adaptation method disclosed in the embodiment of the present invention, where the method is applied to a cloud server, the cloud server is respectively in communication connection with a plurality of user terminals, and a correspondence between an area identifier and an identifier set of an access control terminal allowed to be opened is stored in the cloud server, as shown in fig. 3, the communication protocol adaptation method may include the following steps.
And S301, receiving the user information and the target access control terminal identification sent by the user terminal.
Step S302, according to the target area identification in the user information, in the corresponding relation between the area identification and the entrance guard terminal identification set allowed to be opened, the entrance guard terminal identification set allowed to be opened corresponding to the target area identification is determined as a target identification set.
For example, the correspondence between the area identifier and the identifier set of the access control terminal allowed to be opened may be shown in table 2.
TABLE 2
Region identification Access control terminal identification set allowing to be opened
A ridge A1、A2
B-ridge B1、B2、B3
C-shaped ridge C1、C2
Illustratively, when the target area is identified as A, determining a set of allowed access terminal identifications (including A1 and A2) corresponding to the target area as a target identification set. I.e. the set of target identities comprises: a1 and a 2.
Step S303, judging whether the target entrance guard terminal identification is located in the target identification set.
And step S304, if the target entrance guard terminal identification is located in the target identification set, sending an opening permission notice corresponding to the target entrance guard terminal identification to the user terminal.
For example, if the target access control terminal identifier is a2, it is determined that the target access control terminal identifier a2 is located in the target identifier set, and therefore, an opening permission notification corresponding to the target access control terminal identifier a2 is sent to the user terminal.
In another embodiment of the present invention, a communication protocol adapting apparatus disclosed in the embodiment of the present invention is described in detail, including: the device comprises a determining module, a first packaging module, a sending module, a decapsulating module and a second packaging module;
the determining module is used for determining that a communication protocol corresponding to a target access control terminal identifier is a target communication protocol if an opening permission notice corresponding to the target access control terminal identifier returned by the cloud server is received, and the target access control terminal identifier is input by a user;
the first encapsulation module is used for encapsulating the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain an encapsulated equipment key;
the sending module is used for sending the packaging equipment key to the access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, and the packaging opening notice is packaged by the access control terminal by using the target communication protocol;
the decapsulation module is configured to decapsulate the received encapsulation opening notification by using the target communication protocol to obtain an opening notification;
the second packaging module is used for packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
In another embodiment of the present invention, a communication protocol adaptation system disclosed in the embodiment of the present invention is described in detail, including: a plurality of user terminals applying the method according to any one of the above embodiments, a plurality of access terminals applying the method according to the above embodiments, and a cloud server applying the method according to the above embodiments.
Illustratively, the system for adapting the communication protocol includes: description is given by taking a cloud server, two user terminals, and three access control terminals as examples. As shown in fig. 4, the communication protocol adaptation system may include: cloud server 11, two user terminal and three entrance guard's terminal. The two user terminals are respectively: user terminal 12 and user terminal 13. Three entrance guard terminals do respectively: door access terminal 14, door access terminal 15, and door access terminal 16.
In a further embodiment of the invention, a computer-readable medium having non-volatile program code executable by a processor and causing the processor to perform the method according to any of the above embodiments is described in detail.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The computer program product for performing the communication protocol adaptation method provided in the embodiment of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. The utility model provides a communication protocol adaptation method, its characterized in that, the method is applied to user terminal, user terminal respectively with cloud ware and a plurality of entrance guard terminal communication connection who sets up in the security protection region, it is a plurality of entrance guard terminal supports two kinds of at least communication protocols, user terminal internal storage has follow synchronous entrance guard terminal information and user information on the cloud ware, entrance guard terminal information includes: the method comprises the following steps of respectively corresponding to each access control terminal identification, and a communication protocol and an equipment key, wherein the method comprises the following steps:
if an opening permission notice corresponding to a target access control terminal identification returned by the cloud server is received, determining that a communication protocol corresponding to the target access control terminal identification is a target communication protocol, wherein the target access control terminal identification is input by a user;
packaging the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain a packaged equipment key;
sending the packaging equipment key to an access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, wherein the packaging opening notice is packaged by the access control terminal by using the target communication protocol;
de-encapsulating the received encapsulation opening notification by using the target communication protocol to obtain an opening notification;
and packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
2. The communication protocol adaptation method of claim 1, further comprising:
and before the opening permission notice is received, sending the user information and the target access control terminal identification to the cloud server, so that the cloud server generates the opening permission notice according to the user information and the target access control terminal identification.
3. The communication protocol adaptation method of claim 2, further comprising:
receiving the user information input by a user so as to enable the user to complete registration;
and sending the user information to the cloud server.
4. The communication protocol adaptation method of claim 3, further comprising:
when the mobile terminal is in the non-login state, a login account and a login password input by a user are received;
sending the login account and the login password to the cloud server so that the cloud server performs login verification according to the login account, the login password and the user information;
and if the login authentication passing notification sent by the cloud server is received, displaying the login authentication passing notification.
5. The communication protocol adaptation method of claim 4, further comprising:
after the user successfully logs in, synchronizing the access control terminal information and the user information corresponding to the login account from the cloud server;
and saving the access control terminal information and the user information corresponding to the login account.
6. A communication protocol adaptation apparatus, comprising: the device comprises a determining module, a first packaging module, a sending module, a decapsulating module and a second packaging module;
the determining module is used for determining that a communication protocol corresponding to a target access control terminal identifier is a target communication protocol if an opening permission notice corresponding to the target access control terminal identifier returned by the cloud server is received, and the target access control terminal identifier is input by a user;
the first encapsulation module is used for encapsulating the equipment key corresponding to the target access control terminal identification by using the target communication protocol to obtain an encapsulated equipment key;
the sending module is used for sending the packaging equipment key to the access control terminal corresponding to the target access control terminal identification so that the access control terminal returns a packaging opening notice generated according to the packaging equipment key, and the packaging opening notice is packaged by the access control terminal by using the target communication protocol;
the decapsulation module is configured to decapsulate the received encapsulation opening notification by using the target communication protocol to obtain an opening notification;
the second packaging module is used for packaging the user information and the opening notification by using a preset unified communication protocol to obtain a packaging result, and sending the packaging result to the cloud server so that the cloud server can uniformly manage the plurality of access control terminals.
7. A communication protocol adaptation system, comprising: a plurality of user terminals, a plurality of access terminals and a cloud server applying the method according to any one of claims 1 to 5.
8. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-5.
CN201810852165.XA 2018-07-27 2018-07-27 Communication protocol adaptation method, device and system Active CN108989321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810852165.XA CN108989321B (en) 2018-07-27 2018-07-27 Communication protocol adaptation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810852165.XA CN108989321B (en) 2018-07-27 2018-07-27 Communication protocol adaptation method, device and system

Publications (2)

Publication Number Publication Date
CN108989321A CN108989321A (en) 2018-12-11
CN108989321B true CN108989321B (en) 2021-04-06

Family

ID=64552275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810852165.XA Active CN108989321B (en) 2018-07-27 2018-07-27 Communication protocol adaptation method, device and system

Country Status (1)

Country Link
CN (1) CN108989321B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225317A (en) * 2015-10-03 2016-01-06 上海大学 A kind of network access control system of multichannel centralized management
CN107369229A (en) * 2017-06-08 2017-11-21 南通京希信息技术有限公司 Home intelligent access control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246607A (en) * 2007-02-13 2008-08-20 陈年 Digital authentication control method for access control system and access control system using the same
CN103357134B (en) * 2012-12-03 2016-01-20 苏州经贸职业技术学院 The automatic management and control of intelligent fire interface interrupt and emergency processing method
US9230373B2 (en) * 2013-02-07 2016-01-05 Honeywell International Inc. System and method to aggregate control of multiple devices via multicast messages and automatic set up of connections
CN104966336B (en) * 2015-05-29 2020-01-17 深圳光启智能光子技术有限公司 Intelligent lock and authorization management method and device of intelligent lock

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105225317A (en) * 2015-10-03 2016-01-06 上海大学 A kind of network access control system of multichannel centralized management
CN107369229A (en) * 2017-06-08 2017-11-21 南通京希信息技术有限公司 Home intelligent access control system

Also Published As

Publication number Publication date
CN108989321A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US11418513B2 (en) Multilayer access control for connected devices
US20190228626A1 (en) Wireless sensor network
CN105656890B (en) A kind of FIDO authenticators and system and method based on TEE and without line justification
CN108235319A (en) Allow for the communication between equipment
CN103152400B (en) The method, system and the cloud server that log in is carried out by mobile terminal
US10575273B2 (en) Registration of devices in secure domain
CN106027462B (en) A kind of operation requests control method and device
CN108377272B (en) Method and system for managing terminal of Internet of things
US10244392B2 (en) Over-the-air personalization of network devices
CN104753674B (en) A kind of verification method and equipment of application identity
CN102859935A (en) System And Methods For Remote Maintenance Of Multiple Clients In An Electronic Network Using Virtual Machines
CN110381075B (en) Block chain-based equipment identity authentication method and device
CN113360882A (en) Cluster access method, device, electronic equipment and medium
CN110445765B (en) Data sharing method based on block chain, terminal device and medium
CN104580191A (en) Offline control method and system for smart home
CN104533185A (en) Collecting system based on code case
CN112468497B (en) Block chain terminal equipment authorization authentication method, device, equipment and storage medium
CN113872951B (en) Hybrid cloud security policy issuing method and device, electronic equipment and storage medium
WO2016008212A1 (en) Terminal as well as method for detecting security of terminal data interaction, and storage medium
CN110099041A (en) A kind of Internet of Things means of defence and equipment, system
CN114363067A (en) Network access control method, device, computer equipment and storage medium
CN108989321B (en) Communication protocol adaptation method, device and system
EP3926992B1 (en) Electronic device, and authentication method in electronic device
CN112286911A (en) Database management method and device, equipment and storage medium
US20210258163A1 (en) Management of devices joining a network

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
CB02 Change of applicant information

Address after: 510000 Room 6201, No. 28, North Pier, Huangpu Village, Haizhu District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Yunzhiyi Internet of Things Co.,Ltd.

Address before: 510000 Room 6201, No. 28, North Pier, Huangpu Village, Haizhu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU YUNWAN INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant