Information processing method, apparatus and device

CN115827077BActive Publication Date: 2026-10-27SHENZHEN NEOWAY TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211607998.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-14
Publication Date
2026-10-27
Estimated Expiration
2042-12-14

AI Technical Summary

Technical Problem

可见,可移动电子设备在关机状态下无法启用OTG功能

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115827077B_ABST
    Figure CN115827077B_ABST
Patent Text Reader

Abstract

The application provides an information processing method, device and equipment, and the method comprises the following steps: detecting whether a plug and play OTG device is accessed; when it is detected that the OTG device is accessed, generating a start signal and outputting the start signal to an electronic device; the start signal is used to start the electronic device in a start state; the OTG device is an external device used for data interaction with the electronic device. The embodiment of the application can generate a start signal when the OTG device is accessed, and then make the electronic device enter a start state, so that the enabling efficiency of the OTG function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an information processing method, apparatus and device. Background Technology

[0002] Plug and play (OTG) technology is mainly used for connecting various electronic devices or mobile electronic devices to exchange data.

[0003] With the development of OTG technology, portable electronic devices with OTG functionality are widely used in people's lives. Currently, the OTG function of portable electronic devices is activated when another OTG device (such as a portable hard drive or special memory card) is detected (i.e., the user inserts an OTG device). After activation, the portable electronic device can connect to other OTG devices for data exchange. However, this method requires the portable electronic device to be powered on to detect other connected OTG devices. Therefore, when the portable electronic device is powered off, after another OTG device is inserted, the user needs to power on the device using the power button to enable it. Only then can the device detect the connection and activate its OTG function to connect and exchange data. Therefore, portable electronic devices cannot activate their OTG function when powered off. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides an information processing method, apparatus, and device that can improve the efficiency of OTG function activation.

[0005] In a first aspect, embodiments of this application provide an information processing method, the method comprising: detecting whether a plug-and-play OTG device is connected; when an OTG device is detected to be connected, generating a power-on signal and outputting the power-on signal to an electronic device; the power-on signal is used to activate the electronic device to be in a powered-on state; the OTG device is an external device used to interact with the electronic device for data exchange.

[0006] As can be seen, this method can generate a power-on signal when an OTG device is connected, thereby enabling the electronic device to enter the power-on state, allowing the electronic device to interact with the OTG device, enabling the OTG function, and improving the efficiency of enabling the OTG function of the electronic device.

[0007] In one optional implementation, detecting whether a plug-and-play OTG device is connected includes: using a signal comparison module to compare a first pulse signal and a second pulse signal; if the first pulse signal and the second pulse signal are inconsistent, it is determined that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, it is determined that no OTG device is connected; wherein, the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output by the first pulse signal after passing through a universal serial bus connection module, the universal serial bus connection module being used to connect an external OTG device.

[0008] As can be seen, in this embodiment, it can be determined whether an OTG device is connected based on whether the first pulse signal and the second pulse signal are consistent.

[0009] In one optional implementation, the signal frequency of the first pulse signal is 100 MHz.

[0010] Secondly, embodiments of this application provide another information processing method, which includes: receiving a power-on signal from an information processing device, the power-on signal being used to activate an electronic device to be in a power-on state; entering the power-on state according to the power-on signal; and enabling the OTG function to perform data interaction with an external OTG device.

[0011] Thirdly, this application provides another information processing method, which includes: detecting whether a plug-and-play OTG device is connected, wherein the OTG device is an external device used to interact with electronic devices; when an OTG device is detected to be connected, generating and responding to a power-on signal and entering a power-on state; and enabling the OTG function to interact with the external OTG device.

[0012] In one optional implementation, detecting whether a plug-and-play OTG device is connected includes: using a signal comparison module to compare a first pulse signal and a second pulse signal, wherein the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output from the first pulse signal after passing through a universal serial bus connection module, the universal serial bus connection module being used to connect an external OTG device; if the first pulse signal and the second pulse signal are inconsistent, it is determined that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, it is determined that no OTG device is connected.

[0013] As can be seen, in this embodiment, it can be determined whether an OTG device is connected based on whether the first pulse signal and the second pulse signal are consistent.

[0014] Fourthly, embodiments of this application provide a communication system, which includes: an information processing device, an electronic device, and an OTG device; the OTG device is an external device for data interaction with the electronic device; the information processing device generates a power-on signal when the OTG device is accessed and outputs the power-on signal to the electronic device; the electronic device receives the power-on signal from the information processing device; the electronic device enters a power-on state based on the power-on signal; and enables the OTG function to interact with the OTG device.

[0015] In one optional implementation, before generating a power-on signal when an OTG device is connected, the information processing device is further configured to: detect whether an OTG device is connected.

