Multi-channel adaptive baud rate communication method and device, electronic equipment and storage medium

Through the multi-channel adaptive baud rate communication method, the data stream transmission mechanism is dynamically adjusted using wake-up signal and confirmation signal adjustment mode, which solves the communication failure problem caused by clock differences between devices, and achieves stable and reliable communication and multi-channel connection.

CN120541014APending Publication Date: 2025-08-26SHENZHEN JIAYZ PHOTO IND LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510623916.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

Communication failure problems caused by differences in clock accuracy between different devices, especially in standard serial port communication, communication stability and reliability are affected.

Method used

The multi-channel adaptive baud rate communication method is adopted. By sending a wake-up signal in the open-drain output mode, and adjusting the mode to the pull-up input mode after receiving the confirmation signal, determining the data stream transmission mechanism, and dynamically adjusting the data stream transmission according to the signal hysteresis time and the receiving end capability, realizing communication without relying on absolute frequency and time signals.

Benefits of technology

Improves the stability and reliability of communication, solves communication failures caused by clock differences, supports multi-channel connections and expands communication capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120541014A_ABST
    Figure CN120541014A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a multichannel adaptive baud rate communication method and device, electronic equipment and a storage medium, and the method comprises the steps: adjusting the current mode of a transmitting end to an open-drain output mode when the transmitting end transmits data to a receiving end, and transmitting a wake-up signal to the receiving end in the open-drain output mode; if a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjusting an open-drain output mode to a pull-up input mode according to the confirmation signal, and determining a data stream sending mechanism according to the confirmation signal under the pull-up input model; sending the data stream to a receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream; and obtaining a sending state of the data stream, and sending an ending signal to the receiving end according to the sending state. The method does not depend on absolute time signals, the problem that equipment cannot communicate due to the difference of communication peripheral clocks is solved, and the stability and reliability of communication are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data communication, and in particular to a multi-channel adaptive baud rate communication method, device, electronic device and storage medium. Background Art

[0002] Low power consumption and miniaturization have become key requirements in the design and manufacture of modern electronic devices. To meet these demands, many highly integrated, small electronic devices have chosen to abandon traditional internal chip clocks and instead use a high-speed internal RC (Resistor-Capacitor Oscillator) oscillator as the system's main clock, while using an external low-speed crystal oscillator (such as 32768 Hz or 38400 Hz) as the sleep and run clock. This design not only reduces material and management costs but also improves the market competitiveness of the device.

[0003] However, because different devices may use different clock sources, significant differences in clock accuracy can occur between devices. This clock discrepancy is particularly noticeable during standard serial port communications, where clock deviations between the sending and receiving devices can lead to communication failures. For example, when a 32.768 kHz clock is divided down to match mainstream communication rates (such as 300, 600, or 1200 bit rates), the frequency division error can affect communication stability and reliability. Summary of the Invention

[0004] The embodiments of the present invention provide a multi-channel adaptive baud rate communication method, device, electronic device and storage medium, which do not rely on absolute time signals, solve the problem of communication failure caused by differences in communication peripheral clocks, and improve the stability and reliability of communication.

[0005] In a first aspect, an embodiment of the present invention provides a multi-channel adaptive baud rate communication method, applied to a transmitting end, comprising:

[0006] When the transmitting end sends data to the receiving end, adjusting the current mode of the transmitting end to the open-drain output mode, and sending a wake-up signal to the receiving end in the open-drain output mode;

[0007] If a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjusting the open-drain output mode to the pull-up input mode according to the confirmation signal, and determining a data stream sending mechanism according to the confirmation signal under the pull-up input mode;

[0008] Sending the data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream;

[0009] Acquire the sending status of the data stream, and send an end signal to the receiving end according to the sending status.

[0010] In a second aspect, an embodiment of the present invention provides a multi-channel adaptive baud rate communication method, applied to a receiving end, the method comprising:

[0011] When receiving a wake-up signal sent by the transmitting end, adjusting the current mode of the receiving end to an open-drain output mode based on the wake-up signal;

[0012] generating a confirmation signal based on the pre-determined wake-up signal in the open-drain output mode;

[0013] Sending the confirmation signal to the sending end, so that the sending end determines a data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism;

[0014] Receive and process the data stream sent by the sending end.

[0015] In a third aspect, an embodiment of the present invention provides a multi-channel adaptive baud rate communication device, applied to a transmitting end, comprising:

[0016] a wake-up signal sending module, configured to adjust the current mode of the sending end to an open-drain output mode when the sending end sends data to the receiving end, and send a wake-up signal to the receiving end in the open-drain output mode;

