Equipment detection method and device, equipment and medium

By using the packet transmission time and distance in the barrier state as the detection standard in the Bluetooth function detection of the smart watch, the problem of unstable Bluetooth function of the smart watch is solved, and the detection accuracy and product quality are improved.

CN118890301APending Publication Date: 2024-11-01WEIFANG GOERTEK ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946618.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The Bluetooth function of smart electronic devices such as smart watches may have problems such as unstable connection, weak signal, and slow transmission speed during the production process, resulting in unqualified products. How to effectively detect and ensure product quality.

Method used

In two states where the barrier plate is set between the device to be tested and the connected device and the barrier plate is not set, the data packet transmission is controlled based on the communication connection, the transmission time and distance are recorded, and the limit conditions are set to determine whether the device is qualified or unqualified.

Benefits of technology

Improve the accuracy of equipment inspection, ensure the normality of communication functions under different usage conditions, and ensure the quality of the product when it leaves the factory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890301A_ABST
    Figure CN118890301A_ABST
Patent Text Reader

Abstract

The invention provides a device detection method and device, a device and a medium, and the method comprises the steps: controlling a connection device to transmit a data packet to a to-be-detected device based on the communication connection between the to-be-detected device and the connection device under the condition that the to-be-detected device and the connection device are in a first state and a second state; wherein the first state is a state in which no barrier plate is arranged between the to-be-tested equipment and the connecting equipment, and the second state is a state in which a barrier plate is arranged between the to-be-tested equipment and the connecting equipment; and determining that the to-be-tested equipment is qualified under the condition that the transmission data packet in the first state meets a first set condition and the transmission data packet in the second state meets a second set condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the technical field of device testing, and more specifically, to a device testing method, apparatus, device, and medium. Background Art

[0002] The communication function of smart electronic devices such as smart watches is one of the core functions of smart watches. Taking the Bluetooth function as an example, the stability and reliability of the Bluetooth function are crucial to the user experience. However, due to various factors in the production process, the Bluetooth function of smart watches may have problems such as unstable connection, weak signal, slow transmission speed, etc., resulting in unqualified smart watches. Therefore, how to effectively detect the Bluetooth function of smart watches and ensure the quality of products before leaving the factory has become an important issue. Summary of the invention

[0003] One purpose of the embodiments of the present disclosure is to provide a new technical solution for device detection.

[0004] According to a first aspect of an embodiment of the present disclosure, a device detection method is provided, the method comprising:

[0005] When the device under test and the connection device are in a first state and a second state respectively, based on the communication connection between the device under test and the connection device, the connection device is controlled to transmit a data packet to the device under test; wherein the first state is a state where no blocking plate is set between the device under test and the connection device, and the second state is a state where a blocking plate is set between the device under test and the connection device;

[0006] When the data packet transmitted in the first state meets the first set condition, and the data packet transmitted in the second state meets the second set condition, it is determined that the device under test is qualified.

[0007] Optionally, the first setting condition includes: a first transmission time for the connecting device to complete data packet transmission is less than or equal to a first limit time;

[0008] The second setting condition includes: a second transmission time for the connecting device to complete the data packet transmission is less than or equal to a second limit time.

[0009] Optionally, when the device under test and the connecting device are respectively in the first state and the second state, based on the communication connection between the device under test and the connecting device, respectively controlling the connecting device to transmit a data packet to the device under test includes:

[0010] Establishing a communication connection between the device under test and the connecting device;

[0011] When the device under test and the connection device are in a first state, controlling the distance between the device under test and the connection device to be a limit distance;

[0012] When the distance between the device under test and the connection device is the limit distance, based on the communication connection, controlling the connection device to transmit a data packet to the device under test;

[0013] When the device under test and the connection device are in the second state, controlling the number of the blocking plates between the device under test and the connection device to be a limit number;

[0014] When the number of the blocking plates between the device under test and the connecting device is the limit number, the connecting device is controlled to transmit a data packet to the device under test based on the communication connection.

[0015] Optionally, the method further comprises:

[0016] In the case where no barrier is provided between the device sample and the connection device, moving the device sample to keep the device sample away from the connection device; wherein the device to be tested and the device sample are devices from the same production batch;

[0017] In the process of moving the device sample, controlling the connection device to transmit data packets to the device sample in sequence, and recording the third transmission time of the connection device transmitting the data packet at each moving distance through a timer;

