A chip and data conversion method

By designing a chip that includes communication protocol conversion unit, protocol selection unit and configuration unit, the problem of the lack of universality of RF recognition RF chip in communication protocol conversion is solved, and the conversion of any communication protocol is realized, with high versatility and low power. Consumable, suitable for multiple communication protocol platforms.

CN114759942BActive Publication Date: 2024-11-19HANGZHOU CHIPJET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011559748.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-11-19
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

The existing RFID RF chips lack universality in communication protocol conversion and cannot convert any communication protocol. The application-specific integrated circuit chips can only convert fixed protocols and cannot adapt to different communication protocol platforms.

Method used

A chip is designed, including a modem module and a digital processing module. The digital processing module includes a communication protocol conversion unit, a protocol selection unit and a configuration unit. It can receive wireless radio frequency signals and convert them into different communication protocols through an internal bus connection. Standard signal in format realizes conversion of any communication protocol.

Benefits of technology

It realizes efficient conversion of data of any communication protocol, has high versatility, can be applied to any communication protocol platform, reduces chip power consumption, and supports flexible switching between different protocol platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114759942B_ABST
    Figure CN114759942B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a chip and a data conversion method. The chip includes: a modulation and demodulation module and a digital processing module. The digital processing module includes a communication protocol conversion unit, a protocol selection unit and a configuration unit. The problem that the chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol is solved. Data conversion between multiple communication protocols is performed through protocol configuration information stored in a storage array, and conversion of data of any communication protocol is realized. The chip has high versatility and can be applied to any communication protocol platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a chip and a data conversion method. Background Art

[0002] There are currently two ways for the wireless modules of radio frequency identification RF chips on the market to communicate with general digital chips. One is to use the system-level chip SOC+RF chip method. In this method, after the SOC receives the RF wireless signal, the software simulates the communication protocol to communicate with the external chip, but the communication speed is slow and the chip power consumption is high. The other is the form of a dedicated integrated circuit chip ASIC+RF chip, which uses a dedicated integrated circuit chip to receive the RF wireless signal and then converts it into a communication protocol for signal interaction. Although this method improves the communication speed, the existing dedicated integrated circuit chip can only perform the conversion of a fixed communication protocol, is not universal, and cannot be transplanted to other communication protocol platforms. Summary of the invention

[0003] The present invention provides a chip and a data conversion method to realize the conversion of data in the chip between any communication protocols.

[0004] In a first aspect, an embodiment of the present invention provides a chip, the chip comprising: a modulation and demodulation module and a digital processing module, the digital processing module comprising a communication protocol conversion unit, a protocol selection unit and a configuration unit;

[0005] The modulation and demodulation module is connected to the communication protocol conversion unit through an internal bus, and is used to receive the wireless radio frequency signal through the antenna and convert the wireless radio frequency signal into a digital signal;

[0006] A configuration unit, connected to the communication protocol conversion unit via an internal bus, and used for storing target configuration information;

[0007] A communication protocol conversion unit, connected to the protocol selection unit via an internal bus, for obtaining target configuration information from the configuration unit and converting the digital signal into a standard signal having a communication protocol format corresponding to the target configuration information;

[0008] The protocol selection unit is connected to the configuration unit through an internal bus, and is used to determine the current transmission channel according to the target configuration information, and send the standard signal through the current transmission channel.

[0009] In a second aspect, an embodiment of the present invention further provides a data conversion method, which is executed by a chip according to any one of the embodiments of the present invention, and includes:

[0010] The modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal;

[0011] The communication protocol conversion unit determines the current protocol conversion rule according to the target configuration information, and converts the digital signal into a standard signal according to the current protocol conversion rule;

[0012] The protocol selection unit determines the current transmission channel according to the target configuration information, and sends a standard signal to the target external chip according to the current transmission channel;

[0013] The target configuration information is stored by the configuration unit.

[0014] The embodiment of the present invention provides a chip and a data conversion method. The chip includes: a modulation and demodulation module and a digital processing module. The digital processing module includes a communication protocol conversion unit, a protocol selection unit and a configuration unit. The modulation and demodulation module is connected to the communication protocol conversion unit through an internal bus and is used to receive a wireless radio frequency signal through an antenna and convert the wireless radio frequency signal into a digital signal. The configuration unit is connected to the communication protocol conversion unit through an internal bus and is used to store target configuration information. The communication protocol conversion unit is connected to the protocol selection unit through an internal bus and is used to obtain the target configuration information from the configuration unit and convert the digital signal into a standard signal having a communication protocol format corresponding to the target configuration information. The protocol selection unit is connected to the configuration unit through an internal bus and is used to determine a current transmission channel according to the target configuration information and send a standard signal through the current transmission channel. The problem that the chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol is solved. Data conversion between multiple communication protocols is performed through the protocol configuration information stored in the storage array, so that conversion of data of any communication protocol is realized. The chip has high versatility and can be applied to any communication protocol platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a schematic structural diagram of a chip in Embodiment 1 of the present invention;

