CN109743347B - Automatic test method and system for reader-writer - Google Patents

Automatic test method and system for reader-writer Download PDF

Info

Publication number
CN109743347B
CN109743347B CN201811409868.1A CN201811409868A CN109743347B CN 109743347 B CN109743347 B CN 109743347B CN 201811409868 A CN201811409868 A CN 201811409868A CN 109743347 B CN109743347 B CN 109743347B
Authority
CN
China
Prior art keywords
reader
writer
control terminal
message
network configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811409868.1A
Other languages
Chinese (zh)
Other versions
CN109743347A (en
Inventor
高峰
夏曙东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing China Transinfo Stock Co ltd
Original Assignee
Beijing China Transinfo Stock Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing China Transinfo Stock Co ltd filed Critical Beijing China Transinfo Stock Co ltd
Priority to CN201811409868.1A priority Critical patent/CN109743347B/en
Publication of CN109743347A publication Critical patent/CN109743347A/en
Application granted granted Critical
Publication of CN109743347B publication Critical patent/CN109743347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method and a system for automatically testing a reader-writer, and relates to the technical field of reader-writers. The method comprises the following steps: the method comprises the following steps that a reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by a control terminal, wherein the reader-writer is connected with the control terminal through intermediate equipment; the reader configures the network parameters of the reader according to the acquired network configuration message, and sends a TCP connection request to the control terminal; the reader-writer receives a test message sent by the control terminal through the TCP connection, executes corresponding operation according to the test message to obtain a test result, and sends the test result to the control terminal. In the application, the batch automatic test of the reader-writer is realized, the test efficiency is greatly improved, and the consumption of human resources is reduced.

Description

Automatic test method and system for reader-writer
Technical Field
The application relates to the technical field of readers, in particular to a reader automatic testing method and system.
Background
In recent years, with the rapid development of the internet of things technology, the application of the RFID (Radio Frequency Identification) technology is also more and more extensive, the demand of the market for the RFID reader is also increased, and how to rapidly and efficiently automatically produce the RFID reader is an important problem facing each manufacturer. In the traditional production process of the RFID reader-writer, after the hardware of the reader-writer is assembled, production line workers are required to perform one-to-one reader-writer function and performance test, and finally different versions are required to be downloaded and default configuration is set according to customer requirements, so that the whole test and setting process is very time-consuming, and the consumption of human resources is huge.
Disclosure of Invention
In order to overcome the defects in the prior art, the application provides an automatic test method and system for a reader-writer.
In a first aspect, the present application provides an automatic test method for a reader/writer, which is applied to a reader/writer, and includes:
acquiring a network configuration message matched with the reader-writer from a network configuration message broadcasted by a control terminal, wherein the reader-writer is connected with the control terminal through intermediate equipment;
configuring the network parameters of the control terminal according to the acquired network configuration message, and sending a TCP connection request to the control terminal;
and receiving a test message sent by the control terminal through TCP connection, executing corresponding operation according to the test message to obtain a test result, and sending the test result to the control terminal.
Optionally, before the obtaining of the network configuration message matched with the control terminal in the network configuration message broadcasted by the control terminal, the method further includes:
acquiring a discovery message broadcasted by a control terminal, and analyzing the discovery message to obtain network parameters of the control terminal;
correspondingly, the sending of the TCP connection request to the control terminal specifically includes: and sending a TCP connection request to the control terminal according to the network parameters of the control terminal.
Optionally, after analyzing the discovery packet to obtain the network parameter of the control terminal, the method further includes: sending the unique identification of the control terminal to the control terminal;
correspondingly, the obtaining of the network configuration message matched with the control terminal from the network configuration message broadcasted by the control terminal includes: and analyzing the network configuration messages broadcast by the control terminal in sequence to obtain unique identifiers, judging whether the obtained unique identifiers are consistent with the unique identifiers of the control terminal, and if so, determining that the corresponding network configuration messages are the network configuration messages matched with the control terminal.
Optionally, the method further comprises: and receiving a factory configuration message sent by the control terminal, performing corresponding configuration and returning a configuration result to the control terminal.
In a second aspect, the present application provides an automatic test method for a reader, which is applied to a control terminal, and includes:
broadcasting a network configuration message to the connected reader-writers, wherein the control terminal is connected with at least one reader-writer through intermediate equipment;
receiving a TCP connection request sent by a reader-writer, and establishing TCP connection with the reader-writer;
and sending a test message to a corresponding reader-writer through the TCP connection, and receiving a test result returned by the reader-writer.
Optionally, before broadcasting the network configuration packet to the connected reader/writer, the method further includes: broadcasting a discovery message to a connected reader-writer, and receiving a unique identifier returned by the reader-writer;
correspondingly, the broadcasting the network configuration message to the connected reader-writer includes: distributing network parameters for the reader-writer corresponding to the unique identifier, generating a network configuration message according to the unique identifier and the network parameters, and broadcasting the network configuration message.
Optionally, the method further comprises: and sending factory configuration messages to corresponding readers through the TCP connection, and receiving configuration results returned by the readers.
In a third aspect, the present application provides a reader/writer for automated testing, including:
the first acquisition module is used for acquiring a network configuration message matched with the first acquisition module from a configuration parameter message broadcast by the control terminal;
the configuration module is used for configuring the network parameters of the network according to the network configuration message acquired by the first acquisition module;
a sending module, configured to send a TCP connection request to the control terminal;
the receiving module is used for receiving the test message sent by the control terminal through the TCP connection;
the execution module is used for executing corresponding operation according to the test message to obtain a test result;
the sending module is further configured to send the test result to the control terminal.
In a fourth aspect, the present application provides a control terminal for an automated test of a reader/writer, including:
the broadcast module is used for broadcasting network configuration messages to the connected readers-writers, and the control terminal is connected with at least one reader-writer through the intermediate equipment;
the receiving module is used for receiving a TCP connection request sent by a reader-writer and establishing TCP connection with the reader-writer;
the sending module is used for sending the test message to the corresponding reader-writer through the TCP connection;
the receiving module is further configured to receive a test result returned by the reader-writer.
In a fifth aspect, the present application provides an automated test system for a reader, including: the system comprises at least one reader-writer, a control terminal and intermediate equipment, wherein the control terminal is connected with the at least one reader-writer through the intermediate equipment;
wherein the reader/writer is the reader/writer according to claim 8, and the control terminal is the control terminal according to claim 9.
The application has the advantages that:
the method can be suitable for any type of reader-writers, and by establishing the TCP connection between each reader-writer and the control terminal, the control terminal sends the test messages, version update messages, configuration update messages and other factory setting messages to the corresponding reader-writers through the TCP connection to perform performance test and factory configuration, so that automatic test and configuration of the reader-writers in batches are realized, the test and configuration efficiency of the reader-writers is greatly improved, and the consumption of human resources is reduced.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of an automated test method for a reader/writer applied to a reader/writer end according to an embodiment of the present application;
fig. 2 is a block diagram of an automated test system for a reader/writer according to an embodiment of the present application;
fig. 3 is a flowchart of an automated test method for a reader/writer applied to a control terminal according to an embodiment of the present application;
fig. 4 is a flowchart of an automated test method for a reader/writer according to an embodiment of the present application;
FIG. 5 is a block diagram of an automated test reader according to an embodiment of the present application;
fig. 6 is a block diagram of a control terminal for an automated test of a reader/writer according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
According to an embodiment of the present application, an automated test method for a reader/writer is provided, which is applied to a reader/writer, as shown in fig. 1, and includes:
step 101: the reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal;
specifically, as shown in fig. 2, at least one reader is connected to the control terminal through an intermediate device, and after the reader is powered on, data broadcasted by the control terminal is obtained; the reader-writer is any type of reader-writer, and is not limited to an RFID reader-writer, and the intermediate device is specifically a switch, a HUB, and the like.
According to the embodiment of the present application, before step 101, the method further includes: each reader-writer obtains a discovery message broadcasted by the control terminal, and analyzes the obtained discovery message to obtain network parameters of the control terminal;
the network parameters of the control terminal include the IP address and MAC address information of the control terminal.
Further, after each reader analyzes the obtained discovery packet to obtain the network parameters of the control terminal, the method further includes: sending the unique identification of the control terminal to the control terminal;
specifically, after analyzing the acquired discovery message by each reader-writer to obtain the network parameters of the control terminal, generating a GUID of the reader-writer according to a preset algorithm, and sending the GUID as a unique identifier to the control terminal, so that the control terminal can identify the corresponding reader-writer according to the unique identifier.
Further, when the control terminal receives the unique identifier sent by the reader-writer, the control terminal allocates a network parameter to the reader-writer corresponding to the unique identifier, and generates and broadcasts a network configuration message according to the unique identifier and the allocated network parameter.
Correspondingly, the method for acquiring the network configuration message matched with the reader-writer from the network configuration message broadcasted by the control terminal by the reader-writer comprises the following steps: and analyzing the network configuration messages broadcast by the control terminal in sequence to obtain unique identifiers, judging whether the obtained unique identifiers are consistent with the unique identifiers of the control terminal, and if so, determining that the corresponding network configuration messages are the network configuration messages matched with the control terminal.
Step 102: the reader configures the network parameters of the reader according to the acquired network configuration message, and sends a TCP connection request to the control terminal;
specifically, the reader configures an IP address, a subnet mask, and the like of the reader according to the acquired network configuration message; and after the configuration is completed, sending a TCP connection request to the control terminal according to the analyzed network parameters of the control terminal.
Step 103: the reader-writer receives a test message sent by the control terminal through the TCP connection, executes corresponding operation according to the received test message to obtain a test result, and sends the test result to the control terminal.
For example, the reader/writer performs read/write operations according to the received test message, and performs function and performance tests on test items such as the communication port, the antenna, the baud rate, the signal processing unit circuit, and the like.
Further, when the test result is that the test is passed, the reader-writer returns a test success result to the control terminal, so that the control terminal can display the test success result; and when the test result is that the test fails, the reader-writer returns the test failure result to the control terminal so that the control terminal can display the test failure result.
Furthermore, when the test result is that the test fails, the reader-writer with the test failure can be powered on again through manual operation, and the automatic test method is executed again.
It should be noted that the reader-writer can receive the test message sent by the control terminal for multiple times, and test the test items according to the test message respectively; and the test message packet sent by the control terminal can be received, and a plurality of test items are tested according to the test message packet.
Therefore, the reader-writer establishes TCP connection with the control terminal, receives the test message sent by the control terminal based on the TCP connection, performs automatic batch test, and compared with the existing manual test mode, the test efficiency is improved, and the consumption of human resources is reduced.
According to an embodiment of the application, the method further comprises: the reader-writer receives a factory configuration message sent by the control terminal, performs corresponding configuration and returns a configuration result to the control terminal;
specifically, the reader-writer receives a version updating message sent by the control terminal, executes version upgrading operation, and returns an upgrading result to the control terminal; and/or the reader-writer receives the configuration updating message sent by the control terminal, updates corresponding configuration information and returns an updating result to the control terminal.
For example, the reader/writer receives a configuration update message sent by the control terminal, and updates its own serial number, IP address, transmission frequency, and the like.
Further, before the reader receives the configuration update message sent by the control terminal, the method further includes: and the reader-writer receives the reset message sent by the control terminal, executes the reset operation and reestablishes TCP connection with the control terminal.
Generally, different users have different requirements, and versions, configuration information and the like of the readers are different, so that in the application, when the automatic function and performance test of the readers is completed, the automatic configuration is directly performed on each reader, the automatic test and factory configuration operation are completed at one time, and the time cost and the consumption of human resources are greatly reduced.
Example two
According to an embodiment of the present application, an automated test method for a reader/writer is further provided, which is applied to a control terminal, as shown in fig. 3, and includes:
step 201: the control terminal broadcasts a network configuration message to the connected reader-writer;
specifically, as shown in fig. 2, the control terminal is connected to at least one reader/writer through the intermediate device, and when the reader/writer is powered on, the control terminal broadcasts data to the connected reader/writer;
according to an embodiment of the present application, step 201 further includes: the control terminal broadcasts a discovery message to the connected reader-writer and receives a unique identifier returned by the reader-writer;
the discovery packet includes network parameters of the control terminal itself, such as an IP address and an MAC address. Correspondingly, when the reader-writer obtains a discovery message broadcasted by the control terminal, the reader-writer analyzes the obtained discovery message to obtain the network parameters of the control terminal, and sends a unique identifier of the reader-writer to the control terminal, wherein the unique identifier is preferably a GUID.
Further, step 201 includes: and the control terminal distributes network parameters for the reader-writer corresponding to the received unique identifier, generates a network configuration message according to the received unique identifier and the distributed network parameters, and broadcasts the network configuration message.
Correspondingly, each reader-writer obtains a network configuration message matched with the reader-writer from the network configuration message broadcasted by the control terminal according to the unique identifier of the reader-writer, configures the network parameters of the reader-writer and sends a TCP connection request to the control terminal.
Step 202: the control terminal receives a TCP connection request sent by the reader-writer and establishes TCP connection with the corresponding reader-writer;
step 203: and the control terminal sends the test message to the corresponding reader-writer through the TCP connection and receives the test result returned by the reader-writer.
The test messages include, but are not limited to, test messages for performing read-write operations, and test messages for testing communication ports, antennas, baud rates, signal processing unit circuits, and the like; correspondingly, when the reader-writer receives the test message sent by the control terminal, corresponding test operation is executed to obtain a test result, and the test result is returned to the control terminal.
It should be noted that the control terminal may send test messages to the reader/writer according to the number of the test items, and perform the test respectively; and generating a test message packet according to the content of the test item, and sending the test message packet to the reader-writer so as to realize one-time data communication for carrying out multiple tests.
Further, when the control terminal receives a test result returned by the reader-writer, the test result is also displayed.
According to an embodiment of the application, the method further comprises: and the control terminal sends a factory configuration message to the corresponding reader-writer through the TCP connection and receives a configuration result returned by the reader-writer.
Specifically, the control terminal sends a version update message to a corresponding reader-writer through TCP connection, and receives an upgrade result returned by the reader-writer; and/or the control terminal sends the configuration updating message to the corresponding reader-writer through the TCP connection and receives the configuration result returned by the reader-writer.
Correspondingly, when the reader-writer receives the version updating message, executing version upgrading operation and returning an upgrading result to the control terminal; when the reader-writer receives the configuration updating message, updating corresponding configuration information and returning an updating result to the control terminal; the configuration update message includes a serial number to be updated, an IP address, a transmission frequency, and the like.
Further, before the control terminal sends the configuration update message to the corresponding reader/writer through the TCP connection, the method further includes: the control terminal sends a reset message to a corresponding reader-writer through TCP connection, and establishes TCP connection with the reader-writer when receiving a TCP connection request sent by the reader-writer.
Therefore, the control terminal broadcasts the network configuration message to each connected reader-writer, establishes TCP connection with each reader-writer, and sends the test message and the message related to factory setting to each reader-writer based on the TCP connection, so that automatic batch test and configuration of the reader-writers are realized.
EXAMPLE III
According to an embodiment of the present application, there is also provided a method for automatically testing a reader/writer, where at least one reader/writer is connected to a control terminal through an intermediate device, as shown in fig. 4 (the intermediate device is not shown), the method including:
step 301: powering on the reader-writer;
step 302: the control terminal broadcasts a discovery message to the connected reader-writer;
the discovery message contains network parameters of the control terminal, such as an IP address and a MAC address.
Step 303: the reader-writer obtains a discovery message broadcasted by the control terminal, analyzes the discovery message to obtain the network parameters of the control terminal, and sends a unique identifier of the reader-writer to the control terminal;
wherein, sending the unique identifier of the control terminal comprises: and generating a unique identifier of the control terminal according to a preset algorithm, and sending the unique identifier to the control terminal, wherein the unique identifier is preferably a GUID.
Step 304: the control terminal receives the unique identifier sent by the reader-writer, distributes network parameters for the reader-writer corresponding to the unique identifier, generates a network configuration message according to the unique identifier and the distributed network parameters, and broadcasts the network configuration message to the connected reader-writer;
step 305: the reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal;
specifically, the reader analyzes the network configuration message broadcast by the control terminal to obtain a unique identifier, judges whether the obtained unique identifier is consistent with the unique identifier of the reader, and if so, determines that the corresponding network configuration message is a network configuration message matched with the reader.
Step 306: the reader configures the network parameters of the reader according to the acquired network configuration message, and sends a TCP connection request to the control terminal;
the reader configures the network parameters of the reader according to the acquired network configuration message, including configuring the IP address and subnet mask of the reader.
Step 307: the control terminal receives the TCP connection request and establishes TCP connection with a corresponding reader-writer;
step 308: the control terminal sends a test message to a corresponding reader-writer through TCP connection;
step 309: the reader executes corresponding operation according to the received test message to obtain a test result, and sends the test result to the control terminal;
for example, the reader/writer performs read/write operations according to the received test message, and performs function and performance tests on test items such as a communication port, an antenna, a baud rate, a signal processing unit circuit, and the like.
Step 310: the control terminal receives the test result and sends a version updating message to a corresponding reader-writer through TCP connection;
specifically, when the test results of the test items received by the control terminal are all successful, the version update message is sent to the reader-writer.
Step 311: the reader-writer receives a version updating message sent by the control terminal, executes version upgrading operation and sends an upgrading result to the control terminal;
step 312: the control terminal receives the upgrading result and sends a reset message to the corresponding reader-writer through the TCP connection;
specifically, when the upgrade result is that the upgrade is successful, a reset message is sent to the reader-writer.
Step 313: the reader-writer resets and resends the TCP connection request to the control terminal;
step 314: the control terminal receives a TCP connection request sent by the reader-writer, establishes TCP connection and sends a configuration updating message to the reader-writer through the TCP connection;
step 315: the reader-writer updates corresponding configuration information according to the received configuration updating message and sends an updating result to the control terminal;
for example, the reader updates its own serial number, IP address, transmission frequency, etc. according to the received configuration update message.
Step 316: and the control terminal receives the updating result sent by the reader-writer.
It should be noted that, the operations of version updating and configuration updating performed in the above steps 310-315 may be set to be executed or not according to the requirement.
Therefore, TCP connection is established between each reader-writer and the control terminal, and the control terminal sends delivery setting messages such as a test message, a version updating message, a configuration updating message and the like to the corresponding reader-writer through the TCP connection, so that automatic test and configuration of the reader-writers in batches are realized, the test and configuration efficiency of the reader-writers is greatly improved, and the consumption of human resources is reduced; it is noted that the above method can be applied to any type of reader, not limited to RFID readers.
Example four
According to an embodiment of the present application, there is also provided a reader/writer, as shown in fig. 5, including:
a first obtaining module 401, configured to obtain a network configuration message matched with the reader from a configuration parameter message broadcast by the control terminal;
a configuration module 402, configured to configure a network parameter of the first acquisition module 401 according to the network configuration packet;
a sending module 403, configured to send a TCP connection request to the control terminal;
a receiving module 404, configured to receive a test packet sent by the control terminal through a TCP connection;
an executing module 405, configured to execute a corresponding operation according to the test packet received by the receiving module 404 to obtain a test result;
the sending module 403 is further configured to send the test result to the control terminal.
According to an embodiment of the present application, the reader/writer further includes: a second acquisition module;
a second obtaining module, configured to obtain a discovery message broadcast by the control terminal before the first obtaining module 401 obtains the network configuration message matched with the second obtaining module, and analyze the discovery message to obtain a network parameter of the control terminal;
correspondingly, the sending module 403 is specifically configured to send a TCP connection request to the control terminal according to the network parameter of the control terminal obtained by the second obtaining module.
According to the embodiment of the present application, the sending module 403 is further configured to send the unique identifier to the control terminal after the second obtaining module analyzes the discovery packet to obtain the network parameter of the control terminal;
correspondingly, the first obtaining module 401 is specifically configured to sequentially analyze the network configuration packet broadcasted by the control terminal to obtain a unique identifier, determine whether the obtained unique identifier is consistent with the unique identifier of the reader/writer, and if so, determine that the corresponding network configuration packet is the network configuration packet matched with the reader/writer
According to the embodiment of the present application, the receiving module 403 is further configured to receive a version update message and/or a configuration update message sent by the control terminal;
an executing module 404, further configured to execute a corresponding update version operation and/or update configuration operation according to the version update message and/or the configuration update message received by the receiving module 403;
the sending module 405 is further configured to return the operation result of the executing module 404 to the control terminal.
EXAMPLE five
According to an embodiment of the present application, there is also provided a control terminal for an automated test of a reader/writer, as shown in fig. 6, including:
a first broadcasting module 501, configured to broadcast a network configuration message to connected readers, where a control terminal is connected to at least one reader through an intermediate device;
a receiving module 502, configured to receive a TCP connection request sent by a reader, and establish a TCP connection with the reader;
a sending module 503, configured to send the test packet to a corresponding reader via a TCP connection;
the receiving module 502 is further configured to receive a test result returned by the reader/writer.
According to an embodiment of the present application, the control terminal further includes: a second broadcasting module;
the second broadcasting module is configured to broadcast a discovery message to the connected reader/writer before the first broadcasting module 501 broadcasts the network configuration message to the connected reader/writer;
correspondingly, the receiving module 502 is further configured to receive the unique identifier returned by the reader/writer;
further, the first broadcasting module 501 is specifically configured to allocate a network parameter to a reader-writer corresponding to the unique identifier received by the receiving module 502, generate a network configuration message according to the unique identifier and the allocated network parameter, and broadcast the generated network configuration message;
according to the embodiment of the present application, the sending module 503 is further configured to send a version update message and/or a configuration update message to a corresponding reader/writer through the TCP connection;
correspondingly, the receiving module 502 is further configured to receive an update operation result returned by the reader/writer.
EXAMPLE six
According to an embodiment of the present application, there is also provided an automated test system for a reader/writer, including: the system comprises at least one reader-writer, a control terminal and intermediate equipment, wherein the control terminal is connected with the at least one reader-writer through the intermediate equipment;
further, the reader is specifically the reader described in the fourth embodiment, the control terminal is specifically the control terminal described in the fifth embodiment, and the intermediate device is, for example, an exchange, a HUB, or the like.
It should be noted that, the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. Especially for the device embodiment, since it is basically similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. An automatic test method for a reader-writer is applied to the reader-writer and is characterized by comprising the following steps:
acquiring a discovery message broadcasted by a control terminal, and analyzing the discovery message to obtain network parameters of the control terminal;
after the analyzing the discovery packet to obtain the network parameters of the control terminal, the method further includes: sending the unique identification of the control terminal to the control terminal; the unique identification means that a GUID of the unique identification is generated according to a preset algorithm;
sending the unique identification of the control terminal to the control terminal;
acquiring a network configuration message matched with the reader-writer from a network configuration message broadcasted by a control terminal, wherein the reader-writer is connected with the control terminal through intermediate equipment;
analyzing network configuration messages broadcast by a control terminal in sequence to obtain unique identifiers, judging whether the obtained unique identifiers are consistent with the unique identifiers of the control terminal, and if so, determining that the corresponding network configuration messages are network configuration messages matched with the control terminal;
configuring the network parameters of the control terminal according to the acquired network configuration message, and sending a TCP connection request to the control terminal;
the control terminal distributes network parameters for the reader-writer corresponding to the received unique identifier, generates a network configuration message according to the received unique identifier and the distributed network parameters, and broadcasts the network configuration message;
sending a TCP connection request to the control terminal according to the network parameters of the control terminal;
each reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal according to the unique identifier of the reader-writer, configures network parameters of the reader-writer and sends a TCP connection request to the control terminal;
and receiving a test message sent by the control terminal through TCP connection, executing corresponding operation according to the test message to obtain a test result, and sending the test result to the control terminal.
2. The method of claim 1, further comprising:
and receiving a factory configuration message sent by the control terminal, performing corresponding configuration and returning a configuration result to the control terminal.
3. An automatic test method for a reader-writer is applied to a control terminal and is characterized by comprising the following steps:
broadcasting a discovery message to a connected reader-writer, and receiving a unique identifier returned by the reader-writer;
the broadcasting of the network configuration message to the connected reader-writer includes: distributing network parameters for the reader-writer corresponding to the unique identifier, generating a network configuration message according to the unique identifier and the network parameters, and broadcasting the network configuration message;
broadcasting a network configuration message to the connected reader-writers, wherein the control terminal is connected with at least one reader-writer through intermediate equipment;
distributing network parameters for the reader-writer corresponding to the unique identifier, generating a network configuration message according to the unique identifier and the network parameters, and broadcasting the network configuration message;
each reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal according to the unique identifier of the reader-writer, configures network parameters of the reader-writer and sends a TCP connection request to the control terminal;
receiving a TCP connection request sent by a reader-writer, and establishing TCP connection with the reader-writer;
and sending a test message to a corresponding reader-writer through the TCP connection, and receiving a test result returned by the reader-writer.
4. The method of claim 3, further comprising:
and sending factory configuration messages to corresponding readers through the TCP connection, and receiving configuration results returned by the readers.
5. A reader/writer for automated testing, comprising:
the analysis module is used for acquiring a discovery message broadcasted by the control terminal and analyzing the discovery message to obtain the network parameters of the control terminal; after the analyzing the discovery packet to obtain the network parameters of the control terminal, the method further includes: sending the unique identification of the control terminal to the control terminal; the unique identification means that a GUID of the unique identification is generated according to a preset algorithm;
the identification sending module is used for sending the unique identification of the control terminal to the control terminal;
the first acquisition module is used for acquiring a network configuration message matched with the first acquisition module from a configuration parameter message broadcast by the control terminal;
the configuration module is used for configuring the network parameters of the network according to the network configuration message acquired by the first acquisition module;
a sending module, configured to send a TCP connection request to the control terminal; the control terminal distributes network parameters for the reader-writer corresponding to the received unique identifier, generates a network configuration message according to the received unique identifier and the distributed network parameters, and broadcasts the network configuration message;
the receiving module is used for receiving the test message sent by the control terminal through the TCP connection;
each reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal according to the unique identifier of the reader-writer, configures network parameters of the reader-writer and sends a TCP connection request to the control terminal;
the execution module is used for executing corresponding operation according to the test message to obtain a test result;
the sending module is further configured to send the test result to the control terminal.
6. A control terminal for automatic test of a reader-writer is characterized by comprising:
the broadcast module is used for broadcasting network configuration messages to the connected readers-writers, and the control terminal is connected with at least one reader-writer through the intermediate equipment; the reader-writer is also used for broadcasting a discovery message to the connected reader-writer and receiving the unique identifier returned by the reader-writer;
the receiving module is used for receiving a TCP connection request sent by a reader-writer and establishing TCP connection with the reader-writer;
each reader-writer obtains a network configuration message matched with the reader-writer from a network configuration message broadcasted by the control terminal according to the unique identifier of the reader-writer, configures network parameters of the reader-writer and sends a TCP connection request to the control terminal;
the sending module is used for sending the test message to the corresponding reader-writer through the TCP connection;
the receiving module is further configured to receive a test result returned by the reader-writer.
7. An automated test system for a reader/writer, comprising: the system comprises at least one reader-writer, a control terminal and intermediate equipment, wherein the control terminal is connected with the at least one reader-writer through the intermediate equipment;
wherein the reader/writer is the reader/writer according to claim 5, and the control terminal is the control terminal according to claim 6.
CN201811409868.1A 2018-11-23 2018-11-23 Automatic test method and system for reader-writer Active CN109743347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811409868.1A CN109743347B (en) 2018-11-23 2018-11-23 Automatic test method and system for reader-writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811409868.1A CN109743347B (en) 2018-11-23 2018-11-23 Automatic test method and system for reader-writer

Publications (2)

Publication Number Publication Date
CN109743347A CN109743347A (en) 2019-05-10
CN109743347B true CN109743347B (en) 2022-02-18

Family

ID=66358149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811409868.1A Active CN109743347B (en) 2018-11-23 2018-11-23 Automatic test method and system for reader-writer

Country Status (1)

Country Link
CN (1) CN109743347B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245894A (en) * 2019-12-29 2020-06-05 航天信息股份有限公司 Batch configuration method and system for electronic identification reader-writer equipment of motor vehicle
CN111212387A (en) * 2020-03-16 2020-05-29 纳瓦电子(上海)有限公司 Test method and system for wireless equipment, electronic equipment and test device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082685A (en) * 2009-11-30 2011-06-01 三星电子(中国)研发中心 Network configured method and system of embedded device
CN102098534A (en) * 2010-12-22 2011-06-15 中兴通讯股份有限公司 Method and system for detecting network television set top box
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN102255676A (en) * 2010-05-19 2011-11-23 广东新支点技术服务有限公司 Automatic end-user oriented testing method for mobile phone
CN102752135A (en) * 2012-06-27 2012-10-24 福建星网视易信息***有限公司 Method for realizing configuration of network devices
CN104320307A (en) * 2014-11-07 2015-01-28 网神信息技术(北京)股份有限公司 Multicast communication test method, device and system
CN205139953U (en) * 2015-11-13 2016-04-06 航天信息股份有限公司 Read write line testing arrangement
CN105490875A (en) * 2015-11-25 2016-04-13 广州视源电子科技股份有限公司 Automatic testing method, device, product to be tested and system
CN105680960A (en) * 2015-12-29 2016-06-15 深圳市金溢科技股份有限公司 Automatic test method for Bluetooth card reader, test upper computer and test system
CN106330581A (en) * 2015-06-17 2017-01-11 小米科技有限责任公司 Communication interface testing method and device
CN106453678A (en) * 2016-09-29 2017-02-22 北京东土科技股份有限公司 IP address allocation method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082685A (en) * 2009-11-30 2011-06-01 三星电子(中国)研发中心 Network configured method and system of embedded device
CN102255676A (en) * 2010-05-19 2011-11-23 广东新支点技术服务有限公司 Automatic end-user oriented testing method for mobile phone
CN102098534A (en) * 2010-12-22 2011-06-15 中兴通讯股份有限公司 Method and system for detecting network television set top box
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN102752135A (en) * 2012-06-27 2012-10-24 福建星网视易信息***有限公司 Method for realizing configuration of network devices
CN104320307A (en) * 2014-11-07 2015-01-28 网神信息技术(北京)股份有限公司 Multicast communication test method, device and system
CN106330581A (en) * 2015-06-17 2017-01-11 小米科技有限责任公司 Communication interface testing method and device
CN205139953U (en) * 2015-11-13 2016-04-06 航天信息股份有限公司 Read write line testing arrangement
CN105490875A (en) * 2015-11-25 2016-04-13 广州视源电子科技股份有限公司 Automatic testing method, device, product to be tested and system
CN105680960A (en) * 2015-12-29 2016-06-15 深圳市金溢科技股份有限公司 Automatic test method for Bluetooth card reader, test upper computer and test system
CN106453678A (en) * 2016-09-29 2017-02-22 北京东土科技股份有限公司 IP address allocation method and system

Also Published As

Publication number Publication date
CN109743347A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN111245898B (en) Network equipment online method, device, server and storage medium
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN109491690B (en) Household appliance upgrading method and device and household appliance
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN111885144B (en) Equipment binding method and device
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN111885115B (en) Device binding changing method and device
CN109743347B (en) Automatic test method and system for reader-writer
CN113596832B (en) Network connection establishment method and device, storage medium and electronic device
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN111212387A (en) Test method and system for wireless equipment, electronic equipment and test device
CN104079717A (en) Method for displaying device interface and server
CN112333750A (en) Network slice selection method and device, slice mapping system and network equipment
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN113347580B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN112637221B (en) Equipment control method and device
CN111818611B (en) Equipment binding method and device
CN113259918A (en) Equipment binding method and system
CN205304831U (en) Testing system
CN112035129A (en) Method and device for driver installation and upgrade and computer equipment
CN114666255B (en) Method for testing network distribution performance of Internet of things equipment and related equipment thereof
CN116546467A (en) Access control method and system of vehicle-mounted equipment, storage medium and electronic device
CN115662100A (en) Pairing method, transmitter, remote control system and operating machine

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