[0018] In the process of moving the device sample, if the connected device fails to transmit a data packet at the first moving distance, the second moving distance is used as the limit distance, and the third transmission time corresponding to the second moving distance is used as the first limit time; wherein the second moving distance is the previous moving distance of the first moving distance.

[0019] Optionally, the method further comprises:

[0020] When the distance between the device sample and the connection device is the limit distance, blocking plates are added between the device sample and the connection device in sequence;

[0021] In the process of sequentially adding barrier plates between the device sample and the connection device, controlling the connection device to sequentially transmit data packets to the device sample, and recording, by the timer, a fourth transmission time of the connection device transmitting the data packet when each number of barrier plates exists between the device sample and the connection device;

[0022] In the process of sequentially adding blocking plates between the device sample and the connection device, if the connection device fails to transmit a data packet when a first number of blocking plates exist between the device sample and the connection device, a second number is used as the limit number, and the fourth transmission time corresponding to the second number is used as the second limit time; wherein the second number is the previous number of the first number;

[0023] Optionally, the device under test is in a setting state;

[0024] The set state includes one of the following: the battery power is less than a set threshold, the battery power is greater than or equal to the set threshold, and there is signal interference.

[0025] Optionally, the communication connection is a Bluetooth connection.

[0026] According to a second aspect of an embodiment of the present disclosure, a device detection apparatus is provided, the apparatus comprising:

[0027] A control module, configured to control the connection device to transmit a data packet to the device under test based on the communication connection between the device under test and the connection device when the device under test and the connection device are in a first state and a second state respectively; wherein the first state is a state in which no blocking plate is provided between the device under test and the connection device, and the second state is a state in which a blocking plate is provided between the device under test and the connection device;

[0028] The detection module is used to determine that the device under test is qualified when the data packet transmitted in the first state meets the first set condition and the data packet transmitted in the second state meets the second set condition.

[0029] According to a third aspect of an embodiment of the present disclosure, a detection device is provided, including a memory and a processor, wherein the memory is used to store an executable computer program; the computer program is used to control the processor to execute the method described in the first aspect above.

[0030] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0031] One beneficial effect of the disclosed embodiment is that, in the two states where no blocking plate is set between the device under test and the connection device and the blocking plate is set, based on the communication connection between the device under test and the connection device, the connection device is respectively controlled to transmit a data packet to the device under test, and the device under test is determined to be qualified when the transmission data packet meets the first set condition in the first state and the transmission data packet meets the second set condition in the second state. Through this embodiment, the communication function of the device under test is tested in both different usage conditions by setting a blocking plate and not setting a blocking plate between the device under test and the connection device, and the device under test is determined to be qualified only when the communication function of the device under test passes the test in both usage conditions, thereby improving the detection accuracy of the device under test.

[0032] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.

[0034] Figure 1 is a structural schematic diagram of a device detection system according to an embodiment of the present disclosure;

[0035] Figure 2 is a flow chart of a device detection method according to an embodiment of the present disclosure;

[0036] Figure 3 is a flow chart of a device detection method according to an example of the present disclosure;

[0037] Figure 4 is a flow chart of a device detection method according to another example of the present disclosure;

[0038] Figure 5 is a structural schematic diagram of a device detection apparatus according to an embodiment of the present disclosure;

[0039] Figure 6 It is a schematic diagram of the structure of a detection device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0040] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.

[0041] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0042] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0043] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0044] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0045] <Hardware Configuration>

[0046] Before introducing the device detection method of the embodiment of the present disclosure, a brief introduction is first given to the device detection system of the embodiment of the present disclosure.

[0047] Reference Figure 1 The device detection system 100 is usually located in a detection laboratory, and the device detection system 100 includes a device to be tested 110, a device sample 120, a connection device 130, a blocking plate 140, a timer 150 and a detection device 160.

[0048] Among them, the device to be tested 110 and the device sample 120 are usually devices from the same production batch. For example, the device to be tested 110 and the device sample 120 can be smart watches produced from the same production batch, or they can be smart bracelets produced from the same production batch. Taking the smart watch produced by the same production batch as the device to be tested 110 and the device sample 120, the smart watch usually includes a communication module such as a Bluetooth module. The Bluetooth function of the Bluetooth module is one of the core functions of the smart watch, and its stability and reliability are crucial to the user experience. However, due to various factors in the production process, the Bluetooth function of the smart watch may have various problems, such as unstable connection, weak signal, slow transmission speed, etc. Therefore, it is necessary to test the Bluetooth function of the smart watch to ensure that the smart watch is qualified when it leaves the factory.

