Data modulation method and device, transmitting end chip and medium

By completing data encoding and frequency modulation before the preset time in the wireless charging system, the problem of receiving-end parsing failure caused by complex data processing at high frequencies is solved, and fast and complete data transmission and multi-chip compatibility are achieved.

CN120692126APending Publication Date: 2025-09-23ZHEJIANG GEOFORCECHIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510950531.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-09-23

Smart Images

  • Figure CN120692126A_ABST
    Figure CN120692126A_ABST
Patent Text Reader

Abstract

The invention provides a data modulation method and device, a transmitting end chip and a medium, and relates to the technical field of wireless charging. The method comprises the following steps: acquiring to-be-sent data; according to a communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip, encoding data to be transmitted to obtain byte stream encoded data; if the preset time is reached, determining a carrier frequency corresponding to the byte stream coded data by adopting a corresponding relationship between preset coded data and frequency according to the byte stream coded data; and sending a wireless carrier signal to a receiving end chip according to the carrier frequency so as to send the data to be sent to the receiving end chip. According to the invention, the data modulation logic can be optimized, the successful transmission of the data is ensured, various protocol formats can be flexibly adapted, and various types of chips are compatible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless charging technology, and more specifically, to a data modulation method, device, transmitter chip, and medium. Background Art

[0002] In a wireless charging system, the receiver (RX) relies on amplitude shift keying (ASK) to communicate with the transmitter (TX), while the transmitter (TX) relies on frequency shift keying (FSK) to communicate with the receiver (RX). FSK represents different data by changing the carrier frequency. In binary frequency shift keying, the frequency of the carrier signal switches as the input code stream changes.

[0003] The commonly used FSK modulation method is to generate a pulse width modulation (PWM) wave through a timer and use the timer's built-in repeat counting mode. When the generated PWM wave reaches a certain number, an interrupt is triggered, and the data to be sent is processed and frequency modulated in the interrupt.

[0004] However, due to the complexity of the data processing process, when the carrier frequency is high, the interruption time is short, and when the instruction cycle is long, it is difficult to complete the data processing within the interruption time, resulting in the inability to guarantee the timing accuracy and the receiving end RX may fail to parse. Summary of the Invention

[0005] The purpose of this application is to provide a data modulation method, device, transmitter chip and storage medium to address the deficiencies in the above-mentioned prior art, so as to optimize the data modulation logic, ensure the successful transmission of data, and flexibly adapt to various protocol formats and be compatible with multiple types of chips.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows: In a first aspect, an embodiment of the present application provides a data modulation method, which is applied to a transmitter chip of a wireless charging system, wherein the wireless charging system further includes a receiver chip, and the transmitter chip wirelessly communicates with the receiver chip. The method includes: Get the data to be sent; Encoding the data to be sent according to the communication protocol between the transmitter chip and the receiver chip and the type of the transmitter chip to obtain byte stream encoded data; If the preset time is reached, determining the carrier frequency corresponding to the byte stream encoded data according to the byte stream encoded data and using a preset correspondence between the encoded data and the frequency; A wireless carrier signal is sent to the receiving end chip according to the carrier frequency, so as to send the data to be sent to the receiving end chip.

[0007] Optionally, encoding the data to be transmitted according to a communication protocol between the transmitting end chip and the receiving end chip and a type of the transmitting end chip to obtain byte stream encoded data includes: Convert the data to be sent according to the format information of the communication protocol to obtain data in a target format; The target format data is encoded according to the type of the transmitting end chip to obtain the byte stream encoded data.

[0008] Optionally, encoding the target format data according to the type of the transmitting end chip to obtain the byte stream encoded data includes: Grouping the target format data using a preset bit number to obtain multiple groups of byte stream data; If the type indication of the transmitting end chip does not support the preset encoding mode, it is determined that the multiple groups of byte stream data are the byte stream encoded data.

[0009] Optionally, encoding the target format data according to the type of the transmitting end chip to obtain the byte stream encoded data further includes: If the type indication of the transmitting end chip supports the preset encoding mode, the multiple groups of byte stream data are encoded according to the current frequency state of the transmitting end chip and the preset encoding index table to obtain multiple groups of byte stream encoded data.