[0016] In one optional implementation, the information processing device detects whether the OTG device is connected, specifically by: the information processing device using a signal comparison module to compare a first pulse signal and a second pulse signal, wherein the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module, the universal serial bus connection module being used to connect an external OTG device; if the first pulse signal and the second pulse signal are inconsistent, the information processing device determines that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, the information processing device determines that no OTG device is connected.

[0017] Fifthly, this application provides a communication system, which includes: an electronic device and an OTG device; the OTG device is an external device used for data interaction with the electronic device; when the electronic device is connected to the OTG device, it enters a power-on state; the electronic device enables the OTG function and interacts with the OTG device.

[0018] In one optional implementation, before entering the power-on state, when the electronic device is connected to an OTG device, the electronic device is also used to: detect whether an OTG device is connected.

[0019] In one optional implementation, the electronic device detects whether an OTG device is connected, specifically by: the electronic device using a signal comparison module to compare a first pulse signal and a second pulse signal, wherein the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module, the universal serial bus connection module being used to connect an external OTG device; if the first pulse signal and the second pulse signal are inconsistent, the electronic device determines that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, the electronic device determines that no OTG device is connected.

[0020] Sixthly, embodiments of this application provide an information processing device, comprising: a power supply module, a pulse signal generation module, a signal comparison module, and a universal serial bus (USB) connection module; the output interface of the power supply module is connected to the power interface of the pulse signal generation module and the power interface of the signal comparison module, respectively; the output interface of the pulse signal generation module is connected to the positive input interface of the signal comparison module; the output interface of the pulse signal generation module is also connected to the power pin of the USB connection module; the power pin of the USB connection module is also connected to the negative input interface of the signal comparison module; wherein, the power supply module provides power to the pulse signal generation module and the signal comparison module; the pulse signal generation module generates a first pulse signal and inputs it to the USB connection module and the signal comparison module; the USB connection module is used to connect an external OTG device; the OTG device is an external device used for data interaction with an electronic device; the signal comparison module compares the first pulse signal and the second pulse signal; if the first pulse signal and the second pulse signal are inconsistent, the signal comparison module generates a power-on signal and outputs the power-on signal to the electronic device, wherein the second pulse signal is the pulse signal output after the first pulse signal passes through the USB connection module.

[0021] In one optional embodiment, the device further includes a Schottky diode, the anode of which is connected to the output interface of the pulse signal generation module, and the cathode of which is connected to the power supply pin of the Universal Serial Bus (USB) connection module. The Schottky diode is used to maintain the unidirectionality of the current between the pulse signal generation module and the USB connection module.

[0022] In one optional implementation, the signal frequency of the first pulse signal is 100 MHz.

[0023] In a seventh aspect, embodiments of this application provide a computer device, including: a processor, a communication interface, and a memory, wherein the processor, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is used to call the executable program code to execute the method provided in embodiments of this application.

[0024] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, implement the method provided in embodiments of this application.

[0025] Accordingly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal device to perform the method provided in embodiments of this application. Attached Figure Description

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

[0027] Figure 1 This is a flowchart illustrating an information processing method provided in an embodiment of this application;

[0028] Figure 2 This is a flowchart illustrating another information processing method provided in an embodiment of this application;

[0029] Figure 3 This is a schematic diagram of the structure of a communication system 100 provided in an embodiment of this application;

[0030] Figure 4 This is a schematic diagram of the structure of a communication system 200 provided in an embodiment of this application;

[0031] Figure 5 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of an information processing scheme provided in an embodiment of this application;

[0033] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

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

[0035] With the development of OTG technology, portable electronic devices with OTG functionality are widely used in people's lives. Currently, the OTG function of portable electronic devices is activated when another OTG device (such as a portable hard drive or special memory card) is detected (i.e., the user inserts an OTG device). After activation, the portable electronic device can connect to other OTG devices for data exchange. However, this method requires the portable electronic device to be powered on to detect other connected OTG devices. Therefore, when the portable electronic device is powered off, after another OTG device is inserted, the user needs to power on the device using the power button to enable it. Only then can the device detect the connection and activate its OTG function to connect and exchange data. Therefore, portable electronic devices cannot activate their OTG function when powered off.

[0036] This application provides an information processing method, which includes: detecting whether a plug-and-play OTG device is connected; when an OTG device is detected, generating a power-on signal and outputting the power-on signal to an electronic device; the power-on signal is used to activate the electronic device to be in a powered-on state; the OTG device is an external device used to interact with the electronic device.

[0037] As can be seen, this method can generate a power-on signal when an OTG device is connected, thereby enabling the electronic device to enter the power-on state, which in turn enables the electronic device to interact with the OTG device, activate the OTG function, and improve the efficiency of activating the OTG function of the electronic device.