[0049] The connection device 130 can be connected to the device under test 110 or the device sample 120 according to the detection requirements. When the Bluetooth function of the device under test 110 needs to be detected, the connection device 130 is a Bluetooth connection device, such as a mobile phone, a computer, or other electronic products. Correspondingly, the above communication connection is a Bluetooth connection.

[0050] The blocking plate 140 may be disposed between the connecting device 130 and the device under test 110 , or between the connecting device 130 and the device sample 120 according to the detection requirements.

[0051] Among them, the timer 150 is usually connected to the connection device 130, and can record the transmission time of the connection device 130 transmitting a data packet to the device under test 110 according to the detection requirements, or record the transmission time of the connection device 130 transmitting a data packet to the device sample 120.

[0052] The detection device 160 may be a terminal device, a portable computer, a desktop computer, a server, a server cluster, etc. The detection device 160 is connected to the connection device 130 and the timer 150 respectively. Figure 1 As shown, the detection device 160 may include a processor 161, a memory 162, an interface device 163, a communication device 164, a display device 165, an input device 166, a speaker 167, a microphone 168, etc. Among them, the processor 161 may be a processor CPU, a microprocessor MCU, etc. The memory 162 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 163 includes, for example, a USB interface, a headphone interface, etc. The communication device 164 is capable of wired or wireless communication, and specifically may include Wifi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The display device 165 is, for example, a liquid crystal display, a touch display, etc. The input device 166 may include, for example, a touch screen, a keyboard, etc. The user may input / output voice information through the speaker 167 and the microphone 168.

[0053] In this embodiment, the memory 162 of the detection device 160 is used to store instructions, which are used to control the processor 161 to operate to at least perform the device detection method according to any embodiment of the present disclosure. A technician can design instructions according to the scheme disclosed in the present disclosure. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0054] Despite Figure 1 , multiple devices of the detection device 160 are shown; however, the present disclosure may only involve some of the devices, for example, the detection device 160 only involves the memory 162 and the processor 161.

[0055] <Method Example>

[0056] Figure 2 is a flow chart of a device detection method provided by an embodiment of the present application. The method can be Figure 1 The detection device 160 shown is implemented. Figure 2As shown, the device detection method may include the following steps S2100 to S2200, which are described in detail below.

[0057] Step S2100: When the device under test and the connecting device are respectively in a first state and a second state, based on the communication connection between the device under test and the connecting device, the connecting device is controlled to transmit a data packet to the device under test.

[0058] The first state is a state where no blocking plate is provided between the device under test and the connecting device, and the second state is a state where a blocking plate is provided between the device under test and the connecting device.

[0059] The size of the data packet may be 3-5M, which is not limited in this embodiment.

[0060] In an optional embodiment, when the device under test and the connecting device are in the first state and the second state respectively, in step S2100, based on the communication connection between the device under test and the connecting device, respectively controlling the connecting device to transmit a data packet to the device under test may further include the following steps S2110 to S2150:

[0061] Step S2110: establishing a communication connection between the device under test and the connecting device.

[0062] The communication connection may be a Bluetooth connection.

[0063] Step S2120: When the device under test and the connecting device are in the first state, control the distance between the device under test and the connecting device to be a limit distance.

[0064] The limit distance is usually obtained based on experimental tests, and is the longest distance for normal transmission of data packets between the device sample and the connected device when no barrier is provided between the two.

[0065] The device sample and the device to be tested are devices produced in the same production batch. For example, if 10 smart watches are produced in the same production batch, one of the smart watches can be used as the device sample, and the remaining 9 smart watches can be used as the devices to be tested, so that the 9 smart watches can be tested separately through the embodiments of the present disclosure to determine whether the Bluetooth functions of the 9 smart watches are normal.

[0066] Step S2130: When the distance between the device under test and the connecting device is the limit distance, based on the communication connection, control the connecting device to transmit a data packet to the device under test.

[0067] Step S2140: When the device under test and the connection device are in the second state, the number of the blocking plates between the device under test and the connection device is controlled to be a limit number.

[0068] The limit number is usually obtained based on experimental tests, and is the maximum number of barriers added between the device sample and the connected device when maintaining normal transmission of data packets between the two.

[0069] Step S2150: When the number of the blocking plates between the device under test and the connecting device is the limit number, based on the communication connection, control the connecting device to transmit a data packet to the device under test.

[0070] Next, the above steps S2110 to S2150 are introduced, taking the example of testing the Bluetooth function of the device to be tested, such as a smart watch, through the embodiment of the present disclosure, and the above testing laboratory is a Bluetooth testing laboratory. When testing the device in the Bluetooth testing laboratory, the device to be tested and the connected device can be started first, and the device to be tested and the connected device can be connected by Bluetooth, and the connected device can be controlled to transmit a data packet to the device to be tested. If it is detected that the device to be tested receives the data packet normally, it indicates that the device to be tested and the connected device are in a normal connection state.

[0071] When the device under test and the connected device are in a normal connection state, a barrier is not set between the device under test and the connected device, and the distance between the device under test and the connected device is controlled to be the limit distance. When the distance between the device under test and the connected device is the limit distance, based on the Bluetooth connection established between the device under test and the connected device, the connected device is controlled to transmit a data packet to the device under test. Generally, when the connected device transmits a data packet to the device under test, the first transmission time of the connected device transmitting the data packet to the device under test can be recorded by a timer.

[0072] Next, when the distance between the device under test and the connection device is the limit distance, a barrier plate can be set between the device under test and the connection device, and the number of barrier plates set between the device under test and the connection device is controlled to be the limit number. When the number of barrier plates set between the device under test and the connection device is the limit number, based on the Bluetooth connection established between the device under test and the connection device, the connection device is controlled to transmit a data packet to the device under test. Generally, when the connection device transmits a data packet to the device under test, the second transmission time of the connection device transmitting the data packet to the device under test can be recorded by a timer.

[0073] Step S2200: When the data packet transmitted in the first state meets a first set condition and the data packet transmitted in the second state meets a second set condition, it is determined that the device under test is qualified.

[0074] Wherein, the first setting condition includes: the first transmission time for the connecting device to complete the data packet transmission is less than or equal to the first limit time;

[0075] The second setting condition includes: a second transmission time for the connecting device to complete the data packet transmission is less than or equal to a second limit time.

[0076] The first limit time is usually obtained based on experimental tests, and the first limit time is the time required to transmit a data packet when the distance between the device sample and the connected device is the limit distance.

[0077] The second limit time is usually obtained based on experimental tests. The second limit time is the time required to transmit a data packet when the number of baffles added between the device sample and the connected device is the limit number.

[0078] In this embodiment, if the first transmission time for the connected device to complete data packet transmission in the first state is less than or equal to the first limit time, and the second transmission time for the connected device to complete data packet transmission in the second state is less than or equal to the second limit time, it is determined that the device under test is qualified.

[0079] When, in the first state, the first transmission time for the connected device to complete the data packet transmission is greater than the first limit time, or the connected device fails to complete the data packet transmission; and / or in the second state, the second transmission time for the connected device to complete the data packet transmission is greater than the second limit time, or the connected device fails to complete the data packet transmission, the device under test is determined to be unqualified.

[0080] Continuing with the above detection process, when the blocking plate is not set, in the case where the connecting device transmits a data packet to the device under test, the first transmission time of the connecting device transmitting the data packet to the device under test can be recorded by a timer, and when the blocking plate is set, in the case where the connecting device transmits a data packet to the device under test, the second transmission time of the connecting device transmitting the data packet to the device under test can be recorded by a timer. Then, if the first transmission time is greater than the first limit time or the connecting device fails to complete the data packet transmission, it indicates that the Bluetooth function of the device under test is abnormal and the device under test is unqualified. If the second transmission time is greater than the second limit time or the connecting device fails to transmit the data packet, it indicates that the Bluetooth function of the device under test is abnormal and the device under test is unqualified. In other words, if at least one of the first setting condition and the second setting condition is not met, it is determined that the device under test is unqualified.

[0081] When the first transmission time is less than or equal to the first limit time, and the second transmission time is less than or equal to the second limit time, it indicates that the Bluetooth function of the device under test is normal and the device under test is qualified. Then, by replacing a different device under test, the purpose of testing different devices can be achieved.

[0082] According to the disclosed embodiment, in two states, when a blocking plate is not provided between the device under test and the connection device and when a blocking plate is provided, based on the communication connection between the device under test and the connection device, the connection device is respectively controlled to transmit a data packet to the device under test, and when the transmission data packet satisfies a first set condition in the first state and when the transmission data packet satisfies a second set condition in the second state, the device under test is determined to be qualified. Through this embodiment, by providing a blocking plate and not providing a blocking plate between the device under test and the connection device as two different usage conditions, the communication function of the device under test is tested in both different usage conditions, and the device under test is determined to be qualified only when the communication function of the device under test passes the test in both usage conditions, thereby improving the detection accuracy of the device under test.

[0083] In one embodiment, the device detection method of the embodiment of the present disclosure further includes the step of determining the above-mentioned limit distance and the first limit time. Here, the embodiment of the present disclosure also includes the following steps S3100 to S3300:

[0084] Step S3100: In the case where no barrier is provided between the device sample and the connection device, the device sample is moved to keep the device sample away from the connection device.

[0085] The device to be tested and the device sample are devices from the same production batch.

[0086] Step S3200, in the process of moving the device sample, controlling the connection device to transmit data packets to the device sample in sequence, and recording the third transmission time of the connection device transmitting the data packet at each moving distance through a timer.

[0087] Step S3300, during the process of moving the device sample, if the connected device fails to transmit a data packet at a first moving distance, a second moving distance is used as the limit distance, and the third transmission time corresponding to the second moving distance is used as the first limit time.

[0088] The second moving distance is a moving distance preceding the first moving distance, and the second moving distance is a maximum distance for normal transmission of data packets between the device sample and the connected device when no barrier is provided between the two.

[0089] The failure of data packet transmission can be understood as the inability to complete a data packet transmission between the device sample and the connected device. Generally, if the device sample does not receive a data packet for a long time, or the device sample directly prompts that the reception fails, it is determined that the data packet transmission has failed.

[0090] Next, the above steps S3100 to S3300 are introduced. Taking the device sample as a smart watch as an example, in the Bluetooth testing laboratory, the device sample and the connection device can be started first, and the device sample and the connection device can be connected by Bluetooth, and the connection device can be controlled to transmit a data packet to the device sample. If it is detected that the device sample receives the data packet normally, it indicates that the device sample and the connection device are in a normal connection state.

[0091] When the device sample and the connection device are in a normal connection state, first, no barrier is set between the device sample and the connection device, and the device sample is moved so that the device sample is moved away from the connection device in sequence. In the process of the device sample moving away from the connection device in sequence, the connection device is controlled to transmit data packets to the device sample in sequence, and the third transmission time of the connection device transmitting the data packet at each moving distance is recorded by a timer. If the connection device fails to transmit the data packet at the first moving distance during the process of moving the device sample, the second moving distance, which is the previous moving distance of the first moving distance, is used as the limit distance, and the third transmission time corresponding to the limit distance is used as the first limit time.

[0092] Through this embodiment, the limit distance and the first limit time can be obtained, so as to detect the Bluetooth function of the device to be tested in a scenario where no blocking plate is provided based on the limit distance and the first limit time.

[0093] In one embodiment, the device detection method of the embodiment of the present disclosure further includes the step of determining the above-mentioned limit quantity and the second limit time. Here, the embodiment of the present disclosure also includes the following steps S4100 to S4300:

[0094] Step S4100: When the distance between the device sample and the connection device is the limit distance, blocking plates are added between the device sample and the connection device in sequence.

[0095] Step S4200, in the process of adding blocking plates between the device sample and the connecting device in sequence, controlling the connecting device to transmit data packets to the device sample in sequence, and recording through the timer the fourth transmission time of the connecting device transmitting the data packet when each number of blocking plates exists between the device sample and the connecting device.

[0096] Step S4300, in the process of sequentially adding blocking plates between the device sample and the connecting device, if the connecting device fails to transmit a data packet when a first number of blocking plates exist between the device sample and the connecting device, a second number is used as the limit number, and the fourth transmission time corresponding to the second number is used as the second limit time.

[0097] The second number is the previous number of the first number, and the second number is the maximum number of baffles added between the device sample and the connected device when maintaining normal transmission of data packets between the two.

[0098] Next, the above steps S4100 to S4300 are introduced. Taking the device sample as a smart watch as an example, when the distance between the device sample and the connected device is the limit distance, barrier plates are sequentially set between the device sample and the connected device. In the process of sequentially adding barrier plates between the device sample and the connected device, the connected device is controlled to sequentially transmit data packets to the device sample, and the third transmission time of the connected device transmitting the data packet when each number of barrier plates exists between the device sample and the connected device is recorded through a timer. If, in the process of sequentially adding barrier plates between the device sample and the connected device, the transmission of the data packet fails when the first number of barrier plates exists between the device sample and the connected device, the second number, which is the previous number of the first number, is used as the limit number, and the third transmission time corresponding to the limit number is used as the second limit time.