[0016] Figure 2 is a schematic diagram of the structure of a chip in the second embodiment of the present invention;

[0017] Figure 3 is a flow chart of a data conversion method in Embodiment 3 of the present invention;

[0018] Figure 4 It is a flow chart of a data conversion method in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0020] Embodiment 1

[0021] Figure 1 This is a schematic diagram of the structure of a chip provided in the first embodiment of the present invention. The chip includes: a modulation and demodulation module 11 and a digital processing module 12. The digital processing module 12 includes a communication protocol conversion unit 121, a protocol selection unit 122 and a configuration unit 123.

[0022] The modulation and demodulation module 11 is connected to the communication protocol conversion unit 121 through an internal bus, and is used to receive a wireless radio frequency signal through an antenna and convert the wireless radio frequency signal into a digital signal;

[0023] The configuration unit 123 is connected to the communication protocol conversion unit 121 through an internal bus and is used to store target configuration information;

[0024] The communication protocol conversion unit 121 is connected to the protocol selection unit 122 via an internal bus, and is used to obtain target configuration information and convert the digital signal into a standard signal having a communication protocol format corresponding to the target configuration information.

[0025] The protocol selection unit 122 is connected to the configuration unit 123 via an internal bus, and is used to determine the current transmission channel according to the target configuration information, and send the standard signal through the current transmission channel.

[0026] In this embodiment, the modulation and demodulation module 11 can be understood as a module that processes signals and realizes conversion between different forms of signals. In the embodiment of the present application, the signal received by the modulation and demodulation module 11 is a wireless signal. Accordingly, the modulation and demodulation module 11 realizes conversion between wireless signals and digital signals. The digital processing module 12 can be understood as a module that performs relevant data processing on digital signals; the communication protocol conversion unit 121 can be understood as a unit that converts data between different types of communication protocols; the protocol selection unit 122 can be understood as a unit that selects different data transmission channels according to different types of communication protocols; the configuration unit can be understood as a unit that stores target configuration information, such as a memory, a pin, etc.

[0027] The wireless radio frequency signal can be understood as the wireless signal sent by the wireless radio frequency host; the protocol configuration information can be understood as the information used to indicate which communication protocol format the data is converted into and which data transmission channel is selected. The target configuration information can be understood as the information used to indicate which communication protocol data conversion the communication protocol conversion unit 121 is currently performing, and to indicate which data transmission channel the protocol selection module 122 currently selects to transmit the signal; the standard signal can be understood as a signal in the form of a specific communication transmission protocol. The current transmission channel can be understood as the data transmission channel for the current transmission information, which can be a pin in the chip.

[0028] The communication protocol conversion unit 121 includes multiple logics for implementing multiple communication protocol conversions. The communication protocol conversion unit 121 starts the logic of the relevant communication protocol according to the target configuration information stored in the configuration unit 123, and puts other logics in a dormant state, which reduces the power consumption of the chip. The protocol selection unit 122 includes multiple channels for transmitting data, and different types of communication protocol data correspond to a transmission channel. The protocol selection unit 122 determines which channel to use for data transmission according to the target configuration information. When performing data conversion, it is necessary to store the target configuration information in the configuration unit 123 according to the actual use requirements. For example, the chip needs to communicate with an external chip in the I2C protocol mode. Before the chip is powered on, the protocol configuration information corresponding to the I2C protocol mode is written into the configuration unit 123. If it is necessary to communicate with an external chip in the SPI protocol mode next time, the protocol configuration information corresponding to the SPI protocol mode is written into the configuration unit 123 again before the chip is powered on. The modulation and demodulation module 11 receives the wireless radio frequency signal sent from the wireless radio frequency chip, converts the wireless radio frequency signal into a digital signal, and sends the digital signal to the communication protocol conversion unit 121 in the digital processing module 12. The communication protocol conversion unit 121 obtains the target configuration information from the configuration unit 123 in advance, starts the logic of the relevant communication protocol according to the target configuration information, converts the digital signal according to the standard format of the relevant communication protocol, and obtains a standard signal. The protocol selection unit determines the current transmission channel through the target configuration information, and then sends the standard signal to the external chip through the current transmission channel.

