State determination device and method, test system, storage medium and electronic equipment

By electrically connecting the status determination device to the gateway and the controlled device, the problem of low test accuracy under the mesh Internet of Things protocol is solved, and a fast and accurate assessment of the device response is achieved, thereby improving network performance and the stability of device control.

CN120835014APending Publication Date: 2025-10-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410472333.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of wireless communication tests under the mesh Internet of Things protocol is low. Especially when controlling a large number of devices, wireless status return interference and inaccurate response time are prone to occur, affecting network performance.

Method used

The status determination device is electrically connected to the gateway, transmits test instructions by wired means, and is electrically connected to the controlled device to obtain device status information. The device response status is accurately determined by combining the speed of the electrical connection and the coverage of wireless communication.

Benefits of technology

It improves the accuracy and reliability of testing, reduces wireless status backhaul interference, and ensures the stability of network performance and the accuracy of device response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120835014A_ABST
    Figure CN120835014A_ABST
Patent Text Reader

Abstract

The invention provides a state determination device and method, a test system, a storage medium and electronic device.The state determination device is electrically connected with a gateway and used for transmitting a preset test instruction to the gateway; the gateway is in communication connection with at least one controlled device through a mesh Internet of Things protocol, and is used for transmitting the test instruction to the at least one controlled device; and the processor is electrically connected with the at least one controlled device and is used for acquiring device state information of the at least one controlled device and determining the condition that the at least one controlled device responds to the test instruction based on the device state information. Through the state determination device, the test accuracy of the communication connection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The technical solution of the present disclosure relates to the technical field of wireless communication testing, and particularly relates to a state determination apparatus and method, a testing system, a storage medium and an electronic device. BACKGROUND

[0002] In the field of wireless communication, there is a kind of mesh Internet of Things protocol, such as Zigbee (Zigbee Specification), Bluetooth Mesh (Bluetooth Mesh Networking Specification), Thread (Thread networking protocol), etc. The main feature of the mesh Internet of Things protocol is that all devices are combined into a network, and any two devices in the network can be connected and transmit messages, which is usually referred to as a many-to-many connection. For example, a user can control a large number of devices in the home to work simultaneously through the mesh Internet of Things protocol.

[0003] In the prior art, in order to ensure that the controlled devices can stably operate under the mesh Internet of Things protocol and other wireless communication technologies, the response of each device under wireless communication needs to be tested. However, the existing testing scheme still has the problem of low testing accuracy. SUMMARY

[0004] Therefore, the present disclosure provides a state determination apparatus and method, a testing system, a storage medium and an electronic device to solve the problem of low testing accuracy.

[0005] According to a first aspect of an embodiment of the present disclosure, a state determination apparatus is provided, and the state determination apparatus comprises:

[0006] a gateway electrically connected thereto, configured to transmit a preset test instruction to the gateway; the gateway is in communication connection with at least one controlled device, and is configured to transmit the test instruction to the at least one controlled device;

[0007] the at least one controlled device is electrically connected to the state determination apparatus, and is configured to acquire device state information of the at least one controlled device, and determine a response of the at least one controlled device to the test instruction based on the device state information.

[0008] According to a second aspect of an embodiment of the present disclosure, a testing system is provided, and the testing system comprises:

[0009] a state determination apparatus, a gateway electrically connected to the state determination apparatus, and at least one controlled device electrically connected to the state determination apparatus, wherein the gateway is in communication connection with the at least one controlled device;

[0010] The gateway is configured to receive the test instruction transmitted by the state determination apparatus and transmit the test instruction to at least one controlled device.

[0011] The state determination apparatus is configured to transmit a preset test instruction to the gateway, and acquire device state information of the at least one controlled device and determine a response of the at least one controlled device to the test instruction based on the device state information.

[0012] According to a third aspect of the embodiments of the present disclosure, a state determination method is provided, and the method comprises:

[0013] In response to detecting electrical connection with a gateway, forwarding a preset test instruction to at least one controlled device through the gateway; the gateway is in communication connection with the at least one controlled device.