[0017] a mechanism determination module, configured to, if a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjust the open-drain output mode to a pull-up input mode according to the confirmation signal, and determine a data stream sending mechanism under the pull-up input mode according to the confirmation signal;

[0018] a data stream sending module, configured to send a data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream;

[0019] The end signal sending module is used to obtain the sending status of the data stream and send an end signal to the receiving end according to the sending status.

[0020] In a fourth aspect, an embodiment of the present invention provides a multi-channel adaptive baud rate communication device, applied to a receiving end, comprising:

[0021] a wake-up signal receiving module, configured to adjust the current mode of the receiving end to an open-drain output mode based on the wake-up signal when the wake-up signal is received from the transmitting end;

[0022] A confirmation signal generating module, configured to generate a confirmation signal based on the wake-up signal in the open-drain output mode;

[0023] a confirmation signal sending module, configured to send the confirmation signal to the sending end, so that the sending end determines a data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism;

[0024] The data stream processing module is used to receive and process the data stream sent by the sending end.

[0025] In a fifth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a multi-channel adaptive baud rate communication method as described in any one of the embodiments of the present invention is implemented.

[0026] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a multi-channel adaptive baud rate communication method as described in any one of the embodiments of the present invention.

[0027] In an embodiment of the present invention, when a transmitting end sends data to a receiving end, the current mode of the transmitting end is adjusted to an open-drain output mode, and a wake-up signal is sent to the receiving end in the open-drain output mode; if a confirmation signal is received from the receiving end based on the wake-up signal within a preset time interval, the open-drain output mode is adjusted to a pull-up input mode according to the confirmation signal, and the data stream sending mechanism is determined according to the confirmation signal under the pull-up input model; the data stream is sent to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream; the sending status of the data stream is obtained, and an end signal is sent to the receiving end according to the sending status. In the method of the embodiment of the present invention, the transmitting end can send a wake-up signal to the receiving end in the open-drain output mode to quickly and conveniently wake up the receiving end, ensuring that even if there is a clock difference between different devices, effective wake-up and communication can be achieved through clear signal changes, thereby avoiding communication failures caused by clock differences. In addition, the receiving end in this solution can form a multi-channel connection with the transmitting end by connecting multiple buses, thereby solving the problem of difficult communication expansion. The method of the embodiment of the present invention can complete the communication between the receiving end and the transmitting end without relying on absolute frequency signals and time signals, solves the problem of devices being unable to communicate due to differences in communication peripheral clocks, and improves the stability and reliability of communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 A first flow chart of a multi-channel adaptive baud rate communication method provided by an embodiment of the present invention;

[0030] Figure 2 A flowchart of a method for a transmitting end to determine a data stream sending mechanism provided by an embodiment of the present invention;

[0031] Figure 3 A second flow chart of a multi-channel adaptive baud rate communication method provided by an embodiment of the present invention;

[0032] Figure 4 A first structural diagram of a multi-channel adaptive baud rate communication device provided by an embodiment of the present invention;

[0033] Figure 5 A second structural diagram of a multi-channel adaptive baud rate communication device provided by an embodiment of the present invention;

[0034] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0036] Figure 1 This is the first flow chart of a multi-channel adaptive baud rate communication method provided by an embodiment of the present invention. The method of the embodiment of the present invention does not rely on an absolute time signal, solves the problem of the device being unable to communicate due to differences in the clocks of communication peripherals, and improves the stability and reliability of communication. The method can be executed by a multi-channel adaptive baud rate communication device provided by an embodiment of the present invention, and the device can be implemented in software and / or hardware. The following embodiments will be described using the device integrated in an electronic device as an example. The electronic device can be a low-power device or a control unit in a low-power device. Figure 1 , the method may specifically include the following steps:

[0037] Step 101: When a transmitting end sends data to a receiving end, the transmitting end adjusts its current mode to an open-drain output mode, and sends a wake-up signal to the receiving end in the open-drain output mode.

[0038] The transmitter and receiver can be different low-power devices. For example, the transmitter can be a wireless microphone system, and the receiver can be an audio receiver (serving as a receiving end). The transmitter and receiver can also be different control units within a low-power device. For example, the transmitter can be the control unit in the microphone system responsible for collecting sound signals and converting them into digital signals, while the receiver can be the control unit in the microphone system responsible for receiving data sent from other devices on the bus and processing or analyzing it. A wake-up signal is a signal sent by the transmitter to the receiver to wake up the receiver when it is in idle mode.