[0029] The embodiment of the present invention provides a chip, which includes: a modulation and demodulation module and a digital processing module, the digital processing module includes a communication protocol conversion unit, a protocol selection unit and a configuration unit; the modulation and demodulation module is connected to the communication protocol conversion unit through an internal bus, and is used to receive a wireless radio frequency signal through an antenna and convert the wireless radio frequency signal into a digital signal; the configuration unit is connected to the communication protocol conversion unit through an internal bus and is used to store target configuration information; the communication protocol conversion unit is connected to the protocol selection unit through an internal bus, and is used to obtain the target configuration information from the configuration unit, and convert the digital signal into a standard signal having a communication protocol format corresponding to the target configuration information; the protocol selection unit is connected to the configuration unit through an internal bus, and is used to determine a current transmission channel according to the target configuration information, and send a standard signal through the current transmission channel, thereby solving the problem that the chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol, and data conversion between multiple communication protocols is performed through the target configuration information stored in the configuration unit, thereby realizing conversion of data of any communication protocol, having high versatility, and can be applied to any communication protocol platform.

[0030] Embodiment 2

[0031] Figure 2 A schematic diagram of the structure of a chip provided in Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution, and the chip includes: a modulation and demodulation module 21 and a digital processing module 22, the digital processing module 22 includes a communication protocol conversion unit 221, a protocol selection unit 222 and a configuration unit 223, and the configuration unit 223 includes a storage array 2231 and a memory control subunit 2232.

[0032] The storage array 2231 is connected to the memory control subunit 2232 via an internal bus and is used to store protocol configuration information for determining target configuration information;

[0033] The memory control subunit 2232 is connected to the communication protocol conversion unit 221 and the protocol selection unit 222 via an internal bus, and is used to obtain protocol configuration information from the storage array 2231 and determine target configuration information.

[0034] In this embodiment, the storage array 2231 can be understood as a storage space for storing data in the chip, which can be a non-volatile memory; the memory control subunit 2232 can be understood as a control unit of the chip, which is used to realize data interaction between the storage array 2231 and the communication protocol conversion unit 221, and data interaction between the storage array 2231 and the protocol selection unit 222.

[0035] The protocol configuration information can be understood as information stored in the storage array for indicating which communication protocol format to convert data into and which data transmission channel to select. The protocol configuration information can be written into the storage array 2231 by a computer device before the chip is powered on each time. The modulation and demodulation module 21 sends the converted digital signal to the communication protocol conversion unit 221 in the digital processing module 22. The communication protocol conversion unit 221 obtains the protocol configuration information from the storage array 2231 as the target configuration information in advance through the memory control unit 2232.

[0036] Further, the configuration unit 223 includes: at least one configuration pin 2233;

[0037] Each configuration pin 2233 is respectively connected to the communication protocol conversion unit 221 through an internal bus, and is externally connected to the first user terminal 23, for receiving information from the first user terminal 23 and performing corresponding pin status and status bit adjustments; wherein the pin status and status bit are used to determine the pin configuration information.

[0038] In this embodiment, the configuration pin 2233 can be understood as a pin in the chip for indicating the configuration of the communication protocol; the first user terminal 23 can be a computer device with data processing capabilities such as a mobile phone, a PC, a host computer, an embedded system, etc. The pin configuration information can be understood as the information for configuring the communication protocol obtained from the configuration pin. The configuration pin 2233 can also be connected to the protocol selection unit 222 so that the protocol selection unit 222 obtains the pin status and status bit.

[0039] Each configuration pin 2233 is connected to the first user terminal 23 through a connecting line, receives information sent by the first user terminal 23, and adjusts its own state according to the information. For example, the pin state is adjusted to enable valid or enable invalid. When the enable is valid, the state bit of the pin is high or low. The communication protocol conversion unit 221 determines which communication protocol to convert according to the pin state and state bit. The protocol selection unit 222 can directly obtain the pin configuration information according to the pin state and state bit from the configuration pin, and then select which transmission channel to send data to the external chip. It can also obtain the pin state and state bit or pin configuration information from the communication protocol conversion unit 221. The first user terminal can send information to each configuration pin at any time after the chip is powered on, so that the pin state and state bit of the configuration pin can be changed at any time.

[0040] Furthermore, the communication protocol conversion unit 221 includes: a parallel-to-serial subunit 2211 and a protocol conversion subunit 2212 .

[0041] The parallel-to-serial subunit 2211 is connected to the modulation and demodulation module 21 through an internal bus and is used to convert the digital signal into a serial signal;

[0042] The protocol conversion subunit 2212 is connected to the parallel-to-serial subunit 2211 and is used to convert the serial signal into a standard signal.

