WO2022142983A1 - 一种检测方法、检测装置、存储介质及承载设备 - Google Patents

一种检测方法、检测装置、存储介质及承载设备 Download PDF

Info

Publication number
WO2022142983A1
WO2022142983A1 PCT/CN2021/134860 CN2021134860W WO2022142983A1 WO 2022142983 A1 WO2022142983 A1 WO 2022142983A1 CN 2021134860 W CN2021134860 W CN 2021134860W WO 2022142983 A1 WO2022142983 A1 WO 2022142983A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
electrical connector
detection
data
earphone
Prior art date
Application number
PCT/CN2021/134860
Other languages
English (en)
French (fr)
Inventor
刘绍斌
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022142983A1 publication Critical patent/WO2022142983A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a detection method, a detection device, a storage medium and a carrying device.
  • sensors such as infrared sensors, tact switches or Hall switches are usually used to confirm the connection between the electronic device and the carrying device.
  • additional components may be required to increase the cost of the electronic device, or it may occupy a large amount of space.
  • the volume affects the shape and structural design; therefore, how to optimize the connection confirmation method between the electronic device and the carrying device is a technical problem that needs to be solved.
  • Embodiments of the present application provide a detection method, a detection device, a storage medium, and a bearing device, which can optimize a connection confirmation method between an electronic device and a bearing device.
  • the present application provides a detection method for detecting a connection between a carrying device and an electronic device, the method comprising: when a first electrical connector of the carrying device and a second electrical connector of the electronic device are connected by an unconnected When the connection is switched to connection, a single pulse signal is output; the single pulse signal is detected; if the single pulse signal is detected, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the present application provides a detection method for connection detection between a bearer device and an electronic device, and the method includes:
  • the electronic device determines a connection state between the carrier device and the electronic device based on the communication state with the carrier device, where the connection state includes connected or not connected.
  • the present application provides a detection method for connection detection between a bearer device and an electronic device, and the method includes:
  • the second electrical connector of the electronic device When the second electrical connector of the electronic device and the first electrical connector of the carrying device are switched from unconnected to connected, the second electrical connector of the electronic device outputs a single pulse signal
  • the electronic device detects the single-pulse signal, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device.
  • the present application provides a detection method for connection detection between a bearer device and an electronic device, and the method includes:
  • the carrier device determines a connection state between the carrier device and the electronic device based on the communication state with the electronic device, where the connection state includes connected or not connected.
  • the present application provides a detection method for connection detection between a bearer device and an electronic device, and the method includes:
  • the electronic device receives the first data and sends the second data
  • the bearer device receives the second data, confirming that the bearer device is connected to the electronic device;
  • the carrier device If the carrier device does not receive the second data, the carrier device detects the level of the first electrical connector of the carrier device.
  • the present application provides a detection method for connection detection between a bearer device and an electronic device, and the method includes:
  • the electronic device sends third data to the bearer device
  • the bearer device receives the third data and sends the fourth data
  • the electronic device receives the fourth data, confirming that the electronic device is connected to the carrier device;
  • the electronic device If the electronic device does not receive the fourth data, the electronic device detects the level of the second electrical connector of the electronic device.
  • the present application provides a detection method for connection detection between an earphone box of a TWS earphone and a TWS earphone, and the method includes:
  • the headset box and the TWS headset are confirmed to be connected to each other;
  • the headset box and the TWS headset confirm that they are not connected to each other.
  • An embodiment of the present application provides a detection device for detecting connection between a carrying device and an electronic device, the carrying device has a first electrical connector, the electronic device has a second electrical connector, and the detecting device includes : a detection circuit for outputting a preset level signal when the first electrical connector and the second electrical connector are switched from unconnected to connected; a controller for detecting the preset level signal , and determine that the electronic device is connected to the bearer device according to the preset level signal.
  • An embodiment of the present application provides a detection device for detecting connection between a carrying device and an electronic device, the device includes: an output unit for when the first electrical connector of the carrying device is connected to the electronic device. When the second electrical connector is switched from unconnected to connected, it outputs a single-pulse signal; a detection unit is used to detect the single-pulse signal; a determination unit is used to detect the single-pulse signal when the detection unit detects the single-pulse signal , and it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • An embodiment of the present application provides a storage medium storing an executable program.
  • the executable program is executed by a processor, the above-mentioned detection method for execution by an electronic device or a carrying device is implemented.
  • An embodiment of the present application provides a bearer device, where the bearer device enables a processor to execute the foregoing detection method.
  • FIG. 1 is an optional schematic diagram of a TWS headset in the related art
  • FIG. 2 is another optional schematic diagram of a TWS headset in the related art
  • FIG. 3 is a schematic diagram of a first optional structure of the detection method provided by the embodiment of the present application.
  • FIG. 4 is a second optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • FIG. 5 is a schematic schematic diagram of a third optional flow of the detection method provided by the embodiment of the present application.
  • FIG. 6 is a fourth optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • FIG. 7 is a fifth optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • FIG. 8 is a sixth optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • FIG. 9 is an optional circuit diagram of a detection circuit of an electronic device or a carrying device provided by an embodiment of the present application.
  • FIG. 10 is another optional circuit diagram of a detection circuit of an electronic device or a carrying device provided by an embodiment of the present application.
  • FIG. 11 is a seventh optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of an eighth optional flow of the detection method provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of an optional structure of an electronic device provided by an embodiment of the present application.
  • FIG. 14 is an optional structural schematic diagram of the detection device provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of another optional structure of the detection device provided by the embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a hardware composition of an electronic device or a carrying device according to an embodiment of the present application.
  • the present application provides a detection method for detecting a connection between a carrying device and an electronic device, the method comprising: when a first electrical connector of the carrying device is connected to a second electrical connector of the electronic device When the connector is switched from unconnected to connected, a single pulse signal is output; the single pulse signal is detected; if the single pulse signal is detected, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the determining according to the single pulse signal that the electronic device is connected to the bearer device includes:
  • the single pulse signal is detected and the communication state is normal, it is determined that the electronic device is connected to the bearer device.
  • the method includes:
  • the carrying device is controlled to charge the electronic device.
  • the carrying device has a cover, and when the carrying device is in an open state, the detection method is triggered to be executed.
  • the present application provides a detection method for performing connection detection between a bearer device and an electronic device, the method comprising:
  • the electronic device determines a connection state between the carrier device and the electronic device based on the communication state with the carrier device, where the connection state includes connected or not connected.
  • the present application provides a detection method for performing connection detection between a bearer device and an electronic device, the method comprising:
  • the second electrical connector of the electronic device When the second electrical connector of the electronic device and the first electrical connector of the carrying device are switched from unconnected to connected, the second electrical connector of the electronic device outputs a single pulse signal
  • the electronic device detects the single-pulse signal, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device.
  • the present application provides a detection method for performing connection detection between a carrying device and an electronic device, the method comprising:
  • the carrier device determines a connection state between the carrier device and the electronic device based on the communication state with the electronic device, where the connection state includes connected or not connected.
  • the present application provides a detection method for performing connection detection between a carrying device and an electronic device, the method comprising:
  • the electronic device receives the first data and sends the second data
  • the bearer device receives the second data, confirming that the bearer device is connected to the electronic device;
  • the carrier device If the carrier device does not receive the second data, the carrier device detects the level of the first electrical connector of the carrier device.
  • the present application provides a detection method for performing connection detection between a carrying device and an electronic device, the method comprising:
  • the electronic device sends third data to the bearer device
  • the bearer device receives the third data and sends the fourth data
  • the electronic device receives the fourth data, confirming that the electronic device is connected to the carrier device;
  • the electronic device If the electronic device does not receive the fourth data, the electronic device detects the level of the second electrical connector of the electronic device.
  • the present application provides a detection method for connection detection between a headphone box of a TWS headset and a TWS headset, the method comprising:
  • the headset box and the TWS headset are confirmed to be connected to each other;
  • the headset box and the TWS headset confirm that they are not connected to each other.
  • the method further includes:
  • the TWS earphone box controls the first control pin to output a low level
  • the earphone box confirms that the earphone is outside the earphone box;
  • the earphone box If it is detected that the level of the first electrical connector of the earphone box becomes a high level, the earphone box confirms that the earphone is in the box.
  • the present application provides a detection device for performing connection detection between a carrying device and an electronic device, the carrying device has a first electrical connector, the electronic device has a second electrical connector, and the detection
  • the device includes: a detection circuit for outputting a preset level signal when the first electrical connector and the second electrical connector are switched from unconnected to connected; a controller for detecting the preset electrical connector level signal, and it is determined according to the preset level signal that the electronic device is connected to the bearer device.
  • the present application provides a detection device for detecting a connection between a carrying device and an electronic device, the device comprising: an output unit for when the first electrical connector of the carrying device is connected to the electronic device When the second electrical connector of the device is switched from unconnected to connected, it outputs a single-pulse signal; a detection unit is used to detect the single-pulse signal; a determination unit is used to detect the single-pulse signal when the detection unit detects In this case, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • an embodiment of the present application provides a storage medium that stores an executable program, and when the executable program is executed by a processor, implements the above-mentioned detection method executed by an electronic device or a carrying device.
  • an embodiment of the present application provides a bearer device, where the bearer device enables a processor to execute the foregoing detection method.
  • the carrier device when the first electrical connector of the carrier device and the second electrical connector of the electronic device are switched from unconnected to connected, an output single pulse signal; detect the single-pulse signal; if the single-pulse signal is detected, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device, no additional high-cost components are required, and the cost of the electronic device is reduced. cost, and optimize the connection confirmation method between the electronic device and the carrying device.
  • TWS True Wireless Stereo
  • the left and right earbuds of the TWS headset do not need to be connected by cables, and can work independently by realizing the wireless separation of the left and right channels.
  • FIG. 1 shows an optional schematic diagram of a TWS headset in the related art.
  • FIG. 2 shows another optional schematic diagram of the TWS headset in the related art.
  • TWS earphones have the following advantages: 1) Completely abandon the troubles of wired earphones, and move more freely; 2) There are various ways of use, which can be used alone or shared, and one earphone can also be used as two independent earphones; 3) Earphones The earphone box not only realizes the storage or protection of the earphones, but also the internal power supply can provide power for the earphones. Putting the earphones into the earphone box can charge the earphones.
  • the TWS earphones can be stored in the corresponding earphone box.
  • both the TWS earphones and the earphone box need to be checked in and out of the box; after the TWS earphones enter the earphone box, the earphone box can The earphone is charged, and the TWS earphone is not turned off in the earphone box; after the TWS is removed from the earphone box, it establishes a connection with the electronic device, performs corresponding functions (such as playing audio), and enters the working state.
  • TWS earphones There are positive and negative contacts at the bottom of the TWS earphones, which can be metal pins (POGO PIN) or a combination of electrical contacts and shrapnel. The circuit between them is turned on, thereby charging and communicating with the earphones.
  • TWS earphones usually have two positive and negative electric shocks and three positive and negative electric shocks, which are located at the corresponding positions on the earphones and the charging box. When the earphones are placed in the charging box, the positive and negative contacts on the earphones and the earphone box The positive and negative contacts on the box will just touch and conduct.
  • the positive and negative contacts of the TWS earphones in Figure 2 are placed under the earbuds.
  • the positive and negative contacts of the earphone or the positive and negative contacts on the earphone case can also be called electrical connectors.
  • sensors such as infrared sensors, tact switches or Hall switches are usually used to confirm the connection between the electronic device and the carrying device, but additional components are required to increase the cost of the electronic device, or occupy a large volume to affect the shape and structure. design.
  • the present application proposes a detection method, which can solve the technical difficulties and shortcomings that cannot be solved in the prior art solutions.
  • FIG. 3 shows a schematic diagram of a first optional structure of the detection method provided by the embodiment of the present application.
  • Step S101 when the first electrical connector of the carrying device and the second electrical connector of the electronic device are switched from unconnected to connected, output a single pulse signal.
  • the first electrical connector of the carrier device may be a metal pin of the carrier device; the second electrical connector of the electronic device may be a metal pin of the electronic device.
  • the first electrical connector of the carrying device and the second electrical connector of the electronic device are switched from unconnected to connected, the first electrical connector of the carrying device outputs a single pulse signal.
  • the electronic device corresponds to the carrier device, and the carrier device can be used for at least one of charging the electronic device, accommodating the electronic device, or fixing the electronic device, and the carrier device It can also be the base of the electronic device.
  • the electronic device may be a TWS headset, and the carrying device may be an earphone box; the electronic device may be a sweeping robot, and the carrying device may be a charging pile of the sweeping robot; the electronic device may be an electric mop, Correspondingly, the carrying device is a charging pile of an electric mop; this application does not limit it too much.
  • Step S102 detecting a single pulse signal.
  • the carrier device when the carrier device confirms that it is not connected to the electronic device, the level value of the first electrical connector is detected; or, the carrier device confirms that the electronic device is not connected. case, the first electrical connector is detected.
  • Step S103 if a single pulse signal is detected, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the preset level signal may be a single pulse signal or a high level signal , and it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the carrying device detects that the level of the first electrical connector changes from a low level to a high level, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the carrier device further detects the communication state between the carrier device and the electronic device; if the single pulse signal is detected and the communication state is normal, it is determined that the electronic device is connected to the electronic device. carrying equipment.
  • the communication state being normal includes that data can be transmitted between the electronic device and the bearer device.
  • the bearer device sends the first data to the electronic device; if the bearer device receives the second data returned by the electronic device based on the first data, the bearer device determines that the bearer device is the same as the electronic device. The ability to transmit data between electronic devices;
  • the single pulse signal is detected and the communication state is abnormal, it is determined that the electronic device is not connected to the bearer device.
  • that the communication state is abnormal includes: data cannot be transmitted between the electronic device and the bearer device.
  • the bearer device sends the first data to the electronic device; if the bearer device does not receive the second data returned by the electronic device based on the first data, it is determined that the bearer device is the same as the electronic device. Data cannot be transferred between electronic devices. In this way, it is possible to avoid false detection caused by the single-pulse signal being detected, but the electronic device is not connected to the carrier device. After the single-pulse signal is detected, the accuracy of the detection result can be ensured by confirming the communication status.
  • the bearer device sends the first data to the electronic device with a first threshold period.
  • the electronic device sends the first data to the electronic device with a first threshold period; if the bearer device receives the second data returned by the electronic device based on the first data, the bearer device confirms the bearer Data can be transmitted between the device and the electronic device, that is, the carrier device is connected to the electronic device; or, if the carrier device does not receive the second data returned by the electronic device based on the first data, then Confirming that data cannot be transmitted between the carrying device and the electronic device means confirming that the carrying device is not connected to the electronic device.
  • the first threshold may be determined according to actual needs.
  • the bearer device receives third data sent by the electronic device, and based on the third data, confirms that data can be transmitted between the bearer device and the electronic device; and/or, all The bearer device sends fourth data to the electronic device.
  • the carrying device may further control the carrying device to charge the electronic device.
  • the carrying device has a cover, and when the carrying device is in an open state, the detection method described in the above steps S101 to S103 is triggered to be executed.
  • the electronic device is a TWS earphone
  • the carrying device is a TWS earphone box
  • when the cover of the earphone box is open perform the relevant operations of steps S101 to S103; otherwise, in the box of the earphone box
  • the cover is closed, the related operations of steps S101 to S103 are not performed.
  • the earphone box is open, it can be confirmed that the earphone is in the box or not.
  • the earphone box can confirm whether the earphone is in the earphone based on the state of the earphone and the earphone box before closing. In the box, there is no need to confirm through the above steps S101 to S103.
  • a single-pulse signal is output; the single-pulse signal is detected; If the single-pulse signal is detected, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device, and there is no need to add additional high-cost components, thereby reducing the cost of the electronic device;
  • the tact switch detection method significantly improves the reliability of the detection function and the protection reliability of the bearing device; finally, through the embodiments of the present application, the communication between the bearing device and the electronic device and the confirmation of the connection state between the electronic device and the bearing device are solved. conflicting issues.
  • FIG. 4 shows a schematic schematic diagram of a second optional flow of the detection method provided by the embodiment of the present application.
  • Step S201 the electronic device determines the connection state between the bearer device and the electronic device based on the communication state with the bearer device.
  • the electronic device determines a connection state between the carrier device and the electronic device based on a communication state between the carrier device and the electronic device.
  • the connection state includes connected or not connected.
  • the communication status between the bearer device and the electronic device is normal, it is determined that the bearer device is connected to the electronic device; or, if the communication status between the bearer device and the electronic device is If abnormal, it is determined that the carrying device is not connected to the electronic device.
  • the electronic device confirms the communication status with the carrier device.
  • the bearer device sends the first data to the electronic device; if the electronic device receives the first data, it confirms that the communication status between the bearer device and the electronic device is normal; or, If the electronic device cannot receive the first data, it is confirmed that the communication state between the carrier device and the electronic device is abnormal.
  • the electronic device receives the first data sent by the bearer device periodically with a first threshold value.
  • the electronic device can receive the first data sent by the bearer device every first threshold time, it is confirmed that the communication state between the bearer device and the electronic device is normal, that is, the bearer device and the electronic device are in a normal state.
  • the electronic device is connected; or, if the electronic device does not receive the first data sent by the bearer device, confirming that the communication state between the bearer device and the electronic device is abnormal, that is, confirming that the bearer device is not connected to the electronic device.
  • the electronic device sends third data to the bearer device, and if the electronic device receives the fourth data sent by the bearer device, confirms the relationship between the bearer device and the electronic device able to transmit data.
  • the electronic device determines the connection state between the carrying device and the electronic device based on the communication state with the carrying device, without adding additional high-cost components, and reducing the cost of the electronic device; at the same time, The problem of conflict between the communication between the bearer device and the electronic device and the confirmation of the connection state between the electronic device and the bearer device is solved.
  • FIG. 5 shows a third optional schematic flowchart of the detection method provided by the embodiment of the present application, which will be described according to each step.
  • Step S301 when the second electrical connector of the electronic device and the first electrical connector of the carrying device are switched from unconnected to connected, the second electrical connector of the electronic device outputs a single pulse signal.
  • the first electrical connector of the carrier device may be a metal pin of the carrier device; the second electrical connector of the electronic device may be a metal pin of the electronic device.
  • the second electrical connector of the electronic device When the first electrical connector of the carrying device and the second electrical connector of the electronic device are switched from unconnected to connected, the second electrical connector of the electronic device outputs a single pulse signal.
  • the second electrical connector of the electronic device when the electronic device and the carrying device are switched from being disconnected to being connected, the second electrical connector of the electronic device outputs a single-pulse signal.
  • the electronic device corresponds to the carrier device, and the carrier device can be used for at least one of charging the electronic device, accommodating the electronic device, or fixing the electronic device, and the carrier device It can also be the base of the electronic device.
  • the electronic device may be a TWS headset, and the carrying device may be an earphone box; the electronic device may be a sweeping robot, and the carrying device may be a charging pile of the sweeping robot; the electronic device may be an electric mop, Correspondingly, the carrying device is a charging pile of an electric mop; this application does not limit it too much.
  • Step S302 detecting a single pulse signal.
  • the electronic device when the electronic device confirms that it is not connected to the electronic device, the level value of the second electrical connector is detected; or, the electronic device confirms that the electronic device is not connected to the carrying device. case, the second electrical connector is detected.
  • Step S303 if the electronic device detects the single-pulse signal, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device.
  • the preset level signal may be a single pulse signal or a high level signal , and it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the electronic device detects that the level of the second electrical connector changes from a low level to a high level, it is determined according to the single pulse signal that the electronic device is connected to the carrying device.
  • the electronic device further detects the communication state between the carrying device and the electronic device; if the single pulse signal is detected and the communication state is normal, it is determined that the electronic device is connected to the electronic device. carrying equipment.
  • the communication state being normal includes that data can be transmitted between the electronic device and the bearer device.
  • the electronic device sends third data to the bearer device; the third data is used to request the bearer device to send fourth data; the fourth data is used to represent the electronic device and the bearer device data can be transferred between them.
  • the electronic device sends the third data to the bearer device with a first threshold period.
  • the single pulse signal is detected and the communication state is abnormal, it is determined that the electronic device is not connected to the bearer device.
  • that the communication state is abnormal includes: data cannot be transmitted between the electronic device and the bearer device.
  • the electronic device sends third data to the bearer device; if the electronic device does not receive the fourth data returned by the bearer device based on the third data, it is determined that the bearer device is the same as the bearer device. Data cannot be transferred between electronic devices.
  • the electronic device sends third data to the bearer device at a period of a first threshold; if the electronic device receives fourth data returned by the bearer device based on the third data, the electronic device confirms the bearer Data can be transmitted between the device and the electronic device, that is, the carrier device is connected to the electronic device; or, if the electronic device does not receive the fourth data returned by the carrier device based on the third data, then Confirming that data cannot be transmitted between the carrying device and the electronic device means confirming that the carrying device is not connected to the electronic device.
  • the first threshold may be determined according to actual needs.
  • the electronic device receives first data sent by the bearer device, and based on the first data, confirms that data can be transmitted between the bearer device and the electronic device; and/or, all The electronic device sends the second data to the bearer device.
  • the electronic device may also be charged according to the current output by the carrying device.
  • a single-pulse signal is output; the single-pulse signal is detected; If the single-pulse signal is detected, it is determined according to the single-pulse signal that the electronic device is connected to the carrying device.
  • the embodiment of the present application significantly improves the reliability of the detection function and the protection reliability of the bearing device; finally, through the embodiment of the present application , which solves the problem of conflict between the communication between the bearer device and the electronic device and the confirmation of the connection state between the electronic device and the bearer device.
  • FIG. 6 shows a fourth optional schematic flowchart of the detection method provided by the embodiment of the present application.
  • Step S401 the bearer device determines the connection state between the bearer device and the electronic device based on the communication state with the electronic device.
  • the carrier device determines a connection state between the carrier device and the electronic device based on a communication state between the carrier device and the electronic device.
  • the connection state includes connected or not connected.
  • the communication status between the bearer device and the electronic device is normal, it is determined that the bearer device is connected to the electronic device; or, if the communication status between the bearer device and the electronic device is If abnormal, it is determined that the carrying device is not connected to the electronic device.
  • the carrier device confirms the communication status with the electronic device.
  • the electronic device sends third data to the bearer device; if the bearer device receives the third data, it confirms that the communication status between the electronic device and the bearer device is normal; or, If the bearer device cannot receive the third data, it is confirmed that the communication state between the electronic device and the bearer device is abnormal.
  • the bearer device receives the first data sent by the electronic device with a first threshold period.
  • the bearer device can receive the third data sent by the electronic device every first threshold time, it is confirmed that the communication state between the bearer device and the electronic device is normal, that is, the bearer device and the electronic device are in a normal state.
  • the electronic device is connected; or, if the carrier device does not receive the third data sent by the electronic device, confirming that the communication status between the carrier device and the electronic device is abnormal, that is, confirming that the carrier device is not connected to the electronic device. connected to the electronic device.
  • the bearer device sends the first data to the electronic device, and if the bearer device receives the second data sent by the electronic device, confirms the relationship between the bearer device and the electronic device able to transmit data.
  • the electronic device determines the connection state between the carrying device and the electronic device based on the communication state with the carrying device, without adding additional high-cost components, and reducing the cost of the electronic device; at the same time, The problem of conflict between the communication between the bearer device and the electronic device and the confirmation of the connection state between the electronic device and the bearer device is solved.
  • FIG. 7 shows a schematic diagram of a fifth optional flow of the detection method provided by the embodiment of the present application.
  • Step S501 the bearer device sends first data to the electronic device.
  • the carrying device if the carrying device is in a non-closed state, the carrying device sends first data to the electronic device; the first data is used to request second data sent by the electronic device; the second data Data is used to characterize that data can be transmitted between the carrier device and the electronic device.
  • the bearer device sends the first data to the electronic device with a first threshold period.
  • the carrying device is a closable box that can accommodate an electronic device
  • the carrying device is in a non-closed state, and the electronic device can be directly placed in the carrying device.
  • the electronic device is a TWS earphone
  • the carrying device is an earphone box
  • the non-closed state of the carrying device includes: the cover of the earphone box is opened.
  • the carrying device if the carrying device is an object that cannot accommodate electronic devices, the carrying device is in a non-closed state.
  • the carrying device may be a charging pile for a sweeping robot, or a charging pile for an electric mop, or the like.
  • Step S502 the electronic device receives the first data and sends the second data.
  • the electronic device receives the first data and sends second data to the bearer device based on the first data.
  • the electronic device can receive the first data, which indicates that data can be transmitted between the electronic device and the carrying device, and confirms that the electronic device is connected to the carrying device.
  • the electronic device receives the first data sent by the bearer device periodically with a first threshold value.
  • Step S503 the bearer device receives the second data, and confirms that the bearer device is connected to the electronic device.
  • the carrier device receives the second data to confirm that the carrier device is connected to the electronic device.
  • the carrier device sends the first data but does not receive the second data returned by the electronic device based on the first data, the electronic device performs step S504.
  • Step S504 the carrier device detects the level of the first electrical connector of the carrier device.
  • the bearer device if the bearer device does not receive the second data, or the bearer device cannot send the first data to the electronic device, it is indicated that the relationship between the electronic device and the bearer device is Data cannot be transmitted between them, that is, the electronic device is not connected to the bearer device.
  • a control pin when the carrying device confirms that it is not connected to the electronic device, in the carrying device, a control pin outputs a low level; and detects the first electrical connector of the carrying device, if It is detected that the first electrical connector of the carrying device outputs a preset level signal, it is determined that the carrying device is connected to the electronic device, and step S501 is executed; if the level of the first electrical connector of the carrying device is If the level is low, it is determined that the carrying device is not connected to the electronic device, and step S504 is repeated.
  • the preset level signal may be a single pulse signal or a high level signal; if the carrying device detects that the level of the first electrical connector changes from a low level to a high level level, it is determined according to the single pulse signal that the electronic device is connected to the carrying device. .
  • the carrying device if it is detected that the level of the second electrical connector on the carrying device is a high level, it is determined that the carrying device is connected to the electronic device, and the carrying device sends the first data to the electronic device ; the first data is used to inform the electronic device that the carrying device is connected to the electronic device.
  • the carrying device includes a detection circuit; optional structures of the detection circuit will be described in detail later.
  • the connection state between the carrying device and the electronic device is confirmed by the communication state between the carrying device and the electronic device, or the level of the first electrical connector on the carrying device, and no additional addition is required.
  • the high-cost device reduces the cost of electronic equipment; in addition, compared with the tact switch detection method, the embodiment of the present application significantly improves the reliability of the detection function and the protection reliability of the carrying device; finally, the embodiment of the present application solves the problem of The problem of conflict between the communication between the bearer device and the electronic device and the confirmation of the connection status between the electronic device and the bearer device.
  • FIG. 8 shows a schematic schematic diagram of a sixth optional flow of the detection method provided by the embodiment of the present application, which will be described according to each step.
  • Step S601 the electronic device sends third data to the bearer device.
  • the electronic device sends third data to the bearer device; the third data is used to request the bearer device to send fourth data; the fourth data is used to characterize the relationship between the electronic device and the bearer device. Data can be transmitted between bearer devices.
  • the electronic device sends the third data to the bearer device at a period of the first threshold.
  • Step S602 the bearer device receives the third data and sends the fourth data.
  • the carrier device receives the third data and sends fourth data to the electronic device based on the third data.
  • the bearing device can receive the third data, which indicates that data can be transmitted between the electronic device and the bearing device, and confirms that the electronic device is connected to the bearing device.
  • the bearer device receives third data sent by the electronic device periodically with a first threshold value.
  • Step S603 the electronic device receives the fourth data, and confirms that the electronic device is connected to the carrying device.
  • the electronic device receives the fourth data, confirming that the electronic device is connected to the carrier device.
  • Step S604 the electronic device detects the level of the second electrical connector of the electronic device.
  • the electronic device when the electronic device does not receive the fourth data, or the electronic device cannot send the third data to the bearer device, it is indicated that the electronic device has a relationship with the bearer device. Data cannot be transmitted between them, that is, the electronic device is not connected to the bearer device.
  • a control pin in the electronic device when the electronic device confirms that it is not connected to the carrying device, a control pin in the electronic device outputs a low level; and detects the second electrical connector of the electronic device, if It is detected that the level of the second electrical connector of the electronic device is a high level, it is determined that the electronic device is connected to the carrying device, and step S601 is executed; if the level of the second electrical connector of the electronic device is at a high level If the level is low, it is determined that the bearer device is not connected to the electronic device, and step S604 is repeated.
  • the carrying device if it is detected that the level of the second electrical connector of the electronic device is a high level, it is determined that the carrying device is connected to the electronic device, and the carrying device sends third data to the electronic device ; the third data is used to inform the carrying device that the electronic device is connected to the carrying device.
  • the electronic device includes a detection circuit; the optional structure of the detection circuit will be described in detail later.
  • the connection state between the carrying device and the electronic device is confirmed by the communication state between the carrying device and the electronic device, or the level of the first electrical connector on the carrying device, and no additional addition is required.
  • the high-cost device reduces the cost of electronic equipment; in addition, compared with the tact switch detection method, the embodiment of the present application significantly improves the reliability of the detection function and the protection reliability of the carrying device; finally, the embodiment of the present application solves the problem of The problem of conflict between the communication between the bearer device and the electronic device and the confirmation of the connection status between the electronic device and the bearer device.
  • FIG. 9 shows an optional circuit diagram of the detection circuit of the electronic device or the carrying device provided by the embodiment of the present application, and description will be made according to each part.
  • the present application further provides a detection device for performing connection detection between a carrying device and an electronic device, the carrying device has a first electrical connector, the electronic device has a second electrical connector,
  • the detection device includes:
  • a detection circuit configured to output a preset level signal when the first electrical connector and the second electrical connector are switched from unconnected to connected;
  • the controller is configured to detect the preset level signal, and determine that the electronic device is connected to the carrying device according to the preset level signal.
  • the detection device can be applied in electronic equipment or carrier equipment, and the following description will be made with the detection device in the carrier device; the principle of the detection device in the electronic device is the same as that of the detection device in the carrier device, and will not be repeated. Repeat. If the electronic device includes at least one device that can be used independently (for example, in a TWS headset, the left earphone and the right earphone can be used independently), the detection device is included in the at least one device that can be used independently.
  • the detection circuit includes: a first control pin CTL_L, a first field effect transistor Q7, a first electrical connector J2 and a first resistor R2; the first electrical connector J2 includes a first positive electrode and a first electrical connector a negative.
  • the gate of the first field effect transistor Q7 is connected to the first control pin CTL_L; the source of the first field effect transistor Q7 is grounded; the drain of the first field effect transistor Q7 is connected to the first field effect transistor Q7.
  • a negative electrode is connected; the first end of the first resistor R2 is connected to the drain of the first field effect transistor Q7; the second end of the first resistor R2 is grounded.
  • the voltage of the first negative electrode is pulled up, and the preset level signal is output, and the preset level
  • the signal is a single pulse signal or a high level signal.
  • the first negative pole of the first electrical connector J2 is at a high level, confirming that the carrying device is connected to the electronic device;
  • the first control pin CTL_L outputs a low level, the first field effect transistor Q7 is in an off state, and the first negative electrode of the first electrical connector J2 is low. flat.
  • the resistance value of the first resistor R2 is greater than the first threshold value; when the electronic device and the carrying device are switched from unconnected to connected, the impedance between the positive electrode and the negative electrode of the first electrical connector J2 The voltage is divided with the first resistor R2 and the second resistor, the voltage of the first negative electrode of the first electrical connector J2 is pulled up, and the preset level signal is output, and the preset level signal is a single pulse signal or high-level signal, confirm that the carrying device is connected to the electronic device, control the first control pin CTL_L to output a high level, and the first field effect transistor Q7 is in a conducting state; When the carrying device is not connected, the first field effect transistor Q7 is in an off state, the first negative electrode of the first electrical connector J2 is grounded through the first resistor R2, and the first electrical connector The first negative pole of J2 outputs a low level.
  • the first threshold can be set according to actual needs.
  • the circuit further includes: a second control pin CLR_R, a third electrical connector J3, a second field effect transistor Q8 and a fifth resistor R5; the third electrical connector J3 includes a third electrical connector J3. Two positive and second negative.
  • the gate of the second field effect transistor Q8 is connected to the second control pin CLR_R; the source of the second field effect transistor Q8 is grounded; the drain of the second field effect transistor Q8 is connected to the third power supply.
  • the second negative pole of connector J3 is connected;
  • the second control pin CLR_R When the electronic device and the carrying device are switched from unconnected to connected, the second control pin CLR_R outputs a high level, the second negative pole of the third electrical connector J3 is a high level, and the carrying device The device confirms that the carrier device is connected to the electronic device.
  • the preset level signal is output, and the preset electrical
  • the flat signal is a single pulse signal or a high level signal.
  • the resistance value of the fifth resistor R5 is greater than the first threshold value; when the electronic device and the carrying device are switched from unconnected to connected, the second positive electrode of the third electrical connector J3 and the second positive electrode
  • the impedance between the negative poles is divided by the fifth resistor R5, and the second negative pole of the third electrical connector J3 outputs a high level, confirming that the carrying device is connected to the electronic device, and controlling the second control
  • the pin CTL_R outputs a high level, the second field effect transistor Q8 is in a conducting state, and then the second negative pole of the third electrical connector J3 outputs a low level; when the electronic device is not connected to the carrying device In this case, the second field effect transistor Q8 is in an off state, the second negative electrode of the third electrical connector J3 is grounded through the fifth resistor R5, and the output of the second negative electrode of the third electrical connector J3 is low. level.
  • the controller detects the preset level signal, and determines the specific steps for the electronic device to access the bearer device according to the preset level signal. Refer to steps S101 to step S101. S103, step S201, step S301 to step S303, step S401, step S501 to step S504, step S601 to step S604, and details are not repeated here.
  • FIG. 10 shows another optional circuit diagram of the detection circuit of the bearing device provided by the embodiment of the present application, which will be described according to each part.
  • the present application further provides a detection device for performing connection detection between a carrying device and an electronic device, the carrying device has a first electrical connector, the electronic device has a second electrical connector,
  • the detection device includes:
  • a detection circuit for outputting a preset level signal when the first electrical connector and the second electrical connector are switched from unconnected to connected;
  • the controller is configured to detect the preset level signal, and determine that the electronic device is connected to the carrying device according to the preset level signal.
  • the detection device can be applied in electronic equipment or carrier equipment, and the following description will be made with the detection device in the carrier device; the principle of the detection device in the electronic device is the same as that of the detection device in the carrier device, and will not be repeated. Repeat. If the electronic device includes at least one device that can be used independently (for example, in a TWS headset, the left earphone and the right earphone can be used independently), the detection device is included in the at least one device that can be used independently.
  • the detection circuit includes: a first control pin CTL_L, a first resistor R2, a first field effect transistor Q7 and a second resistor R24.
  • the gate of the first field effect transistor Q7 is connected to the first control pin CTL_L; the source of the first field effect transistor Q7 is grounded; the drain of the first field effect transistor Q7 is connected to the first field effect transistor Q7.
  • a negative electrode J2_2 (or AN3%WAEUP2) is connected; the first end of the first resistor R2 is connected to the drain of the first field effect transistor Q7; the second end of the first resistor R2 is grounded.
  • the voltage of the first negative electrode is pulled up, and the preset level signal is output, and the preset level
  • the signal is a single pulse signal or a high level signal.
  • the first negative electrode J2_2 of the first electrical connector of the carrying device when the electronic device and the carrying device are switched from unconnected to connected, the first negative electrode J2_2 of the first electrical connector of the carrying device outputs a preset level signal, and the carrying device controls the The first control pin CTL_L outputs a high level, and the first field effect transistor Q7 is in a conducting state; when the electronic device is not connected to the electronic device, the first control pin CTL_L outputs Low level, the first field effect transistor Q7 is in an off state, and the first negative electrode AN3%WAEUP2 of the first electrical connector of the carrying device is low level.
  • the circuit further includes a third resistor R3.
  • the first end of the third resistor R3 is connected to the gate of the first field effect transistor Q7, and the second end of the third resistor R3 is grounded.
  • the third resistor is used to make the range of the voltage output by the first control pin within the first threshold range; the voltage output by the first control pin fluctuates within a certain range, and the third resistor is used for In order to stabilize the voltage output by the first control pin, the range of the voltage output by the first control pin is within a first threshold range; the first threshold range can be set according to actual needs.
  • the detection circuit of the carrying device may further include: a second control lead Pin CLR_R, fifth resistor R5, second field effect transistor Q8.
  • the gate of the second field effect transistor Q8 is connected to the second control pin CTL_R; the source of the second field effect transistor Q8 is grounded; the drain of the second field effect transistor Q8 is connected to the first The two negative electrodes are connected; the first end of the fifth resistor R5 is connected to the drain of the second field effect transistor Q8; the second end of the fifth resistor R5 is grounded.
  • the third electrical connector J3 and the second electrical connector are switched from unconnected to connected, the voltage of the second negative pole is pulled up, and the preset level signal is output, and the preset level
  • the signal is a single pulse signal or a high level signal.
  • the second negative electrode J3_2 of the third electrical connector J3 of the carrying device when the electronic device and the carrying device are switched from disconnected to connected, the second negative electrode J3_2 of the third electrical connector J3 of the carrying device is at a high level, and the carrying device controls the first The second control pin CLR_R outputs a high level, the second field effect transistor Q8 is in a conducting state, and the second negative electrode J3_2 of the third electrical connector J3 outputs a low level;
  • the carrying device controls the second control pin CLR_R to output a low level, the second field effect transistor Q8 is in an off state, and the third electrical connector J3 of the carrying device is in an off state.
  • Two negative poles AN7 & WAKEUP1 are low level.
  • the circuit further includes a sixth resistor R10.
  • the first end of the sixth resistor R10 is connected to the gate of the second field effect transistor Q8, and the second end of the sixth resistor R10 is grounded.
  • the sixth resistor R10 is used to make the range of the voltage output by the second control pin within the first threshold range; the voltage output by the second control pin fluctuates within a certain range, and the sixth resistor R10 is used to stabilize the voltage output by the second control pin, so that the range of the voltage output by the second control pin is within a first threshold range; the first threshold range can be set according to actual requirements.
  • the circuit further includes a fourth resistor R25.
  • the first end of the fourth resistor R25 is connected to the drain of the second field effect transistor Q8, and the second end of the fourth resistor R25 is connected to the second end of the second electrical connector of the carrying device.
  • the negative electrode J3_2 is connected; the fourth resistor R25 is used to detect the current that the carrying device charges the electronic device.
  • the circuit further includes: a first transient diode (Transient Voltage Suppressor, TVS) D9 and a second transient diode D10.
  • a first transient diode Transient Voltage Suppressor, TVS
  • TVS Transient Voltage Suppressor
  • the first end of the first transient diode D9 is connected to the first positive electrode J2_1 of the first electrical connector of the carrying device, and the second end of the second transient diode D9 is grounded.
  • the first end of the second transient diode D10 is connected to the first negative electrode J2_2 of the first electrical connector of the carrying device, and the second end of the second transient diode D10 is grounded.
  • the first transient diode D9 and the second transient diode D10 are used to protect the first electrical connector of the carrier device.
  • the circuit further includes: a third transient diode D6 and a fourth transient diode D7.
  • the first end of the third transient diode D6 is connected to the second anode J3_1 of the third electrical connector of the carrying device, and the second end of the third transient diode D6 is grounded.
  • the first end of the second transient diode D10 is connected to the second negative electrode J3_2 of the third electrical connector of the carrying device, and the second end of the second transient diode D10 is grounded.
  • the third transient diode D6 and the fourth transient diode D7 are used to protect the third electrical connector of the carrier device.
  • the detection circuit shown in FIG. 9 is arranged on the electronic device or the carrier of the above steps S101 to S103, S201, S301 to S303, S401, S501 to S504, and S601 to S604. In the device, it is used to detect the level of the first electrical connector of the carrying device or the second electrical connector of the electronic device.
  • FIG. 11 shows a seventh optional schematic flowchart of the detection method provided by the embodiment of the present application, which will be described with reference to FIG. 10 .
  • the carrying device is the earphone box of the TWS earphone.
  • the cover of the earphone box is open and the TWS earphone is in the earphone box
  • whether the TWS earphone is in the earphone box is detected by transmitting data between the TWS earphone and the earphone box (that is, the whether the TWS headset is connected to the headset box), including steps S801 to S803.
  • step S801 it is confirmed whether communication is possible between the TWS earphone and the earphone box.
  • the headset box confirms whether communication is possible between the TWS headset and the headset box.
  • the earphone box can confirm whether communication between the TWS earphone and the earphone box is possible by sending the first data to the TWS earphone. Further, if the earphone box cannot send the first data; or, if the earphone box does not receive the second data returned by the TWS earphone after sending the first data, confirm the connection between the TWS earphone and the earphone box. Unable to communicate. Correspondingly, if the earphone box sends the first data and receives the second data returned by the TWS earphone for the first data, it is confirmed that the TWS earphone and the earphone box can communicate.
  • the TWS earphone can confirm whether the TWS earphone and the earphone box can communicate by means of receiving the first data sent by the earphone box. Further, if the TWS earphone cannot receive the first data, it is confirmed that the TWS earphone and the earphone box cannot communicate. Correspondingly, if the TWS headset can receive the first data, it is confirmed that the TWS headset and the headset box can communicate.
  • the TWS headset confirms whether the TWS headset and the headset box can communicate.
  • the TWS earphone can confirm whether the communication between the TWS earphone and the earphone box is possible by sending third data to the earphone box. Further, if the TWS headset cannot send the third data; or, if the TWS headset does not receive the fourth data returned by the headset box after sending the third data, confirm the connection between the TWS headset and the headset box. Unable to communicate. Correspondingly, if the TWS headset sends the third data and receives the fourth data returned by the headset box for the third data, it is confirmed that the TWS headset and the headset box can communicate.
  • the earphone box may confirm whether communication between the TWS earphone and the earphone box is possible by receiving the third data sent by the TWS earphone. Further, if the earphone box cannot receive the third data, it is confirmed that there is no communication between the TWS earphone and the earphone box. Correspondingly, if the earphone box can receive the third data, it is confirmed that the TWS earphone and the earphone box can communicate.
  • step S802 if it is confirmed that communication between the TWS earphone and the earphone box is possible, step S802 is performed; if communication between the TWS earphone and the earphone box cannot be performed, step S803 is performed.
  • Step S802 the earphone box and the TWS earphone confirm that they are connected to each other.
  • the headset box confirms that the TWS headset is inside the headset box; the TWS headset confirms that the TWS headset is inside the headset box.
  • Step S803 the earphone box and the TWS earphone confirm that they are not connected to each other.
  • the headset box confirms that the TWS headset is outside the headset box; the TWS headset confirms that the TWS headset is outside the headset box.
  • the communication connection between the earphone and the earphone box is maintained, which can not only realize the detection of the earphone in and out of the box, but also the connection between the earphone and the earphone box. exchange other information.
  • the Bluetooth connection status information between the headset and the terminal device is exchanged, so that the headset box can learn the Bluetooth connection status information between the headset and the terminal device, and then display different information through indicator lights.
  • the indicator light of the earphone box blinks breathing. It can effectively solve the problem that the earphone box indicator cannot display the Bluetooth pairing status of the earphone and the detection of the earphone in and out of the box when the cover is opened before.
  • the method further includes step S901.
  • FIG. 12 shows a schematic diagram of an eighth optional flow of the detection method provided by the embodiment of the present application.
  • Step S901 after the earphone is out of the box, the earphone box controls the first control pin to output a low level.
  • the following description takes the left earphone as an example.
  • the earphone box controls the first control pin CTL_L to output a low level, so that the first field effect transistor Q7 changes from an on state to an off state, and the The first negative electrode J2_2 of the first electrical connector of the earphone box is grounded through the second resistor R24 (resistance value of 1 ⁇ ) and the first resistor R2 (resistance value of 1M ⁇ ). If the left earphone is not put into the earphone box, the impedance between the first positive electrode and the first negative electrode of the first electrical connector J2 of the earphone box is infinite. Correspondingly, the first negative electrode of the first electrical connector The level of J2_2 is low level.
  • Step S902 confirming whether the level of the first electrical connector of the earphone box becomes a high level.
  • step S903 is performed if the level of the first electrical connector of the earphone box is still a low level.
  • step S904 if it is detected that the level of the first electrical connector of the earphone box becomes a high level, step S904 is performed.
  • Step S903 the earphone box confirms that the earphone is outside the earphone box.
  • the level of the first electrical connector of the earphone box is still a low level
  • the earphone box considers that the earphone is outside the box, and step S902 is repeatedly performed.
  • Step S904 the earphone box confirms that the earphone is in the box.
  • the principle of the right earphone is the same as that of the left earphone.
  • the first electrical connector J2 and the third electrical connector J3 in the earphone box still have electricity (eg, communication level).
  • electricity eg, communication level
  • the impedance between the first positive electrode and the first negative electrode of the first electrical connector J2 is not infinite, and the first electrical connector
  • the impedance between the first positive electrode and the first negative electrode of J2 is divided by the first resistor R2 (resistance value is 1 ⁇ ) and the second resistor R24 (resistance value is 1M ⁇ ).
  • the level jumps to a high level.
  • the earphone box detects that the level of the first negative electrode of the first electrical connector is a high level, and it is considered that the left earphone enters the earphone box, and the earphone box controls the first control pin.
  • CTL_L outputs a high level, so that the first field effect transistor Q7 changes from the off state to the on state.
  • Step S905 the earphone box sends the first data to the earphone.
  • the earphone box sends first data to the earphone; the first data is used to inform the connection status of the earphone and the earphone box, and /or, the first data is used to request second data sent by the earphone; the second data is used to represent that data can be transmitted between the earphone box and the earphone.
  • the earphone box after the earphone box receives the second data, the earphone box sends the first data to the earphone with a first threshold period.
  • Step S906 the earphone receives the first data and sends the second data.
  • the headset receives the first data and sends second data to the headset box based on the first data.
  • the fact that the earphone can receive the first data indicates that data can be transmitted between the earphone and the earphone box.
  • the earphone receives the first data sent by the earphone box periodically with a first threshold value.
  • the connection state between the carrying device and the electronic device is confirmed through the communication state between the carrying device and the electronic device, or the level of the first electrical connector on the carrying device, without any additional Adding high-cost devices reduces the cost of electronic equipment; at the same time, through the embodiment of the present application, only a limited number of resistance-capacitance-inductance devices need to be added to the carrying equipment, the structural design complexity is low, and the appearance of the electronic equipment is small; in addition, Compared with the tact switch detection method, the embodiment of the present application significantly improves the reliability of the detection function and the protection reliability of the bearing device; finally, the embodiment of the present application solves the problem of communication between the bearing device and the electronic device and the communication between the electronic device and the bearing device. The problem of conflicting connection status confirmation between devices.
  • FIG. 13 is a schematic diagram showing an optional structure of the electronic device provided by the embodiment of the present application, which will be described according to each part.
  • the electronic device is an earphone, and correspondingly, the carrying device is an earphone box as an example.
  • the carrying device at least includes: an electricity storage module 1001 , a processor 1002 , an electricity output module 1003 , a detection module 1004 and a first communication module 1005 .
  • the power storage module 1001 is used to store power for carrying equipment, and usually has a linear type and a switch type.
  • the processor 1002 is used for system control, including controlling self-charging, charging the electronic device, communication between the electronic device and the carrying device, and the like.
  • the power output module 1003 is used to provide power for the electronic device, usually by generating a 5V voltage to charge the electronic device.
  • the detection module 1004 is used for detecting whether the electronic device is connected with the carrying device.
  • the first communication module 1005 is used for realizing communication between the electronic device and the carrying device, facilitating information interaction between the electronic device and the carrying device, and facilitating UI display.
  • the electronic device includes: a second communication module 1006 , a charging module 1007 , a Bluetooth processor 1002 and an audio module 1009 .
  • the second communication module 1006 is used to realize the communication between the carrying device and the electronic device, and realize the exchange of information.
  • the charging module 1007 is used for charging the electronic device.
  • the Bluetooth processor 1008 is used for processing Bluetooth signals, controlling charging, and the like.
  • the audio module 1009 is used to collect and output audio signals, which can be speakers, microphones, and the like.
  • the detection module 1010 is used for detecting whether the electronic device is connected with the carrying device.
  • the detection module 1004 or the detection module 1010 includes the circuit shown in FIG. 9 or FIG. 10 in the above-mentioned embodiment, which is used to detect the level of the first electrical connector of the carrying device, and the level of the first electrical connector is When the level is high, it is determined that the electronic device is connected to the carrying device; when the level of the first electrical connector is low, it is determined that the electronic device is not connected to the carrying device.
  • FIG. 14 shows an optional structural schematic diagram of the detection device provided by the embodiment of the present application, which will be described according to each part.
  • the detection device 1100 includes: a detection circuit 1101 and a controller 1102 .
  • the detection circuit 1101 is configured to output a preset level signal when the first electrical connector and the second electrical connector are switched from unconnected to connected; the preset level signal is a single pulse signal or high level signal.
  • the detection circuit 1101 may be the circuit shown in FIG. 9 or FIG. 10 .
  • the controller 1102 is configured to detect the preset level signal, and determine that the electronic device is connected to the carrying device according to the preset level signal.
  • the controller 1102 is further configured to detect the communication state between the carrying device and the electronic device; if the single pulse signal is detected and the communication state is normal, it is determined that the electronic device is connected to the electronic device. carrying equipment.
  • the controller 1102 is further configured to control the carrying device to charge the electronic device.
  • the detection device may be in the carrying device or in the electronic device.
  • the carrying device has a cover, and when the carrying device is in an open state, the detection method is triggered to be executed.
  • FIG. 15 shows another optional structural schematic diagram of the detection device provided by the embodiment of the present application, which will be described according to each part.
  • the detection apparatus 1200 includes: an output unit 1201 , a detection unit 1202 and a determination unit 1203 .
  • the output unit 1201 is configured to output a single pulse signal when the first electrical connector of the carrying device and the second electrical connector of the electronic device are switched from unconnected to connected;
  • the detection unit 1202 configured to detect the single pulse signal
  • the determining unit 1203 is configured to determine that the electronic device is connected to the carrying device according to the single pulse signal when the detection unit detects the single pulse signal.
  • the detection unit 1202 is further configured to detect the communication state between the carrier device and the electronic device;
  • the determining unit 1203 is further configured to determine that the electronic device is connected to the bearer device when the single pulse signal is detected and the communication state is normal.
  • the detection device 1200 further includes: a control unit 1204 .
  • the control unit 1204 is configured to control the carrying device to charge the electronic device.
  • the detection device may be an electronic device or a carrying device.
  • the electronic device or carrier device 700 includes: at least one processor 701 , memory 702 , and at least one network interface 704 .
  • the various components in the electronic device or carrier device 700 are coupled together by a bus system 705 .
  • the bus system 705 is used to implement the connection communication between these components.
  • the bus system 705 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 705 in FIG. 16 .
  • memory 702 may be either volatile memory or non-volatile memory, and may include both volatile and non-volatile memory.
  • the non-volatile memory can be ROM, Programmable Read-Only Memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read-Only Memory (EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Programmable Read-Only Memory Programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disk, or CD-ROM -ROM, Compact Disc Read-Only Memory); magnetic surface memory can be disk memory or tape memory.
  • RAM Random Access Memory
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Type Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Link Dynamic Random Access Memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 702 described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.
  • the memory 702 in this embodiment of the present application is used to store various types of data to support the operation of the electronic device 700 .
  • Examples of such data include: any computer program, such as application program 722 , for operation on the electronic device or carrier device 700 .
  • a program for implementing the methods of the embodiments of the present application may be included in the application program 722 .
  • the methods disclosed in the embodiments of the present application may be applied to the processor 701 or implemented by the processor 701 .
  • the processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method may be completed by hardware integrated logic circuits in the processor 701 or instructions in the form of software.
  • the processor 701 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • DSP Digital Signal Processor
  • the processor 701 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702, and completes the steps of the foregoing method in combination with its hardware.
  • the electronic device or carrier device 700 may be implemented by one or more Application Specific Integrated Circuit (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), complex programmable logic A device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, MPU, or other electronic component implementation for performing the aforementioned method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal processor
  • PLD Programmable Logic Device
  • CPLD Complex Programmable Logic Device
  • FPGA general-purpose processor
  • controller MCU, MPU, or other electronic component implementation for performing the aforementioned method.
  • Embodiments of the present application further provide a storage medium for storing a computer program.
  • the storage medium can be applied to the first client in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes in each method of the embodiments of the present application, which is not repeated here for brevity.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