[0039] In an optional embodiment, when there is no communication between the transmitter and the receiver, that is, when the transmitter does not send a signal to the receiver or waits to receive a signal, the transmitter is in a pull-up input state. The bus port of the transmitter in the pull-up input state is in a high-impedance state, and relies on the pull-up resistor to pull the bus signal up to a logic "1" level. This design ensures that the bus will not be in a floating state when there is no data transmission, thereby avoiding possible noise interference or false triggering. When the transmitter needs to communicate with the receiver, the transmitter can switch its current mode (pull-up input state) to an open-drain output mode. When in the open-drain output mode, the transmitter can generate a falling edge by pulling down the bus signal for a certain period of time (generally 2 milliseconds), use the falling edge as a wake-up signal, and send the wake-up signal to the receiver to wake up the receiver.

[0040] Step 102: If a confirmation signal is received from the receiving end based on the wake-up signal within a preset time interval, the open-drain output mode is adjusted to the pull-up input mode according to the confirmation signal, and the data stream sending mechanism is determined according to the confirmation signal under the pull-up input model.

[0041] The acknowledgment signal is a signal generated by the receiving end in response to the wake-up signal after receiving it. The preset time interval is predetermined based on the receiving end's device information and other factors. Under normal circumstances, it is the length of time it takes for the receiving end to send the acknowledgment signal to the sending end. In this solution, the preset time interval can be 1 millisecond. The data stream transmission mechanism includes a series of rules and steps that instruct the sending end on how to organize, manage, and transmit data streams during communication. In this solution, the data stream transmission mechanism can be evaluated using signal latency, which includes short and long intervals. The short interval is the short time interval maintained between each byte of a data stream transmitted by the sending end. The short interval is typically short enough to ensure that the receiving end device can promptly process and respond to each byte of data. The long interval is the longer time interval between the completion of a data stream transmitted by the sending end and the start of the next data stream. The long interval is typically long enough to ensure that the receiving end device has sufficient time to process and store the received data.

[0042] In an optional embodiment, the receiving end receives a wake-up signal and is awakened by the wake-up signal. After being awakened, the receiving end generates a confirmation signal based on the wake-up signal within a preset time interval based on the data reception capability of its own device, and sends the confirmation signal to the transmitting end. If the transmitting end receives the confirmation signal within the preset time interval, it can obtain the communication load status information at the current moment and estimate the signal delay time based on the communication load status information and the confirmation signal; perform signal analysis on the confirmation signal to determine the number of information pulses in the confirmation signal; determine the data reception throughput level corresponding to the receiving end based on the number of information pulses, and determine the receiving capability information based on the throughput level. The data stream transmission mechanism is determined based on the receiving capability information and the signal delay time. If the transmitting end does not receive the confirmation signal within the preset time interval, it enters the next round of transmission or idle mode.

[0043] Step 103: Send the data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream.

[0044] The data stream includes byte information and parity information, and the byte information consists of high-level signals and low-level signals. The data stream transmission mechanism includes information such as signal delay time and the data stream transmission mode. In this solution, the data stream transmission mode can be big-endian. When the transmitter uses big-endian mode to send the data stream, each byte can be sent to the receiver in order from high to low bits (high-level signals are sent first, followed by low-level signals).

[0045] In an optional embodiment, after determining the data stream transmission mechanism, the transmitting end divides the data stream to be transmitted into multiple bytes, each of which can contain 8 bits of information. For each byte, a 1-bit check information is generated based on whether the number of "1"s in each byte is odd or even. If the number of "1"s is even, the check information is "0"; if it is odd, the check information is "1". After obtaining each byte information and check information, each byte and its corresponding check information are combined into a 9-bit data packet (8 bits of data + 1 bit of check), thereby obtaining a data stream. The receiving end can receive each byte information and check information in sequence, check the received byte information based on the check information, and determine whether the received data stream is correct based on the check result. If the received data stream is correct, the subsequent data stream will continue to be received; if the received data stream is incorrect, the transmitting end is requested to resend the data stream.

[0046] Specifically, during signal transmission, the high-level time and low-level time within a cycle (the time a complete signal waveform experiences) jointly determine the state of the signal. If the high-level time is greater than the low-level time within a cycle, the current cycle is quantized as bit: 1. That is, within this cycle, the high-level state of the signal occupies a dominant position. On the contrary, if the high-level time is less than the low-level time, the current cycle is quantized as bit: 0. That is, within this cycle, the low-level state of the signal occupies a dominant position. For example, assuming that the data stream includes a byte data "10101100", the high-level time is 100 microseconds and the low-level time is 50 microseconds. According to the big-endian mode and data stream transmission mechanism, the byte data is broken down into multiple cycles for transmission: 1st cycle: high level 100 microseconds, low level 50 microseconds -> bit: 1; 2nd cycle: high level 50 microseconds, low level 100 microseconds -> bit: 0; 3rd cycle: high level 100 microseconds, low level 50 microseconds -> bit: 1; 4th cycle: high level 50 microseconds, low level 100 microseconds -> bit: 0; ... 8th cycle: high level 50 microseconds, low level 100 microseconds -> bit: 0. In this way, the sender converts the byte data in the data stream into a series of signal cycles consisting of high and low levels and sends them to the receiver in a specific order.

