System and method for single bus communication rate adjustment and device identification

By using a single-bus communication rate adjustment and device identification system, the communication rate is dynamically adjusted and devices are quickly identified, solving the problems of rate conflict and module identification in traditional single-bus communication, and improving the effective data rate and flexibility of communication.

CN119938574BActive Publication Date: 2025-11-18SHANGHAI JIXIN SEMICONDUCTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510010934.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-11-18
Estimated Expiration
2045-01-03

AI Technical Summary

Technical Problem

Traditional single-bus communication technology suffers from conflicts due to inconsistent communication rate standards in scenarios with multiple peripheral modules, which reduces the effective data rate and flexibility of communication, making it difficult to achieve rapid module identification and effective data transmission.

Method used

A single-bus communication rate adjustment and device identification system is adopted, including a single-bus interface, a data buffer, a reset signal measurement module, an address rate matching table, and an interface controller. The system dynamically adjusts the communication rate and quickly identifies devices. The communication rate standard is matched by the reset signal time interval, reducing addressing operations.

Benefits of technology

This system enables customization and adaptation of the single-bus communication rate, improving communication effectiveness and flexibility. It allows for rapid identification of target modules, freeing the single-bus communication system from the constraints of specific communication rate standards. It allows for flexible configuration based on actual needs, expanding the applicability of the single-bus module in practical applications and providing excellent compatibility. Furthermore, it enhances the effectiveness and flexibility of single-bus communication by achieving a higher effective data rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938574B_ABST
    Figure CN119938574B_ABST
Patent Text Reader

Abstract

The application discloses a system and method for single bus communication rate adjustment and device identification. The system comprises a single bus interface for receiving input communication signals on a single bus and sending data signals to the single bus; a data buffer for buffering the communication signals and the data signals and performing serial-parallel conversion; a reset signal measurement module for measuring a reset signal time interval in the communication signals; an address rate matching table for matching the reset signal time interval and a matching module ROM ID to select a module; an interface controller for controlling the single bus interface to communicate according to a communication rate standard; for analyzing a rate command in the communication signals and processing data; for analyzing an end command to terminate the current communication; and a data processing module for analyzing a control command in the communication signals and processing data. The system is not restricted by a specific communication rate standard, and the effective data rate of communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a system and method for single-bus communication rate adjustment and device identification. Background Technology

[0002] As embedded systems become increasingly complex, multiple modules are used to meet functional requirements. Therefore, achieving communication and identification between these numerous modules has become a pressing issue. Single-wire bus (SMB) communication technology offers advantages such as simple wiring, low hardware overhead, low cost, and ease of bus expansion and maintenance, making it widely used in many small devices.

[0003] Traditional single-bus communication technology uses a single bus for signal transmission, requiring both communicating parties to use the same communication rate standard, such as the same frame length and sampling time. When multiple peripheral modules are present, each access to a specific module requires an addressing operation, reducing the effective data rate of communication. Furthermore, different modules often use different communication rate standards, which may conflict, increasing the difficulty of inter-module communication in embedded systems. These drawbacks limit the effective data rate and flexibility of single-bus communication technology.

[0004] Therefore, a system and method for single-bus communication rate adjustment and device identification is needed, enabling modules to dynamically adjust communication rates and be quickly identified, thereby improving the effective data rate and flexibility of communication. Summary of the Invention

[0005] The technical problem to be solved by this invention is to provide a system and method for single-bus communication rate adjustment and device identification, which enables the module to support dynamic adjustment of communication rate standards to meet different application requirements and avoid communication failures caused by communication rate standard conflicts; at the same time, it utilizes different communication rate standards to quickly identify and select specified devices, reduce frequent addressing operations, and improve the effective data rate of communication.

[0006] One technical solution adopted by the present invention to solve its technical problem is: The present invention provides a system for single-bus communication rate adjustment and device identification, comprising:

[0007] A single-bus interface is used to receive communication signals input on the single bus and send data signals to the single bus, and forward the communication signals to the data buffer and the reset signal measurement module;

[0008] A data buffer is used to buffer the communication signal and the data signal, and to perform serial-to-parallel conversion on the communication signal and the data signal to ensure that the communication signal and the data signal can be correctly received or transmitted under different communication rate standards.

[0009] The reset signal measurement module is used to measure the reset signal time interval in the communication signal and send the reset signal time interval to the address rate matching table;

[0010] The address rate matching table is used to match the reset signal time interval with the stored communication rate standard to obtain the communication rate standard of the communication signal; it is also used to match the module ROM ID for module selection.

[0011] An interface controller is used to control the single-bus interface to communicate according to the communication rate standard of the communication signal; to parse the rate command in the communication signal, and to add, delete or read the communication rate standard in the address rate matching table according to the rate command; and to parse the end command to terminate the current communication.

