State detection circuit, communication interface circuit, control device and massage device

CN122922535APending Publication Date: 2026-10-16GUANGDONG SKG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510413180.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]目前,一旦按摩设备的控制设备开机,控制设备的通信接口不论是否接入其他设备,都会输出信号,可能会造成该控制设备或控制设备接入的其它设备出现损坏

Benefits of technology

[0036] This application discloses a massage device, which includes the circuitry of the communication interface as described in any of the above embodiments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122922535A_ABST
    Figure CN122922535A_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to a state detection circuit, a communication interface circuit, a control device and a massage device. The state detection circuit is applied to a first electronic device and comprises: a first resistor, a first pin, a third pin, a second resistor, a fourth pin and a second pin forming a loop when a first communication interface of the first electronic device is connected with a second communication interface of a second electronic device; a voltage detection module configured to detect a first voltage corresponding to the first resistor and the first pin; and a controller configured to control the first electronic device to be in a first communication state when the first voltage is within a target voltage range, the first communication state being a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface. The state detection circuit, the communication interface circuit, the control device and the massage device can ensure that the first electronic device is in an accurate communication state and improve safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic circuit technology, specifically to a state detection circuit, a communication interface circuit, a control device, and a massage device. Background Technology

[0002] With the development of electronic technology, massage devices have become increasingly diverse and widespread. Massage devices are usually equipped with control devices, which can be connected to the massage device via a communication interface to realize various control functions of the massage device, such as adjusting the operating parameters of the massage device.

[0003] Currently, once the control device of the massage device is turned on, the communication interface of the control device will output a signal regardless of whether other devices are connected, which may cause damage to the control device or other devices connected to the control device. Summary of the Invention

[0004] This application discloses a state detection circuit, a communication interface circuit, a control device, and a massage device, which can ensure that the first electronic device is in an accurate communication state, avoid damage to the first electronic device and / or the second electronic device connected to the first electronic device, and improve safety.

[0005] This application discloses a state detection circuit applied to a first electronic device, comprising:

[0006] The first communication interface is used to connect to the second communication interface of the second electronic device;

[0007] First resistor;

[0008] The first communication interface includes a first pin and a second pin;

[0009] The first pin is connected to the first resistor, and the first pin is used to connect to the third pin of the second communication interface of the second electronic device; the third pin is connected to the second resistor in the second electronic device;

[0010] The second pin is connected to the ground terminal and is used to connect to the fourth pin of the second communication interface of the second electronic device; when the first communication interface is connected to the second communication interface, the first resistor, the first pin, the third pin, the second resistor, the fourth pin and the second pin form a loop;

[0011] The voltage detection module is used to detect the first voltage between the first resistor and the first pin.

[0012] The controller is configured to control the first electronic device to be in a first communication state when the first voltage is within the target voltage range, wherein the first communication state is a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface.

[0013] As an optional implementation, the controller is further configured to control the first electronic device to be in a second communication state when the first voltage is not within the target voltage range, wherein the second communication state is a state in which the first electronic device is unable to send communication information through the first communication interface.

[0014] As an optional implementation, the controller is further configured to acquire a first duration for which the first voltage is not within the target voltage range; if the first duration is greater than a first time threshold, then the first electronic device is determined to be in a second communication state; wherein the first time threshold is less than the startup duration corresponding to the first electronic device.

[0015] As an optional implementation, the status detection circuit further includes a power supply, the positive terminal of which is connected to the first resistor and the negative terminal of which is connected to the second pin; the power supply is used to supply power to the loop when the first communication interface and the second communication interface are connected.

[0016] As an optional implementation, the first communication interface further includes a charging communication pin; the charging communication pin is used to receive charging protocol data packets sent by the power supply device through the third communication interface when the first communication interface is connected to the third communication interface of the power supply device; the charging communication pin is different from the first pin and the second pin; the controller is further used to control the first electronic device to be in a second communication state when the charging communication pin receives the charging protocol data packet, the second communication state being a state in which the first electronic device cannot send communication information through the first communication interface.

[0017] As an optional implementation, the controller is further configured to control the first electronic device to be in the first communication state when the charging communication pin does not receive the charging protocol data packet and the first voltage is within the target voltage range.

[0018] As an optional implementation, the controller is further configured to acquire a second duration for which the first voltage is continuously detected to be within the target voltage range; if the second duration is greater than a second time threshold, then the first electronic device is determined to be in a first communication state.

[0019] As an optional implementation, the target voltage range is determined based on the resistance values ​​of the first resistor and the second resistor; the second resistor includes a thermistor.

[0020] As an optional implementation, the first electronic device includes a control device; the second electronic device includes a massage device.

[0021] This application discloses a communication interface circuit for use in a second electronic device, comprising:

[0022] The second communication interface is used to connect to the first communication interface of the first electronic device;

[0023] Second resistor;

[0024] The second communication interface includes a third pin and a fourth pin;

[0025] The third pin is connected to the second resistor, and the third pin is used to connect to the first pin of the first communication interface of the first electronic device; the first pin is connected to the first resistor of the first electronic device.

[0026] The fourth pin is used to connect to the second pin of the first communication interface of the first electronic device.

[0027] When the second communication interface is connected to the first communication interface, the first resistor, the first pin, the third pin, the second resistor, the fourth pin, and the second pin form a loop.

[0028] This application discloses a communication system, including a first electronic device and a second electronic device. The first electronic device includes a status detection circuit as described in any of the above embodiments, and the second electronic device includes a communication interface circuit as described in any of the above embodiments.

[0029] This application discloses a device matching and identification method applied to a first electronic device, the first electronic device including a first communication interface; the method includes: when the first communication interface is connected to a second communication interface of a second electronic device, detecting a first voltage between a first resistor and a first pin of the first communication interface using a voltage detection module; wherein, when the first communication interface is connected to the second communication interface, the first resistor, the first pin, the third pin of the second communication interface, the second resistor in the second electronic device, the fourth pin of the second communication interface, and the second pin of the first communication interface form a loop; when the first voltage is within a target voltage range, controlling the first electronic device to be in a first communication state, the first communication state being a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface.