[0047] Step 104: Acquire the sending status of the data stream, and send an end signal to the receiving end according to the sending status.

[0048] A long interval is a long time interval between the start of a new data stream and the completion of a data stream. This interval is typically long enough to ensure that the receiving device has sufficient time to process and store the received data. The end signal indicates the end of a signal transmission.

[0049] Specifically, during the data stream transmission process, the transmitter can monitor the data stream transmission status in real time based on the communication protocol with the receiver and the data stream transmission rate. When the data stream is completely transmitted, the data stream transmission status is determined to be successfully transmitted. After determining that the data stream has been successfully transmitted, the transmitter can send a falling edge (end signal) to the receiver. After sending the falling edge signal, the transmitter can switch the bus port mode to input pull-up mode and enter idle wait mode at a time interval that is a long time away from the current time. This ensures that the bus maintains a stable state when no data is being transmitted, avoiding bus conflicts or interference. If the transmitter needs to send data to the receiver later, the step of sending a wake-up signal to the receiver in open-drain output mode is repeated until all data is sent, thus completing all communication with the receiver.

[0050] The technical solution of this embodiment is that when the transmitter sends data to the receiver, the current mode of the transmitter is adjusted to the open-drain output mode, and a wake-up signal is sent to the receiver in the open-drain output mode; if a confirmation signal is received from the receiver based on the wake-up signal within a preset time interval, the open-drain output mode is adjusted to the pull-up input mode according to the confirmation signal, and the data stream sending mechanism is determined according to the confirmation signal under the pull-up input model; the data stream is sent to the receiver according to the data stream sending mechanism so that the receiver receives and processes the data stream; the sending status of the data stream is obtained, and an end signal is sent to the receiver according to the sending status. In the technical solution of this embodiment, the transmitter can send a wake-up signal to the receiver in the open-drain output mode to quickly and conveniently wake up the receiver, ensuring that even if there are clock differences between different devices, effective wake-up and communication can be achieved through clear signal changes, thereby avoiding communication failures caused by clock differences. In addition, the receiver in this solution can form a multi-channel connection with the transmitter by connecting multiple buses, thereby solving the problem of difficult communication expansion. The technical solution of this embodiment can complete the communication between the receiving end and the transmitting end without relying on absolute frequency signals and time signals, solves the problem of devices being unable to communicate due to differences in communication peripheral clocks, and improves the stability and reliability of communication.

[0051] Figure 2 The embodiment of the present invention provides a flow chart of a method for a transmitting end to determine a data stream sending mechanism. This embodiment is a refinement of the above embodiment. The specific method can be as follows: Figure 2 As shown, the method may include the following steps:

[0052] Step 201: Acquire the current communication load status information, and estimate the signal delay time based on the current communication load status information and the confirmation signal.

[0053] Communication load information includes parameters such as network latency and bandwidth utilization. This information allows the sender to understand the current network status. Signal latency can be divided into short and long intervals. Short intervals are the short time intervals between each byte of a data stream sent by the sender. Short intervals are typically short enough to ensure that the receiving device can promptly process and respond to each byte. Long intervals are the longer time intervals between the start of the next data stream after the sender completes the transmission of an entire data stream. Long intervals are typically long enough to ensure that the receiving device has sufficient time to process and store the received data.

[0054] Specifically, after obtaining the current communication load status information, the transmitter can estimate the signal latency by combining the communication load status information with the number and time interval of the falling edges of the confirmation signal. For example, when estimating the signal latency, if the network bandwidth is high and the latency is low, the signal transmission time is determined to be relatively short (the signal latency is short); conversely, if the network bandwidth is low or the latency is high, the signal transmission time is determined to be relatively long. If the time interval between the falling edges of the confirmation signal is short, the receiver can process the received data and generate the confirmation signal more quickly (the signal latency is short); conversely, if the time interval between the falling edges of the confirmation signal is long, the receiver may need more time to process the data and generate the confirmation signal.

[0055] Step 202: Perform signal analysis on the confirmation signal to obtain the receiving capability information of the receiving end.

[0056] The confirmation signal is a signal sent by the receiving end to the transmitting end based on the data reception capability of the receiving end. Signal analysis of the confirmation signal can be used to estimate the receiving capability of the receiving end. In this solution, optionally, performing signal analysis on the confirmation signal to obtain the receiving capability information of the receiving end includes: performing signal analysis on the confirmation signal to determine the number of information pulses in the confirmation signal; determining the data reception throughput level corresponding to the receiving end based on the number of information pulses; and determining the receiving capability information based on the throughput level.