[0014] In response to detecting electrical connection with the at least one controlled device, acquiring device state information of the at least one controlled device.

[0015] Based on the device state information, determining a response of the at least one controlled device to the received test instruction.

[0016] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, and the electronic device comprises:

[0017] A processor;

[0018] A memory for storing processor-executable instructions;

[0019] The processor is configured to implement the steps of the state determination method of any one of the third aspect by running the executable instructions.

[0020] According to a fifth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and the medium stores a computer program, which is executed by a processor to implement the steps of the state determination method of any one of the third aspect.

[0021] The technical solutions provided by the embodiments of the present disclosure can have the following beneficial effects:

[0022] The state determining apparatus is electrically connected with the gateway, and can transmit the preset test instruction to the gateway through electrical connection. Since the wired connection technology of electrical connection is relatively mature, the time for transmitting the test instruction to the gateway can be ignored. After receiving the test instruction, the gateway sends the test instruction to each controlled device, and this process needs to consume a certain amount of time. After receiving the test instruction and executing the test instruction, the controlled device changes the state, for example, from the on state to the off state. At this time, the state determining apparatus can obtain the device state information of the controlled device through electrical connection with at least one controlled device, and the time of electrical transmission can also be ignored.

[0023] It can be seen that only the connection mode between the gateway and the at least one controlled device is connected through the wireless communication of communication connection, and the connection modes of the others are electrical connection. Therefore, the response speed, response result and a series of response conditions of each controlled device to the test instruction can be tested more accurately according to the states of the controlled devices, so as to improve the test accuracy.

[0024] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0025] The accompanying drawings incorporated in the specification and constituting a part of the specification illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure together with the specification.

[0026] Figure 1 is a system framework diagram of a test system according to an exemplary embodiment of the present disclosure;

[0027] Figure 2 is a framework diagram of a state determining apparatus according to an exemplary embodiment of the present disclosure;

[0028] Figure 3 is a framework diagram of another state determining apparatus according to an exemplary embodiment of the present disclosure;

[0029] Figure 4 is a framework diagram of another state determining apparatus according to an exemplary embodiment of the present disclosure;

[0030] Figure 5 is a flowchart of a state determining method according to an exemplary embodiment of the present disclosure;

[0031] Figure 6 is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The description below refers to the accompanying drawings, which show, by way of example, specific embodiments with which this disclosure can be practiced. The following description, however, is not intended to limit the scope of this disclosure to one or more particular embodiments described. Rather, the following description is intended to describe the generic principles of the inventive subject matter as applied to the particular embodiments.

[0033] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0034] It will be understood that, although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used only as a shorthand notation to first, second, third, etc. information. For example, a first information can also be termed a second information, and similarly, a second information can also be termed a first information, without departing from the scope of the present disclosure. Depending on the context, the word "if' as used herein can be interpreted to mean "when" or "in response to determining".

[0035] When each controlled device is communicatively connected with the gateway through wireless communication, it is tested before use, mainly to test whether the controlled device can successfully respond, the speed of the controlled device response, and whether each controlled device responds at the same time when a large number of controlled devices are controlled through such wireless communication.

[0036] The mesh Internet of Things protocol is a typical wireless communication protocol, and the following is described by taking the wireless communication as the mesh Internet of Things protocol as an example:

[0037] In a typical application scenario of controlling the controlled device through the mesh Internet of Things protocol, a large number of controlled devices (which can exceed 100) need to be controlled, and the positions of the 100 devices are different, so it is difficult to directly test a large number of controlled devices.

[0038] In the prior art, the testing is usually performed in the following manner:

[0039] After all the controlled devices receive the test instruction sent by the gateway, the state of the device is returned to the gateway through the wireless state return manner, and the gateway determines the response of the device (such as response time, whether the response is successful, etc.) according to the device state information returned by the controlled device.

[0040] The problem of this test scheme is:

