CN114759942A - Chip and data conversion method - Google Patents

Chip and data conversion method Download PDF

Info

Publication number
CN114759942A
CN114759942A CN202011559748.7A CN202011559748A CN114759942A CN 114759942 A CN114759942 A CN 114759942A CN 202011559748 A CN202011559748 A CN 202011559748A CN 114759942 A CN114759942 A CN 114759942A
Authority
CN
China
Prior art keywords
configuration information
unit
communication protocol
chip
protocol conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011559748.7A
Other languages
Chinese (zh)
Inventor
王志萍
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Chipjet Technology Co Ltd
Original Assignee
Hangzhou Chipjet Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Chipjet Technology Co Ltd filed Critical Hangzhou Chipjet Technology Co Ltd
Priority to CN202011559748.7A priority Critical patent/CN114759942A/en
Publication of CN114759942A publication Critical patent/CN114759942A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The embodiment of the invention discloses a chip and a data conversion method, wherein the chip comprises: the system comprises a modulation and demodulation module and a digital processing module, wherein the digital processing module comprises a communication protocol conversion unit, a protocol selection unit and a configuration unit; the problem that a chip can only be converted into a fixed communication protocol in the prior art is solved, data of any communication protocol cannot be converted, data conversion among multiple communication protocols is carried out through protocol configuration information stored in a storage array, conversion of any communication protocol data is achieved, the universality is high, and the method and the device can be applied to any communication protocol platform.

Description