[0057] Specifically, the confirmation signal includes multiple information pulses, and the number of falling edges of the confirmation signal can be determined based on the number of information pulses. Different numbers of falling edges represent different data reception throughput levels corresponding to different receiving ends. For example, the throughput level is set to include three levels, namely: 10 microseconds < level 1 <= 100 microseconds; 100 microseconds < level 2 <= 500 microseconds; 500 microseconds < level 3 <= 1000 microseconds. By setting the range of throughput levels, the sending end can more accurately understand the processing capabilities of the receiving end in different situations. For example, when the throughput level of the receiving end is in the range of 10us < level 1 <= 100us, it indicates that its data reception capability is relatively low; and when the throughput level is in the range of 500us < level 3 <= 1000us, it indicates that its data reception capability is relatively high.

[0058] After sending the wake-up signal, the transmitter may need to wait for 1 millisecond (preset time interval) to receive the confirmation signal from the receiver. After receiving the confirmation signal, the transmitter identifies and analyzes the signal characteristics of the confirmation signal to obtain information such as the amplitude, duration, and change rate of the confirmation signal, and determines the number of information pulses in the confirmation signal based on this information. Each information pulse represents a successful data transmission and confirmation. The number of falling edges in the confirmation signal is determined based on the number of information pulses, and the throughput level corresponding to the received confirmation signal is determined based on the number of falling edges and the pre-set throughput level. For example, one falling edge represents a throughput level of level 1, indicating that the receiving end has a low receiving capability; two falling edges represent a throughput level of level 2, indicating that the receiving end has a medium receiving capability; and three falling edges represent a throughput level of level 3, indicating that the receiving end has a high receiving capability.

[0059] Through the above steps, the sender can more intuitively understand the receiver's processing capabilities based on the confirmation signal, laying the foundation for the subsequent accurate formulation of the data stream transmission mechanism. In addition, the receiver sends a multi-level (multiple falling edge) confirmation signal based on its own receiving capabilities. The sender can use the confirmation signal to evaluate the receiver's receiving capabilities. This allows the sender and receiver to adapt to the wake-up mechanisms of different devices, reducing the communication failure rate caused by mismatched wake-up mechanisms.

[0060] Step 203: Determine a data stream sending mechanism based on the receiving capability information and the signal delay time.

[0061] Specifically, the data stream transmission mechanism specifies the data stream transmission rate. After estimating the receiving end's reception capability and signal latency, the transmitting end can establish the data stream transmission mechanism based on the receiving end's reception capability information. If the receiving end's reception capability is strong, the data stream transmission rate can be increased; otherwise, the transmission rate needs to be reduced to avoid data loss or errors. The transmitting end can also adjust the data stream transmission mechanism based on signal latency. For example, if network latency is high, the transmitting end can reduce the packet size or increase the transmission interval.

[0062] The technical solution of this embodiment obtains the communication load status information at the current moment, and estimates the signal delay time based on the communication load status information at the current moment and the confirmation signal; performs signal analysis on the confirmation signal to obtain the receiving capability information of the receiving end; and determines the data stream sending mechanism based on the receiving capability information and the signal delay time. The technical solution of this embodiment can accurately obtain the receiving capability information of the receiving end by analyzing the confirmation signal, so that the sending end can more reasonably allocate and schedule resources, ensure that the data stream is transmitted at a speed that is most suitable for the processing capability of the receiving end, and avoid communication failures caused by overload or waste of resources. According to the changes in the communication load, the setting of the signal delay time is dynamically adjusted to improve the stability and reliability of data transmission, providing strong support for efficient communication between low-power devices.

[0063] Figure 3 The second flow chart of a multi-channel adaptive baud rate communication method provided by an embodiment of the present invention, the specific method can be as follows Figure 3 As shown, the method may include the following steps:

[0064] Step 301: When a wake-up signal sent by a transmitting end is received, the current mode of the receiving end is adjusted to an open-drain output mode based on the wake-up signal.

[0065] Among them, the wake-up signal is a signal sent by the transmitting end to the receiving end, which is used to wake up the receiving end in idle mode. Specifically, when there is no communication between the transmitting end and the receiving end, that is, after the receiving end receives the end signal sent by the transmitting end and before receiving the wake-up signal, the receiving end is in an idle state. When the receiving end receives the wake-up signal sent by the transmitting end, the idle state can be adjusted to an open-drain output mode (that is, awakened by the wake-up signal) according to the wake-up signal. In an embodiment of the present scheme, optionally, the current mode of the receiving end is adjusted to an open-drain output mode based on the wake-up signal, including: calculating the duration of the wake-up signal; when the duration of the wake-up signal is greater than the first preset duration and less than the second preset duration, the current mode is adjusted to the open-drain output mode.