[0012] The data processing module is used to parse the control commands in the communication signal, process the communication signal according to the control commands, or load the data signal into the data buffer.

[0013] The data processing module includes a storage controller, which is used to parse the read control command and write control command in the control command;

[0014] Preferably, the data processing module further includes a storage array, which is used to store data information in the communication signal or read out the data signal;

[0015] Preferably, the system also includes an analog module, which provides a system reference power supply, clock signal, and power-on reset signal to ensure normal system operation and correct initialization.

[0016] Another technical solution adopted by the present invention to solve its technical problem is: the present invention provides a single-bus communication rate adjustment and device identification method, applied to the above-mentioned single-bus communication rate adjustment and device identification system, comprising:

[0017] The single-bus interface receives communication signals input on the single bus and transmits data signals to the single bus, and forwards the communication signals to the data buffer and the reset signal measurement module;

[0018] The communication signal is in single-bus data frame format and complies with the corresponding communication rate standard.

[0019] The communication rate standard mentioned includes basic signal timing such as reset signal length, slave response length, read / write sampling timing, and frame length;

[0020] The data buffer caches the communication signal and the data signal, and performs serial-to-parallel conversion on the communication signal and the data signal;

[0021] The reset signal measurement module measures the reset signal time interval in the communication signal and sends the reset signal time interval to the address rate matching table;

[0022] The address rate matching table matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, the matched communication rate standard is loaded into the interface controller, and a communication enable valid signal is sent to the interface controller and the data processing module. If the reset signal time interval does not match the stored communication rate standard, the communication rate standard in the interface controller is not changed, and a communication enable invalid signal is sent to the interface controller and the data processing module, waiting for the next input of the reset signal time interval.

[0023] The address rate matching table matches the ROM ID information parsed by the interface controller. If the ROM ID information can match the stored ROM ID, no additional response is made; if the ROM ID information cannot match the stored ROM ID, a communication enable invalid signal is sent to the interface controller and the data processing module, and the system waits for the next input of the reset signal time interval.

[0024] The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard of the communication signal;

[0025] The interface controller parses the ROM ID matching command from the communication signal from the data buffer;

[0026] The interface controller parses the rate command from the communication signal from the data buffer;

[0027] The interface controller parses the communication signal from the data buffer and terminates the current communication after receiving the end command;

[0028] The data processing module parses the control commands in the communication signal from the data buffer, processes the communication signal according to the control commands, or loads the data signal into the data buffer.

[0029] Preferably, the interface controller parses the rate modification command and rate query command in the rate command; if the rate command is a rate modification command, it adds or deletes communication rate standards in the address rate matching table; if the rate command is a rate query command, it loads the stored communication rate standards into the data buffer.

[0030] Preferably, the storage controller parses the read control command and write control command in the control command; if the control command is a read control command, it obtains the address information in the communication signal, reads the data corresponding to the address information from the storage array, and stores it in the data buffer; if the control command is a write control command, it obtains the address information and data information in the communication signal, and writes the data information to the corresponding address in the storage array.

[0031] Preferably, the reset signal length of the single-bus communication data frame is greater than the low-level length in all communication rate standards;

[0032] Preferably, the communication signal uses the rate modification command to set multiple different communication rate standards in the address rate matching table, and uses a specific communication rate standard to select one or more matching modules. When there are multiple slave responses, a slave response command frame cannot be sent.

[0033] Another technical solution adopted by the present invention to solve its technical problem is: the present invention provides a single-bus communication rate adjustment and device identification method, applied to the above-mentioned single-bus communication rate adjustment and device identification system, including the following steps:

[0034] S201, the single-bus interface receives communication signals input on the single bus and forwards them to the data buffer and reset signal measurement module;

[0035] S202, The reset signal measurement module measures the time interval of the reset signal in the communication signal and sends it to the address rate matching table;

[0036] S203. The address rate matching table matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, proceed to the next step; if the reset signal time interval does not match the stored communication rate standard, proceed to step S205.

[0037] S204. If the reset signal time interval matches the stored communication rate standard, the address rate matching table loads the matching communication rate standard into the interface controller, the communication enable signal becomes valid, and proceed to step S206.

[0038] S205. If the reset signal time interval does not match the stored communication rate standard, the address rate matching table will not modify the current communication rate standard, the communication enable signal will be invalid, and the process will return to step S201.

[0039] S206. The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard and stores the communication signals in the data buffer.

[0040] S207. The interface controller determines whether the communication signal is a ROM ID identification signal. If yes, proceed to the next step; otherwise, proceed to step S209.