[0041] 1. The control success rate test is not accurate: the so-called control success means that the gateway sends a test instruction and the controlled device responds, which is considered successful. The above scheme through wireless state feedback has a situation: the controlled device may have responded, but the gateway has not received it, so the gateway misjudges as control failure. The reason why the gateway has not received it is mainly due to the mesh Internet of Things protocol, which needs to control a large number of controlled devices. When multiple controlled devices feedback device state information through wireless state feedback, a large amount of device state information will interfere with each other, and wireless transmission is unstable, which will easily lead to wireless state feedback failure.

[0042] 2. The controlled device response time test is not accurate: the so-called response time setting means that the gateway sends a test instruction to the controlled device through the mesh Internet of Things protocol, and the time required for the controlled device to respond, but the time required for wireless state feedback should not be included. In the above scheme, the time required for wireless state feedback is calculated, so the final response time obtained is not accurate enough.

[0043] 3. A large number of wireless state feedback messages have a great influence on the performance of the entire mesh wireless networking protocol network, so as to affect the accuracy of the network performance test.

[0044] Therefore, a new state determination method is needed to solve the above problems, as follows:

[0045] Firstly, the present disclosure provides a test system, including the following two parts:

[0046] The gateway is electrically connected with the state determination device, receives the test instruction transmitted by the state determination device, and is in communication connection with at least one controlled device through the mesh Internet of Things protocol, and transmits the test instruction to the at least one controlled device through the Internet of Things protocol.

[0047] The state determination device is used for transmitting a preset test instruction to the gateway, and is electrically connected with at least one controlled device, for acquiring device state information of the at least one controlled device, and determining a response of the at least one controlled device to the test instruction based on the device state information.

[0048] Figure 1 is a system framework diagram of a test system according to an exemplary embodiment of the present disclosure, as Figure 1 shown, the test system includes a state determination device 101 and a gateway 102.

[0049] The state determining apparatus 101 and each of the at least one controlled device (controlled device 1, controlled device 2, and controlled device 3) are connected by wires, and the gateway 102 and each of the at least one controlled device are connected by wireless communication (for example, a mesh Internet of Things protocol, which will be described in detail below).

[0050] The test instruction is an instruction for controlling the controlled device to perform a specific action, such as turning on the controlled device, turning off the controlled device, periodically operating the controlled device, adjusting the operating power of the controlled device, and the like. The test instruction can be preset or generated by a user in the state determining apparatus, so as to specify the content and generation time of the test instruction and improve the flexibility of the test. Then, the state determining apparatus 101 transmits the test instruction to the gateway 102.

[0051] The gateway 102 can communicate with each of the at least one controlled device by the mesh Internet of Things protocol, so as to transmit the test instruction to at least one of the at least one controlled device (for example, the controlled device 1 and the controlled device 2), thereby achieving simultaneous control of a large number of controlled devices in the mesh Internet of Things protocol.

[0052] After that, if the at least one controlled device (for example, the controlled device 1 and the controlled device 2) successfully receives the test instruction by the mesh Internet of Things protocol, each of the controlled devices will perform corresponding operations in response to the test instruction, which will affect the device state of the controlled device. Therefore, the state determining apparatus obtains the device state information of the controlled device through the electrical connection between the state determining apparatus and the at least one controlled device, so as to determine the response of the at least one controlled device to the test instruction based on the device state information. Finally, since the response of the at least one controlled device to the test instruction can indicate the response speed, the response result, the response consistency of each controlled device, and a series of results, the test of the mesh Internet of Things protocol can be completed.

[0053] Based on this, the present disclosure provides a state determining apparatus, which comprises:

[0054] The state determining apparatus is electrically connected with a gateway, for transmitting a preset test instruction to the gateway; the gateway is communicatively connected with at least one controlled device, for transmitting the test instruction to the at least one controlled device; and the state determining apparatus is electrically connected with the at least one controlled device, for obtaining device state information of the at least one controlled device and determining a response of the at least one controlled device to the test instruction based on the device state information.

[0055] The state determination apparatus is also Figure 1 101 in the above description.

[0056] In an optional embodiment, Figure 2 is a framework diagram of a state determination apparatus according to an exemplary embodiment of the present disclosure, as Figure 2 shown, the state determination apparatus 101 comprises:

