Single-wire communication transmission system
By using an extensible communication protocol in a single-line communication transmission system, the verification bits and device identification bits of data packets are expanded, and the problems of functional limitations and data transmission errors in traditional systems are solved, thereby achieving higher data transmission accuracy and reliability, as well as the data update capability of specific devices.
Patent Information
- Application Number
- CN202411661798.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-20
AI Technical Summary
Traditional single-line communication transmission systems have problems such as functional limitations, the inability to update or set data for specific serial devices, and the data is susceptible to external interference during long-distance transmission, resulting in errors.
Using an extensible communication protocol, by expanding the check bits and device identification bits in the data packet, the checksum identification of the data packets is realized, thereby improving the accuracy and reliability of data transmission.
It improves the accuracy and reliability of single-line transmission data, realizes data updates and settings for specific series devices, and expands the application scope of single-line transmission.
Smart Images

Figure CN119603375A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a single-line communication transmission system, and in particular to a system for performing single-line communication transmission between serially connected devices using an innovative communication protocol. Background Art
[0002] See also Figure 1 and Figure 2 , is a diagram of the architecture of a traditional single-line communication transmission system and a timing diagram of a traditional host and multiple serially connected devices transmitting data in a single-line manner. Figure 1 As shown, the single-line communication transmission system 100 includes a host 11 and a plurality of serially connected devices 13, such as a first serially connected device (A), a second serially connected device (B) ... an Nth serially connected device (N), etc. The host 11 and the serially connected devices 13 are serially connected together in a single-line manner. The host 11 and the serially connected device 13 or the serially connected device 13 and other serially connected devices 13 will communicate in a single-line manner using the same conventional communication protocol (or a standardized communication protocol).
[0003] like Figure 1 and Figure 2 As shown, when the serial devices 13 need to update data, the host 11 will formulate a data packet with a fixed number of bits (nbits) for each serial device 13 in a data transmission format of a conventional communication protocol (or a standard communication protocol), such as the host 11 formulates data packets such as Device (A)_DP1, Device (B)_DP1, ..., Device (N)_DP1, etc. for the first serial device (A), the second serial device (B), ..., the Nth serial device (N). After the host 11 formulates the data packets DP1 of the serial devices 13, it transmits the data packets DP1 to the serial devices 13 in a single line in a broadcast stream manner. After each serial device 13 receives the data packets DP1 of the stream, it extracts the corresponding data packet DP1 from the data packets DP1 of the stream, and the remaining data packets DP1 continue to be transmitted in a single line so as to be transmitted to the last serial device 13. For example, the serial device (A) extracts the corresponding data packet Device (A)_DP1 from the data packets of the serial flow, and the remaining data packets Device (B)_DP1, ..., Device (N)_DP1 continue to be transmitted to other serial devices 13 in a single line, so that each serial device can obtain the corresponding data packet DP1. Then, each data packet DP1 is transmitted to the corresponding serial device 13 in a single line transmission manner.
[0004] Furthermore, after each serial device 13 receives its own data packet DP1 and waits for a latching time (LATCH_TIME), it will receive a Sync.bit signal transmitted from the host 11, and use the Sync.bit signal to inform each serial device 13 to synchronously update the current data and settings according to the received data packet DP1.
[0005] Further reading Figure 3 The waveform style diagram of the data bit 0 / 1 and the description of the timing symbol of the data bit 0 / 1 in Table 1 are shown in FIG. Figure 1 , 2 , 3 and Table 1, Symbol_0 is the waveform pattern of data bit 0, and the timing symbol T in the waveform pattern is 0H and T 0L represent the high level time and low level time of the standardized data bit 0, and Symbol_1 is the waveform pattern of data bit 1. The timing symbol T in the waveform pattern 1H and T 1L Respectively represent the high level time and low level time of the data bit 1 specified in the specification. Specifically, the data bits 0 and 1 in the data packet DP1 will be Figure 3 The waveform patterns Symbol_0 and 1 are used for single-line transmission of the stream between the host 11 and the serial device 13 or between the serial devices 13 and the serial devices 13 .
[0006] Timing Symbols Description of Timing Symbols <![CDATA[T 0H ]]> Data bit 0, high level time <![CDATA[T 0L ]]> Data bit 0, low level time <![CDATA[T 1H ]]> Data bit 1, high level time <![CDATA[T 1L ]]> Data bit 1, low level time
[0007] Table 1: Description of the timing symbols of data bits 0 / 1
[0008] Next, the host 11 and the serial device 13 have traditionally used a conventional communication protocol (or a standard communication protocol) to transmit data via a single line, which has the following drawbacks:
[0009] (1) The host 11 formulates the data packet DP1 in a conventional communication protocol data transmission format, and the serially connected devices 13 also transmit the data packet DP1 in a conventional communication protocol. Then, the functionality will be limited by the content and size (e.g., n bits) of the data packet DP1 formulated by the host 11;
[0010] (2) It is impossible to update or set data for a specific serial device 13;
[0011] (3) When the serial devices 13 are connected in series in a single-line manner, the transmission path is too long, and data is easily interfered with by external factors (such as electromagnetic noise) during transmission, resulting in errors, or data transmission delays, causing the serial device 13 to misjudge the data bit 0 or 1 and generate errors, and there is no ability to detect and correct the erroneous data. Summary of the invention
[0012] In view of the fact that conventional communication protocols have been used to transmit data over a single line, there are many deficiencies. The present invention proposes an innovative communication protocol with expandable functions to perform single-line communication transmission between serial devices. The content of the data packet is adjusted through the communication protocol with expandable functions to expand the requirements of specific functions in the data packet. Then, during the single-line transmission process, the function of the data packet is expanded through the communication protocol with expandable functions to increase the application of the single-line transmission, thereby improving the communication between the serial devices.
[0013] One purpose of the present invention is to provide an innovative single-line communication transmission system, which includes a host and a plurality of serially connected devices, wherein the host and the plurality of serially connected devices are serially connected in a single-line manner. The host communicates with the first serially connected device among the serially connected devices in a conventional communication protocol, and the serially connected devices communicate with each other in a communication protocol with expandable functions. The host formulates a data packet corresponding to each serially connected device through the data transmission format of the conventional communication protocol. When the first serially connected device among the serially connected devices receives a data packet of the conventional communication protocol from the host, it converts the data packet from the conventional communication protocol to the expandable communication protocol to expand the check bit in the data packet; then, when other serially connected devices successively receive the corresponding data packets of the expandable communication protocol in a single-line transmission manner, they will use the check bits in the data packets to check the correctness of the data content of the data packets or further correct the erroneous data content through the check bits in the data packets. Therefore, by expanding the data verification function in the data packet, even if the data content of the data packet is disturbed by external factors during the longer single-line transmission path and errors occur, the data verification function can be corrected, thereby improving the accuracy and reliability of the single-line transmission data.
[0014] Another object of the present invention is to provide an innovative single-line communication transmission system, in which the host and the serial device or the serial device and the serial device communicate through a communication protocol with expandable functions. When the host wants to update or set data for a specific serial device, a data packet corresponding to the specific serial device is established through the communication protocol with expandable functions, and the device identification bit corresponding to the specific serial device is expanded in the data packet. When each serial device receives the data packet, it identifies whether the device identification bit in the data packet is consistent with the device identification code of the device itself; if the device identification bit in the data packet is consistent with the device identification code stored in the serial device itself, the serial device will extract the data content from the data packet and execute the data update or setting; on the contrary, if the device identification bit in the data packet is inconsistent with the device identification code of the serial device itself, the serial device will continue to transmit the data packet to the next serial device. Here, by establishing a data packet with a device identification code through the communication protocol with expandable functions, the host can also update or set data for a specific serial device in a single-line transmission manner.
[0015] In order to achieve the above-mentioned purpose, the present invention provides a single-line communication transmission system, characterized in that it includes: a host; a plurality of serially connected devices, the host and the plurality of serially connected devices are serially connected in a single-line manner, the host communicates with the first serially connected device among the serially connected devices through a first communication protocol, and the serially connected devices communicate with each other through a second communication protocol, wherein the first communication protocol is a conventional communication protocol, and the second communication protocol is a communication protocol with expandable functions; wherein the host formulates a data packet of each serially connected device according to the first communication protocol, and streams the formulated data packets of the first communication protocol to the serially connected devices in a single-line transmission manner; wherein the first serially connected device among the serially connected devices, after receiving the streamed data packets of the first communication protocol from the host, extracts the corresponding data packets from the data packets of the first communication protocol Data packets, while the remaining data packets of the first communication protocol are reorganized in data transmission format and converted in communication protocol respectively, so as to be reorganized and converted into data packets of the second communication protocol with check bits, and the reorganized and converted data packets of the second communication protocol with check bits are streamed to other serial devices connected in series behind the first serial device in a single-line transmission manner; wherein, after receiving the streamed data packets of the second communication protocol with check bits, the other serial devices connected in series behind the first serial device in a single-line take out the data packets of the second communication protocol corresponding to them respectively, and execute a data verification procedure with the check bits in the data packets of the second communication protocol to check the correctness of the data content of the data packets of the second communication protocol or further correct the erroneous data content in the data packets of the second communication protocol through the check bits.
[0016] Preferably, the check bit is configured with an odd parity bit, configured with an even parity bit, or configured with an error correction code.
[0017] Preferably, the data transmission format of the data packet of the second communication protocol includes a start bit, a data bit, a check bit and an end bit.
[0018] Preferably, each serial connection device includes: a receiver of a first communication protocol; a receiver of a second communication protocol; a multiplexer; and a transmitter of the second communication protocol; wherein the input end of the receiver of the first communication protocol and the input end of the receiver of the second communication protocol are connected to the host or the previous single-line serial connection device; the multiplexer is a two-to-one multiplexer, wherein the first input end is connected to the output end of the receiver of the first communication protocol, the second input end is connected to the output end of the receiver of the second communication protocol, the output end is connected to the input end of the transmitter of the second communication protocol, and the control end is connected to the control end of the receiver of the second communication protocol; wherein the receiver of the first communication protocol and the second communication protocol of the serial connection device The receiver receives the data packets of the first communication protocol in the stream from the host or receives the data packets of the second communication protocol in the stream from the previous single-line serial connection device; when the receiver of the first communication protocol parses the received data packets of the stream as the data packets of the first communication protocol through the first transmission format parser, the receiver of the first communication protocol takes out the corresponding data packets from the data packets of the stream and stores them, and the data packets of the remaining streams are reorganized into the data packets of the second communication protocol with the check bit through the transmission format converter for data transmission format reorganization and communication protocol conversion; at the same time, when the receiver of the second communication protocol receives the data packets of the first communication protocol through the second transmission format parser, the receiver of the first communication protocol takes out the corresponding data packets from the data packets of the stream and stores them, and the data packets of the remaining streams are reorganized into the data packets of the second communication protocol with the check bit through the transmission format converter for data transmission format reorganization and communication protocol conversion; at the same time, when the receiver of the second communication protocol receives the data packets of the second communication protocol through the second transmission format parser, the receiver of the first communication protocol receives the data packets of the first communication protocol through the second transmission format parser. When the format parser parses out that the data packets of the received stream are the data packets of the first communication protocol, the receiver of the second communication protocol controls the multiplexer to output all the data packets of the second communication protocol reorganized and converted by the receiver of the first communication protocol; then, the data packets of the second communication protocol output by the multiplexer are transmitted to the next single-line serial connection device through the transmitter of the second communication protocol in a single-line stream; or, when the receiver of the second communication protocol parses out that the data packets of the received stream are the data packets of the second communication protocol through the second transmission format parser, the receiver of the second communication protocol executes a data verification program through the data verifier to use the data packets The check bits in the data packets of the second communication protocol are used to verify the correctness of the data contents of the data packets of the second communication protocol or to further correct the erroneous data contents through the check bits in the data packets of the second communication protocol; after the data verification procedure is completed, the receiver of the second communication protocol takes out the corresponding verified data packets of the second communication protocol from the data packets of the second communication protocol and stores them, and the remaining verified data packets of the second communication protocol will be output by controlling the multiplexer through the receiver of the second communication protocol; then, the data packets of the second communication protocol output by the multiplexer will be transmitted in a single-line manner through the transmitter of the second communication protocol to the next single-line serially connected serial device.
[0019] Preferably, each serial connection device comprises: a receiver of a first communication protocol; a receiver of a second communication protocol; a multiplexer; and a transmitter of a second communication protocol; wherein the input end of the receiver of the first communication protocol and the input end of the receiver of the second communication protocol are connected to the host or the previous single-line serial connection serial connection device; the multiplexer is a two-to-one multiplexer, wherein the first input end is connected to the output end of the receiver of the first communication protocol, the second input end is connected to the output end of the receiver of the second communication protocol, the output end is connected to the input end of the transmitter of the second communication protocol, and the control end is connected to the control end of the receiver of the first communication protocol; wherein the receiver of the first communication protocol and the receiver of the second communication protocol of the serial connection device receive the data packets of the first communication protocol in the stream from the host or receive the data packets of the second communication protocol in the stream from the previous single-line serial connection serial connection device; when the receiver of the first communication protocol parses the received data packets of the stream as the data packets of the first communication protocol through the first transmission format parser, the receiver of the first communication protocol takes out the corresponding data packets from the data packets of the stream and stores them, and the data packets of the remaining streams are transmitted through the transmission format parser. The format converter reorganizes the data transmission format and converts the communication protocol to reorganize and convert all the data packets into the second communication protocol data packets with check bits, and controls the multiplexer to output all the reorganized and converted data packets of the second communication protocol; or, when the receiver of the second communication protocol parses the received data packets of the stream through the second transmission format parser to find that they are the data packets of the second communication protocol, a data verification program is executed through the data verifier to verify the correctness of the data content of the data packets of the second communication protocol by using the check bits in the data packets of the second communication protocol or further correct the erroneous data content by using the check bits in the data packets of the second communication protocol; after the data verification program is completed, the receiver of the second communication protocol takes out the corresponding verified data packets of the second communication protocol from the data packets of the second communication protocol and stores them, and the remaining verified data packets of the second communication protocol will be output by the receiver of the first communication protocol to control the multiplexer; then, the data packets of the second communication protocol output by the multiplexer will be transmitted to the next single-line serially connected serial device through the transmitter of the second communication protocol in a single-line stream.
[0020] The present invention further proposes a single-line communication transmission system, characterized in that it includes: a host; a plurality of serial devices, the host and the serial devices are serially connected in a single-line manner, and the host and the serial devices communicate with each other through a communication protocol with expandable functions; wherein, when the host wants to update or set data for a specific serial device, a corresponding data packet is formulated for the specific serial device through the communication protocol with expandable functions, and the data packet includes a device identification bit. After the host formulates the data packet, the data packet is transmitted to the serial devices in a single-line manner; when each serial device receives the data packet, the device identification bit in the data packet is identified to identify whether the data packet is the corresponding data packet; when one of the serial devices identifies that the data packet is a corresponding data packet, the data content is extracted from the data packet to execute data update or setting; when one of the serial devices identifies that the data packet is a non-corresponding data packet, the data packet continues to be transmitted to the next serial device in a single-line manner.
[0021] Preferably, the serial device includes a receiver of a communication protocol with expandable functions and a transmitter of a communication protocol with expandable functions. The receiver of the communication protocol with expandable functions includes a device identifier, which stores a device identifier. When the serial device receives a data packet, it identifies whether the device identification bit in the data packet is consistent with the device identification code stored in the serial device through the device identifier; if the device identification bit in the serial device identification data packet is consistent with the device identification code stored in the serial device, the serial device extracts the data content from the data packet and executes data update or setting; conversely, if the device identification bit in the serial device identification data packet is inconsistent with the device identification code stored in the serial device, the serial device continues to transmit the data packet to the next serial device through the transmitter of the communication protocol with expandable functions.
[0022] Preferably, the data transmission format of the data packet includes a device identification bit, a start bit, a data bit and an end bit.
[0023] Preferably, the data packet further includes a check bit, and the receiver of the communication protocol with expandable functions further includes a data checker. When the data packet is transmitted between serial devices in a single-line manner, each serial device executes a data check procedure through the data checker to use the check bits in the data packet to verify the correctness of the data content of the data packet or further correct the erroneous data content in the data packet through the check bits in the data packet.
[0024] Preferably, after the data verification procedure is completed, the serial device identifies the data packet as a corresponding data packet through the device identifier, extracts the data content from the data packet and executes data update or setting; conversely, the device identifier identifies the data packet as a non-corresponding data packet and continues to transmit it to the next serial device in a single-line manner.
[0025] Preferably, the data transmission format of the data packet includes a device identification bit, a start bit, a data bit, a check bit and an end bit. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is the architecture diagram of the traditional single-line communication transmission system.
[0027] Figure 2 A timing diagram of a traditional host transmitting data to multiple serially connected devices using a single line.
[0028] Figure 3 The waveform diagram of data bit 0 / 1.
[0029] Figure 4 FIG. 4 is a structural diagram of an embodiment of a single-line communication transmission system of the present invention.
[0030] Figure 5 It is a timing diagram of an embodiment of the present invention in which a host and a plurality of serially connected devices transmit data in a single-line manner.
[0031] Figure 6 Schematic diagram of the data transmission format of the data packet of the second communication protocol of the present invention.
[0032] Figure 7 FIG. 4 is a structural diagram of an embodiment of a serial connection device of the present invention.
[0033] Figure 8 FIG. 4 is a structural diagram of another embodiment of the cascade device of the present invention.
[0034] Fig. 9 FIG. 4 is a structural diagram of another embodiment of the single-line communication transmission system of the present invention.
[0035] Fig.10 It is a schematic diagram of the data transmission format of the data packet of the communication protocol with expandable functions of the present invention.
[0036] Fig.11 FIG. 4 is a structural diagram of another embodiment of the cascade device of the present invention.
[0037] Fig.12 It is a schematic diagram of the data transmission format of the data packet of the communication protocol with expandable functions of the present invention.
[0038] Description of Reference Numerals
[0039] 100: Single-line communication transmission system
[0040] 11: Host
[0041] 13: Serial connection device
[0042] 200: Single-line communication transmission system
[0043] 201: Single-line communication transmission system
[0044] 21: Host
[0045] 23: Serial connection device
[0046] 231: Receiver of the first communication protocol
[0047] 2311: First transport format parser
[0048] 2312: Transport Format Converter
[0049] 232: Receiver of the second communication protocol
[0050] 2321: Second transmission format parser
[0051] 2322: Data Validator
[0052] 233: Multiplexer
[0053] 234: Transmitter of the second communication protocol
[0054] 235: Receiver of communication protocol with expandable functions
[0055] 2351: Device Identifier
[0056] 2352: Data Validator
[0057] 236: Transmitter of communication protocol with expandable functions
[0058] DP: Data Packet
[0059] DP1: Data Packet
[0060] DP2: Data Packet DETAILED DESCRIPTION
[0061] In order to make the objects, features and advantages of the present invention more obvious and easy to understand, the present application is further described in detail below in conjunction with drawings and specific implementation methods.
[0062] See also Figure 4 and Figure 5 , respectively, are a schematic diagram of an embodiment of a single-line communication transmission system of the present invention and a timing diagram of an embodiment of a single-line data transmission between a host and a plurality of serially connected devices of the present invention. Figure 4As shown, the single-line communication transmission system 200 of the present invention includes a host 21 and a plurality of serial devices 23, such as a first serial device (A), a second serial device (B) ... an Nth serial device (N), etc. The host 21 and the serial devices 23 are serially connected together in a single-line manner. In this embodiment, the host 21 communicates with the first serial device (A) 23 via a first communication protocol, and the first serial device (A), the second serial device (B) ... the Nth serial device (N) communicate with each other via a second communication protocol. In the present invention, the first communication protocol is a conventional communication protocol, and the second communication protocol is a communication protocol with expandable functions.
[0063] like Figure 4 and Figure 5 As shown, when the serial device 23 needs to update data, the host 21 will formulate a data packet DP1 with a fixed number of bits (n bits) for each serial device 23 through the first communication protocol (or conventional communication protocol), such as the host 21 formulates Device (A)_DP1, Device (B)_DP1, ..., Device (N)_DP1, etc. data packets DP1 for the first serial device (A), the second serial device (B), ..., the Nth serial device (N). In the present invention, the data packet DP1 formulated by the host 21 through the first communication protocol only includes the data content (such as data bits) to be updated for each serial device 23. After the host 21 formulates each data packet DP1 through the first communication protocol, it streams these data packets DP1 of the first communication protocol to the serial devices 23 in a single-line transmission manner. Next, when the first serial connection device (A) 23 among the serial connection devices 23 receives the data packet DP1 of the serial flow, the corresponding data packet DP1 (such as Device (A)_DP1) is taken out from the data packet DP1 of the serial flow and stored, and the remaining data packets DP1 will be reorganized in data transmission format and converted in communication protocol, so as to reorganize and convert all the remaining data packets DP1 of the first communication protocol into data packets DP2 of the second communication protocol. For example, the first serial connection device (A) 23 reorganizes the data transmission format of the remaining data packets DP1 of the first communication protocol such as Device (B)_DP1, ..., Device (N)_DP1, etc. through the second communication protocol, so as to convert all the remaining data packets DP1 of the first communication protocol such as Device (B)_DP1, ..., Device (N)_DP1, etc. into data packets DP2 of the second communication protocol such as Device (B)_DP2, ..., Device (N)_DP2, etc. Furthermore, when the data packet (DP1→DP2) is converted from the first communication protocol to the second communication protocol, the number of bits thereof will be expanded from n bits to n+x bits.
[0064] When the serial devices 23 are serially connected in a single-line manner, the data may be easily disturbed by external factors and cause errors during transmission due to the long transmission path, or data transmission may be delayed, causing the serial device 23 to misjudge the data bit 0 or 1 and cause errors. In a specific embodiment of the present invention, in order to reduce the probability of data errors during single-line transmission, the second communication protocol may be expanded with a data verification function.
[0065] Specifically, Figure 6 As shown, the data transmission format of the data packet DP2 of the second communication protocol of this embodiment includes a start bit (Start Bit), a data bit (Data Bits), a check bit (Check Bit) and an end bit (Stop Bit) in sequence. The start bit is the bit arranged at the front, which is used to inform the receiving end to start transmitting the data content of the data packet DP2. The data bit is arranged after the start bit, which is the actual data content; in the present invention, the data content is also the data content to be updated by the serial device 23. The end bit is the bit arranged at the back, which is used to inform the receiving end that the data packet has been transmitted. In addition, the check bit is arranged between the start bit and the data bit, which is based on the bit configured according to the data content, and the purpose of the configuration is to check the correctness of the data content or further to correct the error of the data content. In one embodiment, the check bit is an odd bit (Odd) or an even bit (Even). For example: if the parity bit is set to odd parity, and the data bits have an even number of 1s, the parity bit is configured to 1, and if the data bits have an odd number of 1s, the parity bit is configured to 0, and the data content of the data packet DP2 is checked to be correct by the odd parity; or, if the parity bit is set to even parity, and the data bits have an even number of 1s, the parity bit is configured to 0, and if the data bits have an odd number of 1s, the parity bit is configured to 1, and the data content of the data packet DP2 is checked to be correct by the even parity. Or, preferably, in another embodiment, the parity bit is an error correcting code (ECC), and the purpose of its configuration is not only to check the correctness of the data content, but also to correct the errors in the data content.
[0066] Here, when the serial device (A) 23 receives the data packets of the serial flow from the host 21, it takes out the corresponding data packet DP1 (such as Device (A)_DP1), and the remaining data packets DP1 can be Figure 6The data transmission format of the second communication protocol is reorganized to be converted into the data packet DP2 of the second communication protocol, and the data verification function is expanded to the data packet DP2. Then, when the subsequent serial connection device (B) 23, ..., serial connection device (N) 23 receives the data packet DP2 of the stream, they respectively take out the corresponding data packet DP2, and perform the data verification program with the check bit in the data packet DP2 to check the correctness of the data content in the data packet DP2 or further correct the erroneous data content through the check bit.
[0067] Here, by expanding the data check function in the data packet DP2, even if the data content of the data packet DP2 is disturbed by external factors and generates errors during the longer single-line transmission path, it can be corrected by the data check function, thereby improving the accuracy and reliability of the single-line transmission data.
[0068] Back to Figure 5 As shown, after each serial device 23 receives its own data packet DP1 / DP2 and waits for a latching time (LATCH_TIME), it will further receive a synchronization bit (Sync.bit) signal transmitted by the host 21, and use the synchronization bit (Sync.bit) signal to inform each serial device 23 to synchronously update the current data and settings according to the data content of the received data packet DP1 / DP2.
[0069] See also Figure 7 Each serial connection device 23 includes a receiver 231 of the first communication protocol, a receiver 232 of the second communication protocol, a multiplexer 233 and a transmitter 234 of the second communication protocol.
[0070] The input end of the receiver 231 of the first communication protocol and the input end of the receiver 232 of the second communication protocol are connected to the host 21 or the previous serial device 23. The multiplexer 233 is a two-or-one multiplexer, wherein the first input end is connected to the output end of the receiver 231 of the first communication protocol, the second input end is connected to the output end of the receiver 232 of the second communication protocol, the output end is connected to the input end of the transmitter 234 of the second communication protocol, and the control end is connected to the control end of the receiver 232 of the second communication protocol.
[0071] The receiver 231 of the first communication protocol includes a first transmission format parser 2311 and a transmission format converter 2312, and the receiver 232 of the second communication protocol includes a second transmission format parser 2321 and a data checker 2322. In one embodiment of the present invention, the first transmission format parser 2311, the transmission format converter 2312, the second transmission format parser 2321 and the data checker 2322 may also be firmware or software programs and stored in a non-volatile memory in the serial device 23.
[0072] The serial device 23 receives a data packet DP1 of a first communication protocol from the host 21 or receives a data packet DP2 of a second communication protocol from the previous serial device 23. When the serial device 23 receives the data packet DP1 / DP2, the receiver 231 of the first communication protocol and the receiver 232 of the second communication protocol respectively use the first transmission format parser 2311 and the second transmission format parser 2321 to parse the communication protocol to which the data packet DP1 / DP2 belongs.
[0073] When the receiver 231 of the first communication protocol parses the received data packets of the stream as the data packets DP1 of the first communication protocol through the first transmission format parser 2311, the corresponding data packet DP1 (such as Device (A)_DP1) is taken out from the data packets DP1 of the stream and stored, and the remaining data packets DP1 of the stream are reorganized into data packets DP2 of the second communication protocol through the transmission format converter 2312; at the same time, when the receiver 232 of the second communication protocol parses the received data packets of the stream as the data packets DP1 of the first communication protocol through the second transmission format parser 2321, the multiplexer 233 is controlled to output all the data packets DP2 of the second communication protocol converted by the receiver 231 of the first communication protocol. Then, the data packets DP2 of the second communication protocol output by the multiplexer 233 are transmitted to the next serial device 23 in a single-line manner through the transmitter 234 of the second communication protocol.
[0074] Alternatively, when the receiver 231 of the first communication protocol parses the received data packets of the stream as the data packets DP2 of the second communication protocol through the first transmission format parser 2311, the receiver 231 of the first communication protocol does not perform any action; at the same time, when the receiver 232 of the second communication protocol parses the received data packets of the stream as the data packets DP2 of the second communication protocol through the second transmission format parser 2321, the data checker 2322 performs a data check procedure to use the check bits in the data packets DP2 to check the correctness of the data content of the data packets DP2 or further correct the erroneous data content through the check bits in the data packets DP2. After the data check procedure is completed, the corresponding checked data packets DP2 are taken out from the data packets DP2 of the stream and stored, and the remaining checked data packets DP2 are output by controlling the multiplexer 233 through the receiver 232 of the second communication protocol. Then, the data packets DP2 of the second communication protocol output by the multiplexer 233 are transmitted to the next serial device 23 in a single-line manner through the transmitter 234 of the second communication protocol.
[0075] See also Figure 8 FIG. 4 is a structural diagram of another embodiment of the serial connection device of the present invention. Figure 8The structure of the serial connection device 23 of the embodiment is similar to Figure 7 The structures of the serial connection device 23 of the embodiment differ only in that: Figure 7 The control end of the multiplexer 233 of the embodiment is connected to the control end of the second communication protocol receiver 232, and the two-choice control of the multiplexer 233 is performed by the second communication protocol receiver 232. Figure 8 The control end of the multiplexer 233 of the embodiment is connected to the control end of the first communication protocol receiver 231 , and the one-or-the-other control of the multiplexer 233 is performed by the first communication protocol receiver 231 .
[0076] If the data packets of the serial stream received by the serial connection device 23 are parsed as data packets DP1 of the first communication protocol, the receiver 231 of the first communication protocol stores the corresponding data packets DP1, and the remaining data packets DP1 perform the communication protocol conversion to be converted into data packets DP2 of the second communication protocol, and after the communication protocol conversion is completed, the receiver 231 of the first communication protocol controls the multiplexer 233 to output all the converted data packets DP2 of the second communication protocol. Then, the data packets DP2 of the second communication protocol output by the multiplexer 233 will be transmitted to the next serial connection device 23 in a single-line manner through the transmitter 234 of the second communication protocol.
[0077] Alternatively, if the data packets of the serial stream received by the serial connection device 23 are parsed as data packets DP2 of the second communication protocol, the receiver 232 of the second communication protocol performs a data content verification procedure for all data packets DP2, and after executing the data verification procedure, stores the corresponding verified data packets DP2, and the remaining verified data packets DP2 will be output through the receiver 231 of the first communication protocol to control the multiplexer 233. Then, the data packets DP2 of the second communication protocol output by the multiplexer 233 will be transmitted to the next serial connection device 23 in a single-line manner through the transmitter 234 of the second communication protocol.
[0078] See also Fig. 9 , respectively, are architectural diagrams of yet another embodiment of the single-line communication transmission system of the present invention. Fig. 9 As shown, the single-line communication transmission system 201 of the present invention includes a host 21 and a plurality of serial devices 23, such as a first serial device (A), a second serial device (B) ... an Nth serial device (N), etc. The host 21 and the serial devices 23 are serially connected in a single-line manner. In this embodiment, the host 21 and the serial devices 23 communicate with each other in a single-line manner through a communication protocol with expandable functions. In this embodiment, the host 21 updates or sets data for at least one specific serial device 23 through a communication protocol with expandable functions.
[0079] Specifically, Fig.10As shown, the data transmission format of the data packet DP of the communication protocol with expandable functions in this embodiment includes device identification bits (Device ID Bits), start bits (Start Bit), data bits (DataBits) and stop bits (Stop Bit) in sequence. The device identification bits (Device ID Bits) are arranged at the very beginning, and are used to identify the serial device 23, such as the unique device identifier (UDI) of the device or the MAC address of the device. The start bit is arranged after the device identification bit to inform the receiving end to start transmitting the data content of the data packet DP. The data bits are arranged after the start bit, and are the actual data content. The data content is also the data content that the serial device 23 wants to update. The stop bit is the last bit, which is used to inform the receiving end that the data packet has been transmitted.
[0080] When the host 21 wants to update or set data for a specific serial device 23, Fig.10 The data packet DP is established in the data transmission format of the communication protocol with expandable functions, and the device identification bit corresponding to the specific serial device 23 is expanded in the data packet DP.
[0081] See also Fig.11 Each serial device 23 includes a receiver 235 of a communication protocol with expandable functions and a transmitter 236 of a communication protocol with expandable functions. The transmitter 236 of the communication protocol with expandable functions is connected to the receiver 235 of the communication protocol with expandable functions. The receiver 235 of the communication protocol with expandable functions includes a device identifier 2351. The device identifier 2351 may also store a device identification code of the serial device 23 itself. The device identifier 2351 may also be built in the receiver 235 of the communication protocol with expandable functions in the form of hardware, firmware or software. When the serial device 23 receives the data packet DP, it identifies whether the device identification bit in the data packet DP is consistent with the device identification code stored in the serial device 23 itself through the device identifier 2351; if the device identification bit in the identification data packet DP is consistent with the device identification code stored in the serial device 23 itself, the serial device 23 will extract the data content from the data packet DP and execute the data update or setting; on the contrary, if the device identification bit in the identification data packet DP is inconsistent with the device identification code stored in the serial device 23 itself, the serial device 23 will continue to transmit the data packet DP to the next serial device 23 through the transmitter 236 of the communication protocol with expandable functions.
[0082] Let’s use a specific example as an example. Fig. 9 , Fig.10 and Fig.11As shown, when the host 23 wants to update or set the data of the second serial device (B) 23, first, a data packet DEVICE(B)_DP belonging to the second serial device (B) 23 is formulated through the data transmission format of the communication protocol with expandable functions, so as to expand the device identification bit of the second serial device (B) 23 in the data packet DEVICE(B)_DP. After formulating the data packet DEVICE(B)_DP of the second serial device (B) 23, the host 21 transmits DEVICE(B)_DP to the serial devices 23 in a single-line manner.
[0083] Next, the first serial device (A) 23 among the serial devices 23 first receives the data packet DEVICE (B)_DP. After receiving the data packet DEVICE (B)_DP, the first serial device (A) 23 identifies through the device identifier 2351 that the device identification bit in the data packet DEVICE (B)_DP is inconsistent with the device identification code of the serial device (A) 23 itself, and continues to transmit the data packet DP to the second serial device (B) 23 in a single-line manner through the transmitter 236 of the communication protocol with expandable functions. After receiving the data packet DEVICE (B)_DP, the second serial device (B) 23G identifies through the device identifier 2351 that the device identification bit in the data packet DEVICE (B)_DP is consistent with the device identification code of the serial device (B) 23 itself, and further extracts the data content of DEVICE (B)_DP and executes the data update or setting. At this point, the host 23 can complete the data update or setting for the second serial device (B) 23.
[0084] Therefore, the device identification bit is expanded in the data packet DP through the communication protocol with expandable functions, so that the host 21 can achieve the purpose of updating or setting data for the specific serial device 23.
[0085] Of course, if Fig.12 As shown, the host 21 further expands the data transmission format of the data packet DP with a check bit through the communication protocol with expandable functions, and Fig.11The receiver 235 of the communication protocol of the serial device 23 with expandable functions further includes a data checker 2532. When the data packet DP of the communication protocol with expandable functions is transmitted between the serial devices 23 in a single-line manner, each serial device 23 executes a data check procedure through the data checker 2532 to use the check bits in the data packet DP to verify the correctness of the data content of the data packet DP or further correct the erroneous data content through the check bits in the data packet DP. After the data check procedure is completed, if the serial device 23 recognizes that the data packet DP is the data packet DP of the device itself, it will execute data update or setting; on the contrary, if the serial device 23 recognizes that the data packet DP is the data packet DP of another serial device 23, it will continue to transmit to the next serial device 23 in a single-line manner.
[0086] Therefore, the check function is expanded in the data packet DP through the communication protocol with expandable functions, so that during the single-line transmission process, the data content of the data packet DP can always be checked and corrected by each serial device 23 to increase the data integrity and reliability during the single-line transmission.
[0087] The above is only a preferred specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can make equivalent substitutions or changes within the technical scope disclosed in the present application according to the technical solution and application concept of the present application, which should be covered by the protection scope of the present application.
Claims
1. A single-line communication transmission system, characterized in that: include: Host; A plurality of serially connected devices, wherein the host and the serially connected devices are serially connected in a single-line manner, the host communicates with a first serially connected device among the serially connected devices via a first communication protocol, and the serially connected devices communicate with each other via a second communication protocol, wherein the first communication protocol is a conventional communication protocol, and the second communication protocol is a communication protocol with expandable functions; The host formulates a data packet of each of the serially connected devices using the first communication protocol, and streams the formulated data packets of the first communication protocol to the serially connected devices in a single-line transmission manner; After receiving the data packets of the first communication protocol from the host, the first serial connection device among the serial connection devices extracts the corresponding data packet from the data packets of the first communication protocol, and the remaining data packets of the first communication protocol are respectively reorganized in data transmission format and converted in communication protocol to be reorganized and converted into data packets of the second communication protocol with check bits, and the reorganized and converted data packets of the second communication protocol with check bits are streamed to other serial connection devices connected in series behind the first serial connection device in a single-line transmission mode; Among them, after receiving the data packets of the second communication protocol with check bits in the stream, the other serially connected devices behind the first serially connected device respectively take out the corresponding data packets of the second communication protocol, and perform a data verification program with the check bits in the data packets of the second communication protocol to check the correctness of the data content of the data packets of the second communication protocol or further correct the erroneous data content in the data packets of the second communication protocol through the check bits.
2. The single-line communication transmission system according to claim 1, characterized in that: The check bit is configured with an odd parity bit, configured with an even parity bit, or configured with an error correction code.
3. The single-line communication transmission system according to claim 1, characterized in that: The data transmission format of the data packet of the second communication protocol includes a start bit, a data bit, the check bit and an end bit.
4. The single-line communication transmission system according to claim 1, characterized in that: Each of the serial connection devices comprises: a receiver of a first communication protocol; a receiver for a second communication protocol; Multiplexers; and a transmitter for a second communication protocol; The input end of the receiver of the first communication protocol and the input end of the receiver of the second communication protocol are connected to the host or the serial connection device of the previous single-line serial connection; the multiplexer is a two-select-one multiplexer, the first input end of which is connected to the output end of the receiver of the first communication protocol, the second input end is connected to the output end of the receiver of the second communication protocol, the output end is connected to the input end of the transmitter of the second communication protocol, and the control end is connected to the control end of the receiver of the second communication protocol; The receiver of the first communication protocol and the receiver of the second communication protocol of the serial connection device receive the data packets of the first communication protocol in the stream from the host or receive the data packets of the second communication protocol in the stream from the serial connection device of the previous single-line serial connection; When the receiver of the first communication protocol parses the received data packets of the stream through the first transmission format parser and finds that they are the data packets of the first communication protocol, the receiver of the first communication protocol takes out the corresponding data packets from the data packets of the stream and stores them, and the data packets of the remaining streams are reorganized in data transmission format and converted in communication protocol through the transmission format converter to be reorganized and converted into the data packets of the second communication protocol with parity bits; at the same time, when the receiver of the second communication protocol parses the received data packets of the stream through the second transmission format parser and finds that they are the data packets of the first communication protocol, the receiver of the second communication protocol controls the multiplexer to output all the reorganized and converted data packets of the second communication protocol of the receiver of the first communication protocol; then, the data packets of the second communication protocol output by the multiplexer are transmitted in a single-line manner to the next serially connected device through the transmitter of the second communication protocol; Alternatively, when the receiver of the second communication protocol parses the received data packets of the stream through the second transmission format parser and finds that they are respectively data packets of the second communication protocol, the receiver of the second communication protocol executes a data verification program through the data verifier to use the check bits in the data packets of the second communication protocol to verify the correctness of the data content of the data packets of the second communication protocol or further correct the erroneous data content through the check bits in the data packets of the second communication protocol; after the data verification program is completed, the receiver of the second communication protocol takes out the corresponding verified data packets of the second communication protocol from the data packets of the second communication protocol and stores them, and the remaining verified data packets of the second communication protocol will be output by controlling the multiplexer through the receiver of the second communication protocol; then, the data packets of the second communication protocol output by the multiplexer will be transmitted to the next single-line serially connected serial device through the transmitter of the second communication protocol in a single-line manner.
5. The single-line communication transmission system according to claim 1, characterized in that: Each of the serial connection devices comprises: a receiver of a first communication protocol; a receiver for a second communication protocol; Multiplexers; and a transmitter for a second communication protocol; The input end of the receiver of the first communication protocol and the input end of the receiver of the second communication protocol are connected to the host or the serial connection device of the previous single-line serial connection; the multiplexer is a two-select-one multiplexer, the first input end of which is connected to the output end of the receiver of the first communication protocol, the second input end is connected to the output end of the receiver of the second communication protocol, the output end is connected to the input end of the transmitter of the second communication protocol, and the control end is connected to the control end of the receiver of the first communication protocol; The receiver of the first communication protocol and the receiver of the second communication protocol of the serial connection device receive the data packets of the first communication protocol in the stream from the host or receive the data packets of the second communication protocol in the stream from the serial connection device of the previous single-line serial connection; When the receiver of the first communication protocol parses the received data packets of the stream through the first transmission format parser to find that they are the data packets of the first communication protocol, the receiver of the first communication protocol takes out the corresponding data packets from the data packets of the stream and stores them, and the data packets of the remaining streams are reorganized into the data packets of the second communication protocol with parity bits through the transmission format converter for data transmission format reorganization and communication protocol conversion, and the multiplexer is controlled to output all the reorganized and converted data packets of the second communication protocol; Alternatively, when the receiver of the second communication protocol parses the received data packets of the stream through the second transmission format parser and finds that they are respectively data packets of the second communication protocol, a data verification program is executed through the data verifier to use the check bits in the data packets of the second communication protocol to verify the correctness of the data content of the data packets of the second communication protocol or further correct the erroneous data content through the check bits in the data packets of the second communication protocol; after the data verification program is completed, the receiver of the second communication protocol takes out the corresponding verified data packets of the second communication protocol from the data packets of the second communication protocol and stores them, and the remaining verified data packets of the second communication protocol will be output by controlling the multiplexer through the receiver of the first communication protocol; then, the data packets of the second communication protocol output by the multiplexer will be transmitted in a single-line manner to the next single-line serially connected serial device through the transmitter of the second communication protocol.
Citation Information
Patent Citations
Method and system for asynchronous serialization of multiple serial communication signals
US10630314B1
Method and system for protocol processing
US20230273778A1
Single wire serial communication method and single wire serial communication system
US20240333677A1
Signal conversion method, chip, and household appliance
WO2022000813A1