WO2026016901A1 - 协议识别的方法、装置、电子设备、存储介质及程序产品 - Google Patents
协议识别的方法、装置、电子设备、存储介质及程序产品Info
- Publication number
- WO2026016901A1 WO2026016901A1 PCT/CN2025/106649 CN2025106649W WO2026016901A1 WO 2026016901 A1 WO2026016901 A1 WO 2026016901A1 CN 2025106649 W CN2025106649 W CN 2025106649W WO 2026016901 A1 WO2026016901 A1 WO 2026016901A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- parameter
- target
- charging protocol
- protocol
- electrical signal
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J50/00—Circuit arrangements or systems for wireless supply or distribution of electric power
- H02J50/80—Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/40—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
- H02J7/42—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data with electronic devices having internal batteries, e.g. mobile phones
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
- H02J7/90—Regulation of charging or discharging current or voltage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Definitions
- This application relates to the field of communication technology, specifically to a method, apparatus, electronic device, storage medium, and program product for protocol identification.
- devices to be charged can typically be wirelessly charged using wireless charging devices (such as wireless charging docks).
- the principle behind wireless charging technology is similar to that of a transformer, based on the physical phenomenon of "electricity generating magnetism, and magnetism generating electricity.”
- This technology involves two coils: one in the wireless charging device acts as a transmitter, and the other in the device being charged acts as a receiver. When the transmitter coil is energized, it generates a changing magnetic field, which in turn induces an electrical signal in the receiver coil, thus enabling wireless energy transfer.
- the device to be charged When wirelessly charging, the device to be charged typically needs to first determine the charging protocol with the wireless charging device, and then wirelessly charge using that protocol to enter a high-power charging state.
- the purpose of this application is to provide a method, apparatus, electronic device, storage medium, and program product for protocol identification, so as to quickly and accurately identify the charging protocol during wireless charging.
- this application provides a method for protocol identification, the method including:
- the parameter value sequence of the target signal parameter of the electrical signal is obtained
- the target charging protocol is determined based on the number of categories of target parameter values that meet the set filtering conditions in the parameter value sequence, or based on the parameter code generated based on the parameter value sequence.
- the target signal parameters include at least one of the following: frequency and voltage.
- determining the corresponding target charging protocol based on the number of categories of target parameter values in the parameter value sequence that meet set filtering conditions includes:
- the charging protocol corresponding to the number of categories is determined as the target charging protocol.
- the charging protocol corresponding to the number of categories is determined as the target charging protocol, including:
- the target charging protocol is determined to be the first charging protocol; otherwise, the target charging protocol is determined to be the second charging protocol.
- determining the corresponding target charging protocol based on the parameter code generated from the parameter value sequence includes:
- the parameter encoding corresponding to the parameter value sequence is obtained;
- the charging protocol corresponding to the parameter encoding is determined as the target charging protocol.
- the charging protocol corresponding to the parameter encoding is determined as the target charging protocol, including:
- the target charging protocol is determined to be the first charging protocol; otherwise, the target charging protocol is determined to be the second charging protocol.
- obtaining a sequence of parameter values for the target signal parameters of an electrical signal includes:
- a parameter value sequence is generated based on the peak values of each parameter.
- the method further includes:
- the system sends a response message to the wireless charging device via the target charging protocol to enable wireless charging.
- the method further includes:
- the corresponding interaction information is determined based on the number of categories corresponding to the new electrical signal, or based on the parameter encoding corresponding to the new electrical signal.
- the parameter value of the target signal parameter is determined by the input voltage of the inverter of the wireless charging device; the wireless charging device adjusts the input voltage by controlling the switching time of the inverter.
- this application provides a protocol identification device, including:
- the obtaining unit is used to determine the parameter value sequence of the target signal parameters of the received electrical signal when the wireless charging device is received;
- the determining unit is used to determine the corresponding target charging protocol based on the number of categories of target parameter values that meet the set filtering conditions in the parameter value sequence, or to determine the corresponding target charging protocol based on the parameter code generated based on the parameter value sequence.
- the target signal parameters include at least one of the following: frequency and voltage.
- the determining unit is used to:
- the charging protocol corresponding to the number of categories is determined as the target charging protocol.
- the determining unit is used to:
- the target charging protocol is determined to be the first charging protocol; otherwise, the target charging protocol is determined to be the second charging protocol.
- the determining unit is used to:
- the parameter encoding corresponding to the parameter value sequence is obtained;
- the charging protocol corresponding to the parameter encoding is determined as the target charging protocol.
- the determining unit is configured to: if the parameter encoding is a target encoding, then determine the target charging protocol as a first charging protocol; otherwise, determine the target charging protocol as a second charging protocol.
- the obtaining unit is used to: obtain multiple parameter values of the target signal parameters based on the electrical signal;
- a parameter value sequence is generated based on the peak values of each parameter.
- the determining unit is further configured to:
- the system sends a response message to the wireless charging device via the target charging protocol to enable wireless charging.
- the determining unit is further configured to: determine the corresponding interaction information based on the number of categories corresponding to the new electrical signal when a new electrical signal is received from the wireless charging device, or determine the corresponding interaction information based on the parameter encoding corresponding to the new electrical signal.
- the parameter value of the target signal parameter is determined by the input voltage of the inverter of the wireless charging device; the wireless charging device adjusts the input voltage by controlling the switching time of the inverter.
- this application provides an electronic device, including:
- the memory stores computer instructions that cause the processor to perform steps of methods provided in various alternative implementations as identified by any of the protocols described above.
- embodiments of this application provide a computer-readable storage medium storing computer instructions for causing a computer to perform steps of the methods provided in various optional implementations as identified by any of the above-described protocols.
- this application provides a computer program product including computer-readable code or a non-volatile computer-readable storage medium carrying computer-readable code.
- the processor in the electronic device performs the steps of the method provided in various optional implementations as identified by any of the above-described protocols.
- the protocol identification method in this application includes determining, upon receiving an electrical signal sent by a wireless charging device, a sequence of parameter values for target signal parameters of the electrical signal; determining the corresponding target charging protocol based on the number of categories of target parameter values in the parameter value sequence that meet set filtering conditions, or determining the corresponding target charging protocol based on parameter codes generated from the parameter value sequence.
- Figure 1 is a schematic diagram of a protocol identification scenario in an embodiment of this application.
- FIG. 2 is a flowchart of a protocol identification method in an embodiment of this application.
- Figure 3 is an example diagram of a frequency signal in an embodiment of this application.
- Figure 4 is a flowchart of a frequency-based protocol identification method in an embodiment of this application.
- Figure 5 is a schematic diagram of a voltage signal curve in an embodiment of this application.
- Figure 6 is a schematic diagram of another voltage signal curve in an embodiment of this application.
- Figure 7 is a schematic diagram of a voltage input and output in an embodiment of this application.
- Figure 8 is a flowchart of a voltage-based protocol identification method in an embodiment of this application.
- Figure 9 is an example diagram of a reference frequency in an embodiment of this application.
- Figure 10 is an example diagram of an electrical signal frequency in an embodiment of this application.
- Figure 11 is a flowchart of a protocol identification method based on frequency coding in an embodiment of this application.
- Figure 12 is a structural block diagram of a protocol identification device according to an embodiment of this application.
- Figure 13 is a schematic diagram of the structure of an electronic device according to an embodiment of this application.
- the device being charged typically needs to first determine the charging protocol with the wireless charging device before wireless charging can proceed.
- traditional technologies often struggle to accurately and quickly identify the charging protocol.
- the receiver detects the current operating frequency of the received electrical signal in real time, using the F1 frequency value as a reference frequency. When it detects that the current operating frequency changes from F1 to F2, it determines to perform wireless charging through the target charging protocol.
- this method which identifies the protocol solely based on whether the frequency changes from F1 to F2, is typically only applicable to scenarios with a single charging protocol. When multiple charging protocols exist, it is usually difficult to quickly and accurately identify the charging protocol.
- this application provides a method, apparatus, electronic device, storage medium, and program product for protocol identification, aiming to quickly and accurately identify the charging protocol during wireless charging.
- This application provides a method for protocol identification, which can be applied to electronic devices.
- This application does not limit the type of electronic device, which can be any suitable type of device, such as terminal devices and servers, etc. This application will not elaborate further.
- the scenario in Figure 1 includes a device to be charged and a wireless charging device.
- the wireless charging device includes an inverter and a transmitter.
- the device to be charged includes a rectifier circuit and a receiver.
- the wireless charging device can power the transmitter through the inverter. After the transmitter is powered on, it generates a changing magnetic field.
- the receiver is excited by this changing magnetic field and can further process the electrical signal through the rectifier circuit, thereby realizing the wireless transfer of energy between the device to be charged and the wireless charging device.
- the device to be charged can identify the current target charging protocol based on the changes in the electrical signal, and thus can perform wireless charging.
- Figure 2 shows a flowchart of the protocol identification method in this embodiment, applied to the device to be charged in Figure 1.
- the specific implementation flow of this method is as follows:
- Step 201 When the electrical signal sent by the wireless charging device is received, obtain the parameter value sequence of the target signal parameter of the electrical signal.
- the wireless charging after the device to be charged comes into contact with the wireless charging device, the wireless charging generates a changing magnetic field through the transmitter.
- the device to be charged receives the electrical signal excited by the changing magnetic field in the receiver.
- the device to be charged samples the electrical signal over a period of time, thereby obtaining multiple parameter values of the target signal parameters and obtaining a parameter value sequence composed of these parameter values.
- the target signal parameters include at least one of the following: frequency and voltage.
- the target signal parameters can be set according to the actual application scenario; for example, the target signal parameter can also be current. No restrictions are imposed here.
- a parameter value sequence is generated based on the peak values of each parameter.
- the waveform curve rules can be set according to the periodic changes of parameter values. For example, if the voltage curve is a sine wave, then it is determined to conform to the waveform curve rules.
- the voltage sequence or frequency sequence of the excited electrical signal can be obtained.
- Step 202 Determine the corresponding target charging protocol based on the number of categories of target parameter values that meet the set filtering conditions in the parameter value sequence, or determine the corresponding target charging protocol based on the parameter code generated based on the parameter value sequence.
- step 202 can be performed in any of the following ways:
- Method 1 Determine the corresponding target charging protocol based on the number of target parameter values in the parameter value sequence that meet the set filtering conditions.
- the filtering criteria can be set as a set of specified parameters.
- Different target parameter values can correspond to different categories, or the parameter value range corresponding to each category can be pre-defined, thereby determining the category to which each target parameter value belongs and counting the number of categories.
- target parameter values contained in a specified parameter set are filtered from the parameter value sequence; the number of categories of the filtered target parameter values is determined; and the charging protocol corresponding to the number of categories is determined as the target charging protocol.
- the target charging protocol can be determined as the first charging protocol; otherwise, the target charging protocol can be determined as the second charging protocol.
- the first charging protocol could be the Power Matters Alliance (PMA) protocol
- the second charging protocol could be the qi protocol.
- PMA Power Matters Alliance
- the set quantity can be no less than 3; if the target signal parameter is voltage, the set quantity can be no less than 2. In practical applications, the set quantity can be set according to the actual application scenario, and there is no restriction here.
- the number of parameter value types in the specified parameter set shall not be less than a set number, and the difference between any two adjacent parameter values in the specified parameter set may be greater than X, where X is a positive number.
- Figure 3 shows an example of a frequency signal.
- the frequencies are F1, F2, and F3, respectively.
- the specified parameter set includes the three frequencies F1, F2, and F3.
- the wireless dock i.e., the wireless charging device
- the wireless dock provides initial operating energy and continuously changes its operating frequency to include F1, F2, and F3.
- the mobile phone determines that the signal contains the frequency sequence (i.e., the parameter value sequence) of F1, F2, and F3. Since both the parameter value sequence and the specified parameter set contain F1, F2, and F3, the number of categories is 3, which equals the set quantity.
- Figure 4 shows a flowchart of a frequency-based protocol identification method, which includes the following steps:
- the wireless charging device modulates the frequency of the electrical signal and sends the modulated electrical signal.
- the device to be charged parses the received electrical signal and obtains a sequence of parameter values containing multiple frequency values.
- S403 The device to be charged filters out the target parameter values contained in the specified parameter set from the parameter value sequence.
- S404 The device to be charged determines whether the number of categories of the target parameter value is higher than the set number. If yes, then execute S405; otherwise, execute S406.
- S405 The device to be charged determines that the target charging protocol is the first charging protocol.
- the device to be charged determines that the target charging protocol is the second charging protocol.
- the charging protocol can be accurately identified based on the number and type of electrical signal frequency, making the detection method more reliable, improving the accuracy of protocol identification, and simplifying the implementation by eliminating the need to consider the order of different frequency types.
- Method 2 Determine the corresponding target charging protocol based on the parameter code generated from the parameter value sequence.
- the parameter code corresponding to the parameter value sequence is obtained based on the correspondence between parameter values and encoded values, as well as each parameter value in the parameter value sequence; the charging protocol corresponding to the parameter code is determined as the target charging protocol.
- the correspondence between parameter values and encoded values can be established in advance for encoding, and the correspondence between parameter encoding and charging protocol can be established in advance for identifying the target charging protocol.
- the target charging protocol can be determined to be the first charging protocol; otherwise, the target charging protocol can be determined to be the second charging protocol.
- the target encoding can correspond to at least three parameter values. These can include several of the following cases:
- the first scenario is: if the parameter value sequence is a voltage value sequence, then the correspondence between voltage values and coded values can be established in advance, and the coded value corresponding to each voltage value in the voltage value sequence can be obtained, and the parameter code can be determined based on each coded value.
- the parameter value is determined by the input voltage of the inverter in the wireless charging device.
- the wireless charging device can adjust the input voltage V-AB of the inverter, thereby changing the voltage value sequence of the device to be charged.
- FIG. 5 is a schematic diagram of a voltage signal curve
- the voltage signal in Figure 5 is a waveform diagram
- a corresponding voltage value sequence is generated based on the voltage peaks V1, V2, V3, and V4 in Figure 5.
- the corresponding code values for V1, V2, V3, and V4 can be 1, 2, 3, and 4 respectively, so the parameter code corresponding to the voltage value sequence can be 1234.
- a corresponding voltage value sequence can be generated based on the voltage peaks V1, V2, V3, and V4 in Figure 6.
- the parameter code for the voltage value sequence can be 1234321.
- the strength of energy transmitted by the wireless base can be controlled by adjusting the input voltage of the inverter, thus forming information encoding.
- the inverter can adjust the input voltage through switching time, that is, by controlling the phase angle ⁇ of the inverter's switches, phase shift control is achieved, resulting in a special voltage waveform on V-AB.
- phase angle ⁇ changes, information encoding and control can be realized.
- the output voltage V-CD will produce different voltage values corresponding to different phase angles ⁇ , such as V1, V2, V3, and V4.
- a schematic diagram of voltage input and output is shown. It includes four coordinate graphs, with the horizontal axis representing time.
- the first and second coordinate graphs represent the switching times of each switch in the inverter in Figure 1.
- the third coordinate graph represents the inverter's input voltage V-AB
- the fourth coordinate graph represents the output voltage V-CD.
- the method includes the following steps:
- the wireless charging device regulates the voltage of the electrical signal and sends the regulated electrical signal.
- the device to be charged analyzes the received electrical signal to obtain a sequence of parameter values containing multiple voltage values.
- S804 The device to be charged determines whether the parameter code is the target code. If it is, then execute S805; otherwise, execute S806.
- the device to be charged determines the target charging protocol as the first charging protocol.
- S806 The device to be charged determines that the target charging protocol is the second charging protocol.
- the voltage sequence of the receiver can be controlled by adjusting the input voltage of the inverter or the switching time of the inverter. Since the voltage value can be adjusted within a wide range and can be changed flexibly, and can be any value, the encoding method is diversified. It can realize multiple encoding methods such as quaternary and octal, and the encoded content is rich, carrying more content information. The large amount of encoded content is beneficial for the wireless receiver to obtain more information and can reduce the information exchange time.
- the target signal parameter can also be current
- the parameter value sequence can be a current value sequence. This allows for the pre-establishment of a correspondence between current values and coded values, thereby obtaining the coded value corresponding to each current value in the current value sequence, and determining the parameter code based on each coded value.
- Current value encoding can be based on a principle similar to voltage value encoding, which will not be elaborated upon here.
- the second scenario is: if the parameter value sequence is a frequency value sequence, then the correspondence between frequency values and encoded values can be established in advance, and the encoded value corresponding to each frequency value in the frequency value sequence can be obtained, and the parameter encoding can be determined based on each encoded value.
- multiple frequency values of the electrical signal can be directly extracted, or the electrical signal can be analyzed based on a reference frequency value to obtain each frequency value.
- the difference between each frequency value and the reference frequency can be determined, and the parameter encoding can be obtained based on the encoded value corresponding to each difference.
- the reference frequency can also be called the base frequency.
- the chip in the device to be charged also stores this reference frequency value, and uses this reference frequency value to detect frequency changes in order to quickly achieve parameter encoding.
- FIG. 9 an example diagram of a reference frequency is shown.
- the reference frequency value can be represented as Fref.
- an example diagram of an electrical signal frequency is shown.
- the frequency values of the electrical signal are, in order: F1, F2, Fref, F3, and F4.
- the method includes the following steps:
- the wireless charging device regulates the frequency of the electrical signal and sends the regulated electrical signal.
- the device to be charged analyzes the received electrical signal to obtain a sequence of parameter values containing multiple frequency values.
- S1103 Parameter encoding generated by the device to be charged based on the parameter value sequence.
- S1104 The device to be charged determines whether the parameter code is the target code. If yes, proceed to S1105; otherwise, proceed to S1106.
- the device to be charged determines the target charging protocol as the first charging protocol.
- S1106 The device to be charged determines that the target charging protocol is the second charging protocol.
- wireless charging devices can change their operating frequency based on the reference frequency Fref to achieve information transmission during energy transfer. Since the frequency value has a wide adjustment range, it can be flexibly changed and can be any value. Therefore, the encoding methods are diversified, and multiple encoding methods such as quaternary and octal can be implemented.
- the encoded content is rich, carrying more content information. The large amount of encoded content is beneficial for the wireless receiver to obtain more information and can reduce the information interaction time.
- a response message can be sent to the wireless charging device via the target charging protocol to enable wireless charging.
- a response message is sent to the wireless charging device through the first charging protocol; when the target charging protocol is a second charging protocol, a response message is sent to the wireless charging device through the second charging protocol.
- the corresponding interaction information can be determined based on the number of categories corresponding to the new electrical signal, or based on the parameter encoding corresponding to the new electrical signal.
- a new sequence of parameter values for the target signal parameters is obtained based on the new electrical signal.
- the interaction information corresponding to the new parameter encoding is obtained.
- the interaction information corresponding to the number of categories can also be obtained, which will not be elaborated here.
- the device to be charged can also use a principle similar to that of the wireless charging device to return transmission information, which will not be elaborated here.
- information can be transmitted and parsed based on electrical signals and parameter encoding in the initial stage of identifying the charging protocol, and information can also be transmitted to the receiving end in this way after entering the charging state, so as to realize information interaction with the wireless charging device.
- the target charging protocol is determined by the number of categories or parameter encoding of the target signal parameters. This can carry richer information and can be applied to protocol identification in scenarios with multiple charging protocols, thereby improving the efficiency and accuracy of protocol identification.
- the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
- this application also provides a protocol identification device. Since the principle of the above-mentioned device and apparatus in solving the problem is similar to that of a protocol identification method, the implementation of the above-mentioned device can refer to the implementation of the method, and repeated details will not be described again.
- This device can be applied to electronic devices. This application does not limit the type of electronic device; it can be any suitable type of device, such as terminal devices and servers, etc., which will not be described again in this application.
- this is a structural block diagram of a protocol identification device according to an embodiment of this application.
- the protocol identification device exemplified in this application includes:
- the obtaining unit 1201 is used to determine, when receiving an electrical signal sent by a wireless charging device, the parameter value sequence of the target signal parameter of the electrical signal is obtained;
- the determining unit 1202 is used to determine the corresponding target charging protocol based on the number of categories of target parameter values that meet the set filtering conditions in the parameter value sequence, or to determine the corresponding target charging protocol based on the parameter code generated based on the parameter value sequence.
- the target signal parameters include at least one of the following: frequency and voltage.
- the determining unit 1202 is used to:
- the charging protocol corresponding to the number of categories is determined as the target charging protocol.
- the determining unit 1202 is used to:
- the target charging protocol is determined to be the first charging protocol; otherwise, the target charging protocol is determined to be the second charging protocol.
- the determining unit 1202 is used to:
- the parameter encoding corresponding to the parameter value sequence is obtained;
- the charging protocol corresponding to the parameter encoding is determined as the target charging protocol.
- the determining unit 1202 is configured to: if the parameter encoding is a target encoding, then determine the target charging protocol as a first charging protocol; otherwise, determine the target charging protocol as a second charging protocol.
- the obtaining unit 1201 is used to: obtain multiple parameter values of the target signal parameters based on the electrical signal;
- a parameter value sequence is generated based on the peak values of each parameter.
- the determining unit 1202 is further configured to:
- the system sends a response message to the wireless charging device via the target charging protocol to enable wireless charging.
- the determining unit 1202 is further configured to: determine the corresponding interaction information based on the number of categories corresponding to the new electrical signal when a new electrical signal is received from the wireless charging device, or determine the corresponding interaction information based on the parameter encoding corresponding to the new electrical signal.
- the parameter value of the target signal parameter is determined by the input voltage of the inverter of the wireless charging device; the wireless charging device adjusts the input voltage by controlling the switching time of the inverter.
- the protocol identification method in this application includes determining, upon receiving an electrical signal sent by a wireless charging device, a sequence of parameter values for target signal parameters of the electrical signal; determining the corresponding target charging protocol based on the number of categories of target parameter values in the parameter value sequence that meet set filtering conditions, or determining the corresponding target charging protocol based on parameter codes generated from the parameter value sequence.
- an electronic device including:
- the memory stores computer instructions that cause the processor to execute the methods of any of the above-described embodiments.
- a computer-readable storage medium storing computer instructions for causing a computer to perform the methods of any of the above embodiments.
- This application also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in the processor of an electronic device, the processor in the electronic device performs the method of any of the above-described embodiments.
- Figure 13 shows a schematic diagram of the structure of an electronic device 1300.
- the electronic device 1300 includes a processor 1310 and a memory 1320, and optionally may also include a power supply 1330, a display unit 1340, and an input unit 1350.
- the processor 1310 is the control center of the electronic device 1300. It connects various components through various interfaces and lines, and performs various functions of the electronic device 1300 by running or executing software programs and/or data stored in the memory 1320, thereby performing overall monitoring of the electronic device 1300.
- processor 1310 when the processor 1310 calls the computer program stored in the memory 1320, it executes the steps in the above embodiments.
- processor 1310 may include one or more processing units; preferably, processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 1310.
- the processor and memory may be implemented on a single chip; in some embodiments, they may also be implemented separately on independent chips.
- the memory 1320 may primarily include a program storage area and a data storage area.
- the program storage area may store the operating system, various applications, etc.; the data storage area may store data created based on the use of the electronic device 1300, etc.
- the memory 1320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
- Electronic device 1300 also includes a power supply 1330 (such as a battery) that supplies power to various components.
- the power supply can be logically connected to processor 1310 through a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption.
- the display unit 1340 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 1300. In this embodiment, it is mainly used to display the display interface of each application in the electronic device 1300 and the text, pictures, and other objects displayed on the display interface.
- the display unit 1340 may include a display panel 1341.
- the display panel 1341 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the input unit 1350 can be used to receive information such as numbers or characters input by the user.
- the input unit 1350 may include a touch panel 1351 and other input devices 1352.
- the touch panel 1351 also known as a touch screen, can collect touch operations on or near the touch panel 1351 (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1351).
- the touch panel 1351 can detect user touch operations and the signals generated by these operations, convert them into touch point coordinates, send them to the processor 1310, and receive and execute commands from the processor 1310. Furthermore, the touch panel 1351 can be implemented using various types of sensors, including resistive, capacitive, infrared, and surface acoustic wave sensors.
- Other input devices 1352 can include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
- the touch panel 1351 can cover the display panel 1341.
- the touch panel 1351 detects a touch operation on or near it, it transmits the information to the processor 1310 to determine the type of touch event. Subsequently, the processor 1310 provides corresponding visual output on the display panel 1341 according to the type of touch event.
- the touch panel 1351 and the display panel 1341 are implemented as two separate components to realize the input and output functions of the electronic device 1300, in some embodiments, the touch panel 1351 and the display panel 1341 can be integrated to realize the input and output functions of the electronic device 1300.
- the electronic device 1300 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc.
- sensors such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc.
- the electronic device 1300 may also include other components such as a camera. Since these components are not the focus of this application embodiment, they are not shown in Figure 13 and will not be described in detail.
- Figure 13 is merely an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown, or combine certain components, or use different components.
- each module or unit
- the functions of each module can be implemented in one or more software or hardware components.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请涉及通信技术领域,具体提供了一种协议识别的方法、装置、电子设备、存储介质及程序产品。一种协议识别的方法,包括确定接收到无线充电设备发送的电信号时,获得所述电信号的目标信号参数的参数值序列;根据所述参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于所述参数值序列生成的参数编码,确定对应的目标充电协议。这样,通过电信号对应的类别数量或者参数编码进行协议识别,可以提高协议识别的效率以及准确性。
Description
交叉引用
本公开要求于2024年07月15日提交的申请号为202410947861.4、名称为“协议识别的方法、装置、电子设备、存储介质及程序产品”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
本申请涉及通信技术领域,具体涉及一种协议识别的方法、装置、电子设备、存储介质及程序产品。
在无线充电场景中,待充电设备(如,手机)通常可以通过无线充电设备(如,无线充电底座)进行无线充电。
其中,无线充电技术的原理与变压器类似,是基于“电生磁、磁生电”的物理现象。这一技术涉及到两个线圈,一个在无线充电设备中作为发射器,另一个在待充电设备中作为接收器。当发射器线圈被通电后,会产生变化磁场,这个变化磁场又会在接收器线圈中激发出电信号,从而实现能量的无线传输。
在进行无线充电时,待充电设备通常需要先确定与无线充电设备之间的充电协议,然后,通过该充电协议进行无线充电,进入大功率充电状态。但是,现有技术下,通常难以准确且快速地识别充电协议。
本申请实施例的目的在于提供一种协议识别的方法、装置、电子设备、存储介质及程序产品,用以在无线充电时,快速且准确地识别充电协议。
一方面,本申请实施例中提供了一种协议识别的方法,方法包括:
确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列;
根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。
一种实施方式中,目标信号参数包括以下至少一个:频率以及电压。
一种实施方式中,根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,包括:
从参数值序列中,筛选出被指定参数集合包含的目标参数值;
确定筛选出的目标参数值的类别数量;
将类别数量对应的充电协议,确定为目标充电协议。
一种实施方式中,将类别数量对应的充电协议,确定为目标充电协议,包括:
若类别数量不低于设定数量,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,根据基于参数值序列生成的参数编码,确定对应的目标充电协议,包括:
根据参数值与编码值之间的对应关系,以及参数值序列中的各参数值,获得参数值序列对应的参数编码;
将参数编码对应的充电协议,确定为目标充电协议。
一种实施方式中,将参数编码对应的充电协议,确定为目标充电协议,包括:
若参数编码为目标编码,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,获得电信号的目标信号参数的参数值序列,包括:
基于电信号,获得目标信号参数的多个参数值;
若目标信号参数的各参数值符合波形曲线规则,则根据各参数值中的峰值,生成参数值序列。
一种实施方式中,在确定对应的目标充电协议之后,方法还包括:
通过目标充电协议,向无线充电设备发送应答信息,以通过目标充电协议进行无线充电。
一种实施方式中,在向无线充电设备发送应答信息之后,方法还包括:
确定接收到无线充电设备发送的新的电信号时,根据新的电信号对应的类别数量,确定对应的交互信息,或者,根据新的电信号对应的参数编码,确定对应的交互信息。
一种实施方式中,在目标信号参数为电压的情况下,目标信号参数的参数值由无线充电设备的逆变器的输入电压决定;无线充电设备通过控制逆变器的开关时间对输入电压进行调整。
一方面,本申请实施例中提供了一种协议识别的装置,包括:
获得单元,用于确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列;
确定单元,用于根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。
一种实施方式中,目标信号参数包括以下至少一个:频率以及电压。
一种实施方式中,确定单元用于:
从参数值序列中,筛选出被指定参数集合包含的目标参数值;
确定筛选出的目标参数值的类别数量;
将类别数量对应的充电协议,确定为目标充电协议。
一种实施方式中,确定单元用于:
若类别数量不低于设定数量,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,确定单元用于:
根据参数值与编码值之间的对应关系,以及参数值序列中的各参数值,获得参数值序列对应的参数编码;
将参数编码对应的充电协议,确定为目标充电协议。
一种实施方式中,确定单元用于:若参数编码为目标编码,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,获得单元用于:基于电信号,获得目标信号参数的多个参数值;
若目标信号参数的各参数值符合波形曲线规则,则根据各参数值中的峰值,生成参数值序列。
一种实施方式中,确定单元还用于:
通过目标充电协议,向无线充电设备发送应答信息,以通过目标充电协议进行无线充电。
一种实施方式中,确定单元还用于:确定接收到无线充电设备发送的新的电信号时,根据新的电信号对应的类别数量,确定对应的交互信息,或者,根据新的电信号对应的参数编码,确定对应的交互信息。
一种实施方式中,在目标信号参数为电压的情况下,目标信号参数的参数值由无线充电设备的逆变器的输入电压决定;无线充电设备通过控制逆变器的开关时间对输入电压进行调整。
一方面,本申请实施例中提供了一种电子设备,包括:
处理器;以及
存储器,存储有计算机指令,计算机指令用于使处理器执行如上述任一种协议识别的各种可选实现方式中提供的方法的步骤。
一方面,本申请实施例中提供了一种计算机可读存储介质,存储有计算机指令,计算机指令用于使计算机执行如上述任一种协议识别的各种可选实现方式中提供的方法的步骤。
一方面,本申请实施例中提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当计算机可读代码在电子设备的处理器中运行时,电子设备中的处理器执行如上述任一种协议识别的各种可选实现方式中提供的方法的步骤。
本申请实施例中的协议识别的方法,包括确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列;根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。这样,通过电信号对应的类别数量或者参数编码进行协议识别,可以提高协议识别的效率以及准确性。
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例中一种协议识别的场景示意图。
图2是本申请实施例中一种协议识别的方法的流程图。
图3是本申请实施例中一种频率信号的示例图。
图4是本申请实施例中一种基于频率的协议识别的方法的流程图。
图5是本申请实施例中一种电压信号的曲线示意图。
图6是本申请实施例中另一种电压信号的曲线示意图。
图7是本申请实施例中一种电压输入输出的示意图。
图8是本申请实施例中一种基于电压的协议识别的方法的流程图。
图9是本申请实施例中一种参考频率的示例图。
图10是本申请实施例中一种电信号频率的示例图。
图11是本申请实施例中一种基于频率编码的协议识别的方法的流程图。
图12是本申请实施例中一种协议识别的装置的结构框图。
图13是本申请实施例中一种电子设备的结构示意图。
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本申请保护的范围。此外,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
在无线充电场景中,在进行无线充电时,待充电设备通常需要先确定与无线充电设备之间的充电协议,然后,通过该充电协议进行无线充电。但是,传统技术下,通常难以准确且快速地识别充电协议。
例如,接收端实时检测接收的电信号的当前工作频率,以F1频率数值为基准频率,当检测到当前工作频率由F1变化到F2时,确定通过目标充电协议进行无线充电。但是,采用这种方式,仅根据频率是否从F1变化到了F2进行协议识别,通常仅能应用于单一充电协议的场景,在存在多种充电协议时,通常难以快速且准确地识别充电协议。
基于上述相关技术存在的缺陷,本申请实施例中提供了一种协议识别的方法、装置、电子设备、存储介质及程序产品,旨在无线充电时,快速且准确地识别充电协议。
本申请实施例中提供了一种协议识别的方法,该方法可应用于电子设备,本申请对于电子设备的类型不作限制,其可以是任何适于实施的设备类型,例如终端设备以及服务器等,本申请对此不再赘述。
参阅图1所示,为一种协议识别的场景示意图。图1中所示的场景中,包含待充电设备以及无线充电设备。无线充电设备中包含逆变器以及发射器。待充电设备中包含整流电路以及接收器。无线充电设备可以通过逆变器为发射器通电。发射器被通电后,会产生变化磁场。接收器由该变化磁场激发出电信号,并可以通过整流电路对该电信号进行后续处理,从而实现待充电设备与无线充电设备之间的能量的无线传输。在这个过程中,待充电设备可以根据电信号的变化,识别当前的目标充电协议,进而可以进行无线充电。
下面结合图1和图2,对本申请实施例中一种协议识别的方法进行说明,参阅图2所示,为本申请实施例中协议识别的方法的流程图,应用于图1中的待充电设备,下面结合图2对该方法进行说明,该方法的具体实施流程如下:
步骤201:确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列。
一种实施方式中,待充电设备与无线充电设备接触后,无线充电通过发射器产生变化磁场。待充电设备获得接收器被该变化磁场激发的电信号。待充电设备对一段时间内的电信号进行采样,可以获得目标信号参数的多个参数值,并获得各参数值组成的参数值序列。
其中,目标信号参数包括以下至少一个:频率以及电压,实际应用中,目标信号参数可以根据实际应用场景进行设置,如,目标信号参数还可以为电流。在此不作限制。
进一步地,若目标信号参数的各参数值符合波形曲线规则,则根据各参数值中的峰值,生成参数值序列。
其中,波形曲线规则可以根据参数值的周期性变化设置,如,电压曲线为正弦波,则确定符合波形曲线规则。
这样,就可以获得激发的电信号的电压序列或者频率序列。
步骤202:根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。
一种实施方式中,执行步骤202时,可以采用以下任一方式:
方式一:根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议。
可选的,设定筛选条件可以为被指定参数集合。不同的目标参数值可以对应不同的类别,或者,预先设置各类别对应的参数值区间,从而可以确定各目标参数值各自所属的参数值区间对应的类别,并统计类别数量。
一种实施方式中,从参数值序列中,筛选出被指定参数集合包含的目标参数值;确定筛选出的目标参数值的类别数量;将类别数量对应的充电协议,确定为目标充电协议。
其中,可以预先建立类别数量与充电协议之间的对应关系,从而可以根据该对应关系,确定电信号的类别数量对应的目标充电协议。
在充电协议仅包含两种时,若类别数量不低于设定数量,则可以确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
例如,第一充电协议可以为电源事物联盟(Power Matters Alliance,PMA)协议,第二充电协议可以为qi协议。
例如,若目标信号参数为频率,设定数量可以不低于3,若目标信号参数为电压,则设定数量可以不低于2,实际应用中,设定数量可以根据实际应用场景对设定数量进行设置,在此不作限制。
为提高基于目标信号参数传递的信息的丰富性,指定参数集合中的参数值的类型数量不低于设定数量,且指定参数集合中任意两个相邻参数值之间的差值可以大于X,X为正数。
下面结合图3进行示例说明,参阅图3所示,为一种频率信号的示例图。图3中,频率依次为F1、F2以及F3。假设设定数量为3,且指定参数集合中包含F1、F2、F3三种频率。当手机(即待充电设备)放在无线底座(即无线充电设备)上之后,无线底座提供初始工作能量,并不断改变自身的工作频率,使其包含F1、F2、F3。手机接收到电信号后,确定该电信号包含F1、F2、F3的频率序列(即参数值序列)。由于参数值序列与指定参数集合均包含F1、F2、F3,因此,类别数量为3=设定数量。
下面结合图4,对方式一进行示例说明。参阅图4所示,为一种基于频率的协议识别的方法的流程图,该方法的流程包括:
S401:无线充电设备对电信号的频率进行调控,并发送调控后的电信号。
S402:待充电设备解析接收的电信号,获得包含多个频率值的参数值序列。
S403:待充电设备筛选出参数值序列中被指定参数集合包含的目标参数值。
S404:待充电设备判断目标参数值的类别数量是否高于设定数量,若是,则执行S405,否则,执行S406。
S405:待充电设备确定目标充电协议为第一充电协议。
S406:待充电设备确定目标充电协议为第二充电协议。
这样,可以根据电信号的频率的类型数量,准确识别充电协议,检测方式更加可靠,提高了协议识别的准确性,以及不需要考虑各类型频率的排序,实现方式更加简单。
方式二:根据基于参数值序列生成的参数编码,确定对应的目标充电协议。
一种实施方式中,根据参数值与编码值之间的对应关系,以及参数值序列中的各参数值,获得参数值序列对应的参数编码;将参数编码对应的充电协议,确定为目标充电协议。
其中,可以预先建立参数值与编码值之间的对应关系,以进行编码,并可以预先建立参数编码与充电协议之间的对应关系,以识别目标充电协议。
在充电协议仅为两种时,若参数编码为目标编码,则可以确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
可选的,目标编码可以对应至少三种参数值。其中,可以包括以下多种情况:
第一种情况为:参数值序列为电压值序列,则可以预先建立电压值与编码值之间的对应关系,进而可以获得电压值序列中各电压值对应的编码值,以及基于各编码值,确定参数编码。
其中,在目标信号参数为电压的情况下,目标信号参数的参数值由无线充电设备的逆变器的输入电压决定。例如,图1中,无线充电设备可以调整逆变器的输入电压V-AB,从而改变待充电设备的电压值序列。
参阅图5所示,为一种电压信号的曲线示意图。由于图5中,电压信号为波形图,因此,基于图5中的各电压峰值即V1、V2、V3以及V4,生成对应的电压值序列。V1、V2、V3以及V4各自对应的编码值依次可以为:1、2、3以及4,则电压值序列对应的参数编码可以为1234。
同理,参阅图6所示,为另一种电压信号的曲线示意图。可以基于图6中的各电压峰值即V1、V2、V3以及V4,生成对应的电压值序列。电压值序列对应的参数编码可以为1234321。
这样,就可以通过调整逆变器的输入电压,实现无线底座发送能量的强弱控制,形成信息的编码。
进一步地,逆变器还可以通过开关时间对输入电压进行调整,即通过控制逆变器的开关的相位角θ,实现移相控制,使得在V-AB上产生特殊的电压波形,随着相位角θ的变化,可以实现信息编码与控制。在接收端输出电压V-CD会对应不同的相位角θ产生不同的电压值。如,V1、V2、V3、V4。
参阅图7所示,为一种电压输入输出的示意图。包括四个坐标图,横坐标均为时间。第一坐标图和第二坐标图表示图1中逆变器的各开关的开关时间。第三坐标图表示逆变器的输入电压V-AB,第四坐标图为输出电压V-CD,在相位角θ固定时,输出电压V-CD不变,例如,输出电压V-CD为V1,在相位角θ变化时,输入电压V-AB变化,输出电压V-CD也会随之变化。
参阅图8所示,为一种基于电压的协议识别的方法的流程图,该方法的流程包括:
S801:无线充电设备对电信号的电压进行调控,并发送调控后的电信号。
S802:待充电设备对接收的电信号进行解析,获得包含多个电压值的参数值序列。
S803:待充电设备基于参数值序列生成的参数编码。
S804:待充电设备判断参数编码是否为目标编码,若是,则执行S805,否则,执行S806。
S805:待充电设备确定目标充电协议为第一充电协议。
S806:待充电设备确定目标充电协议为第二充电协议。
这样,就可以通过调整逆变器的输入电压,或者调整逆变器的开关时间,控制接收器的电压值序列,由于电压值的调节范围广,可以灵活改变的,且可以为任意值,因此,编码方式多样化,可以实现四进制、八进制等多种编码方式,编码内容丰富,携带更多的内容信息,编码内容量大,利于无线接收端获取更多的信息,可以减少信息交互的时间。
进一步地,目标信号参数还可以为电流,参数值序列为电流值序列,则可以预先建立电流值与编码值之间的对应关系,进而可以获得电流值序列中各电流值对应的编码值,以及基于各编码值,确定参数编码。可以基于与电压值编码相似的原理,对电流值编码,在此不做赘述。
第二种情况为:参数值序列为频率值序列,则可以预先建立频率值与编码值之间的对应关系,进而可以获得频率值序列中各频率值对应的编码值,以及基于各编码值,确定参数编码。
可选的,可以直接提取电信号的多个频率值,还可以基于参考频率值,对电信号进行解析,获得各频率值。进一步地,还可以确定各频率值与参考频率的参考频率值的差值,并可以根据各差值对应的编码值,获得参数编码。参考频率还可以称为基准频率。例如,待充电设备的芯片中也存储有该参考频率值,并以该参考频率值为参考,检测频率变化,以快速实现参数编码。
参阅图9所示,为一种参考频率的示例图。图9中,参考频率值可以表示为Fref。参阅图10所示,为一种电信号频率的示例图。图10中,电信号的频率值依次为:F1、F2、Fref、F3以及F4。
参阅图11所示,为一种基于频率编码的协议识别的方法的流程图,该方法的流程包括:
S1101:无线充电设备对电信号的频率进行调控,并发送调控后的电信号。
S1102:待充电设备对接收的电信号进行解析,获得包含多个频率值的参数值序列。
S1103:待充电设备基于参数值序列生成的参数编码。
S1104:待充电设备判断参数编码是否为目标编码,若是,则执行S1105,否则,执行S1106。
S1105:待充电设备确定目标充电协议为第一充电协议。
S1106:待充电设备确定目标充电协议为第二充电协议。
这样,无线充电设备可以在基准频率Fref的基础上改变工作频率,实现在能量传输的过程中信息传递,由于频率值的调节范围广,可以灵活改变的,且可以为任意值,因此,编码方式多样化,可以实现四进制、八进制等多种编码方式,编码内容丰富,携带更多的内容信息,编码内容量大,利于无线接收端获取更多的信息,可以减少信息交互的时间。
进一步地,还可以通过目标充电协议,向无线充电设备发送应答信息,以通过目标充电协议进行无线充电。
一种实施方式中,在目标充电协议为第一充电协议的情况下,通过第一充电协议,向无线充电设备发送应答信息;在目标充电协议为第二充电协议的情况下,通过第二充电协议,向无线充电设备发送应答信息。
进一步地,还可以确定接收到无线充电设备发送的新的电信号时,根据新的电信号对应的类别数量,确定对应的交互信息,或者,根据新的电信号对应的参数编码,确定对应的交互信息。
一种实施方式中,在确定接收到无线充电设备发送的新的电信号时,基于新的电信号,获得目标信号参数的新的参数值序列;根据参数值与编码值之间的对应关系,以及新的参数值序列对应的参数编码,并根据参数编码与信息之间的对应关系,获得新的参数编码对应的交互信息,同理,还可以获得类别数量对应的交互信息,在此不做赘述。
进一步地,待充电设备也可以采用与传输交互详细相似的原理,向无线充电设备返回传输信息,在此不做赘述。
这样,不仅可以在识别充电协议的初始阶段,基于电信号以及参数编码进行信息的传输以及解析,还可以在进入充电状态后,也通过该方式向接收端传递信息,以实现与无线充电设备之间的信息交互。
本申请实施例中,通过目标信号参数的类别数量或者参数编码,确定对应的目标充电协议,可以携带更丰富的信息,可以应用于存在多种充电协议的场景的协议识别,可以提高协议识别的效率以及准确性。
本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。
基于同一发明构思,本申请实施例中还提供了一种协议识别的装置,由于上述装置及设备解决问题的原理与一种协议识别的方法相似,因此,上述装置的实施可以参见方法的实施,重复之处不再赘述。该装置可应用于电子设备,本申请对于电子设备的类型不作限制,其可以是任何适于实施的设备类型,例如终端设备以及服务器等,本申请对此不再赘述。
参阅图12所示,为本申请实施例中协议识别的装置的结构框图。在一些实施方式中,本申请示例的协议识别的装置,包括:
获得单元1201,用于确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列;
确定单元1202,用于根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。
一种实施方式中,目标信号参数包括以下至少一个:频率以及电压。
一种实施方式中,确定单元1202用于:
从参数值序列中,筛选出被指定参数集合包含的目标参数值;
确定筛选出的目标参数值的类别数量;
将类别数量对应的充电协议,确定为目标充电协议。
一种实施方式中,确定单元1202用于:
若类别数量不低于设定数量,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,确定单元1202用于:
根据参数值与编码值之间的对应关系,以及参数值序列中的各参数值,获得参数值序列对应的参数编码;
将参数编码对应的充电协议,确定为目标充电协议。
一种实施方式中,确定单元1202用于:若参数编码为目标编码,则确定目标充电协议为第一充电协议,否则,确定目标充电协议为第二充电协议。
一种实施方式中,获得单元1201用于:基于电信号,获得目标信号参数的多个参数值;
若目标信号参数的各参数值符合波形曲线规则,则根据各参数值中的峰值,生成参数值序列。
一种实施方式中,确定单元1202还用于:
通过目标充电协议,向无线充电设备发送应答信息,以通过目标充电协议进行无线充电。
一种实施方式中,确定单元1202还用于:确定接收到无线充电设备发送的新的电信号时,根据新的电信号对应的类别数量,确定对应的交互信息,或者,根据新的电信号对应的参数编码,确定对应的交互信息。
一种实施方式中,在目标信号参数为电压的情况下,目标信号参数的参数值由无线充电设备的逆变器的输入电压决定;无线充电设备通过控制逆变器的开关时间对输入电压进行调整。
本申请实施例中的协议识别的方法,包括确定接收到无线充电设备发送的电信号时,获得电信号的目标信号参数的参数值序列;根据参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于参数值序列生成的参数编码,确定对应的目标充电协议。这样,通过电信号对应的类别数量或者参数编码进行协议识别,可以提高协议识别的效率以及准确性。
本申请实施例中,提供了一种电子设备,包括:
处理器;以及
存储器,存储有计算机指令,计算机指令用于使处理器执行上述任意实施方式的方法。
本申请实施例中,提供了一种计算机可读存储介质,存储有计算机指令,计算机指令用于使计算机执行上述任意实施方式的方法。
本申请实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当计算机可读代码在电子设备的处理器中运行时,电子设备中的处理器上述任意实施方式的方法。
图13示出了一种电子设备1300的结构示意图。参阅图13所示,电子设备1300包括:处理器1310以及存储器1320,可选的,还可以包括电源1330、显示单元1340、输入单元1350。
处理器1310是电子设备1300的控制中心,利用各种接口和线路连接各个部件,通过运行或执行存储在存储器1320内的软件程序和/或数据,执行电子设备1300的各种功能,从而对电子设备1300进行整体监控。
本申请实施例中,处理器1310调用存储器1320中存储的计算机程序时执行上述实施例中的各个步骤。
可选的,处理器1310可包括一个或多个处理单元;优选的,处理器1310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1310中。在一些实施例中,处理器、存储器、可以在单一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。
存储器1320可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、各种应用等;存储数据区可存储根据电子设备1300的使用所创建的数据等。此外,存储器1320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件等。
电子设备1300还包括给各个部件供电的电源1330(比如电池),电源可以通过电源管理系统与处理器1310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
显示单元1340可用于显示由用户输入的信息或提供给用户的信息以及电子设备1300的各种菜单等,本申请实施例中主要用于显示电子设备1300中各应用的显示界面以及显示界面中显示的文本、图片等对象。显示单元1340可以包括显示面板1341。显示面板1341可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置。
输入单元1350可用于接收用户输入的数字或字符等信息。输入单元1350可包括触控面板1351以及其他输入设备1352。其中,触控面板1351,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触摸笔等任何适合的物体或附件在触控面板1351上或在触控面板1351附近的操作)。
具体的,触控面板1351可以检测用户的触摸操作,并检测触摸操作带来的信号,将这些信号转换成触点坐标,发送给处理器1310,并接收处理器1310发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1351。其他输入设备1352可以包括但不限于物理键盘、功能键(比如音量控制按键、开关机按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
当然,触控面板1351可覆盖显示面板1341,当触控面板1351检测到在其上或附近的触摸操作后,传送给处理器1310以确定触摸事件的类型,随后处理器1310根据触摸事件的类型在显示面板1341上提供相应的视觉输出。虽然在图13中,触控面板1351与显示面板1341是作为两个独立的部件来实现电子设备1300的输入和输出功能,但是在某些实施例中,可以将触控面板1351与显示面板1341集成而实现电子设备1300的输入和输出功能。
电子设备1300还可包括一个或多个传感器,例如压力传感器、重力加速度传感器、接近光传感器等。当然,根据具体应用中的需要,上述电子设备1300还可以包括摄像头等其它部件,由于这些部件不是本申请实施例中重点使用的部件,因此,在图13中没有示出,且不再详述。
本领域技术人员可以理解,图13仅仅是电子设备的举例,并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件。
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本申请时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。
Claims (14)
- 一种协议识别的方法,其特征在于,所述方法包括:确定接收到无线充电设备发送的电信号时,获得所述电信号的目标信号参数的参数值序列;根据所述参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于所述参数值序列生成的参数编码,确定对应的目标充电协议。
- 根据权利要求1所述的方法,其特征在于,所述目标信号参数包括以下至少一个:频率以及电压。
- 根据权利要求1或2所述的方法,其特征在于,所述根据所述参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,包括:从所述参数值序列中,筛选出被指定参数集合包含的目标参数值;确定筛选出的所述目标参数值的类别数量;将所述类别数量对应的充电协议,确定为所述目标充电协议。
- 根据权利要求3所述的方法,其特征在于,所述将所述类别数量对应的充电协议,确定为所述目标充电协议,包括:若所述类别数量不低于设定数量,则确定所述目标充电协议为第一充电协议,否则,确定所述目标充电协议为第二充电协议。
- 根据权利要求1或2所述的方法,其特征在于,所述根据基于所述参数值序列生成的参数编码,确定对应的目标充电协议,包括:根据参数值与编码值之间的对应关系,以及所述参数值序列中的各参数值,获得所述参数值序列对应的参数编码;将所述参数编码对应的充电协议,确定为所述目标充电协议。
- 根据权利要求5所述的方法,其特征在于,所述将所述参数编码对应的充电协议,确定为所述目标充电协议,包括:若所述参数编码为目标编码,则确定所述目标充电协议为第一充电协议,否则,确定所述目标充电协议为第二充电协议。
- 根据权利要求5所述的方法,其特征在于,所述获得所述电信号的目标信号参数的参数值序列,包括:基于所述电信号,获得所述目标信号参数的多个参数值;若所述目标信号参数的各参数值符合波形曲线规则,则根据各参数值中的峰值,生成所述参数值序列。
- 根据权利要求1或2所述的方法,其特征在于,在确定对应的目标充电协议之后,所述方法还包括:通过所述目标充电协议,向所述无线充电设备发送应答信息,以通过所述目标充电协议进行无线充电。
- 根据权利要求8所述的方法,其特征在于,在向所述无线充电设备发送应答信息之后,所述方法还包括:确定接收到无线充电设备发送的新的电信号时,根据所述新的电信号对应的类别数量,确定对应的交互信息,或者,根据所述新的电信号对应的参数编码,确定对应的交互信息。
- 根据权利要求1或2所述的方法,其特征在于,在所述目标信号参数为电压的情况下,所述目标信号参数的参数值由所述无线充电设备的逆变器的输入电压决定;所述无线充电设备通过控制所述逆变器的开关时间对所述输入电压进行调整。
- 一种协议识别的装置,其特征在于,所述装置包括:获得单元,用于确定接收到无线充电设备发送的电信号时,获得所述电信号的目标信号参数的参数值序列;确定单元,用于根据所述参数值序列中符合设定筛选条件的目标参数值的类别数量,确定对应的目标充电协议,或者,根据基于所述参数值序列生成的参数编码,确定对应的目标充电协议。
- 一种电子设备,其特征在于,包括:处理器;以及存储器,存储有计算机指令,所述计算机指令用于使所述处理器执行根据权利要求1至10任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,存储有计算机指令,所述计算机指令用于使计算机执行根据权利要求1至10任一项所述的方法。
- 一种计算机程序产品,其特征在于,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器根据权利要求1至10任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410947861.4 | 2024-07-15 | ||
| CN202410947861.4A CN121395604A (zh) | 2024-07-15 | 2024-07-15 | 协议识别的方法、装置、电子设备、存储介质及程序产品 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2026016901A1 true WO2026016901A1 (zh) | 2026-01-22 |
Family
ID=98436851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2025/106649 Pending WO2026016901A1 (zh) | 2024-07-15 | 2025-07-02 | 协议识别的方法、装置、电子设备、存储介质及程序产品 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN121395604A (zh) |
| WO (1) | WO2026016901A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150155918A1 (en) * | 2012-06-29 | 2015-06-04 | Koninklijke Philips N.V. | Wireless inductive power transfer |
| CN108988511A (zh) * | 2018-07-06 | 2018-12-11 | 佛山市盈智轩科技有限公司 | 一种高效无线充电方法及无线充电装置 |
| CN111953049A (zh) * | 2020-08-15 | 2020-11-17 | 广东省博康电子有限公司 | 一种qc快充的测试方法 |
| CN115995856A (zh) * | 2021-10-20 | 2023-04-21 | 华为技术有限公司 | 一种电子设备的充电方法及电子设备 |
| CN117175722A (zh) * | 2022-06-21 | 2023-12-05 | 惠州Tcl移动通信有限公司 | 设备充电方法、装置、计算机设备及计算机可读存储介质 |
-
2024
- 2024-07-15 CN CN202410947861.4A patent/CN121395604A/zh active Pending
-
2025
- 2025-07-02 WO PCT/CN2025/106649 patent/WO2026016901A1/zh active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150155918A1 (en) * | 2012-06-29 | 2015-06-04 | Koninklijke Philips N.V. | Wireless inductive power transfer |
| CN108988511A (zh) * | 2018-07-06 | 2018-12-11 | 佛山市盈智轩科技有限公司 | 一种高效无线充电方法及无线充电装置 |
| CN111953049A (zh) * | 2020-08-15 | 2020-11-17 | 广东省博康电子有限公司 | 一种qc快充的测试方法 |
| CN115995856A (zh) * | 2021-10-20 | 2023-04-21 | 华为技术有限公司 | 一种电子设备的充电方法及电子设备 |
| CN117175722A (zh) * | 2022-06-21 | 2023-12-05 | 惠州Tcl移动通信有限公司 | 设备充电方法、装置、计算机设备及计算机可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN121395604A (zh) | 2026-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| RU2632153C2 (ru) | Способ, устройство и терминал для отображения виртуальной клавиатуры | |
| EP2687943B1 (en) | Mobile terminal device and operation method. | |
| EP2752749A1 (en) | Processing method of touch screen device user interface and touch screen device | |
| EP2502405B1 (en) | System and method of haptic communication at a portable computing device | |
| CN104020878A (zh) | 触摸输入控制方法及装置 | |
| CN103729636A (zh) | 字符切割方法、装置及电子设备 | |
| CN103686464B (zh) | 设备控制方法、装置及电子设备 | |
| CN103856798A (zh) | 一种操作方法及电子设备 | |
| CN103869947A (zh) | 控制电子设备的方法及电子设备 | |
| RU2665300C2 (ru) | Способ и устройство для обработки точечной отчетности сенсорного экрана | |
| CN103957319A (zh) | 一种使用用户设备遥控目标设备的方法及用户设备 | |
| CN109561643A (zh) | 电磁干扰控制方法及相关产品 | |
| CN108920071A (zh) | 基于异形显示屏的控制方法、装置、存储介质及移动终端 | |
| CN111831138B (zh) | 无线耳机的信号识别方法、装置及无线耳机 | |
| CN109074187A (zh) | 触控检测误报点的确定方法、电容触控装置及电子装置 | |
| CN113992233B (zh) | 天线切换装置、方法和电子设备 | |
| CN113989963B (zh) | 信号处理方法及相关设备 | |
| CN107608714A (zh) | 字节对齐方法、装置及计算机可读存储介质 | |
| CN114217754A (zh) | 投屏控制方法、装置、电子设备及存储介质 | |
| CN117093051A (zh) | 时钟频率的切换方法、装置、电子设备和可读存储介质 | |
| CN112737149B (zh) | 信号发射方法、装置及电子设备 | |
| CN106462352B (zh) | 一种指纹事件的处理方法、装置及终端 | |
| CN121395604A (zh) | 协议识别的方法、装置、电子设备、存储介质及程序产品 | |
| CN109561202A (zh) | 控件处理方法、装置、终端设备、车机及系统 | |
| CN107193530A (zh) | 一种生成随机数的方法和装置 |
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: 25840265 Country of ref document: EP Kind code of ref document: A1 |