[0010] Optionally, encoding the multiple groups of byte stream data according to the current frequency state of the transmitting end chip and a preset coding index table to obtain multiple groups of byte stream coded data includes: Determining, from the preset coding index table, a coding value for switching the current frequency state from a first frequency state to a second frequency state, according to the current frequency state and each data in each group of byte stream data; Record the code value corresponding to each data and the frequency state corresponding to the code value; Each group of byte stream data is encoded according to the encoding values ​​corresponding to the multiple data in each group of byte stream data to obtain each group of byte stream encoded data.

[0011] Optionally, the method further includes: If the type indication of the transmitting chip recognizes hexadecimal data and supports the preset encoding method, the multiple groups of byte stream encoded data are converted into hexadecimal data.

[0012] Optionally, if the preset time is reached, determining, according to the byte stream coded data, a carrier frequency corresponding to the byte stream coded data using a preset correspondence between the byte stream coded data and the frequency, includes: If the preset time is reached, the PWM number interrupt of the timer is enabled; If the timer triggers an interrupt, the carrier frequency is determined according to the byte stream coded data and the correspondence between the preset coded data and the frequency.

[0013] In a second aspect, an embodiment of the present application further provides a data modulation device, which is applied to a transmitter chip of a wireless charging system, wherein the wireless charging system further includes a receiver chip, and the transmitter chip wirelessly communicates with the receiver chip. The device includes: A data acquisition module, used to acquire data to be sent; a data encoding module, configured to encode the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data; a frequency determination module configured to determine, when a preset time is reached, based on the byte stream encoded data and using a preset correspondence between byte stream encoded data and frequency, a carrier frequency corresponding to the byte stream encoded data; The signal sending module is used to send a wireless carrier signal to the receiving end chip according to the carrier frequency, so as to send the data to be sent to the receiving end chip.

[0014] Optionally, the data encoding module is specifically used to convert the format of the data to be sent according to the format information of the communication protocol to obtain target format data; and encode the target format data according to the type of the transmitting end chip to obtain the byte stream encoded data.

[0015] Optionally, the data encoding module is specifically used to group the target format data using a preset number of bits to obtain multiple groups of byte stream data; if the type indication of the transmitting end chip does not support the preset encoding method, determine that the multiple groups of byte stream data are the byte stream encoded data.

[0016] Optionally, the data encoding module is also used to encode the multiple groups of byte stream data according to the current frequency state of the transmitting end chip and the preset encoding index table to obtain multiple groups of byte stream encoded data if the type indication of the transmitting end chip supports the preset encoding method.

[0017] Optionally, the data encoding module is also used to determine, from the preset encoding index table, a coding value that switches the current frequency state from the first frequency state to the second frequency state based on the current frequency state and each data in each group of byte stream data; record the coding value corresponding to each data and the frequency state corresponding to the coding value; and encode each group of byte stream data based on the coding values ​​corresponding to multiple data in each group of byte stream data to obtain each group of byte stream encoded data.

[0018] Optionally, the data encoding module is further configured to convert the multiple groups of byte stream encoded data into hexadecimal data if the type indication of the transmitting end chip recognizes hexadecimal data and supports the preset encoding method.

[0019] Optionally, the frequency determination module is specifically used to enable the PWM number interrupt of the timer if a preset time is reached; if the timer triggers an interrupt, the carrier frequency is determined according to the byte stream encoded data and the correspondence between the preset encoded data and the frequency.

[0020] In a third aspect, an embodiment of the present application further provides a transmitter chip, comprising: a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor. When the transmitter chip is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the data modulation method as described in any one of the first aspects.

[0021] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data modulation method as described in any one of the first aspects are executed.