[0043] In this embodiment, the parallel-to-serial subunit 2211 can be understood as a unit that converts parallel signals into serial signals. A serial signal is a data signal that transmits the code elements that constitute data and characters bit by bit in a time sequence, and a parallel signal is a data signal that transmits a fixed number of bits of data and character code elements to the receiving end at the same time. The protocol conversion subunit 2212 can be understood as a unit that converts data signals between communication protocols, for example, converting a data signal in an I2C protocol format into a data signal in a UART protocol format.

[0044] The modem module 21 transmits the digital signal to the parallel-to-serial subunit 2211, which converts the digital signal into a serial signal and transmits it to the protocol conversion subunit 2212. The protocol conversion subunit 2212 converts the received serial signal into a standard signal according to the target configuration information.

[0045] Furthermore, the protocol selection unit 222 obtains target configuration information from the configuration unit 223 and / or the communication protocol conversion unit 221 .

[0046] When the protocol selection unit 222 determines the current transmission channel according to the target configuration information, it can directly obtain it from the configuration unit 223, or it can obtain it from the communication protocol conversion unit 221 after the communication protocol conversion unit 221 obtains the target configuration information from the configuration unit 223. Similarly, the communication protocol conversion unit 221 can also obtain the target configuration information from the protocol selection unit 222 after the protocol selection unit 222 obtains the target configuration information from the configuration unit 223.

[0047] Furthermore, the digital processing module 22 further includes: an external pin 224;

[0048] The external pin 224 is connected to the protocol selection unit 222 and the external chip 24, and is used to send the standard signal output from the current transmission channel to the target external chip through the target pin channel in the external pin 224 when the target configuration information is the pin configuration information; the target external chip is any one of the external chips.

[0049] In this embodiment, the external pin 224 can be understood as one or more pins used to connect to the external chip 24, collectively referred to as the external pin; the target pin channel can be understood as one of the pins in the external pin 224 connected to the external chip 24 in the chip; the external chip 24 can be one or more. When there are multiple external chips 24, they can be chips of the same type or chips of different types. The target external chip can be understood as one of the external chips 24; when the target configuration information is the pin configuration information, the external chip connected to the external pin 224 can be chips of multiple types, and the external pin 224 will send the standard signal output from the current transmission channel to the target external chip 24 through the target pin channel.

[0050] Furthermore, the digital processing module 22 further includes: a digital signal processing unit 225;

[0051] The digital signal processing unit 225 is connected to the modulation and demodulation module 21 and the communication protocol conversion unit 221 through an internal bus, and is used to filter the digital signal and store the signal obtained during the filtering into the storage array 2231 through the memory control subunit 2232.

[0052] In this embodiment, the digital signal processing unit 225 can be understood as a unit that performs processing such as screening and sorting of data; the digital signal processing unit 225 is connected to the modulation and demodulation module 21, obtains the digital signal sent by it, screens the digital signal, removes error signals, useless signals, etc., and sends the screened digital signal to the communication protocol conversion unit 221 so that it can perform subsequent communication protocol conversion. The digital signal processing unit 225 generates intermediate data in the process of screening the digital signal, stores the intermediate data in the storage array 2231 through the memory control subunit 2232, and obtains data from the storage array 2231 through the memory control subunit 2232, and finally realizes the screening of the digital signal.

[0053] In the embodiment of the present invention, the conversion of any communication protocol can be achieved through the storage array, the communication protocol conversion module, the protocol selection module and the memory control unit; the conversion of any communication protocol can also be achieved only by configuring the pins, the communication protocol conversion module and the protocol selection module.

[0054] The embodiment of the present invention provides a chip, which solves the problem that the chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol. The data conversion between multiple communication protocols is performed through the protocol configuration information stored in the storage array, and the conversion of data of any communication protocol is realized. The chip has high versatility and can be applied to any communication protocol platform. The pin status and status bit of the configuration pin indicate that the communication protocol conversion unit and the protocol selection unit complete the conversion of any communication protocol, and the communication protocol conversion can be switched at any time after the chip is powered on, which is convenient for data communication when different types of chips are connected externally, and has strong flexibility.

[0055] Embodiment 3

[0056] Figure 3 This is a flow chart of a data conversion method provided in Embodiment 2 of the present invention. This embodiment is applicable to the case where data is converted between different communication protocol formats. The method can be executed by any chip provided in the embodiment of the present invention, and specifically includes the following steps:

[0057] Step S310: The modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal.

[0058] The modulation and demodulation module demodulates the received wireless radio frequency signal to obtain a digital signal. The demodulation method can be sinusoidal wave amplitude demodulation, sinusoidal wave angle demodulation and resonance demodulation technology. The specific demodulation method used is not limited in any way in the embodiment of the present application.

[0059] Step S320: The communication protocol conversion unit determines a current protocol conversion rule according to the target configuration information, and converts the digital signal into a standard signal according to the current protocol conversion rule.

