Data transmission control methods and electronic equipment
By sending and receiving voltage information on the first signal line of the I2C bus to determine the operating mode of the device, the latency problem of the I2C bus during mode switching is solved, and fast adaptation and efficient data transmission are achieved.
Patent Information
- Application Number
- CN202511738937.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2045-11-25
AI Technical Summary
The I2C bus suffers from high response latency and long communication time when switching device operating modes, making it difficult to achieve fast mode triggering and status feedback, especially under conditions with high real-time requirements.
The device's operating mode is determined by sending and receiving voltage information on the first signal line, avoiding the need to switch modes via the second signal line. Data is transmitted directly on the first signal line, adapting to different operating modes.
It reduces the latency of work mode synchronization, improves data transmission efficiency, and can quickly adapt to different work modes.
Smart Images

Figure CN121210362B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a control method and electronic device for data transmission. Background Technology
[0002] Inter-Integrated Circuit (I2C) is a commonly used serial communication protocol that is widely used in electronic devices to connect microcontrollers and peripheral devices. It has advantages such as simple interface and few pins.
[0003] However, when two devices are transmitting data, changes in device status may cause changes in the device's operating mode. To match different operating modes, data transmission needs to be paused and a mode switching command needs to be sent via I2C to unify the operating mode. This results in high response latency and long communication time in data transmission. Summary of the Invention
[0004] This application provides a data transmission control method and electronic device to at least solve the problem of high response latency caused by switching working modes in related technologies.
[0005] This application provides a method for controlling data transmission, including:
[0006] Based on the first signal line, a first initial voltage information is transmitted. The first initial voltage information is used to instruct the second device that transmitted the first initial voltage information to transmit voltage information on the first signal line to other devices to indicate the operating mode of the second device.
[0007] The first response voltage information is received based on the first signal line; wherein, the first response voltage information is used to instruct the first device to send voltage information indicating the working mode of the first device to the second device on the first signal line, and the first response voltage value corresponding to the first response voltage information is within a preset first voltage value range of the first device, and different voltage value ranges correspond to different devices connected to the first signal line.
[0008] First voltage information from the first device is acquired based on the first signal line, and a first target operating mode of the first device is determined based on the first target voltage value range in which the first voltage value corresponding to the first voltage information is located; wherein, different voltage value ranges correspond to different operating modes;
[0009] If the first target operating mode is the normal operating mode, then standard data transmission is performed with the first device based on the second signal line; wherein, the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line;
[0010] If the first target operating mode is a fault operating mode, then target fault information from the first device is received based on the first signal line or the second signal line;
[0011] If the first target working mode is a preset working mode, then data is transmitted with the first device on the second signal line based on the mode parameters corresponding to the preset working mode. Different preset modes have corresponding mode parameters.
[0012] This application provides a method for controlling data transmission, including:
[0013] The first initial information sending module is used to receive first initial voltage information based on a first signal line. The first initial voltage information is used to instruct the second device that sends the first initial voltage information to send voltage information indicating the operating mode of the second device to the device connected to the first signal line.
[0014] The response module is used to send first response voltage information based on the first signal line. The first response voltage information is used to instruct the first device to send voltage information on the first signal line to the second device to indicate the working mode of the first device. The first response voltage value corresponding to the first response voltage information is within a preset first voltage value range of the first device. Different voltage value ranges correspond to different devices connected to the first signal line.
[0015] The first target operating mode of the first device is determined based on the first state parameters obtained from the detection.
[0016] The first voltage information corresponding to the first voltage value is determined based on the first target voltage value range corresponding to the first target operating mode; wherein, different voltage value ranges correspond to different operating modes;
[0017] The first voltage information is sent to the second device based on the first signal line, and data is transmitted to the first device through the second signal line based on the first target operating mode; wherein, the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line.
[0018] This application also provides a data transmission control device, including:
[0019] Based on the first signal line, a first initial voltage information is transmitted. The first initial voltage information is used to instruct the second device that transmitted the first initial voltage information to transmit voltage information on the first signal line to other devices to indicate the operating mode of the second device.
[0020] The first response voltage information is received based on the first signal line; wherein, the first response voltage information is used to instruct the first device to send voltage information on the first signal line to the second device to indicate the working mode of the first device, and the first response voltage value corresponding to the first response voltage information is within a preset first voltage value range of the first device, and different voltage value ranges correspond to different devices connected to the first signal line.
[0021] The signal transmission module is used to acquire first voltage information from the first device based on the first signal line, and to determine a first target operating mode of the first device based on the first target voltage value range in which the first voltage value corresponding to the first voltage information is located; wherein, different voltage value ranges correspond to different operating modes.
[0022] The first transmission module is configured to perform standard data transmission with the first device based on a second signal line if the first target operating mode is a normal operating mode; wherein the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line;
[0023] The second transmission module is used to receive target fault information from the first device based on the first signal line or the second signal line if the first target working mode is a fault working mode.
[0024] The third transmission module is used to transmit data with the first device on the second signal line based on the mode parameters corresponding to the first target working mode if the first target working mode is a preset working mode. Different preset modes have corresponding mode parameters.
[0025] This application also provides a data transmission control device, including:
[0026] An initial voltage transmission module is used to receive first initial voltage information based on a first signal line. The first initial voltage information is used to instruct a second device that transmits the first initial voltage information to send voltage information to a device connected to the first signal line to indicate the operating mode of the second device.
[0027] The response sending module is used to send first response voltage information based on the first signal line. The first response voltage information is used to instruct the first device to send voltage information on the first signal line to the second device to indicate the working mode of the first device. The first response voltage value corresponding to the first response voltage information is within a preset first voltage value range of the first device. Different voltage value ranges correspond to different devices connected to the first signal line.
[0028] The mode detection module is used to determine the first target operating mode of the first device based on the first state parameters obtained by detection;
[0029] The information generation module is used to determine the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target working mode; wherein, different voltage value ranges correspond to different working modes;
[0030] The information transmission module is used to transmit first voltage information to the first signal line of the second device, and to transmit data with the first device through the second signal line based on the first target operating mode; wherein, the second signal line is an internal integrated circuit bus I2C, and the first signal line is different from the second signal line.
[0031] This application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the control method for data transmission described above when executing the computer program.
[0032] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described data transmission control methods.
[0033] This application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described data transmission control methods.
[0034] Through this application, when two devices are transmitting data, the two devices can interactively send the direction of voltage information indicating the operating mode of the devices through a first signal line. After determining that the first device is sending voltage information to the other device through the first signal line, the first device can send the first voltage information through the first signal line. The other device can parse the first voltage information to obtain the corresponding first voltage value, thereby determining the first target operating mode of the first device through the first target voltage value range corresponding to the first voltage value, and transmitting data with the first device through a second signal line according to the first target operating mode. Standard data transmission is performed in the normal operating mode. In the fault operating mode, target fault information can also be determined through the first or second signal line. In the preset operating mode, data transmission can be performed according to the corresponding mode parameters. In this process, the operating mode of the first device is sent through the first signal line without occupying the second signal line used for data transmission, reducing the problems of high response delay and long communication time caused by operating mode synchronization, and can quickly adapt to different operating modes, thereby improving the efficiency of data transmission. Attached Figure Description
[0035] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of an implementation scenario provided by an embodiment of this application;
[0037] Figure 2 This is a schematic diagram of the structure of a device provided in an embodiment of this application;
[0038] Figure 3 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 1 ;
[0039] Figure 4 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 2 ;
[0040] Figure 5 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 3 ;
[0041] Figure 6 Schematic diagram of the structure of the data transmission control device provided in the embodiments of this application Figure 1 ;
[0042] Figure 7 Schematic diagram of the structure of the data transmission control device provided in the embodiments of this application Figure 2 ;
[0043] Figure 8 A schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0045] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0046] The I2C protocol relies on SCL (Serial Clock Line) and SDA (Serial Data Line) for data transmission and control. Many devices are connected to SCL and SDA, and different devices are equipped with different address bits. Data conflicts are avoided by identifying the address bits. It supports multiple masters. Any device that can send and receive can become a master. A master can control the transmission of signals and the clock frequency. There can only be one master at any given time.
[0047] In scenarios where flexible switching of device operating modes is required, devices often need to switch operating modes according to different operating conditions (such as normal operation, fault diagnosis, low-power standby, etc.). Device mode switching based on the I2C bus is mainly implemented through software: defining specific instruction fields in the SDA data frame, the master device sends a mode switching instruction, and the slave device parses and executes the mode change. However, this method requires data transmission bandwidth, and frequent mode switching will reduce the efficiency of normal data interaction. Moreover, there is a delay in the response of the mode switching instruction. This delay cannot meet the current needs in some operating conditions with high timeliness requirements, resulting in high response latency and long communication time. Furthermore, for some abnormal states with high real-time requirements (such as hardware failure, voltage change, etc.), it is difficult to achieve fast and intuitive mode triggering and status feedback, which limits the functional expansion and intelligent upgrade of the I2C bus-based system.
[0048] Based on this, this application proposes a data transmission control method that determines the operating mode of the device during data transmission by sending first voltage information through a first signal line. This eliminates the need for a second signal line used for data transmission to indicate mode switching, enabling two devices transmitting data to perform data transmission according to the obtained operating mode and reducing the response delay of mode switching.
[0049] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] refer to Figure 1 , Figure 1This is a schematic diagram of an implementation scenario provided by an embodiment of the present application. The implementation scenario may include a first signal line, a second signal line, and at least one device connected to both the first signal line and the second signal line.
[0051] like Figure 1 As shown, Figure 1 The diagram shows four devices: device 1, device 2, device 3, and device 4. In other embodiments, there may be other numbers of devices, such as five devices, seven devices, etc., which are not specifically limited here.
[0052] In some embodiments, the second signal line is an I2C bus, and the second signal line may include SCL and SDA.
[0053] In some embodiments, Figure 1 The four devices can send voltage information via the first signal line and transmit data via the second signal line.
[0054] In some embodiments, such as Figure 2 As shown, Figure 1 The four devices may include an analog-to-digital converter (ADC), a digital-to-analog converter (DAC), and a controller logic unit.
[0055] In some embodiments, the analog-to-digital converter is used to receive voltage information transmitted on the first signal line, perform analog-to-digital conversion to obtain the corresponding voltage value, and send the corresponding voltage value to the logic control unit, which controls the data transmitted on the second signal line.
[0056] In some embodiments, the logic control unit may also generate a voltage value and send the generated voltage value to the digital-to-analog converter. The digital-to-analog converter generates voltage information based on the voltage value and sends the voltage information on the first signal line.
[0057] In some embodiments, the analog-to-digital converter and digital-to-analog converter have a resolution of at least 8 bits to ensure accurate voltage range identification.
[0058] In some embodiments, the logic control unit may also perform filtering, voltage regulation, noise removal, and other processing to improve the processing accuracy of the analog-to-digital converter and the digital-to-analog converter.
[0059] In some embodiments, the logic control unit decides the output voltage value based on the internal state of the device.
[0060] In some embodiments, Figure 1 The equipment in this context can include microcontrollers, industrial control hosts, smart sensors, smart actuators, and other devices with data processing, data transmission, and data handling capabilities.
[0061] Understandably, the control device for data transmission can be set in Figure 1 In any of the devices, but as shown in this embodiment Figure 1 The implementation environment shown is merely exemplary. In other embodiments, the data transmission control method can also be applied to other implementation environments, and the data transmission control device can also be set in other structures in other implementation environments. No specific limitations are made here.
[0062] Figure 3 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 1 ,like Figure 3 As shown, embodiments of this application provide a data transmission control method, which can be implemented in... Figure 1 The method for receiving voltage information on the first signal line, such as the second device, is described in detail below:
[0063] S301: Send first initial voltage information based on the first signal line. The first initial voltage information is used to instruct the second device that sent the first initial voltage information to send voltage information on the first signal line to other devices to indicate the operating mode of the second device.
[0064] In some embodiments, data is transmitted between the first device and the second device via a second signal line.
[0065] In some embodiments, the first device and the second device interact via a first signal line.
[0066] In some implementations, the devices connected to the first signal line and the second signal line both have digital-to-analog converters and mode converters. That is, when the first device and the second device transmit data, the first device can send the first voltage information to the second device, or the second device can send the first voltage information to the first device.
[0067] Thus, the first device and the second device can first negotiate whether the first device sends voltage information (such as first voltage information) to the second device to indicate the operating mode of the first device, or whether the second device sends voltage information to the first device to indicate the operating mode of the second device.
[0068] In some embodiments, the second device sends first initial voltage information through a first signal line. Devices connected to the first signal line can receive the first initial voltage information and determine whether the first device is sending voltage information to other devices to indicate the operating mode based on the first initial voltage information.
[0069] In some embodiments, the first initial voltage information can be set by the user. For example, it can be the duration of the low voltage information for 2 seconds, or it can be the initial voltage information corresponding to a certain voltage value. No specific limitation is made here.
[0070] S302. Receive first response voltage information based on the first signal line. The first response voltage information is used to instruct the first device to send voltage information indicating the operating mode of the first device to the second device on the first signal line.
[0071] The first response voltage value corresponding to the first response voltage information is within the first voltage value range preset by the first device, and different voltage value ranges correspond to different devices connected to the first signal line.
[0072] In some embodiments, the device may not respond to the first initial voltage information. If the second device does not receive the response voltage information within a first preset time period, it can be determined that the other devices agree to the second device sending voltage information on the first signal line. The other devices can receive the voltage information sent by the second device on the first signal line to indicate the operating mode of the second device.
[0073] The first preset duration can be set according to empirical parameters, such as 2S (seconds), 3S, 4S, etc., and no specific limit is set here.
[0074] In some embodiments, after receiving the first initial voltage information, if the first device does not agree to the first device sending voltage information on the first signal line to indicate the operating mode of the second device, it may send first response voltage information on the first signal line.
[0075] The first response voltage information is used to instruct the first device to send voltage information indicating the operating mode of the first device to the second device on the first signal line. After receiving the first response voltage information, the second device can determine that the first device sent voltage information indicating the operating mode of the first device to the second device on the first signal line.
[0076] In some embodiments, the first response voltage information is different from the first initial voltage information, thereby enabling the first device to determine that the first device sends voltage information on the first signal line to the second device to indicate the operating mode of the first device.
[0077] In some embodiments, after receiving the first initial voltage information, other devices may also send corresponding response voltage information if they disagree. Different devices correspond to different voltage value ranges, thereby determining the voltage value through the voltage value range corresponding to the device and generating corresponding response voltage information through a digital-to-analog converter. Thus, the second device can determine the device that sends the voltage information to the second device to indicate the operating mode of the corresponding device through the voltage value range where the response information corresponds to the voltage value.
[0078] In some embodiments, if multiple devices disagree that the second device should send voltage information indicating the operating mode of the second device to other devices on the first signal line, since the response voltage information sent by different devices is different, different priorities can be assigned to the devices connected to the first signal line, and the response information sent by the device with higher priority shall prevail. After receiving the response information sent by the device with higher priority, the second device can receive the voltage information sent by the device with higher priority to indicate the operating mode of the corresponding device.
[0079] In some embodiments, the priority of the device connected to the first signal line is related to the magnitude of the voltage value within the voltage range of the corresponding device. The larger the voltage value within the voltage range, the higher the priority. For example, when there are 4 devices, the 4 devices share a 3.3V (volt) level. The voltage range of device 1 is pulled up to 0.825V, the voltage range of device 2 is pulled up to 1.65V, the voltage range of device 3 is pulled up to 2.475V, and the voltage range of device 4 is pulled up to 3.3V. In this case, since the magnitude of the voltage value within the voltage range is device 4 > device 3 > device 2 > device 1, the priority is also device 4 > device 3 > device 2 > device 1. Since when two devices send response voltage information, the response voltage information with the larger voltage value will cover the response voltage information with the smaller voltage value, different devices are processed according to priority.
[0080] Taking the priority order of device 4, device 3, device 2, and device 1 as an example, when the second device receives the response voltage information sent by device 4, device 4 and the second device perform data transmission. During the data transmission process, device 4 sends voltage information to the second device to indicate the operating mode of device 4. The process of device 4 sending voltage information to the second device to indicate the operating mode of device 4 during data transmission can be referred to as the process of the first device sending voltage information to the second device to indicate the operating mode of the first device during data transmission.
[0081] After device 4 transmits data with the second device, the second device can send a switching request through the second signal line to switch to transmitting data with other devices, or device 4 can send a switching request through the second signal line to switch to transmitting data with other devices, or other devices besides device 4 and the second device can send a switching request through the second signal line to switch to transmitting data with other devices and transmit voltage information on the first signal line.
[0082] In some implementations, the second device receives the first response voltage information and, after a second preset time, can perform actions such as... Figure 3The operations shown in steps S303 to S306.
[0083] In some embodiments, during data transmission between the first device and the second device, if the first device and the second device need to change the direction of transmitting voltage information on the first signal line, they can send a switching request through the second signal line. For example, the second device can send a switching request through the second signal line, requesting to switch to sending voltage information from the second device to the first device on the first signal line. After the first device agrees to the switching request, the first device can send voltage information to the second device on the first signal line. Alternatively, after the first device agrees to the switching request, either device connected to the first signal line can send initial voltage information and determine the direction of transmitting voltage information on the first signal line based on whether a response voltage information is received. This process can refer to the process of the second device sending the first initial voltage information and the first device sending the first response voltage information, which will not be elaborated here.
[0084] S303: Obtain first voltage information from the first device based on the first signal line, and determine the first target operating mode of the first device based on the first target voltage value range where the first voltage value corresponding to the first voltage information is located.
[0085] In some embodiments, after determining that the first device sends voltage information to the second device via a first signal to indicate the operating mode of the first device, the first device sends the first voltage information to the second device based on the first signal line.
[0086] Different voltage ranges correspond to different operating modes.
[0087] In some embodiments, the first device sends first voltage information to the second device via a first signal line, and the first device and the second device transmit data via a second signal line.
[0088] In some embodiments, the first device indicates the operating mode of the first device by sending first voltage information via a first limit line.
[0089] In some embodiments, when the second device receives the first voltage information, it can process the first voltage information through an analog-to-digital converter to obtain a first voltage value. Then, the control logic unit determines a first target operating mode based on the first target voltage value range in which the first voltage value is located.
[0090] After determining the first target working mode of the first device, the second device can transmit data with the first device according to the first target working mode in order to adapt to the first target working mode of the second device.
[0091] In some embodiments, the operating mode may include a normal operating mode, a fault operating mode, and a preset operating mode.
[0092] The preset working mode can be customized. For example, the preset working mode may include one or more of the following: inspection working mode, hiccup working mode, high performance working mode, calibration working mode, and sleep-wake transition working mode.
[0093] This preset operating mode can be configured for the device according to specific application scenarios. For example, in industrial control, the device may be in a short-term high-performance operating state before overload. In such cases, the preset operating mode of the device may include a high-performance operating mode.
[0094] In some embodiments, different operating modes correspond to different voltage ranges. The voltage range and corresponding operating mode can be defined by software configuration or hardware programming to meet the different operating mode requirements of the device.
[0095] In some embodiments, when the voltage value is greater than or equal to 3.0V (volts), the corresponding operating mode is the normal operating mode.
[0096] In some embodiments, when the voltage value is less than or equal to 0.4V, the corresponding operating mode is a fault operating mode.
[0097] In some embodiments, when the voltage value range is greater than or equal to 0.4V and greater than or equal to 1.0V, the corresponding working mode is the inspection working mode or the hiccup working mode.
[0098] In some embodiments, corresponding error ranges can be set for the voltage range of different operating modes. For example, for the normal operating mode, an error of ±0.1V is allowed. Taking the voltage range of the normal operating mode as greater than or equal to 3.0V as an example, a voltage value of 2.9V can also be considered as the normal operating mode. For the fault operating mode, an error of ±0.01V is allowed. Taking the voltage range of the fault operating mode as less than or equal to 0.4V as an example, a voltage value of 0.45V can also be considered as the fault operating mode.
[0099] It is understood that the voltage range corresponding to the above operating modes is exemplary. In other embodiments, different voltage ranges can be set to correspond to different operating modes, as long as the voltage ranges corresponding to different operating modes are different.
[0100] S304. If the first target's working mode is the normal working mode, then standard data transmission is performed with the first device based on the second signal line.
[0101] In some embodiments, the second signal line is an internal integrated circuit bus.
[0102] In some embodiments, the first signal line is different from the second signal line.
[0103] In some embodiments, the second signal line is an I2C bus, including SCL and SDA.
[0104] In some embodiments, if the first target working mode is the normal working mode, in this mode, the first device performs I2C data interaction with the second device according to the preset conventional process, and performs standard data transmission through the second signal line, such as voltage and current data acquisition, command issuance, remote control, etc. After the second device recognizes the voltage, it maintains the normal communication function and prioritizes the transmission of normal business data.
[0105] S305. If the first target operating mode is a fault operating mode, then target fault information from the first device is received based on the first signal line or the second signal line.
[0106] In some embodiments, if the first target operating mode is a fault operating mode, the second device determines that the first device is operating in a fault operating mode.
[0107] The second device immediately triggers the fault response process, such as interrupting the current low-priority task, actively initiating a fault diagnosis command for the second device, and prompting maintenance personnel to perform fault detection on the second device through the system alarm module (such as flashing indicator lights, buzzer alarms, etc.). At the same time, the first device can send the target fault information to the second device.
[0108] In some embodiments, the first device can send target fault information to the second device via the second signal line, or it can send target fault information to the second device via the first signal line. For example, if the second signal line fails, the target fault information can be sent to the second device via the first signal line.
[0109] S306. If the first target working mode is a preset mode, then data is transmitted with the first device on the second signal line based on the mode parameters corresponding to the preset mode. Different preset modes have corresponding mode parameters.
[0110] In some embodiments, for a preset working mode, a corresponding mode parameter is preset. The mode parameter is used to indicate the data transmission operation between the second device and the first device in the corresponding preset mode. For example, the mode parameter may include I2C communication parameters (such as data transmission rate, query cycle, etc.), processing functions (such as fault diagnosis function, low power data parsing function, etc.), and instructions to link other devices or modules (such as triggering system-level low power strategy, starting redundant device to take over work, etc.). The data query frequency and control strategy of the second device can be adjusted through the mode parameter to adapt to the working mode of the first device.
[0111] If the preset working modes include inspection working mode or hiccup working mode, the inspection working mode is suitable for sensors, and the hiccup working mode is suitable for power devices. The main purpose of the inspection working mode or hiccup working mode is to reduce power consumption, so it is an energy-saving mode.
[0112] In the inspection mode, the first device reduces its power consumption and performs status detection on key functional modules at a low frequency (such as the acquisition cycle in the inspection mode being one-fifth to one-tenth of the normal acquisition cycle). (For example, sensors only acquire core parameters, and actuators only detect position feedback). The simplified data is then uploaded to the second device via SDA.
[0113] In the hiccup working mode, the power devices in the first device intermittently shut down some unnecessary power paths, briefly "hiccuping" to stop working in order to reduce energy consumption, and then quickly resume. After the second device recognizes the hiccup working mode, it adjusts the data query frequency and control strategy to adapt to the intermittent working state of the first device.
[0114] This application proposes a data transmission control method. When two devices transmit data, they can first negotiate the direction of transmitting voltage information indicating the operating mode on a first signal line. After determining that the first device sends the voltage information indicating the operating mode through the first signal line, the first device can send the first voltage information through the first signal line. The other device can parse the first voltage information to obtain the corresponding first voltage value, thereby determining the first target operating mode of the first device through the first target voltage value range corresponding to the first voltage value. Data transmission is then performed with the first device through a second signal line according to the first target operating mode. Standard data transmission is performed in the normal operating mode. In the fault operating mode, target fault information can also be determined through the first or second signal line. In the preset operating mode, data transmission can be performed according to the corresponding mode parameters. In this process, the operating mode of the first device is sent through the first signal line without occupying the second signal line used for data transmission, reducing the delay of operating mode synchronization, quickly adapting to different operating modes, and improving the efficiency of data transmission.
[0115] In some embodiments, steps S301 and S302 are alternatives, meaning that instead of the second device sending the first initial voltage information, the first device may send the second initial voltage information.
[0116] In some embodiments, the second device receives second initial voltage information based on the first signal line. The second initial voltage information is used to instruct the first device that sent the second initial voltage information to send voltage information indicating the operating state of the first device to other devices on the first signal line.
[0117] In some embodiments, the first initial voltage information and the second initial voltage information may be the same or different.
[0118] When the second device receives the second initial voltage information, it may agree to allow the first device to send voltage information on the first signal line to other devices to indicate the operating status of the first device. At this time, the second device does not send response information to the first device, and the second device can obtain the first voltage information based on the first signal line.
[0119] Figure 4 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 2 ,like Figure 4 As shown, this method illustrates how the second device receives target fault information from the first device. The method is described in detail below:
[0120] S401. Under normal working conditions of the second signal line, receive target fault information from the first device based on the second signal line.
[0121] In some embodiments, if the first device detects that the second signal line is working normally when it is in fault operation mode, it can directly send the target fault information to the second device through the second signal line.
[0122] The target fault information includes fault type, fault code, and other information.
[0123] S402, In the event of a fault in the second signal line, receive target fault information from the first device based on the first signal line.
[0124] In some embodiments, if the first device detects a fault in the second signal line during fault operation mode, such as an I2C bus hang due to the SDA / SCL bus being pulled high or low for a long time, and cannot directly send the target fault information to the second device through the second signal line, the target fault information can be sent to the second device through the first signal line.
[0125] In some embodiments, the second device determines the level information received on the first signal line between the start level information and the end level information as the target fault level information; wherein, the start level information is a start flag for transmitting the target fault level information, and the end level information is a stop flag for transmitting the target fault level information; the first device determines the target fault information based on the target fault level information; wherein, different fault level information corresponds to different fault information.
[0126] In some embodiments, the target fault information transmitted via the first signal line may be the same as or different from the target fault information transmitted via the second signal line, and the target fault information transmitted via the first signal line may include the fault type.
[0127] In some embodiments, when the second signal line is faulty and the first device is in a fault operation mode, the first device sends a start level information through the first signal line, sends a target fault level information through the first signal line after the start level information, and sends an end level information through the first signal line after the target fault level information. The second device can determine the start flag of the first device sending the target fault level information through the start level information and determine the end flag of the first device sending the target fault level information through the end level information, thereby determining the corresponding target fault level information.
[0128] In some embodiments, the start level information is a 3.3V high level for two consecutive periods of 1ms (two consecutive pulses), and the end level information is a 3.3V high level for three consecutive periods of 1ms (three consecutive pulses). The target fault level information is transmitted after the start level information.
[0129] In some embodiments, different fault level information corresponds to different fault information, and the fault level information, start level information, and end level information are all different.
[0130] In some embodiments, the fault information indicates an I2C busy fault, with a corresponding fault level of 2ms high to 3.3V; the fault information indicates an OCP (overcurrent protection), with a corresponding fault level of 4ms high to 3.3V; the fault information indicates an OVP (overvoltage protection), with a corresponding fault level of 8ms high to 3.3V; the fault information indicates an UVP (undervoltage protection), with a corresponding fault level of 12ms high to 3.3V; and the fault information indicates an I2C hangup, with a corresponding fault level of 14ms high to 3.3V. In these cases, different fault information is determined by the duration of the high-to-3.3V level. Of course, other level information can also be used in other embodiments, which will not be elaborated here.
[0131] In some embodiments, when an I2C hang is detected, the first device will actively perform an I2C bus reset operation, and the second device will also actively perform an I2C bus reset operation.
[0132] In this embodiment of the application, the first signal line enables the first device to actively report fault information when the I2C connection is suspended, thereby improving the fault detection capability.
[0133] In some embodiments, during the data transmission between the first device and the second device, the operating mode of the first device can be changed, and the first device sends corresponding voltage information on the first signal line according to the current operating mode.
[0134] In some embodiments, the second device acquires second voltage information based on the first signal line, and determines the second target operating mode of the first device based on the second target voltage value range where the second voltage value corresponding to the second voltage information is located; if the second target operating mode is different from the first target operating mode, it is determined that the first device performs an operating mode switch, and data is transmitted with the first device based on the second target operating mode.
[0135] In some embodiments, if the second target operating mode is different from the first target operating mode, then the first device is determined to switch operating modes.
[0136] In some embodiments, the second device may sample voltage information on the first signal line according to a preset sampling period.
[0137] In some embodiments, after the first device changes its operating mode, it can send a "mode change notification" data frame to the second device via the second signal line. The data frame contains concise information such as mode type and triggering reason, and has a length of ≤8 bytes, which reduces communication overhead and helps the second device accurately identify the details of the operating mode switching.
[0138] In some embodiments, if the second device detects that the second target operating mode is different from the first target operating mode, it can continuously monitor the voltage information on the first signal line for a third preset time until it is determined that the second target operating mode is different from the first target operating mode within the third preset time. The third preset time can avoid erroneous voltage information caused by the jitter of the first signal line.
[0139] The third preset duration can be set based on empirical parameters, such as within the range of 10-100ms.
[0140] Figure 5 A flowchart illustrating the data transmission control method provided in the embodiments of this application. Figure 3 ,like Figure 5 As shown, this method is applied to a first device that transmits voltage information on a first signal line. The method is described in detail below:
[0141] S501. Receive first initial voltage information based on the first signal line. The first initial voltage information is used to instruct the second device that sent the first initial voltage information to send voltage information to the device connected to the first signal line to indicate the operating mode of the second device.
[0142] In some embodiments, the first device receives first initial voltage information from the second device based on a first signal line, and all devices connected to the first signal line can receive the first initial voltage information.
[0143] The method by which the first device receives the first initial voltage information from the second device based on the first signal line can be referred to the relevant implementation of step S301, and will not be repeated here.
[0144] S502. Send first response voltage information based on the first signal line. The first response voltage information is used to instruct the first device to send voltage information on the first signal line to the second device to indicate the operating mode of the first device.
[0145] In some embodiments, the first device transmits first response voltage information based on a first signal line.
[0146] In some embodiments, the first response voltage value corresponding to the first response voltage information is located within a preset first voltage value range of the first device, and different voltage value ranges correspond to different devices connected to the first signal line.
[0147] In some embodiments, the second device receives first response voltage information and determines that the first device sends voltage information to the second device via a first signal line to indicate the operating mode of the first device.
[0148] The method by which the first device receives the first initial voltage information from the second device based on the first signal line can be referred to the relevant implementation of step S302, and will not be repeated here.
[0149] S503. Determine the first target operating mode of the first device based on the first state parameters obtained from the detection.
[0150] In some embodiments, the first state parameter may include at least one of the following: internal temperature sensor data of the first device, output of the power supply voltage detection circuit, I2C communication verification result, etc., and the control logic unit determines the first target working mode of the first device according to preset rules.
[0151] In some embodiments, if the first device determines a hardware fault (such as a short circuit), voltage abnormality (the power supply voltage of the slave device exceeds the normal range and triggers UVP / OVP), or communication fault (continuous errors in I2C bus data verification) through the first state parameters, then the first target operating mode can be determined to be a fault operating mode.
[0152] After the first device enters the fault operation mode, it stops non-essential functions, such as auxiliary data preprocessing, and actively stores the target fault information, such as fault code and fault type, into a specific register, which can then be sent to the second device.
[0153] S504. Determine the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target working mode.
[0154] In some embodiments, different voltage ranges correspond to different operating modes.
[0155] The first device determines the first voltage value based on the first target voltage value range corresponding to the first target working mode, and converts the first voltage value into the corresponding first voltage information through a digital-to-analog converter.
[0156] The first voltage information indicates that the current operating mode of the first device is the first target operating mode.
[0157] S505. Send first voltage information based on the first signal line, and transmit data with the first device through the second signal line based on the first target working mode.
[0158] In some embodiments, the second signal line is an internal integrated circuit bus I2C, and the first signal line is different from the second signal line.
[0159] The first device sends first voltage information based on the first signal line, the second device receives the first voltage information, and determines the first target operating mode of the first device based on the first target voltage value range where the first voltage value corresponding to the first voltage information is located, and the second device controls the data transmission with the first device based on the first target operating mode.
[0160] In some embodiments, if the first target operating mode is a normal operating mode, the second device performs standard data transmission with the first device based on the second signal line; wherein, the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line.
[0161] In some embodiments, if the first target operating mode is a fault operating mode, the second device receives target fault information from the first device based on the first signal line or the second signal line.
[0162] In some embodiments, if the first target operating mode is a preset operating mode, the second device transmits data with the first device on the second signal line based on the mode parameters corresponding to the preset operating mode. Different preset modes have corresponding mode parameters.
[0163] In some other embodiments, steps S501 and S502 are alternative. Before determining the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target operating mode, the first device sends a second initial signal on the first signal line, and if no response voltage information is received within a second preset time period, the first device determines the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target operating mode; and sends the first voltage information to the second device based on the first signal line.
[0164] In some embodiments, when the first target operating mode is a fault operating mode and the second signal line is operating normally, the first device sends the target fault information of the first device based on the second signal line.
[0165] In some embodiments, when the first target operating mode is a fault operating mode and the second signal line is faulty, the first device sends target fault information to the second device based on the first signal line.
[0166] In some embodiments, when the first target operating mode is a fault operating mode and the second signal line is faulty, the first device sequentially transmits start level information, target fault level information, and end level information based on the first signal line; wherein, the start level information is a start flag for transmitting the target fault level information, and the end level information is a stop flag for transmitting the target fault level information; the first device determines the target fault information of the first device based on the target fault level information, and different fault level information corresponds to different fault information.
[0167] In this embodiment, the limitation of the traditional I2C protocol relying solely on data frame negotiation is overcome by adding a first signal line to achieve direct mapping from voltage information to operating mode. This allows I2C bus-based devices to quickly respond to changes in operating mode, supporting various scenarios such as normal operation, fault protection, and low-power optimization. For example, in the control of a server BMC (Baseboard Management Controller) fan, the fan can send voltage information via the first signal line to indicate that it is in a fault operating mode, and actively report target fault information via the first or second signal line, without waiting for periodic BMC queries, thus improving the system's response speed to sudden environmental anomalies.
[0168] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0169] Figure 6 Schematic diagram of the structure of the data transmission control device provided in the embodiments of this application Figure 1 .like Figure 6As shown, embodiments of this application also provide a data transmission control device, including:
[0170] The first initial information sending module 610 is used to send first initial voltage information based on a first signal line. The first initial voltage information is used to instruct the second device that sent the first initial voltage information to send voltage information on the first signal line to other devices to indicate the operating mode of the second device.
[0171] The response module 620 is used to receive first response voltage information based on the first signal line; wherein, the first response voltage information is used to instruct the first device to send voltage information indicating the working mode of the first device to the second device on the first signal line, and the first response voltage value corresponding to the first response voltage information is within the first voltage value range preset by the first device, and different voltage value ranges correspond to different devices connected to the first signal line;
[0172] The signal transmission module 630 is used to acquire first voltage information from the first device based on the first signal line, and to determine the first target operating mode of the first device based on the first target voltage value range in which the first voltage value corresponding to the first voltage information is located; wherein, different voltage value ranges correspond to different operating modes.
[0173] The first transmission module 640 is used to perform standard data transmission with the first device based on the second signal line if the first target's working mode is the normal working mode; wherein, the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line;
[0174] The second transmission module 650 is used to receive target fault information from the first device based on the first signal line or the second signal line if the first target working mode is a fault working mode.
[0175] The third transmission module 660 is used to transmit data with the first device on the second signal line based on the mode parameters corresponding to the preset working mode if the first target working mode is a preset working mode. Different preset modes have corresponding mode parameters.
[0176] In some embodiments, the data transmission control device further includes:
[0177] The second initial information sending module is used to receive second initial voltage information based on the first signal line. The second initial voltage information is used to instruct the first device that sends the second initial voltage information to send voltage information indicating the working status of the first device to other devices on the first signal line.
[0178] In some embodiments, the second transmission module includes:
[0179] The first fault transmission unit is used to receive target fault information from the first device based on the second signal line when the second signal line is working normally.
[0180] The second fault transmission unit is used to receive target fault information from the first device based on the first signal line in the event of a fault in the second signal line.
[0181] In some embodiments, the second fault transmission unit includes:
[0182] The information receiving module is used to determine the level information received on the first signal line between the start level information and the end level information as the target fault level information; wherein, the start level information is the start flag for transmitting the target fault level information, and the end level information is the end flag for transmitting the target fault level information;
[0183] The information processing module is used to determine the target fault information of the first device based on the target fault level information; different fault level information corresponds to different fault information.
[0184] In some embodiments, the data transmission control device further includes:
[0185] The information receiving module is used to acquire second voltage information based on the first signal line, and to determine the second target operating mode of the first device based on the second target voltage value range in which the second voltage value corresponding to the second voltage information is located.
[0186] The switching module is used to determine that the first device should switch its operating mode if the second target operating mode is different from the first target operating mode, and to transmit data with the first device based on the second target operating mode.
[0187] Figure 7 Schematic diagram of the structure of the data transmission control device provided in the embodiments of this application Figure 2 .like Figure 7 As shown, embodiments of this application also provide a data transmission control device, including:
[0188] The initial voltage transmission module 710 is used to receive first initial voltage information based on the first signal line. The first initial voltage information is used to instruct the second device that transmits the first initial voltage information to send voltage information indicating the operating mode of the second device to the device connected to the first signal line.
[0189] The response sending module 720 is used to send first response voltage information based on the first signal line. The first response voltage information is used to instruct the first device to send voltage information indicating the working mode of the first device to the second device on the first signal line. The first response voltage value corresponding to the first response voltage information is within the first voltage value range preset by the first device. Different voltage value ranges correspond to different devices connected to the first signal line.
[0190] The pattern detection module 730 is used to determine the first target operating mode of the first device based on the detected first state parameters;
[0191] The information generation module 740 is used to determine the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target working mode; wherein, different voltage value ranges correspond to different working modes;
[0192] The information transmission module 750 is used to send first voltage information to the second device based on the first signal line, and to transmit data with the first device through the second signal line based on the first target working mode; wherein, the second signal line is the internal integrated circuit bus I2C, and the first signal line is different from the second signal line.
[0193] In some embodiments, the data transmission control device further includes:
[0194] The second initial voltage information sending module is used to send second initial voltage information based on the first signal line. The second initial voltage information is used to instruct the first device that sends the second initial voltage information to other devices on the first signal line to send voltage information indicating the working status of the first device.
[0195] In some embodiments, the data transmission control device further includes:
[0196] The third fault transmission module is used to transmit the target fault information of the first device based on the second signal line when the first target working mode is the fault working mode and the second signal line is working normally.
[0197] The fourth fault transmission module is used to transmit target fault information to the second device based on the first signal line when the first target working mode is a fault working mode and the second signal line is faulty.
[0198] In some embodiments, the fourth fault transmission module includes:
[0199] The level transmission unit is used to sequentially transmit start level information, target fault level information, and end level information based on the first signal line; wherein, the start level information is a start flag for transmitting the target fault level information, and the end level information is a stop flag for transmitting the target fault level information;
[0200] The fault determination unit is used to determine the target fault information of the first device based on the target fault level information. Different fault level information corresponds to different fault information.
[0201] For a description of the features in the embodiment corresponding to the control device for data transmission, please refer to the relevant description in the embodiment corresponding to the control method for data transmission, which will not be repeated here.
[0202] Figure 8 A schematic diagram of the structure of the electronic device provided in this application. Figure 8 As shown, the electronic device 80 provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the electronic device 80 further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus.
[0203] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to execute the above-described data transmission control method embodiment.
[0204] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0205] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0206] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0207] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0208] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described data transmission control method embodiments when running.
[0209] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0210] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described data transmission control method embodiments.
[0211] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described data transmission control method embodiments.
[0212] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0213] The data transmission control method provided in this application has been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A control method of data transmission, characterized by, The method comprises: sending first initial voltage information based on a first signal line, the first initial voltage information being used to instruct a second device sending the first initial voltage information to send voltage information indicating the working mode of the second device to other devices on the first signal line; receiving first response voltage information based on the first signal line; wherein the first response voltage information is used to instruct a first device to send voltage information indicating the working mode of the first device to the second device on the first signal line, and the first response voltage value corresponding to the first response voltage information is within a first voltage value range preset by the first device, and different voltage value ranges correspond to different devices connected to the first signal line; obtaining first voltage information from the first device based on the first signal line, and determining a first target working mode of the first device based on the first target voltage value range in which the first voltage value corresponding to the first voltage information is located; wherein different voltage value ranges correspond to different working modes; if the first target working mode is a normal working mode, performing standard data transmission with the first device based on a second signal line; wherein the second signal line is an internal integrated circuit bus, and the first signal line is different from the second signal line; if the first target working mode is a fault working mode, receiving target fault information from the first device based on the first signal line or the second signal line; if the first target working mode is a preset working mode, performing data transmission with the first device on the second signal line based on mode parameters corresponding to the preset working mode, and different preset modes have corresponding mode parameters.
2. The method of claim 1, wherein, Before the first voltage information is obtained based on the first signal line, the method further comprises: receiving second initial voltage information based on the first signal line, the second initial voltage information being used to instruct a first device sending the second initial voltage information to send voltage information indicating the working state of the first device to other devices on the first signal line.
3. The method according to claim 1 or 2, characterized in that, The target fault information from the first device received based on the first signal line or the second signal line comprises: in the case of normal working of the second signal line, receiving the target fault information from the first device based on the second signal line; in the case of fault of the second signal line, receiving the target fault information from the first device based on the first signal line.
4. The method of claim 3, wherein, The target fault information from the first device received based on the first signal line comprises: determining the level information between the start level information and the end level information received on the first signal line as target fault level information; wherein the start level information is a start flag of sending target fault level information, and the end level information is an end flag of sending target fault level information; determining the target fault information of the first device based on the target fault level information; wherein different fault level information corresponds to different fault information.
5. The method according to claim 1 or 2, characterized in that, The method further comprises: obtaining second voltage information based on the first signal line, and determining a second target working mode of the first device based on a second target voltage value range in which a second voltage value corresponding to the second voltage information is located; if the second target working mode is different from the first target working mode, determining that the first device performs working mode switching, and performing data transmission with the second device based on the second target working mode.
6. A control method of data transmission, characterized by, The method comprises: receiving first initial voltage information based on a first signal line, the first initial voltage information being used to instruct a second device sending the first initial voltage information to send voltage information indicating a working mode of the second device to a device connected to the first signal line; sending first response voltage information based on the first signal line, the first response voltage information being used to instruct the first device to send voltage information indicating a working mode of the first device to the second device on the first signal line, a first response voltage value corresponding to the first response voltage information being located in a first voltage value range preset by the first device, and different voltage value ranges corresponding to different devices connected to the first signal line; determining a first target working mode of the first device based on a detected first state parameter; determining first voltage information corresponding to a first voltage value based on a first target voltage value range corresponding to the first target working mode; wherein different voltage value ranges correspond to different working modes; sending the first voltage information to the second device based on the first signal line, and performing data transmission with the first device based on the first target working mode through a second signal line; wherein the second signal line is an internal integrated circuit bus I2C, and the first signal line is different from the second signal line.
7. The method of claim 6, wherein, Before the step of determining the first voltage information corresponding to the first voltage value based on the first target voltage value range corresponding to the first target working mode, the method further comprises: sending second initial voltage information based on the first signal line, the second initial voltage information being used to instruct a first device sending the second initial voltage information to send voltage information indicating a working state of the first device to other devices on the first signal line.
8. The method according to claim 6 or 7, characterized in that, The method further comprises: in a case where the first target working mode is a fault working mode and the second signal line is normally working, sending target fault information of the first device based on the second signal line; in a case where the first target working mode is a fault working mode and the second signal line is faulty, sending the target fault information of the first device to the second device based on the first signal line.
9. The method of claim 8, wherein, The step of sending the target fault information of the first device to the second device based on the first signal line comprises: sending start level information, target fault level information and end level information in sequence based on the first signal line; wherein the start level information is a start flag of sending the target fault level information, and the end level information is an end flag of sending the target fault level information; determining the target fault information of the first device based on the target fault level information; wherein different fault level information corresponds to different fault information.
10. An electronic device, comprising: The method comprises: a memory for storing a computer program; a processor for implementing the steps of the method according to any one of claims 1 to 5, or the steps of the method according to any one of claims 6 to 9, when executing the computer program.
Citation Information
Patent Citations
Data transmission system based on CAN bus controller and electronic equipment
CN115065575A
Fault communication in voltage regulator system
CN115117840A