CN113109643B - Automatic testing method and device for intelligent door lock - Google Patents
Automatic testing method and device for intelligent door lock Download PDFInfo
- Publication number
- CN113109643B CN113109643B CN202110262337.XA CN202110262337A CN113109643B CN 113109643 B CN113109643 B CN 113109643B CN 202110262337 A CN202110262337 A CN 202110262337A CN 113109643 B CN113109643 B CN 113109643B
- Authority
- CN
- China
- Prior art keywords
- message
- door lock
- intelligent door
- interactive
- 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
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- 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/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- 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 Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an automatic testing method and device of an intelligent door lock. After the intelligent door lock is connected with the gateway or the intelligent door lock in the local area network, the intelligent door lock is communicated with the gateway or the intelligent door lock according to different message types, so that the intelligent door lock is tested, automatic testing of a plurality of intelligent door locks can be realized, and the efficiency of testing the intelligent door lock is improved.
Description
Technical Field
The invention relates to the technical field of intelligent hotels, in particular to an automatic testing method and device for an intelligent door lock.
Background
At present, information technologies such as mobile internet, cloud computing, mobile location service, internet of things and artificial intelligence are developed rapidly, necessary technical support is provided for smart life, and software and hardware support is provided for development of intelligent door locks.
The intelligent door lock is an indispensable important device for intelligent life. In the hotel, the intelligent door lock provides a convenient and efficient management mode for a hotel manager, and provides a more convenient check-in mode and higher security defense for hotel guests. In the family, the intelligent door lock provides convenient and fast life for the family user.
The door locks in different application scenes are different in the installation acceptance testing stage, for example, when the household intelligent door lock is installed, only the function verification of a single door lock needs to be considered, and the timeliness of acceptance work does not need to be considered too much; when the hotel door lock is installed and checked, the intelligent function of the door lock is verified one by one at the same floor in dozens of rooms, and undoubtedly, huge manpower is consumed. Therefore, in a hotel environment, efficient verification of the intelligent function of the door lock is undoubtedly a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides an automatic testing method and device of an intelligent door lock, which are used for improving the efficiency of testing the intelligent door lock.
In a first aspect, an embodiment of the present invention provides an automatic testing method for an intelligent door lock, including:
the application program establishes communication connection with a gateway or an intelligent door lock connected with the intelligent door lock in a local area network;
the application creates a plurality of pipes of different message types;
and the application program sends test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types.
According to the technical scheme, after the connection with the gateway or the intelligent door lock in the local area network is established, the communication with the gateway or the intelligent door lock is carried out according to the pipelines of different message types, the test of the intelligent door lock is realized, the automatic test of a plurality of intelligent door locks can be realized, and the efficiency of testing the intelligent door lock is improved.
Optionally, the application program establishes a communication connection with a gateway connected with an intelligent door lock in the local area network or the intelligent door lock, including:
the application program broadcasts a first UDP message to a gateway connected with an intelligent door lock or a first port of the intelligent door lock in a local area network; after the intelligent door lock or the gateway connected with the intelligent door lock receives the first UDP message, a second UDP message is sent through unicast at a second port;
and after receiving the second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock, the application program establishes communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message.
Optionally, the establishing, by the application program, a communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message includes:
and the application program establishes communication connection with the gateway connected with the intelligent door lock or the intelligent door lock through a TCP (transmission control protocol) according to the IP address and the port number in the second UDP (user Datagram protocol) message.
Optionally, the plurality of pipes of different message types include an interactive message pipe and a non-interactive message pipe;
the application program sends test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types, and the test information comprises the following steps:
the application program judges whether the Socket, the interactive message pipeline and the non-interactive message pipeline are readable or not through a Select function;
if the Socket is readable, the application program reads the message in the Socket, when the read message is determined to be a message returned by the interactive message, the read message is put into a ring buffer area for analysis and processing, and an interactive message waiting mark is removed; when the read message is determined to be a gateway registration message and is in a preset permission list, the read message is placed in a ring buffer area for analysis processing;
if the interactive message pipeline is readable, the application program reads the message of the interactive message pipeline to send, sets an interactive message sending mark and records sending time;
and if the non-interactive message pipe is readable, the application program reads the message of the non-interactive message pipe and sends the message.
Optionally, after the application program reads the message of the interactive message pipe and sends the message, the method further includes:
the application program acquires the current time;
the application program determines whether the message transmission of the interactive message pipeline is overtime according to the current time; and determining whether to retransmit according to a preset retransmission number after determining timeout.
In a second aspect, an embodiment of the present invention provides an automatic testing apparatus for an intelligent door lock, including:
the connection unit is used for establishing communication connection with a gateway or an intelligent door lock connected with the intelligent door lock in the local area network;
a processing unit for creating a plurality of pipes of different message types; and sending test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types.
Optionally, the connection unit has a connector for:
broadcasting a first UDP message to a gateway connected with an intelligent door lock or a first port of the intelligent door lock in a local area network; after the intelligent door lock or the gateway connected with the intelligent door lock receives the first UDP message, a second UDP message is sent through unicast at a second port;
and after the second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock is received, establishing communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message.
Optionally, the connection unit has a connector for:
and establishing communication connection with the gateway connected with the intelligent door lock or the intelligent door lock through a TCP (transmission control protocol) according to the IP address and the port number in the second UDP (user Datagram protocol) message.
Optionally, the plurality of pipes of different message types includes an interactive message pipe and a non-interactive message pipe;
the processing unit is specifically configured to:
judging whether the Socket, the interactive message pipeline and the non-interactive message pipeline are readable or not through a Select function;
if the Socket is readable, reading the message in the Socket, when the read message is determined to be a message returned by the interactive message, putting the read message into a ring buffer area for analysis and processing, and clearing an interactive message waiting mark; when the read message is determined to be a gateway registration message and is in a preset permission list, the read message is placed in a ring buffer area for analysis processing;
if the interactive message pipeline is readable, reading the message of the interactive message pipeline for sending, setting an interactive message sending mark and recording sending time;
and if the non-interactive message pipe is readable, reading the message of the non-interactive message pipe and sending the message.
Optionally, the processing unit is further configured to:
reading the message of the interactive message pipeline and sending the message to obtain the current time;
determining whether the message transmission of the interactive message pipeline is overtime according to the current time; and determining whether to retransmit according to a preset retransmission number after determining timeout.
In a third aspect, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the automatic testing method of the intelligent door lock according to the obtained program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the above method for automatically testing an intelligent door lock.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an automatic testing method for an intelligent door lock according to an embodiment of the present invention;
fig. 3 is a schematic interface diagram of a control panel according to an embodiment of the present invention;
FIG. 4 is a schematic interface diagram of an instruction configuration according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a WiFi intelligent door lock test provided by an embodiment of the present invention;
fig. 6 is a schematic flowchart of a process of sending test information according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an automatic testing apparatus for an intelligent door lock according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
Fig. 1 is a system architecture provided in an embodiment of the present invention. As shown in fig. 1, the system architecture may include an Application (APP) side 100, an intelligent door lock a200, a gateway side 300, and an intelligent door lock B400.
The application program end 100 is responsible for UDP protocol communication with a gateway/door lock local area network, and sends a control instruction to a gateway SDK layer/door lock according to a door lock wireless protocol, a protocol fixed part is automatically generated by application according to different functions, a variable part is manually filled in by a tester application interface or automatically generated by a configuration file, and data is sent in a broadcast mode; meanwhile, the application program can receive the door lock data reported by the gateway local area network and visually display the control result and the door lock state. The application program can set the data content to be sent for several times and the sending interval at the same time. As shown in fig. 3 and 4.
In addition, for the newly introduced door locks with different protocols, the APP does not need to be upgraded, and only configuration files need to be added at the cloud.
The gateway 300 is responsible for receiving a control instruction sent by the APP application and issuing a door lock device through a Zigbee protocol, and is responsible for protocol conversion according to the protocol type; and is responsible for receiving the status data reported by the door lock and reporting the status data to the application terminal.
The intelligent door lock end may include an intelligent door lock a200 and an intelligent door lock B400. The intelligent door lock A200 can be a Wi-Fi door lock, and the intelligent door lock B400 can be a Zigbee door lock.
The Zigbee door lock is responsible for executing a control instruction issued by the gateway and reporting state data. And the Wi-Fi door lock is responsible for executing the control instruction issued by the application and reporting the state data.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention does not limit this.
Based on the above description, fig. 2 shows in detail a flow of an automatic testing method for an intelligent door lock according to an embodiment of the present invention, where the flow may be executed by an automatic testing apparatus for an intelligent door lock.
As shown in fig. 2, the process specifically includes:
In the embodiment of the present invention, the application program may broadcast a first UDP (User Datagram Protocol) message to the gateway connected to the smart door lock or the first port of the smart door lock within the lan. And after receiving the first UDP message, the intelligent door lock or the gateway connected with the intelligent door lock sends a second UDP message in a unicast mode on the second port. The application program is installed on the terminal device, and may be a device such as a mobile phone, a computer, and a Pad. The first UDP message may include an IP address of the application (i.e., an IP address of the terminal device where the application is located), a port number, and a message number.
And after receiving a second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock, the application program establishes communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message. Specifically, the application program establishes communication connection with the gateway or the intelligent door lock connected with the intelligent door lock through a TCP protocol according to the IP address and the port number in the second UDP message.
The application transmits the first UDP message by broadcasting.
When the gateway receives the first UDP message sent by the application program, a second UDP message can be sent to the application program in a unicast mode, and the IP, the port number, the id and the message number of the intelligent door lock can be included in the second UDP message.
Taking a WiFi door lock as an example, the flow of establishing communication connection is shown in fig. 5, where two door locks are taken as an example in a local area network (multiple door locks are the same), and the local area network communication process is as follows:
(1) the APP broadcasts a UDP packet No. 1 to Port P1, which contains the mobile IP, Port number (Port), and message number (msg num).
(2) The port of the door lock P1 receives the data packet No. 1, and unicast-transmits a message No. 2 in the port P2, wherein the message contains a door lock IP address, a port number, a door lock ID and a message number.
(3) If the door lock does not receive the No. 1 message within a certain time, the No. 2 message is periodically broadcast at the port P2, and the content comprises a door lock IP address, a port number, a door lock ID and a message number.
(4) And when the APP receives the No. 2 message at the port P2, the door lock is connected through the TCP according to the IP address and the port number in the No. 2 message.
(5) After the door lock is successfully connected with the application end, the application creates a separate thread for each connection to process, receive and transmit, and the door lock sends a function verification message.
At step 202, the application creates a plurality of pipes of different message types.
The plurality of different message type pipes includes an interactive message pipe and a non-interactive message pipe. Dividing communication messages between the local area network APP and the gateway/door lock into interactive messages and non-interactive messages; the sending interactive message format comprises a message number, a message identifier and a message content, an interactive message sending mark is set during sending, a reply interactive message format comprises the message content, the message identifier and a message processing result, and the interactive message sending mark is cleared after a reply is received; the non-interactive message format includes a message number, message content, and no reply is required by the recipient.
The local area network communication data transceiving provided by the embodiment of the invention is realized in the same thread by using a multi-channel IO (Input/Output) technology, two different pipelines are respectively established for sending interactive messages and non-interactive messages, the messages to be sent are written into the pipelines to realize the sequential queuing sending of the messages, a plurality of threads can write data into the pipelines, and the problem of disorder of data sent by a multi-thread socket is solved.
And 203, the application program sends test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types.
Specifically, the application program judges whether the Socket, the interactive message pipe and the non-interactive message pipe are readable through the Select function.
When the Socket is readable, the application program reads the message in the Socket, when the read message is determined to be the message returned by the interactive message, the read message is placed in the ring buffer for analysis and processing, and the interactive message waiting mark is cleared. And when the read message is determined to be the gateway registration message and is in the preset permission list, putting the read message into a ring buffer for resolution processing.
When the interactive message pipeline is readable, the application program reads the message of the interactive message pipeline to send, sets the sending mark of the interactive message and records the sending time.
When the non-interactive message pipe is readable, the application program reads the message of the non-interactive message pipe and sends the message.
In a specific implementation process, the APP can use select to detect whether the connection socket, the interactive message pipe, and the non-interactive message pipe are readable. In addition, the heartbeat message is used as a non-interactive message, and the heartbeat periodic thread writes the heartbeat message into a non-interactive message pipeline. The flow of gateway/door lock data communication is shown in fig. 6:
If the socket is readable, reading the message and putting the message into a ring buffer area, analyzing and processing the message, and if an interactive message sending mark exists, clearing the message; if the message is the gateway registration message, judging whether the message is in the permission list, and if the message is not in the permission list, ending the process.
If the interactive message pipeline is readable, reading a message sending and setting an interactive message sending mark and recording sending time.
If the non-interactive message pipe is readable, a message is read and sent.
Step 606, determining whether the interactive message is retransmitted for 3 times without returning after time out, if yes, ending, otherwise, turning to step 601.
And acquiring the current time, judging whether the interactive message is overtime or not, retransmitting the interactive message or not, if the interactive message is still overtime and is not returned for 3 times after retransmission, closing the socket and terminating the thread.
In the embodiment of the invention, the application program establishes communication connection with the gateway or the intelligent door lock connected with the intelligent door lock in the local area network, creates a plurality of pipelines with different message types, and sends test information to the gateway or the intelligent door lock connected with the intelligent door lock according to the Socket and the plurality of pipelines with different message types. After the intelligent door lock is connected with the gateway or the intelligent door lock in the local area network, the intelligent door lock is communicated with the gateway or the intelligent door lock according to different message types, so that the intelligent door lock is tested, automatic testing of a plurality of intelligent door locks can be realized, and the efficiency of testing the intelligent door lock is improved.
Based on the same technical concept, fig. 7 exemplarily shows a structure of an automatic testing apparatus for an intelligent door lock, which can perform an automatic testing process for the intelligent door lock according to an embodiment of the present invention.
As shown in fig. 7, the apparatus specifically includes:
a connection unit 701 configured to establish communication connection with a gateway or an intelligent door lock connected to the intelligent door lock in a local area network;
a processing unit 702 for creating a plurality of pipes of different message types; and sending test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types.
Optionally, the connection unit 701 is provided with:
broadcasting a first UDP message to a gateway connected with an intelligent door lock or a first port of the intelligent door lock in a local area network; after the intelligent door lock or the gateway connected with the intelligent door lock receives the first UDP message, a second UDP message is sent through unicast at a second port;
after the second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock is received, communication connection is established with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message.
Optionally, the connection unit 701 is provided with:
and establishing communication connection with the gateway connected with the intelligent door lock or the intelligent door lock through a TCP (transmission control protocol) according to the IP address and the port number in the second UDP (user Datagram protocol) message.
Optionally, the plurality of pipes of different message types includes an interactive message pipe and a non-interactive message pipe;
the processing unit 702 is specifically configured to:
judging whether the Socket, the interactive message pipeline and the non-interactive message pipeline are readable or not through a Select function;
if the Socket is readable, reading the message in the Socket, putting the read message into a ring buffer area for analysis processing when the read message is determined to be the message returned by the interactive message, and clearing an interactive message waiting mark; when the read message is determined to be a gateway registration message and is in a preset permission list, the read message is placed in a ring buffer area for analysis processing;
if the interactive message pipeline is readable, reading the message of the interactive message pipeline for sending, setting an interactive message sending mark and recording sending time;
and if the non-interactive message pipeline is readable, reading the message of the non-interactive message pipeline and sending the message.
Optionally, the processing unit 702 is further configured to:
reading the message of the interactive message pipeline and sending the message to obtain the current time;
determining whether the message transmission of the interactive message pipeline is overtime according to the current time; and determining whether to retransmit according to a preset retransmission number after determining timeout.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the automatic testing method of the intelligent door lock according to the obtained program.
Based on the same technical concept, the embodiment of the invention also provides a computer-readable non-volatile storage medium, which comprises computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the automatic testing method of the intelligent door lock.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
1. An automatic test method of an intelligent door lock is characterized by comprising the following steps:
the application program establishes communication connection with a gateway or an intelligent door lock connected with the intelligent door lock in a local area network;
the application creates a plurality of pipes of different message types;
the application program sends test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the plurality of pipelines with different message types;
the plurality of pipes of different message types includes an interactive message pipe and a non-interactive message pipe;
the application program sends test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types, and the test information comprises the following steps:
the application program judges whether the Socket, the interactive message pipeline and the non-interactive message pipeline are readable or not through a Select function;
if the Socket is readable, the application program reads the message in the Socket, when the read message is determined to be a message returned by the interactive message, the read message is put into a ring buffer area for analysis and processing, and an interactive message waiting mark is removed; when the read message is determined to be a gateway registration message and is in a preset permission list, the read message is placed in a ring buffer area for analysis processing;
if the interactive message pipeline is readable, the application program reads the message of the interactive message pipeline to send, sets an interactive message sending mark and records sending time;
and if the non-interactive message pipeline is readable, the application program reads the message of the non-interactive message pipeline and sends the message.
2. The method of claim 1, wherein the application program establishes a communication connection with a gateway or an intelligent door lock connected with the intelligent door lock in a local area network, and the method comprises the following steps:
the application program broadcasts a first UDP message to a gateway connected with an intelligent door lock or a first port of the intelligent door lock in a local area network; after the intelligent door lock or the gateway connected with the intelligent door lock receives the first UDP message, a second UDP message is sent through unicast at a second port;
and after receiving the second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock, the application program establishes communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message.
3. The method of claim 2, wherein the application establishing a communication connection with the gateway with the smart door lock or the smart door lock according to the second UDP message comprises:
and the application program establishes communication connection with the gateway connected with the intelligent door lock or the intelligent door lock through a TCP (transmission control protocol) according to the IP address and the port number in the second UDP (user Datagram protocol) message.
4. The method of claim 1, wherein after the application program reads the interactive message pipe for transmission, further comprising:
the application program acquires the current time;
the application program determines whether the message transmission of the interactive message pipeline is overtime according to the current time; and determining whether to retransmit according to a preset retransmission number after determining timeout.
5. An automatic testing arrangement of intelligence lock, its characterized in that includes:
the connection unit is used for establishing communication connection with a gateway or an intelligent door lock connected with the intelligent door lock in the local area network;
a processing unit for creating a plurality of pipes of different message types; sending test information to the gateway connected with the intelligent door lock or the intelligent door lock according to the Socket and the pipelines with different message types, reading the message in the Socket if the Socket is readable, putting the read message into a ring buffer area for analysis and processing when the read message is determined to be a message returned by the interactive message, and clearing an interactive message waiting mark; when the read message is determined to be a gateway registration message and is in a preset permission list, the read message is placed in a ring buffer area for analysis processing;
a unit comprising, the plurality of pipes of different message types including an interactive message pipe and a non-interactive message pipe;
the judging unit is used for judging whether the Socket, the interactive message pipeline and the non-interactive message pipeline are readable or not through a Select function;
the sending unit is used for reading the message of the interactive message pipeline to send if the interactive message pipeline is readable, setting an interactive message sending mark and recording sending time;
and if the non-interactive message pipeline is readable, reading the message of the non-interactive message pipeline and sending the message.
6. The apparatus of claim 5, wherein the connection unit has means for:
broadcasting a first UDP message to a gateway connected with an intelligent door lock or a first port of the intelligent door lock in a local area network; after the intelligent door lock or the gateway connected with the intelligent door lock receives the first UDP message, a second UDP message is sent through unicast at a second port;
and after the second UDP message sent by the gateway connected with the intelligent door lock or the intelligent door lock is received, establishing communication connection with the gateway connected with the intelligent door lock or the intelligent door lock according to the second UDP message.
7. The apparatus of claim 6, wherein the connection unit has means for:
and establishing communication connection with the gateway connected with the intelligent door lock or the intelligent door lock through a TCP (transmission control protocol) according to the IP address and the port number in the second UDP (user Datagram protocol) message.
8. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 4 in accordance with the obtained program.
9. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110262337.XA CN113109643B (en) | 2021-03-10 | 2021-03-10 | Automatic testing method and device for intelligent door lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110262337.XA CN113109643B (en) | 2021-03-10 | 2021-03-10 | Automatic testing method and device for intelligent door lock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113109643A CN113109643A (en) | 2021-07-13 |
CN113109643B true CN113109643B (en) | 2022-09-30 |
Family
ID=76711248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110262337.XA Active CN113109643B (en) | 2021-03-10 | 2021-03-10 | Automatic testing method and device for intelligent door lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113109643B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114938343B (en) * | 2022-04-24 | 2023-10-13 | 福州昇宇门控智能科技有限公司 | Intelligent lock cluster test architecture and data transmission method |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102725735A (en) * | 2011-11-02 | 2012-10-10 | 华为技术有限公司 | Method and system for multithreading collaborative simulations |
CN103227965A (en) * | 2013-05-24 | 2013-07-31 | 吉林大学 | Android intercom system based on WiFi network |
US8539567B1 (en) * | 2012-09-22 | 2013-09-17 | Nest Labs, Inc. | Multi-tiered authentication methods for facilitating communications amongst smart home devices and cloud-based servers |
CN103856963A (en) * | 2014-03-05 | 2014-06-11 | 浪潮通信信息系统有限公司 | Method for establishing intelligence communication channels |
CN104022921A (en) * | 2014-06-26 | 2014-09-03 | 北京安兔兔科技有限公司 | Method and device for testing performance of device |
CN104113458A (en) * | 2014-07-23 | 2014-10-22 | 海信集团有限公司 | Mobile terminal and intelligent household appliance interconnecting method and device |
CN104635502A (en) * | 2014-12-26 | 2015-05-20 | 深圳市兰丁科技有限公司 | Intelligent home control method, device and system |
CN111007736A (en) * | 2019-12-20 | 2020-04-14 | 阮振荣 | Intelligent home system |
CN112054985A (en) * | 2019-06-06 | 2020-12-08 | 全球能源互联网研究院有限公司 | Data interaction method and system for mobile terminal and field detection test equipment |
CN112073963A (en) * | 2020-09-16 | 2020-12-11 | 武汉虹旭信息技术有限责任公司 | Communication interaction data transmission method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020154957A1 (en) * | 2019-01-30 | 2020-08-06 | 深圳市汇顶科技股份有限公司 | Fault detection method for smart door lock, smart door lock, and storage medium |
CN112085873A (en) * | 2020-08-12 | 2020-12-15 | 中国电力科学研究院有限公司 | Testing device and method for electric intelligent internet of things lockset |
-
2021
- 2021-03-10 CN CN202110262337.XA patent/CN113109643B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102725735A (en) * | 2011-11-02 | 2012-10-10 | 华为技术有限公司 | Method and system for multithreading collaborative simulations |
US8539567B1 (en) * | 2012-09-22 | 2013-09-17 | Nest Labs, Inc. | Multi-tiered authentication methods for facilitating communications amongst smart home devices and cloud-based servers |
CN103227965A (en) * | 2013-05-24 | 2013-07-31 | 吉林大学 | Android intercom system based on WiFi network |
CN103856963A (en) * | 2014-03-05 | 2014-06-11 | 浪潮通信信息系统有限公司 | Method for establishing intelligence communication channels |
CN104022921A (en) * | 2014-06-26 | 2014-09-03 | 北京安兔兔科技有限公司 | Method and device for testing performance of device |
CN104113458A (en) * | 2014-07-23 | 2014-10-22 | 海信集团有限公司 | Mobile terminal and intelligent household appliance interconnecting method and device |
CN104635502A (en) * | 2014-12-26 | 2015-05-20 | 深圳市兰丁科技有限公司 | Intelligent home control method, device and system |
CN112054985A (en) * | 2019-06-06 | 2020-12-08 | 全球能源互联网研究院有限公司 | Data interaction method and system for mobile terminal and field detection test equipment |
CN111007736A (en) * | 2019-12-20 | 2020-04-14 | 阮振荣 | Intelligent home system |
CN112073963A (en) * | 2020-09-16 | 2020-12-11 | 武汉虹旭信息技术有限责任公司 | Communication interaction data transmission method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113109643A (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10409251B2 (en) | Automatic inspection and monitoring method based on time domain slotting control | |
CN110831005B (en) | Equipment adding method of Mesh network, gateway equipment and storage medium | |
CN110071855A (en) | Equipment linkage control method, device, system, gateway and storage medium | |
CN113109643B (en) | Automatic testing method and device for intelligent door lock | |
CN104462033A (en) | Method and device for realizing editing operation among devices | |
CN111263377A (en) | Network configuration method, device, equipment and system and distribution network testing method and system | |
CN105812413B (en) | Communication method and device | |
CN104038538A (en) | local area network host software upgrading method and system | |
CN110113771A (en) | Data processing method, device, gateway and storage medium | |
CN116390156B (en) | LoRa communication method, device, equipment and readable storage medium | |
CN104753761A (en) | Method, server and system for processing messages | |
CN110789580A (en) | Communication detection method, equipment and system of train network control system | |
CN104079398B (en) | A kind of data communications method, apparatus and system | |
CN106464449B (en) | A kind of information transferring method and equipment | |
CN209441385U (en) | The communication detection system of train network control system | |
CN107204897A (en) | The fault detection method and system of network link | |
CN109417749A (en) | Information transferring method and device | |
CN108055151B (en) | Port management method and device of network node, network node and storage medium | |
CN103024097B (en) | The method of detection network address translation server ageing time, Apparatus and system | |
CN112350877A (en) | Test method, test platform, intelligent gateway and test system | |
CN117354956A (en) | 5G-based session establishment method and device, electronic equipment and storage medium | |
CN103746887A (en) | Method for activating locomotive access network | |
CN112995095B (en) | Data processing method, device and computer readable storage medium | |
CN103905970A (en) | Information sharing method and device among mobile terminals | |
CN104639384A (en) | Method, device and system for transmitting test commands |
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 |