CN111369712B - Data transmission method and device, electronic equipment and computer readable storage medium - Google Patents
Data transmission method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111369712B CN111369712B CN201811593126.9A CN201811593126A CN111369712B CN 111369712 B CN111369712 B CN 111369712B CN 201811593126 A CN201811593126 A CN 201811593126A CN 111369712 B CN111369712 B CN 111369712B
- Authority
- CN
- China
- Prior art keywords
- sam
- decoding
- server
- data packet
- gateway
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a data transmission method, a data transmission device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: sending a request access instruction to an intermediate server; generating and sending a first data packet to the SAM decoding server according to the received SAM decoding server parameters sent by the intermediate server, wherein the first data packet is used for establishing an allowance rule for the SAM decoding server by a door lock gateway; and receiving a second data packet sent by the SAM decoding server, wherein the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway. The method can realize direct communication between the door lock gateway and the SAM decoding server, and reduce time delay in the identity information decoding process.
Description
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a data transmission method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of the cloud decoding technology of the identity card, the intelligent door lock based on the identity card authentication is more and more commonly used.
The intelligent door locks are distributed all over the country, the cloud decoding servers are generally deployed in a centralized mode, the intelligent door locks and the cloud decoding servers are both located in a local area network in the identity information decoding process, and the intelligent door locks and the cloud decoding servers need to be communicated through address conversion from an internal network to an external network and from the external network to the internal network for many times.
The intelligent door lock and the cloud decoding server communicate through multiple times of network address conversion, and the network environment where the intelligent door lock is located is complex and uncertain in stability, so that the problem that the time delay of the identity information decoding process is long exists.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, an electronic device and a computer-readable storage medium, aiming at the defects of the existing mode, and is used for solving the problem that the time delay of the identity information decoding process is long in the prior art.
In a first aspect, a data transmission method is provided, which is applied to a door lock gateway, and the method includes:
sending a request access instruction to an intermediate server;
generating and sending a first data packet to the SAM decoding server according to the received SAM decoding server parameters sent by the intermediate server, wherein the first data packet is used for establishing an allowance rule for the SAM decoding server by a door lock gateway;
and receiving a second data packet sent by the SAM decoding server, wherein the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway.
In a second aspect, a data transmission device is provided, which is applied to a door lock gateway, and comprises:
the first processing module is used for sending a request access instruction to the intermediate server;
the second processing module is used for generating and sending a first data packet to the SAM decoding server according to the received SAM decoding server parameters sent by the intermediate server, wherein the first data packet is used for establishing an allowance rule for the SAM decoding server by the door lock gateway;
and the third processing module is used for receiving a second data packet sent by the SAM decoding server, and the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
and the processor is used for executing the method of the first aspect of the application by calling the operation instruction.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program for performing the method of the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
1) the door lock gateway and the SAM decoding server are in direct communication, so that the number of times of network address conversion is reduced, and the network delay in decoding can be reduced;
2) the door lock gateway and the SAM decoding server are in direct communication, so that the problem of decoding failure caused by unstable network environment can be avoided, and the decoding success rate is improved;
3) the technical scheme is easy to implement, and the decoding delay problem of all intelligent door locks in the city can be solved only by deploying the SAM decoding server in the city where the intelligent door locks are located.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Example one
The embodiment of the application provides a data transmission method, a flow schematic diagram of the method is shown in fig. 1, the method is applied to a door lock gateway, and the method comprises the following steps:
step S101, sending a request access instruction to an intermediate server.
And step S102, generating and sending a first data packet to the SAM decoding server according to the received SAM decoding server parameters sent by the intermediate server, wherein the first data packet is used for the door lock gateway to establish an allowance rule for the SAM decoding server.
And step S103, receiving a second data packet sent by the SAM decoding server, wherein the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway.
For the technical solution shown in fig. 1, it should be noted that the door lock gateway sends a request access instruction to the intermediate server; the door lock gateway generates and sends a first data packet to the SAM decoding server according to the received SAM decoding server parameters sent by the intermediate server, wherein the first data packet is used for establishing an allowable rule for the SAM decoding server by the door lock gateway; and the door lock gateway receives a second data packet sent by the SAM decoding server, and the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway. Therefore, direct communication between the door lock gateway and the SAM decoding server can be realized, and time delay in the identity information decoding process is reduced.
With respect to the technical solution shown in fig. 1, it should be noted that, before sending the request access instruction to the intermediate server, the method further includes: and the intermediate server is used for determining SAM decoding server parameters according to the SAM decoding server data packet sent by the SAM decoding server, and the SAM decoding server parameters comprise the IP address and the port of the SAM decoding server.
Preferably, generating and transmitting the first data packet to the SAM decoding server according to the received SAM decoding server parameter transmitted by the intermediate server comprises: and generating and sending a first data packet to the SAM decoding server according to the IP address and the port of the SAM decoding server, wherein the first data packet is a UDP data packet.
Preferably, the receiving the second data packet sent by the SAM decoding server includes: and receiving a second data packet which is sent by the SAM decoding server and generated based on the first data packet, wherein the second data packet is a UDP data packet.
With respect to the technical solution shown in fig. 1, it should be noted that after receiving the second data packet sent by the SAM decoding server, the method further includes: sending a decoding request instruction to the SAM decoding server; and receiving decoded identity information which is sent by the SAM decoding server and generated after decoding operation is carried out according to the request decoding instruction.
Preferably, after receiving the second data packet sent by the SAM decoding server, the method further comprises: sending a request decoding instruction to an SAM decoding server, so that the SAM decoding server performs decoding operation according to the request decoding instruction, and sending the decoded identity information to a cloud decoding system for storage; sending an identity information query instruction to a cloud decoding system; and receiving the decoded identity information sent by the cloud decoding system according to the identity information query instruction.
Example two
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes the technical solution of the foregoing first embodiment by specific examples.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method provided in an embodiment of the present application, and as shown in fig. 2, the method specifically includes:
step S201, the door lock gateway sends a data packet to the intermediate server.
It should be noted that the door lock gateway sends a data packet to the intermediate server, where the data packet is a gateway data packet.
Step S202, the intermediate server acquires the IP address and the port of the door lock gateway.
It should be noted that, after receiving the gateway data packet, the intermediate server determines gateway parameters according to the gateway data packet, where the gateway parameters include an IP address and a port of the door lock gateway.
In step S203, the SAM decoding server transmits the data packet to the intermediate server.
It should be noted that the SAM decoding server sends a data packet to the intermediate server, where the data packet is a SAM decoding server data packet, and the SAM decoding server includes an identification card decoding module (SAM module) authorized by the public security department to produce.
In step S204, the intermediate server acquires the IP address and port of the SAM decoding server.
It should be noted that, after the intermediate server receives the SAM decoding server data packet, the intermediate server determines SAM decoding server parameters according to the SAM decoding server data packet, and the SAM decoding server parameters include an IP address and a port of the SAM decoding server.
And step S205, the door lock gateway sends a request access instruction to the intermediate server.
It should be noted that the door lock gateway sends a request access instruction to the intermediate server, and the request access instruction is used for the door lock gateway to request the intermediate server to access the SAM decoding server.
In step S206, the intermediate server transmits the IP address and port of the SAM decoding server to the door lock gateway.
It should be noted that, the intermediate server stores the acquired IP address and port of the SAM decoding server, and after receiving the access request instruction sent by the door lock gateway, the intermediate server sends the IP address and port of the SAM decoding server to the door lock gateway.
And step S207, the intermediate server sends the IP address and the port of the door lock gateway to the SAM decoding server.
It should be noted that, the intermediate server stores the acquired IP address and port of the door lock gateway, and after the intermediate server sends the IP address and port of the SAM decoding server to the door lock gateway, the intermediate server sends the IP address and port of the door lock gateway to the SAM decoding server.
In step S208, the door lock gateway transmits a UDP packet to the SAM decoding server.
It should be noted that, the door lock gateway generates and sends a UDP packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, where the SAM decoding server parameter includes the IP address and port of the SAM decoding server, and the UDP packet is a first packet including an allowance rule of the door lock gateway for the SAM decoding server.
In step S209, the door lock gateway establishes an allowance rule for the SAM decoding server.
It should be noted that, after the SAM decoding server receives the UDP packet sent by the door lock gateway, the door lock gateway establishes an enable rule for the SAM decoding server.
Step S210, the SAM decoding server sends a UDP packet to the door lock gateway.
It should be noted that, the SAM decoding server generates and sends a UDP packet to the door lock gateway according to the received gateway parameters sent by the intermediate server, where the gateway parameters include the IP address and the port of the door lock gateway, and the UDP packet is a second packet including the permission rule of the SAM decoding server for the door lock gateway.
In step S211, the SAM decoding server establishes an allowance rule for the door lock gateway.
It should be noted that, after the door lock gateway receives the UDP packet sent by the SAM decoding server, the SAM decoding server establishes an admission rule for the door lock gateway.
In step S212, the door lock gateway sends a request decode instruction to the SAM decode server.
It should be noted that, after receiving the un-decoded identity information, the door lock gateway sends a decoding request instruction to the SAM decoding server, and requests the SAM decoding server to decode the un-decoded identity information.
In step S213, the SAM decoding server completes the decoding operation.
It should be noted that the SAM decoding server performs a decoding operation according to the request decoding instruction, and generates decoded identity information.
And step S214, the SAM decoding server sends the decoded identity information to the door lock gateway.
EXAMPLE III
Based on the same inventive concept of the foregoing embodiments, the present embodiment describes the technical solution of the foregoing first embodiment by specific examples.
Referring to fig. 3, fig. 3 is a schematic flow chart of a data transmission method provided in the embodiment of the present application, and as shown in fig. 3, the method specifically includes:
step S301, the door lock gateway sends a data packet to the intermediate server.
It should be noted that the door lock gateway sends a data packet to the intermediate server, where the data packet is a gateway data packet.
Step S302, the intermediate server acquires the IP address and the port of the door lock gateway.
It should be noted that, after receiving the gateway data packet, the intermediate server determines gateway parameters according to the gateway data packet, where the gateway parameters include an IP address and a port of the door lock gateway.
In step S303, the SAM decoding server sends a data packet to the intermediate server.
It should be noted that the SAM decoding server sends a data packet to the intermediate server, where the data packet is a SAM decoding server data packet, and the SAM decoding server includes an identification card decoding module (SAM module) authorized by the public security department to produce.
In step S304, the intermediate server acquires the IP address and port of the SAM decoding server.
It should be noted that, after the intermediate server receives the SAM decoding server data packet, the intermediate server determines SAM decoding server parameters according to the SAM decoding server data packet, and the SAM decoding server parameters include an IP address and a port of the SAM decoding server.
In step S305, the door lock gateway sends a request access instruction to the intermediate server.
It should be noted that the door lock gateway sends a request access instruction to the intermediate server, and the request access instruction is used for the door lock gateway to request the intermediate server to access the SAM decoding server.
Step S306, the intermediate server sends the IP address and the port of the SAM decoding server to the door lock gateway.
It should be noted that, the intermediate server stores the acquired IP address and port of the SAM decoding server, and after receiving the access request instruction sent by the door lock gateway, the intermediate server sends the IP address and port of the SAM decoding server to the door lock gateway.
In step S307, the intermediate server sends the IP address and the port of the door lock gateway to the SAM decoding server.
It should be noted that, the intermediate server stores the acquired IP address and port of the door lock gateway, and after the intermediate server sends the IP address and port of the SAM decoding server to the door lock gateway, the intermediate server sends the IP address and port of the door lock gateway to the SAM decoding server.
Step S308, the door lock gateway sends a UDP data packet to the SAM decoding server.
It should be noted that, the door lock gateway generates and sends a UDP packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, where the SAM decoding server parameter includes the IP address and port of the SAM decoding server, and the UDP packet is a first packet including an allowance rule of the door lock gateway for the SAM decoding server.
In step S309, the doorlock gateway establishes an allowance rule for the SAM decoding server.
It should be noted that, after the SAM decoding server receives the UDP packet sent by the door lock gateway, the door lock gateway establishes an enable rule for the SAM decoding server.
In step S310, the SAM decoding server sends a UDP packet to the door lock gateway.
It should be noted that, the SAM decoding server generates and sends a UDP packet to the door lock gateway according to the received gateway parameters sent by the intermediate server, where the gateway parameters include the IP address and the port of the door lock gateway, and the UDP packet is a second packet including the permission rule of the SAM decoding server for the door lock gateway.
In step S311, the SAM decoding server establishes an allowance rule for the door lock gateway.
It should be noted that, after the door lock gateway receives the UDP packet sent by the SAM decoding server, the SAM decoding server establishes an admission rule for the door lock gateway.
In step S312, the door lock gateway sends a decoding request command to the SAM decoding server.
It should be noted that, after receiving the un-decoded identity information, the door lock gateway sends a decoding request instruction to the SAM decoding server, and requests the SAM decoding server to decode the un-decoded identity information.
In step S313, the SAM decoding server completes the decoding operation.
It should be noted that the SAM decoding server performs a decoding operation according to the request decoding instruction, and generates decoded identity information.
Step S314, the SAM decoding server sends the decoded identity information to the cloud decoding system.
Step S315, the cloud decoding system stores the decoded identity information.
Step S316, the door lock gateway sends an identity information query instruction to the cloud decoding system.
It should be noted that the door lock gateway requests the cloud decoding system to query the decoded identity information.
Step S317, the cloud decoding system sends the decoded identity information to the door lock gateway.
Example four
Based on the same inventive concept of the foregoing embodiments, the present embodiment further provides a data transmission apparatus, which is schematically shown in fig. 4, and the data transmission apparatus 40 includes a first processing module 401, a second processing module 402, and a third processing module 403,
a first processing module 401, configured to send a request access instruction to an intermediate server;
a second processing module 402, configured to generate and send a first data packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, where the first data packet is used for the door lock gateway to establish an allowance rule for the SAM decoding server;
a third processing module 403, configured to generate and send a first data packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, where the first data packet is used for the door lock gateway to establish an allowance rule for the SAM decoding server.
In a preferred embodiment, the data transmission device 40 further comprises a fourth processing module 404 and a fifth processing module 405,
a fourth processing module 404, configured to send a decoding request instruction to the SAM decoding server;
a fifth processing module 405, configured to receive the decoded identity information that is generated after the SAM decoding server performs the decoding operation according to the request decoding instruction.
In a preferred embodiment, the data transmission apparatus 40 further comprises a sixth processing module 406, before sending the request access instruction to the intermediate server, the sixth processing module 406 is configured to send a gateway packet to the intermediate server, the gateway packet being used by the intermediate server to determine gateway parameters according to the gateway packet, the gateway parameters including the IP address and the port of the door lock gateway, the intermediate server being used to determine SAM decode server parameters according to the SAM decode server packet sent by the SAM decode server, the SAM decode server parameters including the IP address and the port of the SAM decode server.
In a preferred embodiment, the second processing module 402 is specifically configured to generate and send a first data packet to the SAM decoding server according to the IP address and the port of the SAM decoding server, where the first data packet is a UDP data packet.
In a preferred embodiment, the third processing module 403 is specifically configured to receive a second data packet generated based on the first data packet and sent by the SAM decoding server, where the second data packet is a UDP data packet.
In a preferred embodiment, the data transmission device 40 further includes a seventh processing module 407, an eighth processing module 408 and a ninth processing module 409,
a seventh processing module 407, configured to send a request decoding instruction to the SAM decoding server, so that the SAM decoding server performs a decoding operation according to the request decoding instruction, and sends the decoded identity information to the cloud decoding system for storage;
the eighth processing module 408 is configured to send an identity information query instruction to the cloud decoding system;
the ninth processing module 409 is configured to receive the decoded identity information sent by the cloud decoding system according to the identity information query instruction.
For the content that is not described in detail in the data transmission device provided in the embodiment of the present application, reference may be made to the data transmission method described above, and the beneficial effects that the data transmission device provided in the embodiment of the present application can achieve are the same as those of the data transmission method described above, which are not described herein again.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, a schematic structural diagram of the electronic device is shown in fig. 5, the electronic device 5000 includes at least one processor 5001, a memory 5002, and a bus 5003, and the at least one processor 5001 is electrically connected to the memory 5002; the memory 5002 is configured to store at least one computer-executable instruction, and the processor 5001 is configured to execute the at least one computer-executable instruction so as to perform the steps of any one of the data transmission methods provided by the embodiments of the present application.
Further, the processor 5001 may be an FPGA (Field-Programmable Gate Array) or other devices with logic processing capability, such as an MCU (micro controller Unit) and a CPU (Central processing Unit).
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program is executed to implement the steps of the data transmission method of the embodiments of the present application.
The computer-readable storage medium provided by the embodiments of the present application includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The application of the embodiment of the application has at least the following beneficial effects:
1) the door lock gateway and the SAM decoding server are in direct communication, so that the number of times of network address conversion is reduced, and the network delay in decoding can be reduced;
2) the door lock gateway and the SAM decoding server are in direct communication, so that the problem of decoding failure caused by unstable network environment can be avoided, and the decoding success rate is improved;
3) the technical scheme is easy to implement, and the decoding delay problem of all intelligent door locks in the city can be solved only by deploying the SAM decoding server in the city where the intelligent door locks are located.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (7)
1. A data transmission method is applied to a door lock gateway and is characterized by comprising the following steps:
sending a request access instruction to an intermediate server;
generating and sending a first data packet to a SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, wherein the first data packet is used for the door lock gateway to establish an allowance rule for the SAM decoding server, and the first data packet is a UDP (user Datagram protocol) data packet;
receiving a second data packet sent by the SAM decoding server, wherein the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway, and the second data packet is a UDP data packet;
before the sending the request access instruction to the intermediate server, the method comprises the following steps:
sending a gateway data packet to the intermediate server, wherein the gateway data packet is used for the intermediate server to determine gateway parameters according to the gateway data packet, the gateway parameters comprise an IP address and a port of the door lock gateway, the intermediate server is used for determining the SAM decoding server parameters according to the SAM decoding server data packet sent by the SAM decoding server, and the SAM decoding server parameters comprise the IP address and the port of the SAM decoding server;
after the receiving the second data packet sent by the SAM decoding server, further comprising:
sending a decoding request instruction to the SAM decoding server;
and receiving the decoded identity information which is sent by the SAM decoding server and generated after decoding operation is carried out according to the request decoding instruction.
2. The method according to claim 1, wherein the generating and sending the first packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server comprises:
and generating and sending a first data packet to the SAM decoding server according to the IP address and the port of the SAM decoding server.
3. The method of claim 2, wherein receiving the second data packet sent by the SAM decoding server comprises:
and receiving a second data packet which is sent by the SAM decoding server and generated based on the first data packet.
4. The method of claim 1, wherein after the receiving the second data packet sent by the SAM decoding server, further comprising:
sending a request decoding instruction to the SAM decoding server, so that the SAM decoding server performs decoding operation according to the request decoding instruction, and sending decoded identity information to a cloud decoding system for storage;
sending an identity information query instruction to the cloud decoding system;
and receiving the decoded identity information sent by the cloud decoding system according to the identity information query instruction.
5. A data transmission device is applied to a door lock gateway and is characterized by comprising:
the first processing module is used for sending a request access instruction to the intermediate server;
the second processing module is used for generating and sending a first data packet to the SAM decoding server according to the received SAM decoding server parameter sent by the intermediate server, wherein the first data packet is used for the door lock gateway to establish an allowance rule for the SAM decoding server, and the first data packet is a UDP (user Datagram protocol) data packet;
a third processing module, configured to receive a second data packet sent by the SAM decoding server, where the second data packet is used for the SAM decoding server to establish an allowance rule for the door lock gateway, and the second data packet is a UDP data packet;
a fourth processing module, configured to send a decoding request instruction to the SAM decoding server;
a fifth processing module, configured to receive decoded identity information that is generated after a decoding operation is performed according to the request decoding instruction and sent by the SAM decoding server;
a sixth processing module, configured to send a gateway packet to the intermediate server, where the gateway packet is used by the intermediate server to determine gateway parameters according to the gateway packet, where the gateway parameters include an IP address and a port of the door lock gateway, and the intermediate server is used to determine SAM decoding server parameters according to a SAM decoding server packet sent by the SAM decoding server, where the SAM decoding server parameters include an IP address and a port of the SAM decoding server.
6. An electronic device, comprising: a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of the claims 1 to 4 by calling the operation instruction.
7. A computer-readable storage medium, characterized by storing a computer program for executing the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811593126.9A CN111369712B (en) | 2018-12-25 | 2018-12-25 | Data transmission method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811593126.9A CN111369712B (en) | 2018-12-25 | 2018-12-25 | Data transmission method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111369712A CN111369712A (en) | 2020-07-03 |
CN111369712B true CN111369712B (en) | 2022-04-26 |
Family
ID=71209797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811593126.9A Active CN111369712B (en) | 2018-12-25 | 2018-12-25 | Data transmission method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111369712B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385471A (en) * | 2016-10-21 | 2017-02-08 | 合肥哦走信息技术有限公司 | Port mapping and gateway dynamic IP address resolution method for Internet of things |
CN107395496A (en) * | 2017-06-16 | 2017-11-24 | 腾讯科技(深圳)有限公司 | A kind of data forwarding method, device, gateway device and storage medium |
CN107993310A (en) * | 2017-10-31 | 2018-05-04 | 北京三快在线科技有限公司 | It is self-service to move in management system and method, electronic equipment and storage medium |
WO2018210411A1 (en) * | 2017-05-16 | 2018-11-22 | Telefonaktiebolaget Lm Ericsson (Publ) | Low latency media ingestion system, devices and methods |
CN109039915A (en) * | 2018-08-24 | 2018-12-18 | 珠海迈越信息技术有限公司 | A kind of method and system for establishing data connection channel |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060164205A1 (en) * | 2005-01-27 | 2006-07-27 | Buckingham Duane W | Proximity wake-up activation of electronic circuits |
CN108923935B (en) * | 2018-06-29 | 2021-07-09 | 天津金汤智能科技发展有限公司 | Narrowband Internet of things data analysis management control system, method and application |
-
2018
- 2018-12-25 CN CN201811593126.9A patent/CN111369712B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106385471A (en) * | 2016-10-21 | 2017-02-08 | 合肥哦走信息技术有限公司 | Port mapping and gateway dynamic IP address resolution method for Internet of things |
WO2018210411A1 (en) * | 2017-05-16 | 2018-11-22 | Telefonaktiebolaget Lm Ericsson (Publ) | Low latency media ingestion system, devices and methods |
CN107395496A (en) * | 2017-06-16 | 2017-11-24 | 腾讯科技(深圳)有限公司 | A kind of data forwarding method, device, gateway device and storage medium |
CN107993310A (en) * | 2017-10-31 | 2018-05-04 | 北京三快在线科技有限公司 | It is self-service to move in management system and method, electronic equipment and storage medium |
CN109039915A (en) * | 2018-08-24 | 2018-12-18 | 珠海迈越信息技术有限公司 | A kind of method and system for establishing data connection channel |
Also Published As
Publication number | Publication date |
---|---|
CN111369712A (en) | 2020-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107948204B (en) | One-key login method and system, related equipment and computer readable storage medium | |
EP3723399A1 (en) | Identity verification method and apparatus | |
RU2392754C2 (en) | Context-limited shared secret | |
US11451959B2 (en) | Authenticating client devices in a wireless communication network with client-specific pre-shared keys | |
CN105262773B (en) | A kind of verification method and device of Internet of things system | |
CN109067549A (en) | Virtual key two-way authentication system and method | |
CN111800262B (en) | Digital asset processing method and device and electronic equipment | |
CN112804133B (en) | Encryption group chat method and system based on blockchain technology | |
US20170072875A1 (en) | Data communication method for vehicle, electronic control unit and system thereof | |
CN114143108B (en) | Session encryption method, device, equipment and storage medium | |
EP4184866A1 (en) | Method and apparatus for access control on ship network | |
CN111541776A (en) | Safe communication device and system based on Internet of things equipment | |
CN105050086A (en) | Method for terminal to log in Wifi hotspot | |
CN110351316A (en) | A kind of remote software upgrade method and device | |
CN112770321A (en) | Internet of things equipment authentication and secure transmission method, computer equipment and storage medium | |
CN113343196A (en) | Internet of things security authentication method | |
CN108075895B (en) | Node permission method and system based on block chain | |
CN113316149A (en) | Identity security authentication method, device, system, wireless access point and medium | |
US20110241825A1 (en) | Identification information management system, method of generating and managing identification information, terminal, and generation and management programs | |
CN109064606B (en) | Access control task execution method and system, access control system and readable storage medium | |
CN111369712B (en) | Data transmission method and device, electronic equipment and computer readable storage medium | |
CN110035082A (en) | A kind of interchanger admission authentication method, interchanger and system | |
CN115243256A (en) | Gateway dynamic login method and device | |
CN112104701B (en) | Method, device, network node and storage medium for cross-link communication | |
CN107623743A (en) | A kind of remote document access method, service end and system |
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 |