Chip and data conversion method
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a chip and a data conversion method.
Background
At present, there are 2 ways for the wireless module of the radio frequency identification RF chip on the market to communicate with the universal digital chip, one way is to adopt a system on chip SOC + RF chip, and the way is that after the SOC receives the RF wireless signal, the SOC simulates a communication protocol by software and communicates with an external chip, but the communication speed is slow and the power consumption of the chip is high. In addition, although the mode of the ASIC + the RF chip is that the ASIC receives an RF wireless signal and then converts the RF wireless signal into a communication protocol for signal interaction, the communication speed is improved, but the existing ASIC chip can only convert one fixed communication protocol, cannot have versatility, and cannot be transplanted to another communication protocol platform.
Disclosure of Invention
The invention provides a chip and a data conversion method, which are used for realizing the conversion of data in the chip between any communication protocols.
In a first aspect, an embodiment of the present invention provides a chip, where the chip includes: the device comprises a modulation and demodulation module and a digital processing module, wherein the digital processing module comprises a communication protocol conversion unit, a protocol selection unit and a configuration unit;
the modulation and demodulation module is connected with the communication protocol conversion unit through an internal bus and used for receiving the wireless radio frequency signals through the antenna and converting the wireless radio frequency signals into digital signals;
the configuration unit is connected with the communication protocol conversion unit through an internal bus and used for storing target configuration information;
the communication protocol conversion unit is connected with the protocol selection unit through an internal bus and is used for acquiring target configuration information from the configuration unit and converting the digital signal into a standard signal with a communication protocol format corresponding to the target configuration information;
and the protocol selection unit is connected with the configuration unit through an internal bus and used for determining the current transmission channel according to the target configuration information and sending the standard signal through the current transmission channel.
In a second aspect, an embodiment of the present invention further provides a data conversion method, where the method is performed by a chip in any one of the embodiments of the present invention, and the method includes:
the modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal;
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;
the protocol selection unit determines a 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;
wherein the target configuration information is stored by the configuration unit.
The embodiment of the invention provides a chip and a data conversion method, wherein the chip comprises: the system comprises a modulation and demodulation module and a digital processing module, wherein the digital processing module comprises a communication protocol conversion unit, a protocol selection unit and a configuration unit; the modulation and demodulation module is connected with the communication protocol conversion unit through an internal bus and used for receiving the wireless radio frequency signals through the antenna and converting the wireless radio frequency signals into digital signals; the configuration unit is connected with the communication protocol conversion unit through an internal bus and used for storing target configuration information; the communication protocol conversion unit is connected with the protocol selection unit through an internal bus and is used for acquiring target configuration information from the configuration unit and converting the digital signal into a standard signal with a communication protocol format corresponding to the target configuration information; the protocol selection unit is connected with the configuration unit through an internal bus and used for determining a current transmission channel according to the target configuration information and sending a standard signal through the current transmission channel, so that the problem that a chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any one communication protocol is solved, data conversion among multiple communication protocols is carried out through the protocol configuration information stored in the storage array, conversion of data of any one communication protocol is realized, the protocol selection unit has high universality and can be applied to any one communication protocol platform.
Drawings
Fig. 1 is a schematic structural diagram of a chip according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating a chip structure according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a data conversion method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a data conversion method in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic structural diagram of a chip according to an embodiment of the present invention, where the chip includes: a modulation and demodulation module 11 and a digital processing module 12, wherein the digital processing module 12 includes a communication protocol conversion unit 121, a protocol selection unit 122 and a configuration unit 123.
The modulation and demodulation module 11 is connected with the communication protocol conversion unit 121 through an internal bus, and is configured to receive a wireless radio frequency signal through an antenna and convert the wireless radio frequency signal into a digital signal;
a configuration unit 123 connected to the communication protocol conversion unit 121 via an internal bus, and configured to store target configuration information;
the communication protocol conversion unit 121 is connected to the protocol selection unit 122 through an internal bus, and is configured 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.
And the protocol selection unit 122 is connected with the configuration unit 123 through an internal bus, and is configured to determine a current transmission channel according to the target configuration information and send a standard signal through the current transmission channel.
In this embodiment, the modem module 11 may be understood as a module that processes a signal and implements conversion between different forms of the signal, in this embodiment, the signal received by the modem module 11 is a wireless signal, and correspondingly, the modem module 11 implements conversion between the wireless signal and a digital signal. The digital processing module 12 can be understood as a module that performs relevant data processing on the digital signal; the communication protocol conversion unit 121 can be understood as a unit that converts data between heterogeneous communication protocols; the protocol selection unit 122 may be understood as a unit that selects different data transmission channels according to different kinds of communication protocols; a configuration unit may be understood as a unit that stores target configuration information, e.g. a memory, pins, etc.
The wireless radio frequency signal can be understood as a wireless signal sent by a wireless radio frequency host; protocol configuration information may be understood as information indicating into which communication protocol format data is converted and which data transmission channel is selected. The target configuration information may be understood as information for instructing the communication protocol conversion unit 121 to currently perform what kind of communication protocol data conversion, and instructing the protocol selection module 122 to currently select which data transmission channel to transmit a signal; a standard signal may be understood as a signal in the form of a particular communication transmission protocol. The current transmission channel may be understood as a data transmission channel for currently transmitting information, and may be a pin in a chip.
The communication protocol conversion unit 121 includes a plurality of logics for implementing a plurality of communication protocol conversions, and the communication protocol conversion unit 121 starts the logics of the relevant communication protocols according to the target configuration information stored in the configuration unit 123 and puts other logics in a sleep state, thereby reducing the power consumption of the chip. The protocol selection unit 122 includes a plurality of channels for transmitting data, different types of communication protocol data correspond to one transmission channel, and the protocol selection unit 122 determines which channel is used for data transmission according to the target configuration information. When data conversion is performed, target configuration information needs to be stored in the configuration unit 123 according to actual usage requirements, for example, the chip needs to communicate with an external chip in the I2C protocol mode, before the chip is powered on to operate, protocol configuration information corresponding to the I2C protocol mode is written into the configuration unit 123, and if communication with the external chip in the SPI protocol mode is required next time, protocol configuration information corresponding to the SPI protocol mode is written into the configuration unit 123 again before the chip is powered on to operate. The modem module 11 receives a wireless radio frequency signal sent from a 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, where the communication protocol conversion unit 121 obtains target configuration information from the configuration unit 123 in advance, starts logic of a related communication protocol according to the target configuration information, and converts the digital signal according to a standard format of the related communication protocol to obtain a standard signal. The protocol selection unit determines a current transmission channel through the target configuration information, and then sends the standard signal to an external chip through the current transmission channel.
An embodiment of the present invention provides a chip, including: the system comprises a modulation and demodulation module and a digital processing module, wherein the digital processing module comprises a communication protocol conversion unit, a protocol selection unit and a configuration unit; the modulation and demodulation module is connected with the communication protocol conversion unit through an internal bus and used for receiving the wireless radio frequency signals through the antenna and converting the wireless radio frequency signals into digital signals; the configuration unit is connected with the communication protocol conversion unit through an internal bus and used for storing target configuration information; the communication protocol conversion unit is connected with the protocol selection unit through an internal bus and is used for acquiring target configuration information from the configuration unit and converting the digital signal into a standard signal with a communication protocol format corresponding to the target configuration information; the protocol selection unit is connected with the configuration unit through an internal bus and used for determining a current transmission channel according to the target configuration information and sending a standard signal through the current transmission channel, so that the problem that a chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol is solved, the target configuration information stored in the configuration unit is used for converting data among multiple communication protocols, the conversion of any communication protocol data is realized, the universality is high, and the method and the device can be applied to any communication protocol platform.
Example two
Fig. 2 is a schematic structural diagram of a chip according to a second embodiment of the present invention. The technical scheme of the embodiment is further refined on the basis of the technical scheme, and the chip comprises: the modem 21 and the 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 memory array 2231 and a memory control subunit 2232.
A storage array 2231 connected to the memory control subunit 2232 via an internal bus, and configured to store protocol configuration information for determining target configuration information;
the memory control subunit 2232 is connected to the communication protocol conversion unit 221 and the protocol selection unit 222 through an internal bus, and is configured to obtain the protocol configuration information from the storage array 2231 and determine the target configuration information.
In this embodiment, the storage array 2231 may be understood as a storage space for storing data in a chip, and may be a non-volatile memory; the memory control subunit 2232 can be understood as a control unit of the chip, and is used to implement 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.
Protocol configuration information may be understood as information stored in the memory array indicating which communication protocol format to convert data into, and which data transmission channel to select. Protocol configuration information may be written into the memory array 2231 by the computer device before each power-up operation of the chip. The modem module 21 sends the converted digital signal to the communication protocol conversion unit 221 in the digital processing module 22, and the communication protocol conversion unit 221 acquires protocol configuration information as target configuration information from the storage array 2231 through the memory control unit 2232 in advance.
Further, the configuration unit 223 includes: at least one configuration pin 2233;
each configuration pin 2233 is connected to the communication protocol conversion unit 221 through an internal bus, and is externally connected to the first user terminal 23, and is configured to receive information of the first user terminal 23, and perform corresponding pin status and status bit adjustment; wherein the pin status and status bits are used to determine pin configuration information.
In this embodiment, the configuration pin 2233 may be understood as a pin in the chip for indicating a configuration of a communication protocol; the first user terminal 23 may be a computer device with data processing capability, such as a mobile phone, a PC terminal, an upper computer, an embedded system, and the like. The pin configuration information may be understood as information for configuring the communication protocol obtained from the configuration pins. The configuration pin 2233 may also be connected to the protocol selection unit 222 so that the protocol selection unit 222 obtains the pin status and status bits.
Each configuration pin 2233 is connected to the first user terminal 23 via a connection line, receives information transmitted by the first user terminal 23, and adjusts its own state according to the information, for example, the pin state is adjusted to enable or disable, and when enabled, the state bit of the pin is high or low. The communication protocol conversion unit 221 determines which communication protocol conversion is to be performed according to the pin state and the state bit, and the protocol selection unit 222 may directly acquire the pin state and the state bit from the configuration pin, further determine the pin configuration information, and then select which transmission channel to send data to the external chip, or may acquire the pin state and the state bit or the 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 the state bit of the configuration pins can be changed at any time.
Further, the communication protocol conversion unit 221 includes: a parallel-to-serial sub-unit 2211 and a protocol conversion sub-unit 2212.
A parallel-serial subunit 2211 connected to the modem module 21 via an internal bus, and configured to convert the digital signal into a serial signal;
the protocol conversion subunit 2212 is connected to the parallel-to-serial subunit 2211, and is configured to convert the serial signal into a standard signal.
In this embodiment, the parallel-to-serial subunit 2211 can be understood as a unit that converts a parallel signal into a serial signal, the serial signal being a data signal in which symbols constituting data and characters are transmitted bit by bit in time series, and the parallel signal being a data signal in which a fixed number of bits of data and character symbols are simultaneously transmitted to a receiving end. The protocol conversion sub-unit 2212 can be understood as a unit that performs conversion between communication protocols on a data signal, for example, converts a data signal in an I2C protocol format into a data signal in a UART protocol format.
The modem module 21 transmits the digital signal to the parallel-to-serial subunit 2211, the parallel-to-serial subunit 2211 converts the digital signal into a serial signal and transmits the serial signal to the protocol conversion subunit 2212, and the protocol conversion subunit 2212 converts the received serial signal into a standard signal according to the target configuration information.
Further, the protocol selection unit 222 acquires target configuration information from the configuration unit 223 and/or the communication protocol conversion unit 221.
The protocol selection unit 222 may directly obtain the current transmission channel from the configuration unit 223 when determining the current transmission channel according to the target configuration information, or obtain the current transmission channel 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 may acquire the target configuration information from the protocol selection unit 222 after the protocol selection unit 222 acquires the target configuration information from the configuration unit 223.
Further, the digital processing module 22 further includes: an external pin 224;
an external pin 224 connected to the protocol selection unit 222 and the external chip 24, and configured to send a standard signal output from the current transmission channel to the target external chip through a target pin channel in the external pin 224 when the target configuration information is pin configuration information; the target external chip is any one of the external chips.
In the present embodiment, the external pin 224 may be understood as one or more pins for connecting with the external chip 24, collectively referred to as external pins; the target pin channel may be understood as one of the external pins 224 of the chip that is connected to the external chip 24; the external chip 24 may be one or more, and when there are multiple external chips 24, the external chips may be the same type of chip or different types of chips, and the target external chip may be understood as one chip in the external chips 24; when the target configuration information is pin configuration information, the external chip connected by the external pin 224 may be a plurality of types of chips, and the external pin 224 transmits the standard signal output from the current transmission channel to the target external chip 24 through the target pin channel.
Further, the digital processing module 22 further includes: a digital signal processing unit 225;
the digital signal processing unit 225 is connected to the modem module 21 and the communication protocol conversion unit 221 through an internal bus, and is configured to filter digital signals and store the signals obtained during filtering in the memory array 2231 through the memory control subunit 2232.
In this embodiment, the digital signal processing unit 225 can be understood as a unit that performs processing such as screening and sorting on data; the digital signal processing unit 225 is connected to the modem module 21, acquires the digital signal transmitted by the modem module, performs filtering processing on the digital signal, removes error signals, unnecessary signals, and the like, and transmits the filtered digital signal to the communication protocol conversion unit 221 so that the communication protocol conversion unit performs subsequent communication protocol conversion. The digital signal processing unit 225 generates intermediate data during the process of performing the filtering process on 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, thereby finally implementing the filtering on the digital signal.
In the embodiment of the invention, the conversion of any one communication protocol can be realized through the storage array, the communication protocol conversion module, the protocol selection module and the storage control unit; the conversion of any one communication protocol can be realized only by the configuration pins, the communication protocol conversion module and the protocol selection module.
The embodiment of the 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 can not convert data of any communication protocol, and realizes conversion of any communication protocol data by performing data conversion among a plurality of communication protocols through protocol configuration information stored in a storage array, has higher universality and can be applied to any communication protocol platform. The conversion of any communication protocol is completed by the communication protocol conversion unit and the protocol selection unit which are indicated by the pin state and the state bit of the configuration pin, and the switching of the communication protocol conversion can be carried out at any time after the chip is electrified, so that the data communication is conveniently carried out when different chips are externally connected, and the flexibility is strong.
EXAMPLE III
Fig. 3 is a flowchart of a data conversion method according to a second embodiment of the present invention, where this embodiment is applicable to a case where data is converted between different communication protocol formats, and the method may be executed by any one of the chips provided in the second embodiment of the present invention, and specifically includes the following steps:
step S310, the modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal.
The modulation and demodulation module demodulates the received wireless radio frequency signal to obtain a digital signal, the demodulation mode can be a sine wave amplitude demodulation technology, a sine wave angle demodulation technology and a resonance demodulation technology, and the embodiment of the application does not limit the specific adopted demodulation mode.
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.
In the present embodiment, the target configuration information is stored by the configuration unit. The current protocol conversion rule can be understood as what communication protocol conversion is currently performed by the communication protocol conversion unit and how the conversion of the protocol is performed.
Before the chip is powered on, 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 a current protocol conversion rule according to a 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.
And 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.
In this embodiment, the current transmission channel is determined according to a preset bit in the memory array. The current transmission channel may be understood as which data transmission channel is currently selected by the protocol selection unit for data transmission. The target external chip can be understood as a chip currently externally connected with the chip, and when the currently externally connected chips are of the same type, the target external chip is usually all the external chips; when the current external chips are of different types, the current external chips can only be converted into a format of one communication protocol at present, and therefore the current external chips are only sent to one external chip (even if standard signals are sent to all types of external chips, only one external chip can receive the standard signals), and the external chips of the types are target external chips.
Before the chip is powered on, the target configuration information in the configuration unit is set in advance, so that 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. And the protocol selection unit sends the standard signal to the target external chip through the current transmission channel.
The embodiment of the invention provides a data conversion method, which comprises the steps of determining a digital signal according to a received wireless radio frequency signal through a modulation and demodulation module; 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; the protocol selection unit determines a 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; the target configuration information is stored by the configuration unit, the problem that a chip in the prior art can only be converted into a fixed communication protocol and cannot convert data of any communication protocol is solved, the current protocol conversion rule and the current transmission channel are determined by the protocol configuration information stored in the storage array, data conversion between any communication protocols and corresponding data transmission are achieved, and the method has high universality and can be applied to any communication protocol platform.
Example four
Fig. 4 is a flowchart of a data conversion method according to a fourth embodiment of the present invention. The technical solution of this embodiment is further refined based on the above technical solution, and the digital processing module further includes: at least one configuration pin, the method mainly comprises the following steps:
step S401, the modem module determines a digital signal according to the received radio frequency signal.
And step S402, screening the digital signals through the digital signal processing unit.
The digital signal is subjected to screening processing by the data signal processing unit, and an error signal, an unnecessary signal, and the like in the digital signal are removed.
Step S403, the communication protocol conversion unit and/or the protocol selection unit acquires target configuration information.
The communication protocol conversion and/or protocol selection unit needs to acquire the target configuration information, and when the target configuration information is acquired from the configuration unit, the communication protocol conversion unit and the protocol selection unit may respectively and directly acquire the target configuration information from the configuration unit, or only the communication protocol conversion unit or the protocol selection unit may acquire the target configuration information.
Further, the step of obtaining the target configuration information comprises the following steps:
when the configuration unit does not comprise configuration pins or the pin states of the configuration pins are all enable invalid, judging whether the configuration unit comprises a storage array, if so, acquiring protocol configuration information of preset bits in the storage array through the memory control subunit, and taking the protocol configuration information as target configuration information;
when the configuration unit comprises configuration pins and the pin state of at least one configuration pin is enabled to be effective, determining pin configuration information according to the state bit of each configuration pin, and taking the pin configuration information as target configuration information.
In the present embodiment, the pin status includes enable disable and enable, which can be represented by a high level and a low level of the enable terminal, for example, a high level represents enable and a low level represents enable disable, or a low level represents enable and a high level represents enable and disable. The preset bits may be understood as data bits of preset storage data for storing protocol configuration information.
The communication protocol conversion unit or the protocol acquisition unit is connected with the configuration unit, and the connection with the configuration unit comprises the connection with each configuration pin and/or memory control subunit in the configuration unit. After the chip is powered on, whether configuration pins exist is judged, if the configuration pins do not exist, or the pin states of all the configuration pins are enabled and invalid, whether a storage array exists is judged, if the storage array exists, stored protocol configuration information, such as a 5 th field of a preset bit, is acquired from the 5 th field in the storage array through a memory control subunit, and the protocol configuration information is used as target configuration information. When configuration pins exist in the configuration unit and the pin state of at least one configuration pin is enabled to be effective, acquiring the state bit of the configuration pin, determining pin configuration information according to the state bit, and taking the pin configuration information as target configuration information. Before the chip is powered on, the pin state and the state bit of the configuration pin are adjusted in advance through a user terminal or a key on the chip and the like.
The status bits of the configuration pins together determine pin configuration information, which exemplifies a determination manner of the pin configuration information, taking the number of the configuration pins equal to 3 as an example, 3 configuration pins may perform conversion between 8 communication protocol formats, and pre-store configuration information corresponding to a plurality of communication protocol formats, where each configuration information corresponds to a number, for example, the number 1 is an I2C communication protocol format, the number 2 is an SPI communication protocol format, the number 3 is a UART communication protocol format, the number 4 is a single-wire communication protocol format, and the number … … is a JTAG communication protocol format. The determination method of the pin configuration information may be: the status bit of the configuration pin 1 is high level 1, the status bit of the configuration pin 2 is low level 0, the status bit of the configuration pin 3 is low level 0, the composed binary data is 100, and the corresponding decimal data is 4, so the corresponding pin configuration information is in a single-wire communication protocol format, that is, the communication protocol conversion unit needs to convert the received signal into a standard signal in the single-wire communication protocol format.
And S404, carrying out communication protocol configuration according to the target configuration information, and determining a communication protocol conversion rule corresponding to the target configuration information as a current protocol conversion rule.
In this embodiment, the communication protocol conversion rule may be understood as a rule for converting data between two different communication protocols, where the different communication protocols have different language specifications, and when data in one specification is converted into data in another specification, conversion needs to be performed according to a certain rule.
The communication protocol conversion unit carries out communication protocol configuration according to the target configuration information, namely, the logic required by completing corresponding communication protocol format conversion is started, after the relevant logic is configured, 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, and the communication protocol conversion rule indicates how to carry out conversion.
Step S405, the parallel-to-serial sub-unit in the communication protocol conversion unit converts the digital signal into a serial signal.
The conversion between the parallel data and the serial data can be realized through the shift register by the parallel-serial subunit, after the parallel digital signals are input, the parallel digital signals are sequentially output according to a time sequence, the data carried by the digital signals are 32 bits, and the transmission is completed by adopting a serial transmission mode in 32 clock cycles.
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.
And the protocol conversion subunit converts the serial signal into a standard signal in a communication protocol format corresponding to the target configuration information according to the current protocol conversion rule. For example, the communication protocol used for the serial signal itself specifies that the first field is the user's id and is 2 bytes in size, and the communication protocol used for the converted standard signal specifies that the second field is the user's id and is 4 bytes in size.
Step S407, the protocol selection unit screens 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.
In this embodiment, the data transmission channel may 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, and different data transmission channels for transmitting data are different due to different types of external chips, different data transmission channels for transmitting data to different types of external chips are pre-established, and a corresponding data transmission channel is selected from the data transmission channels according to what kind of communication protocol format is converted and indicated by the target configuration information, and is used as the current transmission channel. And sending a standard signal to the target external chip according to the current transmission channel.
Further, the protocol selection unit acquires the target configuration information from the communication protocol conversion unit.
The protocol selection unit may not acquire the target configuration information from the configuration unit, but directly acquire the target configuration information from the communication protocol conversion unit after the communication protocol conversion unit acquires the target configuration information. Similarly, the communication protocol conversion unit may also obtain the target configuration information from the protocol selection unit.
The method comprises the steps of determining a current protocol conversion rule and determining that a current transmission channel is not distinguished successively in implementation, and when a protocol selection unit determines the current transmission channel according to target configuration information, the protocol selection unit can acquire the target configuration information determined by a communication protocol conversion unit, and can also acquire a pin state and a state bit of a configuration pin to further determine the target configuration information, wherein the implementation mode of the method is the same as the implementation mode of the communication protocol conversion unit for determining the target configuration information. The protocol selection unit may determine the target configuration information, and the communication protocol conversion unit directly obtains the target configuration information determined by the protocol selection unit, which is not specifically limited in this embodiment of the present application.
Further, the chip is connected with at least one external chip through an external pin, and the method further comprises the following steps: the 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 pins; the target pin channel is determined by sending channel confirmation information to the chip through a second user terminal connected with the chip, and the target external chip is any one of the external chips.
In this embodiment, the second user terminal may be understood as a computer device such as an upper computer, a PC-side computer, a mobile phone, and a tablet computer; the channel confirmation information may be understood as information for confirming which data transmission channel the channel for transmitting data with the external chip is.
The communication protocol conversion unit determines the current protocol conversion rule according to the target configuration information, the protocol selection unit determines the current transmission channel according to the target configuration information at the same time, the basic configuration is completed at this moment, and the received signal can be processed, the corresponding protocol conversion is carried out, and the signal is sent to the target external chip. However, at this time, the status bit of the configuration pin can be changed at will, and thus switching of communication between chips with different protocols is achieved, so that the external chip can be an external chip of different types. But the standard signal only needs to be transmitted to one of the external chips, and does not need to be transmitted to all types of external chips (even if the standard signal is transmitted, other external chips cannot correctly analyze the signal). At this time, after the protocol selection unit sends out the standard signal through the current transmission channel, the standard signal reaches the external chip through the next transmission channel, only the target external chip can successfully acquire the standard signal, and signals transmitted by other channels are useless, so that in order to avoid interference of other chips, the target pin channel can be determined, and only the target pin channel is used for sending when the standard signal is sent subsequently, and other pins are closed.
The second user terminal connected with the chip sends channel confirmation information to the chip, the channel confirmation information is also a radio frequency signal, the channel confirmation information is transmitted in a normal information transmission mode (namely, the channel confirmation information is transmitted to the protocol selection module through the modulation and demodulation module and the communication protocol conversion module), the protocol selection module sends the channel confirmation information outwards according to the current transmission channel, the channel confirmation information is transmitted to the external chip through an external pin connected with the external chip, only the target external chip in the external chip feeds back a response signal after receiving the channel confirmation information, and the second user terminal can determine a target pin channel and close other pins after receiving the fed back response signal. At this time, when the protocol selection unit transmits subsequent signals, the protocol selection unit transmits standard signals to the target external chip through the current transmission channel and the target pin channel. When the chips with other protocols need to be switched to communicate, the state bit of the pin is only needed to be reset, the steps of confirming the current protocol conversion rule, the current transmission channel and the target pin channel are sequentially executed, and then signal transmission is carried out, so that data interaction can be carried out on all external chips through a time-sharing communication method.
It should be noted that the steps described above may be interchanged in a particular order or sequence where permitted.
The embodiment of the invention provides a data conversion method, which solves the problems that a chip in the prior art can only be converted into a fixed communication protocol and can not convert data of any communication protocol, determines a current protocol conversion rule and a current transmission channel through protocol configuration information stored in a storage array, realizes data conversion and corresponding data transmission between any communication protocol, and determines the current protocol conversion rule and the current transmission channel through a pin state and a state bit of a configuration pin, realizes real-time switching of chip communication between different protocols, has higher universality and can be applied to any communication protocol platform.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A chip, wherein the chip comprises: the system comprises a modulation and demodulation module and a digital processing module, wherein the digital processing module comprises a communication protocol conversion unit, a protocol selection unit and a configuration unit;
the modulation and demodulation module is connected with the communication protocol conversion unit through an internal bus and used for receiving wireless radio frequency signals through an antenna and converting the wireless radio frequency signals into digital signals;
the configuration unit is connected with the communication protocol conversion unit through an internal bus and used for storing target configuration information;
the communication protocol conversion unit is connected with the protocol selection unit through an internal bus and is used for acquiring the target configuration information and converting the digital signal into a standard signal with a communication protocol format corresponding to the target configuration information;
and the protocol selection unit is connected with the configuration unit through an internal bus and used for determining a current transmission channel according to the target configuration information and sending the standard signal through the current transmission channel.
2. The chip of claim 1, wherein the configuration unit comprises: a memory array and a memory control subunit;
the memory array is connected with the memory control subunit through an internal bus and is used for storing protocol configuration information for determining target configuration information;
the memory control subunit is connected with the communication protocol conversion unit and the protocol selection unit through an internal bus, and is used for acquiring protocol configuration information from the memory array and determining target configuration information.
3. The chip according to claim 1 or 2, wherein the configuration unit comprises: at least one configuration pin;
each configuration pin is respectively connected with the communication protocol conversion unit and the protocol selection unit through an internal bus, is externally connected with a first user terminal, and is used for receiving information of the first user terminal and carrying out corresponding pin state and state bit adjustment;
wherein the pin state and the state bits are used to determine pin configuration information.
4. The chip according to claim 1, wherein the communication protocol conversion unit comprises: a parallel-to-serial subunit and a protocol conversion subunit;
the parallel-serial sub-unit is connected with the modulation and demodulation module through an internal bus and is used for converting the digital signal into a serial signal;
and the protocol conversion subunit is connected with the parallel-to-serial subunit and is used for converting the serial signal into a standard signal with a communication protocol format corresponding to the target configuration information.
5. The chip of claim 1, wherein the protocol selection unit obtains the target configuration information from the configuration unit and/or the communication protocol conversion unit.
6. The chip of claim 1, wherein the digital processing module further comprises: externally connecting a pin;
the external pin is connected with the protocol selection unit and at least one external chip and used for sending the standard signal output from the current transmission channel to a target external chip through a target pin channel in the external pin;
the target external chip is any one of the external chips.
7. The chip of claim 1, wherein the digital processing module further comprises: a digital signal processing unit;
and the digital signal processing unit is respectively connected with the modulation and demodulation module and the communication protocol conversion unit through an internal bus and is used for screening the digital signals and storing the signals obtained in the screening process into a storage array through a storage control subunit.
8. A data conversion method, performed by the chip of any one of claims 1-7, comprising:
the modulation and demodulation module determines a digital signal according to the received wireless radio frequency signal;
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;
the protocol selection unit determines a current transmission channel according to the target configuration information and sends the standard signal to a target external chip according to the current transmission channel;
wherein the target configuration information is stored by a configuration unit.
9. The method of claim 8, further comprising: the communication protocol conversion unit and/or the protocol selection unit acquire the target configuration information; correspondingly, the step of obtaining the target configuration information comprises the following steps:
when the configuration unit does not comprise configuration pins or the pin states of the configuration pins are enabled or invalid, judging whether the configuration unit comprises a storage array, if so, acquiring protocol configuration information of a preset bit in the storage array by using a memory control subunit, and taking the protocol configuration information as target configuration information;
when the configuration unit comprises configuration pins and the pin state of at least one configuration pin is enabled to be effective, determining pin configuration information according to the state bit of each configuration pin, and taking the pin configuration information as target configuration information.
10. The method of claim 8, wherein determining the current protocol conversion rule by the communication protocol conversion unit according to the target configuration information comprises:
and carrying out communication protocol configuration according to the target configuration information, and determining a communication protocol conversion rule corresponding to the target configuration information as a current protocol conversion rule.
11. The method according to claim 8, before the communication protocol conversion unit converts the digital signal into a standard signal according to a current protocol conversion rule, further comprising:
and screening the digital signals through a digital signal processing unit.
12. The method of claim 8, wherein the communication protocol conversion unit converts the digital signal into a standard signal according to a current protocol conversion rule, comprising:
a parallel-to-serial sub-unit in the communication protocol conversion unit converts the digital signal into serial data;
and a 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.
13. The method of claim 8, wherein the determining, by the protocol selection unit, a current transmission channel according to the target configuration information comprises:
and screening at least one preset data transmission channel according to the target configuration information to obtain a current transmission channel.
14. The method of claim 8, further comprising:
the protocol selection unit acquires the target configuration information from the communication protocol conversion unit.
15. The method of claim 8, wherein the chip is connected to at least one external chip via external pins, further comprising:
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;
and the target pin channel is determined by sending channel confirmation information to the chip through a second user terminal connected with the chip, and the target external chip is any one of the external chips.
CN202011559748.7A 2020-12-25 2020-12-25 Chip and data conversion method Pending CN114759942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011559748.7A CN114759942A (en) 2020-12-25 2020-12-25 Chip and data conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011559748.7A CN114759942A (en) 2020-12-25 2020-12-25 Chip and data conversion method

