Communication method for single bus system

By using the time slot correspondence between reset and response signals in a single bus system, the selection and identity verification of slaves are realized, the problems of communication speed and security in the existing technology are solved, and the communication efficiency and information security are improved.

WO2024183455A1PCT designated stage expired Publication Date: 2024-09-12ZHANG XIYONG
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071417
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2024-01-09
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In a single bus system, when there are multiple slaves, the host needs to verify the identity information of the slaves, resulting in limited communication speed, and the encryption protection of the digital signal has the possibility of being reversely cracked, reducing the information Security.

Method used

By using reset signals and response signals in specific time slots to select and interrogate slaves in a single bus system, and using physical encryption methods, the communication process is simplified and information security is improved.

Benefits of technology

Communication time and complexity are reduced, information security is improved, and faster and more reliable slave selection and authentication are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071417_12092024_PF_FP_ABST
    Figure CN2024071417_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is a communication method for a single bus system. The single bus system comprises a master and a plurality of slaves, the master communicates with the plurality of slaves by means of a single bus, and the plurality of slaves each comprise an interface module, a power supply management module, a microprocessor module, a clock module, and a storage module. The communication method for the single bus system comprises the following steps: S1, a master sends a reset signal of a specific time slot by means of a single bus, the reset signal being used for selecting a corresponding slave and inquiring the state of the corresponding slave; S2, after receiving the reset signal of the specific time slot, the slave sends a response signal of the specific time slot by means of the single bus; S3, after receiving the response signal, the master sends, by means of the single bus, serial signals such as an instruction / an address / data; and S4, by means of the single bus, the slave receives the serial signals such as the instruction / the address / the data, and a microprocessor module decodes the serial signals such as the instruction / the address / the data to generate corresponding internal signals so as to control the work of other modules in the slave. The present invention has the beneficial effects of reducing the communication time and complexity, and improving the information security.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method of single bus system Technical Field

[0001] The present invention relates to the technical field of integrated circuit design, and more particularly to a communication method for a single bus system. Background Art

[0002] 1-Wire bus is a peripheral serial expansion bus technology developed by the American company DALLAS. Unlike SPI and I²C serial data communication methods, it uses a single signal line to transmit both clock and data, and data transmission is bidirectional. This protocol offers numerous advantages, including conserving I / O lines, simplifying resource structure, reducing costs, and facilitating bus expansion and maintenance. This protocol consists of a bus master or multiple slave nodes, accessing data from slave chips via a single signal line. Each 1-Wire bus-compliant slave chip has a unique address consisting of a 48-bit serial number, an 8-bit family code, and an 8-bit CRC code. The master chip uses 64-bit addressing for bidirectional communication with each chip, resulting in strict timing requirements for initialization, writing bits, and reading bits.

[0003] In the prior art, when multiple slaves are connected to a single bus, the host primarily uses the unique identity information of the slaves to identify the communication partner, i.e., identity verification is required before actual communication. This process limits the speed of single-bus communication. In addition, the identity information of the slaves is primarily transmitted in the form of digital signals, which can be reversely cracked in slaves requiring encryption protection, reducing information security. Technical issues

[0004] The object of the present invention is to provide a communication method for a single bus system in order to overcome the deficiencies of the above-mentioned technology. Technical Solutions

[0005] The technical solution of the present invention is implemented as follows: a communication method of a single bus system, the single bus system includes a host and multiple slaves, the host communicates with the multiple slaves via the single bus, the multiple slaves each including an interface module, a power management module, a microprocessor module, a clock module and a storage module; the communication method of the single bus system includes the following steps:

[0006] S1. The host sends a reset signal via the single bus in a specific time slot for selecting the corresponding slave and querying the status of the corresponding slave;

[0007] S2. After the slave receives the reset signal of a specific time slot, a response signal of a specific time slot is sent via the single bus;

[0008] S3. After receiving the response signal, the host sends serial signals such as command / address / data via the single bus;

[0009] S4. The slave receives serial signals such as instructions / addresses / data through the single bus, and the microprocessor module decodes the serial signals such as instructions / addresses / data to generate corresponding internal signals for controlling the operation of other modules in the slave.

[0010] Preferably, the interface module is electrically connected to the host via the single bus for exchanging input data and output data;

[0011] The microprocessor module is electrically connected to the other modules in the slave device, and is used to receive instruction information and data information, and convert them into corresponding internal signals to control the operation of the other modules in the slave device;

[0012] The power management module is electrically connected to other modules in the slave device for power supply;

[0013] The clock module is electrically connected to the microprocessor module for providing a clock signal;

[0014] The storage module is electrically connected to the microprocessor module for storing and reading data.