[0030] As an optional implementation, the method further includes: when the first voltage is not within the target voltage range, controlling the first electronic device to be in a second communication state, wherein the second communication state is a state in which the first electronic device cannot send communication information through the first communication interface.

[0031] As an optional implementation, controlling the first electronic device to be in a second communication state includes: acquiring a first duration for which the first voltage is continuously detected not to be within the target voltage range; if the first duration is greater than a first time threshold, then determining that the first electronic device is in a second communication state; the first time threshold is less than the startup duration corresponding to the first electronic device.

[0032] As an optional implementation, the method further includes: when the first electronic device is detected to be in a charging state, controlling the first electronic device to be in a second communication state, wherein the second communication state is a state in which the first electronic device cannot send communication information through the first communication interface.

[0033] As an optional implementation, controlling the first electronic device to be in a first communication state when the first voltage is within the target voltage range includes: controlling the first electronic device to be in a first communication state when it is detected that the first electronic device is not in a charging state and the first voltage is within the target voltage range.

[0034] This application discloses a control device, which includes a state detection circuit as described in any of the above embodiments.

[0035] This application discloses a control device, which includes a memory and a state detection circuit as described in any of the above embodiments. The memory stores a computer program, and when the computer program is executed by the controller in the state detection circuit, the control device implements the device matching and identification method as described in any of the above embodiments.

[0036] This application discloses a massage device, which includes the circuitry of the communication interface as described in any of the above embodiments.

[0037] In this embodiment, the state detection circuit includes a first communication interface, a first resistor, a voltage detection module, and a controller. The first communication interface includes a first pin and a second pin. When the first communication interface is connected to the second communication interface of the second electronic device, the first resistor, the first pin, the third pin of the second communication interface, the second resistor, the fourth pin of the second communication interface, and the second pin form a loop, thereby changing the equivalent resistance on the loop and causing a change in the first voltage between the first resistor and the first pin. When the controller detects that the first voltage between the first resistor and the first pin is within the target voltage range, it determines that the second electronic device is an electronic device capable of communicating with the first electronic device and can control the first electronic device to be in a first communication state, enabling the first electronic device and the second electronic device to communicate normally. This improves the accuracy of controlling the communication state of the first electronic device and prevents the first electronic device from outputting communication information without connecting to the correct other electronic device, which could damage the first electronic device or the connected other electronic devices, thus improving safety. Moreover, the state detection circuit achieves accurate control of the communication state of the first electronic device through the voltage detection module and the controller, without the need for additional complex circuits or components, thereby reducing circuit complexity and cost. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 Here is a system architecture diagram of a communication system in one embodiment;

[0040] Figure 2 Here is a system architecture block diagram of the communication system in another embodiment;

[0041] Figure 3 This is a block diagram of the state detection circuit and communication interface in one embodiment;

[0042] Figure 4 This is a circuit diagram of the state detection circuit and communication interface in one embodiment;

[0043] Figure 5 This is a pin diagram of the Type-C communication interface in this embodiment;

[0044] Figure 6 The circuit diagram is for the state detection circuit and communication interface in another embodiment;

[0045] Figure 7 A structural block diagram of a first electronic device and a power supply device in one embodiment;

[0046] Figure 8 This is a flowchart of a device matching and identification method in one embodiment. Detailed Implementation

[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0048] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0049] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first electronic device may be referred to as a second electronic device, and similarly, a second electronic device may be referred to as a first electronic device. The first electronic device and the second electronic device are different electronic devices.

[0050] In related technologies, control devices can connect to other electronic devices (such as neck massagers, massage chairs, etc.) via communication interfaces. Upon startup, the control device directly outputs communication information, regardless of whether the connected electronic device is a compatible one (e.g., a massage device compatible with the control device). Since communication information is typically carried by continuous high-frequency pulse signals, with a maximum voltage of 36V, incompatible electronic devices may not be able to properly process or withstand such signals, leading to damage or hazard.

[0051] For example, when the controller is connected to an adapter that supports fast charging protocols via a communication interface, the adapter provides charging services to the controller. If the controller is connected to the adapter, it outputs communication information to the adapter. The high-frequency pulse signal output by the controller to the fast charger may cause the adapter to malfunction, or even cause the charger to malfunction or be damaged, thus posing a safety hazard.

[0052] This application discloses a state detection circuit, a communication interface circuit, a control device, and a massage device, which can ensure that the first electronic device is in an accurate communication state, avoid damage to the first electronic device and / or the second electronic device connected to the first electronic device, and improve safety.

[0053] Figure 1 This is a system architecture diagram of a communication system in one embodiment. For example... Figure 1 As shown, the communication system may include a first electronic device 110 and a second electronic device 120. The first electronic device 110 can be connected to the second electronic device 120 via a first communication interface.

[0054] In some embodiments, the first electronic device 110 may include a control device for managing and controlling the second electronic device 120; for example, controlling the start and stop of the second electronic device 120, adjusting the operating parameters of the second electronic device 120 (e.g., speed, temperature, brightness, etc.), and switching the operating mode of the second electronic device 120. Optionally, the control device may include, but is not limited to, a control handle, a remote control, a steering wheel, a hand controller, a central control console, a base controller, an adapter controller, etc.

[0055] The second electronic device 120 is used to receive communication information from the first electronic device 110 and perform related operations or implement related functions based on the communication information.

[0056] Optionally, the second electronic device 120 is an electronic device that matches the first electronic device 110. That is, when the first communication interface of the first electronic device 110 is connected to the second communication interface of the second electronic device 120, the second electronic device 120 can receive and identify the transmitted communication information through the second communication interface.