[0099] Through this embodiment, the limit number and the second limit time can be obtained, so as to detect the Bluetooth function of the device to be tested in a scenario where a blocking plate is set based on the limit number and the second limit time.

[0100] In one embodiment, the device under test is in a set state; wherein the set state includes one of the following: the battery power is less than a set threshold, the battery power is greater than or equal to the set threshold, and there is signal interference.

[0101] That is to say, through this embodiment, it is possible to detect the Bluetooth function of the device under test in different states, such as the battery power is less than the set threshold, the battery power is greater than or equal to the set threshold, or there is signal interference.

[0102] In one embodiment, the tests may be performed separately through different connection devices to improve the stability and reliability of the Bluetooth function of the device under test.

[0103] <Example>

[0104] Next, the device detection method of the embodiment of the present disclosure is described by taking the detection of the Bluetooth function of any model and any batch of smart watches as an example. In this example, refer to Figure 3 and Figure 4 , the device detection method may further include:

[0105] Step S301, in the Bluetooth testing laboratory, start the smart watch sample and the Bluetooth connection device, connect the smart watch sample and the Bluetooth connection device, and then perform a data packet transmission to ensure that the smart watch sample and the Bluetooth connection device are in a normal connection state.

[0106] Step S302, ensure that the smart watch sample and the Bluetooth connection device are in a normal connection state, and move the smart watch sample away from the Bluetooth connection device in sequence without a barrier between the smart watch sample and the Bluetooth connection device. In the process of moving the smart watch sample away from the Bluetooth connection device in sequence, control the Bluetooth connection device to transmit data packets to the smart watch sample in sequence, and use a timer to record the transmission time required for transmitting the data packet at each moving position.

[0107] Step S303, if the data packet transmission fails at the first moving distance during the mobile device sample, the previous moving distance of the first moving distance, i.e., the maximum distance at which the data packet can be normally transmitted, is used as the limit distance, and the transmission time of the data packet transmission is used as the first limit time.

[0108] Step S304, when the distance is the limit distance, a barrier is added between the smart watch sample and the Bluetooth connected device in sequence. In the process of adding barrier between the device sample and the connected device in sequence, the connected device is controlled to transmit data packets to the Bluetooth connected device in sequence, and the transmission time of the connected device for data packet transmission when each number of barrier between the device sample and the connected device is recorded through a timer.

[0109] Step S305, if during the process of sequentially adding blocking plates between the device sample and the connected device, the transmission of the data packet fails when a first number of blocking plates exist between the device sample and the connected device, the previous number of the first number, i.e., the maximum number of blocking plates added for normal transmission of the data packet, is used as the limit number, and the transmission time of the data packet is used as the second limit time.

[0110] Step S401, selecting a smart watch to be tested.

[0111] Step S402, connecting the smart watch to be tested and the Bluetooth connection device, and then transmitting a data packet to ensure that the smart watch to be tested and the Bluetooth connection device are in a normal connection state.

[0112] Step S403, ensure that the smart watch to be tested and the Bluetooth connection device are in a normal connection state, no barrier is set between the smart watch to be tested and the Bluetooth connection device, and when the distance between the smart watch to be tested and the connection device is the limit distance, control the connection device to transmit a data packet to the smart watch to be tested, and record the first transmission time of the connection device transmitting the data packet to the smart watch to be tested through a timer.

[0113] Step S404, a barrier is set between the smart watch to be tested and the Bluetooth connection device, and when the number of barrier plates set between the smart watch to be tested and the connection device is the limit number, the connection device is controlled to transmit a data packet to the smart watch to be tested. When the connection device transmits a data packet to the smart watch to be tested, a second transmission time of the connection device transmitting the data packet to the smart watch to be tested can be recorded by a timer.

[0114] Step S405: If the first transmission time is greater than the first limit time or the connected device fails to complete the data packet transmission, it indicates that the Bluetooth function of the smart watch under test is abnormal and the smart watch under test is unqualified. Alternatively, if the second transmission time is greater than the second limit time or the connected device fails to transmit the data packet transmission, it indicates that the Bluetooth function of the smart watch under test is abnormal and the smart watch under test is unqualified.