[0015] Preferably, a parasitic power supply circuit is provided inside the power management module. When the single bus is at a high level, the power management module supplies power to other modules in the slave machine on the one hand, and charges the internal parasitic power supply circuit on the other hand. When the single bus is at a low level, the parasitic power supply circuit supplies power to other modules in the slave machine.

[0016] Preferably, the clock frequency of the clock module can be changed through configuration information.

[0017] Preferably, different time slots of the reset signal and the response signal correspond one-to-one to the plurality of slaves, and the slaves only respond to the reset signal of the corresponding time slot.

[0018] Preferably, the signal time slot sent by the host on the single bus, the host's write 0 time slot is greater than the maximum value of the slave sampling signal, and the host's write 1 time slot is less than the minimum value of the slave sampling signal.

[0019] Preferably, the signal time slot sent by the slave on the single bus, the write 0 time slot of the slave is greater than the maximum value of the host sampling signal, and the write 1 time slot of the slave is less than the minimum value of the host sampling signal. Beneficial effects

[0020] The present invention utilizes reset and response signals of different time slots to realize the selection and inquiry of any slave by the host in a single bus system. Compared with the selection and inquiry method of identity information verification in the existing single bus system communication technology, it not only reduces the communication time and complexity, but also the physical encryption method with one-to-one correspondence between reset time slots and response time slots further improves information security. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1 is a schematic diagram of a single bus system connection according to an embodiment of the present invention;

[0022] FIG2 is a schematic diagram of internal connections of a slave device in a single bus system according to an embodiment of the present invention;

[0023] FIG3 is a step diagram of a communication method for a single bus system according to an embodiment of the present invention;

[0024] FIG4 is a timing diagram of a communication method of a single bus system according to an embodiment of the present invention;

[0025] 5 is a communication reset / response signal time slot diagram of a single bus system according to an embodiment of the present invention;

[0026] 6 is a time slot diagram of a host communication reset / response signal of a single bus system according to an embodiment of the present invention;

[0027] FIG7 is a time slot diagram of slave communication reset / response signals in a single bus system according to an embodiment of the present invention. Best Mode for Carrying Out the Invention

[0028] The communication method for a single-bus system proposed in the present invention utilizes reset and response signals in different time slots to enable the host in the single-bus system to select and query any slave. Compared with the selection and query method for identity information verification in existing single-bus system communication technologies, this method not only reduces communication time and complexity, but also further improves information security through this physical encryption method with one-to-one correspondence between reset time slots and response time slots. Modes for Carrying Out the Invention

[0029] The present invention will be described in detail below through specific examples.

[0030] As shown in Figures 1 and 2, a communication method for a single bus system of the present invention includes a host and N slaves. The host is connected to and communicates with the N slaves simultaneously through the single bus. Each slave includes an electrically connected interface module, a power management module, a microprocessor module, a clock module and a storage module.

[0031] The interface module is electrically connected to the host via a single bus for exchanging input and output data;

[0032] The microprocessor module is electrically connected to other modules in the slave machine, and is used to receive instruction information and data information, and convert them into corresponding internal signals to control the operation of other modules in the slave machine;

[0033] The power management module is electrically connected to other modules in the slave device for supplying power to the other modules;

[0034] The clock module is electrically connected to the microprocessor module for providing a clock signal;

[0035] The storage module is electrically connected to the microprocessor module for storing and reading data.

[0036] The power management module has an internal parasitic power supply circuit. When the 1-way bus is at a high level, the power management module supplies power to other modules in the slave device while also charging the internal parasitic power supply circuit. When the 1-way bus is at a low level, the parasitic power supply circuit also supplies power to other modules in the slave device. This ensures that the power management module can power other modules regardless of whether the 1-way bus is at a high or low level, ensuring the normal operation of the 1-way bus system.

[0037] The clock frequency of the clock module can be changed through configuration information.

[0038] As shown in FIG3 , a communication method of a single bus system according to the present invention includes the following steps:

[0039] S1. The host sends a reset signal in a specific time slot via the single bus to select the corresponding slave and query the status of the corresponding slave;

[0040] S2. After the slave receives the reset signal for a specific time slot, it sends a response signal for a specific time slot via the single bus;

[0041] S3. After receiving the response signal, the host sends serial signals such as command / address / data through the single bus;

[0042] S4. The slave receives serial signals such as instructions / addresses / data through a single bus. The microprocessor decodes the serial signals such as instructions / addresses / data and generates corresponding internal signals to control the operation of other modules in the slave.

[0043] As shown in FIG4 , the timing sequence of the communication method of the single bus system in this embodiment is:

[0044] 1. The host sends a reset signal #1 in a specific time slot via the single bus. If there is no response signal from the single bus, it means that the slave selected / queried by the host does not exist or is busy.