[0022] The beneficial effects of this application are: The data modulation method, device, transmitter chip, and medium provided in this application encode the data to be transmitted before a preset time. After the preset time, the byte stream encoded data is directly frequency modulated to obtain a wireless carrier signal based on the correspondence between the preset encoded data and the frequency. This ensures that the data can be quickly and completely sent to the receiver chip after the preset time, ensuring that the receiver chip can successfully parse the data. Furthermore, by encoding the data based on the communication protocol between the transmitter chip and the receiver chip and the type of the transmitter chip, it can flexibly cope with various protocol formats, has better scalability, can adapt to multiple chips, and has stronger compatibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 An architectural diagram of a wireless charging system provided in an embodiment of the present application; Figure 2 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 1 ; Figure 3 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 2 ; Figure 4 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 3 ; Figure 5 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 4 ; Figure 6 A coding diagram provided for an embodiment of the present application; Figure 7 A schematic diagram of the data modulation process provided in an embodiment of the present application; Figure 8 The flow chart of the data modulation method provided in the embodiment of the present application Figure 1 ; Figure 9 The flow chart of the data modulation method provided in the embodiment of the present application Figure 2 ; Figure 10 A schematic diagram of the structure of a data modulation device provided in an embodiment of the present application; Figure 11 A schematic diagram of a transmitter chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0026] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.

[0027] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It should be noted that, in the absence of conflict, the features in the embodiments of this application can be combined with each other.

[0029] Figure 1 The architecture diagram of the wireless charging system provided in the embodiment of the present application is as follows: Figure 1 As shown, the wireless charging system may include: a transmitter chip and a receiver chip, and the transmitter chip and the receiver chip perform wireless communication.

[0030] Among them, the transmitting end chip can be set in the wireless charging device, and the receiving end chip can be set in the terminal device to be charged.

[0031] Based on the wireless charging system, the specific implementation of the data modulation method applied to the transmitter chip is described below in conjunction with specific embodiments.

[0032] Figure 2 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method may include: S101: Obtain data to be sent.

[0033] In this embodiment, the data to be sent is hexadecimal data. After the data to be sent is acquired, the data to be sent is converted into binary data.

[0034] S102 : Encode the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data.

[0035] In this embodiment, the communication protocol specifies relevant information for communication between the transmitter chip and the receiver chip, and may at least include the data format for communication between the transmitter chip and the receiver chip. That is, during data transmission between the transmitter chip and the receiver chip, the transmitted data must meet the data format in order to be correctly recognized by the transmitter chip and the receiver chip, otherwise it will be considered as unrecognizable data.

[0036] The types of transmitter chips are divided into microcontroller units (MCU) and system-on-chips (SoC). SoC chips are further divided into whether they support preset encoding methods and the supported data bases.

[0037] First, according to the communication protocol between the transmitting chip and the receiving chip, the data format is determined, and the data to be sent is processed according to the requirements of the data format. Then, according to the type of the transmitting chip, it is determined whether to use a preset encoding method to encode the format-converted data. Then, according to the data base supported by the chip, the unencoded bit stream data or the encoded bit stream data is grouped and the base conversion is performed to obtain byte stream encoded data, that is, byte stream encoded data.

[0038] S103: If the preset time is reached, determine the carrier frequency corresponding to the byte stream coded data according to the byte stream coded data and the preset correspondence between the coded data and the frequency.

[0039] In this embodiment, the communication protocol between the transmitter chip and the receiver chip specifies the sending time of the FSK modulated signal, and the preset time is the signal sending time specified in the protocol.

[0040] In some embodiments, a timer is provided in the transmitter chip. After the encoding of the data to be transmitted is completed, the timer is started and continues to count. When the count value reaches a set value, it is determined that the timer has overflowed.

[0041] The correspondence between the preset coded data and the frequency indicates the frequency corresponding to each bit of coded data. If the coded data is binary data, the correspondence is the correspondence between binary 0, 1 and the frequency. For example, binary 0 corresponds to the base frequency, and binary corresponds to the modulation frequency. The base frequency can be 1200Hz and the modulation frequency can be 2200Hz.

[0042] If the byte stream encoded data is hexadecimal data, the corresponding relationship is the corresponding relationship between hexadecimal numbers 0 to 9, A to F and frequency.

[0043] After the preset time is reached, the sending chip determines the reading method of the byte stream encoded data based on the chip type. The reading method can be bit by bit or a preset number of bytes. After reading the corresponding data, the carrier frequency corresponding to the byte stream encoded data is determined based on the correspondence between the preset encoded data and the frequency.