[0060] In this embodiment, the target configuration information is stored by the configuration unit. The current protocol conversion rule can be understood as which communication protocol the communication protocol conversion unit is currently converting and how to convert the protocol.

[0061] Before the chip is powered on, the target configuration information in the configuration unit is set in advance, and then after the chip is powered on, the communication protocol conversion unit determines the current protocol conversion rule according to the rule corresponding to the target configuration information. The communication protocol conversion unit converts the received digital signal into a standard signal according to the current protocol conversion rule.

[0062] Step S330: The protocol selection unit determines the current transmission channel according to the target configuration information, and sends a standard signal to the target external chip according to the current transmission channel.

[0063] In this embodiment, the current transmission channel is determined according to the preset position in the storage array. The current transmission channel can be understood as which data transmission channel the protocol selection unit currently selects for data transmission. The target external chip can be understood as the chip currently connected to the chip. When the current external chips are of the same type, the target external chips are usually all external chips; when the current external chips are of different types, since only one communication protocol format can be converted at the moment, only one type of external chip is sent (even if standard signals are sent to all types of external chips, only one type of external chip can receive the standard signal), and this type of external chip is the target external chip.

[0064] Before the chip is powered on, since the target configuration information in the configuration unit is pre-set, after the chip is powered on, the protocol selection unit selects the corresponding data transmission channel as the current transmission channel according to the target configuration information. The protocol selection unit sends the standard signal to the target external chip through the current transmission channel.

[0065] The embodiment of the present invention provides a data conversion method, which determines a digital signal according to a received wireless radio frequency signal through a modulation and demodulation module; a communication protocol conversion unit determines a current protocol conversion rule according to target configuration information, and converts the digital signal into a standard signal according to the current protocol conversion rule; a protocol selection unit determines a current transmission channel according to the target configuration information, and sends a standard signal to a target external chip according to the current transmission channel; wherein the target configuration information is stored by the configuration unit, which solves the problem in the prior art that the chip can only be converted into a fixed communication protocol and cannot convert data of any communication protocol, determines the current protocol conversion rule and the current transmission channel through the protocol configuration information stored in the storage array, realizes data conversion between any communication protocols and corresponding data transmission, has high versatility, and can be applied to any communication protocol platform.

[0066] Embodiment 4

[0067] Figure 4 This is a flow chart of a data conversion method provided by Embodiment 4 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution, and the digital processing module further includes: at least one configuration pin, and the method specifically mainly includes the following steps:

[0068] Step S401: The modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal.

[0069] Step S402: Screening the digital signal by a digital signal processing unit.

[0070] The digital signal is screened and processed by the data signal processing unit to remove error signals, useless signals, etc. in the digital signal.

[0071] Step S403: The communication protocol conversion unit and / or the protocol selection unit obtains target configuration information.

[0072] The communication protocol conversion and / or protocol selection unit needs to obtain target configuration information. When obtaining the target configuration information from the configuration unit, the communication protocol conversion unit and the protocol selection unit can obtain the target configuration information directly from the configuration unit respectively, or only the communication protocol conversion unit or the protocol selection unit can obtain it.

[0073] Furthermore, obtaining target configuration information includes the following steps:

[0074] When the configuration unit does not include configuration pins or the pin states of each configuration pin are all enabled and invalid, determine whether a storage array is included, and if so, obtain the protocol configuration information of the preset position in the storage array through the memory control subunit and use it as the target configuration information;

[0075] When the configuration unit includes configuration pins and the pin state of at least one configuration pin is enabled and valid, pin configuration information is determined according to the state bit of each configuration pin and is used as target configuration information.

[0076] In this embodiment, the pin state includes enabling invalid and enabling valid, which can be represented by the high level and low level of the enabling terminal, for example, the high level represents enabling valid, the low level represents enabling invalid, or the low level represents enabling valid, the high level represents enabling invalid. The preset bit can be understood as a data bit of the storage data that is preset, which is used to store the protocol configuration information.

[0077] The communication protocol conversion unit or the protocol acquisition unit is connected to the configuration unit, and the connection with the configuration unit includes being connected to each configuration pin and / or memory control subunit in the configuration unit. After the chip is powered on, it is determined whether there is a configuration pin. If there is no configuration pin, or the pin status of all configuration pins is enabled and invalid, it is determined whether there is a storage array. If there is a storage array, the protocol configuration information stored in the preset bit in the storage array is obtained through the memory control subunit, for example, the fifth field of the preset bit, and the protocol configuration information is obtained from the fifth field, and the protocol configuration information is used as the target configuration information. When there is a configuration pin in the configuration unit and the pin status of at least one configuration pin is enabled and valid, the status bit of the configuration pin is obtained, the pin configuration information is determined according to the status bit, and the pin configuration information is used as the target configuration information. Before the chip is powered on, the pin status and status bit of the configuration pin are adjusted in advance through the user terminal or the buttons on the chip.