[0038] To facilitate understanding of the embodiments of this application, the specific implementation of the above information processing method will be described in detail below.

[0039] Please see Figure 1 , Figure 1 This is a flowchart illustrating an information processing method provided in an embodiment of this application. Figure 1 As shown, this information processing method may include, but is not limited to, the following steps:

[0040] S101. The information processing device detects whether a plug-and-play OTG device is connected.

[0041] Among them, OTG devices are external devices used to interact with electronic devices, such as external hard drives, memory cards and other storage devices.

[0042] In one optional implementation, the information processing device detects whether a plug-and-play OTG device is connected by: the information processing device using a signal comparison module to compare a first pulse signal and a second pulse signal; the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus (USB) connection module, which is used to connect an external OTG device; if the first pulse signal and the second pulse signal are inconsistent, the information processing device determines that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, the information processing device determines that no OTG device is connected.

[0043] The comparison of the first pulse signal and the second pulse signal is achieved by comparing the waveforms of the first pulse signal and the second pulse signal. If the waveforms of the first pulse signal and the second pulse signal are inconsistent, it is determined that the first pulse signal and the second pulse signal are inconsistent; or, if the waveforms of the first pulse signal and the second pulse signal are consistent, it is determined that the first pulse signal and the second pulse signal are consistent.

[0044] It should be noted that the second pulse signal is the pulse signal output after the first pulse signal passes through the Universal Serial Bus (USB) connection module. When the first pulse signal is not affected by the USB connection module, the output second pulse signal is consistent with the first pulse signal; when the first pulse signal is affected by the USB connection module, the output second pulse signal is inconsistent with the first pulse signal.

[0045] The reason why the first pulse signal is not affected by the Universal Serial Bus (USB) connection module is that when no OTG device is connected to the USB connection module, the power supply pin of the USB connection module is floating, that is, there is no impedance between the power supply pin and ground. Therefore, the first pulse signal is not affected by the USB connection module, and the first pulse signal and the second pulse signal are consistent.

[0046] The reason why the first pulse signal is affected by the Universal Serial Bus (USB) connection module is that when the USB connection module is connected to an OTG device, the power supply pin of the USB connection module is not floating, that is, the power supply pin has impedance to ground. This impedance will affect the first pulse signal passing through the USB connection module, causing the first pulse signal and the second pulse signal to be inconsistent.

[0047] Optionally, the first pulse signal is generated by the pulse signal generation module, and the second pulse signal is the pulse signal output after the first pulse signal passes through the Schottky diode and then through the universal serial bus connection module.

[0048] The Schottky diode is used to maintain the unidirectional current direction between the pulse signal generation module and the universal serial bus connection module (the current direction is from the pulse signal generation module to the universal serial bus connection module), and the Schottky diode does not affect the first pulse signal.

[0049] In one optional implementation, the signal frequency of the first pulse signal is 100 MHz.

[0050] The signal frequency of the first pulse signal needs to meet the following requirements:

[0051] Requirement 1: The information processing device needs to maintain electromagnetic compatibility (EMC) with the electronic equipment, which requires the first pulse signal to be a weak signal.

[0052] Requirement 2: The power consumption of the information processing device needs to be kept low, which in turn requires the first pulse signal to be a weak signal.

[0053] Requirement 3: The first pulse signal needs to have minimal impact on the DC power supply ripple of the power supply pin of the universal serial bus connection module, thus requiring the first pulse signal to be a weak signal.

[0054] Based on requirements 1, 2, and 3, the signal frequency of the first pulse signal is set to 100 MHz to meet the requirement that the first pulse signal is a weak signal.

[0055] S102. When the information processing device detects that an OTG device has been connected, it generates a power-on signal.

[0056] The power-on signal is used to activate electronic devices and put them into the power-on state.

[0057] S103. The information processing device outputs a power-on signal to the electronic device.

[0058] Correspondingly, the electronic device receives a power-on signal from the information processing device; the electronic device enters the power-on state according to the power-on signal; the electronic device enables the OTG function and interacts with the external OTG device for data exchange.

[0059] For example, an OTG device is a portable hard drive. When an electronic device enables the OTG function, it can store its own data (such as files, photos, videos, etc.) into the portable hard drive, and can also read data (such as files, photos, videos, etc.) from the portable hard drive into its own storage or directly use the data (such as files, photos, videos, etc.) on the portable hard drive.

[0060] As can be seen, in this method, the information processing device can generate a power-on signal when the OTG device is connected, thereby enabling the electronic device to enter the power-on state, which allows the electronic device to interact with the OTG device and enable the OTG function. This avoids the need to turn on the electronic device by pressing the power button or to charge the electronic device with an adapter before connecting the OTG device, thus improving the efficiency of enabling the OTG function of the electronic device and enhancing the user experience.