[0044] If the reading method is bit-by-bit reading, the carrier frequency corresponding to each bit of data is determined each time a bit of data is read. If the reading method is to read a preset number of bytes, for example, 4-byte reading, the carrier frequency corresponding to each 4 bytes of data is determined each time 4 bytes of data are read.

[0045] S104 . Send a wireless carrier signal to the receiving end chip according to the carrier frequency, so as to send the data to be sent to the receiving end chip.

[0046] In this embodiment, a wireless carrier signal is sent to the receiving chip based on the carrier frequency of each encoded data in the byte stream encoded data. The receiving chip decodes the wireless carrier signal based on the data format specified in the communication protocol, whether the preset encoding method is supported, the indication information of the preset encoding method, and the correspondence between the preset encoding data and the frequency, and determines the data sent by the transmitting chip.

[0047] The data modulation method provided in the above embodiment encodes the data to be transmitted before a preset time. After the preset time, the byte stream encoded data is directly frequency modulated to produce a wireless carrier signal based on the preset correspondence between the encoded data and the frequency. This ensures that the data can be quickly and completely transmitted to the receiving chip after the preset time, ensuring that the receiving chip can successfully parse the data. Furthermore, by encoding the data based on the communication protocol between the transmitting and receiving chips and the type of the transmitting chip, the method can flexibly cope with various protocol formats, improve scalability, adapt to multiple chips, and enhance compatibility.

[0048] In one possible implementation, Figure 3 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the above S102 encodes the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data, which may include: S201 : Perform format conversion on the data to be sent according to the format information of the communication protocol to obtain target format data.

[0049] S202: Encode the target format data according to the type of the transmitting end chip to obtain byte stream encoded data.

[0050] In this embodiment, first, the data format is determined according to the communication protocol between the transmitting chip and the receiving chip, and the format of the data to be sent is converted to obtain the target format data; then, according to the type of the transmitting chip, it is determined whether to use a preset encoding method to encode the target format data, and then according to the data base supported by the chip, the unencoded bit stream data or the encoded bit stream data is grouped and the base conversion is performed to obtain byte stream encoded data, that is, byte stream encoded data.

[0051] For example, if the communication protocol between the transmitter chip and the receiver chip is the Qi protocol, the Qi protocol stipulates that each data packet consists of 11 bits, including a start bit (fixed to "0"), 8 bits of data, a parity bit, and a stop bit (fixed to "1"). Then, after the hexadecimal data to be sent is converted into binary data, a start bit needs to be added in front of every 8 bits of binary data, and a parity bit and a stop bit need to be added at the end of every 8 bits of binary data to form 11 bits of data.

[0052] It should be noted that the above data format conversion is only an example. Depending on the communication protocol, the method of converting the data format is also different. For example, if a private communication protocol stipulates that a 4-bit preamble code needs to be added before the start bit, the preamble code can be added after completing the format conversion.

[0053] The data modulation method provided in the above embodiment encodes data according to the communication protocol between the transmitting chip and the receiving chip and the type of the transmitting chip. It can flexibly cope with various protocol formats, has better scalability, and can be adapted to multiple chips, with stronger compatibility.

[0054] In one possible implementation, Figure 4 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, the process of encoding the target format data to obtain byte stream encoded data in S202 according to the type of the transmitting end chip may include: S301: Grouping target format data using a preset bit number to obtain multiple groups of byte stream data.

[0055] S302: If the type indication of the transmitting end chip does not support the preset encoding mode, determine that the multiple groups of byte stream data are byte stream encoded data.

[0056] In this embodiment, after completing the format conversion of the data to be transmitted, the target format data is connected to form bit stream data, and the bit stream data is grouped according to a preset number of bits to obtain multiple groups of byte stream data.

[0057] For example, if three bytes of data to be sent are converted into three 11-bit data, the three 11-bit data are concatenated to obtain 33-bit bit stream data, and then the 33-bit bit stream data is grouped with each 8 bits as one byte. Since 33 cannot be divided by 8, the remaining 1 bit constitutes a separate byte, and the idle bits are filled with 0.