[0057] For example, the second electronic device 120 may include a massage device for providing massage services to a user. Optionally, the massage device may include, but is not limited to, a neck massager, massage chair, massage pillow, eye massager, foot massager, massage sofa, etc. The second electronic device 120 may also include a gaming device, such as a game console, portable game console, virtual reality device, etc.

[0058] In some embodiments, the first electronic device 110 may also be connected to a power supply device via a first communication interface, the power supply device being used to provide charging services for the first electronic device 110. The power supply device may include a fast charger supporting a fast charging protocol, a vehicle charger, a power bank, etc.

[0059] Optionally, when the first communication interface of the first electronic device 110 is connected to the third communication interface of the power supply device, the power supply device does not need the communication information transmitted by the first electronic device 110.

[0060] It should be noted that, in order to ensure that the first electronic device 110 can be effectively connected with the second electronic device 120 and the power supply device, the first communication interface of the first electronic device 110 has the same interface type or compatible specifications as the corresponding communication interfaces of the second electronic device 120 and the power supply device, so that when the communication interfaces are connected to each other, they can be adapted to achieve the connection between the first electronic device 110 and the second electronic device 120 and the power supply device.

[0061] Optionally, the first communication interface includes, but is not limited to, a Type-C (Universal Serial Bus Type-C) interface, a Micro-B (Micro Universal Serial Bus-B) interface, and a Lightning interface. For example, the first communication interface of the first electronic device 110 can be a Type-C socket, and the second communication interface of the second electronic device 120 can be a Type-C plug. When the first communication interface and the second communication interface are connected, multiple pins within the first communication interface can be tightly connected to corresponding pins of the second communication interface to achieve the transmission of communication information.

[0062] The first electronic device 110 may include a status detection circuit, which is used to detect whether the first electronic device 110 is connected to a second electronic device 120 that can communicate normally with the first electronic device 110, so as to control the communication status of the first electronic device 110. The communication status of the first electronic device 110 refers to whether the first electronic device 110 can transmit communication information through the first communication interface.

[0063] In some embodiments, since the second electronic device 120 is an electronic device that matches the first electronic device 110, when the state detection circuit in the first electronic device 110 detects that the first electronic device 110 is connected to the second electronic device 120 through the first communication interface, it can control the first electronic device 110 to be in a first communication state, so that the first electronic device 110 can normally send communication information to the second electronic device 120 through the first communication interface.

[0064] In some embodiments, when the state detection circuit in the first electronic device 110 detects that the first electronic device 110 is connected to a power supply device or another electronic device that is not compatible with the first electronic device 110 through the first communication interface, it can control the first electronic device 110 to be in a second communication state, so that the first communication interface of the first electronic device 110 does not output communication information, so as to avoid damage to the power supply device 130 or the other incompatible electronic device caused by the output of communication information by the first communication interface.

[0065] Figure 2 This is a system architecture block diagram of a communication system in one embodiment. In some embodiments, such as... Figure 2 As shown, the communication system may include a first electronic device 110 and a second electronic device 120. The first electronic device 110 includes a status detection circuit 210; the second electronic device 120 includes a communication interface circuit 220.

[0066] For example, if the first electronic device 110 is a control device and the second electronic device 120 is a massage device, then in the communication system consisting of the control device and the massage device, the user can operate the control device to control the massage parameters of the massage device, thereby achieving control of the massage device.

[0067] In some embodiments, such as Figure 3 As shown, the status detection circuit 210 of the first electronic device 110 may include a first communication interface 211, a first resistor 212, a voltage detection module 213 and a controller 214; the communication interface circuit 220 of the second electronic device 120 may include a second communication interface 221 and a second resistor 222.

[0068] The first electronic device 110 communicates with the second communication interface 221 of the communication interface circuit 220 of the second electronic device 120 through the first communication interface 211 in the status detection circuit 210, thereby enabling the first electronic device 110 to control the second electronic device 120.

[0069] In some embodiments, such as Figure 4As shown, the first communication interface 211 includes a first pin 11 and a second pin 12. The first pin 11 is connected to the first resistor R1, and the second pin 12 is connected to the ground terminal. The second communication interface 221 includes a third pin 21 and a fourth pin 22. The second resistor R2 is connected to the third pin 21 and the fourth pin 22 respectively.

[0070] The first pin 11 of the first communication interface 211 is used to connect to the third pin 21 of the second communication interface 221 of the second electronic device 120.

[0071] The second pin 12 is used to connect to the fourth pin 22 of the second communication interface 221 of the second electronic device 120.

[0072] The third pin 21 of the second communication interface 221 of the second electronic device 120 is used to connect to the first pin 11 of the first communication interface 211 of the first electronic device 110.

[0073] The fourth pin 22 is used to connect to the second pin 12 of the first communication interface 211 of the first electronic device 110.

[0074] When the first communication interface 211 is connected to the second communication interface 221, the first resistor R1, the first pin 11, the third pin 21, the second resistor R2, the fourth pin 22 and the second pin 12 form a circuit.

[0075] It should be noted that, in order to form a loop, when setting the first pin 11 and the second pin 12 of the first communication interface 211, and when setting the third pin 21 and the fourth pin 22 of the second communication interface 221, the position layout and functional adaptation of each pin in the communication interface need to be considered, so as to ensure that after the first communication interface 211 and the second communication interface 221 are connected, the first pin 11 and the third pin 21 are connected, and the second pin 12 and the fourth pin 22 are connected.

[0076] In some embodiments, to ensure that after the first communication interface 211 is connected to the second communication interface 221, the first pin 11 and the third pin 21 can be connected, and the second pin 12 and the fourth pin 22 can be connected, so that the first resistor R1, the first pin 11, the third pin 21, the second resistor R2, the fourth pin 22 and the second pin 12 form a loop; therefore, the position of the first pin 11 in the first communication interface 211 is the same as the position of the third pin 21 in the second communication interface 221, and the position of the second pin 12 in the first communication interface 211 is the same as the position of the fourth pin 22 in the second communication interface 221, so that the finally formed loop is stable.