[0066] Among them, the first preset duration and the second preset duration are durations predetermined based on the domain big data and the device information of the receiving end. In this solution, the first preset duration can be 0, and the second preset duration can be 2 milliseconds. After receiving the wake-up signal, the receiving end calculates the duration of the wake-up signal based on the falling edge and rising edge signals in the received wake-up signal. If the duration of the wake-up signal is greater than the first preset duration and less than the second preset duration, the receiving end determines that the wake-up signal is a valid signal, then determines that the receiving end can be awakened by the wake-up signal, and further adjusts the current mode to the open-drain output mode.

[0067] If the duration of the wake-up signal is greater than or equal to the second preset duration, the receiving end determines that the wake-up signal may be abnormal. The receiving end can then execute a pre-defined error handling mechanism, such as waiting for the wake-up signal to be received again, recording an error log, or triggering an alarm, to ensure stable operation of the receiving and transmitting ends and reliable data transmission.

[0068] By accurately calculating the duration of the wake-up signal, properly adjusting the bus port mode, and implementing an effective error handling mechanism, the efficiency and reliability of data transmission can be guaranteed.

[0069] Step 302: A wake-up signal generates a confirmation signal in the open-drain output mode.

[0070] Specifically, the receiving end can generate a confirmation signal based on the wake-up signal in the open-drain output mode. The preset time interval is a time interval predetermined based on the device information of the receiving end. The preset time interval in this solution can be 1 millisecond. The confirmation signal generated by the receiving end includes a certain number of falling edges. Different numbers of falling edges can represent different throughput levels, and different throughput levels represent different data receiving capabilities of the receiving end. For example, one falling edge represents a throughput level of level 1, indicating that the receiving capability of the receiving end is low; two falling edges represent a throughput level of level 2, indicating that the receiving capability of the receiving end is medium; and three falling edges represent a throughput level of level 3, indicating that the receiving capability of the receiving end is high. In an optional embodiment, after receiving the wake-up signal, the receiving end generates a confirmation signal within a preset time interval based on its own data receiving capability.

[0071] Step 303: Send a confirmation signal to the sending end, so that the sending end determines the data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism.

[0072] Specifically, after confirming the confirmation signal, the receiving end sends the confirmation signal to the sending end. After receiving the confirmation signal, the sending end can formulate a data flow transmission mechanism suitable for receiving the data flow at the receiving end according to the confirmation signal, and send the data flow to the receiving end based on the data flow transmission mechanism.

[0073] Step 304: Receive and process the data stream sent by the sender.

[0074] The data stream includes byte information and check information, and the byte is composed of a high-level signal and a low-level signal. In this solution, the receiving end optionally receives and processes the data stream sent by the sending end, including: combining all received high-level signals and low-level signals according to the order in which they are received to obtain byte information of the data stream; checking the byte information based on the check information to obtain a check result; and processing the byte information sent by the sending end according to the check result.

[0075] Specifically, the transmitting end can use big-endian mode to send a data stream to the receiving end. That is, the transmitting end sends each byte to the receiving end in order from high to low (high-level signals are sent first, followed by low-level signals). The receiving end can sequentially receive the high-level signal and the low-level signal and, based on the order of the received high-level and low-level signals, combine the high-level and low-level signals to obtain the corresponding byte information. After obtaining the byte information of the data stream, the byte information is verified using parity check and other methods based on the verification information corresponding to the byte information to obtain a verification result. If the verification result is verification success, the receiving end can determine that the byte information is valid and can perform subsequent processing on it. If the verification result is verification failure, the receiving end can determine that the byte information is invalid and can discard the byte information or request the transmitting end to resend the data stream.

[0076] By checking the data stream, errors that may occur during the transmission process can be discovered and corrected in a timely manner, thereby improving the reliability of data transmission.

[0077] In the technical solution of this embodiment, when a wake-up signal is received from the transmitting end, the current mode of the receiving end is adjusted to the open-drain output mode based on the wake-up signal; a confirmation signal is generated based on the wake-up signal in the open-drain output mode; a confirmation signal is sent to the transmitting end so that the transmitting end determines the data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism; and the data stream sent by the transmitting end is received and processed. In the solution of this embodiment, the receiving end can quickly adjust to the open-drain output mode according to the wake-up signal, ensuring the smooth progress of the communication process and reducing communication delays caused by waiting or untimely mode switching. Regardless of how different the wake-up mechanisms of the receiving end and the transmitting end are, effective communication can be achieved by adjusting to the open-drain output mode and generating a confirmation signal, thereby improving the accuracy and reliability of data transmission.