[0041] S208. The address rate matching table checks whether the ROM ID and the current module match. If they match, proceed to the next step; otherwise, return to step S205.

[0042] S209, The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and stores the communication signals in the data buffer;

[0043] S210, the interface controller, and the data processing module process data based on communication information;

[0044] S211. The interface controller determines whether the communication signal is an end signal. If yes, proceed to the next step; otherwise, return to step S210.

[0045] S212. End this communication and wait for the next communication data frame.

[0046] Another technical solution adopted by the present invention to solve its technical problem is: a method for single-bus communication rate adjustment and device identification, applied to the above-mentioned single-bus communication rate adjustment and device identification system, including the following steps of the interface controller parsing and processing the received command frame:

[0047] S301, The interface controller processes data based on communication information;

[0048] S302, The interface controller parses the rate command in the communication signal;

[0049] S303, the rate command is a rate modification command that adds or deletes communication rate standards in the address rate matching table;

[0050] S304, the rate command is a rate query command that loads the stored communication rate standard into the data buffer;

[0051] S305, the interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and sends data signals to the single bus.

[0052] Another technical solution adopted by the present invention to solve its technical problem is: a method for single-bus communication rate adjustment and device identification, applied to the above-mentioned single-bus communication rate adjustment and device identification system, characterized in that it includes the following steps of the data processing module parsing and processing the received command frame:

[0053] S401, The data processing module processes data based on communication information;

[0054] S402, The data processing module parses the control commands in the communication signals and processes the communication signals according to the control commands;

[0055] S403, the control command is a write control command, which obtains the address information and data information in the communication signal and writes the data information to the corresponding address in the storage array;

[0056] S404, the control command is a read control command, which obtains the address information in the communication signal, reads the data corresponding to the address information from the storage array, and stores it in the data buffer;

[0057] S405, the interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and sends data signals to the single bus.

[0058] Compared with the prior art, the present invention has the following advantages and positive effects:

[0059] This invention enables the customization and adaptation of single-bus communication rate standards, freeing single-bus communication systems from the constraints of specific communication rate standards. It allows for flexible configuration based on actual needs, expands the applicability of single-bus modules in practical applications, and provides good compatibility.

[0060] This invention enables rapid selection of target modules by leveraging differences in communication rate standards, achieving rapid identification of multiple modules on a single bus. This avoids frequent addressing operations in traditional methods and improves the effective data rate of communication. Attached Figure Description

[0061] To gain a more comprehensive understanding of this application and its advantages, the following description is now taken in conjunction with the accompanying drawings, in which:

[0062] Figure 1 This is a system architecture diagram of the single-bus communication rate adjustment and device identification system according to Embodiment 1 of the present invention;

[0063] Figure 2 This is a flowchart illustrating the single-bus communication rate adjustment and device identification method according to Embodiment 3 of the present invention.

[0064] Figure 3 This is a flowchart illustrating the single-bus communication rate adjustment method according to Embodiment 4 of the present invention.

[0065] Figure 4 This is a flowchart illustrating the single-bus communication signal processing method according to Embodiment 5 of the present invention;

[0066] Figures 5a-5f This is a schematic diagram of the data frame format for single-bus communication according to Embodiment 2 of the present invention;

[0067] Figures 6a-6bThis is a schematic diagram of the single-bus multi-device identification fast identification method according to Embodiment 2 of the present invention.

[0068] Unless otherwise indicated, corresponding numbers and symbols in different figures generally refer to the corresponding parts. Detailed Implementation

[0069] The present invention will be further illustrated below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. Furthermore, it should be understood that after reading the teachings of this invention, those skilled in the art can make various alterations or modifications to the invention, and these equivalent forms also fall within the scope defined by the appended claims.

[0070] Example 1

[0071] like Figure 1 As shown, an embodiment of the present invention provides a system for single-bus communication rate adjustment and device identification, comprising:

[0072] The single-bus interface 100 is used to receive communication signals input on the single bus and send data signals to the single bus, and forward the communication signals to the data buffer 110 and the reset signal measurement module 120.

[0073] Data buffer 110 is used to buffer the communication signal and the data signal, and to perform serial-to-parallel conversion on the communication signal and the data signal to ensure that the communication signal and the data signal can be correctly received or transmitted under different communication rate standards.

[0074] The reset signal measurement module 120 is used to measure the reset signal time interval in the communication signal and send the reset signal time interval to the address rate matching table 130.

[0075] Address rate matching table 130 is used to match the reset signal time interval and the stored communication rate standard to obtain the communication rate standard of the communication signal; it is also used to match the module ROM ID for module selection.