[0078] The status bits of each configuration pin jointly determine the pin configuration information. The method of determining the pin configuration information is exemplified. Taking the number of configuration pins equal to 3 as an example, 3 configuration pins can perform conversions between 8 communication protocol formats. Configuration information corresponding to multiple communication protocol formats is pre-stored, and each configuration information corresponds to a number. For example, number 1 is the I2C communication protocol format, number 2 is the SPI communication protocol format, number 3 is the UART communication protocol format, number 4 is the single-line communication protocol format, ... number 8 is the JTAG communication protocol format. The method of determining the pin configuration information can be: the status bit of configuration pin 1 is high level 1, the status bit of configuration pin 2 is low level 0, and the status bit of configuration pin 3 is low level 0. The binary data composed is 100, and the corresponding decimal data is 4, so the corresponding pin configuration information is a single-line communication protocol format, that is, the communication protocol conversion unit needs to convert the received signal into a standard signal in the single-line communication protocol format.

[0079] Step S404: Perform communication protocol configuration according to the target configuration information, and determine the communication protocol conversion rule corresponding to the target configuration information as the current protocol conversion rule.

[0080] In this embodiment, the communication protocol conversion rules can be understood as the rules for data conversion between two different communication protocols. Different communication protocols have different language specifications. When data of one specification is converted into data of another specification, it is necessary to convert according to certain rules.

[0081] The communication protocol conversion unit performs communication protocol configuration according to the target configuration information, that is, starts the logic required to complete the corresponding communication protocol format conversion. After configuring the relevant logic, the communication protocol conversion rule corresponding to the target configuration information is used as the current protocol conversion rule. The target configuration information indicates what type of communication protocol format needs to be converted to, and the communication protocol conversion rule indicates how to perform the conversion.

[0082] Step S405: The parallel-to-serial subunit in the communication protocol conversion unit converts the digital signal into a serial signal.

[0083] The conversion between parallel data and serial data can be achieved through a shift register through the parallel-to-serial subunit. After the parallel digital signal is input, it is output in sequence. The data carried by the digital signal is 32 bits, and serial transmission requires 32 clock cycles to complete the transmission.

[0084] Step S406: The protocol conversion subunit in the communication protocol conversion unit converts the serial signal according to the current protocol conversion rule to obtain a standard signal having a communication protocol format corresponding to the target configuration information.

[0085] The protocol conversion subunit converts the serial signal into a standard signal of the communication protocol format corresponding to the target configuration information according to the current protocol conversion rule. For example, the communication protocol used by the serial signal itself stipulates that the first field is the user's identity, which is 2 bytes in size, and the communication protocol used by the converted standard signal stipulates that the second field is the user's identity, which is 4 bytes in size.

[0086] Step S407: The protocol selection unit selects at least one preset data transmission channel according to the target configuration information to obtain a current transmission channel, and sends a standard signal to the target external chip according to the current transmission channel.

[0087] In this embodiment, the data transmission channel can be understood as a channel for transmitting communication data or signals. The protocol selection unit transmits signals to the external chip according to the data transmission channel. Since the types of external chips are different, the channels for transmitting data are also different. Different data transmission channels for transmitting data to different types of external chips are pre-established. According to the target configuration information indicating which communication protocol format conversion is to be performed, a corresponding data transmission channel is selected from each data transmission channel and used as the current transmission channel. A standard signal is sent to the target external chip according to the current transmission channel.

[0088] Furthermore, the protocol selection unit obtains the target configuration information from the communication protocol conversion unit.

[0089] The protocol selection unit may not obtain the target configuration information from the configuration unit, but directly obtain it from the communication protocol conversion unit after the communication protocol conversion unit obtains the target configuration information. Similarly, the communication protocol conversion unit may also obtain the target configuration information from the protocol selection unit.

[0090] There is no order of implementation for determining the current protocol conversion rule and determining the current transmission channel, and when the protocol selection unit determines the current transmission channel according to the target configuration information, it can be to obtain the target configuration information determined by the communication protocol conversion unit, or the protocol selection unit can obtain the pin status and status bit of the configuration pin, and then determine the target configuration information, and its implementation method is the same as the implementation method of the communication protocol conversion unit determining the target configuration information. It is also possible that the protocol selection unit determines the target configuration information, and the communication protocol conversion unit directly obtains the target configuration information determined by the protocol selection unit, and the embodiment of the present application does not specifically limit this.