[0045] 2. The host sends a reset signal #2 at a specific time slot via the single bus;

[0046] After receiving the reset signal #2 of the specific time slot, the slave sends the response signal #2 of the specific time slot via the single bus;

[0047] After receiving the response signal #2, the host sends the serial signal "11001100" of the read ID command through the single bus;

[0048] The slave receives the read ID instruction serial signal through the single bus. The microprocessor decodes the read ID instruction serial signal and generates a corresponding internal signal to control the slave to send the local ID data "01100011" through the single bus.

[0049] 3. The host sends a reset signal #3 at a specific time slot via the single bus;

[0050] After receiving the reset signal #3 of the specific time slot, the slave sends the response signal #3 of the specific time slot via the single bus;

[0051] After receiving the response signal #3, the host sends the serial signal "10011001" of the write ID command and the serial signal "01100100" of the write data through the single bus;

[0052] The slave receives the serial signal of the write ID instruction and the serial signal of the write data through the single bus. The microprocessor decodes the serial signal of the write ID instruction and generates the corresponding internal signal to control the slave to update the local ID register data to "01100100" and write the ID data "01100100" at the same time.

[0053] As shown in FIG5 , different time slots of the reset signal and the response signal of the single bus of the present invention correspond one-to-one to multiple slaves, and the slaves only respond to the reset signal of the corresponding time slot.

[0054] As shown in FIG6 , the host sends a signal time slot on a single bus in the present invention. The host's write-0 time slot is greater than the maximum value of the slave sampling signal, and the host's write-1 time slot is less than the minimum value of the slave sampling signal.

[0055] As shown in FIG7 , the signal timing of the slave device on the single bus of the present invention is that the write-0 time slot of the slave device is greater than the maximum value of the host sampling signal, and the write-1 time slot of the slave device is less than the minimum value of the host sampling signal. Industrial Applicability

[0056] The above descriptions are merely preferred embodiments of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention shall fall within the scope of the claims of the present invention.

Claims

1. A communication method for a single bus system, characterized in that: The single bus system comprises a host and a plurality of slaves, wherein the host communicates with the plurality of slaves via a single bus, and the plurality of slaves each comprises an interface module, a power management module, a microprocessor module, a clock module and a storage module; the communication method of the single bus system comprises the following steps: S1. The host sends a reset signal in a specific time slot through the single bus for selecting the corresponding slave and querying the status of the corresponding slave; S2. After the slave receives the reset signal of a specific time slot, a response signal of a specific time slot is sent through the single bus; S3. After receiving the response signal, the host sends serial signals such as instructions / addresses / data through the single bus; S4. The slave receives serial signals such as instructions / addresses / data through the single bus, and the microprocessor module decodes the serial signals such as instructions / addresses / data to generate corresponding internal signals for controlling the operation of other modules in the slave.

2. The communication method of the single bus system according to claim 1, characterized in that: The interface module is electrically connected to the host via the single bus for exchanging input data and output data; The microprocessor module is electrically connected to other modules in the slave respectively, and is used to receive instruction information and data information, and convert them into corresponding internal signals to control the operation of other modules in the slave; The power management module is electrically connected to other modules in the slave respectively for power supply; The clock module is electrically connected to the microprocessor module to provide a clock signal; The storage module is electrically connected to the microprocessor module for storing and reading data.

3. The communication method of the single bus system according to claim 1, characterized in that: A parasitic power supply circuit is arranged inside the power management module. When the single bus is at a high level, the power management module supplies power to other modules in the slave on the one hand, and charges the internal parasitic power supply circuit on the other hand. When the single bus is at a low level, the parasitic power supply circuit supplies power to other modules in the slave.

4. The communication method of the single bus system according to claim 1, characterized in that: The clock frequency of the clock module can be changed through configuration information.

5. The communication method of the single bus system according to claim 1, characterized in that: Different time slots of the reset signal and the response signal correspond one-to-one to the plurality of slaves, and the slaves only respond to the reset signal of the corresponding time slot.

6. The communication method of the single bus system according to claim 1, characterized in that: The signal time slot sent by the host on the single bus, the write 0 time slot of the host is greater than the maximum value of the slave sampling signal, and the write 1 time slot of the host is less than the minimum value of the slave sampling signal.

7. The communication method of the single bus system according to claim 1, characterized in that: The signal time slot sent by the slave on the single bus, the write 0 time slot of the slave is greater than the maximum value of the host sampling signal, and the write 1 time slot of the slave is less than the minimum value of the host sampling signal.

Citation Information

Patent Citations

  • Unibus data communication method

    CN104657303A

  • Single-line digital communication interface based on AHB bus

    CN112564882A

  • Communication method of single bus system

    CN116303204A

  • Distributed switching and telephone conferencing system

    US5276678A