[0058] If the type indication of the transmitter chip does not support the preset encoding method, there is no need to further encode the multiple groups of byte stream data, and the multiple groups of byte stream data are directly used as byte stream encoded data.

[0059] In some embodiments, if the SoC chip recognizes hexadecimal data, multiple groups of byte stream data may be converted into multiple bytes of hexadecimal data as byte stream encoded data.

[0060] In another possible implementation, the process of encoding the target format data according to the type of the transmitting end chip in S202 to obtain byte stream encoded data may further include: If the type indication of the transmitter chip supports the preset encoding mode, multiple groups of data to be sent are encoded according to the current frequency state of the transmitter chip and the preset encoding index table to obtain multiple groups of byte stream encoded data.

[0061] In this embodiment, the preset encoding method is used to indicate the encoding of each bit of data in the byte stream data. The preset encoding method uses a preset encoding index table to encode each bit of data. The preset encoding index table specifies different encoding values ​​corresponding to binary 0 and 1 respectively.

[0062] In one embodiment, binary 0 corresponds to two coding values, and binary 1 corresponds to two coding values. It is necessary to determine the target coding value corresponding to binary 0 and the target coding value corresponding to binary 1 based on the current frequency state of the transmitting end chip.

[0063] Among them, each code value has a corresponding frequency. After determining the target code value corresponding to each bit of data according to the current frequency state, it is necessary to update the current frequency state to the last frequency state corresponding to the target code value.

[0064] Furthermore, Figure 5 Schematic diagram of the data modulation method provided in the embodiment of the present application Figure 4 ,like Figure 5As shown, the process of encoding multiple groups of to-be-transmitted data according to the current frequency state of the transmitter chip and the preset coding index table to obtain multiple groups of byte stream encoded data may include: S401: Determine, from a preset coding index table, a coding value for switching the current frequency state from a first frequency state to a second frequency state according to the current frequency state and each data in each group of byte stream data.

[0065] S402: Record the code value corresponding to each data and the frequency state corresponding to the code value.

[0066] S403 . Encode each group of byte stream data according to the encoding values ​​corresponding to the multiple data in each group of byte stream data to obtain each group of byte stream encoded data.

[0067] In this embodiment, in the process of encoding each group of byte stream data, it is stipulated that the last frequency state and the starting frequency state corresponding to the encoding values ​​of two adjacent bit data need to be switched, that is, if the last frequency state corresponding to the encoding value of the previous bit data is the first frequency state, then the starting frequency state corresponding to the encoding value of the next bit data needs to be the second frequency state, or, if the last frequency state corresponding to the encoding value of the previous bit data is the second frequency state, then the starting frequency state corresponding to the encoding value of the next bit data needs to be the first frequency state.

[0068] According to each data in each group of byte stream data, multiple candidate coding values ​​corresponding to each data are determined from the preset coding index table. According to the current frequency state, the candidate coding values ​​corresponding to the multiple candidate coding values ​​are determined to have a starting frequency state different from the current frequency state as the coding value of each data. Then, the last frequency state of the coding value is updated to the current coding value.

[0069] If the current frequency state is the baseband frequency state, you need to select the code value of the starting frequency state as the modulation frequency state. If the current frequency state is the frequency modulation frequency state, you need to select the code value of the starting frequency state as the baseband frequency state.

[0070] Each data in each group of byte stream data is encoded in turn, and the current frequency state is updated until the encoding of each group of byte data is completed to obtain each group of byte stream encoded data.

[0071] In some embodiments, the preset encoding method may be to convert 1-bit data into 2-bit data, for example, convert binary 0 into binary 11 or 00, and convert binary 1 into binary 10 or 01.

[0072] Among them, 11 corresponds to generating 2n PWM waves with a cycle frequency of fmod; 00 corresponds to generating 2n PWM waves with a cycle frequency of fop; 10 corresponds to generating n PWM waves with a cycle frequency of fmod, and then generating n PWM waves with a cycle frequency of fop; 01 corresponds to generating n PWM waves with a cycle frequency of fop, and then generating n PWM waves with a cycle frequency of fmod.