[0057] An electronic device 201 electrically connected with the gateway 102, and a transmission device 202 electrically connected with the electronic device 201.

[0058] The transmission device 202 is electrically connected with the at least one controlled device 103, for acquiring device state information of the at least one controlled device 103, and transmitting the device state information to the electronic device 201.

[0059] The electronic device 201 is configured to transmit a preset test instruction to the gateway 102, and acquire the device state information transmitted by the transmission device 202, and determine a response of the at least one controlled device 103 to the test instruction based on the device state information.

[0060] The electronic device includes but is not limited to a computer, a mobile phone, a tablet computer and other electronic devices with a preset transmission test instruction capability, and the present disclosure does not limit the specific form of the electronic device.

[0061] Optionally, Figure 3 is another framework diagram of a state determination apparatus according to an exemplary embodiment of the present disclosure, as Figure 3 shown, the transmission device 202 comprises an electronic device 201, a second port expander 301 and a first port expander 302. Specifically,

[0062] At least one first port expander 302 for electrically connecting with the at least one controlled device 103, and a second port expander 301 for electrically connecting with the at least one first port expander 302; the second port expander 301 is electrically connected with the electronic device 201.

[0063] Each of the first port expanders (any of the first port expanders in 302) is configured to electrically connect with at least one of the controlled devices (any of the controlled devices in 1-6), and acquire device state information of the at least one controlled device based on the electrical connection relationship; the second port expander 301 is configured to electrically connect with each of the first port expanders, and transmit the device state information of the controlled devices transmitted by the first port expanders to the electronic device 201.

[0064] For example, assuming that a first port expander has 10 connection ports and can connect to 10 controlled devices, then 10 first port expanders can connect to 100 controlled devices. Furthermore, assuming that a second port expander has 10 connection ports, then 1 second port expander can connect to 10 first port expanders, and further, through the 10 first port expanders, connect to 100 controlled devices.

[0065] Figure 4 is a framework diagram of another state determination device according to an exemplary embodiment of the present disclosure, such as Figure 4 As shown, the second port expander 301 is electrically connected to 10 first port expanders (3020-3029), each first port expander is electrically connected to 10 controlled devices, and a total of 100 controlled devices (numbered 1-100) are connected.

[0066] First, let me explain GPIO (General Purpose Input Output); UART (Universal Asynchronous Receiver / Transmitter).

[0067] Optionally, the first port expander includes: a general purpose input / output hub (GPIO HUB, a device for expanding and managing GPIO interface resources), and / or a universal asynchronous receiver / transmitter hub (UART HUB, a device for serial communication that can centrally manage multiple UART interfaces and provide expansion functions). In a more preferred embodiment of the present disclosure, the first port expander is the general purpose input / output hub, and the general purpose input / output hub is used to generate a signal to be transmitted to the second port expander when a pulse of the controlled device is detected; the pulse is generated after the controlled device successfully executes the test instruction. In this way, the GPIO pulse generated after the controlled device executes the test instruction can be directly obtained through the GPIO HUB, and automatically converted into a UART message by the chip in the GPIO HUB and collected by the UART HUB.

[0068] The second port expander includes a universal asynchronous receiver / transmitter hub (UART HUB).

[0069] This two-layer connection structure solves the problem that the UART HUB itself does not support connecting a large number of controlled devices, but a large number of controlled devices need to be connected during the mesh IoT protocol test.

[0070] The apparatus embodiments described above are merely illustrative, wherein the units described above as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purposes of the present disclosure according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0071] Correspondingly, the present disclosure also provides a state determination method, Figure 5 is a flowchart of a state determination method according to an exemplary embodiment of the present disclosure, which is applied in the state determination apparatus of the test system as described above, such as Figure 5 As shown, the method comprises the following steps:

[0072] Step 501, in response to detecting electrical connection with the gateway, forwarding a preset test instruction to at least one controlled device through the gateway; the gateway and the at least one controlled device are connected through a mesh Internet of Things protocol.

[0073] The method of the present disclosure is applied in the state determination apparatus of the test system as described in the foregoing embodiments. When transmitting the test instruction, the state determination apparatus will record the time of transmitting the test instruction and the specific content of the test instruction. Then, the test instruction will be forwarded to at least one controlled device through the gateway.