Publications (1)

Publication Number Publication Date
CN114759942A true CN114759942A (en) 2022-07-15

Family

ID=82324604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011559748.7A Pending CN114759942A (en) 2020-12-25 2020-12-25 Chip and data conversion method

Country Status (1)

Country Link
CN (1) CN114759942A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314159A (en) * 2022-08-02 2022-11-08 成都爱旗科技有限公司 Inter-chip data transmission method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314159A (en) * 2022-08-02 2022-11-08 成都爱旗科技有限公司 Inter-chip data transmission method and device
CN115314159B (en) * 2022-08-02 2023-08-04 成都爱旗科技有限公司 Method and device for transmitting data between chips

Similar Documents

Publication Publication Date Title
JP5268844B2 (en) Wireless communication system
CN106415490B (en) Mobile terminal, power adapter and upgrading method thereof
CN101977275B (en) Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof
KR100614638B1 (en) Serial peripheral interface circuit of hybrid type adaptable to high peformance wireless lan and method of the same
CN105677598B (en) The module and method of multiple MEMS sensor data are quickly read based on I2C interface
CN116450552B (en) Asynchronous batch register reading and writing method and system based on I2C bus
CN103957198A (en) Sensor data receiving and converting method and system
CN107992439B (en) Extensible data interaction method and system
CN114759942A (en) Chip and data conversion method
CN214177306U (en) Chip
CN113867836A (en) Device for FPGA, program dynamic loading method and data transmission method
CN101907683B (en) Automatic circuit testing structure of I2C module in digital baseband chip and method thereof
US6378011B1 (en) Parallel to serial asynchronous hardware assisted DSP interface
CN220210468U (en) Transparent transmission device for mobile communication
CN116436526B (en) Method, device, system, storage medium and electronic equipment for controlling signal transmission
CN116954192A (en) Function test method, system and device of bus controller and readable storage medium
CN108282493B (en) Wireless clock module and wireless timing method
CN114244909B (en) Protocol conversion circuit and related device
CN103152115A (en) Full-channel data acquirer
CN113282532B (en) Communication device, communication method of communication device and electronic equipment
CN112199312B (en) Interface conversion device of communication equipment and communication system
CN111130678B (en) Data transmission method, device, equipment and computer readable storage medium
CN110471881B (en) Method for realizing rapid communication between multiple slave devices and SPI (Serial peripheral interface) master device
EP2410435A1 (en) Signal transmission device and method
CN204695025U (en) A kind of wireless bus connector based on bluetooth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination