Label chip and method and device for instruction configuration of IIC interface information of label chip
The configuration instructions are parsed through the digital baseband module, dynamically initialize or skip the IIC interface, and use registers to store information, solving the problems of high cost and inflexibility of label chips, and achieving low-cost and high-versatility IIC interface adaptation.
Patent Information
- Application Number
- CN202511054226.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-08-29
AI Technical Summary
In the existing label chip design, the IIC interface parameters are fixed, resulting in high chip cost, increased complexity and lack of versatility and flexibility.
The digital baseband module analyzes the configuration instructions of the host computer, dynamically initializes the IIC interface or skips the initialization step, and temporarily stores the IIC interface configuration information using registers to achieve the flexible adaptation of the tag chip to different application scenarios.
It reduces chip cost and complexity, improves the versatility and scalability of label chips, and can adapt to a variety of peripheral devices.
Smart Images

Figure CN120560731A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of tag communication technology, and in particular to a tag chip and a method and device for instructing configuration of tag chip IIC interface information. Background Art
[0002] In current tag chip design technology, if IIC interface communication is required, the tag chip is usually equipped with a separate fixed memory to store IIC interface configuration information, such as device address, register address, address bit number, sampling time, sampling rate, etc. This configuration information is loaded during chip initialization and remains unchanged during subsequent communication processes. The above solution has the following technical drawbacks: 1. Introducing fixed memory into the tag chip will increase the cost and complexity of the chip.
[0003] 2. In the existing tag chip design technology, the IIC interface parameters of the tag chip are fixed, which limits the versatility and flexibility of the tag chip in different application scenarios. Summary of the Invention
[0004] Purpose of the invention: The present invention aims to propose a tag chip, a method and a device for configuring the IIC interface information of the tag chip, so as to at least partially overcome the defects of the prior art.
[0005] Summary of the invention: To achieve the above objectives, the present invention proposes the following technical solutions: In a first aspect, a method for instructing configuration of IIC interface information of a tag chip is provided, wherein the tag chip includes a digital baseband module and an IIC interface, and the digital baseband module is configured with a register; the method comprising: In response to obtaining a configuration instruction from the host computer, the digital baseband module parses the configuration instruction; If the configuration instruction contains IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in the register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol through the IIC interface; If the configuration instruction does not include the IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and the tag chip enters the normal chip mode.
[0006] As an optional implementation manner of the method of the first aspect, the digital baseband module communicates with the peripheral device based on the IIC protocol through the IIC interface, specifically including: The digital baseband module controls the level changes on the data line and the clock line of the IIC interface according to the logic function and timing requirements of the IIC protocol to achieve communication with the peripheral device.
[0007] As an optional implementation manner of the method of the first aspect, the method further includes: Before the tag chip is applied to a communication scenario based on the IIC protocol, obtaining peripheral device information of the tag chip; The host computer generates the IIC interface configuration information according to the peripheral device information of the tag chip, writes the IIC interface configuration information into the configuration instruction, and then sends it to the tag chip.
[0008] In a second aspect, a device for configuring IIC interface information of a tag chip is provided, comprising a host computer and a tag chip, wherein the tag chip comprises a digital baseband module and an IIC interface, and the digital baseband module is configured with a register; The host computer is configured to send a configuration instruction to the tag chip; The tag chip is configured to respond to obtaining the configuration instruction of the host computer and parse the configuration instruction through the digital baseband module; if the configuration instruction contains IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in the register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol through the IIC interface; if the configuration instruction does not contain the IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
[0009] As an optional implementation manner of the apparatus according to the second aspect, the digital baseband module is specifically configured to: According to the logic function and timing requirements of the IIC protocol, the level changes on the data line and the clock line of the IIC interface are controlled to achieve communication with the peripheral device.
[0010] As an optional implementation manner of the device according to the second aspect, the host computer is specifically configured to: Acquiring peripheral device information of the tag chip; The IIC interface configuration information is generated according to the peripheral device information of the tag chip, and the IIC interface configuration information is written into the configuration instruction and then sent to the tag chip.
[0011] In a third aspect, a tag chip is provided, comprising a digital baseband module and an IIC interface, wherein the digital baseband module is configured with a register; The digital baseband module is configured to parse the configuration instruction in response to obtaining the configuration instruction from the host computer; The digital baseband module is further configured to, when the configuration instruction contains IIC interface configuration information, temporarily store the IIC interface configuration information in the register, initialize the IIC interface according to the IIC interface configuration information in the register, and communicate with the peripheral device based on the IIC protocol through the IIC interface; The digital baseband module is further configured to skip the IIC interface initialization step when the configuration instruction does not contain the IIC interface configuration information. At this time, the tag chip enters the normal chip mode.
[0012] As an optional implementation of the tag chip described in the third aspect, the digital baseband module is specifically used to control the level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol to achieve communication with the peripheral device.
[0013] Beneficial effects: Compared with the prior art, the method of configuring tag chip IIC interface information through instructions proposed in the present invention has the following advantages: 1. This method controls the operating mode of the tag chip by sending configuration instructions via a host computer. Specifically, when the digital baseband module of the tag chip parses the configuration instruction and finds that the configuration instruction contains IIC interface configuration information, the digital baseband module initializes the IIC interface. At this time, the tag chip operates in IIC protocol mode, and the digital baseband module communicates with peripheral devices based on the IIC protocol via the IIC interface. If the digital baseband module of the tag chip parses the configuration instruction and finds that the configuration instruction does not contain IIC interface configuration information, the IIC interface initialization step is skipped, and the tag chip is used as a normal chip. Through this design, the tag chip can flexibly adapt to different application scenarios.
[0014] 2. In this method, there is no need to configure an independent fixed memory in the tag chip, and it can be implemented by relying on the registers provided by the digital baseband module, thereby reducing the production cost and complexity of the chip.
[0015] 3. In this method, the IIC interface parameters of the tag chip can be dynamically adjusted by adjusting the IIC interface configuration information in the configuration instruction, so that the tag chip can be flexibly adapted to different peripheral devices, thereby improving the versatility and scalability of the tag chip.
[0016] Correspondingly, the device for configuring the IIC interface information of the tag chip and the tag chip described in the present invention also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1The present invention is a flowchart of a method for configuring tag chip IIC interface information through instructions according to an embodiment.
[0018] Figure 2 The figure is a schematic structural diagram of a tag chip involved in the embodiment.
[0019] Figure 3 This is a structural diagram of a device for configuring tag chip IIC interface information through instructions according to an embodiment. DETAILED DESCRIPTION
[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. However, it should be understood that the present invention may be implemented in various forms, and the following exemplary and non-limiting embodiments shown in the drawings and described below are not intended to limit the present invention to the specific embodiments described.
[0021] It should be understood that, where technically feasible, the technical features listed above for different embodiments may be combined with each other to form additional embodiments within the scope of the present invention. In addition, the specific examples and embodiments described in the present invention are non-limiting, and the structures, steps, and sequences described above may be modified accordingly without departing from the scope of protection of the present invention.
[0022] Please refer to Figure 1 This embodiment provides a method for configuring the IIC interface information of a tag chip. The method is applicable to a tag chip. The structure of the tag chip is as follows: Figure 2 As shown, it includes a digital baseband module and an IIC interface, and the digital baseband module is configured with registers. Figure 1 The flow chart of the method is schematically shown as follows: Figure 1 As shown, the method includes steps S100 to S104.
[0023] S100: In response to obtaining a configuration instruction from a host computer, the digital baseband module parses the configuration instruction.
[0024] The host computer mentioned above can be a transmitter or other external air interface communication equipment. The digital baseband module can communicate with the host computer through the communication interface of the tag chip, and parse the configuration instruction after obtaining the configuration instruction sent by the host computer.
[0025] S102: If the configuration instruction contains IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in a register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol through the IIC interface.
[0026] The above-mentioned IIC interface configuration information specifically includes the device address, register address, address bit number, sampling time and other information required by the IIC interface. The digital baseband module initializes the parameters of the IIC interface according to the IIC interface configuration information so that the IIC interface can work normally.
[0027] Since the tag chip does not have independent memory space to store the IIC interface configuration information, the digital baseband module temporarily saves the IIC interface configuration information in the register of the digital baseband module after parsing the IIC interface configuration information. The IIC interface configuration information is only valid in the current communication session and needs to be reconfigured during the next communication.
[0028] After the digital baseband module initializes the IIC interface, it communicates with the peripheral device connected to the IIC interface (such as a sensor or an external microprocessor) based on the IIC protocol to read the data sent by the peripheral device.
[0029] At this point, the tag chip operates in IIC protocol mode. In this mode, the tag chip can function as either a master or slave device, and the digital baseband module is responsible for implementing various master / slave device functions in the IIC protocol. For example, when the tag chip functions as a master device, the digital baseband module is responsible for implementing functions such as start and stop signal generation, response signal detection, and data transmission and reception. Specifically, the digital baseband module can control the level changes on the IIC interface's clock line SCL and data line SDA according to the IIC protocol's logical functions and timing requirements, thereby enabling the tag chip to communicate with peripheral devices in accordance with the IIC protocol.
[0030] S104: If there is no IIC interface configuration information in the configuration instruction, the digital baseband module skips the IIC interface initialization step. At this time, the tag chip enters the normal chip mode.
[0031] If the digital baseband module finds no IIC interface configuration information in the configuration command after parsing it, it will not initialize the IIC interface, that is, it will skip the IIC interface initialization step. At this time, the IIC interface does not work, and the tag chip operates in normal chip mode. In normal chip mode, the digital baseband module is used to implement the digital signal processing and transmission functions of a normal tag chip.
[0032] In specific operations, if the above-mentioned tag chip needs to be applied to a communication scenario based on the IIC protocol, it is first necessary to set the IIC interface configuration information on the host computer side.
[0033] Specifically, the peripheral device information of the tag chip can be obtained, and then the peripheral device information of the tag chip is written into the host computer, so that the host computer generates IIC interface configuration information according to the peripheral device information of the tag chip. The host computer writes the IIC interface configuration information into a configuration instruction and sends the configuration instruction to the tag chip.
[0034] The above is a method for configuring the IIC interface information of a tag chip through instructions provided in this embodiment. This method configures the tag chip through instructions. The tag chip has two operating modes, namely, IIC protocol mode and normal chip mode. In IIC protocol mode, the tag chip is a chip with an IIC interface and can communicate with peripheral devices based on the IIC protocol through the IIC interface. In normal chip mode, the IIC interface of the tag chip does not work, and the tag chip can be used in other scenarios.
[0035] Correspondingly, the digital baseband module also has two operating modes: IIC protocol mode and standard chip mode. In standard chip mode, the digital baseband module implements the digital signal processing and transmission functions of a standard tag chip. In IIC protocol mode, the digital baseband module implements the specific logic of the IIC protocol, such as start and stop signal generation, response signal detection, and data transmission and reception.
[0036] Corresponding to the above method, this embodiment also provides a tag chip, please continue to refer to Figure 2 The tag chip includes a digital baseband module and an IIC interface, and the digital baseband module is configured with registers.
[0037] The digital baseband module is configured to parse the configuration instruction in response to obtaining the configuration instruction from the host computer.
[0038] The digital baseband module is further configured to temporarily store the IIC interface configuration information in a register when the configuration instruction contains the IIC interface configuration information, initialize the IIC interface according to the IIC interface configuration information in the register, and communicate with the peripheral device based on the IIC protocol through the IIC interface.
[0039] The digital baseband module is further configured to skip the IIC interface initialization step when there is no IIC interface configuration information in the configuration instruction. At this time, the tag chip enters the normal chip mode.
[0040] Specifically, the host computer can be a transmitter or other external air interface communication equipment. The digital baseband module can communicate with the host computer through the communication interface of the tag chip, and parse the configuration instruction after obtaining the configuration instruction sent by the host computer.
[0041] Specifically, the above-mentioned IIC interface configuration information specifically includes the device address, register address, address bit number, sampling time and other information required for the IIC interface. The digital baseband module initializes the parameters of the IIC interface according to the IIC interface configuration information so that the IIC interface can work normally.
[0042] Since the tag chip does not have independent memory space to store the IIC interface configuration information, the digital baseband module temporarily saves the IIC interface configuration information in the register of the digital baseband module after parsing the IIC interface configuration information. The IIC interface configuration information is only valid in the current communication session and needs to be reconfigured during the next communication.
[0043] After the digital baseband module initializes the IIC interface, it communicates with the peripheral device connected to the IIC interface (such as a sensor or an external microprocessor) based on the IIC protocol to read the data sent by the peripheral device.
[0044] At this point, the tag chip operates in IIC protocol mode. In this mode, the tag chip can function as either a master or slave device, and the digital baseband module is responsible for implementing various master / slave device functions in the IIC protocol. For example, when the tag chip functions as a master device, the digital baseband module is responsible for implementing functions such as start and stop signal generation, response signal detection, and data transmission and reception. Specifically, the digital baseband module can control the level changes on the IIC interface's clock line SCL and data line SDA according to the IIC protocol's logical functions and timing requirements, thereby enabling the tag chip to communicate with peripheral devices in accordance with the IIC protocol.
[0045] Specifically, if the digital baseband module finds no IIC interface configuration information in the configuration command after parsing it, it will not initialize the IIC interface, i.e., skip the IIC interface initialization step. At this time, the IIC interface does not work, and the tag chip operates in normal chip mode. In normal chip mode, the digital baseband module is used to implement the digital signal processing and transmission functions of a normal tag chip.
[0046] Corresponding to the above method, this embodiment also provides a device for instructing configuration of tag chip IIC interface information. Figure 3 The device includes a host computer and a tag chip, wherein the structure of the tag chip is as follows Figure 2 As shown, it includes a digital baseband module and an IIC interface, and the digital baseband module is configured with registers.
[0047] exist Figure 3In the device for configuring the IIC interface information of a tag chip using instructions shown in the figure, the host computer is configured to send configuration instructions to the tag chip. The tag chip is configured to respond to the configuration instructions received from the host computer and parse the configuration instructions through the digital baseband module. If the configuration instructions contain IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in a register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol via the IIC interface. If the configuration instructions do not contain IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and the tag chip enters normal chip mode.
[0048] The host computer mentioned above can be a transmitter or other external air interface communication equipment. The digital baseband module can communicate with the host computer through the communication interface of the tag chip, and parse the configuration instruction after obtaining the configuration instruction sent by the host computer.
[0049] The above-mentioned IIC interface configuration information specifically includes the device address, register address, address bit number, sampling time and other information required by the IIC interface. The digital baseband module initializes the parameters of the IIC interface according to the IIC interface configuration information so that the IIC interface can work normally.
[0050] Since the tag chip does not have independent memory space to store the IIC interface configuration information, the digital baseband module temporarily saves the IIC interface configuration information in the register of the digital baseband module after parsing the IIC interface configuration information. The IIC interface configuration information is only valid in the current communication session and needs to be reconfigured during the next communication.
[0051] After the digital baseband module initializes the IIC interface, it communicates with the peripheral device connected to the IIC interface (such as a sensor or an external microprocessor) based on the IIC protocol to read the data sent by the peripheral device.
[0052] At this point, the tag chip operates in IIC protocol mode. In this mode, the tag chip can function as either a master or slave device, and the digital baseband module is responsible for implementing various master / slave device functions in the IIC protocol. For example, when the tag chip functions as a master device, the digital baseband module is responsible for implementing functions such as start and stop signal generation, response signal detection, and data transmission and reception. Specifically, the digital baseband module can control the level changes on the IIC interface's clock line SCL and data line SDA according to the IIC protocol's logical functions and timing requirements, thereby enabling the tag chip to communicate with peripheral devices in accordance with the IIC protocol.
[0053] If the digital baseband module finds no IIC interface configuration information in the configuration command after parsing it, it will not initialize the IIC interface, that is, it will skip the IIC interface initialization step. At this time, the IIC interface does not work, and the tag chip operates in normal chip mode. In normal chip mode, the digital baseband module is used to implement the digital signal processing and transmission functions of a normal tag chip.
[0054] In specific operations, if the above-mentioned tag chip needs to be applied to a communication scenario based on the IIC protocol, it is first necessary to set the IIC interface configuration information on the host computer side.
[0055] Specifically, the peripheral device information of the tag chip can be obtained, and then the peripheral device information of the tag chip is written into the host computer, so that the host computer generates IIC interface configuration information according to the peripheral device information of the tag chip. The host computer writes the IIC interface configuration information into a configuration instruction and sends the configuration instruction to the tag chip.
[0056] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0057] The above-described embodiments merely represent several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent application. It should be noted that a person of ordinary skill in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, and these variations and improvements fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention patent application shall be determined by the appended claims.
Claims
1. A method for configuring tag chip IIC interface information by instructions, characterized in that: The tag chip includes a digital baseband module and an IIC interface, and the digital baseband module is configured with a register; the method includes: In response to obtaining a configuration instruction from the host computer, the digital baseband module parses the configuration instruction; If the configuration instruction contains IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in the register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol through the IIC interface; If the configuration instruction does not include the IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and the tag chip enters the normal chip mode.
2. The method according to claim 1, characterized in that The digital baseband module communicates with the peripheral device based on the IIC protocol through the IIC interface, specifically including: The digital baseband module controls the level changes on the data line and the clock line of the IIC interface according to the logic function and timing requirements of the IIC protocol to achieve communication with the peripheral device.
3. The method according to claim 1, characterized in that The method further comprises: Before the tag chip is applied to a communication scenario based on the IIC protocol, obtaining peripheral device information of the tag chip; The host computer generates the IIC interface configuration information according to the peripheral device information of the tag chip, writes the IIC interface configuration information into the configuration instruction, and then sends it to the tag chip.
4. A device for instructing configuration of tag chip IIC interface information, characterized in that: It includes a host computer and a tag chip, wherein the tag chip includes a digital baseband module and an IIC interface, and the digital baseband module is configured with a register; The host computer is configured to send a configuration instruction to the tag chip; The tag chip is configured to respond to obtaining the configuration instruction of the host computer and parse the configuration instruction through the digital baseband module; if the configuration instruction contains IIC interface configuration information, the digital baseband module temporarily stores the IIC interface configuration information in the register, initializes the IIC interface according to the IIC interface configuration information in the register, and communicates with the peripheral device based on the IIC protocol through the IIC interface; if the configuration instruction does not contain the IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
5. The device according to claim 4, characterized in that The digital baseband module is specifically used for: According to the logic function and timing requirements of the IIC protocol, the level changes on the data line and the clock line of the IIC interface are controlled to achieve communication with the peripheral device.
6. The device according to claim 4, characterized in that The host computer is specifically used for: Acquiring peripheral device information of the tag chip; The IIC interface configuration information is generated according to the peripheral device information of the tag chip, and the IIC interface configuration information is written into the configuration instruction and then sent to the tag chip.
7. A tag chip, characterized in that: It includes a digital baseband module and an IIC interface, wherein the digital baseband module is configured with a register; The digital baseband module is configured to parse the configuration instruction in response to obtaining the configuration instruction from the host computer; The digital baseband module is further configured to, when the configuration instruction contains IIC interface configuration information, temporarily store the IIC interface configuration information in the register, initialize the IIC interface according to the IIC interface configuration information in the register, and communicate with the peripheral device based on the IIC protocol through the IIC interface; The digital baseband module is further configured to skip the IIC interface initialization step when the configuration instruction does not contain the IIC interface configuration information. At this time, the tag chip enters the normal chip mode.
8. The tag chip according to claim 7, characterized in that: The digital baseband module is specifically used to control the level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol, so as to realize communication with the peripheral device.
Citation Information
Patent Citations
RFID (radio frequency identification) reader compatible with Type A protocol and Type B protocol
CN103077365A
UHF RFID chip supporting digital communication interface and application method of UHF RFID chip
CN111275153A