[0074] Step 502, in response to detecting electrical connection with the at least one controlled device, obtaining device state information of the at least one controlled device.

[0075] Since electrical connection transmits information faster, the time required to obtain the device state information fed back by the controlled device through electrical connection can be ignored.

[0076] Step 503, determining the response of the at least one controlled device to the received test instruction based on the device state information.

[0077] Here, determining the response of the at least one controlled device to the received test instruction comprises at least one of the following schemes:

[0078] Scheme one, determining the response result of the at least one controlled device to the received test instruction; the response result indicates whether the response is successful.

[0079] In a feasible embodiment, whether the response is successful can be determined in the following manner:

[0080] For each of the controlled devices, in response to obtaining the device state information of the controlled device, it is determined that the controlled device responds successfully; the device state information is generated after the controlled device successfully executes the test instruction; in response to not obtaining the device state information of the controlled device, it is determined that the controlled device responds unsuccessfully.

[0081] In the embodiment, the test system is connected in the manner of Figure 3 In this way, the first port expander 302 is a GPIO HUB, and the second port expander 301 is a UART HUB.

[0082] In this way, when the controlled device receives the test instruction under the mesh Internet of Things protocol, if the test instruction is successfully executed, a GPIO pulse is generated; otherwise, no GPIO pulse is generated. In this way, the GPIO pulse generated by the controlled device is captured by the GPIO HUB, and is then converted into a UART message and transmitted to the second port expander 301.

[0083] At this time, for the state determination apparatus, if the device state information is obtained, it indicates that the controlled device responds successfully; if the device state information is not obtained, it indicates that the controlled device responds unsuccessfully. This scheme for determining whether the controlled device responds successfully is more simple and fast.

[0084] Scheme II, determining the response speed of at least one controlled device to the received test instruction.

[0085] For each of the controlled devices, the first time and the second time are determined; the first time is the time when the preset test instruction is transmitted to the gateway, and the second time is the time when the device state information of the controlled device is obtained; based on the difference between the first time and the second time, the response speed of the controlled device is determined.

[0086] When the state determination apparatus transmits the preset test instruction, the time of transmitting the test instruction is recorded. Then, the state determination apparatus immediately transmits the generated test instruction to the gateway through electrical connection. Since the electrical connection is a relatively mature wired connection, the time of transmitting the test instruction to the gateway through electrical connection can be ignored, and thus the time of transmitting the test instruction can be taken as the first time, that is, the time when the test instruction is transmitted to the gateway.

[0087] Afterwards, the gateway transmits the test instruction to the controlled device through the mesh IoT protocol, so that the time for transmitting the test instruction through the mesh IoT protocol can be tested. After the controlled device receives the test instruction, the controlled device will respond and change its device state, at this time, the state determining apparatus can obtain the device state information of the controlled device through the electrical connection relationship, that is, the second moment, and the time required for the process of obtaining the device state information of the controlled device can be ignored, so the second moment is actually the moment when the controlled device successfully responds to the test instruction.

[0088] At this time, the difference between the first moment and the second moment is taken as the time required for the controlled device to receive and respond to the test instruction, so that the response speed can be determined.

[0089] Scheme three, determining the response time difference of any two controlled devices to the received test instruction.

[0090] Obtaining the device state information of at least two controlled devices; determining the second moment of each of the controlled devices for any two of the controlled devices; the first moment of the any two controlled devices is the same, the first moment is the moment when the preset test instruction is transmitted to the gateway, and the second moment is the moment when the device state information of the controlled device is obtained; based on the difference between the second moments of the any two controlled devices, the response time difference between the controlled devices is determined.

[0091] Suppose the gateway transmits test instructions to controlled device one and controlled device two at the same time, at this time, the first moment is assumed to be the 0th second, the response speed of the controlled device one is 20s, and the response speed of the controlled device two is 21s, then the second moment of the controlled device one is the 20th second, and the second moment of the controlled device two is the 21st second. Then the response time difference between the controlled device one and the controlled device two is 1s.

[0092] In this way, the response consistency of each controlled device under the mesh IoT protocol can be tested, that is, whether the controlled devices can respond at the same time.

[0093] In any of the above method embodiments, the above method is applied to an electronic device in a state determining apparatus. The response to the electrical connection with the at least one controlled device obtains the device state information of the at least one controlled device, comprising:

[0094] In response to the electrical connection with the transmission device in the state determining apparatus, the device state information of at least one controlled device transmitted by the transmission device is obtained; the transmission device is electrically connected with the at least one controlled device, and is used to obtain the device state information of each of the controlled devices.

[0095] The electronic device, the transmission device, and the state determination device are arranged according to any one of the foregoing states.

[0096] For the foregoing method embodiments, for the sake of simplicity, they are described as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the order of the described actions, because according to the present disclosure, certain steps can be performed in other orders or at the same time.

[0097] Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0098] Correspondingly, the present disclosure provides an electronic device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the steps of any one of the state determination methods by running the executable instructions.

[0099] Figure 6 is a structural schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. For example, the electronic device 600 can be a user equipment, which can specifically be a mobile phone, a computer, a digital broadcast terminal, a messaging equipment, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, smart running shoes, etc.

[0100] Referring to Figure 6 , the electronic device 600 can include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0101] The processing component 602 usually controls the overall operation of the electronic device 600, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 602 can include one or more processors 620 to execute instructions to complete all or part of the steps of the methods described above. In addition, the processing component 602 can include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.

[0102] The memory 604 is configured to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or nonvolatile memory, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disc, or optical disc.

[0103] The power supply component 606 supplies power for various components of the electronic device 600. The power supply component 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.

[0104] The multimedia component 608 includes a screen providing an output interface between the electronic device 600 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 608 includes a front camera and / or a back camera. When the electronic device 600 is in an operation mode, such as a photographing mode or a video mode, the front camera and / or the back camera can receive an external multimedia data. Each of the front and back camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0105] The audio component 610 is configured to output and / or input an audio signal. For example, the audio component 610 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting an audio signal.

[0106] The I / O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which can be a keypad, a click wheel, buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0107] The sensor component 614 includes one or more sensors for providing state evaluation of various aspects for the electronic device 600. For example, the sensor component 614 can detect an open / closed state of the electronic device 600, relative positioning of components, such as the display and keypad of the electronic device 600 described above, a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration / g-force and a temperature change of the electronic device 600. The sensor component 614 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 614 can further include a light sensor such as a CMOS or CCD image sensor for use in imaging applications. In some embodiments, the sensor component 614 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0108] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or a combination thereof. In an example embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 616 can further include a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra-Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

[0109] In an example embodiment, the electronic device 600 can be implemented with one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements to perform the above-described methods.

[0110] In an example embodiment, a non-transitory computer-readable storage medium, such as the memory 604 including instructions, is also provided, which, when executed by the processor 620 of the electronic device 600, enables the electronic device 600 to perform the steps of any of the above-described state determination methods.

[0111] The non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0112] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the disclosure be construed as including any paterns of this disclosure which are within the spirit and broad scope of the appended claims. The specification and examples are to be construed as merely illustrative of the present disclosure and not limitative of the true scope and spirit of the disclosure.

[0113] It is to be understood that the disclosure is not limited to the precise construction hereinafter described and as shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the disclosure. The scope of the disclosure is limited only by the claims that follow.

Claims

1. A state determining apparatus characterized by comprising: The state determining device comprises: The gateway is electrically connected, and is used for transmitting a preset test instruction to the gateway; The gateway is in communication connection with at least one controlled device, and is used for transmitting the test instruction to the at least one controlled device; The at least one controlled device is electrically connected, and is used for acquiring device state information of the at least one controlled device, and determining a response condition of the at least one controlled device to the test instruction based on the device state information.