[0076] Interface controller 140 is used to control the single bus interface 100 to communicate according to the communication rate standard of the communication signal; to parse the rate command in the communication signal, and to add, delete or read the communication rate standard in the address rate matching table 130 according to the rate command; and to parse the end command to terminate the current communication.

[0077] The data processing module 150 is used to parse the control commands in the communication signal, process the communication signal according to the control commands, or load the data signal into the data buffer 110.

[0078] The data processing module 150 includes a storage controller 151, which is used to parse the read control command and write control command in the control command;

[0079] The data processing module 150 also includes a storage array 152, which is used to store data information in the communication signal or to read out the data signal.

[0080] The single-bus communication rate adjustment and device identification system of this invention embodiment further includes:

[0081] The analog module (not shown in the figure) is used to provide the system with a reference power supply, clock signal and power-on reset signal to ensure the system works normally and is correctly initialized.

[0082] Example 2

[0083] like Figure 1 As shown, Embodiment 2 of the present invention provides a single-bus communication rate adjustment and device identification method, applied to the single-bus communication rate adjustment and device identification system of Embodiment 1 above, including:

[0084] The single-bus interface 100 receives communication signals input on the single bus and transmits data signals to the single bus, and forwards communication signals to the data buffer 110 and the reset signal measurement module 120;

[0085] The communication signal is in single-bus data frame format and complies with the corresponding communication rate standard.

[0086] Communication rate standards include basic signal timing such as reset signal length, slave response length, read / write sampling timing, and frame length;

[0087] Data buffer 110 buffers the communication signal and data signal, and performs serial-to-parallel conversion on the communication signal and data signal;

[0088] The reset signal measurement module 120 measures the reset signal time interval in the communication signal and sends the reset signal time interval to the address rate matching table 130.

[0089] The address rate matching table 130 matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval can match the stored communication rate standard, the matched communication rate standard is loaded into the interface controller 140, and a communication enable valid signal is sent to the interface controller 140 and the data processing module 150. If the reset signal time interval cannot match the stored communication rate standard, the communication rate standard in the interface controller is not changed, and a communication enable invalid signal is sent to the interface controller 140 and the data processing module 150, waiting for the input of the next reset signal time interval.

[0090] The address rate matching table 130 matches the ROM ID information obtained by the interface controller 140. If the ROM ID information can match the stored ROM ID, no additional response is made; if the ROM ID information cannot match the stored ROM ID, a communication enable invalid signal is sent to the interface controller 140 and the data processing module 150, and the system waits for the input of the next reset signal time interval.

[0091] The interface controller 140 controls the single-bus interface 100 to perform single-bus communication according to the communication rate standard of the communication signal;

[0092] Interface controller 140 parses the ROM ID matching command from the communication signal in data buffer 110;

[0093] The interface controller 140 parses the rate command from the communication signal from the data buffer 110;

[0094] After parsing the communication signal from the data buffer 110 and receiving the end command, the interface controller 140 terminates the current communication.

[0095] The data processing module 150 parses the control commands in the communication signals from the data buffer 110, processes the communication signals according to the control commands, or loads the data signals into the data buffer 110.

[0096] In the above method, the communication signal is in single-bus data frame format, such as... Figures 5a-5f As shown. All communication data frames begin with a reset signal. The length of the reset signal determines the communication rate standard used by the current data frame. After the interface controller loads the communication rate standard used by the data frame, it controls the single-bus interface to perform a slave presence response, completing the presence handshake. If a module ROM ID needs to be specified, the ROM ID matching frame must immediately follow the handshake and precede the command frame to ensure that the module is uniquely selected. The command frame contains a rate command frame and a control command frame. One or more command frames can appear in a single communication data frame, and the rate command frame and the control command frame have no sequential relationship. All communication data frames terminate with an end signal.

[0097] In the above method, the reset signal length of the single-bus communication data frame should be greater than the low-level length in all communication rate standards.

[0098] In the above method, the address rate matching table can store multiple communication rate standards. Communication signals can select one or more matching modules using a specific communication rate standard. However, when multiple slave responses exist, slave response command frames cannot be sent. For example... Figure 6aAs shown, when the host 600 uses communication rate standard 60 for single-bus communication, slave 601 and slave 602 can match the communication rate standard on the single bus. Therefore, slave 601 and slave 602 will respond and jointly receive the communication data frames sent by the host. At this time, the host cannot send rate query command frames or read control command frames to avoid data conflicts on the bus; Figure 6b As shown, when the host 600 uses the communication rate standard 63 for single-bus communication, the slave 604 can match the communication rate standard on the single bus. Therefore, the slave 604 will respond and uniquely receive the communication data frame sent by the host, thus realizing the fast selection of the slave.

[0099] Example 3

