System and method for unibus communication rate adjustment and device identification
By designing a system that dynamically adjusts communication rate and quickly identifying equipment in a single bus communication system, the problems of inconsistency and conflict in communication rate standards in traditional single bus communication are solved, and the effective data rate and flexibility of communication are improved.
Patent Information
- Application Number
- CN202510010934.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-03
AI Technical Summary
Traditional single-bus communication technology has problems of inconsistent communication rate standards and conflicts in multi-module systems, resulting in low effective data rate and poor flexibility in communication.
A single bus communication rate adjustment and device identification system is designed, including a single bus interface, data buffer, reset signal measurement module, address rate matching table, interface controller and data processing module. By dynamically adjusting the communication rate and quickly identifying the device, customization and adaptation of communication rate standards can be achieved.
It improves the effective data rate and flexibility of single-bus communication, avoids communication rate standard conflicts, expands the scope of application of single-bus modules, and has good compatibility.
Smart Images

Figure CN119938574A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a system and method for regulating single bus communication rate and identifying equipment. Background Art
[0002] As embedded systems become increasingly complex, multiple modules are used in the system to meet functional requirements. How to achieve communication and identification between a large number of modules has become an urgent problem to be solved. Single bus (1Wire Bus) communication technology has the advantages of simple lines, low hardware overhead, low cost, easy bus expansion and maintenance, etc., and is used in many small devices.
[0003] Traditional single bus communication technology uses a bus for signal transmission, requiring both parties to use the same communication rate standard, such as the same frame length and sampling time. When multiple peripheral modules appear, each access to a specified module requires an addressing operation, which reduces the effective data rate of communication. At the same time, the communication rate standards used by different modules are often different and may conflict, increasing the difficulty of inter-module communication in embedded systems. These shortcomings limit the effective data rate and flexibility of single bus communication technology.
[0004] Therefore, a system and method for adjusting the communication rate of a single bus and identifying a device is needed, so that the module has the ability to dynamically adjust the communication rate and be quickly identified, so as to improve the effective data rate and flexibility of communication. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a system and method for single bus communication rate adjustment and device identification, so that the module supports dynamic adjustment of the communication rate standard to meet different application requirements and avoid communication failures caused by conflicts in communication rate standards; at the same time, different communication rate standards are used to quickly identify and select specified devices, reduce frequent addressing operations, and improve the effective data rate of communication.
[0006] A technical solution adopted by the present invention to solve the technical problem is: the present invention provides a system for adjusting the communication rate of a single bus and identifying a device, comprising:
[0007] A single bus interface, used to receive a communication signal input on the single bus and send a data signal to the single bus, and forward the communication signal to a data buffer and a reset signal measurement module;
[0008] A data buffer, used for buffering the communication signal and the data signal, and performing 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 sent under different communication rate standards;
[0009] A reset signal measurement module, used for measuring a reset signal time interval in the communication signal, and sending the reset signal time interval to an address rate matching table;
[0010] An address rate matching table, used to match the reset signal time interval and the stored communication rate standard to obtain the communication rate standard of the communication signal; used to match the module ROM ID to select the module;
[0011] The 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, 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] A data processing module, used for parsing the control command in the communication signal, processing the communication signal according to the control command, or loading the data signal into the data buffer;
[0013] The data processing module includes a storage controller, and the storage controller is used to parse the read control command and the write control command in the control command;
[0014] Preferably, the data processing module further comprises a storage array, and the storage array is used to store the data information in the communication signal or read out the data signal;
[0015] Preferably, it also includes an analog module, which is used to provide a system reference power supply, a clock signal and a power-on reset signal to ensure the normal operation and correct initialization of the system.
[0016] Another technical solution adopted by the present invention to solve the technical problem is: the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the above-mentioned single bus communication rate adjustment and device identification system, comprising:
[0017] The single bus interface receives a communication signal input on the single bus and sends a data signal to the single bus, and forwards the communication signal to a data buffer and a reset signal measurement module;
[0018] The communication signal is in a single bus data frame format and complies with the corresponding communication rate standard;
[0019] The communication rate standard mentioned includes basic signal timings such as reset signal length, slave response length, read and write sampling timings, and frame length;
[0020] The data buffer buffers 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 and 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, and a communication enable valid signal is sent to the interface controller and the data processing module; 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 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, and 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 input of the next reset signal time interval is waited;
[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 in the communication signal from the data buffer;
[0026] The interface controller parses the rate command in the communication signal from the data buffer;
[0027] The interface controller parses the communication signal from the data buffer and terminates the communication after receiving an end command;
[0028] The data processing module parses the control command in the communication signal from the data buffer, processes the communication signal according to the control command, or loads the data signal into the data buffer.
[0029] Preferably, the interface controller parses the rate modification command and the rate query command in the rate command; if the rate command is a rate modification command, the communication rate standard is added to or deleted from the address rate matching table; if the rate command is a rate query command, the stored communication rate standard is loaded into the data buffer.
[0030] Preferably, the storage controller parses a read control command and a write control command in the control command; if the control command is a read control command, the address information in the communication signal is obtained, the data corresponding to the address information is read from the storage array, and the data is stored in the data buffer; if the control command is a write control command, the address information and data information in the communication signal are obtained, and the data information is written 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 a plurality of different communication rate standards in the address rate matching table, and uses a specific communication rate standard to select a single or multiple 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 the technical problem is: the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the above-mentioned single bus communication rate adjustment and device identification system, and includes the following steps:
[0034] S201, the single bus interface receives a communication signal input on the single bus, and forwards it to a data buffer and a reset signal measurement module;
[0035] S202, the reset signal measurement module measures the reset signal time interval 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 and the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, the process proceeds to the next step; if the reset signal time interval does not match the stored communication rate standard, the process proceeds to step S205;
[0037] S204, if the reset signal time interval matches the stored communication rate standard, the address rate matching table loads the matched communication rate standard into the interface controller, the communication enable signal is valid, and the process proceeds to step S206;
[0038] S205, if the reset signal time interval does not match the stored communication rate standard, the address rate matching table does not modify the current communication rate standard, the communication enable signal is invalid, and the process returns 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 signal into the data buffer;
[0040] S207, the interface controller determines whether the communication signal is a ROM ID identification signal, if yes, proceeds to the next step; if no, proceeds to step S209;
[0041] S208, the address rate matching table matches whether the ROM ID and the current module match, if yes, proceed to the next step; if not, 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 signal into the data buffer;
[0043] S210, the interface controller and the data processing module perform data processing according to the communication information;
[0044] S211, the interface controller determines whether the communication signal is an end signal, if yes, proceeds to the next step; if no, returns to step S210;
[0045] S212, end this communication, and the system waits for the next communication data frame.
[0046] Another technical solution adopted by the present invention to solve the technical problem is: a method for adjusting the communication rate of a single bus and identifying a device, which is applied to the above-mentioned single bus communication rate adjustment and device identification system, and includes the following steps of the interface controller parsing and processing the received command frame:
[0047] S301, the interface controller performs data processing according to the 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, which adds or deletes a communication rate standard to the address rate matching table;
[0050] S304, the rate command is a rate query command, which 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 the data signal to the single bus.
[0052] Another technical solution adopted by the present invention to solve the technical problem is: a method for adjusting the communication rate of a single bus and identifying a device, which is applied to the above-mentioned single bus communication rate adjustment and device identification system, and is characterized in that it includes the following steps of the data processing module parsing and processing the received command frame:
[0053] S401, a data processing module performs data processing according to communication information;
[0054] S402, the data processing module parses the control command in the communication signal and processes the communication signal according to the control command;
[0055] S403: The control command is a write control command, which obtains address information and data information in the communication signal and writes data information to the corresponding address in the storage array;
[0056] S404, the control command is a read control command, the address information in the communication signal is obtained, the data corresponding to the address information is read from the storage array, and stored 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 the data signal to the single bus.
[0058] Compared with the prior art, the present invention has the following advantages and positive effects:
[0059] The present invention can realize the customization and adaptation of the single bus communication rate standard, so that the single bus communication system is not restricted by a specific communication rate standard, can be flexibly configured according to actual needs, expands the application scope of the single bus module in actual use, and has good compatibility;
[0060] The present invention quickly selects a target module through the difference of communication rate standards, realizes fast identification of multiple modules on a single bus, avoids frequent addressing operations in traditional methods, and improves the effective data rate of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more fully understand the present application and its advantages, reference is now made to the following description in conjunction with the accompanying drawings, in which:
[0062] Figure 1 This is a system architecture diagram of a system for adjusting the communication rate of a single bus and identifying a device according to a first embodiment of the present invention;
[0063] Figure 2 Schematic diagram of the flow of a single bus communication rate adjustment and device identification method according to Embodiment 3 of the present invention;
[0064] Figure 3 Schematic diagram of a flow chart of a single bus communication rate adjustment method according to a fourth embodiment of the present invention;
[0065] Figure 4 Schematic diagram of a flow chart of a single bus communication signal processing method according to a fifth embodiment of the present invention;
[0066] Figures 5a-5f A schematic diagram of a data frame format for single bus communication according to a second embodiment of the present invention;
[0067] Figure 6a-6bThis is a schematic diagram of a method for rapid identification of multiple devices on a single bus according to a second embodiment of the present invention.
[0068] Corresponding numerals and symbols in the different figures generally refer to corresponding parts unless otherwise indicated. DETAILED DESCRIPTION
[0069] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0070] Embodiment 1
[0071] like Figure 1 As shown, a system for adjusting a single bus communication rate and identifying a device according to an embodiment of the present invention includes:
[0072] The single bus interface 100 is used to receive a communication signal input on the single bus and send a data signal to the single bus, and forward the communication signal to the data buffer 110 and the reset signal measurement module 120;
[0073] A data buffer 110, used for buffering the communication signal and the data signal, and performing 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 sent under different communication rate standards;
[0074] A reset signal measuring module 120, configured to measure a reset signal time interval in the communication signal, and send the reset signal time interval to an address rate matching table 130;
[0075] The address rate matching table 130 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; and is used to match the module ROM ID to select the module.
[0076] The 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, 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] A data processing module 150, configured to parse the control command in the communication signal, process the communication signal according to the control command, or load the data signal into the data buffer 110;
[0078] The data processing module 150 includes a storage controller 151, and the storage controller 151 is used to parse the read control command and the write control command in the control command;
[0079] The data processing module 150 further includes a storage array 152, which is used to store data information in the communication signal or read out the data signal;
[0080] The system for adjusting the single bus communication rate and identifying the device according to the embodiment of the present invention further includes:
[0081] The analog module (not shown) is used to provide the system with a reference power supply, a clock signal and a power-on reset signal to ensure the normal operation and correct initialization of the system.
[0082] Embodiment 2
[0083] like Figure 1 As shown, the second embodiment of the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the single bus communication rate adjustment and device identification system of the above-mentioned first embodiment, including:
[0084] The single bus interface 100 receives the communication signal input on the single bus and sends the data signal to the single bus, and forwards the communication signal to the data buffer 110 and the reset signal measurement module 120;
[0085] Among them, the communication signal is in a single bus data frame format and complies with the corresponding communication rate standard;
[0086] The communication rate standard includes basic signal timings such as reset signal length, slave response length, read and write sampling timing, and frame length;
[0087] The data buffer 110 buffers the communication signal and the data signal, and performs serial-to-parallel conversion on the communication signal and the 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 next reset signal time interval is waited for input.
[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] The interface controller 140 parses the ROM ID matching command in the communication signal from the data buffer 110;
[0093] The interface controller 140 parses the rate command in the communication signal from the data buffer 110;
[0094] The interface controller 140 parses the communication signal from the data buffer 110 and terminates the communication after receiving the end command;
[0095] The data processing module 150 parses the control command in the communication signal from the data buffer 110 , processes the communication signal according to the control command, or loads the data signal into the data buffer 110 .
[0096] In the above method, the communication signal is in a single bus data frame format, such as Figures 5a-5f As shown. All communication data frames start from the reset signal. Different reset signal lengths determine 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 respond to the slave existence and complete the existence handshake. If the module ROM ID needs to be specified, the ROM ID matching frame must follow the handshake and before the command frame to ensure that the module is uniquely selected. The command frame includes the rate command frame and the control command frame. In a communication data frame, one or more command frames can appear, and the rate command frame and the control command frame have no sequential relationship. All communication data frames are terminated 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, and the communication signal can select a single or multiple matching modules using a specific communication rate standard. When there are multiple slave responses, the slave response command frame cannot be sent. Figure 6aAs shown, when the host 600 uses the communication rate standard 60 for single bus communication, the slave 601 and the slave 602 can match the communication rate standard on the single bus, so the slave 601 and the slave 602 will respond and jointly receive the communication data frame sent by the host. At this time, the host cannot send a rate query command frame or a read control command frame 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, so the slave 604 will respond and only receive the communication data frame sent by the host, thereby realizing fast selection of the slave.
[0099] Embodiment 3
[0100] like Figure 2 As shown, the third embodiment of the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the single bus communication rate adjustment and device identification system of the above-mentioned first embodiment, including:
[0101] S201, the single bus interface 100 receives a communication signal input on the single bus, and forwards it to the data buffer 110 and the reset signal measurement module 120;
[0102] In this step, the single bus interface 100 receives the communication signal on the single bus and forwards it to the data buffer 110 and the reset signal measurement module 120. The communication signal is in the single bus data frame format and complies with the corresponding communication rate standard. The communication rate standard includes basic signal timings such as reset signal length, slave response length, read and write sampling timing and frame length.
[0103] S202, the reset signal measurement module 120 measures the reset signal time interval 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, that is, 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 will continue measuring after it is in an idle state again.
[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, the process proceeds to the next step; if the reset signal time interval does not match the stored communication rate standard, the process proceeds 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 the process proceeds to step S206;
[0108] In this step, the address rate matching table 130 matches the reset signal time interval and 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.
[0109] S205, the address rate matching table 130 does not modify the current communication rate standard, the communication enable signal is invalid, and the process returns 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 next reset signal time interval to be input.
[0111] S206, the interface controller 140 controls the single bus interface to perform single bus communication according to the communication rate standard, and stores the communication signal into 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 the single bus command frame and stores it in the data buffer 110. The data buffer 110 performs serial-to-parallel conversion on the received command frame, and then sends the frame command to the interface controller 140 and the data processing module 150 for parsing.
[0113] S207, the interface controller 140 determines whether the communication signal is a ROM ID identification signal, if yes, proceeds to the next step; if no, proceeds 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 a ROM ID identification signal. If it is a 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 a ROM ID identification signal, the ROM ID matching operation is not performed.
[0115] S208, the address rate matching table 130 matches the ROM ID and the current module to see if they match, if yes, proceed to the next step; if not, return to step S205;
[0116] In this step, the address rate matching table 130 matches the ROM ID in the command frame and the burned ROM ID to see if they match; if the ROM ID in the command frame and the burned ROM ID match, then the communication and analysis of the 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, the interface controller 140 controls the single bus interface 100 to perform single bus communication according to the communication rate standard, and stores the communication signal into the data buffer;
[0118] In this step, after the module is selected, the single bus interface 100 is controlled to perform single bus communication according to the communication rate standard, and the single bus command frame is received and stored in the data buffer 110. The data buffer 110 performs serial-to-parallel conversion on the received command frame, and then sends the frame command to the interface controller 140 and the data processing module 150 for parsing.
[0119] S210, the interface controller 140 and the data processing module 150 perform data processing according to the 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 conforms to 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, the interface controller 140 determines whether the communication signal is an end signal, if yes, proceeds to the next step; if no, returns to step S210;
[0122] S212, end this communication, and the system waits 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 start from the reset signal. Different reset signal lengths determine 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 respond to the slave existence and complete the existence handshake. If the module ROM ID needs to be specified, the ROM ID matching frame must follow the handshake and before the command frame to ensure that the module is uniquely selected. The command frame includes the rate command frame and the control command frame. In a communication data frame, one or more command frames can appear, and the rate command frame and the control command frame have no sequential relationship. All communication data frames are terminated 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, and the communication signal can select a single or multiple matching modules using a specific communication rate standard. When there are multiple slave responses, the slave response command frame cannot be sent. Figure 6a As shown, when the host 600 uses the communication rate standard 60 for single bus communication, the slave 601 and the slave 602 can match the communication rate standard on the single bus, so the slave 601 and the slave 602 will respond and jointly receive the communication data frame sent by the host. At this time, the host cannot send a rate query command frame or a read control command frame 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, so the slave 604 will respond and only receive the communication data frame sent by the host, thereby realizing fast selection of the slave.
[0126] Embodiment 4
[0127] like Figure 3 As shown, the fourth embodiment of the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the single bus communication rate adjustment and device identification system, wherein mainly on the basis of the second or third embodiment, the interface controller 140 performs the following steps of parsing and processing the received command frame:
[0128] S301, the interface controller 140 performs data processing according to the communication information;
[0129] S302, the 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 a communication rate standard to 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 , the interface controller 140 controls the single bus interface 100 to perform single bus communication according to the communication rate standard, and sends the data signal to the 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 start from the reset signal. Different reset signal lengths determine 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 respond to the slave existence and complete the existence handshake. If the module ROM ID needs to be specified, the ROM ID matching frame must follow the handshake and before the command frame to ensure that the module is uniquely selected. The command frame includes the rate command frame and the control command frame. In a communication data frame, one or more command frames can appear, and the rate command frame and the control command frame have no sequential relationship. All communication data frames are terminated 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, and the communication signal can select a single or multiple matching modules using a specific communication rate standard. When there are multiple slave responses, the slave response command frame cannot be sent. Figure 6a As shown, when the host 600 uses the communication rate standard 60 for single bus communication, the slave 601 and the slave 602 can match the communication rate standard on the single bus, so the slave 601 and the slave 602 will respond and jointly receive the communication data frame sent by the host. At this time, the host cannot send a rate query command frame or a read control command frame 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, so the slave 604 will respond and only receive the communication data frame sent by the host, thereby realizing fast selection of the slave.
[0136] Embodiment 5
[0137] like Figure 4 As shown, the fifth embodiment of the present invention provides a single bus communication rate adjustment and device identification method, which is applied to the single bus communication rate adjustment and device identification system, wherein mainly on the basis of the second or third embodiment, the data processing module 150 performs the following steps of parsing and processing the received command frame:
[0138] S401, the data processing module 150 performs data processing according to the communication information;
[0139] S402, the data processing module 150 parses the control command in the communication signal and processes the communication signal according to the control command;
[0140] S403: The control command is a write control command, which obtains address information and data information in the communication signal and writes data information to the corresponding address in the storage array 152;
[0141] S404, the control command is a read control command, the address information in the communication signal is obtained, the data corresponding to the address information is read from the storage array 152, and stored in the data buffer 110;
[0142] S405 , the interface controller 140 controls the single bus interface 100 to perform single bus communication according to the communication rate standard, and sends the data signal to the 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 start from the reset signal. Different reset signal lengths determine 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 respond to the slave existence and complete the existence handshake. If the module ROM ID needs to be specified, the ROM ID matching frame must follow the handshake and before the command frame to ensure that the module is uniquely selected. The command frame includes the rate command frame and the control command frame. In a communication data frame, one or more command frames can appear, and the rate command frame and the control command frame have no sequential relationship. All communication data frames are terminated 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, and the communication signal can select a single or multiple matching modules using a specific communication rate standard. When there are multiple slave responses, the slave response command frame cannot be sent. Figure 6a As shown, when the host 600 uses the communication rate standard 60 for single bus communication, the slave 601 and the slave 602 can match the communication rate standard on the single bus, so the slave 601 and the slave 602 will respond and jointly receive the communication data frame sent by the host. At this time, the host cannot send a rate query command frame or a read control command frame 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, so the slave 604 will respond and only receive the communication data frame sent by the host, thereby realizing fast selection of the slave.
[0146] Although the embodiments of the present application and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the application as defined by the appended claims.
Claims
1. A system for adjusting the communication rate of a single bus and identifying a device, characterized in that: include: A single bus interface, used to receive a communication signal input on the single bus and send a data signal to the single bus, and forward the communication signal to a data buffer and a reset signal measurement module; A data buffer, used for buffering the communication signal and the data signal, and performing 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 sent under different communication rate standards; A reset signal measurement module, used for measuring a reset signal time interval in the communication signal, and sending the reset signal time interval to an address rate matching table; An address rate matching table, used to match the reset signal time interval and the stored communication rate standard to obtain the communication rate standard of the communication signal; used to match the module ROM ID to select the module; The 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, 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; A data processing module, used for parsing the control command in the communication signal, processing the communication signal according to the control command, or loading the data signal into the data buffer; The data processing module includes a storage controller, and the storage controller is used to parse the read control command and the write control command in the control command.
2. The system for adjusting the communication rate of a single bus and identifying a device according to claim 1, characterized in that: The data processing module also includes a storage array, which is used to store data information in the communication signal or read out the data signal.
3. The system for adjusting the communication rate of a single bus and identifying a device according to claim 1, characterized in that: It also includes an analog module, which is used to provide a reference power supply, a clock signal and a power-on reset signal for the system to ensure normal operation and correct initialization of the system.
4. A method for adjusting the communication rate of a single bus and identifying a device, applied to the system for adjusting the communication rate of a single bus and identifying a device as claimed in claim 1, characterized in that: include: The single bus interface receives a communication signal input on the single bus and sends a data signal to the single bus, and forwards the communication signal to a data buffer and a reset signal measurement module; The communication signal is in a single bus data frame format and complies with the corresponding communication rate standard; The communication rate standard includes basic signal timings such as reset signal length, slave response length, read and write sampling timings and frame length; The data buffer buffers 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 and 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, and a communication enable valid signal is sent to the interface controller and the data processing module; 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 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, and 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 input of the next reset signal time interval is waited; 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 in the communication signal from the data buffer; The interface controller parses the rate command in the communication signal from the data buffer; The interface controller parses the communication signal from the data buffer and terminates the communication after receiving an end command; The data processing module parses the control command in the communication signal from the data buffer, processes the communication signal according to the control command, or loads the data signal into the data buffer.
5. The method for adjusting the single bus communication rate and identifying the device according to claim 4, characterized in that: The interface controller parses the rate modification command and the rate query command in the rate command; if the rate command is a rate modification command, the communication rate standard is added to or deleted from the address rate matching table; if the rate command is a rate query command, the stored communication rate standard is loaded into the data buffer.
6. The method for adjusting the single bus communication rate and identifying the device according to claim 4, characterized in that: The storage controller parses the read control command and the write control command in the control command; if the control command is a read control command, the address information in the communication signal is obtained, the data corresponding to the address information is read from the storage array, and the data is stored in the data buffer; if the control command is a write control command, the address information and data information in the communication signal are obtained, and the data information is written to the corresponding address in the storage array.
7. The method for adjusting the single bus communication rate and identifying the device according to claim 4, characterized in that: The reset signal length is greater than the low level length in all communication rate standards.
8. The method for adjusting the single bus communication rate and identifying the device according to claim 5, characterized in that: The communication signal uses the rate modification command to set a plurality of different communication rate standards in the address rate matching table, and uses a specific communication rate standard to select a single or multiple matching modules. When there are multiple slave responses, a slave response command frame cannot be sent.
9. A method for adjusting the communication rate of a single bus and identifying a device, applied to the single bus communication rate adjustment and device identification system as claimed in claim 1, characterized in that: The steps include: S201, the single bus interface receives a communication signal input on the single bus, and forwards it to a data buffer and a reset signal measurement module; S202, the reset signal measurement module measures the reset signal time interval 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 and the stored communication rate standard. If the reset signal time interval matches the stored communication rate standard, the process proceeds to the next step; if the reset signal time interval does not match the stored communication rate standard, the process proceeds to step S205; S204, if the reset signal time interval matches the stored communication rate standard, the address rate matching table loads the matched communication rate standard into the interface controller, the communication enable signal is valid, and the process proceeds to step S206; S205, if the reset signal time interval does not match the stored communication rate standard, the address rate matching table does not modify the current communication rate standard, the communication enable signal is invalid, and the process returns 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 signal into the data buffer; S207, the interface controller determines whether the communication signal is a ROM ID identification signal, if yes, proceeds to the next step; if no, proceeds to step S209; S208, the address rate matching table matches whether the ROM ID and the current module match, if yes, proceed to the next step; if not, 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 signal into the data buffer; S210, the interface controller and the data processing module perform data processing according to the communication information; S211, the interface controller determines whether the communication signal is an end signal, if yes, proceeds to the next step; if no, returns to step S210; S212, end this communication, and the system waits for the next communication data frame.
10. A method for adjusting the communication rate of a single bus and identifying a device, applied to the single bus communication rate adjustment and device identification system as claimed in claim 1, characterized in that: The interface controller parses and processes the received command frame as follows: S301, the interface controller performs data processing according to the communication information; S302, the interface controller parses the rate command in the communication signal; S303, the rate command is a rate modification command, which adds or deletes a communication rate standard to the address rate matching table; S304, the rate command is a rate query command, which 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 the data signal to the single bus.
11. A method for adjusting the communication rate of a single bus and identifying a device, applied to the single bus communication rate adjustment and device identification system as claimed in claim 1, characterized in that: The data processing module parses and processes the received command frame as follows: S401, a data processing module performs data processing according to communication information; S402, the data processing module parses the control command in the communication signal and processes the communication signal according to the control command; S403: The control command is a write control command, which obtains address information and data information in the communication signal and writes data information to the corresponding address in the storage array; S404, the control command is a read control command, the address information in the communication signal is obtained, the data corresponding to the address information is read from the storage array, and stored 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 the data signal to the single bus.
Citation Information
Patent Citations
Bridge circuit of self-adapting velocity matching bus
CN101183347A
Unibus data communication method
CN104657303A
Implement method for high speed single bus communication
CN104811273A
UART side processing method for bus communication and communication device
CN111159073A
Communication method of single bus system
CN116303204A
Cited By
1-wire bus communication rate adjustment and device identification system and method
WO2026144799A1