[0073] Take 0x22 (00100010->0011010011001011) as an example, the conversion starts from the low bit, and the current frequency state fpwm = fop, Figure 6 The coding diagram provided in the embodiment of this application is as follows: Figure 6 As shown, the first bit of data is 0, and the corresponding candidate encoding value is 00 or 11. Since the current frequency state is fop, it is necessary to select the encoding value with the starting frequency state as fmod. Therefore, the data 0 is converted to 11, fpwm = fmod, and it lasts for 2n cycles.

[0074] Similarly, the second bit of data is 1, and the corresponding candidate encoding value is 10 or 01. Since the current frequency state is fmod, it is necessary to select the encoding value with the starting frequency state as fop. Therefore, the data 1 is converted to 01, fpwm = fop, which lasts for n cycles, and fpwm = fmod, which lasts for n cycles.

[0075] Similarly, the third data bit is 0, converted to 00, fpwm = fop, and continues for 2n cycles; the fourth data bit is 0, converted to 11, fpwm = fmod, and continues for 2n cycles; the fifth data bit is 0, converted to 00, fpwm = fop, and continues for 2n cycles; the sixth data bit is 1, converted to 10, fpwm = fmod, and continues for n cycles, fpwm = fop, and continues for n cycles; the seventh data bit is 0, converted to 11, fpwm = fmod, and continues for 2n cycles; the eighth data bit is 0, converted to 00, fpwm = fop, and continues for 2n cycles. After the conversion is completed, the 8-bit data 00100010 is converted to the 16-bit data 0011010011001011, forming two new bytes: 0x34 0xCB.

[0076] In some embodiments, the method may further include: If the type indication of the transmitter chip recognizes hexadecimal data and supports the preset encoding method, the multiple groups of byte stream encoded data are converted into hexadecimal data.

[0077] In this embodiment, if the SoC chip recognizes hexadecimal data, multiple groups of byte stream data can be converted into multiple bytes of hexadecimal data as byte stream encoded data.

[0078] For example, Figure 7 The data modulation process diagram provided in the embodiment of the present application is as follows: Figure 7 As shown, the hexadecimal data 0x11, 0x22 and 0x33 are converted into binary numbers respectively. According to the data format of the communication protocol, the 8-bit binary number is converted into an 11-bit number and grouped into multiple groups of byte stream data. If the transmitter chip does not support the preset encoding method, the multiple groups of byte stream data are used as byte stream encoding data. After the transmitter chip detects the timer trigger, the byte stream encoding data corresponding to the preset number of bits is loaded. According to the correspondence between the preset encoding data and the frequency, the carrier frequency corresponding to each data is determined, and the wireless carrier signal corresponding to the carrier frequency is sent.

[0079] If the transmitter chip supports the preset encoding method, the preset encoding method is used to complete the encoding of 1-bit to 2-bit data, obtain byte stream encoded data, read data bit by bit from the low bit, and determine the carrier frequency corresponding to each data based on the correspondence between the preset encoded data and the frequency, and send the wireless carrier signal corresponding to the carrier frequency.

[0080] If the transmitting chip supports the preset encoding method and recognizes hexadecimal data, the byte stream data is converted into hexadecimal data, and the hexadecimal data corresponding to the preset number of bits is loaded. According to the correspondence between the preset encoding data and the frequency, the carrier frequency corresponding to each data is determined, and the wireless carrier signal corresponding to the carrier frequency is sent.

[0081] In a possible implementation, if the preset time is reached in S103, determining the carrier frequency corresponding to the byte stream encoded data based on the byte stream encoded data and using a preset correspondence between the encoded data and the frequency includes: If the preset time is reached, the PWM number interrupt of the timer is enabled; if the timer triggers the interrupt, the carrier frequency is determined according to the byte stream encoding data and the corresponding relationship between the preset byte stream encoding data and the frequency.

[0082] In this embodiment, if the chip type of the transmitting chip is MCU, the MCU needs to generate a carrier signal according to the byte stream encoded data after the interrupt is triggered. Then, after the preset time is reached, the PWM number interrupt of the timer is enabled to check whether the PWM cycle count reaches the preset threshold. If the PWM cycle count reaches the preset threshold, the interrupt is triggered and the data modulation and sending logic is entered. At this time, since the data to be sent has been modulated, it is only necessary to determine the carrier frequency corresponding to the byte stream encoded data byte by byte based on the correspondence between the encoded data and the frequency.