[0100] like Figure 2 As shown, Embodiment 3 of the present invention provides a single-bus communication rate adjustment and device identification method, applied to the single-bus communication rate adjustment and device identification system of Embodiment 1 above, including:

[0101] S201, the single-bus interface 100 receives the communication signals input on the single bus and forwards them to the data buffer 110 and the reset signal measurement module 120;

[0102] In this step, the single-bus interface 100 receives communication signals on the single bus and forwards them to the data buffer 110 and the reset signal measurement module 120. The communication signals are in single-bus data frame format and comply with the corresponding communication rate standard. The communication rate standard includes basic signal timing such as reset signal length, slave response length, read / write sampling timing, and frame length.

[0103] S202, The reset signal measurement module 120 measures the time interval of the reset signal in the communication signal and sends it to the address rate matching table 130;

[0104] In this step, the reset signal measurement module 120 measures the reset signal time interval in the single bus data frame forwarded by the single bus interface 100 and forwards it to the address rate matching table 130.

[0105] In this step, when the interface controller 140 is in an idle state, i.e. there is no communication signal on the single bus, the reset signal measurement module 120 will measure each low-level time interval forwarded by the single bus interface 100 and send it to the address rate matching table 130 for matching; when the corresponding reset signal is successfully matched, the reset signal measurement module 120 will stop measuring until the communication is completed and the interface controller 140 returns to an idle state to continue the measurement.

[0106] S203. The address rate matching table 130 matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, proceed to the next step; if the reset signal time interval does not match the stored communication rate standard, proceed to step S205.

[0107] S204. The address rate matching table 130 loads the matched communication rate standard into the interface controller, the communication enable signal is valid, and proceeds to step S206.

[0108] In this step, the address rate matching table 130 matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval can match the stored communication rate standard, the matched communication rate standard is loaded into the interface controller 140, and a communication enable signal is sent to the interface controller 140 and the data processing module 150.

[0109] S205, Address rate matching table 130 does not modify the current communication rate standard, communication enable signal is invalid, return to step S201;

[0110] In this step, if the reset signal time interval cannot match the stored communication rate standard, the address rate matching table 130 does not change the communication rate standard in the interface controller 140, and sends a communication enable invalid signal to the interface controller 140 and the data processing module 150, waiting for the input of the next reset signal time interval.

[0111] S206, Interface Controller 140 controls the single-bus interface to perform single-bus communication according to the communication rate standard, and stores the communication signals in the data buffer.

[0112] In this step, after loading the matching communication rate standard, the interface controller 140 controls the single-bus interface 100 to perform single-bus communication according to the communication rate standard, receives single-bus command frames and stores them in the data buffer 110. The data buffer 110 performs serial-to-parallel conversion on the received command frames, and then sends the frame commands to the interface controller 140 and the data processing module 150 for parsing.

[0113] S207. Interface controller 140 determines whether the communication signal is a ROM ID identification signal. If yes, proceed to the next step; otherwise, proceed to step S209.

[0114] In this step, the interface controller 140 parses the frame command processed by the data buffer 110 and determines whether the command frame belongs to the ROM ID identification signal. If it is the ROM ID identification signal, the ROM ID in the command frame is parsed and sent to the address rate matching table 130 for matching. If it is not the ROM ID identification signal, the ROM ID matching operation is not performed.

[0115] S208. Check if the address rate matching table 130 matches the ROM ID and the current module. If they match, proceed to the next step; otherwise, return to step S205.

[0116] In this step, the address rate matching table 130 checks whether the ROM ID in the command frame matches the burned ROM ID. If the ROM ID in the command frame matches the burned ROM ID, then communication and parsing of subsequent command frames are performed. If they do not match, the address rate matching table 130 does not change the communication rate standard in the interface controller 140, and sends a communication enable invalid signal to the interface controller 140 and the data processing module 150, waiting for the input of the next reset signal time interval.

[0117] S209, Interface controller 140 controls single bus interface 100 to perform single bus communication according to communication rate standard, and stores communication signals in data buffer;

[0118] In this step, after selecting the module, the single-bus interface 100 is controlled to perform single-bus communication according to the communication rate standard, receive single-bus command frames and store them in the data buffer 110. The data buffer 110 performs serial-to-parallel conversion on the received command frames, and then sends the frame commands to the interface controller 140 and the data processing module 150 for parsing.

[0119] S210, interface controller 140 and data processing module 150 perform data processing based on communication information;

[0120] In this step, the interface controller 140 and the data processing module 150 simultaneously parse the received command frame to obtain the corresponding frame command. If the frame command matches the command in the interface controller 140 or the data processing module 150, the data in the command frame is processed; otherwise, the command frame is ignored.

[0121] S211. Interface controller 140 determines whether the communication signal is an end signal. If yes, proceed to the next step; otherwise, return to step S210.