[0115] Step S406, when the first transmission time is less than or equal to the first limit time, and when the second transmission time is less than or equal to the second limit time, it indicates that the Bluetooth function of the smart watch to be tested is normal and the smart watch to be tested is qualified.

[0116] It should be noted that by replacing a different smart watch to be tested and repeating steps S401 to S409, different smart watches to be tested can be tested.

[0117] <Device Example>

[0118] In this embodiment, a device detection device 500 is provided, such as Figure 5 As shown, the device detection apparatus 500 may include a control module 510 and a detection module 520 .

[0119] The control module 510 is used to control the connection device to transmit a data packet to the device under test based on the communication connection between the device under test and the connection device when the device under test and the connection device are in a first state and a second state respectively; wherein the first state is a state in which no blocking plate is set between the device under test and the connection device, and the second state is a state in which a blocking plate is set between the device under test and the connection device;

[0120] The detection module 520 is used to determine that the device under test is qualified when the data packet transmitted in the first state meets the first set condition and the data packet transmitted in the second state meets the second set condition.

[0121] In one embodiment, the first setting condition includes: a first transmission time for the connecting device to complete data packet transmission is less than or equal to a first limit time;

[0122] The second setting condition includes: a second transmission time for the connecting device to complete the data packet transmission is less than or equal to a second limit time.

[0123] In one embodiment, the control module 510 is specifically used to establish a communication connection between the device under test and the connecting device; when the device under test and the connecting device are in a first state, control the distance between the device under test and the connecting device to be a limit distance; when the distance between the device under test and the connecting device is the limit distance, based on the communication connection, control the connecting device to transmit a data packet to the device under test; when the device under test and the connecting device are in a second state, control the number of blocking plates between the device under test and the connecting device to be a limit number; when the number of blocking plates between the device under test and the connecting device is the limit number, based on the communication connection, control the connecting device to transmit a data packet to the device under test.

[0124] In one embodiment, the control module 510 is also used to move the device sample so that the device sample is away from the connection device when no blocking plate is set between the device sample and the connection device; wherein the device to be tested and the device sample are devices from the same production batch; in the process of moving the device sample, the connection device is controlled to transmit data packets to the device sample in sequence, and the third transmission time of the connection device transmitting the data packet at each moving distance is recorded by a timer; in the process of moving the device sample, if the connection device fails to transmit the data packet at the first moving distance, the second moving distance is used as the limit distance, and the third transmission time corresponding to the second moving distance is used as the first limit time; wherein the second moving distance is the previous moving distance of the first moving distance.

[0125] In one embodiment, the control module 510 is also used to, when the distance between the device sample and the connection device is the limit distance, sequentially add blocking plates between the device sample and the connection device; in the process of sequentially adding blocking plates between the device sample and the connection device, control the connection device to sequentially transmit data packets to the device sample, and record, through the timer, the fourth transmission time of the connection device transmitting the data packet when each number of blocking plates exists between the device sample and the connection device; in the process of sequentially adding blocking plates between the device sample and the connection device, if the connection device fails to transmit the data packet when a first number of blocking plates exists between the device sample and the connection device, use the second number as the limit number, and use the fourth transmission time corresponding to the second number as the second limit time; wherein, the second number is the previous number of the first number.

[0126] In one embodiment, the device under test is in a setting state;

[0127] The set state includes one of the following: the battery power is less than a set threshold, the battery power is greater than or equal to the set threshold, and there is signal interference.

[0128] In one embodiment, the communication connection is a Bluetooth connection.

[0129] According to the disclosed embodiment, in two states, when a blocking plate is not provided between the device under test and the connection device and when a blocking plate is provided, based on the communication connection between the device under test and the connection device, the connection device is respectively controlled to transmit a data packet to the device under test, and when the transmission data packet satisfies a first set condition in the first state and when the transmission data packet satisfies a second set condition in the second state, the device under test is determined to be qualified. Through this embodiment, by providing a blocking plate and not providing a blocking plate between the device under test and the connection device as two different usage conditions, the communication function of the device under test is tested in both different usage conditions, and the device under test is determined to be qualified only when the communication function of the device under test passes the test in both usage conditions, thereby improving the detection accuracy of the device under test.

[0130] <Equipment Embodiment>

[0131] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a detection device according to an embodiment. Figure 6 As shown, the detection device 600 includes a processor 610 and a memory 620 .