[0077] In some embodiments, the first pin 11, the second pin 12, the third pin 21, and the fourth pin 22 described above can be any pin without a specific function. Taking the first communication interface 211 and the second communication interface 221 as Type-C type communication interfaces as an example, since the Type-C communication interface has standardized pin definitions, and according to the needs of circuit design, some pins are defined as having specific functions, such as channel configuration (CC1 / CC2 pins, involved in fast charging negotiation), differential pair signals (D+ / D- pins), power supply (VBUS pin), ground (GND pin), etc.; therefore, in order to avoid interfering with these pins with specific functions and to ensure compatibility with other Type-C devices, the first pin 11, the second pin 12, the third pin 21, and the fourth pin 22 are all pins in the communication interface without specific functions.

[0078] Specifically, taking the first communication interface 211 and the second communication interface 221 as Type-C communication interfaces as an example... Figure 5 As shown, a set of Type-C interfaces includes a Type-C socket 510 and a Type-C plug 520. The first communication interface 211 can be the Type-C socket 510, and the second communication interface 221 can be the Type-C plug 520. Since the Type-C socket 510 and the Type-C plug 520 are centrally symmetrical, the first pin 11 and the third pin 21 can be two pins in the same position, and the second pin 12 and the fourth pin 22 can be two other pins in the same position. To avoid affecting the fast charging function of the first electronic device 110, the first pin 11 and the second pin 12 can be any pin in the Type-C socket 510 other than the functional pins such as CC1 / CC2, D+ / D-, VBUS, and GND. Similarly, the third pin 21 and the fourth pin 22 can be any pin in the Type-C plug 520 other than the functional pins such as CC1, D+ / D-, VBUS, and GND.

[0079] For example, assuming the first pin 11 is the TX1+ pin of the Type-C socket 510, the third pin 21 can be the RX1+ pin of the Type-C plug 520, so that after the first communication interface 211 and the second communication interface 221 are connected, the TX1+ pin and the RX1+ pin can make full contact and form a tight and stable electrical connection.

[0080] The voltage detection module 213 can be connected to the midpoint between the first resistor R1 and the first pin 11, and is used to detect the corresponding first voltage between the first resistor R1 and the first pin 11. The voltage detection module 213 may include a voltage sampling circuit, which samples the midpoint voltage between the first resistor R1 and the first pin 11 and analyzes it to obtain the first voltage.

[0081] In some embodiments, the voltage detection module 213 is also connected to the controller 214. The voltage detection module 213 may include an ADC (Analog-to-Digital Converter). The voltage detection module 213 detects the electrical signal between the first resistor R1 and the first pin 11 to obtain an analog electrical signal, and converts the analog electrical signal into a digital signal first voltage through the ADC, and sends the first electrical signal to the controller 214.

[0082] The controller 214 is used to control the first electronic device 110 to be in a first communication state when the first voltage is within the target voltage range. The first communication state is the state in which the first electronic device 110 can transmit communication information to the second electronic device 120 through the first communication interface 211.

[0083] In some embodiments, the controller 214 is connected to the voltage detection module 213 and receives the first voltage detected by the voltage detection module 213 to analyze and determine whether the first voltage is within the target voltage range, thereby determining the communication status of the first electronic device 110.

[0084] Optionally, the communication state of the first electronic device 110 may include a first communication state and a second communication state. The first communication state refers to the state in which the first electronic device 110 can transmit communication information to the outside through the first communication interface. The second communication state refers to the state in which the first electronic device 110 cannot transmit communication information to the outside through the first communication interface.

[0085] Optionally, the first communication state of the first electronic device 110 can be referred to as the online state, and the second communication state of the first electronic device 110 can be referred to as the offline state. When the first electronic device 110 is in the online state, it communicates with the second electronic device 120 through the first communication interface 211. When it is in the offline state, the first electronic device 110 will not communicate with the outside world through the first communication interface 211.

[0086] In some embodiments, communication information refers to data or signals transmitted through the first communication interface of the first electronic device 110. The communication information may include, but is not limited to, control function information (for controlling the function execution of the second electronic device 120), configuration or update information (for updating the software or configuration parameters of the second electronic device 120), etc.

[0087] In some embodiments, such as Figure 6As shown, the status detection circuit 210 also includes a power supply VCC. The positive terminal of the power supply VCC is connected to the first resistor R1, and the negative terminal of the power supply VCC is connected to the ground terminal. The power supply VCC is used to supply power to the above-mentioned loop when the first communication interface 211 and the second communication interface 221 are connected, so that the voltage detection module 213 can detect the first voltage between the first resistor R1 and the first pin 11.

[0088] In this embodiment, if the first electronic device 110 is connected to a matched second electronic device 120 via the first communication interface 211, the first resistor R1, the first pin 11, the third pin 21, the second resistor R2, the fourth pin 22, and the second pin 12 form a loop. The first resistor R1 and the second resistor R2 are connected in series, increasing the equivalent resistance of the loop and decreasing the voltage between the first resistor R1 and the first pin 11. This results in a decrease in the first voltage between the first resistor R1 and the first pin 11. Therefore, the voltage detection module 213 can send the detected first voltage to the controller 214. The controller 214 determines whether the first voltage between the first resistor R1 and the first pin 11 is within the target voltage range based on the received first voltage.

[0089] Since the resistance values ​​of the first resistor R1 and the second resistor R2 can be preset, the target voltage range can be determined in advance based on these values. If the controller 214 determines that the first voltage is within the target voltage range, it indicates that the first resistor R1 and the second resistor R2 are connected in series in the aforementioned circuit, meaning that the first electronic device 110 is connected to the matched second electronic device 120. The controller 214 can then control the corresponding electronic device 110 to be in a first communication state, allowing the first electronic device 110 to transmit communication information through the first communication interface 211. Based on the simple principle of series voltage division, the voltage division determination can identify whether the electronic device connected to the first electronic device 110 is the second electronic device 120, thereby accurately controlling the communication state of the first electronic device 110.