[0091] Furthermore, the chip is connected to at least one external chip through an external pin, and the method also includes: a protocol selection unit sends a standard signal to a target external chip according to a current transmission channel and a target pin channel in the pin; wherein the target pin channel is determined by a second user terminal connected to the chip sending channel confirmation information to the chip, and the target external chip is any one of the external chips.

[0092] In this embodiment, the second user terminal can be understood as a computer device such as a host computer, a PC, a mobile phone, a tablet computer, etc.; the channel confirmation information can be understood as information confirming which data transmission channel is used for transmitting data with the external chip.

[0093] The communication protocol conversion unit determines the current protocol conversion rule according to the target configuration information, and the protocol selection unit determines the current transmission channel according to the target configuration information at the same time. At this time, the basic configuration is completed, and the received signal can be processed and the corresponding protocol conversion can be performed and sent to the target external chip. However, since the state bit of the configuration pin can be changed at will at this time, the switching of communication between chips of different protocols can be realized, so the external chip can be different types of external chips at this time. However, the standard signal only needs to be transmitted to one of the external chips, and it does not need to be sent to all types of external chips (even if it is sent, other external chips cannot correctly parse the signal). At this time, after the protocol selection unit sends the standard signal through the current transmission channel, it reaches the external chip through the next transmission channel. Only the target external chip can successfully obtain the standard signal, and the signals transmitted by other channels are useless. Therefore, in order to avoid interference from other chips, the target pin channel can be determined, and only the target pin channel is used to send the standard signal in the subsequent transmission, and other pins are closed.

[0094] The second user terminal connected to the chip sends channel confirmation information to the chip. This channel confirmation information is also a wireless radio frequency signal. The channel confirmation information is transmitted in the normal way of transmitting information (that is, transmitted to the protocol selection module through the modulation and demodulation module and the communication protocol conversion module), and the protocol selection module sends it outward according to the current transmission channel, and then transmits it to the external chip through the external pin connected to the external chip. Only the target external chip in the external chip receives the channel confirmation information and then feeds back a response signal. After receiving the feedback response signal, the second user terminal can determine the target pin channel and close other pins. At this time, when the protocol selection unit performs subsequent signal transmission, it sends a standard signal to the target external chip through the current transmission channel and the target pin channel. When it is necessary to switch to communicate with chips of other protocols, it is only necessary to reset the pin status bit, and execute the steps of confirming the current protocol conversion rule, the current transmission channel and the target pin channel in sequence, and then transmit the signal, so that data interaction can be achieved for all external chips through the method of time-sharing communication.

[0095] It should be noted that the above steps can be interchanged in a specific order or sequence where permitted.

[0096] The embodiment of the present invention provides a data conversion method, which solves the problem in the prior art that the chip can only be converted into a fixed communication protocol and cannot convert data of any communication protocol. The current protocol conversion rule and the current transmission channel are determined by the protocol configuration information stored in the storage array, and data conversion between any communication protocols and corresponding data transmission are realized. In addition, the current protocol conversion rule and the current transmission channel are determined by configuring the pin status and status bit of the pin, and real-time switching of chip communications between different protocols is realized. The method has high versatility and can be applied to any communication protocol platform.

[0097] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A chip, characterized in that: The chip includes: a modulation and demodulation module and a digital processing module, and the digital processing module includes a communication protocol conversion unit, a protocol selection unit and a configuration unit; The modulation and demodulation module is connected to the communication protocol conversion unit through an internal bus, and is used to receive a wireless radio frequency signal through an antenna and convert the wireless radio frequency signal into a digital signal; The configuration unit is connected to the communication protocol conversion unit through an internal bus and is used to store target configuration information; wherein the target configuration information is used to indicate the communication protocol data currently converted by the communication protocol conversion unit, and to instruct the protocol selection unit to select a data transmission channel corresponding to the current transmission; The configuration unit includes: a storage array and a memory control subunit; The storage array is connected to the memory control subunit via an internal bus and is used to store protocol configuration information for determining target configuration information; The memory control subunit is connected to the communication protocol conversion unit and the protocol selection unit through an internal bus, and is used to obtain the protocol configuration information from the storage array and determine the target configuration information; the communication protocol conversion unit is connected to the protocol selection unit through an internal bus, and is used to obtain the target configuration information and convert the digital signal into a standard signal having a communication protocol format corresponding to the target configuration information; The protocol selection unit is connected to the configuration unit through an internal bus, and is used to determine the current transmission channel according to the target configuration information, and send the standard signal through the current transmission channel; wherein the protocol selection unit includes multiple channels for transmitting data, and each transmission channel corresponds to a different type of communication protocol data.