[0061] Please see Figure 2 , Figure 2 This is a flowchart illustrating another information processing method provided in an embodiment of this application. For example... Figure 2 As shown, this information processing method may include, but is not limited to, the following steps:

[0062] S201. Electronic device detection: Is there a plug-and-play OTG device connected?

[0063] Among them, OTG devices are external devices used to interact with electronic devices, such as external hard drives, memory cards and other storage devices.

[0064] In one optional implementation, the electronic device detects whether a plug-and-play OTG device is connected, including: the electronic device using a signal comparison module to compare a first pulse signal and a second pulse signal, wherein the first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output by the first pulse signal after passing through a universal serial bus connection module, the universal serial bus connection module being used to connect an external OTG device; if the first pulse signal and the second pulse signal are inconsistent, the electronic device determines that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, the electronic device determines that no OTG device is connected.

[0065] Optionally, for information on detecting whether an electronic device has a plug-and-play OTG device connected, please refer to [link / reference needed]. Figure 1 The difference between step S101 in the method shown is that the subject of this method is an electronic device. Figure 1 The method shown is executed by an information processing device.

[0066] S202. When the electronic device detects that an OTG device is connected, it generates and responds to a power-on signal and enters the power-on state.

[0067] For example, when an OTG device is connected to an electronic device via a USB connector, the electronic device generates and responds to a power-on signal, and the electronic device enters the power-on state.

[0068] As can be seen, in this method, the electronic device can generate and respond to a power-on signal and enter the power-on state when connected to the OTG device; this avoids the need to activate the electronic device by pressing the power button, or to charge and activate the electronic device through the adapter before connecting the OTG device to the electronic device, thus improving the user experience.

[0069] S203. The electronic device enables the OTG function and interacts with an external OTG device.

[0070] In this embodiment of the application, the electronic device automatically enters the power-on state when an OTG device is connected. Therefore, after the electronic device enters the power-on state, it will enable the OTG function and perform data interaction with the external OTG device.

[0071] As can be seen, in this method, the information processing device can generate a power-on signal when the OTG device is connected, thereby enabling the electronic device to enter the power-on state, which allows the electronic device to interact with the OTG device and enable the OTG function. This avoids the need to turn on the electronic device by pressing the power button or to charge the electronic device with an adapter before connecting the OTG device, thus improving the efficiency of enabling the OTG function of the electronic device and enhancing the user experience.

[0072] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a communication system 100 provided in an embodiment of this application, as shown below. Figure 3 As shown, the communication system 100 includes an information processing device 301, an electronic device 302, and an OTG device 303. The information processing device 301 is electrically connected to the electronic device 302, and the information processing device 301 is connected to the OTG device 303 via a universal serial bus.

[0073] Among them, OTG device 303 is an external device used to interact with electronic devices, such as storage devices such as portable hard drives and memory cards.

[0074] The information processing device 301 is used to generate a power-on signal when the OTG device 303 is connected, and to output the power-on signal to the electronic device 302.

[0075] Electronic device 302 receives a power-on signal from information processing device 301; based on the power-on signal, electronic device 302 enters the power-on state; and enables OTG function to interact with OTG device for data exchange. Electronic device 302 can be a smartphone, tablet computer, laptop computer, desktop computer, smartwatch, smart vehicle terminal, etc., but is not limited to these.

[0076] In one optional implementation, before generating a power-on signal when the OTG device 303 is connected, the information processing device 301 is further configured to: detect whether an OTG device is connected.

[0077] In one optional implementation, the information processing device 301 detects whether an OTG device 303 is connected. Specifically, the information processing device 301 uses a signal comparison module to compare a first pulse signal and a second pulse signal. The first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect an external OTG device 303. If the first pulse signal and the second pulse signal are inconsistent, the information processing device 301 determines that an OTG device 303 is connected; or, if the first pulse signal and the second pulse signal are consistent, the information processing device 301 determines that no OTG device 303 is connected.

[0078] Optionally, the relevant information regarding the information processing device 301 determining whether an OTG device 303 is connected can be found in [link to relevant documentation]. Figure 1 The details of step S101 in the method shown will not be elaborated here.

[0079] As can be seen, in this communication system 100, the information processing device can generate a power-on signal when the OTG device is connected, thereby enabling the electronic device to enter the power-on state, thus enabling the electronic device to interact with the OTG device and activate the OTG function. This avoids the need to activate the electronic device by pressing the power button or charging the electronic device with an adapter before connecting the OTG device, thereby improving the efficiency of activating the OTG function of the electronic device and enhancing the user experience.