一种检测方法,用于承载设备与电子设备之间进行连接检测,包括:当承载设备的第一电连接器与电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号(S101);检测单脉冲信号(S102);若检测到单脉冲信号,则根据单脉冲信号确定电子设备接入承载设备(S103)。还公开一种检测装置、存储介质和承载设备,通过检测方法、电子设备、承载设备和存储介质,可以优化电子设备与承载设备之间的连接确认方式。

Description

一种检测方法、检测装置、存储介质及承载设备
相关申请的交叉引用
本申请基于申请号为202011593237.7、申请日为2020年12月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请涉及电子技术领域,尤其涉及一种检测方法、检测装置、存储介质及承载设备。
背景技术
相关技术中通常使用红外传感器、轻触开关或霍尔开关等传感器实现电子设备与承载设备之间的连接确认,但上述方案中,或需要额外增加元器件提升电子设备的成本,或占用较大体积影响外形和结构设计;因此,如何优化电子设备与承载设备之间的连接确认方式,是需要解决的技术问题。
发明内容
本申请实施例提供一种检测方法、检测装置、存储介质及承载设备,可以优化电子设备与承载设备之间的连接确认方式。
本申请的技术方案是这样实现的:
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测所述单脉冲信号;若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述电子设备基于与所述承载设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
当所述电子设备的第二电连接器与所述承载设备的第一电连接器由未连接切换为连接时,所述电子设备的第二电连接器输出单脉冲信号;
检测所述单脉冲信号;
若所述电子设备检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述承载设备基于与所述电子设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述承载设备向所述电子设备发送第一数据;
所述电子设备接收所述第一数据,并发送第二数据;
若所述承载设备接收到所述第二数据,确认所述承载设备与所述电子设备连接;
若所述承载设备未接收到所述第二数据,所述承载设备检测所述承载设备的第一电连接器 的电平。
本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述电子设备向承载设备发送第三数据;
所述承载设备接收所述第三数据,并发送第四数据;
若所述电子设备接收到所述第四数据,确认所述电子设备与所述承载设备连接;
若所述电子设备未接收到所述第四数据,所述电子设备检测所述电子设备的第二电连接器的电平。
本申请提供一种检测方法,用于TWS耳机的耳机盒与TWS耳机之间进行连接检测,所述方法包括:
确认所述TWS耳机与所述耳机盒之间是否能够通讯;
若确认所述TWS耳机与所述耳机盒之间能够通讯,所述耳机盒和所述TWS耳机确认彼此连接;
若确认所述TWS耳机与所述耳机盒之间无法通讯,所述耳机盒和所述TWS耳机确认彼此未连接。
本申请实施例提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述承载设备具有第一电连接器,所述电子设备具有第二电连接器,所述检测装置包括:检测电路,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预设电平信号;控制器,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备。
本申请实施例提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述装置包括:输出单元,用于当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测单元,用于检测所述单脉冲信号;确定单元,用于在所述检测单元检测到所述单脉冲信号的情况下,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
本申请实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现上述电子设备或承载设备执行的检测方法。
本申请实施例提供一种承载设备,所述承载设备使得处理器执行上述检测方法。
附图说明
图1为相关技术中TWS耳机的一种可选示意图;
图2为相关技术中TWS耳机的另一种可选示意图;
图3为本申请实施例提供的检测方法的第一种可选结构示意图;
图4为本申请实施例提供的检测方法的第二种可选流程示意图;
图5为本申请实施例提供的检测方法的第三种可选流程示意图;
图6为本申请实施例提供的检测方法的第四种可选流程示意图;
图7为本申请实施例提供的检测方法的第五种可选流程示意图;
图8为本申请实施例提供的检测方法的第六种可选流程示意图;
图9为本申请实施例提供的电子设备或承载设备的检测电路的一种可选电路图;
图10为本申请实施例提供的电子设备或承载设备的检测电路的另一种可选电路图;
图11为本申请实施例提供的检测方法的第七种可选流程示意图;
图12为本申请实施例提供的检测方法的第八种可选流程示意图;
图13为本申请实施例提供的电子设备的一种可选结构示意图;
图14为本申请实施例提供的检测装置的一种可选结构示意图;
图15为本申请实施例提供的检测装置的另一种可选结构示意图;
图16为本申请实施例的电子设备或承载设备的硬件组成结构示意图。
具体实施方式
第一方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测所述单脉冲信号;若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
可选的,所述根据所述单脉冲信号确定所述电子设备接入所述承载设备,包括:
检测所述承载设备与所述电子设备的通信状态;
若检测到所述单脉冲信号,且所述通信状态为正常,则确定所述电子设备接入所述承载设备。
可选的,所述根据所述单脉冲信号确定所述电子设备接入所述承载设备之后,包括:
控制所述承载设备向所述电子设备充电。
可选的,所述承载设备具有盖体,当所述承载设备处于开盖状态时,触发执行所述检测方法。
第二方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述电子设备基于与所述承载设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
第三方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
当所述电子设备的第二电连接器与所述承载设备的第一电连接器由未连接切换为连接时,所述电子设备的第二电连接器输出单脉冲信号;
检测所述单脉冲信号;
若所述电子设备检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
第四方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述承载设备基于与所述电子设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
第五方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述承载设备向所述电子设备发送第一数据;
所述电子设备接收所述第一数据,并发送第二数据;
若所述承载设备接收到所述第二数据,确认所述承载设备与所述电子设备连接;
若所述承载设备未接收到所述第二数据,所述承载设备检测所述承载设备的第一电连接器的电平。
第六方面,本申请提供一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
所述电子设备向承载设备发送第三数据;
所述承载设备接收所述第三数据,并发送第四数据;
若所述电子设备接收到所述第四数据,确认所述电子设备与所述承载设备连接;
若所述电子设备未接收到所述第四数据,所述电子设备检测所述电子设备的第二电连接器的电平。
第七方面,本申请提供一种检测方法,用于TWS耳机的耳机盒与TWS耳机之间进行连接检测,所述方法包括:
确认所述TWS耳机与所述耳机盒之间是否能够通讯;
若确认所述TWS耳机与所述耳机盒之间能够通讯,所述耳机盒和所述TWS耳机确认彼此连接;
若确认所述TWS耳机与所述耳机盒之间无法通讯,所述耳机盒和所述TWS耳机确认彼此未连接。
可选的,所述耳机盒和所述TWS耳机确认彼此未连接之后,所述方法还包括:
所述耳机出盒后,所述TWS耳机盒控制第一控制引脚输出低电平;
确认所述耳机盒的第一电连接器的电平是否变为高电平;
若所述耳机盒的第一电连接器的电平为低电平,所述耳机盒确认耳所述机在耳机盒外部;
若检测到所述耳机盒的第一电连接器的电平变为高电平,所述耳机盒确认所述耳机在盒内。
第八方面,本申请提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述承载设备具有第一电连接器,所述电子设备具有第二电连接器,所述检测装置包括:检测电路,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预设电平信号;控制器,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备。
第九方面,本申请提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述装置包括:输出单元,用于当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测单元,用于检测所述单脉冲信号;确定单元,用于在所述检测单元检测到所述单脉冲信号的情况下,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
第十方面,本申请实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现上述电子设备或承载设备执行的检测方法。
第十一方面,本申请实施例提供一种承载设备,所述承载设备使得处理器执行上述检测方法。
本申请实施例提供的检测方法、检测装置、存储介质即承载设备,当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测所述单脉冲信号;若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备,无需额外添加高成本器件,降低了电子设备的成本,优化了电子设备与承载设备之间的连接确认方式。
以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
对本申请进行进一步详细说明之前,对本申请实施例中涉及的名词和术语进行说明,本申请实施例中涉及的名词和术语适用于如下的解释。
1.真无线立体声(True Wireless Stereo,TWS)耳机
TWS耳机的左右两只耳塞无需线缆连接,通过实现左右声道的无线分离即可独立工作。
图1示出了相关技术中TWS耳机的一种可选示意图。图2示出了相关技术中TWS耳机的另一种可选示意图。
TWS耳机具备如下优点:1)完全摒弃有线耳机的烦恼,运动更加自由;2)使用方式多样,即可独享,又可分享,一幅耳机还可以当做两幅独立的耳机使用;3)耳机的耳机盒不仅实现耳机的收纳或保护,内部的电源还可以为耳机提供电量,将耳机放入耳机盒中既可以为耳机实现充电。
TWS耳机可以收纳到对应的耳机盒中,在TWS耳机进入耳机盒或从耳机盒移出的过程中,TWS耳机与耳机盒都需要进行出入盒检测;在TWS耳机进入耳机盒后,耳机盒才能够对耳机进行充电,所述TWS耳机在所述耳机盒中未关机状态;TWS从耳机盒移出后,与电子设备建立连接,并执行相应功能(如播放音频),进入工作状态。
2.耳机的正负极触点
在TWS耳机的底部有正负极触点,可以是金属引脚(POGO PIN),也可以是电触片与弹片的组合,用于当耳机放置在耳机盒内时,让耳机与耳机盒之间的电路导通,从而为耳机充电和通讯。TWS耳机常见有两个正负极触电和三个正负极触电,位置分别位于耳机和充电盒上的对应位置,当耳机放置在充电盒内时,耳机上的正负极触点和耳机盒盒上的正负极触点会刚好接触和导通。
图2中的TWS耳机的正负极触点放在耳塞的下方。耳机的正负极触点或耳机盒上的正负极 触点也可以称为电连接器。
相关技术中通常使用红外传感器、轻触开关或霍尔开关等传感器实现电子设备与承载设备之间的连接确认,但需要额外增加元器件提升电子设备的成本,或占用较大体积影响外形和结构设计。
基于目前电子设备与承载设备连接检测中存在的问题,本申请提出一种检测方法,能够解决现有技术方案中无法解决的技术难题和缺点。
图3示出了本申请实施例提供的检测方法的第一种可选结构示意图。
步骤S101,当承载设备的第一电连接器与电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号。
在一些实施例中,所述承载设备的第一电连接器可以是所述承载设备的金属引脚;所述电子设备的第二电连接器可以是所述电子设备的金属引脚。所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,所述承载设备的第一电连接器输出单脉冲信号。
在一些实施例中所述电子设备与所述承载设备对应,所述承载设备可以用于为所述电子设备充电、收纳所述电子设备或固定所述电子设备中至少一种,所述承载设备也可以是所述电子设备的底座。所述电子设备可以是TWS耳机,相应地所述承载设备为耳机盒;所述电子设备可以是扫地机器人,相应地所述承载设备为扫地机器人的充电桩;所述电子设备可以是电动拖把,相应地所述承载设备为电动拖把的充电桩;本申请不做过多限定。
步骤S102,检测单脉冲信号。
在一些实施例中,所述承载设备确认与所述电子设备未连接的情况下,检测所述第一电连接器的电平值;或者,所述承载设备确认与所述电子设备未连接的情况下,检测所述第一电连接器。
步骤S103,若检测到单脉冲信号,则根据单脉冲信号确定电子设备接入承载设备。
在一些实施例中,若所述承载设备检测到所述承载设备的第一电连接器输出预设电平信号,所述预设电平信号可以是单脉冲信号,也可以是高电平信号,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
具体实施时,若所述承载设备检测到所述第一电连接器的电平由低电平变为高电平,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
具体实施时,所述承载设备还检测所述承载设备与所述电子设备的通信状态;若检测到所述单脉冲信号,且所述通信状态为正常,则确定所述电子设备接入所述承载设备。
其中,所述通信状态为正常包括:所述电子设备与所述承载设备之间能够传输数据。具体实施时,所述承载设备向所述电子设备发送第一数据;若所述承载设备接收到所述电子设备基于所述第一数据返回的第二数据,则确定所述承载设备与所述电子设备之间能够传输数据;
或者,具体实施时,若检测到所述单脉冲信号,且所述通信状态为异常,则确定所述电子设备未接入所述承载设备。
其中,所述通信状态为异常包括:所述电子设备与所述承载设备之间不能传输数据。具体实施时,所述承载设备向所述电子设备发送第一数据;若所述承载设备未接收所述电子设备基于所述第一数据返回的第二数据,则确定所述承载设备与所述电子设备之间不能传输数据。如此,可以避免检测到单脉冲信号,但电子设备未与承载设备连接而导致的误检测,在检测到单脉冲信号后,通过确认通信状态,可以保证检测结果的准确性。
在一些可选实施例中,所述承载设备以第一阈值为周期向所述电子设备发送第一数据。
进一步,所述电子设备以第一阈值为周期向所述电子设备发送第一数据;若所述承载设备接收到所述电子设备基于所述第一数据返回的第二数据,则确认所述承载设备与所述电子设备之间能够传输数据,即所述承载设备与所述电子设备连接;或者,若所述承载设备未接收所述电子设备基于所述第一数据返回的第二数据,则确认所述承载设备与所述电子设备之间不能传输数据,即确认所述承载设备未与所述电子设备连接。其中,所述第一阈值可以根据实际需要确定。
在另一些实施例中,所述承载设备接收所述电子设备发送的第三数据,基于所述第三数据,确认所述承载设备与所述电子设备之间能够传输数据;和/或,所述承载设备向所述电子设备发 送第四数据。
在一些实施例中,所述承载设备根据所述单脉冲信号确定所述电子设备接入所述承载设备之后,所述承载设备还可以控制所述承载设备向所述电子设备充电。
在一些实施例中,所述承载设备具有盖体,当所述承载设备处于开盖状态时,触发执行上述步骤S101至步骤S103所述的检测方法。例如,所述电子设备为TWS耳机,所述承载设备为TWS耳机盒,所述耳机盒的盒盖打开的情况下,执行步骤S101至步骤S103的相关操作;否则,在所述耳机盒的盒盖关闭的情况下,不执行步骤S101至步骤S103的相关操作。在所述耳机盒打开的状态下,可以确认耳机在盒内或不在盒内,所以,耳机盒关闭的状态下,耳机盒可以基于关闭前耳机与耳机盒的状态,确认所述耳机是否在耳机盒内,无需通过上述步骤S101至步骤S103进行确认。
如此,通过本申请实施例,当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;检测所述单脉冲信号;若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备,无需额外添加高成本器件,降低了电子设备的成本;此外,本申请实施例相比轻触开关检测方法显著提升了检测功能的可靠性和承载设备的防护可靠性;最后,通过本申请实施例,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图4示出了本申请实施例提供的检测方法的第二种可选流程示意图。
步骤S201,电子设备基于与承载设备的通信状态,确定承载设备与电子设备的连接状态。
在一些实施例中,所述电子设备基于承载设备与所述电子设备的通信状态,确定所述承载设备与所述电子设备的连接状态。其中,所述连接状态包括连接或未连接。
具体实施时,若所述承载设备与所述电子设备之间通信状态为正常,确定所述承载设备与所述电子设备连接;或者,若所述承载设备与所述电子设备之间通信状态为异常,确定所述承载设备与所述电子设备未连接。
在一些实施例中,所述电子设备确认与所述承载设备的通信状态。
具体实施时,所述承载设备向所述电子设备发送第一数据;若所述电子设备接收到所述第一数据,确认所述承载设备与所述电子设备之间通信状态为正常;或者,若所述电子设备无法接收所述第一数据,确认所述承载设备与所述电子设备之间通信状态为异常。
在一些可选实施例中,所述电子设备以第一阈值为周期接收所述承载设备发送的第一数据。
进一步,若所述电子设备每隔第一阈值的时间可以接收所述承载设备发送的第一数据,则确认所述承载设备与所述电子设备之间通信状态为正常,即所述承载设备与所述电子设备连接;或者,若所述电子设备未接收所述承载设备发送的第一数据,则确认所述承载设备与所述电子设备之间通信状态为异常,即确认所述承载设备未与所述电子设备连接。
在另一些实施例中,所述电子设备向所述承载设备发送第三数据,若所述电子设备接收到所述承载设备发送的第四数据,确认所述承载设备与所述电子设备之间能够传输数据。
如此,通过本申请实施例通过电子设备基于与所述承载设备的通信状态,确定所述承载设备与所述电子设备的连接状态,无需额外添加高成本器件,降低了电子设备的成本;同时,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图5示出了本申请实施例提供的检测方法的第三种可选流程示意图,将根据各个步骤进行说明。
步骤S301,当电子设备的第二电连接器与承载设备的第一电连接器由未连接切换为连接时,电子设备的第二电连接器输出单脉冲信号。
在一些实施例中,所述承载设备的第一电连接器可以是所述承载设备的金属引脚;所述电子设备的第二电连接器可以是所述电子设备的金属引脚。所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,所述电子设备的第二电连接器输出单脉冲信号。
具体实施时,所述电子设备与所述承载设备由未连接切换为连接时,所述电子设备的第二电连接器输出单脉冲信号。
在一些实施例中所述电子设备与所述承载设备对应,所述承载设备可以用于为所述电子设备充电、收纳所述电子设备或固定所述电子设备中至少一种,所述承载设备也可以是所述电子 设备的底座。所述电子设备可以是TWS耳机,相应地所述承载设备为耳机盒;所述电子设备可以是扫地机器人,相应地所述承载设备为扫地机器人的充电桩;所述电子设备可以是电动拖把,相应地所述承载设备为电动拖把的充电桩;本申请不做过多限定。
步骤S302,检测单脉冲信号。
在一些实施例中,所述电子设备确认与所述电子设备未连接的情况下,检测所述第二电连接器的电平值;或者,所述电子设备确认与所述承载设备未连接的情况下,检测所述第二电连接器。
步骤S303,若电子设备检测到单脉冲信号,则根据单脉冲信号确定电子设备接入承载设备。
在一些实施例中,若所述电子设备检测到所述电子设备的第二电连接器输出预设电平信号,所述预设电平信号可以是单脉冲信号,也可以是高电平信号,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
具体实施时,若所述电子设备检测到所述第二电连接器的电平由低电平变为高电平,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
具体实施时,所述电子设备还检测所述承载设备与所述电子设备的通信状态;若检测到所述单脉冲信号,且所述通信状态为正常,则确定所述电子设备接入所述承载设备。
其中,所述通信状态为正常包括:所述电子设备与所述承载设备之间能够传输数据。具体实施时,所述电子设备向所述承载设备发送第三数据;所述第三数据用于请求承载设备发送第四数据;所述第四数据用于表征所述电子设备与所述承载设备之间能够传输数据。可选地,所述电子设备以第一阈值为周期向所述承载设备发送第三数据。
或者,具体实施时,若检测到所述单脉冲信号,且所述通信状态为异常,则确定所述电子设备未接入所述承载设备。
其中,所述通信状态为异常包括:所述电子设备与所述承载设备之间不能传输数据。具体实施时,所述电子设备向所述承载设备发送第三数据;若所述电子设备未接收所述承载设备基于所述第三数据返回的第四数据,则确定所述承载设备与所述电子设备之间不能传输数据。
进一步,所述电子设备以第一阈值为周期向所述承载设备发送第三数据;若所述电子设备接收到所述承载设备基于所述第三数据返回的第四数据,则确认所述承载设备与所述电子设备之间能够传输数据,即所述承载设备与所述电子设备连接;或者,若所述电子设备未接收所述承载设备基于所述第三数据返回的第四数据,则确认所述承载设备与所述电子设备之间不能传输数据,即确认所述承载设备未与所述电子设备连接。其中,所述第一阈值可以根据实际需要确定。
在另一些实施例中,所述电子设备接收所述承载设备发送的第一数据,基于所述第一数据,确认所述承载设备与所述电子设备之间能够传输数据;和/或,所述电子设备向所述承载设备发送第二数据。
在一些实施例中,所述承载设备根据所述单脉冲信号确定所述电子设备接入所述承载设备之后,所述电子设备还可以根据所述承载设备输出的电流进行充电。
如此,本申请实施例中,当所述电子设备的第二电连接器与所述承载设备的第一电连接器由未连接切换为连接时,输出单脉冲信号;检测所述单脉冲信号;若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。无需额外添加高成本器件,降低了电子设备的成本;此外,本申请实施例相比轻触开关检测方法显著提升了检测功能的可靠性和承载设备的防护可靠性;最后,通过本申请实施例,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图6示出了本申请实施例提供的检测方法的第四种可选流程示意图。
步骤S401,承载设备基于与电子设备的通信状态,确定承载设备与电子设备的连接状态。
在一些实施例中,所述承载设备基于承载设备与所述电子设备的通信状态,确定所述承载设备与所述电子设备的连接状态。其中,所述连接状态包括连接或未连接。
具体实施时,若所述承载设备与所述电子设备之间通信状态为正常,确定所述承载设备与所述电子设备连接;或者,若所述承载设备与所述电子设备之间通信状态为异常,确定所述承载设备与所述电子设备未连接。
在一些实施例中,所述承载设备确认与所述电子设备的通信状态。
具体实施时,所述电子设备向所述承载设备发送第三数据;若所述承载设备接收到所述第三数据,确认所述电子设备与所述承载设备之间通信状态为正常;或者,若所述承载设备无法接收所述第三数据,确认所述电子设备与所述承载设备之间通信状态为异常。
在一些可选实施例中,所述承载设备以第一阈值为周期接收所述电子设备发送的第一数据。
进一步,若所述承载设备每隔第一阈值的时间可以接收所述电子设备发送的第三数据,则确认所述承载设备与所述电子设备之间通信状态为正常,即所述承载设备与所述电子设备连接;或者,若所述承载设备未接收所述电子设备发送的第三数据,则确认所述承载设备与所述电子设备之间通信状态为异常,即确认所述承载设备未与所述电子设备连接。
在另一些实施例中,所述承载设备向所述电子设备发送第一数据,若所述承载设备接收到所述电子设备发送的第二数据,确认所述承载设备与所述电子设备之间能够传输数据。
如此,通过本申请实施例通过电子设备基于与所述承载设备的通信状态,确定所述承载设备与所述电子设备的连接状态,无需额外添加高成本器件,降低了电子设备的成本;同时,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图7示出了本申请实施例提供的检测方法的第五种可选流程示意图。
步骤S501,承载设备向电子设备发送第一数据。
在一些实施例中,若所述承载设备为非封闭状态,所述承载设备向所述电子设备发送第一数据;所述第一数据用于请求电子设备发送的第二数据;所述第二数据用于表征所述承载设备与所述电子设备之间能够传输数据。
在一些可选实施例中,所述承载设备以第一阈值为周期向所述电子设备发送第一数据。
在一些实施例中,若所述承载设备为可容纳电子设备的可闭合盒体,所述承载设备为非闭合状态,所述电子设备可直接放置于所述承载设备内。例如所述电子设备为TWS耳机,所述承载设备为耳机盒,所述承载设备的非闭合状态包括:所述耳机盒的盒盖打开。
在另一些实施例中,若所述承载设备为不可容纳电子设备的物体,所述承载设备为非闭合状态,例如所述承载设备可以是扫地机器人的充电桩,或电动拖把的充电桩等。
步骤S502,电子设备接收第一数据,并发送第二数据。
在一些实施例中,电子设备接收所述第一数据,并基于所述第一数据向所述承载设备发送第二数据。所述电子设备能够接收所述第一数据,表征所述电子设备与所述承载设备之间能够传输数据,确认所述电子设备与所述承载设备连接。
在一些可选实施例中,所述电子设备接收所述承载设备以第一阈值为周期发送的第一数据。
步骤S503,所述承载设备接收第二数据,确认承载设备与电子设备连接。
在一些实施例中,所述承载设备接收所述第二数据,确认所述承载设备与所述电子设备连接。
在一些实施例中,若所述承载设备发出所述第一数据,但未收到所述电子设备基于所述第一数据返回的第二数据的情况下,所述电子设备执行步骤S504。
步骤S504,承载设备检测承载设备的第一电连接器的电平。
在一些实施例中,所述承载设备未接收所述第二数据,或者所述承载设备无法向所述电子设备发送所述第一数据的情况下,说明所述电子设备与所述承载设备之间不能传输数据,即所述电子设备与所述承载设备未连接。
在一些实施例中,所述承载设备确认未与所述电子设备连接的情况下,所述承载设备中,控制引脚输出低电平;并检测所述承载设备的第一电连接器,若检测到所述承载设备的第一电连接器输出预设电平信号,确定所述承载设备与所述电子设备连接,执行步骤S501;若所述承载设备的第一电连接器的电平为低电平,确定所述承载设备与所述电子设备未连接重复执行步骤S504。
具体实施时,所述预设电平信号可以是单脉冲信号,也可以是高电平信号;若所述承载设备检测到所述第一电连接器的电平由低电平变为高电平,根据所述单脉冲信号确定所述电子设备接入所述承载设备。。
具体实施时,若检测到所述承载设备上第二电连接器的电平为高电平,确定所述承载设备与所述电子设备连接,所述承载设备向所述电子设备发送第一数据;所述第一数据用于告知所述电子设备,所述承载设备与所述电子设备连接。
在一些实施例中,所述承载设备包括检测电路;所述检测电路的可选结构将在后文进行详细说明。
如此,本申请实施例通过承载设备与电子设备之间的通信状态,或者所述承载设备上第一电连接器的电平,确认所述承载设备与所述电子设备的连接状态,无需额外添加高成本器件,降低了电子设备的成本;此外,本申请实施例相比轻触开关检测方法显著提升了检测功能的可靠性和承载设备的防护可靠性;最后,通过本申请实施例,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图8示出了本申请实施例提供的检测方法的第六种可选流程示意图,将根据各个步骤进行说明。
步骤S601,电子设备向承载设备发送第三数据。
在一些实施例中,所述电子设备向所述承载设备发送第三数据;所述第三数据用于请求承载设备发送第四数据;所述第四数据用于表征所述电子设备与所述承载设备之间能够传输数据。
在一些可选实施例中,所述电子设备以第一阈值为周期向所述承载设备发送第三数据。
步骤S602,承载设备接收第三数据,并发送第四数据。
在一些实施例中,承载设备接收所述第三数据,并基于所述第三数据向所述电子设备发送第四数据。所述承载设备能够接收所述第三数据,表征所述电子设备与所述承载设备之间能够传输数据,确认所述电子设备与所述承载设备连接。
在一些可选实施例中,所述承载设备接收所述电子设备以第一阈值为周期发送的第三数据。
步骤S603,电子设备接收第四数据,确认电子设备与承载设备连接。
在一些实施例中,所述电子设备接收所述第四数据,确认所述电子设备与所述承载设备连接。
在一些实施例中,若所述电子设备发出所述第三数据,但未收到所述承载设备基于所述第三数据返回的第四数据的情况下,所述电子设备执行步骤S604。
步骤S604,电子设备检测电子设备的第二电连接器的电平。
在一些实施例中,所述电子设备未接收所述第四数据,或者所述电子设备无法向所述承载设备发送所述第三数据的情况下,说明所述电子设备与所述承载设备之间不能传输数据,即所述电子设备与所述承载设备未连接。
在一些实施例中,所述电子设备确认未与所述承载设备连接的情况下,所述电子设备中的控制引脚输出低电平;并检测所述电子设备的第二电连接器,若检测到所述电子设备的第二电连接器的电平为高电平,确定所述电子设备与所述承载设备连接,执行步骤S601;若所述电子设备的第二电连接器的电平为低电平,确定所述承载设备与所述电子设备未连接,并重复执行步骤S604。
具体实施时,若检测到所述电子设备的第二电连接器的电平为高电平,确定所述承载设备与所述电子设备连接,所述承载设备向所述电子设备发送第三数据;所述第三数据用于告知所述承载设备,所述电子设备与所述承载设备连接。
在一些实施例中,所述电子设备的包括检测电路;所述检测电路的可选结构将在后文进行详细说明。
如此,本申请实施例通过承载设备与电子设备之间的通信状态,或者所述承载设备上第一电连接器的电平,确认所述承载设备与所述电子设备的连接状态,无需额外添加高成本器件,降低了电子设备的成本;此外,本申请实施例相比轻触开关检测方法显著提升了检测功能的可靠性和承载设备的防护可靠性;最后,通过本申请实施例,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图9示出了本申请实施例提供的电子设备或承载设备的检测电路的一种可选电路图,将根据各个部分进行说明。
在一些实施例中,本申请还提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述承载设备具有第一电连接器,所述电子设备具有第二电连接器,所述检测装置包括:
检测电路,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预设电平信号;
控制器,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所 述承载设备。
所述检测装置可以应用在电子设备或承载设备中,接下来以所述检测装置在承载设备中进行说明;所述检测装置在电子设备中的原理与检测装置在承载设备中相同,不再重复赘述。若所述电子设备包括至少一个能够独立使用的设备(如TWS耳机中,左耳机和右耳机可以单独使用),所述至少一个能够独立使用的设备中均包括所述检测装置。
图9中,所述检测电路包括:第一控制引脚CTL_L、第一场效应管Q7、第一电连接器J2和第一电阻R2;所述第一电连接器J2包括第一正极和第一负极。
所述第一场效应管Q7的栅极与所述第一控制引脚CTL_L连接;所述第一场效应管Q7的源极接地;所述第一场效应管Q7的漏极与所述第一负极连接;所述第一电阻R2的第一端与所述第一场效应管Q7的漏极连接;所述第一电阻R2的第二端接地。
当所述第一电连接器J2与所述第二电连接器由未连接切换为连接时,所述第一负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号。
在电子设备与所述承载设备由未连接切换至连接的时刻,所述第一电连接器J2的第一负极为高电平,确认所述承载设备与所述电子设备连接;在所述电子设备与所述承载设备未连接的情况下,所述第一控制引脚CTL_L输出低电平,所述第一场效应管Q7为截止状态,第一电连接器J2的第一负极为低电平。
具体实施时,所述第一电阻R2的阻值大于第一阈值;在电子设备与所述承载设备由未连接切换至连接的时刻,所述第一电连接器J2正极和负极之间的阻抗与所述第一电阻R2和第二电阻分压,所述第一电连接器J2的第一负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号,确认所述承载设备与所述电子设备连接,控制所述第一控制引脚CTL_L输出高电平,所述第一场效应管Q7为导通状态;在电子设备与所述承载设备未连接的情况下,所述第一场效应管Q7为截止状态,所述第一电连接器J2的第一负极通过所述第一电阻R2接地,所述第一电连接器J2的第一负极输出低电平。所述第一阈值可以根据实际需要设置。
在一些可选实施例中,所述电路还包括:第二控制引脚CLR_R、第三电连接器J3、第二场效应管Q8和第五电阻R5;所述第三电连接器J3包括第二正极和第二负极。
所述第二场效应管Q8的栅极与所述第二控制引脚CLR_R连接;所述第二场效应管Q8的源极接地;所述第二场效应管Q8的漏极与第三电连接器J3的第二负极连接;
在电子设备与所述承载设备由未连接切换至连接的时刻,所述第二控制引脚CLR_R输出高电平,所述第三电连接器J3的第二负极为高电平,所述承载设备确认所述承载设备与所述电子设备连接。
当电子设备的第四电连接器与所述第三电连接器J3由未连接切换为连接时,所述第二负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号。
具体实施时,所述第五电阻R5的阻值大于第一阈值;在电子设备与所述承载设备由未连接切换至连接的时刻,所述第三电连接器J3的第二正极和第二负极之间的阻抗与所述第五电阻R5分压,所述第三电连接器J3的第二负极输出高电平,确认所述承载设备与所述电子设备连接,控制所述第二控制引脚CTL_R输出高电平,所述第二场效应管Q8为导通状态,然后所述第三电连接器J3的第二负极输出低电平;在电子设备与所述承载设备未连接的情况下,所述第二场效应管Q8为截止状态,所述第三电连接器J3的第二负极通过所述第五电阻R5接地,所述第三电连接器J3的第二负极输出低电平。
在一些实施例中,所述控制器执行检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备的具体步骤流程可以参考步骤S101至步骤S103、步骤S201、步骤S301至步骤S303、步骤S401、步骤S501至步骤S504、步骤S601至步骤S604,此处不再重复赘述。
图10示出了本申请实施例提供的承载设备的检测电路的另一种可选电路图,将根据各个部分进行说明。
在一些实施例中,本申请还提供一种检测装置,用于承载设备与电子设备之间进行连接检测,所述承载设备具有第一电连接器,所述电子设备具有第二电连接器,所述检测装置包括:
检测电路,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预 设电平信号;
控制器,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备。
所述检测装置可以应用在电子设备或承载设备中,接下来以所述检测装置在承载设备中进行说明;所述检测装置在电子设备中的原理与检测装置在承载设备中相同,不再重复赘述。若所述电子设备包括至少一个能够独立使用的设备(如TWS耳机中,左耳机和右耳机可以单独使用),所述至少一个能够独立使用的设备中均包括所述检测装置。
图10中,所述检测电路包括:第一控制引脚CTL_L、第一电阻R2、第一场效应管Q7和第二电阻R24。
所述第一场效应管Q7的栅极与所述第一控制引脚CTL_L连接;所述第一场效应管Q7的源极接地;所述第一场效应管Q7的漏极与所述第一负极J2_2(或AN3%WAEUP2)连接;所述第一电阻R2的第一端与所述第一场效应管Q7的漏极连接;所述第一电阻R2的第二端接地。
当所述第一电连接器J2与所述第二电连接器由未连接切换为连接时,所述第一负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号。
具体实施时,在电子设备与所述承载设备由未连接切换至连接的时刻,所述承载设备的第一电连接器的第一负极J2_2输出预设电平信号,所述承载设备控制所述第一控制引脚CTL_L输出高电平,所述第一场效应管Q7为导通状态;在所述电子设备与所述电子设备的未连接的情况下,所述第一控制引脚CTL_L输出低电平,所述第一场效应管Q7为截止状态,所述承载设备的第一电连接器的第一负极AN3%WAEUP2为低电平。
在一些可选实施例中,所述电路还包括第三电阻R3。
其中,所述第三电阻R3的第一端和所述第一场效应管Q7的栅极连接,所述第三电阻R3的第二端接地。所述第三电阻用于使得所述第一控制引脚输出的电压的范围在第一阈值范围内;所述第一控制引脚输出的电压在某一范围内波动,所述第三电阻用于稳定所述第一控制引脚输出的电压,使得所述第一控制引脚输出的电压的范围在第一阈值范围内;所述第一阈值范围可以根据实际需求设置。
在一些实施例中,若所述电子设备包括至少一个能够独立使用的设备(如TWS耳机中,左耳机和右耳机可以单独使用),所述承载设备的检测电路还可以包括:第二控制引脚CLR_R、第五电阻R5、第二场效应管Q8。
所述第二场效应管Q8的栅极与所述第二控制引脚CTL_R连接;所述第二场效应管Q8的源极接地;所述第二场效应管Q8的漏极与所述第二负极连接;所述第五电阻R5的第一端与所述第二场效应管Q8的漏极连接;所述第五电阻R5的第二端接地。
当所述第三电连接器J3与所述第二电连接器由未连接切换为连接时,所述第二负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号。
具体实施时,在电子设备与所述承载设备由未连接切换至连接的时刻,所述承载设备的第三电连接器J3的第二负极J3_2为高电平,所述承载设备控制所述第二控制引脚CLR_R输出高电平,所述第二场效应管Q8为导通状态,所述第三电连接器J3的第二负极J3_2输出低电平;在所述电子设备与所述承载设备未连接的情况下,所述承载设备控制所述第二控制引脚CLR_R输出低电平,所述第二场效应管Q8为截止状态,所述承载设备的第三电连接器J3的第二负极AN7&WAKEUP1为低电平。
在一些可选实施例中,所述电路还包括第六电阻R10。
其中,所述第六电阻R10的第一端和所述第二场效应管Q8的栅极连接,所述第六电阻R10的第二端接地。所述第六电阻R10用于使得所述第二控制引脚输出的电压的范围在第一阈值范围内;所述第二控制引脚输出的电压在某一范围内波动,所述第六电阻R10用于稳定所述第二控制引脚输出的电压,使得所述第二控制引脚输出的电压的范围在第一阈值范围内;所述第一阈值范围可以根据实际需求设置。
在另一些可选实施例中,所述电路还包括第四电阻R25。
其中,所述第四电阻R25的第一端和所述第二场效应管Q8的漏极连接,所述第四电阻R25的第二端和所述承载设备的第二电连接器的第二负极J3_2连接;所述第四电阻R25用于检测所述承载设备为所述电子设备充电的电流。
在一些可选实施例中,所述电路还包括:第一瞬态二极管(Transient Voltage Suppressor,TVS)D9和第二瞬态二极管D10。
其中,所述第一瞬态二极管D9的第一端与所述承载设备的第一电连接器的第一正极J2_1连接,所述第二瞬态二极管D9的第二端接地。所述第二瞬态二极管D10的第一端与所述承载设备的第一电连接器的第一负极J2_2连接,所述第二瞬态二极管D10的第二端接地。所述第一瞬态二极管D9和所述第二瞬态二极管D10用于保护所述承载设备的第一电连接器。
在另一些可选实施例中,所述电路还包括:第三瞬态二极管D6和第四瞬态二极管D7。
其中,所述第三瞬态二极管D6的第一端与所述承载设备的第三电连接器的第二正极J3_1连接,所述第三瞬态二极管D6的第二端接地。所述第二瞬态二极管D10的第一端与所述承载设备的第三电连接器的第二负极J3_2连接,所述第二瞬态二极管D10的第二端接地。所述第三瞬态二极管D6和所述第四瞬态二极管D7用于保护所述承载设备的第三电连接器。
在一些实施例中,图9所示的检测电路设置在上述步骤S101至步骤S103、步骤S201、步骤S301至步骤S303、步骤S401、步骤S501至步骤S504、步骤S601至步骤S604的电子设备或承载设备中,用于检测所述承载设备的第一电连接器或所述电子设备的第二电连接器的电平。
图11示出了本申请实施例提供的检测方法的第七种可选流程示意图,将结合图10进行说明。
以所述电子设备为图1所示的TWS耳机为例,相应地,所述承载设备为所述TWS耳机的耳机盒。在所述耳机盒的盒盖打开,且所述TWS耳机在耳机盒内的情况下,所述TWS耳机和所述耳机盒之间通过传输数据的方式检测TWS耳机是否在耳机盒内(即所述TWS耳机是否与所述耳机盒连接),包括步骤S801至步骤S803。
步骤S801,确认TWS耳机与耳机盒之间是否能够通讯。
在一些实施例中,所述耳机盒确认TWS耳机与耳机盒之间是否能够通讯。
具体实施时,所述耳机盒可以通过向所述TWS耳机发送第一数据的方式确认TWS耳机与耳机盒之间是否能够通讯。进一步,若所述耳机盒无法发出所述第一数据;或者,若所述耳机盒发出所述第一数据后没有接收到所述TWS耳机返回的第二数据,确认TWS耳机与耳机盒之间无法通讯。相应地,若所述耳机盒发出所述第一数据,并接收所述TWS耳机针对所述第一数据返回的第二数据,确认TWS耳机与耳机盒之间能够通讯。
具体实施时,所述TWS耳机可以通过接收所述耳机盒发送第一数据的方式确认TWS耳机与耳机盒之间是否能够通讯。进一步,若所述TWS耳机无法接收所述第一数据,确认TWS耳机与耳机盒之间无法通讯。相应地,若所述TWS耳机能够接收所述第一数据,确认TWS耳机与耳机盒之间能够通讯。
在另一些实施例中,所述TWS耳机确认TWS耳机与耳机盒之间是否能够通讯。
具体实施时,所述TWS耳机可以通过向所述耳机盒发送第三数据的方式确认TWS耳机与耳机盒之间是否能够通讯。进一步,若所述TWS耳机无法发出所述第三数据;或者,若所述TWS耳机发出所述第三数据后没有接收到所述耳机盒返回的第四数据,确认TWS耳机与耳机盒之间无法通讯。相应地,若所述TWS耳机发出所述第三数据,并接收所述耳机盒针对所述第三数据返回的第四数据,确认TWS耳机与耳机盒之间能够通讯。
具体实施时,所述耳机盒可以通过接收所述TWS耳机发送第三数据的方式确认TWS耳机与耳机盒之间是否能够通讯。进一步,若所述耳机盒无法接收所述第三数据,确认TWS耳机与耳机盒之间无法通讯。相应地,若所述耳机盒能够接收所述第三数据,确认TWS耳机与耳机盒之间能够通讯。
在一些实施例中,若确认TWS耳机与耳机盒之间能够通讯,执行步骤S802;若TWS耳机与耳机盒之间无法通讯,执行步骤S803。
步骤S802,耳机盒和所述TWS耳机确认彼此连接。
在一些实施例中,若确认TWS耳机与耳机盒之间能够通讯,所述耳机盒确认所述TWS耳机在所述耳机盒内部;所述TWS耳机确认所述TWS耳机在所述耳机盒内部。
步骤S803,耳机盒和所述TWS耳机确认彼此未连接。
在一些实施例中,若确认TWS耳机与耳机盒之间无法通讯,所述耳机盒确认所述TWS耳机在所述耳机盒外部;所述TWS耳机确认所述TWS耳机在所述耳机盒外部。
在一些实施例中,所述耳机盒的盒盖打开的情况下,所述耳机和所述耳机盒之间保持通讯连接,不仅可以实现耳机的出入盒检测,还可以在耳机和耳机盒之间交换其他信息。例如,交换耳机与终端设备之间的蓝牙连接状态信息,如此,耳机盒可以获知耳机与终端设备之间的蓝牙连接状态信息,进而通过指示灯展示不同的信息。例如耳机与终端设备之间的蓝牙为连接状态时,耳机盒的指示灯呼吸闪烁。可以有效地解决之前开盖状态下,耳机盒指示灯无法显示耳机蓝牙配对状态及耳机出入盒检测的问题。
在一些实施例中,所述耳机盒和所述TWS耳机确认彼此未连接的情况下,以检测电路在耳机盒中为例,所述方法还包括步骤S901。
图12示出了本申请实施例提供的检测方法的第八种可选流程示意图。
步骤S901,耳机出盒后,耳机盒控制第一控制引脚输出低电平。
下面以左耳机为例进行说明。
在一些实施例中,当左耳机出盒后,所述耳机盒控制所述第一控制引脚CTL_L输出低电平,如此,第一场效应管Q7由导通状态变为截止状态,所述耳机盒第一电连接器的第一负极J2_2通过第二电阻R24(阻值为1Ω)和第一电阻R2(阻值为1MΩ)接地。如果左耳机未放入耳机盒内,所述耳机盒的第一电连接器J2的第一正极和第一负极之间的阻抗为无穷大,相应的,所述第一电连接器的第一负极J2_2的电平为低电平。
步骤S902,确认耳机盒的第一电连接器的电平是否变为高电平。
在一些实施例中,若所述耳机盒的第一电连接器的电平仍然为低电平,执行步骤S903。
在另一些实施例中,若检测到所述耳机盒的第一电连接器的电平变为高电平,执行步骤S904。
步骤S903,耳机盒确认耳机在耳机盒外部。
在一些实施例中,所述耳机盒的第一电连接器的电平仍然为低电平,所述耳机盒认为所述耳机在盒外,重复执行步骤S902。
步骤S904,耳机盒确认耳机在盒内。
以左耳机为例,右耳机的原理同左耳机。
在一些实施例中,当所述TWS耳机出盒后,所述耳机盒中第一电连接器J2和第三电连接器J3上仍然有电(如通讯电平)。当左耳机放入耳机盒,所述左耳机与耳机盒由未连接切换至连接的时刻,第一电连接器J2的第一正极和第一负极之间的阻抗并非无穷大,第一电连接器J2的第一正极和第一负极之间的阻抗与第一电阻R2(阻值为1Ω)和第二电阻R24(阻值为1MΩ)进行分压,第一电连接器的第一负极J2_2的电平跳变为高电平,此时,耳机盒检测到第一电连接器的第一负极的电平为高电平,认为左耳机进入耳机盒,所述耳机盒控制第一控制引脚CTL_L输出高电平,如此,第一场效应管Q7由截至状态变为导通状态。
步骤S905,耳机盒向所述耳机发送第一数据。
在一些实施例中,所述耳机盒确认左耳机进入耳机盒后,所述耳机盒向所述耳机发送第一数据;所述第一数据用于告知所述耳机和耳机盒的连接状态,和/或,所述第一数据用于请求耳机发送的第二数据;所述第二数据用于表征所述耳机盒与所述耳机之间能够传输数据。
在一些可选实施例中,所述耳机盒接收所述第二数据后,所述耳机盒以第一阈值为周期向所述耳机发送第一数据。
步骤S906,耳机接收第一数据,并发送第二数据。
在一些实施例中,耳机接收所述第一数据,并基于所述第一数据向所述耳机盒发送第二数据。所述耳机能够接收所述第一数据,表征所述耳机与耳机盒之间能够传输数据。
在一些可选实施例中,所述耳机接收所述耳机盒以第一阈值为周期发送的第一数据。
如此,通过本申请实施例通过承载设备与电子设备之间的通信状态,或者所述承载设备上第一电连接器的电平,确认所述承载设备与所述电子设备的连接状态,无需额外添加高成本器件,降低了电子设备的成本;同时,通过本申请实施例,只需在承载设备上增加有限个阻容感器件,结构设计复杂度低,对电子设备的外观影响小;此外,本申请实施例相比轻触开关检测方法显著提升了检测功能的可靠性和承载设备的防护可靠性;最后,通过本申请实施例,解决了承载设备与电子设备之间通讯与电子设备与承载设备之间连接状态确认相冲突的问题。
图13示出了本申请实施例提供的电子设备的一种可选结构示意图,将根据各个部分进行说明。
以所述电子设备为耳机,相应地,承载设备为耳机盒为例。
承载设备至少包括:储电模块1001、处理器1002、电量输出模块1003、检测模块1004和第一通讯模块1005。
储电模块1001,用于存储电量以承载设备使用,通常有线性型和开关型。
处理器1002,用于系统的控制,包括控制自身充电、为电子设备充电,电子设备与承载设备之间的通讯等。
电量输出模块1003,用于为电子设备提供电量,通常是通过产生一个5V电压为所述电子设备充电。
检测模块1004,用于检测电子设备是否与承载设备连接。
第一通讯模块1005,用于实现电子设备与承载设备之间的通讯,便于电子设备与承载设备之间的信息交互,便于UI显示。
电子设备包括:第二通讯模块1006、充电模块1007、蓝牙处理器1002和音频模块1009。
第二通讯模块1006,用于实现承载设备与电子设备之间的通讯,实现交互信息。
充电模块1007,用于为电子设备充电。
蓝牙处理器1008,用于蓝牙信号的处理、充电的控制等。
音频模块1009,用于采集和输出音频信号,可以是喇叭、麦克风等。
检测模块1010,用于检测电子设备是否与承载设备连接。
所述检测模块1004或检测模块1010包括上述实施例中,图9或图10所示的电路,用于检测所述承载设备的第一电连接器的电平,所述第一电连接器的电平为高电平时,确定电子设备与承载设备连接;所述第一电连接器的电平为低电平时,确定所述电子设备与承载设备未连接。
图14示出了本申请实施例提供的检测装置的一种可选结构示意图,将根据各个部分进行说明。
在一些实施例中,所述检测装置1100包括:检测电路1101和控制器1102。
所述检测电路1101,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预设电平信号;所述预设电平信号为单脉冲信号或高电平信号。
所述检测电路1101可以是图9或图10所示的电路。
所述控制器1102,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备。
所述控制器1102,还用于检测所述承载设备与所述电子设备的通信状态;若检测到所述单脉冲信号,且所述通信状态为正常,则确定所述电子设备接入所述承载设备。
所述控制器1102,还用于控制所述承载设备向所述电子设备充电。
其中,所述检测装置可以在承载设备中,也可以在电子设备中。所述承载设备具有盖体,当所述承载设备处于开盖状态时,触发执行所述检测方法。
图15示出了本申请实施例提供的检测装置的另一种可选结构示意图,将根据各个部分进行说明。
在一些实施例中,检测装置1200包括:输出单元1201、检测单元1202和确定单元1203。
所述输出单元1201,用于当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;
所述检测单元1202,用于检测所述单脉冲信号;
所述确定单元1203,用于在所述检测单元检测到所述单脉冲信号的情况下,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
所述检测单元1202,还用于检测所述承载设备与所述电子设备的通信状态;
所述确定单元1203,还用于在检测到所述单脉冲信号且所述通信状态为正常,确定所述电子设备接入所述承载设备。
在一些实施例中,所述检测装置1200还包括:控制单元1204。
所述控制单元1204,用于控制所述承载设备向所述电子设备充电。
其中,所述检测设备可以是电子设备,也可以是承载设备。
图16是本申请实施例的电子设备或承载设备的硬件组成结构示意图,电子设备或承载设备700包括:至少一个处理器701、存储器702和至少一个网络接口704。电子设备或承载设备700 中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图16中将各种总线都标为总线系统705。
可以理解,存储器702可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。
本申请实施例中的存储器702用于存储各种类型的数据以支持电子设备700的操作。这些数据的示例包括:用于在电子设备或承载设备700上操作的任何计算机程序,如应用程序722。实现本申请实施例方法的程序可以包含在应用程序722中。
所述本申请实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,所述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。所述的处理器701可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器701可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成前述方法的步骤。
在示例性实施例中,电子设备或承载设备700可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、MPU、或其他电子元件实现,用于执行前述方法。
本申请实施例还提供了一种存储介质,用于存储计算机程序。
可选的,该存储介质可应用于本申请实施例中的第一客户端,并且该计算机程序使得计算机执行本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其 他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;
    检测所述单脉冲信号;
    若检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
  2. 根据权利要求1所述的方法,其中,所述根据所述单脉冲信号确定所述电子设备接入所述承载设备,包括:
    检测所述承载设备与所述电子设备的通信状态;
    若检测到所述单脉冲信号,且所述通信状态为正常,则确定所述电子设备接入所述承载设备。
  3. 根据权利要求1所述的方法,其中,所述根据所述单脉冲信号确定所述电子设备接入所述承载设备之后,包括:
    控制所述承载设备向所述电子设备充电。
  4. 根据权利要求1至3任一项所述的方法,其中,所述承载设备具有盖体,当所述承载设备处于开盖状态时,触发执行所述检测方法。
  5. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    所述电子设备基于与所述承载设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
  6. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    当所述电子设备的第二电连接器与所述承载设备的第一电连接器由未连接切换为连接时,所述电子设备的第二电连接器输出单脉冲信号;
    检测所述单脉冲信号;
    若所述电子设备检测到所述单脉冲信号,则根据所述单脉冲信号确定所述电子设备接入所述承载设备。
  7. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    所述承载设备基于与所述电子设备的通信状态,确定所述承载设备与所述电子设备的连接状态,所述连接状态包括连接或未连接。
  8. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    所述承载设备向所述电子设备发送第一数据;
    所述电子设备接收所述第一数据,并发送第二数据;
    若所述承载设备接收到所述第二数据,确认所述承载设备与所述电子设备连接;
    若所述承载设备未接收到所述第二数据,所述承载设备检测所述承载设备的第一电连接器的电平。
  9. 一种检测方法,用于承载设备与电子设备之间进行连接检测,所述方法包括:
    所述电子设备向承载设备发送第三数据;
    所述承载设备接收所述第三数据,并发送第四数据;
    若所述电子设备接收到所述第四数据,确认所述电子设备与所述承载设备连接;
    若所述电子设备未接收到所述第四数据,所述电子设备检测所述电子设备的第二电连接器的电平。
  10. 一种检测方法,用于TWS耳机的耳机盒与TWS耳机之间进行连接检测,所述方法包括:
    确认所述TWS耳机与所述耳机盒之间是否能够通讯;
    若确认所述TWS耳机与所述耳机盒之间能够通讯,所述耳机盒和所述TWS耳机确认彼此连接;
    若确认所述TWS耳机与所述耳机盒之间无法通讯,所述耳机盒和所述TWS耳机确认彼此 未连接。
  11. 根据权利要求10所述的方法,其中,所述耳机盒和所述TWS耳机确认彼此未连接之后,所述方法还包括:
    所述耳机出盒后,所述TWS耳机盒控制第一控制引脚输出低电平;
    确认所述耳机盒的第一电连接器的电平是否变为高电平;
    若所述耳机盒的第一电连接器的电平为低电平,所述耳机盒确认耳所述机在耳机盒外部;
    若检测到所述耳机盒的第一电连接器的电平变为高电平,所述耳机盒确认所述耳机在盒内。
  12. 一种检测装置,用于承载设备与电子设备之间进行连接检测,所述承载设备具有第一电连接器,所述电子设备具有第二电连接器,所述检测装置包括:
    检测电路,用于当所述第一电连接器与所述第二电连接器由未连接切换为连接时,输出预设电平信号;
    控制器,用于检测所述预设电平信号,并根据所述预设电平信号确定所述电子设备接入所述承载设备。
  13. 根据权利要求12所述的检测装置,其中,所述第一电连接器包括第一正极和第一负极;所述第一检测电路包括:
    第一控制引脚、第一场效应管和第一电阻;
    所述第一场效应管的栅极与所述第一控制引脚连接;所述第一场效应管的源极接地;所述第一场效应管的漏极与所述第一负极连接;所述第一电阻的第一端与所述第一场效应管的漏极连接;所述第一电阻的第二端接地;
    当所述第一电连接器与所述第二电连接器由未连接切换为连接时,所述第一负极的电压拉高,输出所述预设电平信号,所述预设电平信号为单脉冲信号或高电平信号。
  14. 根据权利要求13所述的检测装置,其中,所述第一检测电路还用于:
    当所述第一电连接器与所述第二电连接器未连接时,所述第一控制引脚输出低电平,使得所述第一场效应管截止,所述第一负极为低电平;
    当所述第一电连接器与所述第二电连接器由未连接切换为连接后,所述第一控制引脚输出高电平,使得所述第一场效应管导通,所述第一负极为低电平。
  15. 根据权利要求13或14所述的检测装置,其中,所述第一检测电路还包括:
    第二电阻;
    所述第二电阻的第一端与所述第一场效应管的漏极连接;所述第二电阻的第二端与所述第一负极连接;
    所述第二电阻用于检测所述电子设备的充电电流;
    和/或,第三电阻;
    所述第三电阻的第一端与所述第一场效应管的栅极连接;所述第三电阻的第二端接地;;
    所述第三电阻用于使得所述第一控制引脚输出的电压的范围在第一阈值范围内。
  16. 根据权利要求13所述的检测装置,其中,所述第一检测电路还包括:
    第一瞬态二极管和第二瞬态二极管;
    所述第一瞬态二极管的第一端与所述第一正极连接,所述第二瞬态二极管的第二端接地;
    所述第二瞬态二极管的第一端与所述第一负极连接,所述第二瞬态二极管的第二端接地;
    所述第一瞬态二极管和所述第二瞬态二极管用于保护所述第一电连接器。
  17. 一种检测装置,用于承载设备与电子设备之间进行连接检测,所述装置包括:
    输出单元,用于当所述承载设备的第一电连接器与所述电子设备的第二电连接器由未连接切换为连接时,输出单脉冲信号;
    检测单元,用于检测所述单脉冲信号;
    确定单元,用于在所述检测单元检测到所述单脉冲信号的情况下,根据所述单脉冲信号确定所述电子设备接入所述承载设备。
  18. 根据权利要求17所述的装置,其中,
    所述检测单元,还用于检测所述承载设备与所述电子设备的通信状态;
    所述确定单元,还用于在检测到所述单脉冲信号且所述通信状态为正常,确定所述电子设备接入所述承载设备。
  19. 一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现权利要求1至11任一项所述的检测方法。
  20. 一种承载设备,包括存储器、处理器及存储在存储器上并能够由所述处理器运行的可执行程序,所述处理器运行所述可执行程序时执行如权利要求1至11任一项所述的检测方法。