[0122] S212. End this communication and wait for the next communication data frame.

[0123] In the above steps, the communication signal is in single-bus data frame format, such as... Figures 5a-5f As shown. All communication data frames begin with a reset signal. The length of the reset signal determines the communication rate standard used by the current data frame. After the interface controller loads the communication rate standard used by the data frame, it controls the single-bus interface to perform a slave presence response, completing the presence handshake. If a module ROM ID needs to be specified, the ROM ID matching frame must immediately follow the handshake and precede the command frame to ensure that the module is uniquely selected. The command frame contains a rate command frame and a control command frame. One or more command frames can appear in a single communication data frame, and the rate command frame and the control command frame have no sequential relationship. All communication data frames terminate with an end signal.

[0124] In the above steps, the reset signal length of the single-bus communication data frame should be greater than the low-level length in all communication rate standards.

[0125] In the above steps, the address rate matching table can store multiple communication rate standards. Communication signals can select one or more matching modules using a specific communication rate standard. When multiple slave responses exist, a slave response command frame cannot be sent. For example... Figure 6a As shown, when the host 600 uses communication rate standard 60 for single-bus communication, slave 601 and slave 602 can match the communication rate standard on the single bus. Therefore, slave 601 and slave 602 will respond and jointly receive the communication data frames sent by the host. At this time, the host cannot send rate query command frames or read control command frames to avoid data conflicts on the bus; Figure 6b As shown, when the host 600 uses the communication rate standard 63 for single-bus communication, the slave 604 can match the communication rate standard on the single bus. Therefore, the slave 604 will respond and uniquely receive the communication data frame sent by the host, thus realizing the fast selection of the slave.

[0126] Example 4

[0127] like Figure 3 As shown, Embodiment 4 of the present invention provides a single-bus communication rate adjustment and device identification method, applied to the single-bus communication rate adjustment and device identification system. The main method, based on Embodiment 2 or Embodiment 3, involves the interface controller 140 performing the following steps to parse and process the received command frames:

[0128] S301, Interface controller 140 processes data based on communication information;

[0129] S302, Interface controller 140 parses the rate command in the communication signal;

[0130] S303, the rate command is a rate modification command, which adds or deletes communication rate standards in the address rate matching table 130;

[0131] S304, the rate command is a rate query command, which loads the stored communication rate standard into the data buffer 110;

[0132] S305, Interface Controller 140 controls Single Bus Interface 100 to perform Single Bus Communication according to Communication Rate Standard, and sends data signals to Single Bus.

[0133] In the above steps, the communication signal is in single-bus data frame format, such as... Figures 5a-5f As shown. All communication data frames begin with a reset signal. The length of the reset signal determines the communication rate standard used by the current data frame. After the interface controller loads the communication rate standard used by the data frame, it controls the single-bus interface to perform a slave presence response, completing the presence handshake. If a module ROM ID needs to be specified, the ROM ID matching frame must immediately follow the handshake and precede the command frame to ensure that the module is uniquely selected. The command frame contains a rate command frame and a control command frame. One or more command frames can appear in a single communication data frame, and the rate command frame and the control command frame have no sequential relationship. All communication data frames terminate with an end signal.

[0134] In the above steps, the reset signal length of the single-bus communication data frame should be greater than the low-level length in all communication rate standards.

[0135] In the above steps, the address rate matching table 130 can store multiple communication rate standards. Communication signals can select one or more matching modules using a specific communication rate standard. When multiple slave responses exist, a slave response command frame cannot be sent. For example... Figure 6a As shown, when the host 600 uses communication rate standard 60 for single-bus communication, slave 601 and slave 602 can match the communication rate standard on the single bus. Therefore, slave 601 and slave 602 will respond and jointly receive the communication data frames sent by the host. At this time, the host cannot send rate query command frames or read control command frames to avoid data conflicts on the bus; Figure 6b As shown, when the host 600 uses the communication rate standard 63 for single-bus communication, the slave 604 can match the communication rate standard on the single bus. Therefore, the slave 604 will respond and uniquely receive the communication data frame sent by the host, thus realizing the fast selection of the slave.

[0136] Example 5

[0137] like Figure 4 As shown, Embodiment 5 of the present invention provides a single-bus communication rate adjustment and device identification method, applied to the single-bus communication rate adjustment and device identification system. The main method, based on Embodiment 2 or Embodiment 3, involves the data processing module 150 parsing and processing the received command frames using the following steps:

[0138] S401, Data processing module 150 processes data based on communication information;

[0139] S402, the data processing module 150 parses the control commands in the communication signals and processes the communication signals according to the control commands;