[0090] In some embodiments, the target voltage range is determined based on the resistance values ​​of the first resistor R1 and the second resistor R2.

[0091] When the first voltage is within the target voltage range, it indicates that the first electronic device 110 is connected to the matched second electronic device 120 through the first communication interface 211. The second electronic device 120 can receive and identify the communication information sent by the first electronic device 110. Then, the controller 214 controls the first electronic device 110 to be in the first communication state, so that the first electronic device 110 transmits communication information to the second electronic device 120 through the first communication interface 211, so as to realize stable communication between the first electronic device 110 and the second electronic device 120.

[0092] In some embodiments, the second resistor R2 includes a thermistor. Since the resistance of the thermistor changes with temperature, the voltage across the second resistor R2 also changes with the temperature of the second electronic device 120. Therefore, the temperature range of the second resistor R2 is relatively fixed during actual use of the second electronic device 120, and consequently, the resistance range of the second resistor R2 is also relatively fixed, as is the voltage range it receives. The resistance value of the first resistor R1 is preset. Therefore, when determining the voltage value of the power supply VCC, the target voltage range can be determined based on the resistance range of the second resistor R2 and the resistance value of the first resistor R1.

[0093] In some embodiments, the controller 214 is further configured to control the first electronic device 110 to be in a second communication state when the first voltage is not within the target voltage range. The second communication state is a state in which the first electronic device 110 cannot send communication information through the first communication interface 211.

[0094] In this embodiment, if the first electronic device 110 is connected to another incompatible electronic device via the first communication interface 211, a loop may not be formed after the two communication interfaces are connected. This results in an open circuit between the first pin 11 and the second pin 12, with an extremely high equivalent resistance in the circuit. This is equivalent to the voltage detection module 213 directly detecting the power supply voltage, causing the voltage detection module 213 to detect a first voltage between the first resistor R1 and the first pin 11 that is close to the power supply voltage. Alternatively, a loop may be formed consisting of the first resistor R1, the first pin 11, the third pin 21, the third resistor, the fourth pin 22, and the second pin 12. In this loop, due to the first… If the resistance values ​​of the three resistors are not the preset value of the second resistor R2, then the voltage between the first resistor R1 and the first pin 11 is not within the preset voltage range, meaning the first voltage detected by the voltage detection module 213 is not within the target voltage range; or, a loop may be formed between the first resistor R1, the first pin 11, the third pin 21, the fourth pin 22, and the second pin 12. In this loop, only the first resistor R1 exists. Since the preset value of the second resistor R2 is not negligible, the single first resistor R1 is significantly smaller than the equivalent resistance of the first resistor R1 and the second resistor R2 connected in series, causing the first voltage detected by the voltage detection module 213 to be significantly greater than the target voltage range.

[0095] If the first voltage is not within the target voltage range, it means that the first electronic device 110 is connected to other incompatible electronic devices through the first communication interface 211. In order to prevent the communication information transmitted by the first electronic device 110 from causing damage to other electronic devices or even causing safety problems, the controller 214 controls the first electronic device 110 to be in the second communication state, so that the first electronic device 110 cannot transmit communication information to the outside through the first communication interface 211, so as to achieve accurate control of the communication state of the first electronic device through the voltage detection module and the controller.

[0096] In some embodiments, during the process of the voltage detection module 213 detecting the first resistor, various external factors or changes in the internal state of the device may occur, or the user may frequently plug and unplug the first communication interface 211 and the second communication interface 221, causing fluctuations in the voltage between the first resistor R1 and the first pin 11. Therefore, in order to avoid errors in the judgment of the communication state of the first electronic device 110 due to voltage fluctuations, the controller 214 is also used to obtain a first duration for which the first voltage is continuously detected to be outside the target voltage range; if the first duration is greater than a first time threshold, the first electronic device 110 is determined to be in a second communication state; wherein, the first time threshold is less than the startup duration corresponding to the first electronic device.

[0097] Optionally, the first duration during which the first voltage is not within the target voltage range can be referred to as the offline duration. That is, when the offline duration exceeds the first time threshold, the controller 214 controls the first electronic device 110 to be in an offline state and does not output communication information through the first communication interface 211.

[0098] The startup time of the first electronic device 110 refers to the total time required from the moment the first electronic device 110 is powered on until it completes necessary operations such as device self-test, system initialization, loading necessary programs and configurations, and is finally ready to enter normal working state. For example, the startup time of the first electronic device 110 can be 1.5 seconds.

[0099] In some embodiments, the first time threshold is less than the startup time corresponding to the first electronic device, which can ensure that the communication status of the first electronic device 110 is controlled before the first electronic device 110 is fully connected to the normal working state, thereby reducing the waiting time for status detection and improving the efficiency of status detection.

[0100] Optionally, if the first duration is longer than a first time threshold, it means that within the first time threshold, the first voltage between the first resistor R1 and the first pin 11 is not consistently within the target voltage range. This indicates that the electronic device connected to the first electronic device 110 is more likely not the second electronic device 120. To avoid damage to the electronic device caused by directly outputting communication information through the first communication interface 211, the controller 214 controls the first electronic device 110 to be in a second communication state. By using the first duration to determine whether the change in the first voltage is stable, the control of the communication state of the first electronic device 110 becomes more reliable.

[0101] In some embodiments, the controller 214 is further configured to acquire a second duration for which the first voltage is continuously detected to be within a target voltage range; if the second duration is longer than a second time threshold, the controller determines that the first electronic device is in a first communication state.

[0102] The second duration may differ from the first duration. The first duration is affected by the startup time of the first electronic device 110. Theoretically, there is no limit to the second duration. However, in practical applications, the second duration can be set according to the product requirements for rapid detection or the filtering experience of normal software. Therefore, the second duration may be the same as or different from the first duration. For example, the second duration can be set to 200–500 ms (milliseconds).

[0103] Optionally, the second duration for which the first voltage is continuously detected to be within the target voltage range can be referred to as the online duration. That is, when the online duration is greater than the second time threshold, the controller 214 controls the first electronic device 110 to be in an online state so that the first electronic device 110 outputs communication information to the second electronic device 120 through the first communication interface 211.

[0104] In some embodiments, the second duration is greater than the second time threshold, indicating that the first voltage between the first resistor R1 and the first pin 11 is consistently and stably within the target voltage range, that is, the first voltage is not accidentally within the target voltage range, which can avoid the problem of unstable communication of the first electronic device 110 due to frequent plugging and unplugging, and improve the accuracy of the communication status of the first electronic device 110.

[0105] In this embodiment, the state detection circuit includes a first communication interface, a first resistor, a voltage detection module, and a controller. The first communication interface includes a first pin and a second pin. When the first communication interface of the first electronic device is connected to the second communication interface of the second electronic device, the first resistor, the first pin, the third pin of the second communication interface, the second resistor, the fourth pin of the second communication interface, and the second pin form a loop, thereby changing the equivalent resistance on the loop and causing a change in the first voltage between the first resistor and the first pin. When the controller detects whether the first voltage between the first resistor and the first pin is within the target voltage range, it determines that the second electronic device is an electronic device capable of communicating with the first electronic device and can control the first electronic device to be in a first communication state, enabling the first electronic device and the second electronic device to communicate normally. This improves the accuracy of controlling the communication state of the first electronic device and prevents the first electronic device from outputting communication information without connecting to the correct other electronic devices, which could damage the first electronic device or the connected other electronic devices, thus improving safety. Moreover, the state detection circuit achieves accurate control of the communication state of the first electronic device through the voltage detection module and the controller, eliminating the need for additional complex circuits or components for state detection of the first electronic device, thereby reducing the complexity and cost of the state detection circuit.

[0106] Figure 7 This is a structural block diagram of a first electronic device and a power supply device in one embodiment. Figure 7 As shown, the first electronic device 110 is connected to the third communication interface 710 of the power supply device 130 through the first communication interface 211 in the status detection circuit 210, so that the power supply device 130 can provide the third communication interface 710 to charge the first electronic device 110.

[0107] In some embodiments, the first communication interface 211 of the status detection circuit 210 may further include a charging communication pin for receiving charging protocol data packets sent by the power supply device 130 through the third communication interface 710 when the first communication interface 211 is connected to the third communication interface 710 of the power supply device 130.

[0108] Optionally, the first electronic device 110 and the power supply device 130 can negotiate based on the data in the charging protocol data packet to determine the optimal combination of charging parameters for stable communication. The charging protocol data packet may include, but is not limited to, the charging protocol type supported by the power supply device 130, parameter information (such as charging current, voltage range, etc.), status information (such as charging start, end, pause, etc. flags), data packet checksum, etc.

[0109] It should be noted that the charging communication pins need to be different from the first pin 11 and the second pin 12 in the first communication interface 211, so as not to affect the circuit formed by the first pin 11 and the second pin 12 with the first resistor R1, the third pin 21, the second resistor R2, and the fourth pin 22, thereby ensuring that the voltage detection module 213 accurately detects the first voltage between the first resistor R1 and the first pin 11.

[0110] Optionally, the controller 214 is also configured to control the first electronic device 110 to be in a second communication state when the charging communication pin receives a charging protocol data packet. The second communication state is a state in which the first electronic device cannot send communication information through the first communication interface.

[0111] When the charging communication pin receives a charging protocol data packet sent by the power supply device, it indicates that the power supply device 130 is currently in a state of providing charging services to the first electronic device 110. A charging communication link can be established between the two, and the power supply device 130 can start or prepare to start charging the first electronic device 110 according to the negotiated charging protocol. That is, the power supply device 130 does not need to receive additional communication information sent by the first electronic device 110. Therefore, the controller 214 can control the first electronic device 110 to be in a second communication state and not transmit communication information through the first communication interface 211, so as to avoid communication interference or energy loss that may occur during the charging process.

[0112] In some embodiments, the controller 214 is further configured to control the first electronic device to be in a first communication state when the charging communication pin does not receive a charging protocol data packet and the first voltage is within the target voltage range.

[0113] If the charging communication pin does not receive a charging protocol data packet and the first voltage is within the target voltage range, it indicates that the first electronic device 110 is not connected to the power supply device 130 through the first communication interface 211, but is connected to the matched second electronic device 120. Therefore, the first electronic device 110 is not in a charging state and is connected to the matched electronic device. Consequently, the controller 214 controls the first electronic device 110 to be in a first communication state, enabling the first electronic device 110 to transmit communication information to the matched second electronic device 120 through the first communication interface 211.

[0114] In this embodiment, the state detection circuit 210 determines whether the first electronic device 110 is in a charging state by detecting whether a charging communication data packet is received. When the charging communication pin receives a charging protocol data packet, the controller 214 can put the first electronic device 110 into a second communication state, that is, not send communication information transmitted through the first communication interface. This can avoid communication interference that may occur during the charging process, thereby ensuring the stability and efficiency of the charging of the first electronic device 110, while reducing unnecessary energy loss.

[0115] In some specific embodiments, it is assumed that the first communication interface of the first electronic device and the second communication interface of the second electronic device are both Type-C communication interfaces. After the first electronic device is powered on, it is in a default online state. The controller of the status detection circuit can first determine whether the charging communication pin receives a charging protocol data packet. If the charging communication pin receives a charging protocol data packet, it indicates that the first communication interface is connected to the third communication interface of the power supply device. In this case, the first electronic device is controlled to be in an offline state, and the output of communication information in the first communication interface is turned off. If the charging communication pin does not receive a charging communication data packet, it indicates that the electronic device connected to the first communication interface is not a power supply device. In this case, the first electronic device is not in a charging state, and further analysis and detection are performed.

[0116] When the controller of the state detection circuit detects that the first electronic device is not in a charging state, the voltage detection module in the state detection circuit can detect the first voltage between the first resistor and the first pin, and send the detected first voltage to the controller. The controller determines whether the first voltage is within the target voltage range, and accumulates the offline time when the first voltage is not within the target voltage range, or the online time when the first voltage is within the target voltage range. During this period, if the first voltage changes from not within the target voltage range to within the target voltage range, or changes from within the target voltage range to not within the target voltage range, the offline time or online time needs to be cleared to zero and the online time or offline time needs to be recalculated.

[0117] If the controller continuously detects that the offline time exceeds a first time threshold, it determines that the first electronic device is offline and shuts down the output of communication information in the first communication interface. If the controller continuously detects that the online time exceeds a second time threshold, it determines that the first electronic device is online and restores the output of communication information in the first communication interface. This enables the first electronic device to accurately control its communication status through the charging communication pin, voltage detection module, and controller, thereby protecting the electronic device connected to the first communication interface.

[0118] In other embodiments, after the first electronic device is powered on, it may initially be in an offline state by default, and the output of communication information in the first communication interface shall be turned off. At the same time, a protocol signal shall be sent periodically. This protocol signal is used to perform a three-way handshake with the connected electronic device. After the three-way handshake is completed, the first electronic device shall change from the offline state to the online state and resume the output of communication information in the first communication interface.

[0119] Figure 8 This is a flowchart of a device matching and identification method in one embodiment. For example... Figure 8 As shown, in one embodiment, a device matching and identification method is provided, which can be applied to a first electronic device including the above-described state detection circuit, the first electronic device including a first communication interface. The device matching and identification method may include steps 810 to 820.

[0120] Step 810: When the first communication interface is connected to the second communication interface of the second electronic device, the voltage detection module detects the first voltage between the first resistor and the first pin of the first communication interface. When the first and second communication interfaces are connected, the first resistor, the first pin, the third pin of the second communication interface, the second resistor in the second electronic device, the fourth pin of the second communication interface, and the second pin of the first communication interface form a circuit.

[0121] Step 820: When the first voltage is within the target voltage range, control the first electronic device to be in a first communication state. The first communication state is a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface.

[0122] In some embodiments, when the first electronic device is not within the target voltage range, the first electronic device is controlled to be in a second communication state, which is a state in which the first electronic device cannot send communication information through the first communication interface.

[0123] Specifically, the first electronic device can acquire a first duration for which it continuously detects that the first voltage is not within the target voltage range; if the first duration is greater than a first time threshold, it is determined that the first electronic device is in a second communication state; the first time threshold is less than the startup duration corresponding to the first electronic device.

[0124] Specifically, the first electronic device can acquire a second duration for which the first voltage is continuously detected to be within the target voltage range; if the second duration is longer than a second time threshold, the first electronic device is determined to be in a first communication state.

[0125] In some embodiments, when the first electronic device is detected to be in a charging state, the first electronic device may control itself to be in a second communication state.

[0126] Optionally, if it is detected that the first electronic device is not in a charging state and the first voltage is within the target voltage range, the first electronic device controls the first electronic device to be in a first communication state.

[0127] Specifically, the first electronic device may be a control device, which may include the state detection circuit in the above embodiments.

[0128] Specifically, the second electronic device may be a massage device, and the first electronic device and the second electronic device are matched. The massage device may include the communication interface circuit in the above embodiments.

[0129] In this embodiment, when the first electronic device is connected to the second communication interface of the second electronic device via the first communication interface, the first resistor, the first pin, the third pin, the second resistor, the fourth pin, and the second pin form a loop. Since the second resistor in the second electronic device is connected in series with the first resistor, the equivalent resistance in the loop increases, and the voltage between the first resistor and the first pin decreases. Therefore, by determining whether the first voltage between the first resistor and the first pin is within the target voltage range, it can be determined that the second electronic device is capable of communicating with the first electronic device, thereby controlling the first electronic device to be in an accurate communication state, avoiding damage to the second electronic device, and improving the stability of device communication. Moreover, the status detection circuit achieves accurate control of the communication state of the first electronic device through the voltage detection module and the controller, eliminating the need for additional complex circuits or components to perform status detection on the first electronic device, thus reducing the complexity and cost of the status detection circuit.

[0130] In some embodiments, the first electronic device may further include one or more of the following components: a processor and a memory coupled to the processor, wherein the memory may store one or more computer programs that may be configured to implement the device matching and identification method as described in the above embodiments when executed by one or more processors.

[0131] Specifically, the first electronic device may be a control device, which may include a memory and a state detection circuit in the above embodiments. The memory stores a computer program, and when the computer program is executed by the controller in the state detection circuit, the control device implements the device matching and identification method in the above embodiments.

[0132] A processor may include one or more processing cores. The processor connects various parts within the first electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor and may be implemented separately using a communication chip.

[0133] The memory may include random access memory (RAM) or read-only memory (ROM). The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the first electronic device during use.

[0134] Understandably, the first electronic device may include more or fewer structural elements than those described above, such as a power supply, input buttons, a camera, a speaker, a screen, RF (Radio Frequency) circuitry, a Wi-Fi (Wireless Fidelity) module, a Bluetooth module, sensors, etc., and may not be limited herein.

[0135] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the methods described in the above embodiments.

[0136] This application discloses a computer program product, including a computer program, which, when executed by a processor, implements the methods described in the above embodiments.

[0137] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), etc.

[0138] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).

[0139] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0140] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0141] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0142] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0143] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0144] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.

[0145] The foregoing has provided a detailed description of a state detection circuit, a communication interface circuit, a control device, and a massage device communication system disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A state detection circuit, characterized in that, The state detection circuit, applied to a first electronic device, includes: The first communication interface is used to connect to the second communication interface of the second electronic device; First resistor; The first communication interface includes a first pin set and a second pin; The first pin is connected to the first resistor, and the first pin is used to connect to the third pin of the second communication interface of the second electronic device; the third pin is connected to the second resistor in the second electronic device; The second pin is connected to the ground terminal and is used to connect to the fourth pin of the second communication interface of the second electronic device; when the first communication interface is connected to the second communication interface, the first resistor, the first pin, the third pin, the second resistor, the fourth pin and the second pin form a loop; The voltage detection module is used to detect the first voltage between the first resistor and the first pin. The controller is configured to control the first electronic device to be in a first communication state when the first voltage is within the target voltage range, wherein the first communication state is a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface.

2. The state detection circuit according to claim 1, characterized in that, The controller is further configured to control the first electronic device to be in a second communication state when the first voltage is not within the target voltage range, wherein the second communication state is a state in which the first electronic device cannot send communication information through the first communication interface.

3. The state detection circuit according to claim 2, characterized in that, The controller is further configured to acquire a first duration for which the first voltage is not within the target voltage range; if the first duration is greater than a first time threshold, then determine that the first electronic device is in a second communication state; wherein the first time threshold is less than the startup duration of the first electronic device.

4. The state detection circuit according to claim 1, characterized in that, The state detection circuit also includes a power supply, the positive terminal of which is connected to the first resistor, and the negative terminal of which is connected to the second pin. The power supply is used to supply power to the circuit when the first communication interface and the second communication interface are connected.

5. The state detection circuit according to claim 1, characterized in that, The first communication interface also includes a charging communication pin; The charging communication pin is used to receive charging protocol data packets sent by the power supply device through the third communication interface when the first communication interface is connected to the third communication interface of the power supply device; the charging communication pin is different from the first pin and the second pin; The controller is further configured to, when the charging communication pin receives the charging protocol data packet, control the first electronic device to be in a second communication state, wherein the second communication state is a state in which the first electronic device cannot send communication information through the first communication interface.

6. The state detection circuit according to claim 5, characterized in that, The controller is further configured to control the first electronic device to be in the first communication state when the charging communication pin does not receive the charging protocol data packet and the first voltage is within the target voltage range.

7. The state detection circuit according to claim 1, characterized in that, The controller is further configured to acquire a second duration for which the first voltage is continuously detected to be within the target voltage range; if the second duration is greater than a second time threshold, then the first electronic device is determined to be in a first communication state.

8. The state detection circuit according to claim 1, characterized in that, The target voltage range is determined based on the resistance values ​​of the first resistor and the second resistor; the second resistor includes a thermistor.

9. The state detection circuit according to claim 1, characterized in that, The first electronic device includes a control device; the second electronic device includes a massage device.

10. A circuit for a communication interface, characterized in that, The communication interface circuitry, used in a second electronic device, includes: The second communication interface is used to connect to the first communication interface of the first electronic device; Second resistor; The second communication interface includes a third pin and a fourth pin; The third pin is connected to the second resistor, and the third pin is used to connect to the first pin of the first communication interface of the first electronic device; the first pin is connected to the first resistor of the first electronic device. The fourth pin is used to connect to the second pin of the first communication interface of the first electronic device. When the second communication interface is connected to the first communication interface, the first resistor, the first pin, the third pin, the second resistor, the fourth pin, and the second pin form a loop.

11. A communication system, characterized in that, The communication system includes a first electronic device and a second electronic device, the first electronic device including a status detection circuit as described in any one of claims 1 to 9, and the second electronic device including a communication interface circuit as described in claim 10.

12. A device matching and identification method, characterized in that, Applied to a first electronic device, the first electronic device including a first communication interface; the method includes: When the first communication interface is connected to the second communication interface of the second electronic device, the voltage detection module detects the first voltage between the first resistor and the first pin of the first communication interface; wherein, when the first communication interface is connected to the second communication interface, the first resistor, the first pin, the third pin of the second communication interface, the second resistor in the second electronic device, the fourth pin of the second communication interface, and the second pin of the first communication interface form a loop. When the first voltage is within the target voltage range, the first electronic device is controlled to be in a first communication state, which is a state in which the first electronic device can transmit communication information to the second electronic device through the first communication interface.

13. The method according to claim 12, characterized in that, The method further includes: When the first voltage is not within the target voltage range, the first electronic device is controlled to be in a second communication state, which is a state in which the first electronic device cannot send communication information through the first communication interface.

14. The method according to claim 13, characterized in that, The control of the first electronic device to be in the second communication state includes: Obtain a first duration for which the first voltage is continuously detected to be outside the target voltage range; If the first duration is greater than the first time threshold, then the first electronic device is determined to be in the second communication state; the first time threshold is less than the startup duration of the first electronic device.

15. The method according to claim 12, characterized in that, The method further includes: When the first electronic device is detected to be in a charging state, the first electronic device is controlled to enter a second communication state, which is a state in which the first electronic device cannot send communication information through the first communication interface.

16. The method according to claim 12, characterized in that, When the first voltage is within the target voltage range, controlling the first electronic device to be in a first communication state includes: If it is detected that the first electronic device is not in a charging state and the first voltage is within the target voltage range, the first electronic device is controlled to enter the first communication state.

17. A control device, characterized in that, The control device includes a state detection circuit as described in any one of claims 1 to 9.

18. A control device, characterized in that, The control device includes a memory and a state detection circuit as described in any one of claims 1 to 9, wherein the memory stores a computer program, and when the computer program is executed by a controller in the state detection circuit, the control device performs the method as described in any one of claims 12 to 16.

19. A massage device, characterized in that, The massage device includes the circuitry of the communication interface as described in claim 10.