2. The chip according to claim 1, characterized in that: The configuration unit includes: at least one configuration pin; Each of the configuration pins is respectively connected to the communication protocol conversion unit and the protocol selection unit through an internal bus, and is externally connected to a first user terminal, so as to receive information from the first user terminal and perform corresponding pin state and state bit adjustment; The pin status and status bit are used to determine the pin configuration information.

3. The chip according to claim 1, characterized in that: The communication protocol conversion unit comprises: a parallel-to-serial subunit and a protocol conversion subunit; The parallel-to-serial subunit is connected to the modulation and demodulation module via an internal bus and is used to convert the digital signal into a serial signal; The protocol conversion subunit is connected to the parallel-to-serial subunit and is used to convert the serial signal into a standard signal having a communication protocol format corresponding to the target configuration information.

4. The chip according to claim 1, characterized in that: The protocol selection unit obtains the target configuration information from the configuration unit and / or the communication protocol conversion unit.

5. The chip according to claim 1, characterized in that: The digital processing module further includes: an external pin; The external pin is connected to the protocol selection unit and at least one external chip, and is used to send the standard signal output from the current transmission channel to the target external chip through the target pin channel in the external pin; The target external chip is any one of the external chips.

6. The chip according to claim 1, characterized in that: The digital processing module further includes: a digital signal processing unit; The digital signal processing unit is connected to the modulation and demodulation module and the communication protocol conversion unit through an internal bus, and is used to screen the digital signal and store the signal obtained during the screening into a storage array through a memory control subunit.

7. A data conversion method, characterized in that: Executed by the chip of any one of claims 1 to 6, comprising: The modulation and demodulation module determines the digital signal according to the received wireless radio frequency signal; The configuration unit includes: a storage array and a memory control subunit; The storage array is connected to the memory control subunit via an internal bus and is used to store protocol configuration information for determining target configuration information; The memory control subunit is connected to the communication protocol conversion unit and the protocol selection unit through an internal bus, and is used to obtain the protocol configuration information from the storage array and determine the target configuration information; The target configuration information is used to indicate the communication protocol data currently converted by the communication protocol conversion unit, and to indicate the protocol selection unit to select a data transmission channel corresponding to the current transmission; The communication protocol conversion unit determines a current protocol conversion rule according to the target configuration information, and converts the digital signal into the standard signal according to the current protocol conversion rule; The protocol selection unit determines a current transmission channel according to the target configuration information, and sends the standard signal to the target external chip according to the current transmission channel; Wherein, the protocol selection unit includes a plurality of channels for transmitting data, and each transmission channel corresponds to a different type of communication protocol data; Wherein, the target configuration information is stored by a configuration unit.

8. The method according to claim 7, characterized in that Also includes: The communication protocol conversion unit and / or the protocol selection unit obtains the target configuration information; accordingly, obtaining the target configuration information includes the following steps: When the configuration unit does not include a configuration pin or the pin states of each of the configuration pins are enabled and invalid, determining whether a storage array is included, and if so, obtaining the protocol configuration information of a preset position in the storage array through the memory control subunit, and using it as the target configuration information; When the configuration unit includes configuration pins and the pin state of at least one of the configuration pins is enabled and valid, pin configuration information is determined according to the state bit of each of the configuration pins and is used as target configuration information.

9. The method according to claim 7, characterized in that: The communication protocol conversion unit determines the current protocol conversion rule according to the target configuration information, including: The communication protocol is configured according to the target configuration information, and the communication protocol conversion rule corresponding to the target configuration information is determined as the current protocol conversion rule.

10. The method according to claim 7, characterized in that Before the communication protocol conversion unit converts the digital signal into a standard signal according to the current protocol conversion rule, the method further comprises: The digital signal is filtered and processed by a digital signal processing unit.

11. The method according to claim 7, characterized in that The communication protocol conversion unit converts the digital signal into a standard signal according to the current protocol conversion rule, including: The parallel-to-serial subunit in the communication protocol conversion unit converts the digital signal into serial data; The protocol conversion subunit in the communication protocol conversion unit converts the serial data according to the current protocol conversion rule to obtain a standard signal.

12. The method according to claim 7, characterized in that The protocol selection unit determines the current transmission channel according to the target configuration information, including: At least one preset data transmission channel is screened according to the target configuration information to obtain a current transmission channel.

13. The method according to claim 7, characterized in that Also includes: The protocol selection unit obtains the target configuration information from the communication protocol conversion unit.

14. The method according to claim 7, characterized in that The chip is connected to at least one external chip via an external pin, and further comprises: The protocol selection unit sends a standard signal to a target external chip according to the current transmission channel and a target pin channel in the external pins; The target pin channel is determined by a second user terminal connected to the chip sending channel confirmation information to the chip, and the target external chip is any one of the external chips.