Protocol identification method and device, electronic equipment, storage medium and program product
By identifying the parameter value sequence and encoding of wireless charging electrical signals, the problem of quickly and accurately identifying charging protocols in wireless charging is solved, achieving efficient protocol identification.
Patent Information
- Application Number
- CN202410947861.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2026-01-23
AI Technical Summary
Existing technologies struggle to quickly and accurately identify charging protocols in wireless charging scenarios.
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 CN121395604A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a protocol identification method and device, electronic equipment, storage medium and program product. BACKGROUND
[0002] 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).
[0003] 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.
[0004] 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 prior art, it is usually difficult to accurately and quickly identify the charging protocol. SUMMARY
[0005] The purpose of the embodiments of the present application is to provide a protocol identification method and device, electronic equipment, storage medium and program product, which can quickly and accurately identify the charging protocol when wireless charging.
[0006] In one aspect, the embodiments of the present application provide a protocol identification method, which includes:
[0007] determining a parameter value sequence of a target signal parameter of an electric signal when the electric signal sent by the wireless charging device is received;
[0008] determining a corresponding target charging protocol according to the number of target parameter values in the parameter value sequence that meet the set filtering condition, or determining a corresponding target charging protocol according to a parameter code generated based on the parameter value sequence.
[0009] In one embodiment, the target signal parameter includes at least one of the following: frequency and voltage.
[0010] In one embodiment, determining a corresponding target charging protocol according to the number of target parameter values in the parameter value sequence that meet the set filtering condition includes:
[0011] filtering out target parameter values contained in a designated parameter set from the parameter value sequence;
[0012] determining the number of categories of the filtered target parameter values;
[0013] The charging protocol corresponding to the category number is determined as the target charging protocol.
[0014] In an embodiment, the charging protocol corresponding to the category number is determined as the target charging protocol, comprising:
[0015] If the category number is not less than the set number, the first charging protocol is determined as the target charging protocol, otherwise, the second charging protocol is determined as the target charging protocol.
[0016] In an embodiment, the target charging protocol corresponding to the parameter encoding generated based on the parameter value sequence is determined, comprising:
[0017] According to the correspondence between the parameter value and the encoding value, and each parameter value in the parameter value sequence, the parameter encoding corresponding to the parameter value sequence is obtained;
[0018] The charging protocol corresponding to the parameter encoding is determined as the target charging protocol.
[0019] In an embodiment, the charging protocol corresponding to the parameter encoding is determined as the target charging protocol, comprising:
[0020] If the parameter encoding is the target encoding, the first charging protocol is determined as the target charging protocol, otherwise, the second charging protocol is determined as the target charging protocol.
[0021] In an embodiment, the parameter value sequence of the target signal parameter of the electric signal is obtained, comprising:
[0022] Based on the electric signal, a plurality of parameter values of the target signal parameter are obtained;
[0023] If each parameter value of the target signal parameter meets the waveform curve rule, the parameter value sequence is generated according to the peak value in each parameter value.
[0024] In an embodiment, after the corresponding target charging protocol is determined, the method further comprises:
[0025] The response information is sent to the wireless charging device through the target charging protocol, so as to perform wireless charging through the target charging protocol.
[0026] In an embodiment, after the response information is sent to the wireless charging device, the method further comprises:
[0027] When it is determined that the new electric signal sent by the wireless charging device is received, the corresponding interaction information is determined according to the category number corresponding to the new electric signal, or the corresponding interaction information is determined according to the parameter encoding corresponding to the new electric signal.
[0028] In one implementation, 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.
[0029] In one aspect, the application provides a protocol identification device, comprising:
[0030] An obtaining unit is configured to obtain a parameter value sequence of a target signal parameter of an electric signal sent by a wireless charging device when the electric signal is received.
[0031] A determining unit is configured to determine 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 determine the corresponding target charging protocol according to a parameter code generated based on the parameter value sequence.
[0032] In one implementation, the target signal parameter includes at least one of frequency and voltage.
[0033] In one implementation, the determining unit is configured to:
[0034] Screen target parameter values included in a designated parameter set from the parameter value sequence.
[0035] Determine a category number of the screened target parameter values.
[0036] Determine a charging protocol corresponding to the category number as the target charging protocol.
[0037] In one implementation, the determining unit is configured to:
[0038] If the category number is not less than a set number, determine the target charging protocol as a first charging protocol, otherwise, determine the target charging protocol as a second charging protocol.
[0039] In one implementation, the determining unit is configured to:
[0040] Obtain a parameter code corresponding to the parameter value sequence according to a correspondence between the parameter value and the code value and each parameter value in the parameter value sequence.
[0041] Determine a charging protocol corresponding to the parameter code as the target charging protocol.
[0042] In one implementation, the determining unit is configured to: if the parameter code is a target code, determine the target charging protocol as a first charging protocol, otherwise, determine the target charging protocol as a second charging protocol.
[0043] In one implementation, the obtaining unit is configured to: obtain a plurality of parameter values of the target signal parameter based on the electric signal.
[0044] 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.
[0045] In an implementation, the determining unit is further configured to:
[0046] 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.
[0047] In an implementation, the determining unit is further configured to: determine, when a new electric signal sent by the wireless charging device is received, corresponding interaction information according to a category number corresponding to the new electric signal, or determine the corresponding interaction information according to a parameter code corresponding to the new electric signal.
[0048] In an implementation, 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 input voltage is adjusted by controlling a switching time of the inverter.
[0049] In an aspect, an electronic device is provided in the embodiments of the present application, and the electronic device comprises:
[0050] a processor; and
[0051] a memory storing computer instructions, the computer instructions being configured to cause the processor to perform steps of the method provided in any of the optional implementation manners of the protocol identification.
[0052] In an aspect, a computer readable storage medium is provided in the embodiments of the present application, and the computer readable storage medium stores computer instructions, the computer instructions being configured to cause a computer to perform steps of the method provided in any of the optional implementation manners of the protocol identification.
[0053] In an aspect, a computer program product is provided in the embodiments of the present application, and the computer program product comprises 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 the method provided in any of the optional implementation manners of the protocol identification.
[0054] The method of the protocol identification in the embodiments of the present application comprises: when an electric signal sent by a wireless charging device is received, obtaining a parameter value sequence of a target signal parameter of the electric signal; and 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 the corresponding target charging protocol according to a parameter code generated based on the parameter value sequence. In this way, the protocol identification is performed through the category number or the parameter code corresponding to the electric signal, and the efficiency and accuracy of the protocol identification can be improved. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0056] Figure 1 This is a schematic diagram of a protocol identification scenario in an embodiment of this application.
[0057] Figure 2 This is a flowchart of a protocol identification method in an embodiment of this application.
[0058] Figure 3 This is an example diagram of a frequency signal in an embodiment of this application.
[0059] Figure 4 This is a flowchart of a frequency-based protocol identification method according to an embodiment of this application.
[0060] Figure 5 This is a schematic diagram of a voltage signal curve in an embodiment of this application.
[0061] Figure 6 This is a schematic diagram of another voltage signal curve in an embodiment of this application.
[0062] Figure 7 This is a schematic diagram of a voltage input / output embodiment of this application.
[0063] Figure 8 This is a flowchart of a voltage-based protocol identification method according to an embodiment of this application.
[0064] Figure 9 This is an example diagram of a reference frequency in an embodiment of this application.
[0065] Figure 10 This is an example diagram of an electrical signal frequency in an embodiment of this application.
[0066] Figure 11 This is a flowchart of a protocol identification method based on frequency coding in an embodiment of this application.
[0067] Figure 12 This is a structural block diagram of a protocol identification device according to an embodiment of this application.
[0068] Figure 13 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0069] The technical solutions of the present application will be described clearly and completely in conjunction with the drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor 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.
[0070] 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.
[0071] 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.
[0072] Based on the defects of the above-mentioned related art, 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.
[0073] 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, etc. The present application will not be described here.
[0074] Referring to Figure 1 As shown in FIG. 1, it is a schematic diagram of a protocol identification scenario. Figure 1 As shown in the scenario shown in FIG. 1, it contains a to-be-charged device and a wireless charging device. The wireless charging device contains an inverter and a transmitter. The to-be-charged device contains 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 is excited by the changing magnetic field to generate an electric signal, and the electric signal can be processed by the rectifier circuit for subsequent processing, so as to realize 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.
[0075] The following describes the method for identifying a protocol in an embodiment of the present application, with reference to Figure 1 and Figure 2 The following describes the method for identifying a protocol in an embodiment of the present application, with reference to Figure 2 The following describes the method for identifying a protocol in an embodiment of the present application, with reference to Figure 1 The following describes the method for identifying a protocol in an embodiment of the present application, with reference to Figure 2 The following describes the method for identifying a protocol in an embodiment of the present application, with reference to
[0076] 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.
[0077] 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, and can obtain multiple parameter values of the target signal parameter and a parameter value sequence composed of the parameter values.
[0078] 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 scenario, for example, the target signal parameter can also be current. This is not limited herein.
[0079] 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.
[0080] The waveform curve rule can be set according to the periodic change of the parameter values, for example, if the voltage curve is a sine wave, it is determined that the waveform curve rule is met.
[0081] In this way, the voltage sequence or the frequency sequence of the excited electric signal can be obtained.
[0082] 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.
[0083] In an embodiment, when step 202 is performed, any of the following modes can be used:
[0084] Mode 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.
[0085] Optionally, the set screening condition can be a set of designated parameters. Different target parameter values can correspond to different categories, or parameter value intervals corresponding to each category are set in advance, so that the category corresponding to the parameter value interval to which each target parameter value belongs can be determined, and the number of categories can be counted.
[0086] In an implementation, target parameter values contained in the set of designated parameters are screened from the sequence of parameter values; the number of categories of the screened target parameter values is determined; and the charging protocol corresponding to the number of categories is determined as the target charging protocol.
[0087] 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.
[0088] 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.
[0089] For example, the first charging protocol can be a Power Matters Alliance (PMA) protocol, and the second charging protocol can be a qi protocol.
[0090] 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.
[0091] To improve the richness of the information transmitted based on the target signal parameter, the number of types of parameter values in the set of designated parameters is not less than a set number, and the difference between any two adjacent parameter values in the set of designated parameters can be greater than X, X being a positive number.
[0092] The following will be described in conjunction with Figure 3 For example, refer to Figure 3 , which is an example diagram of a frequency signal. Figure 3 In the figure, the frequencies are F1, F2 and F3 in turn. Assuming that the set number is 3, and the set of designated parameters 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 operating energy and constantly changes its operating frequency so that it contains F1, F2 and F3. After the mobile phone receives the electrical signal, it determines that the electrical signal contains a sequence of frequencies (i.e. a sequence of parameter values) of F1, F2 and F3. Since both the sequence of parameter values and the set of designated parameters contain F1, F2 and F3, the number of categories is 3 = the set number.
[0093] The following will be described in conjunction withFigure 4 An example is given for the first mode. Referring to Figure 4 As shown in the figure, a flow chart of a method for frequency-based protocol identification, the flow of the method includes:
[0094] S401: The wireless charging device regulates the frequency of the electric signal and sends the regulated electric signal.
[0095] S402: The to-be-charged device parses the received electric signal and obtains a parameter value sequence containing multiple frequency values.
[0096] S403: The to-be-charged device screens out target parameter values contained in the designated parameter set in the parameter value sequence.
[0097] 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.
[0098] S405: The to-be-charged device determines that the target charging protocol is the first charging protocol.
[0099] S406: The to-be-charged device determines that the target charging protocol is the second charging protocol.
[0100] In this way, the charging protocol can be accurately identified according to the number of types of frequencies of the electric signal, the detection mode is more reliable, the accuracy of protocol identification is improved, and the implementation mode is simpler without considering the sorting of various types of frequencies.
[0101] The second mode: determining the corresponding target charging protocol according to the parameter code generated based on the parameter value sequence.
[0102] In an implementation mode, the parameter code corresponding to the parameter value sequence is obtained according to the corresponding relationship between the parameter value and the code value and each parameter value in the parameter value sequence; the charging protocol corresponding to the parameter code is determined as the target charging protocol.
[0103] Among them, the corresponding relationship between the parameter value and the code value can be established in advance to encode, and the corresponding relationship between the parameter code and the charging protocol can be established in advance to identify the target charging protocol.
[0104] 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.
[0105] Optionally, the target code can correspond to at least three parameter values. Among them, the following multiple cases can be included:
[0106] 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.
[0107] In the case where the target signal parameter is voltage, the parameter value is determined by the input voltage of the inverter in the wireless charging device. For example, Figure 1 In wireless charging, the input voltage V-AB of the inverter can be adjusted to change the voltage sequence of the device being charged.
[0108] See Figure 5 The image shown is a schematic diagram of a voltage signal curve. Because... Figure 5 In the diagram, the voltage signal is a waveform; therefore, based on... Figure 5 The peak values of each voltage, namely V1, V2, V3, and V4, are used to generate a corresponding voltage value sequence. The corresponding code values of 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.
[0109] Similarly, see Figure 6 The image shows a schematic diagram of another voltage signal curve. It can be based on... Figure 6 The peak values of each voltage, namely V1, V2, V3, and V4, are used to generate a corresponding voltage value sequence. The parameter code corresponding to the voltage value sequence can be 1234321.
[0110] In this way, the strength of energy transmitted by the wireless base can be controlled by adjusting the input voltage of the inverter, thus forming information encoding.
[0111] Furthermore, 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. As the phase angle θ changes, information encoding and control can be implemented. At the receiving end, the output voltage V-CD will produce different voltage values corresponding to different phase angles θ. For example, V1, V2, V3, V4...
[0112] See Figure 7 The diagram shown is a schematic of a voltage input / output system. It includes four coordinate graphs, with the horizontal axis representing time. The first and second coordinate graphs represent... Figure 1 The switching times of each switch in the inverter are shown. The third coordinate graph represents the input voltage V-AB of the inverter, and the fourth coordinate graph represents the output voltage V-CD. When the phase angle θ is fixed, the output voltage V-CD remains unchanged, 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 will also change accordingly.
[0113] Referring to Figure 8 As shown in the figure, a flowchart of a method for voltage-based protocol identification, the flow of the method comprises:
[0114] S801: The wireless charging device regulates the voltage of the electric signal and sends the regulated electric signal.
[0115] S802: The to-be-charged device parses the received electric signal to obtain a parameter value sequence containing multiple voltage values.
[0116] S803: The to-be-charged device generates a parameter code based on the parameter value sequence.
[0117] S804: The to-be-charged device determines whether the parameter code is a target code. If yes, S805 is executed, otherwise, S806 is executed.
[0118] S805: The to-be-charged device determines that the target charging protocol is a first charging protocol.
[0119] S806: The to-be-charged device determines that the target charging protocol is a second charging protocol.
[0120] 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, it can be flexibly changed and can be any value, the encoding mode is diversified, various encoding modes such as quaternary and octal can be realized, the encoding content is rich, carries more content information, the amount of encoding content is large, which is beneficial to the wireless receiving end to obtain more information, and can reduce the information interaction time.
[0121] Further, the target signal parameter can also be 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 encoded based on a similar principle as the voltage value encoding, which will not be described here.
[0122] 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.
[0123] Optionally, the multiple frequency values of the electric signal can be directly extracted, and the electric signal can be analyzed based on the reference frequency value to obtain the frequency values. Further, the 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 encoding value corresponding to each difference. The reference frequency can also be referred to as a benchmark 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 to quickly realize parameter coding.
[0124] Referring to Figure 9 Fig. 1 shows an example diagram of a reference frequency. Figure 9 In the example shown in Fig. 1, the reference frequency value can be represented as Fref. Referring to Figure 10 Fig. 2 shows an example diagram of an electric signal frequency. Figure 10 In the example shown in Fig. 2, the frequency values of the electric signal are F1, F2, Fref, F3, and F4 in sequence.
[0125] Referring to Figure 11 Fig. 3 shows a flowchart of a method for protocol identification based on frequency coding. The flow of the method includes:
[0126] S1101: The wireless charging device regulates the frequency of the electric signal and sends the regulated electric signal.
[0127] S1102: The device to be charged analyzes the received electric signal to obtain a parameter value sequence containing multiple frequency values.
[0128] S1103: The device to be charged generates a parameter code based on the parameter value sequence.
[0129] S1104: The device to be charged determines whether the parameter code is a target code. If yes, S1105 is performed, otherwise, S1106 is performed.
[0130] S1105: The device to be charged determines that the target charging protocol is a first charging protocol.
[0131] S1106: The device to be charged determines that the target charging protocol is a second charging protocol.
[0132] In this way, the wireless charging device can change the working frequency based on the benchmark frequency Fref to realize information transmission in the energy transmission process. Since the adjustment range of the frequency value is wide, it can be flexibly changed and can be any value, so the coding mode is diversified, and various coding modes such as quaternary and octal can be realized. The coding content is rich and carries more content information. The amount of coding content is large, which is beneficial for the wireless receiving end to obtain more information and can reduce the time of information interaction.
[0133] Further, the response information can also be sent to the wireless charging device through the target charging protocol to perform wireless charging through the target charging protocol.
[0134] In an implementation, when the target charging protocol is the first charging protocol, the response information is sent to the wireless charging device through the first charging protocol; and when the target charging protocol is the second charging protocol, the response information is sent to the wireless charging device through the second charging protocol.
[0135] Further, when the new electric signal sent by the wireless charging device is received, the corresponding interaction information can also be determined according to the category number corresponding to the new electric signal, or the corresponding interaction information can also be determined according to the parameter code corresponding to the new electric signal.
[0136] In an implementation, when the new electric signal sent by the wireless charging device is received, the new parameter value sequence of the target signal parameter is obtained based on the new electric signal; the interaction information corresponding to the new parameter code is obtained according to the corresponding relationship between the parameter value and the code value, the parameter code corresponding to the new parameter value sequence, and the corresponding relationship between the parameter code and the information; and the interaction information corresponding to the category number can also be obtained in the same way, which is not described herein.
[0137] Further, the to-be-charged device can also return the transmission information to the wireless charging device by using the similar principle of the transmission interaction, which is not described herein.
[0138] In this way, not only can the information transmission and analysis be performed based on the electric signal and the parameter code in the initial stage of identifying the charging protocol, but also the information can be transmitted to the receiving end through the same way after entering the charging state to implement the information interaction between the wireless charging device.
[0139] In the embodiments of the present application, the category number or the parameter code of the target signal parameter is used to determine the corresponding target charging protocol, which can carry more abundant information, can be applied to protocol identification in a scene where multiple charging protocols exist, and can improve the efficiency and accuracy of protocol identification.
[0140] 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 the related data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for the user to select authorization or refusal.
[0141] Based on the same inventive concept, the embodiment of the present application further provides a protocol identification device. Since the above device and equipment solve the problem in the same principle as the method of identifying a protocol, the implementation of the above device can refer to the implementation of the method, and the repeated parts will not be described here. The device can be applied to electronic equipment, and the type of electronic equipment is not limited in the present application, which can be any suitable device type, such as terminal equipment and server, etc. The present application will not be described here.
[0142] Reference Figure 12 As shown in FIG. 12, it is a structural block diagram of the protocol identification device in the embodiment of the present application. In some embodiments, the protocol identification device of the present application includes:
[0143] The obtaining unit 1201 is configured to determine a parameter value sequence of a target signal parameter of an electric signal when receiving the electric signal sent by the wireless charging device;
[0144] The determining unit 1202 is configured to determine the corresponding target charging protocol according to the category number of the target parameter value in the parameter value sequence that meets the set screening condition, or determine the corresponding target charging protocol according to the parameter code generated based on the parameter value sequence.
[0145] In an embodiment, the target signal parameter includes at least one of the following: frequency and voltage.
[0146] In an embodiment, the determining unit 1202 is configured to:
[0147] Screen the target parameter value contained in the designated parameter set from the parameter value sequence;
[0148] Determine the category number of the screened target parameter value;
[0149] Determine the charging protocol corresponding to the category number as the target charging protocol.
[0150] In an embodiment, the determining unit 1202 is configured to:
[0151] If the category number is not less than the set number, determine the target charging protocol as the first charging protocol, otherwise, determine the target charging protocol as the second charging protocol.
[0152] In an embodiment, the determining unit 1202 is configured to:
[0153] Obtain the parameter code corresponding to the parameter value sequence according to the corresponding relationship between the parameter value and the code value, and each parameter value in the parameter value sequence;
[0154] Determine the charging protocol corresponding to the parameter code as the target charging protocol.
[0155] In an embodiment, the determining unit 1202 is configured to: if the parameter coding is the target coding, determine that the target charging protocol is the first charging protocol, or otherwise, determine that the target charging protocol is the second charging protocol.
[0156] In an embodiment, the obtaining unit 1201 is configured to: based on the electrical signal, obtain a plurality of parameter values of the target signal parameter.
[0157] If each parameter value of the target signal parameter meets the waveform curve rule, generate a parameter value sequence according to a peak value in the parameter values.
[0158] In an embodiment, the determining unit 1202 is further configured to:
[0159] Send the response information to the wireless charging device through the target charging protocol, so as to perform wireless charging through the target charging protocol.
[0160] In an embodiment, the determining unit 1202 is further configured to: when receiving a new electrical signal sent by the wireless charging device, determine the corresponding interaction information according to the number of categories corresponding to the new electrical signal, or determine the corresponding interaction information according to the parameter coding corresponding to the new electrical signal.
[0161] In an 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; and the wireless charging device adjusts the input voltage by controlling the switching time of the inverter.
[0162] The method for protocol identification in the embodiments of the present application includes: when receiving an electrical signal sent by a wireless charging device, obtaining a parameter value sequence of a target signal parameter of the electrical signal; and determining 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 determining the corresponding target charging protocol according to parameter coding generated based on the parameter value sequence. In this way, the protocol identification can be performed through the number of categories or the parameter coding of the electrical signal, so as to improve the efficiency and accuracy of the protocol identification.
[0163] In an embodiment of the present application, an electronic device is provided, which includes:
[0164] a processor; and
[0165] a memory storing computer instructions, the computer instructions being used to cause the processor to execute the method of any of the above embodiments.
[0166] In an embodiment of the present application, a computer readable storage medium is provided, which stores computer instructions, the computer instructions being used to cause a computer to execute the method of any of the above embodiments.
[0167] The embodiment of the present application further provides a computer program product, comprising computer readable code or a nonvolatile computer readable storage medium carrying computer readable code, when the computer readable code is run in a processor of an electronic device, the processor in the electronic device executes the method of any of the above embodiments.
[0168] Figure 13 A structural schematic diagram of an electronic device 1300 is shown. Referring to Figure 13 As shown, the electronic device 1300 comprises a processor 1310 and a memory 1320, and optionally, a power supply 1330, a display unit 1340, and an input unit 1350.
[0169] The processor 1310 is the control center of the electronic device 1300, and connects various components by using various interfaces and lines, and executes various functions of the electronic device 1300 by running or executing software programs and / or data stored in the memory 1320, thereby monitoring the electronic device 1300 as a whole.
[0170] In the embodiment of the present application, the processor 1310 executes each step in the above embodiment when calling the computer program stored in the memory 1320.
[0171] Optionally, the processor 1310 can comprise one or more processing units; preferably, the processor 1310 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1310. In some embodiments, the processor, the memory, can be realized on a single chip, and in some embodiments, they can also be realized on independent chips respectively.
[0172] The memory 1320 can mainly comprise a program storage area and a data storage area, wherein the program storage area can store the operating system, various applications, etc.; and the data storage area can store data created according to the use of the electronic device 1300, etc. In addition, the memory 1320 can comprise a high-speed random access memory, and can also comprise a nonvolatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device, etc.
[0173] The electronic device 1300 further comprises a power supply 1330 (such as a battery) for supplying power to various components, and the power supply can be logically connected with the processor 1310 through a power management system, so as to realize the functions of managing charging, discharging, and power consumption, etc. through the power management system.
[0174] The display unit 1340 can be used to display information input by a user or information provided to the user, as well as various menus of the electronic device 1300, and in embodiments of the present application, is mainly used to display a display interface of each application in the electronic device 1300 and objects such as text and pictures displayed in the display interface. The display unit 1340 can include a display panel 1341. The display panel 1341 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0175] The input unit 1350 can be used to receive information such as numbers or characters input by a user. The input unit 1350 can include a touch panel 1351 and other input devices 1352. The touch panel 1351, also known as a touch screen, can collect touch operations of a user thereon or adjacent thereto, such as operations of a user using a finger, a stylus, or any suitable object or accessory on or adjacent to the touch panel 1351.
[0176] Specifically, the touch panel 1351 can detect touch operations of a user and detect signals resulting from the touch operations, convert the signals into touch coordinates, send the touch coordinates to the processor 1310, and receive commands from the processor 1310 and execute the commands. In addition, the touch panel 1351 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. The other input devices 1352 can include one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, and the like), a trackball, a mouse, a joystick, and the like, but are not limited thereto.
[0177] Of course, the touch panel 1351 can cover the display panel 1341, and when the touch panel 1351 detects a touch operation thereon or adjacent thereto, transmits the touch operation to the processor 1310 to determine a type of the touch event, and then the processor 1310 provides a corresponding visual output on the display panel 1341 according to the type of the touch event. Although in Figure 13 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.
[0178] The electronic device 1300 can further include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, and the like. Of course, the electronic device 1300 described above can further include a camera and other components according to the needs in a specific application, and since these components are not the main components used in embodiments of the present application, they will not be described in detail. Figure 13are not shown and will not be described in detail.
[0179] Those skilled in the art can understand that Figure 13 The electronic device is merely an example and does not constitute a limitation on the electronic device, and can include more or fewer components than illustrated, or combine certain components, or different components.
[0180] For the convenience of description, each part is described as a module (or unit) according to a function. Of course, the functions of the modules (or units) can be implemented in the same or more software or hardware in implementing the present application.
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,