[0083] For example, Figure 8 The flow chart of the data modulation method provided in the embodiment of the present application Figure 1 ,like Figure 8 As shown, if the transmitting chip is a SoC chip, after the preset time is reached, 32-bit byte stream encoded data is loaded each time, and when the byte stream encoded data is traversed, the data sending process ends.

[0084] Figure 9 The flow chart of the data modulation method provided in the embodiment of the present application Figure 2 ,like Figure 9 As shown, if the transmitting chip is an MCU chip, after the preset time is reached, the PWM interrupt of the timer is enabled to determine whether the PWM interrupt is triggered. If the interrupt is triggered, data is taken bit by bit from the lowest bit in the byte stream encoded data. If the data is 0, the frequency of the PWM wave is fop, and if the data is 1, the frequency of the PWM wave is fmod.

[0085] Based on the above method embodiment, an embodiment of the present application further provides a data modulation device, which is applied to a transmitter chip of a wireless charging system. The wireless charging system also includes a receiver chip, and the transmitter chip communicates wirelessly with the receiver chip. Figure 10 A structural diagram of a data modulation device provided in an embodiment of the present application is shown in FIG. Figure 10 As shown, the device may include: Data acquisition module 501, used to acquire data to be sent; The data encoding module 502 is used to encode the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data; The frequency determination module 503 is configured to determine the carrier frequency corresponding to the byte stream encoded data based on the byte stream encoded data and the preset correspondence between the byte stream encoded data and the frequency when the preset time is reached; The signal sending module 504 is configured to send a wireless carrier signal to the receiving end chip according to the carrier frequency, so as to send data to be sent to the receiving end chip.

[0086] Optionally, the data encoding module 502 is specifically configured to convert the format of the data to be transmitted according to the format information of the communication protocol to obtain target format data; and encode the target format data according to the type of the transmitting end chip to obtain byte stream encoded data.

[0087] Optionally, the data encoding module 502 is specifically configured to group the target format data using a preset number of bits to obtain multiple groups of byte stream data; if the type indication of the transmitting end chip does not support the preset encoding method, determine that the multiple groups of byte stream data are byte stream encoded data.

[0088] Optionally, the data encoding module 502 is further used to encode multiple groups of byte stream data according to the current frequency state of the transmitting end chip and the preset encoding index table to obtain multiple groups of byte stream encoded data if the type indication of the transmitting end chip supports a preset encoding method.

[0089] Optionally, the data encoding module 503 is also used to determine, from a preset encoding index table, a coding value that switches the current frequency state from a first frequency state to a second frequency state based on the current frequency state and each data in each group of byte stream data; record the coding value corresponding to each data, and the frequency state corresponding to the coding value; and encode each group of byte stream data based on the coding values ​​corresponding to multiple data in each group of byte stream data to obtain each group of byte stream encoded data.

[0090] Optionally, the data encoding module 503 is further configured to convert the multiple groups of byte stream encoded data into hexadecimal data if the type indication of the transmitting end chip indicates recognition of hexadecimal data and supports a preset encoding method.

[0091] Optionally, the frequency determination module 503 is specifically configured to enable a PWM number interrupt of the timer if a preset time is reached; if the interrupt is triggered, determine the carrier frequency according to the byte stream encoded data and the correspondence between the preset encoded data and the frequency.

[0092] The above-mentioned device is used to execute the method provided in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0093] The above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For example, when a module is implemented by scheduling program code through a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0094] Figure 11 A schematic diagram of a transmitter chip provided in an embodiment of the present application is shown in FIG. Figure 11As shown, the transmitter chip 600 includes: a processor 601, a storage medium 602, and a bus. The storage medium 602 stores program instructions executable by the processor 601. When the transmitter chip 600 is running, the processor 601 and the storage medium 602 communicate via the bus, and the processor 601 executes the program instructions to perform the above method embodiment. The specific implementation methods and technical effects are similar and will not be repeated here.