[0140] S403, the control command is a write control command, which obtains the address information and data information in the communication signal and writes the data information to the corresponding address in the storage array 152;

[0141] S404, the control command is a read control command, which obtains the address information in the communication signal, reads the data corresponding to the address information from the storage array 152, and stores it in the data buffer 110;

[0142] S405, Interface Controller 140 controls Single Bus Interface 100 to perform Single Bus Communication according to Communication Rate Standard, and sends data signals to Single Bus.

[0143] In the above steps, the communication signal is in single-bus data frame format, such as... Figures 5a-5f As shown. All communication data frames begin with a reset signal. The length of the reset signal determines the communication rate standard used by the current data frame. After the interface controller loads the communication rate standard used by the data frame, it controls the single-bus interface to perform a slave presence response, completing the presence handshake. If a module ROM ID needs to be specified, the ROM ID matching frame must immediately follow the handshake and precede the command frame to ensure that the module is uniquely selected. The command frame contains a rate command frame and a control command frame. One or more command frames can appear in a single communication data frame, and the rate command frame and the control command frame have no sequential relationship. All communication data frames terminate with an end signal.

[0144] In the above steps, the reset signal length of the single-bus communication data frame should be greater than the low-level length in all communication rate standards.

[0145] In the above steps, the address rate matching table 130 can store multiple communication rate standards. Communication signals can select one or more matching modules using a specific communication rate standard. When multiple slave responses exist, a slave response command frame cannot be sent. For example... Figure 6a As shown, when the host 600 uses communication rate standard 60 for single-bus communication, slave 601 and slave 602 can match the communication rate standard on the single bus. Therefore, slave 601 and slave 602 will respond and jointly receive the communication data frames sent by the host. At this time, the host cannot send rate query command frames or read control command frames to avoid data conflicts on the bus; Figure 6bAs shown, when the host 600 uses the communication rate standard 63 for single-bus communication, the slave 604 can match the communication rate standard on the single bus. Therefore, the slave 604 will respond and uniquely receive the communication data frame sent by the host, thus realizing the fast selection of the slave.

[0146] Although embodiments of the present application and their advantages have been described in detail, it should be understood that various changes, substitutions and alterations may be made herein without departing from the spirit and scope of the present application as defined by the appended claims.

Claims

1. A system for single-bus communication rate adjustment and device identification, characterized in that, include: A single-bus interface is used to receive communication signals input on the single bus and send data signals to the single bus, and forward the communication signals to the data buffer and the reset signal measurement module; A data buffer is used to buffer the communication signal and the data signal, and to perform serial-to-parallel conversion on the communication signal and the data signal to ensure that the communication signal and the data signal can be correctly received or transmitted under different communication rate standards. The reset signal measurement module is used to measure the reset signal time interval in the communication signal and send the reset signal time interval to the address rate matching table; An address rate matching table is used to match the reset signal time interval with the stored communication rate standard to obtain the communication rate standard of the communication signal; it is also used to match the module ROM ID for module selection. An interface controller is used to control the single-bus interface to communicate according to the communication rate standard of the communication signal; to parse the rate command in the communication signal, and to add, delete or read the communication rate standard in the address rate matching table according to the rate command; and to parse the end command to terminate the current communication. The data processing module is used to parse the control commands in the communication signal, process the communication signal according to the control commands, or load the data signal into the data buffer. The data processing module includes a storage controller, which is used to parse the read control command and write control command in the control command; The data processing module further includes a storage array, which is used to store data information in the communication signal or read out the data signal.

2. The system for single-bus communication rate adjustment and device identification according to claim 1, characterized in that, It also includes an analog module, which provides the system with a reference power supply, clock signal and power-on reset signal to ensure normal system operation and correct initialization.

3. A method for single-bus communication rate adjustment and device identification, applied to the single-bus communication rate adjustment and device identification system as described in claim 1, characterized in that... include: The single-bus interface receives communication signals input on the single bus and transmits data signals to the single bus, and forwards the communication signals to the data buffer and the reset signal measurement module; The communication signal is in single-bus data frame format and complies with the corresponding communication rate standard. The communication rate standard includes basic signal timing such as reset signal length, slave response length, read / write sampling timing, and frame length; The data buffer caches the communication signal and the data signal, and performs serial-to-parallel conversion on the communication signal and the data signal; The reset signal measurement module measures the reset signal time interval in the communication signal and sends the reset signal time interval to the address rate matching table; The address rate matching table matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, the matched communication rate standard is loaded into the interface controller, and a communication enable valid signal is sent to the interface controller and the data processing module. If the reset signal time interval does not match the stored communication rate standard, the communication rate standard in the interface controller is not changed, and a communication enable invalid signal is sent to the interface controller and the data processing module, waiting for the next input of the reset signal time interval. The address rate matching table matches the ROM ID information parsed by the interface controller. If the ROM ID information can match the stored ROM ID, no additional response is made; if the ROM ID information cannot match the stored ROM ID, a communication enable invalid signal is sent to the interface controller and the data processing module, and the system waits for the next input of the reset signal time interval. The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard of the communication signal; The interface controller parses the ROM ID matching command from the communication signal from the data buffer; The interface controller parses the rate command from the communication signal from the data buffer; The interface controller parses the communication signal from the data buffer and terminates the current communication after receiving the end command; The data processing module parses the control commands in the communication signal from the data buffer, processes the communication signal according to the control commands, or loads the data signal into the data buffer.

