Protocol identification method and apparatus, and electronic device, storage medium and program product
By identifying the parameter value sequence and encoding of wireless charging electrical signals, the problem of fast and accurate identification of charging protocols in wireless charging is solved, and efficient identification under multiple protocols is achieved.
Patent Information
- Application Number
- PCT/CN2025/106649
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-15
- Filing Date
- 2025-07-02
- Publication Date
- 2026-01-22
AI Technical Summary
In wireless charging scenarios, existing technologies struggle to quickly and accurately identify charging protocols.
By determining the sequence of target signal parameters of the received electrical signal, and based on the number of target parameter values that meet the set filtering conditions in the parameter value sequence or the generated parameter code, the target charging protocol is identified.
It improves the efficiency and accuracy of protocol identification, enabling accurate identification of charging protocols in scenarios where multiple charging protocols exist.
Smart Images

Figure CN2025106649_22012026_PF_FP_ABST
Abstract
Description
Method, device, electronic device, storage medium and program product for protocol identification
[0001] Cross-reference to related applications
[0002] The present disclosure claims priority to Chinese Patent Application No. 202410947861.4, filed on July 15, 2024, entitled “Method, device, electronic device, storage medium and program product for protocol identification”, the entire contents of which are incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application relates to the technical field of communication, in particular to a method, device, electronic device, storage medium and program product for protocol identification. BACKGROUND
[0004] In a wireless charging scenario, a device to be charged (e.g., a mobile phone) can usually be wirelessly charged by a wireless charging device (e.g., a wireless charging base).
[0005] The principle of wireless charging technology is similar to that of a transformer, which is based on the physical phenomenon of “electricity generating magnetism, and magnetism generating electricity”. This technology involves two coils, one in the wireless charging device as a transmitter, and the other in the device to be charged as a receiver. When the transmitter coil is powered, a changing magnetic field is generated, which in turn induces an electric signal in the receiver coil, thereby achieving wireless transmission of energy.
[0006] When wireless charging is performed, the device to be charged usually needs to determine the charging protocol with the wireless charging device first, and then perform wireless charging through the charging protocol to enter a high-power charging state. However, under the existing technology, it is usually difficult to accurately and quickly identify the charging protocol. SUMMARY
[0007] The purpose of the embodiments of the present application is to provide a method, device, electronic device, storage medium and program product for protocol identification, which can quickly and accurately identify the charging protocol when wireless charging is performed.
[0008] In one aspect, the present application provides a method for protocol identification, the method comprising:
[0009] determining, when a wireless charging device sends an electric signal, a sequence of parameter values of a target signal parameter of the electric signal;
[0010] determining a corresponding target charging protocol according to the number of target parameter values in the sequence of parameter values that meet a set screening condition, or determining a corresponding target charging protocol according to a parameter code generated based on the sequence of parameter values.
[0011] In an embodiment, the target signal parameter includes at least one of frequency and voltage.
[0012] In an embodiment, the target charging protocol is determined according to a category number of target parameter values in the parameter value sequence that meet a set screening condition.
[0013] The target parameter values included in the designated parameter set are screened from the parameter value sequence.
[0014] The category number of the screened target parameter values is determined.
[0015] The charging protocol corresponding to the category number is determined as the target charging protocol.
[0016] In an embodiment, the charging protocol corresponding to the category number is determined as the target charging protocol, including:
[0017] If the category number is not less than a set number, the target charging protocol is determined as a first charging protocol, otherwise, the target charging protocol is determined as a second charging protocol.
[0018] In an embodiment, the target charging protocol is determined according to a parameter code generated based on the parameter value sequence, including:
[0019] The parameter code corresponding to the parameter value sequence is obtained according to a correspondence between the parameter values and the code values, and each parameter value in the parameter value sequence.
[0020] The charging protocol corresponding to the parameter code is determined as the target charging protocol.
[0021] In an embodiment, the charging protocol corresponding to the parameter code is determined as the target charging protocol, including:
[0022] If the parameter code is a target code, the target charging protocol is determined as a first charging protocol, otherwise, the target charging protocol is determined as a second charging protocol.
[0023] In an embodiment, the parameter value sequence of the target signal parameter of the electrical signal is obtained, including:
[0024] A plurality of parameter values of the target signal parameter are obtained based on the electrical signal.
[0025] If each parameter value of the target signal parameter meets a waveform curve rule, the parameter value sequence is generated according to a peak value in each parameter value.
[0026] In an embodiment, after the corresponding target charging protocol is determined, the method further includes:
[0027] The response information is sent to the wireless charging device through the target charging protocol to perform wireless charging through the target charging protocol.
[0028] In an implementation, after sending the response information to the wireless charging device, the method further includes:
[0029] Upon determining that the new electric signal sent by the wireless charging device is received, the corresponding interaction information is determined according to the number of categories corresponding to the new electric signal, or the corresponding interaction information is determined according to the parameter code corresponding to the new electric signal.
[0030] In an implementation, when the target signal parameter is voltage, 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.
[0031] In an aspect, an apparatus for protocol identification is provided in the embodiments of the present application, and the apparatus includes:
[0032] The obtaining unit is configured to, upon determining that the electric signal sent by the wireless charging device is received, obtain a parameter value sequence of a target signal parameter of the electric signal.
[0033] The determining unit is configured to determine a corresponding target charging protocol according to the number of categories of target parameter values in the parameter value sequence that meet a set screening condition, or determine the corresponding target charging protocol according to a parameter code generated based on the parameter value sequence.
[0034] In an implementation, the target signal parameter includes at least one of the following: frequency and voltage.
[0035] In an implementation, the determining unit is configured to:
[0036] Screen target parameter values included in a designated parameter set from the parameter value sequence.
[0037] Determine the number of categories of the screened target parameter values.
[0038] Determine the charging protocol corresponding to the number of categories as the target charging protocol.
[0039] In an implementation, the determining unit is configured to:
[0040] If the number of categories is not less than a set number, the target charging protocol is determined as a first charging protocol, otherwise, the target charging protocol is determined as a second charging protocol.
[0041] In an implementation, the determining unit is configured to:
[0042] According to the correspondence between the parameter values and the code values, and each parameter value in the parameter value sequence, obtain a parameter code corresponding to the parameter value sequence.
[0043] The parameter coding corresponds to a charging protocol, and the charging protocol is determined as a target charging protocol.
[0044] In an embodiment, the determining unit is configured to: if the parameter coding is the target coding, determine that the target charging protocol is the first charging protocol; otherwise, determine that the target charging protocol is the second charging protocol.
[0045] In an embodiment, the obtaining unit is configured to: based on the electrical signal, obtain a plurality of parameter values of the target signal parameter.
[0046] If each parameter value of the target signal parameter meets the waveform curve rule, a parameter value sequence is generated according to a peak value in each parameter value.
[0047] In an embodiment, the determining unit is further configured to:
[0048] The response information is sent to the wireless charging device through the target charging protocol, so that the wireless charging is performed through the target charging protocol.
[0049] In an embodiment, the determining unit is further configured to: when a new electrical signal sent by the wireless charging device is received, determine corresponding interaction information according to a number of categories corresponding to the new electrical signal, or determine the corresponding interaction information according to a parameter coding corresponding to the new electrical signal.
[0050] In an embodiment, when the target signal parameter is voltage, the parameter value of the target signal parameter is determined by an input voltage of an inverter of the wireless charging device; and the wireless charging device adjusts the input voltage by controlling a switching time of the inverter.
[0051] In an embodiment, an electronic device is provided, including:
[0052] a processor; and
[0053] a memory storing computer instructions, the computer instructions being configured to cause the processor to perform steps of a method provided in any of the various optional implementation manners of the protocol identification.
[0054] In an embodiment, a computer readable storage medium is provided, storing computer instructions, the computer instructions being configured to cause a computer to perform steps of a method provided in any of the various optional implementation manners of the protocol identification.
[0055] In an embodiment, a computer program product is provided, including computer readable code, or a non-volatile computer readable storage medium carrying the computer readable code, when the computer readable code is run in a processor of an electronic device, the processor in the electronic device performs steps of a method provided in any of the various optional implementation manners of the protocol identification.
[0056] The method for protocol identification in the embodiments of the present application comprises: determining a parameter value sequence of a target signal parameter of an electric signal when the electric signal sent by a wireless charging device is received; determining a corresponding target charging protocol according to a category number of a target parameter value in the parameter value sequence that meets a set screening condition, or determining a corresponding target charging protocol according to a parameter code generated based on the parameter value sequence. In this way, the efficiency and accuracy of protocol identification can be improved by identifying the protocol according to the category number or the parameter code of the electric signal. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the description of the embodiments or the prior art will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0058] FIG. 1 is a schematic diagram of a protocol identification scenario in the embodiments of the present application.
[0059] FIG. 2 is a flowchart of a method for protocol identification in the embodiments of the present application.
[0060] FIG. 3 is an example diagram of a frequency signal in the embodiments of the present application.
[0061] FIG. 4 is a flowchart of a method for frequency-based protocol identification in the embodiments of the present application.
[0062] FIG. 5 is a curve diagram of a voltage signal in the embodiments of the present application.
[0063] FIG. 6 is another curve diagram of a voltage signal in the embodiments of the present application.
[0064] FIG. 7 is a schematic diagram of a voltage input and output in the embodiments of the present application.
[0065] FIG. 8 is a flowchart of a method for voltage-based protocol identification in the embodiments of the present application.
[0066] FIG. 9 is an example diagram of a reference frequency in the embodiments of the present application.
[0067] FIG. 10 is an example diagram of a frequency of an electric signal in the embodiments of the present application.
[0068] FIG. 11 is a flowchart of a method for frequency code-based protocol identification in the embodiments of the present application.
[0069] FIG. 12 is a structural block diagram of a protocol identification device in the embodiments of the present application.
[0070] FIG. 13 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0071] The technical solutions of the present application will be clearly and completely described below with reference to the drawings. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application. In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0072] In a wireless charging scenario, when wireless charging is performed, the to-be-charged device usually needs to determine the charging protocol with the wireless charging device first, and then performs wireless charging through the charging protocol. However, in the prior art, it is usually difficult to accurately and quickly identify the charging protocol.
[0073] For example, the receiving end detects the current working frequency of the received electric signal in real time, and takes the F1 frequency value as the reference frequency. When it is detected that the current working frequency changes from F1 to F2, it is determined that wireless charging is performed through the target charging protocol. However, in this way, only the frequency change from F1 to F2 is used for protocol identification, which can only be applied to a single charging protocol scenario. When there are multiple charging protocols, it is usually difficult to quickly and accurately identify the charging protocol.
[0074] Based on the defects of the related art described above, the embodiments of the present application provide a protocol identification method, device, electronic device, storage medium and program product, which aims to quickly and accurately identify the charging protocol when wireless charging is performed.
[0075] The embodiments of the present application provide a protocol identification method, which can be applied to an electronic device. The type of the electronic device is not limited in the present application, which can be any suitable device type, such as a terminal device and a server, and the like. The present application will not be described here.
[0076] Referring to FIG. 1, a schematic diagram of a protocol identification scenario is shown. The scenario shown in FIG. 1 includes a to-be-charged device and a wireless charging device. The wireless charging device includes an inverter and a transmitter. The to-be-charged device includes a rectifier circuit and a receiver. The wireless charging device can energize the transmitter through the inverter. After the transmitter is energized, a changing magnetic field is generated. The receiver generates an electric signal from the changing magnetic field, and can perform subsequent processing on the electric signal through the rectifier circuit, thereby realizing wireless transmission of energy between the to-be-charged device and the wireless charging device. In this process, the to-be-charged device can identify the current target charging protocol according to the change of the electric signal, and then can perform wireless charging.
[0077] The method for protocol identification in the embodiment of the present application will be described below in combination with FIG. 1 and FIG. 2. Referring to FIG. 2, it is a flow chart of the method for protocol identification in the embodiment of the present application, which is applied to the device to be charged in FIG. 1. The method will be described below in combination with FIG. 2. The specific implementation process of the method is as follows:
[0078] Step 201: When receiving the electric signal sent by the wireless charging device, obtaining a parameter value sequence of a target signal parameter of the electric signal.
[0079] In an embodiment, after the device to be charged contacts the wireless charging device, the wireless charging generates a changing magnetic field through the transmitter. The device to be charged obtains the electric signal excited by the receiver to the changing magnetic field. The device to be charged samples the electric signal in a period of time, can obtain multiple parameter values of the target signal parameter, and obtains a parameter value sequence composed of the parameter values.
[0080] The target signal parameter includes at least one of the following: frequency and voltage. In actual application, the target signal parameter can be set according to the actual application scene. For example, the target signal parameter can also be current. This is not limited here.
[0081] Further, if the parameter values of the target signal parameter meet the waveform curve rule, the parameter value sequence is generated according to the peak value in the parameter values.
[0082] The waveform curve rule can be set according to the periodic change of the parameter value. For example, if the voltage curve is a sine wave, it is determined that the waveform curve rule is met.
[0083] In this way, the voltage sequence or the frequency sequence of the excited electric signal can be obtained.
[0084] Step 202: According to the category number of the target parameter value meeting the set screening condition in the parameter value sequence, the corresponding target charging protocol is determined, or according to the parameter code generated based on the parameter value sequence, the corresponding target charging protocol is determined.
[0085] In an embodiment, when step 202 is performed, any of the following methods can be used:
[0086] Method one: According to the category number of the target parameter value meeting the set screening condition in the parameter value sequence, the corresponding target charging protocol is determined.
[0087] Optionally, the set screening condition can be a specified parameter set. Different target parameter values can correspond to different categories, or the parameter value interval corresponding to each category is set in advance, so that the category to which each target parameter value belongs can be determined, and the number of categories is counted.
[0088] In an implementation, target parameter values contained in the designated parameter set are filtered from the parameter value sequence; the number of categories of the filtered target parameter values is determined; and a charging protocol corresponding to the number of categories is determined as the target charging protocol.
[0089] The number of categories and the charging protocol can be pre-established in a corresponding relationship, so that the target charging protocol corresponding to the number of categories of the electrical signal can be determined according to the corresponding relationship.
[0090] When the charging protocol contains only two, if the number of categories is not less than a set number, the target charging protocol can be determined as the first charging protocol, otherwise, the target charging protocol is determined as the second charging protocol.
[0091] For example, the first charging protocol can be a Power Matters Alliance (PMA) protocol, and the second charging protocol can be a qi protocol.
[0092] For example, if the target signal parameter is frequency, the set number can be not less than 3, and if the target signal parameter is voltage, the set number can be not less than 2. In actual application, the set number can be set according to the actual application scene, which is not limited here.
[0093] To improve the richness of the information transmitted based on the target signal parameter, the number of types of parameter values in the designated parameter set is not less than a set number, and the difference between any two adjacent parameter values in the designated parameter set can be greater than X, X is a positive number.
[0094] The following is an example combined with FIG. 3. Referring to FIG. 3, it is an example diagram of a frequency signal. In FIG. 3, the frequencies are F1, F2 and F3 in turn. Assuming that the set number is 3, and the designated parameter set contains F1, F2 and F3. After the mobile phone (i.e. the device to be charged) is placed on the wireless base (i.e. the wireless charging device), the wireless base provides initial working energy and constantly changes its working frequency to contain F1, F2 and F3. After the mobile phone receives the electrical signal, it determines that the electrical signal contains the frequency sequence (i.e. the parameter value sequence) of F1, F2 and F3. Since the parameter value sequence and the designated parameter set both contain F1, F2 and F3, the number of categories is 3 = the set number.
[0095] The following is an example combined with FIG. 4. Referring to FIG. 4, it is a flowchart of a method for protocol identification based on frequency. The flow of the method includes:
[0096] S401: The wireless charging device regulates the frequency of the electrical signal and sends the regulated electrical signal.
[0097] S402: The to-be-charged device parses the received electric signal to obtain a parameter value sequence containing a plurality of frequency values.
[0098] S403: The to-be-charged device screens out target parameter values contained in the designated parameter set in the parameter value sequence.
[0099] S404: The to-be-charged device determines whether the number of categories of the target parameter values is higher than a set number. If yes, S405 is executed; otherwise, S406 is executed.
[0100] S405: The to-be-charged device determines that the target charging protocol is the first charging protocol.
[0101] S406: The to-be-charged device determines that the target charging protocol is the second charging protocol.
[0102] In this way, the charging protocol can be accurately identified according to the number of types of frequencies of the electric signal, the detection manner is more reliable, the accuracy of protocol identification is improved, and the implementation manner is simpler without considering the sorting of various types of frequencies.
[0103] Method two: determining the corresponding target charging protocol according to a parameter code generated based on the parameter value sequence.
[0104] In an implementation manner, the parameter code corresponding to the parameter value sequence is obtained according to the correspondence between the parameter values and the code values and each parameter value in the parameter value sequence; and the charging protocol corresponding to the parameter code is determined as the target charging protocol.
[0105] The correspondence between the parameter values and the code values can be established in advance to perform coding, and the correspondence between the parameter code and the charging protocol can be established in advance to identify the target charging protocol.
[0106] When the charging protocol is only two, if the parameter code is a target code, the target charging protocol can be determined as the first charging protocol; otherwise, the target charging protocol is determined as the second charging protocol.
[0107] Optionally, the target code can correspond to at least three parameter values. The following multiple cases can be included:
[0108] The first case is that the parameter value sequence is a voltage value sequence. The correspondence between the voltage values and the code values can be established in advance, and then the code values corresponding to each voltage value in the voltage value sequence can be obtained, and the parameter code is determined based on the code values.
[0109] In the case where the target signal parameter is voltage, the parameter value of the target signal parameter is determined by the input voltage of the inverter of the wireless charging device. For example, in FIG. 1, the wireless charging device can adjust the input voltage V-AB of the inverter, thereby changing the voltage value sequence of the to-be-charged device.
[0110] Referring to FIG. 5, it is a curve diagram of a voltage signal. Since the voltage signal in FIG. 5 is a waveform diagram, a corresponding voltage value sequence can be generated based on each voltage peak value V1, V2, V3 and V4 in FIG. 5. The corresponding encoding values of V1, V2, V3 and V4 can be 1, 2, 3 and 4 respectively, and the parameter encoding corresponding to the voltage value sequence can be 1234.
[0111] Similarly, referring to FIG. 6, it is another curve diagram of a voltage signal. A corresponding voltage value sequence can be generated based on each voltage peak value V1, V2, V3 and V4 in FIG. 6. The parameter encoding corresponding to the voltage value sequence can be 1234321.
[0112] In this way, the strength control of the wireless base station sending energy can be realized by adjusting the input voltage of the inverter, and the encoding of information can be formed.
[0113] Further, the inverter can also adjust the input voltage by the switching time, that is, by controlling the phase angle θ of the switch of the inverter to realize phase shift control, so that a special voltage waveform is generated on V-AB. With the change of the phase angle θ, information encoding and control can be realized. The output voltage V-CD at the receiving end will produce different voltage values corresponding to different phase angles θ. For example, V1, V2, V3 and V4.
[0114] Referring to FIG. 7, it is a schematic diagram of voltage input and output. It includes four coordinate graphs, and the horizontal coordinates are all time. The first coordinate graph and the second coordinate graph represent the switching time of each switch of the inverter in FIG. 1. The third coordinate graph represents the input voltage V-AB of the inverter, and the fourth coordinate graph is the output voltage V-CD. When the phase angle θ is fixed, the output voltage V-CD is constant, for example, the output voltage V-CD is V1. When the phase angle θ changes, the input voltage V-AB changes, and the output voltage V-CD also changes accordingly.
[0115] Referring to FIG. 8, it is a flow chart of a method for voltage-based protocol identification. The flow of the method includes:
[0116] S801: The wireless charging device regulates the voltage of the electric signal and sends the regulated electric signal.
[0117] S802: The to-be-charged device analyzes the received electric signal to obtain a parameter value sequence containing multiple voltage values.
[0118] S803: The to-be-charged device generates a parameter encoding based on the parameter value sequence.
[0119] S804: The device to be charged judges whether the parameter code is the target code. If yes, S805 is executed; otherwise, S806 is executed.
[0120] S805: The device to be charged determines that the target charging protocol is the first charging protocol.
[0121] S806: The device to be charged determines that the target charging protocol is the second charging protocol.
[0122] In this way, the voltage value sequence of the receiver can be controlled by adjusting the input voltage of the inverter or adjusting the switching time of the inverter. Since the adjustment range of the voltage value is wide, the voltage value can be flexibly changed and can be any value. Therefore, the coding mode is diversified, various coding modes such as quaternary and octal can be implemented, the coding content is rich, more content information can be carried, the amount of coding content is large, and the wireless receiving end can obtain more information, thereby reducing the information interaction time.
[0123] Further, the target signal parameter can also be a current, and the parameter value sequence is a current value sequence. A corresponding relationship between the current value and the code value can be established in advance, and then the code value corresponding to each current value in the current value sequence can be obtained, and the parameter code is determined based on each code value. The current value can be coded based on a similar principle as the voltage value coding, which will not be described here.
[0124] The second case is that the parameter value sequence is a frequency value sequence. A corresponding relationship between the frequency value and the code value can be established in advance, and then the code value corresponding to each frequency value in the frequency value sequence can be obtained, and the parameter code is determined based on each code value.
[0125] Optionally, the plurality of frequency values of the electric signal can be directly extracted, and each frequency value can also be obtained by analyzing the electric signal based on a reference frequency value. Further, a difference between each frequency value and the reference frequency value of the reference frequency can be determined, and the parameter code can be obtained according to the code value corresponding to each difference. The reference frequency can also be referred to as a reference frequency. For example, the reference frequency value is also stored in the chip of the device to be charged, and the frequency change is detected with the reference frequency value as the reference, so that the parameter code can be quickly implemented.
[0126] Referring to FIG. 9, an example diagram of a reference frequency is shown. In FIG. 9, the reference frequency value can be represented as Fref. Referring to FIG. 10, an example diagram of a frequency of an electric signal is shown. In FIG. 10, the frequency values of the electric signal are F1, F2, Fref, F3, and F4 in sequence.
[0127] Referring to FIG. 11, a flowchart of a method for protocol identification based on frequency coding is shown. The flowchart of the method comprises the following steps:
[0128] S1101: The wireless charging device regulates the frequency of the electrical signal and sends the regulated electrical signal.
[0129] S1102: The device to be charged analyzes the received electrical signal to obtain a sequence of parameter values containing multiple frequency values.
[0130] S1103: Parameter encoding generated by the device to be charged based on the parameter value sequence.
[0131] S1104: The device to be charged determines whether the parameter code is the target code. If yes, proceed to S1105; otherwise, proceed to S1106.
[0132] S1105: The device to be charged determines the target charging protocol as the first charging protocol.
[0133] S1106: The device to be charged determines that the target charging protocol is the second charging protocol.
[0134] In this way, 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.
[0135] Furthermore, a response message can be sent to the wireless charging device via the target charging protocol to enable wireless charging.
[0136] In one embodiment, when the target charging protocol is a first charging protocol, 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.
[0137] Furthermore, when a new electrical signal is received from a wireless charging device, 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.
[0138] In one implementation, upon determining that a new electrical signal has been received from a wireless charging device, a new sequence of parameter values for the target signal parameters is obtained based on the new electrical signal. According to the correspondence between parameter values and encoded values, and the parameter encoding corresponding to the new parameter value sequence, and according to the correspondence between parameter encoding and information, the interaction information corresponding to the new parameter encoding is obtained. Similarly, the interaction information corresponding to the number of categories can also be obtained, which will not be elaborated here.
[0139] Further, the to-be-charged device can also return transmission information to the wireless charging device by using a similar principle to the transmission interaction, which is not described herein.
[0140] In this way, not only can information transmission and analysis be performed based on the electrical signal and parameter coding in the initial stage of identifying the charging protocol, but also information can be transmitted to the receiving end by this method after entering the charging state, so as to realize information interaction with the wireless charging device.
[0141] In the embodiments of the present application, the corresponding target charging protocol is determined based on the number of categories of target signal parameters or parameter coding, which can carry more abundant information, can be applied to protocol identification in a scenario where multiple charging protocols exist, and can improve the efficiency and accuracy of protocol identification.
[0142] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose authorization or refusal.
[0143] Based on the same inventive concept, the embodiments of the present application also provide a device for protocol identification. Since the above device and equipment solve the problem by similar principles to the method of protocol identification, the implementation of the above device can be referred to the implementation of the method, and the repeated parts will not be described herein. The device can be applied to electronic devices, and the type of electronic device is not limited in the present application, which can be any suitable device type, such as terminal device and server, etc., which will not be described herein.
[0144] Referring to FIG. 12, it is a structural block diagram of the device for protocol identification in the embodiments of the present application. In some embodiments, the device for protocol identification of the present application includes:
[0145] The obtaining unit 1201 is configured to determine the parameter value sequence of the target signal parameter of the electrical signal when the electrical signal sent by the wireless charging device is received.
[0146] The determining unit 1202 is configured to determine the corresponding target charging protocol according to the number of categories of target parameter values in the parameter value sequence that meet the set screening condition, or determine the corresponding target charging protocol according to the parameter coding generated based on the parameter value sequence.
[0147] In one embodiment, the target signal parameter includes at least one of the following: frequency and voltage.
[0148] In one embodiment, the determining unit 1202 is used to:
[0149] Filter the target parameter values contained in the specified parameter set from the parameter value sequence;
[0150] Determine the number of categories of the target parameter values to be filtered out;
[0151] The charging protocol corresponding to the number of categories is determined as the target charging protocol.
[0152] In one embodiment, the determining unit 1202 is used to:
[0153] If the number of categories is not less than the set number, 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.
[0154] In one embodiment, the determining unit 1202 is used to:
[0155] Based on the correspondence between parameter values and encoded values, and each parameter value in the parameter value sequence, the parameter encoding corresponding to the parameter value sequence is obtained;
[0156] The charging protocol corresponding to the parameter encoding is determined as the target charging protocol.
[0157] In one embodiment, 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.
[0158] In one embodiment, the obtaining unit 1201 is used to: obtain multiple parameter values of the target signal parameters based on the electrical signal;
[0159] If the values of each parameter of the target signal conform to the waveform curve rules, then a parameter value sequence is generated based on the peak values of each parameter.
[0160] In one embodiment, the determining unit 1202 is further configured to:
[0161] The system sends a response message to the wireless charging device via the target charging protocol to enable wireless charging.
[0162] In one embodiment, 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.
[0163] In one embodiment, when the target signal parameter is voltage, 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.
[0164] 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. Thus, by identifying the protocol through the number of categories corresponding to the electrical signal or through parameter codes, the efficiency and accuracy of protocol identification can be improved.
[0165] In this embodiment of the application, an electronic device is provided, including:
[0166] Processor; and
[0167] The memory stores computer instructions that cause the processor to execute the methods of any of the above-described embodiments.
[0168] In this application embodiment, a computer-readable storage medium is provided, storing computer instructions for causing a computer to perform the methods of any of the above embodiments.
[0169] 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.
[0170] Figure 13 shows a schematic diagram of the structure of an electronic device 1300. Referring to Figure 13, 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.
[0171] 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.
[0172] In this embodiment, when the processor 1310 calls the computer program stored in the memory 1320, it executes the steps in the above embodiments.
[0173] Optionally, 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. In some embodiments, the processor and memory may be implemented on a single chip; in some embodiments, they may also be implemented separately on independent chips.
[0174] 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. In addition, 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.
[0175] 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.
[0176] 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 interfaces of various applications in the electronic device 1300, as well as text, images, and other objects displayed on the display interfaces. 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.
[0177] 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).
[0178] Specifically, 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.
[0179] Of course, the touch panel 1351 can cover the display panel 1341. When 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. Although in FIG. 13, 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.
[0180] 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. Of course, depending on the needs of a specific application, 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.
[0181] Those skilled in the art will understand that 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.
[0182] For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.
Claims
1. A method of protocol recognition, characterized by, The method comprises: determining, when receiving an electric signal sent by a wireless charging device, a parameter value sequence of a target signal parameter of the electric signal; determining a corresponding target charging protocol according to a category number of target parameter values in the parameter value sequence that meet a set screening condition, or determining the corresponding target charging protocol according to a parameter code generated based on the parameter value sequence.
2. The method of claim 1, wherein, The target signal parameter comprises at least one of a frequency and a voltage.
3. The method according to claim 1 or 2, characterized in that, The determination of the corresponding target charging protocol according to the category number of target parameter values in the parameter value sequence that meet the set screening condition comprises: screening, from the parameter value sequence, target parameter values contained in a designated parameter set; determining a category number of the screened target parameter values; determining, as the target charging protocol, a charging protocol corresponding to the category number.
4. The method of claim 3, wherein, The determination of the charging protocol corresponding to the parameter code as the target charging protocol comprises: if the category number is not less than a set number, determining the target charging protocol as a first charging protocol, otherwise, determining the target charging protocol as a second charging protocol.
5. The method according to claim 1 or 2, characterized in that, The determination of the corresponding target charging protocol according to the parameter code generated based on the parameter value sequence comprises: obtaining, according to a corresponding relationship between a parameter value and a code value and each parameter value in the parameter value sequence, a parameter code corresponding to the parameter value sequence; determining, as the target charging protocol, a charging protocol corresponding to the parameter code.
6. The method of claim 5, wherein, The determination of the charging protocol corresponding to the parameter code as the target charging protocol comprises: if the parameter code is a target code, determining the target charging protocol as a first charging protocol, otherwise, determining the target charging protocol as a second charging protocol.
7. The method of claim 5, wherein, The obtaining of the parameter value sequence of the target signal parameter of the electric signal comprises: obtaining a plurality of parameter values of the target signal parameter based on the electric signal; if each parameter value of the target signal parameter meets a waveform curve rule, generating the parameter value sequence according to a peak value in each parameter value.
8. The method of claim 1 or 2, wherein, After determining the corresponding target charging protocol, the method further comprises: sending, to the wireless charging device, response information through the target charging protocol, so as to perform wireless charging through the target charging protocol.
9. The method of claim 8, wherein, After sending the response information to the wireless charging device, the method further comprises: determining, when receiving a new electric signal sent by a wireless charging device, corresponding interaction information according to a category number corresponding to the new electric signal, or determining the corresponding interaction information according to a parameter code corresponding to the new electric signal.
10. The method of claim 1 or 2, wherein, In a case where the target signal parameter is a voltage, the parameter value of the target signal parameter is determined by an input voltage of an inverter of the wireless charging device; The wireless charging device adjusts the input voltage by controlling a switching time of the inverter.
11. An apparatus for protocol recognition, the apparatus comprising: The apparatus comprises: an obtaining unit configured to determine, when receiving an electric signal sent by a wireless charging device, a parameter value sequence of a target signal parameter of the electric signal. The determining unit is configured to determine the target charging protocol according to a category number of target parameter values in the parameter value sequence that meet a set screening condition, or determine the target charging protocol according to a parameter code generated based on the parameter value sequence.
12. An electronic device, comprising: The method comprises: a processor; and a memory storing computer instructions for causing the processor to perform the method according to any one of claims 1 to 10. The computer instructions are configured to cause a computer to perform the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The computer readable code or the non-volatile computer readable storage medium carrying the computer readable code is included, and when the computer readable code runs in a processor of an electronic device, the processor in the electronic device performs the method according to any one of claims 1 to 10.
14. A computer program product, characterised in that,
Citation Information
Patent Citations
An efficient wireless charging method and a wireless charging device
CN108988511A
QC quick charge test method
CN111953049A
Charging method of electronic equipment and electronic equipment
CN115995856A
Equipment charging method and device, computer equipment and computer readable storage medium
CN117175722A
Wireless inductive power transfer
US20150155918A1