[0132] The memory 620 may be used to store executable computer instructions.

[0133] The processor 610 can be used to execute the device detection method described in the embodiment of the method of the present disclosure according to the control of the executable computer instructions.

[0134] In another embodiment, the detection device 600 may include the above device detection apparatus 500 .

[0135] In one embodiment, each module of the above device detection apparatus 500 can be implemented by the processor 610 running computer instructions stored in the memory 620 .

[0136] <Computer Readable Storage Medium>

[0137] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the device detection method provided by the embodiment of the present disclosure is executed.

[0138] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0139] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0140] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0141] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0142] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0143] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0144] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0145] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0146] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims

1. A device detection method, characterized in that: The method comprises: When the device under test and the connection device are in a first state and a second state respectively, based on the communication connection between the device under test and the connection device, the connection device is controlled to transmit a data packet to the device under test; wherein the first state is a state where no blocking plate is set between the device under test and the connection device, and the second state is a state where a blocking plate is set between the device under test and the connection device; When the data packet transmitted in the first state meets the first set condition, and the data packet transmitted in the second state meets the second set condition, it is determined that the device under test is qualified.

2. The method according to claim 1, characterized in that The first setting condition includes: the first transmission time for the connecting device to complete the data packet transmission is less than or equal to the first limit time; The second setting condition includes: a second transmission time for the connecting device to complete the data packet transmission is less than or equal to a second limit time.

3. The method according to claim 1, characterized in that When the device under test and the connecting device are respectively in the first state and the second state, based on the communication connection between the device under test and the connecting device, respectively controlling the connecting device to transmit a data packet to the device under test includes: Establishing a communication connection between the device under test and the connecting device; When the device under test and the connection device are in a first state, controlling the distance between the device under test and the connection device to be a limit distance; When the distance between the device under test and the connection device is the limit distance, based on the communication connection, controlling the connection device to transmit a data packet to the device under test; When the device under test and the connection device are in the second state, controlling the number of the blocking plates between the device under test and the connection device to be a limit number; When the number of the blocking plates between the device under test and the connecting device is the limit number, the connecting device is controlled to transmit a data packet to the device under test based on the communication connection.

4. The method according to claim 2, characterized in that: The method further comprises: In the case where no barrier is provided between the device sample and the connection device, moving the device sample to keep the device sample away from the connection device; wherein the device to be tested and the device sample are devices from the same production batch; In the process of moving the device sample, controlling the connection device to transmit data packets to the device sample in sequence, and recording the third transmission time of the connection device transmitting the data packet at each moving distance through a timer; In the process of moving the device sample, if the connected device fails to transmit a data packet at the first moving distance, the second moving distance is used as the limit distance, and the third transmission time corresponding to the second moving distance is used as the first limit time; wherein the second moving distance is the previous moving distance of the first moving distance.

5. The method according to claim 4, characterized in that The method further comprises: When the distance between the device sample and the connection device is the limit distance, blocking plates are added between the device sample and the connection device in sequence; In the process of sequentially adding barrier plates between the device sample and the connection device, controlling the connection device to sequentially transmit data packets to the device sample, and recording, by the timer, a fourth transmission time of the connection device transmitting the data packet when each number of barrier plates exists between the device sample and the connection device; In the process of adding blocking plates between the device sample and the connecting device in sequence, if the connecting device fails to transmit a data packet when a first number of blocking plates exist between the device sample and the connecting device, a second number is used as the limit number, and the fourth transmission time corresponding to the second number is used as the second limit time; wherein the second number is the previous number of the first number.

6. The method according to claim 1, characterized in that The device under test is in a setting state; The set state includes one of the following: the battery power is less than a set threshold, the battery power is greater than or equal to the set threshold, and there is signal interference.

7. The method according to claim 4, characterized in that The communication connection is a Bluetooth connection.

8. A device detection device, characterized in that: The device comprises: A control module, configured to control the connection device to transmit a data packet to the device under test based on the communication connection between the device under test and the connection device when the device under test and the connection device are in a first state and a second state respectively; wherein the first state is a state in which no blocking plate is provided between the device under test and the connection device, and the second state is a state in which a blocking plate is provided between the device under test and the connection device; The detection module is used to determine that the device under test is qualified when the data packet transmitted in the first state meets the first set condition and the data packet transmitted in the second state meets the second set condition.

9. A detection device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store an executable computer program; and the computer program is used to control the processor to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.