[0078] An embodiment of the present invention also provides a computer program product.

[0079] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer program products, which can include one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0080] Figure 4 This is a first structural diagram of a multi-channel adaptive baud rate communication device provided by an embodiment of the present invention, which is suitable for executing the multi-channel adaptive baud rate communication method provided by an embodiment of the present invention. Figure 4 As shown, the device may specifically include:

[0081] A wake-up signal sending module 401 is configured to adjust the current mode of the sending end to an open-drain output mode when the sending end sends data to the receiving end, and send a wake-up signal to the receiving end in the open-drain output mode;

[0082] a mechanism determination module 402, configured to, if a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjust the open-drain output mode to the pull-up input mode according to the confirmation signal, and determine a data stream sending mechanism under the pull-up input mode according to the confirmation signal;

[0083] A data stream sending module 403 is configured to send a data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream;

[0084] The end signal sending module 404 is configured to obtain the sending status of the data stream and send an end signal to the receiving end according to the sending status.

[0085] Optionally, the mechanism determination module 402 is specifically configured to: obtain communication load status information at a current moment, and estimate a signal delay time based on the communication load status information at the current moment and the confirmation signal; the signal delay time includes a short time interval and a long time interval;

[0086] performing signal analysis on the confirmation signal to obtain receiving capability information of the receiving end;

[0087] The data stream sending mechanism is determined based on the receiving capability information and the signal delay time.

[0088] Optionally, the mechanism determination module 402 is further configured to: perform signal analysis on the confirmation signal to determine the number of information pulses of the confirmation signal;

[0089] The data reception throughput level corresponding to the receiving end is determined according to the number of information pulses, and the receiving capability information is determined based on the throughput level.

[0090] The multi-channel adaptive baud rate communication device provided in the embodiment of the present invention can execute the multi-channel adaptive baud rate communication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For any content not fully described in this embodiment, reference can be made to the description of any method embodiment of the present invention.

[0091] Figure 5 This is a second structural diagram of a multi-channel adaptive baud rate communication device provided by an embodiment of the present invention, which is suitable for executing the multi-channel adaptive baud rate communication method provided by an embodiment of the present invention. Figure 5 As shown, the device may specifically include:

[0092] The wake-up signal receiving module 501 is configured to adjust the current mode of the receiving end to the open-drain output mode based on the wake-up signal when the wake-up signal is received from the transmitting end;

[0093] A confirmation signal generating module 502 is configured to generate a confirmation signal based on the wake-up signal in the open-drain output mode;

[0094] a confirmation signal sending module 503, configured to send the confirmation signal to the sending end, so that the sending end determines a data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism;

[0095] The data stream processing module 504 is configured to receive and process the data stream sent by the sending end.

[0096] Optionally, the wake-up signal receiving module 501 is specifically configured to calculate the duration of the wake-up signal;

[0097] When the duration of the wake-up signal is greater than the first preset duration and less than the second preset duration, the current mode is adjusted to the open-drain output mode.

[0098] Optionally, the data stream processing module 504 is specifically configured to combine all received high-level signals and low-level signals according to a receiving order of the high-level signals and the low-level signals to obtain byte information of the data stream;

[0099] Verify the byte information based on the verification information to obtain a verification result;

[0100] The byte information sent by the sending end is processed according to the verification result.

[0101] The multi-channel adaptive baud rate communication device provided in the embodiment of the present invention can execute the multi-channel adaptive baud rate communication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For any content not fully described in this embodiment, reference can be made to the description of any method embodiment of the present invention.

[0102] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, referring to Figure 6 , Figure 6 The electronic device 12 shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Figure 6 As shown, electronic device 12 is implemented as a general-purpose computing device. Components of electronic device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing unit 16).

[0103] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0104] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0105] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 6 Not shown, often called a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present application.

[0106] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.

[0107] The electronic device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0108] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, such as implementing a multi-channel adaptive baud rate communication method provided by an embodiment of the present invention: when the transmitting end sends data to the receiving end, the current mode of the transmitting end is adjusted to the open-drain output mode, and a wake-up signal is sent to the receiving end in the open-drain output mode; if a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, the open-drain output mode is adjusted to the pull-up input mode according to the confirmation signal, and a data stream sending mechanism is determined according to the confirmation signal under the pull-up input model; a data stream is sent to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream; the sending status of the data stream is obtained, and an end signal is sent to the receiving end according to the sending status.