[0095] Optionally, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above method embodiment is executed.

[0096] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0097] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0098] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0099] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: USB flash drives, mobile hard drives, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), magnetic disks or optical disks, and other media that can store program code.

[0100] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited to them. Any changes or substitutions that can be easily conceived by any person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A data modulation method, characterized in that: A transmitter chip is applied to a wireless charging system, wherein the wireless charging system further includes a receiver chip, wherein the transmitter chip wirelessly communicates with the receiver chip, and the method includes: Get the data to be sent; Encoding the data to be sent according to the communication protocol between the transmitter chip and the receiver chip and the type of the transmitter chip to obtain byte stream encoded data; If the preset time is reached, determining the carrier frequency corresponding to the byte stream encoded data according to the byte stream encoded data and using a preset correspondence between the encoded data and the frequency; A wireless carrier signal is sent to the receiving end chip according to the carrier frequency, so as to send the data to be sent to the receiving end chip.

2. The method according to claim 1, wherein The step of encoding the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data includes: Convert the data to be sent according to the format information of the communication protocol to obtain data in a target format; The target format data is encoded according to the type of the transmitting end chip to obtain the byte stream encoded data.

3. The method according to claim 2, wherein The step of encoding the target format data according to the type of the transmitting end chip to obtain the byte stream encoded data includes: Grouping the target format data using a preset bit number to obtain multiple groups of byte stream data; If the type indication of the transmitting end chip does not support the preset encoding mode, it is determined that the multiple groups of byte stream data are the byte stream encoded data.

4. The method according to claim 3, wherein The step of encoding the target format data according to the type of the transmitting end chip to obtain the byte stream encoded data further includes: If the type indication of the transmitter chip supports the preset encoding mode, the multiple groups of byte stream data are encoded according to the current frequency state of the transmitter chip and the preset encoding index table to obtain multiple groups of byte stream encoded data.

5. The method according to claim 4, wherein The encoding of the multiple groups of byte stream data according to the current frequency state of the transmitting end chip and the preset encoding index table to obtain multiple groups of byte stream encoded data includes: Determining, from the preset coding index table, a coding value for switching the current frequency state from a first frequency state to a second frequency state, according to the current frequency state and each data in each group of byte stream data; Record the code value corresponding to each data and the frequency state corresponding to the code value; Each group of byte stream data is encoded according to the encoding values ​​corresponding to the multiple data in each group of byte stream data to obtain each group of byte stream encoded data.

6. The method according to claim 4, wherein The method further comprises: If the type indication of the transmitting chip recognizes hexadecimal data and supports the preset encoding method, the multiple groups of byte stream encoded data are converted into hexadecimal data.

7. The method according to claim 1, wherein If the preset time is reached, determining, according to the byte stream encoded data, a carrier frequency corresponding to the byte stream encoded data using a preset correspondence between the byte stream encoded data and the frequency, includes: If the preset time is reached, the PWM number interrupt of the timer is enabled; If the timer triggers an interrupt, the carrier frequency is determined according to the byte stream coded data and the corresponding relationship between the preset coded data and the frequency.

8. A data modulation device, characterized in that: A transmitter chip for a wireless charging system, wherein the wireless charging system further includes a receiver chip, wherein the transmitter chip wirelessly communicates with the receiver chip, and the device includes: A data acquisition module, used to acquire data to be sent; a data encoding module, configured to encode the data to be transmitted according to the communication protocol between the transmitting end chip and the receiving end chip and the type of the transmitting end chip to obtain byte stream encoded data; a frequency determination module configured to determine, when a preset time is reached, based on the byte stream encoded data and using a preset correspondence between byte stream encoded data and frequency, a carrier frequency corresponding to the byte stream encoded data; The signal sending module is used to send a wireless carrier signal to the receiving end chip according to the carrier frequency, so as to send the data to be sent to the receiving end chip.

9. A transmitter chip, characterized in that: include: A processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor. When the transmitter chip is running, the processor and the storage medium communicate via the bus, and the processor executes the program instructions to perform the steps of the data modulation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, executes the steps of the data modulation method according to any one of claims 1 to 7.