PCT/CN2021/134860 2020-12-29 2021-12-01 一种检测方法、检测装置、存储介质及承载设备 WO2022142983A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011593237.7A CN114690080A (zh) 2020-12-29 2020-12-29 一种检测方法、检测装置、存储介质及承载设备
CN202011593237.7 2020-12-29

Publications (1)

Publication Number Publication Date
WO2022142983A1 true WO2022142983A1 (zh) 2022-07-07

Family

ID=82133292

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134860 WO2022142983A1 (zh) 2020-12-29 2021-12-01 一种检测方法、检测装置、存储介质及承载设备

Country Status (2)

Country Link
CN (1) CN114690080A (zh)
WO (1) WO2022142983A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108767926A (zh) * 2018-06-22 2018-11-06 广东思派康电子科技有限公司 耳机充电系统中的充电盒、耳机、计算机存储介质和耳机上传电量的方法
CN110519672A (zh) * 2019-08-29 2019-11-29 深圳市安特信技术有限公司 基于蓝牙耳机与底座的通讯系统及方法
CN210246374U (zh) * 2019-09-23 2020-04-03 深圳市安特信技术有限公司 一种用于与蓝牙耳机通信的充电底座
CN111031443A (zh) * 2019-12-30 2020-04-17 歌尔股份有限公司 耳机的控制方法、耳机盒、耳机及存储介质
WO2020111604A1 (ko) * 2018-11-27 2020-06-04 박태수 이어폰 충전 케이스
CN111490806A (zh) * 2020-04-20 2020-08-04 歌尔科技有限公司 通信方法、耳机和耳机通信系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108767926A (zh) * 2018-06-22 2018-11-06 广东思派康电子科技有限公司 耳机充电系统中的充电盒、耳机、计算机存储介质和耳机上传电量的方法
WO2020111604A1 (ko) * 2018-11-27 2020-06-04 박태수 이어폰 충전 케이스
CN110519672A (zh) * 2019-08-29 2019-11-29 深圳市安特信技术有限公司 基于蓝牙耳机与底座的通讯系统及方法
CN210246374U (zh) * 2019-09-23 2020-04-03 深圳市安特信技术有限公司 一种用于与蓝牙耳机通信的充电底座
CN111031443A (zh) * 2019-12-30 2020-04-17 歌尔股份有限公司 耳机的控制方法、耳机盒、耳机及存储介质
CN111490806A (zh) * 2020-04-20 2020-08-04 歌尔科技有限公司 通信方法、耳机和耳机通信系统

