Equipment testing method, equipment, terminal, electronic equipment and storage medium
Through the wireless communication device entering the test mode after receiving the test signal and broadcasting information, the problem that the device cannot perform functional testing in the inactive state is solved, and the effect of simplifying the test process and improving production testing efficiency is achieved.
Patent Information
- Application Number
- CN202411352506.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-10
AI Technical Summary
The equipment is locked during production line generation and cannot perform functional testing, resulting in cumbersome operation, inefficient testing and low equipment safety.
By responding to the test signal, the wireless communication device enters the test mode and broadcasts information containing the test mode so that the external terminal can establish a connection and send target function instructions. The device modifies the mode after reaching a predetermined time period or power outage to prevent receiving inactive state instruction.
Simplify the testing process, improve the testing efficiency, avoid equipment safety issues caused by manual errors, and ensure that the equipment can only operate after activation.
Smart Images

Figure CN119110339A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent devices. Specifically, the present application relates to a device testing method, a device, a terminal, an electronic device and a storage medium. Background Art
[0002] Currently, the device is locked during the production process to ensure device security and prevent unauthorized use. However, the device also needs to undergo a functional test before packaging on the production line, and the device cannot be functionally tested if it is not activated. Therefore, under normal circumstances, testers need to activate the device first, then bind the device to test it, and then lock the device after the test is completed.
[0003] However, the methods in the prior art have the problems of complicated operation, low testing efficiency and low equipment safety. Summary of the invention
[0004] The embodiments of the present application provide a device testing method, device, terminal, electronic device and storage medium, which are used to solve the technical problems of complicated operation, low testing efficiency and low device safety.
[0005] According to a first aspect of an embodiment of the present application, there is provided a device testing method, which is applied to a wireless communication device, the method comprising: in response to receiving a test signal, causing the wireless communication device to enter a test mode; Broadcasting broadcast information including first information, where the first information is used to indicate that the wireless communication device is in a test mode, so that after receiving the broadcast information, the external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device; Receive the target function instruction sent by the external terminal, determine the target operation corresponding to the target function instruction, and execute the target operation; If it is determined that the time it has been in test mode reaches the target test time or the power is cut off, the test mode is changed to the first mode. The wireless communication device in the first mode does not have the authority to receive target function instructions after connecting to an external terminal and not activating itself.
[0006] In a possible implementation, if it is determined that the duration of being in the test mode reaches the target test duration or before power failure, if a first test duration sent by an external terminal is received, the first test duration is used as the target test duration; the first test duration is sent after the input box for inputting the test duration displayed by the external terminal is input with the first test duration; If the first test duration sent by the external terminal is not received, the preset default test duration is used as the target test duration.
[0007] In another possible implementation, in response to a preset switch of the wireless communication device satisfying a trigger condition, the wireless communication device is caused to enter a test mode; The triggering conditions include at least one of the following: Within the preset detection time, the number of times the preset switch is turned on and off reaches the preset number threshold; The preset switch is pressed for a period of time exceeding the preset long-press duration.
[0008] According to a second aspect of an embodiment of the present application, there is provided a device testing method, which is applied to an external terminal, and the method includes: scanning wireless communication devices within a preset range and receiving broadcast information; If it is determined that the broadcast information includes the first information, establishing a communication connection with the wireless communication device corresponding to the broadcast information; the first information is used to indicate that the wireless communication device is in a test mode; The target function instruction is sent to the wireless communication device, so that the wireless communication device determines the target operation corresponding to the target function instruction and performs the target operation.
[0009] In a possible implementation, the external terminal includes a display interface, in which an input box for inputting a test duration is displayed, where the test duration is the duration during which the wireless communication device is in the test mode; In response to the operation of inputting the first test duration in the input box, the first test duration is sent to the wireless communication device, so that the wireless communication device uses the first test duration as the target test duration, and after determining that the time it has been in the test mode has reached the target test duration, it changes from the test mode to the first mode. The wireless communication device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself.
[0010] In another possible implementation, the external terminal includes a display interface, and a target function interface corresponding to the wireless communication device is determined according to the device identifier; the target function interface is used to display controls of functions possessed by the wireless communication device; Displaying a target function interface on a display interface; In response to the control corresponding to the target function being triggered, a target function instruction is sent to the wireless communication device.
[0011] According to a third aspect of an embodiment of the present application, a wireless communication device is provided, the device comprising: A first modification module, configured to cause the wireless communication device to enter a test mode in response to receiving a test signal; A broadcast module, configured to broadcast broadcast information including first information, wherein the first information is used to indicate that the wireless communication device is in a test mode, so that after receiving the broadcast information, the external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device; A receiving module, used to receive a target function instruction sent by an external terminal, determine a target operation corresponding to the target function instruction, and execute the target operation; The second modification module is used to change from the test mode to the first mode if it is determined that the time it has been in the test mode has reached the target test time or the power is cut off. The wireless communication device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself.
[0012] According to a fourth aspect of an embodiment of the present application, an external terminal is provided, the device comprising: A scanning module, used to scan wireless communication devices within a preset range and receive broadcast information; An establishing module, configured to establish a communication connection with a wireless communication device corresponding to the broadcast information if it is determined that the broadcast information includes first information; the first information is used to indicate that the wireless communication device is in a test mode; The sending module is used to send a target function instruction to the wireless communication device, so that the wireless communication device determines a target operation corresponding to the target function instruction and executes the target operation.
[0013] According to a fifth aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first and second aspects are implemented.
[0014] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first and second aspects are implemented.
[0015] According to the seventh aspect of the embodiments of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device performs the steps of implementing the method provided in the first and second aspects.
[0016] The beneficial effects of the technical solution provided by the embodiment of the present application are: The device testing method applied to a wireless communication device provided in an embodiment of the present application causes the wireless communication device to enter a test mode in response to receiving a test signal, and broadcasts broadcast information containing a first signal indicating that the wireless communication device is in a test mode, so that an external terminal obtains the broadcast information, and after determining that the broadcast information contains the first information, a communication connection with the wireless communication device is established, and target function instructions are started to be sent to the wireless communication device. Since the wireless communication device in the test mode has the authority to receive function instructions after the communication connection with the external terminal, the wireless communication device determines the corresponding target operation after receiving the function instruction, and executes the target operation to perform a function test. When the device determines that the duration of the current test mode reaches the target test duration, or a power outage occurs, the test mode is changed to the first mode. By predefining the test mode and the first mode of the wireless communication device, the wireless device is normally in the first mode. When the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal. There is no need to activate the device. After the device establishes a connection with the external terminal, it can directly receive the control instructions sent by the external terminal, thereby simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can be ensured that the wireless communication device needs to be activated before the device can be operated, so that manual testing and activation are not required during the test process, thereby improving the efficiency of production testing and avoiding equipment safety issues caused by human errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0018] Figure 1 A schematic diagram of a system architecture for implementing a device testing method provided in an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of a device testing method applied to a wireless communication device provided in an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of a device testing method applied to an external terminal provided in an embodiment of the present application; Figure 4 A schematic diagram of an interactive process of a device testing method provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of a wireless communication device provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an external terminal provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0020] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0021] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0022] The relevant technologies are explained below: During the test process, testers need to manually perform multiple steps such as activation, binding, testing and locking, which increases the operation time and complexity of the test process, so there is a problem of cumbersome operation; after the test is over, testers may forget to lock the activated device and directly put it into storage, which causes the activated device to be shipped incorrectly, so there is a problem of easy mistakes; when the activated device is circulated to the market, it may cause equipment safety problems and customer privacy leaks; each test device needs to be manually activated and locked, and there is a problem of low overall efficiency of the production line.
[0023] In view of at least one of the above technical problems or areas that need improvement in the related art, the present application proposes a device testing method. The device testing method applied to a wireless communication device provided in an embodiment of the present application is: In response to receiving a test signal, the wireless communication device enters a test mode and broadcasts broadcast information containing a first signal indicating that the wireless communication device is in a test mode, so that an external terminal obtains the broadcast information, and after determining that the broadcast information contains the first information, a communication connection with the wireless communication device is established, and target function instructions are sent to the wireless communication device. Since the wireless communication device in the test mode has the authority to receive function instructions after the communication connection with the external terminal, after receiving the function instruction, the wireless communication device determines the corresponding target operation and executes the target operation to perform a function test. When the device determines that the duration of the current test mode reaches the target test duration, or a power outage occurs, the test mode is changed to the first mode. By predefining the test mode and the first mode of the wireless communication device, the wireless device is normally in the first mode. When the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal. There is no need to activate the device. After the device establishes a connection with the external terminal, it can directly receive the control instructions sent by the external terminal, thereby simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can be ensured that the wireless communication device needs to be activated before the device can be operated, so that manual testing and activation are not required during the test process, thereby improving the efficiency of production testing and avoiding equipment safety issues caused by human errors.
[0024] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0025] Figure 1 A schematic diagram of a system architecture for implementing a device testing method provided in an embodiment of the present application, wherein the system architecture includes: a terminal 120, a server 140 and a wireless communication device 160.
[0026] The terminal 120 installs and runs an application program having a device testing method. The terminal 120 is used to send a target function instruction to the wireless communication device.
[0027] The terminal 120 is connected to the server 140 via a wireless network or a wired network.
[0028] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 140 includes a processor 144 and a memory 142, and the memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. The server 140 is used to provide background services for the application of the device testing method. Optionally, the server 140 undertakes the main computing work and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 adopt a distributed computing architecture for collaborative computing.
[0029] The wireless communication device 160 is used to establish a communication connection with the terminal 120 and receive a target function instruction sent by the terminal 120 .
[0030] Optionally, the device types of the terminal include: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.
[0031] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.
[0032] The present application provides a device testing method, which is applied to wireless communication devices, such as Figure 2 As shown, the method includes: S101, in response to receiving a test signal, causing a wireless communication device to enter a test mode.
[0033] In the embodiments of the present application, the wireless communication device is a device that can interact with a terminal via wireless communication. The wireless communication device can be a smart home device, such as a smart lock, a smart light, and a smart appliance. The wireless communication device can also be a personal electronic device, such as a smart watch, a fitness device, an e-reader, etc. The wireless communication device can also be an industrial controller, such as a PLC control, an industrial robot, etc. The wireless communication device can also be other electronic devices that need to be activated remotely or locally.
[0034] In the embodiment of the present application, after the wireless communication device receives the test signal, it indicates that a functional test is currently required, so the wireless communication device enters the test mode; the test signal can be sent after the wireless communication device meets a specific condition. In the embodiment of the present application, the wireless communication device can receive the test signal on the basis of being in the test mode and continue to maintain the test mode, or it can enter the test mode on the basis of being in the first mode.
[0035] In the embodiment of the present application, the wireless communication device in the first mode does not have the authority to receive the target function instruction after being connected to the external terminal and not activated itself, and the external terminal is at least one of the tester terminal and the consumer terminal.
[0036] In an embodiment of the present application, the external terminals that can establish a communication connection with the wireless communication device include a tester terminal and a consumer terminal. The tester terminal refers to the terminal used by the staff who performs the test operation, and the consumer terminal refers to the terminal used to operate the wireless communication device after the wireless communication device is purchased and bound.
[0037] In an embodiment of the present application, a test mode and a first mode of a wireless communication device are predefined, and the wireless communication device in the first mode and the wireless communication device in the test mode execute the functions they have according to different logics; for the wireless communication device in the first mode, after establishing a connection with an external terminal, it will first determine whether the wireless communication device is in an activated state, and only when the wireless communication device is in an activated state will it receive function instructions sent from the external terminal; for the wireless communication device in the test mode, after establishing a connection with the external terminal, there is no need to check whether the wireless communication device is in an activated state, and the function instructions sent by the external terminal can be directly received.
[0038] In an embodiment of the present application, the wireless communication device is initially set to a first mode, that is, the wireless communication device is initially set to receive functional instructions and execute corresponding functions only when it is in an activated state; when the wireless communication device needs to be tested, the tester modifies the wireless communication device to a test mode by sending a test signal, that is, the wireless communication device responds to receiving the test signal and allows the wireless communication device to enter the test mode, thereby enabling functional testing of the wireless communication device without activating the wireless communication device.
[0039] S102: Broadcast broadcast information including first information.
[0040] In this embodiment of the present application, the first information is used to indicate that the wireless communication device is in a test mode.
[0041] In an embodiment of the present application, the wireless communication device transmits the broadcast information containing the first information to other terminals through the wireless communication protocol. For example, the wireless communication device broadcasts the broadcast information containing the first information to each terminal within a preset range through the Bluetooth protocol.
[0042] In an embodiment of the present application, broadcast information including the first information is broadcasted, so that after receiving the broadcast information, the external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device.
[0043] In an embodiment of the present application, after the wireless communication device enters the test mode, the external terminal that receives the broadcast information refers to the terminal used by the staff who performs the test operation, that is, the tester terminal. The staff performs functional testing on the wireless communication device by using specific test software in the external terminal.
[0044] In an embodiment of the present application, since the broadcast information includes the first information, after the external terminal scans the wireless communication device and obtains the broadcast information of the wireless communication device, it is determined that the broadcast information includes the first information, which means that the wireless communication device is directly tested after the current connection with the wireless communication device. Therefore, a communication connection with the wireless communication device is established, and a target function instruction for functional testing is sent to the wireless communication device.
[0045] S103, receiving a target function instruction sent by an external terminal, determining a target operation corresponding to the target function instruction, and executing the target operation.
[0046] In an embodiment of the present application, wireless communication devices of different categories or models have different functions. The target function instruction refers to a start instruction of a function of the wireless communication device sent by an external terminal, that is, after the wireless communication device receives the target function instruction, it will start the corresponding target function. During each test, at least one target function instruction sent by the external terminal will be received. For example, a smart clothes drying machine has functions such as lifting function, light chasing function and drying function. When the wireless communication device receives the drying function instruction sent by the activation terminal, it turns on the drying function.
[0047] In the embodiment of the present application, the function library can store various function instructions and operations corresponding to each function instruction. Different function instructions correspond to different operations. Through the content recorded in the function library, the wireless communication device can quickly execute the target operation required to start the target function. For example, if the wireless communication device is a smart clothes drying machine and the received target instruction is a drying function instruction, then the corresponding target operation is to start the drying device installed on the smart clothes drying machine and start humidity detection in the periodic drying area, so as to achieve the purpose of starting the drying function.
[0048] In an embodiment of the present application, since the wireless communication device is currently in a test mode, after establishing a communication connection with an external terminal, it can directly receive the target function instructions sent by the external terminal and execute the corresponding target operations, without having to determine that the wireless communication device is in an activated state before receiving the target function instructions.
[0049] S104: If it is determined that the time duration in the test mode reaches the target test time duration or the power is off, the test mode is changed to the first mode.
[0050] In an embodiment of the present application, the target test duration is used to control the duration that the wireless communication device is in the test mode. When the duration that the wireless communication device is in the test mode reaches the target test duration, it indicates that the current test has ended and it is no longer necessary to receive the target function instructions sent by the external terminal. Therefore, the wireless communication device is changed from the test mode to the first mode.
[0051] In an embodiment of the present application, after detecting that the wireless communication device is powered off, the wireless communication device will also be changed from the test mode to the first mode. Even if the power is forcibly cut off during the test process, it can be ensured that the wireless communication device after restart still needs to perform the required functions in an activated state.
[0052] The device testing method applied to a wireless communication device provided in an embodiment of the present application causes the wireless communication device to enter a test mode in response to receiving a test signal, and broadcasts broadcast information containing a first signal indicating that the wireless communication device is in a test mode, so that an external terminal obtains the broadcast information, and after determining that the broadcast information contains the first information, a communication connection with the wireless communication device is established, and target function instructions are started to be sent to the wireless communication device. Since the wireless communication device in the test mode has the authority to receive function instructions after the communication connection with the external terminal, the wireless communication device determines the corresponding target operation after receiving the function instruction, and executes the target operation to perform a function test. When the device determines that the duration of the current test mode reaches the target test duration, or a power outage occurs, the test mode is changed to the first mode. By predefining the test mode and the first mode of the wireless communication device, the wireless device is normally in the first mode. When the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal. There is no need to activate the device. After the device establishes a connection with the external terminal, it can directly receive the control instructions sent by the external terminal, thereby simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can be ensured that the wireless communication device needs to be activated before the device can be operated, so that manual testing and activation are not required during the test process, thereby improving the efficiency of production testing and avoiding equipment safety issues caused by human errors.
[0053] On the basis of the above embodiments, as an optional embodiment, the target test duration is a first test duration sent by the external terminal or a preset default test duration.
[0054] In an embodiment of the present application, a pre-set default test duration can be used as a target test duration to control the time that the wireless communication device is in the test mode. Alternatively, the tester can set the duration of the test mode based on the actual test requirements of the tester, and then send the determined first test duration to the wireless communication device. The wireless communication device uses the first test duration as the target test time to control the time that the wireless communication device is in the test mode.
[0055] Based on the above embodiments, as an optional embodiment, if it is determined that the duration of being in the test mode reaches the target test duration or before power failure, it also includes: If the first test duration sent by the external terminal is received, the first test duration will be used as the target test duration; the first test duration is sent after the input box for entering the test duration displayed by the external terminal is entered with the first test duration; if the first test duration sent by the external terminal is not received, the pre-set default test duration will be used as the target test duration.
[0056] In an embodiment of the present application, before it is determined that the time the wireless communication device is in the test mode reaches the target test time or is powered off, the current target test time can be changed. That is, before the external terminal performs a functional test on the wireless communication device or during a functional test, the duration of the current wireless communication device in the test mode can be modified, so that the tester can flexibly adjust the test time of the wireless communication device according to the actual test situation.
[0057] In an embodiment of the present application, the first test duration is sent by the tester through an external terminal. After the tester determines the first test duration based on actual test requirements, the tester enters the first test duration in an input box displayed on the external terminal for entering the test duration. In response to the first test duration being entered into the input box, the external terminal sends the first test duration to the wireless communication device.
[0058] In an embodiment of the present application, when the wireless communication device is in the test mode, before receiving the first test duration sent by the external terminal, the pre-set default test duration is used as the target test duration to control the duration of the wireless communication device in the test mode. Once the wireless communication device receives the first test duration sent by the external terminal, the first test duration is used as the target test duration to control the duration of the wireless communication device in the test mode.
[0059] In the above scheme, when the first test duration sent by the external terminal is not received, the pre-set default test duration is used as the target test duration to control the duration of the wireless communication device in the test mode. When the first test duration sent by the external terminal is received, based on the test requirements of the tester, the first test duration is used as the target test duration to control the duration of the wireless communication device in the test mode. The test duration can be flexibly set to adapt to different test requirements. When the tester does not set the duration, the preset default test duration will be used as the target test duration to ensure that the wireless communication device will enter the first mode after the test mode reaches the target test duration, thereby improving the security of device management.
[0060] Based on the above embodiments, as an optional embodiment, in response to a preset switch of the wireless communication device satisfying a trigger condition, the wireless communication device enters a test mode; the trigger condition includes at least one of the following: within a preset detection time, the number of times the preset switch is turned on and off reaches a preset number threshold; the preset switch is long pressed for longer than a preset long press time.
[0061] In an embodiment of the present application, the preset switch is a switch pre-installed on the wireless communication device. For example, the preset switch may be a micro switch. The trigger condition satisfied by the preset switch may refer to a change in the state of the preset switch. The trigger condition satisfied by the preset switch may also be that the preset switch is changed from a closed state to an open state, or that the preset switch is long pressed, or that the preset switch changes state multiple times in a row.
[0062] In an embodiment of the present application, in order to ensure that the preset switch of the wireless communication device is not accidentally touched, and then the communication device is caused to enter the test mode without the knowledge of the tester, the condition for triggering the preset switch is usually controlled. For example, it can be controlled from the time. The detection of whether the preset switch is triggered starts from the power-on of the wireless communication device, and the detection is only performed within the preset detection time since the power-on. If the preset detection time is exceeded, it will no longer detect whether the preset switch is triggered. The number of state changes of the preset switch can also be controlled. For example, the triggering condition of the preset switch is to repeat opening and closing three times, that is, the state of the preset switch is changed from off to on, and from on to off, and the above operation is repeated three times; the operation time and the specific operation action can also be controlled together, such as whether the duration of long pressing the preset switch reaches the preset long pressing time, or the number of repeated switching of the preset switch reaches the preset number threshold within the preset detection time.
[0063] In one example, timing starts from the time the wireless communication device is powered on. If within the preset detection time, it is detected that the preset switch is turned on and the number of repetitions reaches the preset number threshold, that is, the state of the preset switch is changed from off to on, and from on to off, and the number of times the above operation is repeated reaches the preset number threshold, it means that the preset switch meets the trigger condition, and the wireless communication device is changed from the first mode to the test mode.
[0064] In the above scheme, after the device is powered on, it starts timing and detects whether the preset switch meets the trigger condition for entering the test mode. When the condition is met, the wireless communication device enters the test mode, which simplifies the operating steps of the tester and improves the equipment testing efficiency.
[0065] In an embodiment of the present application, the wireless communication device includes a main controller and a wireless communication module. The main controller is used to detect whether a preset switch is triggered. The main controller is also used to modify the mode. The main controller is also used to perform corresponding operations according to target control instructions. The wireless communication module is used to interact with an external terminal, broadcast broadcast information containing first information, establish a connection with an external terminal, and receive target function instructions sent by the external terminal.
[0066] The present application provides a device testing method, which is applied to an external terminal, such as Figure 3 As shown, the method includes: S201, scanning wireless communication devices within a preset range to receive broadcast information.
[0067] In an embodiment of the present application, broadcast information is information sent by a wireless communication device, and the broadcast information includes information related to the wireless communication device. The broadcast information is used for the external terminal to determine whether to establish a communication connection with the wireless communication device corresponding to the broadcast information after the external terminal receives it.
[0068] In the embodiment of the present application, the external terminal that scans and receives the broadcast information refers to a terminal used by a staff member who performs a test operation. The staff member performs a functional test on the wireless communication device by using specific test software in the external terminal.
[0069] In an embodiment of the present application, nearby wireless communication devices are scanned through a wireless communication protocol to obtain broadcast information of nearby wireless communication devices. For example, nearby wireless communication devices are scanned through Bluetooth and broadcast information broadcast by the wireless communication devices is obtained, or nearby wireless communication devices are identified and connected through WiFi, and then the broadcast information of the wireless communication devices is obtained.
[0070] S202: If it is determined that the broadcast information includes the first information, establish a communication connection with the wireless communication device corresponding to the broadcast information.
[0071] In the embodiment of the present application, the first information is used to indicate that the wireless communication device is in the test mode.
[0072] In the embodiment of the present application, the wireless communication device in the test mode means that after the current wireless communication device establishes a connection with the external terminal, it does not need to check whether the wireless communication device is in an activated state, and can directly receive the function instructions sent by the external terminal.
[0073] In an embodiment of the present application, the wireless communication device uses the first information to characterize that the current wireless communication device is in the test mode. The broadcast information includes the first information, which is used to indicate that the external terminal can directly start entering the test process after establishing a communication connection with the wireless communication device. Therefore, after the external terminal determines that the broadcast information contains the first information, it establishes a communication connection with the wireless communication device corresponding to the broadcast information, thereby starting to test the wireless communication device.
[0074] S203: Send a target function instruction to the wireless communication device.
[0075] In an embodiment of the present application, a target function instruction is sent to a wireless communication device so that a target operation corresponding to the target function instruction is determined in a function library of the wireless communication device and the target operation is executed.
[0076] In the embodiment of the present application, wireless communication devices of different categories or models have different functions, and the target function instruction refers to an instruction to start the function of the wireless communication device sent by the external terminal.
[0077] In the embodiment of the present application, a function library can be used to store various function instructions and operations corresponding to each function instruction. Different function instructions correspond to different operations. Through the content recorded in the function library, the wireless communication device can quickly execute the target operation required to start the target function.
[0078] In an embodiment of the present application, the external terminal selects a target function for testing from all functions of the wireless communication device, and then sends a target function instruction to the wireless communication device, so that after receiving the target function instruction, the wireless communication device determines the target operation required to start the target function from the function library, executes the target operation, and thus starts the target function.
[0079] Normally, a wireless communication device needs to be in an activated state in order to receive functional instructions sent by a terminal. That is, the conventional process should be that after the external terminal establishes a communication connection with the wireless communication device, the wireless communication device is activated, and after determining that the wireless communication device has been successfully activated, that is, after the wireless communication is in an activated state, the external terminal can send target functional instructions to the wireless communication device and start functional testing of the wireless communication device.
[0080] In an embodiment of the present application, a test mode is predefined. After the wireless communication device in the test mode establishes a connection with the wireless communication device, it can directly receive the target function instructions sent by the wireless communication device, so that the external terminal does not need to activate the wireless communication device, which greatly reduces the operating steps of the tester in the process of testing the wireless communication device.
[0081] The device testing method applied to the external terminal provided in the embodiment of the present application scans the wireless communication devices within a preset range and receives the broadcast information broadcast by the wireless communication devices. If it is determined that the broadcast information includes the first information, it means that the current wireless communication device is in the test mode. Therefore, after establishing the communication connection with the wireless communication device, the target function instruction can be directly sent to the wireless communication device. There is no need to activate the wireless communication device through the external terminal before sending the target function instruction to the wireless communication device for testing. This greatly simplifies the operation steps of the tester and significantly improves the test efficiency. In addition, the activator terminal does not need to activate the wireless communication device, which also means that there is no need to perform a locking operation on the wireless communication device (restoring the activated device to the unactivated state), thereby avoiding the problem of the activated wireless communication device being put into storage due to human error, thereby improving the safety of the device.
[0082] On the basis of the above embodiments, as an optional embodiment, the external terminal includes a display interface, in which an input box for inputting a test duration is displayed, and the test duration is the duration during which the wireless communication device is in the test mode; in response to the operation of inputting a first test duration in the input box, the first test duration is sent to the wireless communication device, so that the wireless communication device uses the first test duration as the target test duration, and after determining that the duration during which it has been in the test mode reaches the target test duration, changes from the test mode to the first mode, and the wireless communication device in the first mode does not have the authority to receive the target function instruction after being connected to the external terminal and not activated itself, and the external terminal is at least one of the external terminal and the consumer terminal.
[0083] In an embodiment of the present application, the external terminal includes a display interface, which is an interface of a test application for testing the device. After the tester logs in to the test application through the external terminal and the external terminal establishes a Bluetooth connection with the wireless communication device through the test application, the display interface will display an input box for entering the test duration. By entering the first test duration into the input box, the duration that the wireless communication device is in the test mode can be controlled, that is, the test duration of the wireless communication device can be determined.
[0084] In an embodiment of the present application, a wireless communication device in a first mode and a wireless communication device in a test mode execute functions according to different logics; for a wireless communication device in the first mode, after establishing a connection with a consumer terminal or an external terminal, it will first determine whether the wireless communication device is in an activated state. Only when the wireless communication device is in an activated state will it receive function instructions sent from the consumer terminal or the external terminal; for a wireless communication device in a test mode, after establishing a connection with an external terminal, there is no need to check whether the wireless communication device is in an activated state, and the function instructions sent by the external terminal can be directly received.
[0085] In an embodiment of the present application, after the tester enters the first test duration in the input box of the display interface, the external terminal detects that the input box is filled, obtains the first test duration filled in the input box, and then sends the first test duration to the wireless communication device, so that the wireless communication device uses the first test duration as the target test duration, and after determining that the time it has been in the test mode reaches the target test duration, the wireless communication device is changed from the test mode to the first mode, that is, the wireless communication device will receive the wireless communication device only when it confirms that it has been activated, so that the external terminal can no longer perform functional testing by sending functional instructions to the wireless communication device.
[0086] In the above scheme, after establishing a communication connection with the wireless communication device, an input box for controlling the test duration will be displayed. If the tester has requirements for the test time, the first test time will be entered in the input box. After the external terminal detects that the input box is filled, the first test duration will be obtained, and then the first test duration will be sent to the wireless communication device, so that the wireless communication device uses the first test duration as the target test duration to control the duration of the wireless communication device in the test mode, thereby changing the wireless communication device from the test mode to the first mode. Since the wireless communication device in the first mode needs to be in an activated state to receive the target function instructions sent by the external terminal, even if the tester forgets to close the test process, it can be ensured that the device can only receive the target function instructions and execute functions in an activated state, so that during the testing process of the device, there is no need for manual activation and locking, which improves the efficiency of production testing and avoids equipment safety issues caused by human errors.
[0087] Based on the above embodiments, as an optional embodiment, the broadcast information also includes a device identification, and the target function interface corresponding to the wireless communication device is determined according to the device identification; the target function interface is used to display controls for the functions of the wireless communication device; the target function interface is displayed on the display interface; in response to the control corresponding to the target function being triggered, the target function instruction is sent to the wireless communication device.
[0088] In the embodiment of the present application, since different wireless communication devices have different functions due to different device models and device types, the embodiment of the present application provides a test application that can test multiple categories of wireless communication devices and multiple models of wireless communication devices. The device model of the device can be determined through the device identification. Wireless communication devices of the same device model have the same functions. Therefore, the functions of the wireless communication device can be determined through the device identification carried in the broadcast information, and the corresponding target function interface is determined according to the functions. The controls of the functions of the wireless communication device will be displayed in the target function interface. By triggering the controls of the functions displayed in the target function interface, the wireless communication device can be instructed to perform the corresponding functions.
[0089] In an embodiment of the present application, after the external terminal obtains the device identification according to the broadcast information, it can determine the functions of the wireless communication device according to the device identification, thereby generating a target function interface corresponding to the wireless communication device, and displaying the target function interface on a display page for the tester to select the function to be tested. The tester triggers the control corresponding to the target function on the target function interface according to the test requirements. In response to the control of the target function being triggered, the external terminal sends a target function instruction to the wireless communication device, instructing the wireless communication device to start the target function.
[0090] In the above scheme, after the external terminal determines that the wireless communication device is in test mode and establishes a communication connection, the external terminal directly determines the functions of the wireless communication device according to the device identification carried in the broadcast information, thereby displaying the target function interface. The tester tests the wireless communication device by triggering the control of the target function in the target function interface. In response to the control of the target function being triggered, the external terminal sends the target function instruction to the wireless communication device for testing. By displaying the corresponding function interface according to the device identification, the external terminal can test different types and models of wireless communication devices without setting up specific test applications for each type or model of device, and the test cost is low and the test efficiency is high.
[0091] refer to Figure 4 As shown, it exemplarily shows an interactive flow chart of a device testing method, and the specific contents include: S301, in response to receiving a test signal, the wireless communication device changes the wireless communication device from a first mode to a test mode; S302, the wireless communication device broadcasts broadcast information including first information; S303, the external terminal scans the wireless communication devices within a preset range and receives broadcast information; S304: If the external terminal determines that the broadcast information includes the first information, the external terminal establishes a communication connection with the wireless communication device corresponding to the broadcast information; S305, the external terminal sends the first test duration to the wireless communication device in response to the first test duration being input into the input box displayed on the display interface; S306, the wireless communication device uses the first test duration as the target test duration; S307, the wireless communication device returns a response message indicating that the test duration is set successfully; S308, the external terminal obtains the device identification from the broadcast information, and determines the corresponding target function interface according to the device identification; S309: In response to at least one control corresponding to a target function in the target function interface being triggered, the external terminal sends at least one target function instruction to the wireless communication device.
[0092] S310: For each target function instruction, the wireless communication device determines a target operation corresponding to the target function instruction from a function library, and executes the target operation.
[0093] S311. If the wireless communication device determines that the time it has been in the test mode reaches the target test time or is powered off, it changes from the test mode to the first mode.
[0094] In the above solution, the execution order of S305-S307 and S308-S310 is not limited, and S305-S307 may be executed first, or S308-S310 may be executed first.
[0095] The equipment testing method provided in this application can be applied to equipment manufacturing companies that perform functional testing on production lines. The method provided in this application can improve testing efficiency and reduce errors. It can also be applied to other scenarios where equipment needs to be temporarily operated, such as equipment maintenance and quality inspection.
[0096] The present application embodiment provides a wireless communication device, such as Figure 5 As shown, the wireless communication device 50 may include: a first modification module 501, a broadcast module 502, a receiving module 503 and a second modification module 504, wherein: A first modification module 501, configured to cause the wireless communication device to enter a test mode in response to receiving a test signal; A broadcast module 502, configured to broadcast broadcast information including first information, where the first information is used to indicate that the wireless communication device is in a test mode, so that after receiving the broadcast information, the external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device; The receiving module 503 is used to receive the target function instruction sent by the external terminal, determine the target operation corresponding to the target function instruction, and execute the target operation; The second modification module 504 is used to modify the test mode to the first mode if it is determined that the time it has been in the test mode has reached the target test time or the power is off. The wireless communication device in the first mode does not have the authority to receive the target function instruction after connecting to the external terminal and not activating itself.
[0097] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0098] Further, in a possible implementation, if it is determined that the duration of being in the test mode reaches the target test duration or before power failure, if a first test duration sent by an external terminal is received, the first test duration is used as the target test duration; the first test duration is sent after the input box for inputting the test duration displayed by the external terminal is input with the first test duration; If the first test duration sent by the external terminal is not received, the preset default test duration is used as the target test duration.
[0099] In another possible implementation, if it is detected that the number of times a preset switch is turned on and off reaches a preset number threshold within a preset detection time period after power-on, the wireless communication device is changed from the first mode to the test mode.
[0100] The present application embodiment provides an external terminal, such as Figure 6 As shown, the external terminal 60 may include: a scanning module 601, a establishing module 602 and a sending module 603, wherein: The scanning module 601 is used to scan wireless communication devices within a preset range and receive broadcast information; Establishing module 602, for establishing a communication connection with a wireless communication device corresponding to the broadcast information if it is determined that the broadcast information includes first information; the first information is used to indicate that the wireless communication device is in a test mode; The sending module 603 is used to send a target function instruction to the wireless communication device, so that the wireless communication device determines a target operation corresponding to the target function instruction.
[0101] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0102] Further, in a possible implementation, the external terminal includes a display interface, and an input box for inputting a test duration is displayed in the display interface, where the test duration is the duration during which the wireless communication device is in the test mode; In response to the operation of inputting the first test duration in the input box, the first test duration is sent to the wireless communication device, so that the wireless communication device uses the first test duration as the target test duration, and after determining that the time it has been in the test mode has reached the target test duration, it changes from the test mode to the first mode. The wireless communication device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself.
[0103] In another possible implementation, the external terminal includes a display interface, and a target function interface corresponding to the wireless communication device is determined according to the device identifier; the target function interface is used to display controls of functions possessed by the wireless communication device; Displaying a target function interface on a display interface; In response to the control corresponding to the target function being triggered, a target function instruction is sent to the wireless communication device.
[0104] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor, and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the device testing method. Compared with the related art, the following can be achieved: In response to receiving a test signal, the wireless communication device enters a test mode and broadcasts broadcast information containing a first signal indicating that the wireless communication device is in a test mode, so that an external terminal obtains the broadcast information, and after determining that the broadcast information contains the first information, a communication connection with the wireless communication device is established, and target function instructions are sent to the wireless communication device. Since the wireless communication device in the test mode has the authority to receive function instructions after the communication connection with the external terminal, after receiving the function instruction, the wireless communication device determines the corresponding target operation and executes the target operation to perform a function test. When the device determines that the duration of the current test mode reaches the target test duration, or a power outage occurs, the test mode is changed to the first mode. By predefining the test mode and the first mode of the wireless communication device, the wireless device is normally in the first mode. When the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal. There is no need to activate the device. After the device establishes a connection with the external terminal, it can directly receive the control instructions sent by the external terminal, thereby simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can be ensured that the wireless communication device needs to be activated before the device can be operated, so that manual testing and activation are not required during the test process, thereby improving the efficiency of production testing and avoiding equipment safety issues caused by human errors.
[0105] In an alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0106] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0107] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0108] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0109] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0110] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0111] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, the following can be implemented: In response to receiving a test signal, the wireless communication device enters a test mode and broadcasts broadcast information containing a first signal indicating that the wireless communication device is in a test mode, so that an external terminal obtains the broadcast information, and after determining that the broadcast information contains the first information, a communication connection with the wireless communication device is established, and target function instructions are sent to the wireless communication device. Since the wireless communication device in the test mode has the authority to receive function instructions after the communication connection with the external terminal, after receiving the function instruction, the wireless communication device determines the corresponding target operation and executes the target operation to perform a function test. When the device determines that the duration of the current test mode reaches the target test duration, or a power outage occurs, the test mode is changed to the first mode. By predefining the test mode and the first mode of the wireless communication device, the wireless device is normally in the first mode. When the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal. There is no need to activate the device. After the device establishes a connection with the external terminal, it can directly receive the control instructions sent by the external terminal, thereby simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instructions after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can be ensured that the wireless communication device needs to be activated before the device can be operated, so that manual testing and activation are not required during the test process, thereby improving the efficiency of production testing and avoiding equipment safety issues caused by human errors.
[0112] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0113] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor. Compared with the prior art, it can be achieved that: by predefining the test mode and the first mode of the wireless communication device, the wireless device is in the first mode under normal circumstances, and when the wireless communication device needs to be tested, the test mode can be entered by responding to the received test signal, and the device can directly receive the control instructions sent by the external terminal after the device is connected to the external terminal without activating the device, simplifying the test process. Since the device in the first mode does not have the authority to receive the target function instruction after connecting to the external terminal and not activating itself, even if the tester forgets to close the test process or the power is cut off, causing the test to be interrupted, it can ensure that the wireless communication device needs to be activated before the device can be operated, so that there is no need for manual testing and activation during the test process, which improves the efficiency of production testing and avoids equipment safety problems caused by manual errors.
[0114] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0115] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0116] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A device testing method, characterized in that: Applied to a wireless communication device, the method comprises: In response to receiving a test signal, causing the wireless communication device to enter a test mode; Broadcasting broadcast information including first information, wherein the first information is used to indicate that the wireless communication device is in a test mode, so that after receiving the broadcast information, an external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device; receiving a target function instruction sent by the external terminal, determining a target operation corresponding to the target function instruction, and executing the target operation; If it is determined that the time it has been in the test mode reaches the target test time or the power is off, the test mode is changed to the first mode. The wireless communication device in the first mode does not have the authority to receive target function instructions after connecting to an external terminal and not activating itself.
2. The method according to claim 1, characterized in that If it is determined that the duration of the test mode reaches the target test duration or the power is cut off, the method further includes: If a first test duration sent by the external terminal is received, the first test duration is used as the target test duration; the first test duration is sent after the input box for inputting the test duration displayed by the external terminal is input with the first test duration; If the first test duration sent by the external terminal is not received, the preset default test duration is used as the target test duration.
3. The method according to claim 1, characterized in that In response to receiving the test signal, causing the wireless communication device to enter a test mode, comprising: In response to a preset switch of the wireless communication device satisfying a trigger condition, causing the wireless communication device to enter a test mode; The trigger condition includes at least one of the following: Within the preset detection time, the number of times the preset switch is turned on and off reaches the preset number threshold; The preset switch is long pressed for a period of time exceeding a preset long press period.
4. A device testing method, characterized in that: Applied to an external terminal, the method comprises: Scan wireless communication devices within a preset range and receive broadcast information; If it is determined that the broadcast information includes first information, establishing a communication connection with the wireless communication device corresponding to the broadcast information; the first information is used to indicate that the wireless communication device is in a test mode; A target function instruction is sent to the wireless communication device, so that the wireless communication device determines a target operation corresponding to the target function instruction and executes the target operation.
5. The method according to claim 4, characterized in that The external terminal includes a display interface; The step of establishing a communication connection with a wireless communication device corresponding to the broadcast information further includes: Displaying an input box for inputting a test duration in the display interface, the test duration being the duration during which the wireless communication device is in the test mode; In response to an operation of inputting a first test duration in the input box, the first test duration is sent to the wireless communication device, so that the wireless communication device uses the first test duration as a target test duration, and after determining that the time it has been in the test mode has reached the target test duration, it changes from the test mode to the first mode. The wireless communication device in the first mode does not have the authority to receive target function instructions after connecting to an external terminal and not activating itself.
6. The method according to claim 4, characterized in that The external terminal includes a display interface; The broadcast information also includes a device identification, and the sending of a target function instruction to the wireless communication device includes: Determine, according to the device identifier, a target function interface corresponding to the wireless communication device; the target function interface is used to display controls of functions possessed by the wireless communication device; Displaying the target function interface on the display interface; In response to the control corresponding to the target function being triggered, sending the target function instruction to the wireless communication device.
7. A wireless communication device, characterized in that: include: A first modification module, configured to cause the wireless communication device to enter a test mode in response to receiving a test signal; a broadcast module, configured to broadcast broadcast information including first information, wherein the first information is used to indicate that the wireless communication device is in a test mode, so that after receiving the broadcast information, an external terminal establishes a communication connection with the wireless communication device and sends a target function instruction to the wireless communication device; A receiving module, configured to receive a target function instruction sent by the external terminal, determine a target operation corresponding to the target function instruction, and execute the target operation; The second modification module is used to change from the test mode to the first mode if it is determined that the time it has been in the test mode reaches the target test time or the power is cut off. The wireless communication device in the first mode does not have the authority to receive the target function instruction after connecting to the external terminal and not activating itself.
8. An external terminal, characterized in that: include: A scanning module, used to scan wireless communication devices within a preset range and receive broadcast information; an establishing module, configured to establish a communication connection with a wireless communication device corresponding to the broadcast information if it is determined that the broadcast information includes first information; the first information is used to indicate that the wireless communication device is in a test mode; The sending module is used to send a target function instruction to the wireless communication device, so that the wireless communication device determines a target operation corresponding to the target function instruction and executes the target operation.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