4. The method for single-bus communication rate adjustment and device identification according to claim 3, characterized in that, The interface controller parses the rate modification command and rate query command in the rate command; if the rate command is a rate modification command, it adds or deletes communication rate standards in the address rate matching table; if the rate command is a rate query command, it loads the stored communication rate standards into the data buffer.

5. The method for single-bus communication rate adjustment and device identification according to claim 3, characterized in that, The storage controller parses the read control command and write control command in the control command; if the control command is a read control command, it obtains the address information in the communication signal, reads the data corresponding to the address information from the storage array, and stores it in the data buffer; if the control command is a write control command, it obtains the address information and data information in the communication signal, and writes the data information to the corresponding address in the storage array.

6. The method for single-bus communication rate adjustment and device identification according to claim 3, characterized in that, The reset signal length is greater than the low-level length in all communication rate standards.

7. The method for single-bus communication rate adjustment and device identification according to claim 4, characterized in that, The communication signal uses the rate modification command to set multiple different communication rate standards in the address rate matching table, and uses a specific communication rate standard to select one or more matching modules. When there are multiple slave responses, a slave response command frame cannot be sent.

8. A method for single-bus communication rate adjustment and device identification, applied to the single-bus communication rate adjustment and device identification system as described in claim 1, characterized in that... Includes the following steps: S201, the single-bus interface receives communication signals input on the single bus and forwards them to the data buffer and reset signal measurement module; S202, The reset signal measurement module measures the time interval of the reset signal in the communication signal and sends it to the address rate matching table; S203. The address rate matching table matches the reset signal time interval with the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, proceed to the next step; if the reset signal time interval does not match the stored communication rate standard, proceed to step S205. S204. If the reset signal time interval matches the stored communication rate standard, the address rate matching table loads the matching communication rate standard into the interface controller, the communication enable signal becomes valid, and proceed to step S206. S205. If the reset signal time interval does not match the stored communication rate standard, the address rate matching table will not modify the current communication rate standard, the communication enable signal will be invalid, and the process will return to step S201. S206. The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard and stores the communication signals in the data buffer. S207. The interface controller determines whether the communication signal is a ROM ID identification signal. If yes, proceed to the next step; otherwise, proceed to step S209. S208. The address rate matching table checks whether the ROM ID and the current module match. If they match, proceed to the next step; otherwise, return to step S205. S209, The interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and stores the communication signals in the data buffer; S210, the interface controller, and the data processing module process data based on communication information; S211. The interface controller determines whether the communication signal is an end signal. If yes, proceed to the next step; otherwise, return to step S210. S212. End this communication and wait for the next communication data frame.

9. A method for single-bus communication rate adjustment and device identification, applied to the single-bus communication rate adjustment and device identification system as described in claim 1, characterized in that... The interface controller performs the following steps to parse and process the received command frames: S301, The interface controller processes data based on communication information; S302, The interface controller parses the rate command in the communication signal; S303, the rate command is a rate modification command that adds or deletes communication rate standards in the address rate matching table; S304, the rate command is a rate query command that loads the stored communication rate standard into the data buffer; S305, the interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and sends data signals to the single bus.

10. A method for single-bus communication rate adjustment and device identification, applied to the single-bus communication rate adjustment and device identification system as described in claim 1, characterized in that... The data processing module performs the following steps to parse and process the received command frame: S401, The data processing module processes data based on communication information; S402, The data processing module parses the control commands in the communication signals and processes the communication signals according to the control commands; S403, the control command is a write control command, which obtains the address information and data information in the communication signal and writes the data information to the corresponding address in the storage array; S404, the control command is a read control command, which obtains the address information in the communication signal, reads the data corresponding to the address information from the storage array, and stores it in the data buffer; S405, the interface controller controls the single-bus interface to perform single-bus communication according to the communication rate standard, and sends data signals to the single bus.

Citation Information

Patent Citations

  • Communication method of single bus system

    CN116303204A

  • Unibus communication system

    CN118760641A