Also Published As

Publication number Publication date
CN114690080A (zh) 2022-07-01

Similar Documents

Publication Publication Date Title
US11438962B2 (en) Method and apparatus for establishing single-line connection, and wireless headset and charging box
US9300083B2 (en) Stackable magnetically-retained connector interface
US11750963B2 (en) Communication control method, device and system, charging box and wireless earpiece
EP3389248A2 (en) Method and apparatus for easy switching between wired and wireless headset with convenient charging
KR101412679B1 (ko) 마그네틱 커넥터를 구비한 전원공급시스템
CN112449259B (zh) 耳机配对的方法和终端
EP2759035B1 (en) In-vehicle charging control device, vehicle charging system and vehicle
JP5893816B1 (ja) イヤホン及びイヤホンの自動識別切替制御を実現する方法
US11240583B1 (en) Interchangeable and rechargeable batteries for earbuds
JP6113307B2 (ja) バッテリーパック及びその充電制御方法
KR20200005053A (ko) 무선 이어폰용 보관케이스
CN103151658A (zh) 数据连接线、用于数据连接线的控制方法和装置
CN111193978A (zh) 充电盒控制方法,耳机充电盒及计算机可读存储介质
CN105956458A (zh) 终端交互控制方法和装置
CN210112248U (zh) 一种无线耳机复位电路及耳机
WO2022142983A1 (zh) 一种检测方法、检测装置、存储介质及承载设备
CN103178607B (zh) 用于为电池组充电的装置和方法
CN203279123U (zh) 一种用于移动终端的自充电无线耳机
WO2021147416A1 (zh) 充电控制方法、电子设备、充电盒和电子系统
KR20200054714A (ko) 배터리 셀의 전압을 측정하기 위한 경로를 선택하는 배터리 팩 및 전자 장치
JP3909051B2 (ja) 接続ブッシュを備えるワイヤレスヘッドホン
WO2023020322A1 (zh) 无线耳机、耳机盒及无线耳机系统
WO2017166408A1 (zh) 移动终端及移动终端的电源管理方法
JP2013223269A (ja) 充電可能な携帯装置
JP3235290U (ja) マルチドッキング・チャージャー

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913724

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913724

Country of ref document: EP

Kind code of ref document: A1