[0080] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a communication system 200 provided in an embodiment of this application, as shown below. Figure 4 As shown, the communication system 200 includes an electronic device 401 and an OTG device 402. The electronic device 401 is connected to the OTG device 402 via a universal serial bus.

[0081] Among them, OTG device 402 is an external device used to interact with electronic devices, such as storage devices such as portable hard drives and memory cards.

[0082] When electronic device 401 is connected to OTG device 402, it enters the power-on state; electronic device 401 enables OTG function and interacts with OTG device 402 for data exchange. Electronic device 401 can be a smartphone, tablet, laptop, desktop computer, smartwatch, smart vehicle terminal, etc., but is not limited to these.

[0083] In one optional implementation, when the electronic device 401 is connected to the OTG device 402, before entering the power-on state, the electronic device 401 is also used to: detect whether the OTG device 402 is connected.

[0084] In one optional implementation, the electronic device 401 detects whether an OTG device 402 is connected. Specifically, the electronic device 401 uses a signal comparison module to compare a first pulse signal and a second pulse signal. The first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect an external OTG device 402. If the first pulse signal and the second pulse signal are inconsistent, the electronic device 401 determines that an OTG device 402 is connected; or, if the first pulse signal and the second pulse signal are consistent, the electronic device 401 determines that no OTG device 402 is connected.

[0085] Optionally, for information regarding electronic device 401 detecting whether an OTG device 402 is connected, please refer to [link / reference needed]. Figure 1 The difference between step S101 in the method shown is that the execution subject in this embodiment is an electronic device. Figure 1 The method shown is executed by an information processing device.

[0086] As can be seen, in this communication system 200, the electronic device can enter the power-on state when connected to the OTG device, thereby enabling the electronic device to interact with the OTG device and enable the OTG function. This avoids the need to turn on the electronic device by pressing the power button or to charge the electronic device with an adapter before connecting the OTG device, thus improving the efficiency of enabling the OTG function and enhancing the user experience.

[0087] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application. This device can be installed in an electronic device, specifically a terminal device capable of enabling OTG functionality. The terminal device can be at least one of a mobile phone, tablet computer, or laptop computer. Figure 5 As shown, the device includes at least a power supply module 501, a pulse signal generation module 502, a universal serial bus connection module 503, and a signal comparison module 504, such as... Figure 5 As shown, the specific uses of each module are as follows:

[0088] The output interface of the power module 501 is connected to the power interface of the pulse signal generation module 502 and the power interface of the signal comparison module 504, respectively. The output interface of the pulse signal generation module 502 is connected to the positive input interface of the signal comparison module 504. The output interface of the pulse signal generation module 502 is also connected to the power pin of the universal serial bus connection module 503. The power pin of the universal serial bus connection module 503 is also connected to the negative input interface of the signal comparison module 504.

[0089] Among them, the power supply module 501 is used to provide power to the pulse signal generation module 502 and the signal comparison module 504;

[0090] Pulse signal generation module 502 is used to generate a first pulse signal (e.g. Figure 5 Signal 1) in the signal is input to the universal serial bus connection module 503 and the signal comparison module 504;

[0091] The Universal Serial Bus (USB) connection module 503 is used to connect an external OTG device, which is an external device used to interact with electronic devices.

[0092] Signal comparison module 504 is used to compare the first pulse signal and the second pulse signal (e.g., Figure 5 Signal 2); If the first pulse signal and the second pulse signal are inconsistent, the signal comparison module 504 generates a power-on signal and outputs the power-on signal to the electronic device. The second pulse signal is the pulse signal output after the first pulse signal passes through the universal serial bus connection module 503.

[0093] Optionally, the device also includes a Schottky diode 505. The anode of the Schottky diode 505 is connected to the output interface of the pulse signal generation module 502, and the cathode of the Schottky diode 505 is connected to the power supply pin of the universal serial bus connection module 503. The Schottky diode 505 is used to maintain the unidirectionality of the current between the pulse signal generation module 502 and the universal serial bus connection module 503. Because the anode of the Schottky diode 505 is connected to the output interface of the pulse signal generation module 502, and the cathode of the Schottky diode 505 is connected to the power supply pin of the universal serial bus connection module 503, the current direction between the pulse signal generation module 502 and the universal serial bus connection module 503 is from the pulse signal generation module 502 to the universal serial bus connection module 503. If current attempts to flow from the universal serial bus connection module 503 to the pulse signal generation module 502, the Schottky diode 505 will cut off the current, preventing it from flowing and ensuring circuit safety.

[0094] It should be noted that the second pulse signal is the pulse signal output after the first pulse signal passes through the universal serial bus connection module 503. When the first pulse signal is not affected by the universal serial bus connection module 503, the output second pulse signal is consistent with the first pulse signal; when the first pulse signal is affected by the universal serial bus connection module 503, the output second pulse signal is inconsistent with the first pulse signal.