[0109] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the program implements a multi-channel adaptive baud rate communication method as provided in all embodiments of the present invention: when a transmitting end sends data to a receiving end, adjusting the current mode of the transmitting end to an open-drain output mode and sending a wake-up signal to the receiving end in the open-drain output mode; if a confirmation signal is received from the receiving end based on the wake-up signal within a preset time interval, adjusting the open-drain output mode to a pull-up input mode based on the confirmation signal, and determining a data stream transmission mechanism under the pull-up input model based on the confirmation signal; transmitting a data stream to the receiving end according to the data stream transmission mechanism so that the receiving end receives and processes the data stream; obtaining the transmission status of the data stream, and sending an end signal to the receiving end based on the transmission status. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic device, apparatus, or device that is electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0110] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0111] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0112] Computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0113] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A multi-channel adaptive baud rate communication method, characterized in that: Applied to a sending end, the method includes: When the transmitting end sends data to the receiving end, adjusting the current mode of the transmitting end to the open-drain output mode, and sending a wake-up signal to the receiving end in the open-drain output mode; If a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjusting the open-drain output mode to the pull-up input mode according to the confirmation signal, and determining a data stream sending mechanism according to the confirmation signal under the pull-up input mode; Sending the data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream; Acquire the sending status of the data stream, and send an end signal to the receiving end according to the sending status.

2. The method according to claim 1, characterized in that Determining a data stream sending mechanism according to the confirmation signal under the pull-up input model includes: Acquire communication load status information at a current moment, and estimate a signal delay time based on the communication load status information at the current moment and the confirmation signal; the signal delay time includes a short time interval and a long time interval; Analyzing the confirmation signal to obtain receiving capability information of the receiving end; The data stream sending mechanism is determined based on the receiving capability information and the signal delay time.

3. The method according to claim 2, characterized in that Performing signal analysis on the confirmation signal to obtain receiving capability information of the receiving end includes: performing signal analysis on the confirmation signal to determine the number of information pulses of the confirmation signal; The data reception throughput level corresponding to the receiving end is determined according to the number of information pulses, and the receiving capability information is determined based on the throughput level.

4. A multi-channel adaptive baud rate communication method, characterized in that: Applied to a receiving end, the method includes: When receiving a wake-up signal sent by the transmitting end, adjusting the current mode of the receiving end to an open-drain output mode based on the wake-up signal; generating a confirmation signal based on the wake-up signal in the open-drain output mode; Sending the confirmation signal to the sending end, so that the sending end determines a data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism; Receive and process the data stream sent by the sending end.

5. The method according to claim 4, characterized in that Adjusting a current mode of the receiving end to an open-drain output mode based on the wake-up signal includes: Calculating the duration of the wake-up signal; When the duration of the wake-up signal is greater than the first preset duration and less than the second preset duration, the current mode is adjusted to the open-drain output mode.

6. The method according to claim 4, characterized in that The data stream includes a high-level signal, a low-level signal, and verification information; receiving and processing the data stream sent by the transmitting end, including: Combining all received high-level signals and low-level signals according to a receiving order of the high-level signals and the low-level signals to obtain byte information of the data stream; Verify the byte information based on the verification information to obtain a verification result; The byte information sent by the sending end is processed according to the verification result.

7. A multi-channel adaptive baud rate communication device, characterized in that: Applied to the sending end, including: a wake-up signal sending module, configured to adjust the current mode of the sending end to an open-drain output mode when the sending end sends data to the receiving end, and send a wake-up signal to the receiving end in the open-drain output mode; a mechanism determination module, configured to, if a confirmation signal sent by the receiving end based on the wake-up signal is received within a preset time interval, adjust the open-drain output mode to a pull-up input mode according to the confirmation signal, and determine a data stream sending mechanism under the pull-up input mode according to the confirmation signal; a data stream sending module, configured to send a data stream to the receiving end according to the data stream sending mechanism, so that the receiving end receives and processes the data stream; The end signal sending module is used to obtain the sending status of the data stream and send an end signal to the receiving end according to the sending status.

8. A multi-channel adaptive baud rate communication device, characterized in that: Applied to the receiving end, including: a wake-up signal receiving module, configured to adjust the current mode of the receiving end to an open-drain output mode based on the wake-up signal when the wake-up signal is received from the transmitting end; A confirmation signal generating module, configured to generate a confirmation signal based on the wake-up signal in the open-drain output mode; a confirmation signal sending module, configured to send the confirmation signal to the sending end, so that the sending end determines a data stream sending mechanism based on the confirmation signal, and sends the data stream to the receiving end based on the data stream sending mechanism; The data stream processing module is used to receive and process the data stream sent by the sending end.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the multi-channel adaptive baud rate communication method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the program implements a multi-channel adaptive baud rate communication method as claimed in any one of claims 1 to 6.