2. The state determination apparatus according to claim 1, characterized by Comprise: The electronic device is electrically connected with the gateway, and the transmission device is electrically connected with the electronic device; The transmission device is electrically connected with the at least one controlled device, and is used for acquiring device state information of the at least one controlled device, and transmitting the device state information to the electronic device; The electronic device is used for transmitting a preset test instruction to the gateway; And acquiring the device state information transmitted by the transmission device, and determining a response condition of the at least one controlled device to the test instruction based on the device state information.

3. The state determining apparatus according to claim 2, wherein The transmission device comprises: At least one first port expander for electrically connecting with the at least one controlled device, and a second port expander for electrically connecting with the at least one first port expander; the second port expander is electrically connected with the electronic device; Each first port expander is used for electrically connecting with at least one controlled device, and acquiring device state information of the at least one controlled device based on the electrical connection relationship; The second port expander is used for electrically connecting with each first port expander, and transmitting the device state information of the controlled device transmitted by the first port expander to the electronic device.

4. The state determining apparatus according to claim 3, wherein The first port expander comprises: A universal input / output hub and / or a universal asynchronous receiver / transmitter hub; The second port expander comprises: A universal asynchronous receiver / transmitter hub.

5. The state determining apparatus according to claim 4, wherein The first port expander is the universal input / output hub; The universal input / output hub is used for generating a signal to be transmitted to the second port expander when detecting a pulse of the controlled device; The pulse is generated after the controlled device successfully executes the test instruction.

6. A test system, characterized by Comprise: The gateway is electrically connected with the state determining device, receives the test instruction transmitted by the state determining device; And, in communication connection with at least one controlled device through a mesh Internet of Things protocol, and transmitting the test instruction to the at least one controlled device through the Internet of Things protocol; The state determining device is used for transmitting a preset test instruction to the gateway; And, in electrical connection with at least one controlled device, for acquiring device state information of the at least one controlled device, and determining a response condition of the at least one controlled device to the test instruction based on the device state information.

7. A state determination method characterized by comprising: The method comprises: In response to detecting that the gateway is electrically connected, a preset test instruction is forwarded to at least one controlled device through the gateway; the gateway is in communication connection with the at least one controlled device through a mesh Internet of Things protocol; In response to detecting an electrical connection with the at least one controlled device, acquiring device status information of the at least one controlled device; Based on the device status information, a response of the at least one controlled device to the received test instruction is determined.

8. The method according to claim 7, characterized in that The determining of a response of the at least one controlled device to the received test instruction includes: For each of the controlled devices, in response to acquiring device status information of the controlled device, determining that the controlled device has responded successfully; the device status information is generated after the controlled device successfully executes the test instruction; In response to not acquiring the device status information of the controlled device, it is determined that the controlled device fails to respond.

9. The method of claim 7, wherein, The determining of a response of the at least one controlled device to the received test instruction includes: For each of the controlled devices, determining a first time and a second time; the first time is the time when a preset test instruction is transmitted to the gateway, and the second time is the time when device status information of the controlled device is obtained; A response speed of the controlled device is determined based on a difference between the first moment and the second moment.

10. The method of claim 7, wherein, The determining of a response of the at least one controlled device to the received test instruction includes: Obtain device status information of at least two controlled devices; For any two of the controlled devices, determining a second time of each of the controlled devices; the first time of the any two controlled devices is the same, the first time is the time when the preset test instruction is transmitted to the gateway, and the second time is the time when the device status information of the controlled device is obtained; Based on the difference between the second moments of the arbitrary two controlled devices, the response time difference between the controlled devices is determined.

11. The method of claim 7, wherein, The method is applied to an electronic device in a state determination device; The acquiring, in response to being electrically connected to the at least one controlled device, device status information of the at least one controlled device, includes: In response to being electrically connected to the transmission device in the state determination device, the device state information of at least one controlled device transmitted by the transmission device is obtained; the transmission device is electrically connected to the at least one controlled device to obtain the device state information of each controlled device.

12. An electronic device, comprising: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of any one of the methods of claims 7 to 11 by running the executable instructions.

13. A computer readable storage medium having stored thereon a computer program, characterized in that, When the program is executed by a processor, the steps of the method according to any one of claims 7 to 11 are implemented.