[0095] The reason why the first pulse signal and the second pulse signal are inconsistent is as follows: When the Universal Serial Bus (USB) connection module 503 is not connected to any OTG device, the power supply pin of the USB connection module 503 is floating, that is, the power supply pin has no impedance to ground. Therefore, the first pulse signal passing through the USB connection module 503 is not affected, and thus the first pulse signal and the second pulse signal are consistent. When an OTG device is connected to the USB connection module 503, the power supply pin of the USB connection module 503 is not floating, that is, the power supply pin has impedance to ground. This impedance will affect the first pulse signal passing through the USB connection module 503, causing the first pulse signal and the second pulse signal to be inconsistent.

[0096] In one optional implementation, the signal frequency of the first pulse signal is 100 MHz.

[0097] The signal frequency of the first pulse signal needs to meet the following requirements:

[0098] Requirement 1: The information processing device needs to maintain electromagnetic compatibility (EMC) with the electronic equipment, which requires the first pulse signal to be a weak signal.

[0099] Requirement 2: The power consumption of the information processing device needs to be kept low, which in turn requires the first pulse signal to be a weak signal.

[0100] Requirement 3: The first pulse signal needs to have minimal impact on the DC power supply ripple of the power supply pin of the universal serial bus connection module, thus requiring the first pulse signal to be a weak signal.

[0101] Based on requirements 1, 2, and 3, the signal frequency of the first pulse signal is set to 100 MHz to meet the requirement that the first pulse signal is a weak signal.

[0102] For example, taking a power module as a battery, a pulse signal generation module as a pulse signal generator, a signal comparison module as a signal comparator, and a universal serial bus connection module as a universal serial bus connector plus a Schottky diode, please refer to [link to relevant documentation]. Figure 6 , Figure 6This is a schematic diagram of an information processing scheme provided in an embodiment of this application. For example... Figure 6 As shown, the battery provides power to the pulse signal generator and the signal comparator. The pulse signal generator outputs a first pulse signal of 100 MHz (e.g., ...). Figure 6 Signal 1) in the signal comparator directly inputs the first pulse signal to the positive input interface of the signal comparator, and outputs the second pulse signal (e.g., after passing the first pulse signal through the Schottky diode and the power supply pin of the universal serial bus connector) Figure 6 Signal 2); When an OTG device is connected to the Universal Serial Bus (USB) connector, the power pin of the USB connector is not floating, meaning the power pin has impedance to ground. This impedance affects the first pulse signal passing through the USB connector, causing the first and second pulse signals to be inconsistent. Alternatively, when no OTG device is connected to the USB connector, the power pin is floating, meaning there is no impedance to ground. Therefore, the first pulse signal passing through the USB connector is unaffected, and the first and second pulse signals are consistent. The USB connector is also connected to the negative input interface of a signal comparator through its power pin. The second pulse signal is input to the negative input interface of the signal comparator through the power pin of the USB connector. The signal comparator compares the first and second pulse signals. When the first and second pulse signals are inconsistent, the signal comparator generates a power-on signal. This power-on signal is understood to be input to the electronic device. For example, the output interface of the signal comparator is connected to the power-on signal interface of the electronic device. The signal comparator inputs the power-on signal to the power-on signal interface of the electronic device, and the electronic device enters the power-on state based on the power-on signal.

[0103] As can be seen, this device can automatically detect whether an OTG device is connected. When an OTG device is connected, it generates a power-on signal and inputs the power-on signal to the electronic device, enabling the electronic device to enter the power-on state. This reduces the need for users to use the power button to power on the electronic device, thereby improving the user experience.

[0104] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device described in this embodiment includes: a processor 701, a communication interface 702, and a memory 703. The processor 701, communication interface 702, and memory 703 can be connected via a bus or other means; this embodiment uses a bus connection as an example.

[0105] The processor 701 (or CPU) is the computing and control core of the electronic device. It can parse various instructions and process various data within the electronic device. For example, the CPU can parse power-on / off commands sent by an object to the electronic device and control the device to perform power-on / off operations. Furthermore, the CPU can transmit various interactive data between internal structures of the electronic device, and so on. The communication interface 702 may optionally include standard wired interfaces or wireless interfaces (such as Wireless Fidelity (Wi-Fi), mobile communication interfaces, etc.), and is controlled by the processor 701 for sending and receiving data. The memory 703 is a storage device in the electronic device used to store programs and data. It is understood that the memory 703 here can include the built-in memory of the electronic device, or it can include extended memory supported by the electronic device. The memory 703 provides storage space for the operating system of the electronic device, which may include, but is not limited to, Android systems, Windows Phone systems, etc., and this application does not limit this.

[0106] In one alternative implementation, the computer device may be an information processing apparatus as described in the above-described method embodiments.

[0107] The processor 701 can be used to execute computer programs or commands stored in the memory 703, so that the computer device can perform:

[0108] It detects whether a plug-and-play OTG device is connected; when an OTG device is detected, it generates a power-on signal and outputs the power-on signal to the electronic device; this power-on signal is used to start the electronic device into the power-on state; an OTG device is an external device used to interact with electronic devices.

[0109] Optionally, the computer equipment detects whether a plug-and-play OTG device is connected. Specifically, it uses a signal comparison module to compare a first pulse signal and a second pulse signal. The first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect external OTG devices. If the first pulse signal and the second pulse signal are inconsistent, it is determined that an OTG device is connected; or, if the first pulse signal and the second pulse signal are consistent, it is determined that no OTG device is connected.

[0110] Optionally, the signal frequency of the first pulse signal is 100 MHz.

[0111] In specific implementation, the processor 701, communication interface 702, and memory 703 described in the embodiments of this application can execute the functions provided in the embodiments of this application. Figure 1The computer device implementation described in the information processing method shown can also be implemented in the information processing apparatus provided in the embodiments of this application, and will not be repeated here.

[0112] In one alternative implementation, the computer device may be an information processing apparatus as described in the above-described method embodiments.

[0113] The processor 701 can be used to execute computer programs or commands stored in the memory 703, so that the computer device can perform:

[0114] Receives a power-on signal from the information processing device, which is used to activate the electronic device to power on; enters the power-on state according to the power-on signal; enables the OTG function and performs data interaction with external OTG devices.

[0115] In specific implementation, the processor 701, communication interface 702, and memory 703 described in the embodiments of this application can execute the functions provided in the embodiments of this application. Figure 1 The implementation of the computer device described in the information processing method shown will not be repeated here.

[0116] In an optional implementation, the computer device may be an information processing apparatus as described in the above-described method embodiments. The processor 701 may execute computer programs or commands stored in the memory 703 to cause the computer device to perform: detecting whether a plug-and-play OTG device is connected, whereby an OTG device is an external device used for data interaction with an electronic device; generating and responding to a power-on signal when an OTG device is detected, and entering a power-on state; and enabling the OTG function to interact with the external OTG device.

[0117] In specific implementation, the processor 701, communication interface 702, and memory 703 described in the embodiments of this application can execute the functions provided in the embodiments of this application. Figure 2 The implementation of the computer device described in the information processing method shown will not be repeated here.

[0118] This application also provides a computer-readable storage medium storing a computer program, which includes program instructions. When the program instructions are executed by a processor, they implement the information processing method provided in this application. For details, please refer to the implementation methods provided in the above steps, which will not be repeated here.

[0119] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the information processing method provided in this application. Specific implementation details can be found in the foregoing description and will not be repeated here.

[0120] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0121] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0122] The above-disclosed embodiments are only some of the embodiments of this application, and should not be construed as limiting the scope of this application. Therefore, any equivalent changes made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. An information processing method, characterized in that, The method includes: Check if a plug-and-play OTG device is connected; When an OTG device is detected to be connected, a power-on signal is generated and output to the electronic device; the power-on signal is used to start the electronic device so that the electronic device responds to the power-on signal and is in a powered-on state; the OTG device is an external device used to interact with the electronic device. The detection of whether a plug-and-play OTG device is connected includes: The waveforms of a first pulse signal and a second pulse signal are compared using a signal comparison module. The first pulse signal is generated by a pulse signal generation module, and the second pulse signal is output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect the OTG device externally. If the waveforms of the first pulse signal and the second pulse signal are inconsistent, it is determined that the OTG device has been connected; or, If the waveforms of the first pulse signal and the second pulse signal are identical, it is determined that no OTG device has been connected.

2. The method according to claim 1, characterized in that, The signal frequency of the first pulse signal is 100 MHz.

3. An information processing method, characterized in that, The method includes: Receive a power-on signal from an information processing device, the power-on signal being used to start the electronic device so that the electronic device is in a powered-on state in response to the power-on signal; Upon receiving the power-on signal, the device enters the power-on state. Enable OTG functionality to interact with external OTG devices; The power-on signal is generated by the information processing device when it determines that the waveforms of the first pulse signal and the second pulse signal are inconsistent by comparing the waveforms of the first pulse signal and the second pulse signal. The first pulse signal is generated by the pulse signal generation module of the information processing device, and the second pulse signal is the pulse signal output after the first pulse signal passes through the universal serial bus connection module. The universal serial bus connection module is used to connect the OTG device externally.

4. An information processing method, characterized in that, The method includes: Detect whether a plug-and-play OTG device is connected, wherein the OTG device is an external device used to interact with electronic devices; When an OTG device is detected to be connected, a power-on signal is generated and responded to, and the device enters the power-on state. Enable OTG functionality to interact with external OTG devices; The detection of whether a plug-and-play OTG device is connected includes: The waveforms of a first pulse signal and a second pulse signal are compared using a signal comparison module. The first pulse signal is generated by a pulse signal generation module, and the second pulse signal is output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect the OTG device externally. If the waveforms of the first pulse signal and the second pulse signal are inconsistent, it is determined that the OTG device has been connected; or, If the waveforms of the first pulse signal and the second pulse signal are identical, it is determined that no OTG device has been connected.

5. A communication system, characterized in that, The system includes: Information processing devices, electronic devices, and plug-and-play OTG devices; The OTG device is an external device used to interact with the electronic device. The information processing device is used to generate a power-on signal when the OTG device is connected, and to output the power-on signal to the electronic device. The electronic device receives a power-on signal from the information processing device; The electronic device enters the power-on state based on the power-on signal; and enables the OTG function to interact with the OTG device for data exchange. Before generating a power-on signal when the information processing device is connected to the OTG device, the information processing device is further configured to: Detect whether the aforementioned OTG device is connected; Specifically, the information processing device detects whether the OTG device is connected, and is used for: The information processing device uses a signal comparison module to compare the waveforms of a first pulse signal and a second pulse signal. The first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect the OTG device externally. If the waveforms of the first pulse signal and the second pulse signal are inconsistent, the information processing device determines that the OTG device has been connected; or, If the waveforms of the first pulse signal and the second pulse signal are consistent, the information processing device determines that no OTG device has been connected.

6. A communication system, characterized in that, The system includes: Electronic devices and plug-and-play OTG devices; The OTG device is an external device used to interact with the electronic device. When the electronic device is connected to the OTG device, it enters the power-on state; The electronic device enables the OTG function and interacts with the OTG device for data exchange; When the electronic device is connected to the OTG device, before entering the power-on state, the electronic device is also used for: Detect whether the aforementioned OTG device is connected; Specifically, the electronic device detects whether the OTG device is connected, and is used for: The electronic device uses a signal comparison module to compare the waveforms of a first pulse signal and a second pulse signal. The first pulse signal is a pulse signal generated by a pulse signal generation module, and the second pulse signal is a pulse signal output after the first pulse signal passes through a universal serial bus connection module. The universal serial bus connection module is used to connect the OTG device externally. If the waveforms of the first pulse signal and the second pulse signal are inconsistent, the electronic device determines that the OTG device is connected; or, If the waveforms of the first pulse signal and the second pulse signal are identical, then the electronic device determines that no OTG device is connected.

7. An information processing device, characterized in that, The device includes: Power supply module, pulse signal generation module, signal comparison module, and universal serial bus connection module; The output interface of the power module is connected to the power interface of the pulse signal generation module and the power interface of the signal comparison module, respectively. The output interface of the pulse signal generation module is connected to the positive input interface of the signal comparison module. The output interface of the pulse signal generation module is also connected to the power pin of the universal serial bus connection module. The power pin of the universal serial bus connection module is also connected to the negative input interface of the signal comparison module. The power supply module is used to provide power to the pulse signal generation module and the signal comparison module. The pulse signal generating module is used to generate a first pulse signal and input it to the universal serial bus connection module and the signal comparison module; The universal serial bus connection module is used to connect an external OTG device; the OTG device is an external device used to interact with electronic devices. The signal comparison module is used to compare the waveforms of the first pulse signal and the second pulse signal; if the waveforms of the first pulse signal and the second pulse signal are inconsistent, the signal comparison module generates a power-on signal and outputs the power-on signal to the electronic device, wherein the second pulse signal is the pulse signal output after the first pulse signal passes through the universal serial bus connection module.

8. The apparatus according to claim 7, characterized in that, The device also includes a Schottky diode, the anode of which is connected to the output interface of the pulse signal generation module, and the cathode of which is connected to the power supply pin of the universal serial bus connection module. The Schottky diode is used to maintain the unidirectionality of the current between the pulse signal generation module and the universal serial bus connection module.

9. The apparatus according to claim 8, characterized in that, The signal frequency of the first pulse signal is 100 MHz.

10. A computer device, characterized in that, include: The processor, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is used to call the executable program code to perform the method as described in any one of claims 1 to 2, or to perform the method as described in claim 3, or to perform the method as described in claim 4.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 2, or to perform the method as described in claim 3, or to perform the method as described in claim 4.

Citation Information

Patent Citations

  • Starting method and device for terminal equipment, equipment and storage medium

    CN107784218A

  • OTG charging and power-taking automatic identification adapter

    CN212114844U