WO2022206236A1 - 总线通信系统、电子设备及总线通信方法 - Google Patents

总线通信系统、电子设备及总线通信方法 Download PDF

Info

Publication number
WO2022206236A1
WO2022206236A1 PCT/CN2022/077920 CN2022077920W WO2022206236A1 WO 2022206236 A1 WO2022206236 A1 WO 2022206236A1 CN 2022077920 W CN2022077920 W CN 2022077920W WO 2022206236 A1 WO2022206236 A1 WO 2022206236A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
signal
module
power bus
time
Prior art date
Application number
PCT/CN2022/077920
Other languages
English (en)
French (fr)
Inventor
曲春营
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022206236A1 publication Critical patent/WO2022206236A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a bus communication system, an electronic device and a bus communication method.
  • data transmission is carried out through the communication bus connected between the components, for example, through the SPMI (System Power Management Interface, system power management interface) bus, SPI (Serial Peripheral Interface, Serial peripheral interface) bus, etc., another example, CAN (Controller Area Network, controller area network) bus in automobiles, etc., lead to wire consumption and increase equipment cost.
  • SPMI System Power Management Interface, system power management interface
  • SPI Serial Peripheral Interface, Serial peripheral interface
  • CAN Controller Area Network, controller area network
  • the embodiments of the present application disclose a bus communication system, an electronic device and a bus communication method, which can reduce wire consumption, reduce the cost of the bus communication system, save structure space, and reduce the difficulty of structure design.
  • An embodiment of the present application discloses a bus communication system, the system includes at least two communication branch paths connected through a power bus, each communication branch path includes a filter module, a signal processing module and a function module, the signal processing module connected with the function module, the first end of the filter module is connected to the power bus, the second end of the filter module is connected to the signal processing module, and the third end of the filter module is connected to the signal processing module respectively modules and functional modules are connected, where,
  • the filtering module is configured to perform filtering processing on the first communication signal when receiving the first communication signal sent by other communication branch channels through the power bus to obtain a first carrier signal, and convert the first communication signal to the first carrier signal.
  • a carrier signal is coupled to the signal processing module;
  • the signal processing module is configured to analyze the first carrier signal to obtain a first communication instruction, and send the first communication instruction to the functional module;
  • the function module configured to execute the first communication instruction
  • the signal processing module is further configured to process the second communication instruction sent by the functional module to obtain a second carrier signal, and send the second carrier signal to the filtering module;
  • the filtering module is further configured to perform filtering processing on the second carrier signal when receiving the second carrier signal sent by the signal processing module, so as to couple the second carrier signal to the power supply
  • the bus is used to obtain a second communication signal, and the second communication signal is sent to other communication branch paths through the power bus.
  • the embodiment of the present application discloses an electronic device, including the above-mentioned bus communication system.
  • An embodiment of the present application discloses a bus communication method, which is applied to an electronic device.
  • the electronic device includes a bus communication system, and the bus communication system includes at least two communication branch paths connected by a power bus.
  • the method includes:
  • the target communication branch channel When the target communication branch channel receives the first communication signal sent by the other communication branch channel through the power bus, the first communication signal is filtered by the filtering module to obtain the first carrier signal, and the first communication signal is filtered by the filtering module.
  • a carrier signal is coupled to the signal processing module;
  • the coupled first carrier signal is analyzed by the signal processing module to obtain a first communication instruction, and the function module executes the first communication instruction;
  • the signal processing module When the signal processing module receives the second communication command sent by the functional module, the second communication command sent by the functional module is processed to obtain a second carrier signal;
  • the second carrier signal is filtered by the filtering module to couple the second carrier signal to the power bus to obtain a second communication signal, and the second communication signal is transmitted through the power bus Send to other communication branch channels.
  • Fig. 1 is the structural block diagram of the bus communication system in one embodiment
  • Fig. 2 is the structural block diagram of the bus communication system in another embodiment
  • FIG. 3 is a structural block diagram of a bus communication system in another embodiment
  • FIG. 4 is a structural block diagram of an electronic device in one embodiment
  • FIG. 5 is a flowchart of a bus communication method in one embodiment
  • FIG. 6 is a flowchart of a bus communication method in another embodiment.
  • first, second, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element.
  • a first communication branch path may be referred to as a second communication branch path, and similarly, a second communication branch path may be referred to as a first communication branch path.
  • Both the first communication branch path and the second communication branch path are communication branch paths, but they are not the same communication branch path.
  • a bus communication system 10 may include at least two communication branch paths connected by a power bus, and each communication branch path may include a filter module,
  • the power bus may include a GND (wire ground terminal) line, a P+ line, etc., but is not limited thereto.
  • the bus communication system 10 may include a communication branch path 110 and a communication branch path 120. It should be noted that the bus communication system 10 may also include more communication branch paths, not limited to the two in FIG. 1 . Communication branch path. Now, taking the filtering module 112 , the signal processing module 114 and the function module 116 included in the communication branch path 110 as an example, the communication process of each communication branch path will be described.
  • the signal processing module 114 can be connected to the functional module 116, the first end of the filter module 112 is connected to the power bus, the second end of the filter module 112 is connected to the signal processing module 114, and the third end of the filter module 112 is connected to the signal processing module 114 respectively.
  • the module 114 and the functional module 116 are connected.
  • the filtering module 112 is configured to perform filtering processing on the first communication signal when receiving the first communication signal sent by other communication branch paths through the power bus to obtain the first carrier signal, and couple the first carrier signal to the signal processing module 114.
  • the communication branch path 110 When the communication branch path 110 receives the first communication signal sent by other communication branch paths (for example, the communication branch path 120 ) through the power bus, since the power bus is a bus for transmitting electrical signals, the first communication signal transmitted through the power bus
  • the communication signal may include some clutter that affects the communication, and the first communication signal can be obtained by filtering the first communication signal through the filtering module 112 .
  • the first carrier signal may be obtained by loading the communication instruction of the functional module onto a high-frequency signal of a certain frequency by another communication branch channel that sends the first communication signal.
  • the signal processing module 114 is configured to analyze the first carrier signal to obtain the first communication instruction, and send the first communication instruction to the function module 116 .
  • the signal processing module 114 may include a power bus protocol IC (integrated circuit, integrated circuit), and the signal processing module 114 may include a modulation and demodulation unit.
  • the signal processing module 114 can demodulate the first carrier signal through the modulation and demodulation unit to obtain a digital signal, which can be used as the first communication command, and send the demodulated digital signal to the function. module 116.
  • the signal processing module 114 can analyze the frequency of the first carrier signal and the duration corresponding to the frequency, if the frequency of the first carrier signal is the first value, and the frequency of the first carrier signal is maintained at If the duration of the first value exceeds the shortest duration limited by a bit rate, the digital signal obtained by parsing the corresponding bit is "0". If the frequency of the first carrier signal is the second value, and the duration of the frequency of the first carrier signal remaining at the second value exceeds the shortest time period limited by a bit rate, the digital signal of the corresponding byte can be parsed as "1" ".
  • the first value and the second value can be set according to actual needs, and the shortest duration can also be set according to actual needs.
  • the first value can be 100MHz (megahertz)
  • the second value can be 200MHz
  • the shortest duration It can be 1 ⁇ s (microseconds), 0.5 ⁇ s, etc.
  • the first value can be smaller than the second value, and the first value can also be larger than the second value, which is not limited here.
  • the function module 116 is configured to execute the first communication instruction sent by the signal processing module 114 .
  • the functional module 116 may include a power supply module, a Microcontroller Unit (MCU), a central processing unit (CPU), a CPU core, a display module, etc., but is not limited thereto.
  • the functional modules on different communication branch paths may be the same or different.
  • the function module 116 can execute the first communication instruction.
  • the power supply module may include a PMIC (Power Management IC, integrated power management circuit) chip or the like.
  • the communication branch path may further include a drive module, and the drive module may be used to drive the hardware to work.
  • the drive module may include a light drive module, a motor drive module, etc., but is not limited to this, and each communication branch path may include For one or more drive modules, the drive modules of different communication branch paths may be the same or different.
  • the function module 116 in the communication branch channel 110 as an MCU and the driving module as a light driving module as an example, if the first communication signal is sent by the communication branch channel including the CPU, and the first communication instruction is an instruction to control the light to be turned on, then After receiving the first communication instruction, the MCU can send a driving signal to the light driving module, so that the light driving module drives the connected light to turn on.
  • the signal processing module 114 is further configured to demodulate the first carrier signal to obtain the first communication instruction, and send the first communication instruction to the function module 116 through the serial data bus.
  • the signal processing module 114 and the function module 116 can be connected through a serial data bus, and data transmission can be carried out through the serial data bus.
  • the serial data bus can include SPI bus, UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Transmitter, Transmitter) bus, IIC (Inter-Integrated Circuit, integrated circuit) bus, etc., but not limited to this.
  • Data transmission between the functional module 116 and the driving module may also be performed through a serial data bus, or data transmission may be performed through a GPIO (General-purpose input/output, general-purpose input/output) interface or the like.
  • Data transmission between different modules on the same communication branch channel can be carried out through the serial data bus, which can ensure the accuracy of data transmission, and data transmission between different communication branch channels can be carried out through the power bus, which can ensure data transmission efficiency and Reduce wire consumption.
  • the signal processing module 114 is further configured to process the second communication instruction sent by the functional module 116 to obtain a second carrier signal, and send the second carrier signal to the filtering module 112 .
  • the second communication instruction can be sent to the signal processing module 114 .
  • the signal processing module 114 may modulate the received second communication instruction, generate a second carrier signal, and send the generated second carrier signal to the filtering module 112 .
  • the signal processing module 114 is further configured to receive the second communication command sent by the function module 116 through the serial data bus, modulate the second communication command to obtain a second carrier signal, and convert the two carrier signals to the second communication command.
  • the signal is sent to the filtering module 112 .
  • the filtering module 112 is further configured to perform filtering processing on the second carrier signal when receiving the second carrier signal sent by the signal processing module 114, so as to couple the second carrier signal to the power bus to obtain the second communication signal, and pass The power bus sends the second communication signal to other communication branch paths.
  • the filtering module 112 can filter the clutter signal in the second carrier signal sent by the signal processing module 114, and couple the filtered second carrier signal to the power bus to obtain the second communication signal transmitted on the power bus, which can The second communication signal is sent to other communication branch paths.
  • the communication instruction transmission between the functional modules on different communication branch paths can be realized through the power bus, and there is no need to set up an additional communication bus, which can reduce the cost of wire materials, reduce the cost of the bus communication system, and save the structure space, reducing the difficulty of structural design.
  • using the power bus for communication can improve the transmission speed of communication signals, which can reach more than 10Mb/s (megabits per second), and multiple communication branch paths are coupled to the same power bus, which can improve stability.
  • the filter module 112 may include an inductor 202 and a capacitor 204 . Both the inductor 202 and the capacitor 204 may be connected to the power bus, and the inductor 202 and the capacitor 204 may be connected in parallel.
  • the inductor 202 can be connected to the signal processing module 114 and the functional module 116 respectively, and the capacitor 204 can be connected to the signal processing module 114 .
  • the inductor 202 is used to isolate the first carrier signal contained in the first communication signal.
  • the inductor 202 can play the role of "blocking traffic and direct traffic", that is, the inductor 202 can block the AC signal and allow the DC signal to pass.
  • the AC signal means that the transmitted signal changes periodically with time, and the DC signal means that the transmitted signal does not follow Changes over time, essentially constant or with minimal fluctuations.
  • the first carrier signal is an AC signal. Therefore, by using the isolation of the inductor 202, the inductor 202 can block the first carrier signal contained in the first communication signal in the cavity of the inductor 202, so that it is not directly transmitted to the inductor 202.
  • Function module 114 Function module 114 .
  • the capacitor 204 is used for filtering the direct current signal contained in the first communication signal to obtain the first carrier signal, and coupling the first carrier signal to the signal processing module 114 .
  • the capacitor 204 can play the role of "blocking direct current", that is, the capacitor 204 can block the direct current signal and allow the alternating current signal to pass through. Since the first communication signal is transmitted on the power bus, the first communication signal may contain a direct current signal. The direct current signal of the capacitor 204 can be used to filter out the direct current signal contained in the first communication signal, so as to obtain the first communication signal. a carrier signal. Further, the capacitor 204 can be connected to the communication interface of the signal processing module 114 , and the capacitor 204 can couple the obtained first carrier signal to the signal processing module 114 through the communication interface.
  • the separation of the first carrier signal and the DC signal included in the first communication signal transmitted on the power bus can be achieved, so that the signal input to the signal processing module 114 for demodulation is the first carrier signal, The accuracy of the obtained first communication instruction is improved, and the quality of signal transmission is ensured.
  • the capacitor 204 is also used for filtering the second carrier signal sent by the signal processing module 114, so as to couple the second carrier signal to the power bus to obtain the second communication signal.
  • the bus communication system 10 may include at least a first communication branch path 110 and a second communication branch path 120 , and the functional module 116 of the first communication branch path 110 may be a power module.
  • the inductance L1 of the first communication branch path 110 can be connected to the power interface of the signal processing module 114 and the power module 116
  • the inductance L2 of the second communication branch path 120 can also be connected to the power interface of the signal processing module 124 and the function module 126 .
  • the inductance L2 of the second communication branch path 120 is used to filter the first carrier signal included in the first communication signal , so as to obtain a direct current signal to supply power to the signal processing module 124 and the function module 126 of the second communication branch path 120 .
  • the power module 115 of the first communication branch path 110 can transmit DC signals to other components in the bus communication system 10 through the power bus, so as to supply power to each component in the bus communication system 10 .
  • the second communication branch path 120 receives the first communication signal sent by the first communication branch path 110, the first communication signal can be filtered through the inductor L2 and the capacitor C2, so that the first communication signal included in the first communication signal can be filtered.
  • the carrier signal and the DC signal are separated.
  • the DC signal can pass through the inductor L2 and be transmitted to the power interface of the signal processing module 124 and the function module 126.
  • the first carrier signal can pass through the capacitor C2 and be transmitted to the communication interface of the signal processing module 124.
  • the signal processing module 124 can demodulate the first carrier signal received through the communication interface, obtain the communication command sent by the power module 116 , and send the communication command to the function module 126 .
  • the inductance L1 of the first communication branch path 110 is further used to filter the electrical signal sent by the power module to obtain a DC electrical signal.
  • the capacitor C1 of the first communication branch path 110 is also used to filter the second carrier signal sent by the signal processing module 114 of the first communication branch path 110 , and connect the second carrier signal with the inductance L1 of the first communication branch path 110 The obtained direct current signal is coupled to obtain a second communication signal.
  • the power module 116 can send the communication command to the signal processing module 114 , and the signal processing module 114 can respond to the communication command sent by the power module 116
  • the modulation is performed to obtain a second carrier signal, which is output to the capacitor C1 through the communication interface.
  • the clutter in the second carrier signal can be filtered out by using the DC blocking of the capacitor C1.
  • the power supply module 116 can output an electrical signal to the inductor L1 through the power interface, and the clutter in the electrical signal can be filtered out by using the isolation of the inductor L1 to obtain a DC signal, which can be combined with the second carrier wave obtained by the capacitor L1.
  • the signal is coupled to the power bus, and a second communication signal is obtained and transmitted through the power bus.
  • the electrical signal output by the power module 116 may include a voltage
  • the inductor L1 may also be used to step down the voltage output by the power module 116.
  • the inductor L1 may be a power inductor, and the power inductor may be directly multiplexed as Isolating the inductance without adding additional inductive devices reduces cost and simplifies the circuit.
  • the communication signal transmitted on the power bus is filtered through the inductor and the capacitor, the carrier signal transmitted on the power bus is separated, and the signal is accurately transmitted to the signal processing module for demodulation.
  • the signal transmitted by the processing module and the functional module is filtered to couple the carrier signal to be sent to the power bus and accurately transmit it to the functional modules of other communication branch paths.
  • the functional modules on different communication branch paths can be realized through the power bus.
  • the communication instruction transmission between them does not need to set up an additional communication bus, which can reduce the wire consumption, the cost of the bus communication system, save the structure space, and reduce the difficulty of structure design.
  • only the inductance and the capacitance are used to realize the communication on the power bus, the circuit structure is simple, and the cost is further reduced.
  • the functional module 116 is further configured to monitor the communication signal transmitted on the power bus, and when detecting that the power bus is in an idle state, send a second communication instruction to the signal processing module 114, wherein the idle state It is a state in which no communication signal is transmitted on the power bus.
  • the function module 116 of the communication branch channel 110 When the function module 116 of the communication branch channel 110 needs to send a communication command to other communication branch channels, it can monitor the communication signal transmitted on the power bus to determine whether there is a function module of other communication branch channel sending a communication command. If there is no function module of another communication branch path that is sending a communication command, it can be determined that the power bus can be in an idle state, and the function module 116 can send a second communication command to the signal processing module 114, so that the signal processing module 114 can communicate with the second communication The instruction is modulated to obtain a second carrier signal, which is coupled to the power bus through the filtering module 112 .
  • the function module 116 of the communication branch path 110 when the function module 116 of the communication branch path 110 needs to send a communication command to other communication branch paths, it can determine whether a notification signal sent by the other communication branch path is received, and if the notification signal is received, it can be indicated that the power bus is in In the occupied state, the occupied state is a state in which the power bus is transmitting a communication signal, and the function module 116 temporarily does not send the second communication command. If no notification signal is received, it means that the power bus is in an idle state, and a second communication command can be sent to the signal processing module 114 .
  • the functional modules of each communication branch path can enter the monitoring state when initialized.
  • any functional module sends a communication instruction to the functional modules of other communication branch paths, it can simultaneously send a communication instruction to all other communication branch paths.
  • the function module sends a notification signal, and the notification signal can be used to notify the other function modules of each communication branch path that the power bus is performing communication signal transmission.
  • the function module that is sending the communication command can modulate the notification signal through the signal processing module on the same communication branch path to obtain the corresponding carrier signal, and couple the carrier signal to the power bus through the filter module, so that it can be transmitted to other In the communication branch channel, the filter modules on other communication branch channels can obtain the carrier signal from the power bus by decoupling, and demodulate it through the signal processing module to obtain the notification signal.
  • only one communication signal can be transmitted in the power bus at a time, which can ensure the accuracy and efficiency of data transmission, and ensure the stability of the entire system.
  • the functional module 116 is further configured to monitor the communication signal transmitted on the power bus, and when it is detected that the power bus is in an occupied state, the second communication instruction is not sent to the signal processing module 114, and the second communication instruction is not sent to the signal processing module 114, and when the power bus is detected At the moment of sending the command, the communication signal transmitted on the power bus is monitored again, and the second communication command is sent to the signal processing module 114 until it is detected that the power bus is in an idle state.
  • the function module 116 can enter a waiting state, and can determine the next command sending time, and then re-detect whether the power bus is in an idle state when it reaches the determined next command sending time.
  • the function module 116 is further configured to determine the first waiting time to be waited this time according to the number of times of waiting when it is detected that the power bus is in an occupied state, and determine the next sending instruction time according to the first waiting time, and when the When the command is sent, the communication signal transmitted on the power bus is monitored again.
  • the waiting times may refer to the number of times the functional module 116 needs to wait, and can also be understood as the number of times the functional module 116 detects that the power bus is in an occupied state. For example, when the functional module 116 detects that the power bus is in an occupied state for the first time, The number of times can be 1, and when the function module 116 waits for one time and detects that the power bus is in an occupied state for the second time, the number of times of waiting can be updated to 2 . . . If the function module 116 continuously detects that the power bus is in an occupied state, the waiting times will be accumulated accordingly, until the function module 116 detects that the power bus is in an idle state and successfully sends the second communication command, the wait state can be cleared to 0.
  • the first waiting period may be positively correlated with the number of waiting times, and the greater the number of waiting times, the longer the first waiting period may be.
  • the first waiting period may have a proportional relationship with the number of waiting times. For example, if the number of waiting times is 1, the first waiting period may be 5 ⁇ s, the number of waiting times may be 2, and the first waiting period may be 10 ⁇ s, etc., but not limited thereto.
  • the first waiting time may be a specific time or a unit time, and the unit time may be used to indicate the quantity of the unit time to be waited.
  • the first waiting time is 3, and the unit time is 5 ⁇ s. It means that you need to wait for 3 times of 5 ⁇ s.
  • the next command sending time may be the sum of the current time and the first waiting time; if the first waiting time is a unit time, the next command sending time may be, the first time The product of the waiting time and the unit time, and the sum of the current moment.
  • the function module 116 is further configured to determine a first time interval according to the number of waiting times when it is detected that the power bus is in an occupied state, and randomly select the first waiting time period to wait this time from the first time interval , determine the next sending instruction time according to the first waiting time, and monitor the communication signal transmitted on the power bus again when the next sending instruction time is reached.
  • the minimum value of the first time interval is 1, and the maximum value of the first time interval may have a positive correlation with the number of waiting times.
  • the maximum value of the first time interval is a value with the first numerical value as the base and the number of waiting times as the index.
  • the maximum value of the first time interval is a value with the first value as the base and the first threshold as the index.
  • the first threshold and the first numerical value can be set according to actual requirements.
  • the first threshold can be 10, 11, 8, etc., and the first numerical value can be 2, etc., but not limited thereto.
  • the first threshold value as 10 and the first value as 2 as an example, when the number of waiting times n ⁇ 10, the first time interval can be [1, 2n], and when the number of waiting times n ⁇ 10, the first time interval can be [ 1, 210].
  • the first waiting time length may be a unit time length. After the first time interval is determined according to the number of waiting times, an integer value may be randomly selected from the first time interval as the first waiting time length. For example, if the number of waiting times is 2, the first time interval is [1, 4], and a value can be randomly selected from 1, 2, 3, and 4 as the first waiting time period.
  • a "truncated" algorithm is used to determine the waiting time, and the waiting time increases infinitely without increasing the number of waiting times, which optimizes the waiting mechanism of the functional modules on each communication branch path to ensure communication efficiency.
  • the function module 116 is further configured to determine the second waiting period to be waited for the first time according to the set priority when detecting that the power bus is in the occupied state for the first time, and determine the next sending instruction according to the second waiting period time, and when the next sending command time is reached, the communication signal transmitted on the power bus is monitored again.
  • Different functional modules can correspond to different priorities, and the priority of each functional module can be set according to actual needs.
  • the priority of CPU can be higher than that of MCU, and the priority of multiple CPU cores on the processor can also be Set different priorities, etc. respectively.
  • the function module 116 detects that the power bus is in an occupied state for the first time, it can determine the second waiting time to wait for the first time according to the priority set by the function module 116 , and the second waiting time can be negatively correlated with the priority. high, the second waiting time can be shorter.
  • the function module 116 is also used to determine the second time interval according to the set priority when detecting that the power bus is in the occupied state for the first time, and randomly select the second waiting time period that needs to be waited for the first time from the second time interval, The next sending instruction time is determined according to the second waiting time period, and when the next sending instruction time is reached, the communication signal transmitted on the power bus is monitored again.
  • the minimum value of the second time interval is 1, and the maximum value of the second time interval is negatively correlated with the priority.
  • the second time interval corresponding to the function module with high priority may be [1, 2]
  • the second time interval corresponding to the function module with low priority may be [1, 23], etc., but not limited thereto.
  • the second waiting time period may be a unit time length. After the set priority determines the second time interval, an integer value may be randomly selected from the second time interval as the second waiting time period.
  • each waiting time can be determined according to the method of determining the first waiting time by the number of waiting times described in the above embodiment.
  • the working modes of the functional modules in other communication branch paths can refer to the relevant description of the functional module 116, and the above-mentioned waiting mechanism can be applied to each communication branch.
  • the functional modules in the path are not limited to the functional module 116 .
  • the waiting time for the first waiting can be determined according to the priority of the functional module, so that the functional module with a high priority can be sent first, and the functional module with a high priority can be guaranteed to successfully send a communication instruction.
  • an electronic device 400 is provided, and the electronic device may include the bus communication system 10 described in the above embodiments.
  • the electronic device 400 may include but is not limited to a vehicle-mounted terminal, including Vehicles, robots, wearable devices, mobile phones, tablet computers, etc.
  • the bus communication system 10 may be applied to a vehicle.
  • each functional module inside the vehicle (such as the lamp module, display module, power supply module, central control module, engine module and air conditioning module, etc.) needs to communicate through CAN bus, and CAN bus is Twisted pair, when there are many functional modules, the vehicle needs to consume more wires, and the CAN bus occupies a lot of space, which brings obstacles to the structural design of the vehicle.
  • CAN bus is Twisted pair
  • each functional module inside the vehicle can communicate through the power bus, and there is no need to set up an additional communication bus, which can reduce the consumption of wires, reduce the cost of the vehicle, and save money.
  • the structural space inside the vehicle reduces the difficulty of structural design.
  • the bus communication system 10 may be applied to a robot.
  • each functional module inside the robot (such as sensor module, camera module, power module, central control module, button module, etc.) needs to communicate through CAN bus, and CAN bus is twisted pair.
  • the robot needs to consume more wires, and the CAN bus takes up a lot of space, which brings obstacles to the internal structure design of the robot.
  • each functional module inside the robot can communicate through the power bus, and no additional communication bus is required, which can reduce wire consumption, reduce the cost of the robot, and save money.
  • the structural space inside the robot reduces the difficulty of structural design.
  • a bus communication method is provided, which can be applied to the electronic device shown in FIG. 4 , where the electronic device includes the bus communication system 10 described in the above embodiments.
  • the method may include the following steps:
  • Step 510 When the target communication branch channel receives the first communication signal sent by other communication branch channels through the power bus, the filtering module is used to filter the first communication signal to obtain the first carrier signal, and the first carrier signal coupled to the signal processing module.
  • step 520 the coupled first carrier signal is analyzed by the signal processing module to obtain a first communication instruction, and the function module executes the first communication instruction.
  • Step 530 When the signal processing module receives the second communication instruction sent by the functional module, it processes the second communication instruction sent by the functional module to obtain a second carrier signal.
  • Step 540 Filter the second carrier signal through the filtering module to couple the second carrier signal to the power bus to obtain a second communication signal, and send the second communication signal to other communication branch paths through the power bus.
  • the target communication branch path may be any communication branch path in the bus communication system 10 . It should be noted that, steps 530 and 540 may also be performed before step 510, and the sequence of the steps is not limited herein.
  • the communication instruction transmission between the functional modules on different communication branch paths can be realized through the power bus, and there is no need to set up an additional communication bus, which can reduce the cost of wire materials, reduce the cost of the bus communication system, and save the structure space, reducing the difficulty of structural design.
  • the filter module includes capacitors and inductors.
  • the step of filtering the first communication signal through the filtering module to obtain the first carrier signal, and coupling the first carrier signal to the signal processing module includes: isolating the first carrier signal contained in the first communication signal by inductance ; Filter out the direct current signal contained in the first communication signal through the capacitor to obtain the first carrier signal, and couple the first carrier signal to the signal processing module.
  • the step of filtering the second carrier signal through the filtering module to couple the second carrier signal to the power bus to obtain the second communication signal includes: filtering the second carrier signal through a capacitor to couple the second carrier signal to the power bus to obtain the second communication signal.
  • the communication signal transmitted on the power bus is filtered through the inductor and the capacitor, the carrier signal transmitted on the power bus is separated, and the signal is accurately transmitted to the signal processing module for demodulation.
  • the signal transmitted by the processing module and the functional module is filtered to couple the carrier signal to be sent to the power bus and accurately transmit it to the functional modules of other communication branch paths.
  • the functional modules on different communication branch paths can be realized through the power bus.
  • the communication instruction transmission between them does not need to set up an additional communication bus, which can reduce the wire consumption, the cost of the bus communication system, save the structure space, and reduce the difficulty of structure design.
  • only the inductance and the capacitance are used to realize the communication on the power bus, the circuit structure is simple, and the cost is further reduced.
  • another bus communication method is provided, which can be applied to the above-mentioned electronic device, and the electronic device may include the following steps:
  • Step 602 when the target communication branch path receives the first communication signal sent by other communication branch paths through the power bus, the filtering module is used to filter the first communication signal to obtain the first carrier signal, and the first carrier signal is coupled to the signal processing module.
  • step 604 the coupled first carrier signal is analyzed by the signal processing module to obtain the first communication instruction, and the function module executes the first communication instruction.
  • Step 606 monitor the communication signal transmitted on the power bus through the function module.
  • Step 608 when the functional module detects that the power bus is in an occupied state, it does not send a second communication instruction to the acquisition signal processing module.
  • step 610 it is judged whether the next time to send an instruction is reached. If yes, then step 606 is executed;
  • the method before step 610, further includes: determining the next time to send an instruction. Determining the next time to send an instruction includes: determining a first waiting time period to be waited for this time according to the number of waiting times, and determining the next time to send an instruction according to the first waiting time period.
  • the step of determining the first waiting duration to wait this time according to the number of waiting times includes: determining a first time interval according to the number of waiting times, and randomly selecting the first waiting duration to wait this time from the first time interval .
  • the minimum value of the first time interval is 1, and when the number of waiting times is less than the first threshold, the maximum value of the first time interval is a value with the first value as the base and the number of waiting times as the index; When the number of times is greater than or equal to the first threshold, the maximum value is the value with the first value as the base and the first threshold as the index.
  • the method before step 610, the method further includes: if it is detected for the first time that the power bus is in an occupied state, determining a second waiting period to wait for the first time according to the set priority, and determining the next transmission according to the second waiting period command time.
  • the step of determining the second waiting duration to be waited for the first time according to the set priority includes: determining the second time interval according to the set priority, and randomly selecting the second time interval to wait for the first time from the second time interval
  • the waiting time is determined according to the second waiting time to determine the next time of sending the instruction, wherein the minimum value of the second time interval is 1, and the maximum value of the second time interval is negatively correlated with the priority.
  • Step 612 when the functional module detects that the power bus is in an idle state, it sends a second communication instruction to the signal processing module.
  • Step 614 When the signal processing module receives the second communication instruction sent by the functional module, it processes the second communication instruction sent by the functional module to obtain a second carrier signal.
  • Step 616 filter the second carrier signal through the filtering module to couple the second carrier signal to the power bus to obtain a second communication signal, and send the second communication signal to other communication branch paths through the power bus.
  • a "truncated" algorithm is used to determine the waiting time, and the waiting time increases infinitely without increasing the number of waiting times, which optimizes the waiting mechanism of the functional modules on each communication branch path to ensure communication efficiency.
  • the waiting time for the first waiting can be determined according to the priority of the function module, so that the function module with a high priority can be sent first, and the function module with a high priority can be guaranteed to send a communication command successfully.
  • the embodiments of the present application disclose a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the methods described in the foregoing embodiments are implemented.
  • the embodiment of the present application discloses a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the above embodiments.
  • the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), and the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in various forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM ( Double Data Rate SDRAM, DDR SDRAM), Enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), Synchlink DRAM (Synchlink DRAM, SLDRAM), Memory Bus Direct RAM (Rambus DRAM, RDRAM) and Direct Memory Bus Dynamic RAM (Direct Rambus DRAM, DRDRAM).
  • SRAM Static RAM
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous DRAM
  • SDRAM Double Data Rate SDRAM
  • DDR SDRAM Double Data Rate SDRAM
  • Enhanced SDRAM Enhanced Synchronous DRAM
  • ESDRAM Double Data Rate SDRAM
  • Synchlink DRAM Synchlink DRAM
  • Memory Bus Direct RAM Rabus DRAM, RDRAM
  • Direct Memory Bus Dynamic RAM Direct Rambus DRAM, DRDRAM

Abstract

一种总线通信系统、电子设备及总线通信方法。该系统包括通过电源总线连接的至少两个通信分支通路,每一通信分支通路上包括滤波模块、信号处理模块及功能模块,滤波模块用于对其它通信分支通路发送的第一通信信号进行滤波处理,得到第一载波信号;信号处理模块用于对第一载波信号进行解析,得到第一通信指令,并将第一通信指令发送给功能模块;滤波模块还用于将信号处理模块发送的第二载波信号耦合至电源总线,得到第二通信信号,并通过电源总线将第二通信信号发送至其它通信分支通路。

Description

总线通信系统、电子设备及总线通信方法
本申请要求于2021年04月01日提交、申请号为202110358011.7、发明名称为“总线通信系统、电子设备及总线通信方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种总线通信系统、电子设备及总线通信方法。
背景技术
电子设备内部的各个元器件在需要进行通信时,通过元器件之间连接的通信总线进行数据传输,例如,可通过SPMI(System Power Management Interface,系统电源管理接口)总线、SPI(Serial Peripheral Interface,串行外设接口)总线等,又例如,在汽车中的CAN(Controller Area Network,控制器域网)总线等,导致线材耗费,增加了设备成本。
发明内容
本申请实施例公开了一种总线通信系统、电子设备及总线通信方法,能够减少线材耗费,降低总线通信系统的成本,且节省了结构空间,降低了结构设计的难度。
本申请实施例公开了一种总线通信系统,所述系统包括通过电源总线连接的至少两个通信分支通路,每一通信分支通路上包括滤波模块、信号处理模块及功能模块,所述信号处理模块与功能模块连接,所述滤波模块的第一端与所述电源总线连接,所述滤波模块的第二端与所述信号处理模块连接,所述滤波模块的第三端分别与所述信号处理模块及功能模块连接,其中,
所述滤波模块,用于在通过所述电源总线接收到其它通信分支通路发送的第一通信信号时,对所述第一通信信号进行滤波处理,以得到第一载波信号,并将所述第一载波信号耦合至所述信号处理模块;
所述信号处理模块,用于对所述第一载波信号进行解析,得到第一通信指令,并将所述第一通信指令发送给所述功能模块;
所述功能模块,用于执行所述第一通信指令;
所述信号处理模块,还用于对所述功能模块发送的第二通信指令进行处理,得到第二载波信号,并将所述第二载波信号发送至所述滤波模块;
所述滤波模块,还用于在接收到所述信号处理模块发送的所述第二载波信号时,对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号,并通过所述电源总线将所述第二通信信号发送至其它通信分支通路。
本申请实施例公开了一种电子设备,包括如上所述的总线通信系统。
本申请实施例公开了一种总线通信方法,应用于电子设备,所述电子设备包括总线通信系统,所述总线通信系统包括通过电源总线连接的至少两个通信分支通路,所述方法包括:
在目标通信分支通路通过所述电源总线接收到其它通信分支通路发送的第一通信信号时,通过滤波模块对所述第一通信信号进行滤波处理,以得到第一载波信号,并将所述第一载波信号耦合至信号处理模块;
通过所述信号处理模块对耦合的所述第一载波信号进行解析,得到第一通信指令,并由功能模块执行所述第一通信指令;
在所述信号处理模块接收到所述功能模块发送的第二通信指令时,对所述功能模块发 送的第二通信指令进行处理,得到第二载波信号;
通过所述滤波模块对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号,并通过所述电源总线将所述第二通信信号发送至其它通信分支通路。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中总线通信系统的结构框图;
图2为另一个实施例中总线通信系统的结构框图;
图3为另一个实施例中总线通信系统的结构框图;
图4为一个实施例中电子设备的结构框图;
图5为一个实施例中总线通信方法的流程图;
图6为另一个实施例中总线通信方法的流程图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一通信分支通路称为第二通信分支通路,且类似地,可将第二通信分支通路称为第一通信分支通路。第一通信分支通路和第二通信分支通路两者都是通信分支通路,但其不是同一个通信分支通路。
如图1所示,在一个实施例中,提供一种总线通信系统10,该总线通信系统可包括通过电源总线连接的至少两个通信分支通路,每一通信分支通路上均可包括滤波模块、信号处理模块及功能模块,其中,电源总线可包括GND(电线接地端)线、P+线等,但不限于此。
以图1为例,总线通信系统10可包括通信分支通路110及通信分支通路120,需要说明的是,总线通信系统10还可包括更多的通信分支通路,并不仅限于图1中的两个通信分支通路。现以通信分支通路110中包括的滤波模块112、信号处理模块114及功能模块116为例,对各个通信分支通路的通信过程进行说明。
其中,信号处理模块114可与功能模块116连接,滤波模块112的第一端与电源总线连接,滤波模块112的第二端与信号处理模块114连接,滤波模块112的第三端分别与信号处理模块114及功能模块116连接。
滤波模块112,用于在通过电源总线接收到其它通信分支通路发送的第一通信信号时, 对第一通信信号进行滤波处理,以得到第一载波信号,并将第一载波信号耦合至信号处理模块114。
在通信分支通路110通过电源总线接收到其它通信分支通路(例如通信分支通路120)发送的第一通信信号时,由于电源总线是用来传输电信号的总线,因此,通过电源总线传输的第一通信信号中可能会包括一些影响通信的杂波,则可通过滤波模块112对第一通信信号进行滤波处理,得到第一载波信号。在本申请实施例中,该第一载波信号可以是发送第一通信信号的其它通信分支通路将功能模块的通信指令加载到一定频率的高频信号上得到的。
信号处理模块114,用于对第一载波信号进行解析,得到第一通信指令,并将第一通信指令发送给功能模块116。
信号处理模块114可包括电源总线协议IC(integrated circuit,集成电路),信号处理模块114中可包括调制及解调单元。可选地,信号处理模块114可通过调制及解调单元对第一载波信号进行解调,得到数字信号,该数字信号可作为第一通信指令,并将该解调得到的数字信号发送至功能模块116。
作为一种具体实施方式,信号处理模块114可分析第一载波信号的频率,以及该频率对应的持续时长,若第一载波信号的频率为第一数值,且该第一载波信号的频率维持在第一数值的持续时长超过一个比特率限制的最短时长,则可解析得到相应比特的数字信号为“0”。若第一载波信号的频率为第二数值,且该第一载波信号的频率维持在第二数值的持续时长超过一个比特率限制的最短时长,则可解析得到相应字节的数字信号为“1”。可选地,第一数值与第二数值可根据实际需求进行设置,最短时长也可根据实际需求进行设置,例如,第一数值可为100MHz(兆赫兹),第二数值可为200MHz,最短时长可为1μs(微秒)、0.5μs等,第一数值可小于第二数值,第一数值也可大于第二数值,在此不作限定。
功能模块116,用于执行信号处理模块114发送的第一通信指令。
功能模块116可包括电源模块、MCU(Microcontroller Unit,微控制单元)、CPU(central processing unit,中央处理器)、CPU核、显示模块等,但不限于此。不同通信分支通路上的功能模块可相同,也可不同。功能模块116在接收到该第一通信指令后,可执行该第一通信指令。
以通信分支通路110中的功能模块116是电源模块为例,若第一通信信号是包含CPU的通信分支通路发送的,该第一通信指令为控制电源模块停止向CPU供电的指令,则电源模块在接收到该第一通信指令后,可停止向CPU供电。可选地,该电源模块可包括PMIC(Power Management IC,集成电源管理电路)芯片等。
可选地,通信分支通路还可包括驱动模块,该驱动模块可用于驱动硬件工作,例如,该驱动模块可包括灯光驱动模块、电机驱动模块等,但不限于此,每条通信分支通路可包含一个或多个驱动模块,不同通信分支通路的驱动模块可相同也可不同。以通信分支通路110中的功能模块116是MCU、驱动模块是灯光驱动模块为例,若第一通信信号是包含CPU的通信分支通路发送的,该第一通信指令为控制灯光开启的指令,则MCU在接收到该第一通信指令后,可向灯光驱动模块发送驱动信号,以使得灯光驱动模块驱动连接的灯光开启。
在一些实施例中,信号处理模块114还用于对第一载波信号进行解调,得到第一通信指令,并通过串行数据总线将第一通信指令发送给功能模块116。信号处理模块114与功能模块116之间可通过串行数据总线连接,可通过该串行数据总线进行数据传输,该串行数据总线可包括SPI总线、UART(Universal Asynchronous Receiver/Transmitter,通用异步收发传输器)总线、IIC(Inter-Integrated Circuit,集成电路)总线等中的任一种,但不限于此。
功能模块116与驱动模块之间也可通过串行数据总线进行数据传输,或是可通过GPIO(General-purpose input/output,通用输入/输出口)接口等进行数据传输。同一通信分支通路上的不同模块之间可通过串行数据总线进行数据传输,可保证数据传输的准确性,不同通信分支通路之间则可通过电源总线进行数据传输,可保证数据传输效率,并减少线材耗费。
信号处理模块114,还用于对功能模块116发送的第二通信指令进行处理,得到第二载波信号,并将该第二载波信号发送至滤波模块112。
在通信分支通路110的功能模块116需要向其它通信分支通路(例如通信分支通路120)的功能模块发送第二通信指令时,可向信号处理模块114发送第二通信指令。信号处理模块114可对接收到的第二通信指令进行调制,生成第二载波信号,并将生成的第二载波信号发送至滤波模块112。
在一个实施例中,信号处理模块114,还用于通过串行数据总线接收功能模块116发送的第二通信指令,并对第二通信指令进行调制,得到第二载波信号,并将所二载波信号发送至滤波模块112。
滤波模块112,还用于在接收到信号处理模块114发送的第二载波信号时,对第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号,并通过电源总线将第二通信信号发送至其它通信分支通路。
滤波模块112可滤除信号处理模块114发送的第二载波信号中的杂波信号,并将滤波处理后的第二载波信号耦合至电源总线,得到在电源总线上传输的第二通信信号,可将该第二通信信号发送至其它通信分支通路。
在本申请实施例中,通过电源总线即可实现不同通信分支通路上的功能模块之间的通信指令传输,无需额外设置通信总线,能够减少线材耗费,降低总线通信系统的成本,且节省了结构空间,降低了结构设计的难度。
此外,利用电源总线进行通信,可提高通信信号的传输速度,传输速度可达到10Mb/s(兆比特/秒)以上,且多个通信分支通路耦合到同一电源总线上,能够提高稳定性。
如图2所示,在一个实施例中,滤波模块112可包括电感202及电容204,电感202及电容204均可与电源总线连接,且电感202及电容204可并联连接。电感202可分别与信号处理模块114及功能模块116连接,电容204可与信号处理模块114连接。
电感202,用于对第一通信信号中包含的第一载波信号进行隔离。
电感202可起到“隔交通直”的作用,即电感202可阻隔交流信号并使直流信号通过,交流信号指的是传输的信号随时间作周期性变化,直流信号指的是传输的信号不随时间变化,基本上保持恒定或波动极小。第一载波信号为交流信号,因此,利用电感202的隔交通直,电感202可将第一通信信号中包含的第一载波信号阻隔在电感202的腔体之中,使其不被直接传输到功能模块114。
电容204,用于滤除第一通信信号中包含的直流电信号,以得到第一载波信号,并将第一载波信号耦合至信号处理模块114。
电容204可起到“隔直通交”的作用,即电容204可阻隔直流信号,并使交流信号通过。由于第一通信信号是在电源总线上传输的,因此该第一通信信号中可能包含有直流电信号,可利用电容204的隔直通交,滤除第一通信信号中包含的直流电信号,以得到第一载波信号。进一步地,电容204可与信号处理模块114的通信接口连接,电容204可通过该通信接口将得到的第一载波信号耦合至信号处理模块114。利用电感202及电容204,可实现对电源总线上传输的第一通信信号中包含的第一载波信号及直流电信号的分离,使得输入到信号处理模块114进行解调的信号是第一载波信号,提高了得到的第一通信指令的 准确性,保证了信号传输的质量。
电容204,还用于对信号处理模块114发送的第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号。
如图3所示,在一个实施例中,总线通信系统10可至少包括第一通信分支通路110及第二通信分支通路120,该第一通信分支通路110的功能模块116可为电源模块。第一通信分支通路110的电感L1可与信号处理模块114、电源模块116的电源接口连接,第二通信分支通路120的电感L2也可与信号处理模块124、功能模块126的电源接口连接。
在第二通信分支通路120接收到第一通信分支通路110发送的第一通信信号时,第二通信分支通路120的电感L2,用于对该第一通信信号中包含的第一载波信号进行滤波,以得到直流电信号,以对第二通信分支通路120的信号处理模块124及功能模块126进行供电。
第一通信分支通路110的电源模块115可通过电源总线向总线通信系统10中的其它元器件传输直流电信号,从而可为总线通信系统10中的各个元器件进行供电。在第二通信分支通路120接收到第一通信分支通路110发送的第一通信信号时,可通过电感L2及电容C2对第一通信信号进行滤波处理,以将第一通信信号中包含的第一载波信号及直流电信号进行分离,直流电信号可通过电感L2,并传输到信号处理模块124及功能模块126的电源接口,第一载波信号可通过电容C2,并传输到信号处理模块124的通信接口。信号处理模块124可对通过该通信接口接收到的第一载波信号进行解调,得到电源模块116发送的通信指令,并将该通信指令发送给功能模块126。
在一些实施例中,第一通信分支通路110的电感L1,还用于对电源模块发送的电信号进行滤波,以得到直流电信号。第一通信分支通路110的电容C1,还用于对第一通信分支通路110的信号处理模块114发送的第二载波信号进行滤波,并将第二载波信号与第一通信分支通路110的电感L1得到的直流电信号进行耦合,得到第二通信信号。
在电源模块116需要向第二通信分支通路120的功能模块126发送的通信指令时,电源模块116可将该通信指令发送到信号处理模块114,信号处理模块114可对电源模块116发送的通信指令进行调制,得到第二载波信号,并通过通信接口输出到电容C1。利用电容C1的隔直通交,可滤除第二载波信号中的杂波。
同时,电源模块116可通过电源接口向电感L1输出电信号,利用电感L1的隔交通直,可滤除电信号中的杂波,得到直流电信号,该直流电信号可与电容L1得到的第二载波信号耦合到电源总线,得到第二通信信号,并通过电源总线进行传输。
在一些实施例中,电源模块116输出的电信号可包括电压,电感L1还可用于对电源模块116输出的电压进行降压处理,该电感L1可为功率电感,可直接将功率电感复用为隔离电感,不需要增加额外的电感器件,可降低成本,并精简电路。
在本申请实施例中,通过电感及电容对电源总线上传输的通信信号进行滤波,将电源总线上传输的载波信号分离,并准确传输到信号处理模块进行解调,可通过电感及电容对信号处理模块及功能模块传输的信号进行滤波,以将需要发送的载波信号耦合到电源总线上,并准确传输到其它通信分支通路的功能模块,通过电源总线即可实现不同通信分支通路上的功能模块之间的通信指令传输,无需额外设置通信总线,能够减少线材耗费,降低总线通信系统的成本,且节省了结构空间,降低了结构设计的难度。且在本申请实施例中,仅利用电感及电容即实现在电源总线上进行通信,电路结构简单,进一步降低了成本。
在一些实施例中,功能模块116,还用于对电源总线上传输的通信信号进行监听,并在检测到电源总线处于空闲状态时,向信号处理模块114发送第二通信指令,其中,空闲状态为电源总线没有传输通信信号的状态。
在通信分支通路110的功能模块116需要向其它通信分支通路发送通信指令时,可对电源总线上传输的通信信号进行监听,判断是否存在其它通信分支通路的功能模块正在发送通信指令。若不存在其它通信分支通路的功能模块正在发送通信指令,则可确定电源总线可处于空闲状态,功能模块116可向信号处理模块114发送第二通信指令,以使得信号处理模块114对第二通信指令进行调制,得到第二载波信号,并通过滤波模块112耦合到电源总线。
进一步地,在通信分支通路110的功能模块116需要向其它通信分支通路发送通信指令时,可判断是否接收到其它通信分支通路发送的通知信号,若接收到该通知信号,则可说明电源总线处于占用状态,该占用状态为电源总线正在传输通信信号的状态,则功能模块116暂时不发送第二通信指令。若未接收到通知信号,则可说明电源总线处于空闲状态,则可向信号处理模块114发送第二通信指令。
在一些实施例中,各个通信分支通路的功能模块在初始化时,均可进入监听状态,当任一功能模块向其它通信分支通路的功能模块发送通信指令时,可同时向其它所有通信分支通路的功能模块发送通知信号,该通知信号可用于通知其它各个通信分支通路的功能模块,电源总线正在进行通信信号传输。正在发送通信指令的功能模块,可通过同一通信分支通路上的信号处理模块对通知信号进行调制,得到相应的载波信号,并通过滤波模块将该载波信号耦合到电源总线,从而可传输到其它各个通信分支通路,其它各个通信分支通路上的滤波模块可从电源总线上解耦得到该载波信号,并通过信号处理模块进行解调,得到通知信号。
在本申请实施例中,电源总线中一次仅可传输一个通信信号,可保证数据传输的准确性及数据传输效率,保证整个系统的稳定性。
在一些实施例中,功能模块116,还用于对电源总线上传输的通信信号进行监听,在检测到电源总线处于占用状态时,不向信号处理模块114发送第二通信指令,并在到达下一发送指令时刻时,重新对电源总线上传输的通信信号进行监听,直至检测到电源总线处于空闲状态,则向信号处理模块114发送第二通信指令。
在检测到电源总线处于占用状态时,功能模块116可进入等待状态,并可确定下一发送指令时刻,在到达确定的下一发送指令时刻时,再重新检测电源总线是否处于空闲状态。可选地,功能模块116还用于在检测到电源总线处于占用状态时,根据等待次数确定本次需等待的第一等待时长,并根据第一等待时长确定下一发送指令时刻,在到达下一发送指令时刻时,重新对电源总线上传输的通信信号进行监听。
该等待次数可指的是功能模块116需要进行等待的次数,也可理解为功能模块116检测到电源总线处于占用状态的次数,例如,在功能模块116首次检测到电源总线处于占用状态时,等待次数可为1,在功能模块116经过一次等待,并第2次检测到电源总线处于占用状态时,等待次数可更新为2……。功能模块116若持续检测到电源总线处于占用状态,则等待次数会相应进行累加,直至功能模块116检测到电源总线处于空闲状态,成功发送第二通信指令,则等待状态可清为0。
第一等待时长可与等待次数呈正相关关系,等待次数越多,第一等待时长可越长,可选地,该第一等待时长可与等待次数呈正比例关系。例如,等待次数为1,则第一等待时长可为5μs,待等次数为2,第一等待时长可为10μs等,但不限于此。
可选地,第一等待时长可以是具体的时间时长,也可以是单位时间长度,单位时间长度可用于表示需要等待的单位时间的数量,例如,第一等待时长为3,单位时间为5μs,则表示需要等待3个5μs的时间。若第一等待时长为具体的时间时长,则下一发送指令时刻可为当前时刻与第一等待时长之和;若第一等待时长为单位时间长度,则下一发送指令 时刻可以是,第一等待时长和单位时间的乘积,与当前时刻之和。
在一些实施例中,功能模块116,还用于在检测到电源总线处于占用状态时,根据等待次数确定第一时间区间,并从第一时间区间中随机选取本次需等待的第一等待时长,根据第一等待时长确定下一发送指令时刻,在到达下一发送指令时刻时,重新对电源总线上传输的通信信号进行监听。
其中,第一时间区间的最小值为1,第一时间区间的最大值可与等待次数呈正相关关系。作为一种具体实施方式,在等待次数小于第一阈值时,该第一时间区间的最大值为以第一数值为底数,以等待次数为指数的值。在等待次数大于或等于第一阈值时,第一时间区间的最大值为以第一数值为底数,以第一阈值为指数的值。
第一阈值及第一数值可根据实际需求进行设置,例如,第一阈值可为10、11、8等,第一数值可为2等,但不限于此。以第一阈值为10,第一数值为2为例,在等待次数n<10时,第一时间区间可为[1,2n],在等待次数n≥10时,第一时间区间可为[1,210]。第一等待时长可为单位时间长度,在根据等待次数确定第一时间区间后,可从第一时间区间随机选择一个整数值作为第一等待时长。例如,等待次数为2,则第一时间区间为[1,4],可从1、2、3、4中随机选择一个数值作为第一等待时长。
在本申请实施例中,采用“截断式”算法来确定等待时长,等待时长不随等待次数地增长无限增加,优化了各通信分支通路上功能模块的等待机制,保证通信效率。
在一个实施例中,功能模块116,还用于在首次检测到电源总线处于占用状态时,根据设置的优先级确定首次需等待的第二等待时长,并根据第二等待时长确定下一发送指令时刻,并在到达下一发送指令时刻时,重新对电源总线上传输的通信信号进行监听。
不同功能模块可分别对应不同的优先级,各功能模块的优先级可根据实际需求进行设置,例如,CPU的优先级可高于MCU的优先级,处理器上的多个CPU核之间也可分别设置不同的优先级等。在功能模块116首次检测到电源总线处于占用状态时,可根据功能模块116设置的优先级确定首次需等待的第二等待时长,该第二等待时长可与优先级呈负相关关系,优先级越高,第二等待时长可越短。
进一步地,功能模块116,还用于在首次检测到电源总线处于占用状态时,根据设置的优先级确定第二时间区间,并从第二时间区间中随机选取首次需等待的第二等待时长,根据第二等待时长确定下一发送指令时刻,并在到达下一发送指令时刻时,重新对电源总线上传输的通信信号进行监听。
其中,第二时间区间的最小值为1,第二时间区间的最大值与优先级呈负相关关系。例如,优先级高的功能模块对应的第二时间区间可为[1,2],优先级低的功能模块对应的第二时间区间可为[1,23]等,但不限于此。该第二等待时长可为单位时间长度,在设置的优先级确定第二时间区间后,可从第二时间区间随机选择一个整数值作为第二等待时长。
在功能模块116首次等待后,若继续检测到电源总线处于占用状态,则可根据上述实施例中描述的利用等待次数确定第一等待时长的方式,确定每一次的等待时长。
需要说明的是,上述各实施例中仅以功能模块116进行说明,其它各个通信分支通路中的功能模块的工作模式可参照功能模块116的相关描述,上述的等待机制可适用于每个通信分支通路中的功能模块,并不仅限于功能模块116。
在本申请实施例中,可根据功能模块的优先级确定首次等待的等待时长,可使得优先级高的功能模块优先进行发送,保证优先级高的功能模块成功发送通信指令。
如图4所示,在一个实施例中,提供一种电子设备400,该电子设备可包括上述各实施例中所描述的总线通信系统10,该电子设备400可包括但不限于车载终端、包括车载终端的车辆、机器人、可穿戴设备、手机、平板电脑等。
在一些实施例中,总线通信系统10可应用于车辆。在相关的技术中,车辆内部的各个功能模块(如车灯模块、显示模块、电源模块、中心控制模块、发动机模块及空调模块等)之间是需要通过CAN总线进行通信的,而CAN总线为双绞线,当功能模块较多的时候,车辆需要耗费较多的线材,且CAN总线占用大量的空间,给车辆内部的结构设计带来障碍。而在本申请实施例中,应用于车辆的总线通信系统10,车辆内部的各个功能模块可通过电源总线进行通信,无需额外设置通信总线,能够减少线材耗费,降低了车辆的成本,且节省了车辆内部的结构空间,降低了结构设计的难度。
在一些实施例中,总线通信系统10可应用于机器人。在相关的技术中,机器人内部的各个功能模块(如传感器模块、摄像头模块、电源模块、中心控制模块、按钮模块等)之间是需要通过CAN总线进行通信的,而CAN总线为双绞线,当功能模块较多的时候,机器人需要耗费较多的线材,且CAN总线占用大量的空间,给机器人内部的结构设计带来障碍。而在本申请实施例中,应用于机器人的总线通信系统10,机器人内部的各个功能模块可通过电源总线进行通信,无需额外设置通信总线,能够减少线材耗费,降低了机器人的成本,且节省了机器人内部的结构空间,降低了结构设计的难度。
如图5所示,在一个实施例中,提供一种总线通信方法,可应用于如图4所示的电子设备,该电子设备包括上述各实施例中所描述的总线通信系统10。该方法可包括以下步骤:
步骤510,在目标通信分支通路通过电源总线接收到其它通信分支通路发送的第一通信信号时,通过滤波模块对第一通信信号进行滤波处理,以得到第一载波信号,并将第一载波信号耦合至信号处理模块。
步骤520,通过信号处理模块对耦合的第一载波信号进行解析,得到第一通信指令,并由功能模块执行第一通信指令。
步骤530,在信号处理模块接收到功能模块发送的第二通信指令时,对功能模块发送的第二通信指令进行处理,得到第二载波信号。
步骤540,通过滤波模块对第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号,并通过电源总线将第二通信信号发送至其它通信分支通路。
其中,目标通信分支通路可为总线通信系统10中的任一通信分支通路。需要说明的是,步骤530、540也可在步骤510之前执行,其步骤顺序在此不作限定。
在本申请实施例中,通过电源总线即可实现不同通信分支通路上的功能模块之间的通信指令传输,无需额外设置通信总线,能够减少线材耗费,降低总线通信系统的成本,且节省了结构空间,降低了结构设计的难度。
在一个实施例中,滤波模块包括电容和电感。
步骤通过滤波模块对第一通信信号进行滤波处理,以得到第一载波信号,并将第一载波信号耦合至信号处理模块,包括:通过电感对第一通信信号中包含的第一载波信号进行隔离;通过电容滤除第一通信信号中包含的直流电信号,以得到第一载波信号,并将第一载波信号耦合至信号处理模块。
步骤通过滤波模块对第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号,包括:通过电容对第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号。
在本申请实施例中,通过电感及电容对电源总线上传输的通信信号进行滤波,将电源总线上传输的载波信号分离,并准确传输到信号处理模块进行解调,可通过电感及电容对信号处理模块及功能模块传输的信号进行滤波,以将需要发送的载波信号耦合到电源总线上,并准确传输到其它通信分支通路的功能模块,通过电源总线即可实现不同通信分支通路上的功能模块之间的通信指令传输,无需额外设置通信总线,能够减少线材耗费,降低 总线通信系统的成本,且节省了结构空间,降低了结构设计的难度。且在本申请实施例中,仅利用电感及电容即实现在电源总线上进行通信,电路结构简单,进一步降低了成本。
如图6所示,在一个实施例中,提供另一种总线通信方法,可应用于上述的电子设备,该电子设备可包括以下步骤:
步骤602,在目标通信分支通路通过电源总线接收到其它通信分支通路发送的第一通信信号时,通过滤波模块对第一通信信号进行滤波处理,以得到第一载波信号,并将第一载波信号耦合至信号处理模块。
步骤604,通过信号处理模块对耦合的第一载波信号进行解析,得到第一通信指令,并由功能模块执行第一通信指令。
步骤606,通过功能模块对电源总线上传输的通信信号进行监听。
步骤608,在功能模块检测到电源总线处于占用状态时,不向获取信号处理模块发送第二通信指令。
步骤610,判断是否到达下一发送指令时刻,若是,则执行步骤606,若否,则继续执行步骤610。
在一个实施例中,在步骤610之前,还包括:确定下一发送指令时刻。确定下一发送指令时刻,包括:根据等待次数确定本次需等待的第一等待时长,并根据第一等待时长确定下一发送指令时刻。
在一个实施例中,步骤根据等待次数确定本次需等待的第一等待时长,包括:根据等待次数确定第一时间区间,并从第一时间区间中随机选取本次需等待的第一等待时长。
在一个实施例中,第一时间区间的最小值为1,在等待次数小于第一阈值时,第一时间区间的最大值为以第一数值为底数,以等待次数为指数的值;在等待次数大于或等于第一阈值时,最大值为以第一数值为底数,以第一阈值为指数的值。
在一个实施例中,在步骤610之前,还包括:若是首次检测到电源总线处于占用状态,则根据设置的优先级确定首次需等待的第二等待时长,并根据第二等待时长确定下一发送指令时刻。
在一个实施例中,步骤根据设置的优先级确定首次需等待的第二等待时长,包括:根据设置的优先级确定第二时间区间,并从第二时间区间中随机选取首次需等待的第二等待时长,根据第二等待时长确定下一发送指令时刻,其中,第二时间区间的最小值为1,第二时间区间的最大值与优先级呈负相关关系。
步骤612,在功能模块检测到电源总线处于空闲状态时,向信号处理模块发送第二通信指令。
步骤614,在信号处理模块接收到功能模块发送的第二通信指令时,对功能模块发送的第二通信指令进行处理,得到第二载波信号。
步骤616,通过滤波模块对第二载波信号进行滤波处理,以将第二载波信号耦合至电源总线,得到第二通信信号,并通过电源总线将第二通信信号发送至其它通信分支通路。
在本申请实施例中,采用“截断式”算法来确定等待时长,等待时长不随等待次数地增长无限增加,优化了各通信分支通路上功能模块的等待机制,保证通信效率。而且可根据功能模块的优先级确定首次等待的等待时长,可使得优先级高的功能模块优先进行发送,保证优先级高的功能模块成功发送通信指令。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例中描述的方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描 述的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (22)

  1. 一种总线通信系统,其特征在于,所述系统包括通过电源总线连接的至少两个通信分支通路,每一通信分支通路上包括滤波模块、信号处理模块及功能模块,所述信号处理模块与功能模块连接,所述滤波模块的第一端与所述电源总线连接,所述滤波模块的第二端与所述信号处理模块连接,所述滤波模块的第三端分别与所述信号处理模块及功能模块连接,其中,
    所述滤波模块,用于在通过所述电源总线接收到其它通信分支通路发送的第一通信信号时,对所述第一通信信号进行滤波处理,以得到第一载波信号,并将所述第一载波信号耦合至所述信号处理模块;
    所述信号处理模块,用于对所述第一载波信号进行解析,得到第一通信指令,并将所述第一通信指令发送给所述功能模块;
    所述功能模块,用于执行所述第一通信指令;
    所述信号处理模块,还用于对所述功能模块发送的第二通信指令进行处理,得到第二载波信号,并将所述第二载波信号发送至所述滤波模块;
    所述滤波模块,还用于在接收到所述信号处理模块发送的所述第二载波信号时,对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号,并通过所述电源总线将所述第二通信信号发送至其它通信分支通路。
  2. 根据权利要求1所述的系统,其特征在于,所述滤波模块包括电容及电感,所述电容与电感与所述电源总线连接,且所述电容与电感并联连接,所述电容与所述信号处理模块连接,所述电感分别与所述信号处理模块及功能模块连接;
    所述电感,用于对所述第一通信信号中包含的第一载波信号进行隔离;
    所述电容,用于滤除所述第一通信信号中包含的直流电信号,以得到第一载波信号,并将所述第一载波信号耦合至所述信号处理模块;
    所述电容,还用于对所述信号处理模块发送的所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到所述第二通信信号。
  3. 根据权利要求2所述的系统,其特征在于,所述功能模块包括电源模块,所述电感分别与所述信号处理模块及功能模块的电源接口连接;
    所述系统至少包括第一通信分支通路和第二通信分支通路,所述第一通信分支通路的功能模块为所述电源模块,在所述第二通信分支通路接收到所述第一通信分支通路发送的第一通信信号时,
    所述第二通信分支通路的电感,用于对所述第一通信信号中包含的第一载波信号进行滤波,以得到直流电信号,以对所述第二通信分支通路的信号处理模块及功能模块进行供电。
  4. 根据权利要求3所述的系统,其特征在于,所述第一通信分支通路的电感,用于对所述电源模块发送的电信号进行滤波,以得到直流电信号;
    所述第一通信分支通路的电容,用于对所述第一通信分支通路的信号处理模块发送的第二载波信号进行滤波,并将所述第二载波信号与所述第一通信分支通路的电感得到的直流电信号进行耦合,得到所述第二通信信号。
  5. 根据权利要求1所述的系统,其特征在于,所述功能模块,还用于对所述电源总线上传输的通信信号进行监听,并在检测到所述电源总线处于空闲状态时,向所述信号处理模块发送所述第二通信指令,其中,所述空闲状态为所述电源总线没有传输通信信号的状态。
  6. 根据权利要求1所述的系统,其特征在于,所述功能模块,还用于对所述电源总线 上传输的通信信号进行监听,在检测到所述电源总线处于占用状态时,不向所述信号处理模块发送所述第二通信指令,并在到达所述下一发送指令时刻时,重新对所述电源总线上传输的通信信号进行监听,直至检测到所述电源总线处于空闲状态,则向所述信号处理模块发送所述第二通信指令,其中,所述占用状态为所述电源总线正在传输通信信号的状态。
  7. 根据权利要求6所述的系统,其特征在于,所述功能模块,还用于在检测到所述电源总线处于占用状态时,根据等待次数确定本次需等待的第一等待时长,并根据所述第一等待时长确定下一发送指令时刻,在到达所述下一发送指令时刻时,重新对所述电源总线上传输的通信信号进行监听。
  8. 根据权利要求7所述的系统,其特征在于,所述功能模块,还用于在检测到所述电源总线处于占用状态时,根据等待次数确定第一时间区间,并从所述第一时间区间中随机选取本次需等待的第一等待时长,根据所述第一等待时长确定下一发送指令时刻,在到达所述下一发送指令时刻时,重新对所述电源总线上传输的通信信号进行监听。
  9. 根据权利要求8所述的系统,其特征在于,所述第一时间区间的最小值为1,在所述等待次数小于第一阈值时,所述第一时间区间的最大值为以第一数值为底数,以所述等待次数为指数的值;
    在所述等待次数大于或等于所述第一阈值时,所述最大值为以第一数值为底数,以所述第一阈值为指数的值。
  10. 根据权利要求6-9任一所述的系统,其特征在于,所述功能模块,还用于在首次检测到所述电源总线处于占用状态时,根据设置的优先级确定首次需等待的第二等待时长,并根据所述第二等待时长确定下一发送指令时刻,并在到达所述下一发送指令时刻时,重新对所述电源总线上传输的通信信号进行监听。
  11. 根据权利要求10所述的系统,其特征在于,所述功能模块,还用于在首次检测到所述电源总线处于占用状态时,根据设置的优先级确定第二时间区间,并从所述第二时间区间中随机选取首次需等待的第二等待时长,根据所述第二等待时长确定下一发送指令时刻,并在到达所述下一发送指令时刻时,重新对所述电源总线上传输的通信信号进行监听;
    其中,所述第二时间区间的最小值为1,所述第二时间区间的最大值与所述优先级呈负相关关系。
  12. 根据权利要求1-9任一所述的系统,其特征在于,所述信号处理模块,还用于对所述第一载波信号进行解调,得到所述第一通信指令,并通过串行数据总线将所述第一通信指令发送给所述功能模块;以及用于通过所述串行数据总线接收所述功能模块发送的所述第二通信指令,并对所述第二通信指令进行调制,得到第二载波信号,并将所述第二载波信号发送至所述滤波模块。
  13. 根据权利要求12所述的系统,其特征在于,所述串行数据总线包括串行外设接口SPI总线、通用异步收发传输器UART总线、集成电路总线IIC总线中的任一种。
  14. 一种电子设备,其特征在于,包括如权利要求1-13任一所述的总线通信系统。
  15. 一种总线通信方法,其特征在于,应用于电子设备,所述电子设备包括总线通信系统,所述总线通信系统包括通过电源总线连接的至少两个通信分支通路,所述方法包括:
    在目标通信分支通路通过所述电源总线接收到其它通信分支通路发送的第一通信信号时,通过滤波模块对所述第一通信信号进行滤波处理,以得到第一载波信号,并将所述第一载波信号耦合至信号处理模块;
    通过所述信号处理模块对耦合的所述第一载波信号进行解析,得到第一通信指令,并由功能模块执行所述第一通信指令;
    在所述信号处理模块接收到所述功能模块发送的第二通信指令时,对所述功能模块发 送的第二通信指令进行处理,得到第二载波信号;
    通过所述滤波模块对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号,并通过所述电源总线将所述第二通信信号发送至其它通信分支通路。
  16. 根据权利要求15所述的方法,其特征在于,所述滤波模块包括电容和电感,所述通过滤波模块对所述第一通信信号进行滤波处理,以得到第一载波信号,并将所述第一载波信号耦合至信号处理模块,包括:
    通过所述电感对所述第一通信信号中包含的第一载波信号进行隔离;
    通过所述电容滤除所述第一通信信号中包含的直流电信号,以得到第一载波信号,并将所述第一载波信号耦合至所述信号处理模块;
    所述通过所述滤波模块对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号,包括:
    通过所述电容对所述第二载波信号进行滤波处理,以将所述第二载波信号耦合至所述电源总线,得到第二通信信号。
  17. 根据权利要求15所述的方法,其特征在于,所述在所述信号处理模块接收到所述功能模块发送的第二通信指令时,对所述功能模块发送的第二通信指令进行处理之前,所述方法还包括:
    通过所述功能模块对所述电源总线上传输的通信信号进行监听;
    在所述功能模块检测到所述电源总线处于空闲状态时,向所述信号处理模块发送所述第二通信指令。
  18. 根据权利要求15所述的方法,其特征在于,所述在所述信号处理模块接收到所述功能模块发送的第二通信指令时,对所述功能模块发送的第二通信指令进行处理之前,所述方法还包括:
    通过所述功能模块对所述电源总线上传输的通信信号进行监听;
    在所述功能模块检测到所述电源总线处于占用状态时,不向所述获取信号处理模块发送所述第二通信指令,并在到达所述下一发送指令时刻时,重新执行所述通过所述功能模块对所述电源总线上传输的通信信号进行监听的步骤,直至所述功能模块检测到所述电源总线处于空闲状态,则向所述信号处理模块发送所述第二通信指令。
  19. 根据权利要求18所述的方法,其特征在于,所述在到达所述下一发送指令时刻时,重新执行所述通过所述功能模块对所述电源总线上传输的通信信号进行监听的步骤之前,所述方法还包括:
    根据等待次数确定第一时间区间,并从所述第一时间区间中随机选取本次需等待的第一等待时长,根据所述第一等待时长确定下一发送指令时刻。
  20. 根据权利要求19所述的方法,其特征在于,所述第一时间区间的最小值为1,在所述等待次数小于第一阈值时,所述第一时间区间的最大值为以第一数值为底数,以所述等待次数为指数的值;
    在所述等待次数大于或等于所述第一阈值时,所述最大值为以第一数值为底数,以所述第一阈值为指数的值。
  21. 根据权利要求18-20任一所述的方法,其特征在于,所述在到达所述下一发送指令时刻时,重新执行所述通过所述功能模块对所述电源总线上传输的通信信号进行监听的步骤之前,所述方法还包括:
    若是首次检测到所述电源总线处于占用状态,则根据设置的优先级确定首次需等待的第二等待时长,并根据所述第二等待时长确定下一发送指令时刻。
  22. 根据权利要求21所述的方法,其特征在于,所述根据设置的优先级确定首次需等待的第二等待时长,包括:
    根据设置的优先级确定第二时间区间,并从所述第二时间区间中随机选取首次需等待的第二等待时长,根据所述第二等待时长确定下一发送指令时刻,其中,所述第二时间区间的最小值为1,所述第二时间区间的最大值与所述优先级呈负相关关系。
PCT/CN2022/077920 2021-04-01 2022-02-25 总线通信系统、电子设备及总线通信方法 WO2022206236A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110358011.7 2021-04-01
CN202110358011.7A CN113242166B (zh) 2021-04-01 2021-04-01 总线通信系统、电子设备及总线通信方法

Publications (1)

Publication Number Publication Date
WO2022206236A1 true WO2022206236A1 (zh) 2022-10-06

Family

ID=77130950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/077920 WO2022206236A1 (zh) 2021-04-01 2022-02-25 总线通信系统、电子设备及总线通信方法

Country Status (2)

Country Link
CN (1) CN113242166B (zh)
WO (1) WO2022206236A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242166B (zh) * 2021-04-01 2023-07-14 Oppo广东移动通信有限公司 总线通信系统、电子设备及总线通信方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739336A (zh) * 2016-01-29 2016-07-06 大连楼兰科技股份有限公司 基于电源线进行数据传输的装置及汽车总线实现方法
CN105897328A (zh) * 2016-04-26 2016-08-24 清华大学深圳研究生院 一种微小卫星信息处理系统及其通信方法
WO2016206176A1 (zh) * 2015-06-25 2016-12-29 中兴通讯股份有限公司 智能家居中央控制器、终端、系统及控制方法
CN212627815U (zh) * 2020-06-05 2021-02-26 深圳市爱宝莱照明技术有限公司 信号调制电路、信号解调电路、调制解调模块及电子设备
CN113242166A (zh) * 2021-04-01 2021-08-10 Oppo广东移动通信有限公司 总线通信系统、电子设备及总线通信方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4096571A (en) * 1976-09-08 1978-06-20 Codex Corporation System for resolving memory access conflicts among processors and minimizing processor waiting times for access to memory by comparing waiting times and breaking ties by an arbitrary priority ranking
CN103186109B (zh) * 2011-12-31 2016-08-17 比亚迪股份有限公司 电动汽车的控制系统及具有其的电动汽车
CN105592478A (zh) * 2014-11-07 2016-05-18 中兴通讯股份有限公司 信号的检测处理方法及装置
CN105046935B (zh) * 2015-08-13 2018-05-22 青岛东软载波科技股份有限公司 一种基于低压电力线和微功率无线的双模异构通信系统
CN105049085B (zh) * 2015-08-20 2018-01-30 深圳市拉格朗日电子有限公司 一种电力线通信系统
CN110543791A (zh) * 2019-09-30 2019-12-06 深圳市金瑞铭科技有限公司 一种阅读器系统及设置方法
CN112187474B (zh) * 2020-09-27 2024-04-09 三未信安科技股份有限公司 基于iic多主一从通信的密码认证自协商切换系统及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016206176A1 (zh) * 2015-06-25 2016-12-29 中兴通讯股份有限公司 智能家居中央控制器、终端、系统及控制方法
CN106325084A (zh) * 2015-06-25 2017-01-11 中兴通讯股份有限公司 智能家居中央控制器、终端、系统及控制方法
CN105739336A (zh) * 2016-01-29 2016-07-06 大连楼兰科技股份有限公司 基于电源线进行数据传输的装置及汽车总线实现方法
CN105897328A (zh) * 2016-04-26 2016-08-24 清华大学深圳研究生院 一种微小卫星信息处理系统及其通信方法
CN212627815U (zh) * 2020-06-05 2021-02-26 深圳市爱宝莱照明技术有限公司 信号调制电路、信号解调电路、调制解调模块及电子设备
CN113242166A (zh) * 2021-04-01 2021-08-10 Oppo广东移动通信有限公司 总线通信系统、电子设备及总线通信方法

Also Published As

Publication number Publication date
CN113242166A (zh) 2021-08-10
CN113242166B (zh) 2023-07-14

Similar Documents

Publication Publication Date Title
US11108279B2 (en) Method for determining cross connection in wireless charging
US20170331523A1 (en) Wireless power transmission network and wireless power transmission method
JP2018161046A (ja) 複数の充電ポートを含む電子デバイスにおける電力経路スイッチング
WO2022206236A1 (zh) 总线通信系统、电子设备及总线通信方法
KR20120128099A (ko) 무선 전력 송신 시스템에서의 송신기 및 수신기, 상기 장치들의 무선 전력 송수신 방법
US20130088237A1 (en) Battery-monitoring device
US9923605B2 (en) Electronic apparatus
CN111669807A (zh) 车载系统的射频唤醒
US10312914B2 (en) Gate driver with serial communication
KR101994741B1 (ko) 무선 전력 수신 장치 및 무선 전력 수신 장치의 제어 방법
US20200136412A1 (en) Power supply device
JPH10262071A (ja) バッテリィ充電装置および方法
CN112332501B (zh) 无线充电方法和待充电设备
JP2023043758A (ja) Usbポートコントローラ、電子機器
WO2015143625A1 (zh) 一种电池、通信终端及通信系统
US20170149251A1 (en) Power adapter with power saving mode and power-saving method for power adapter
CN111175589A (zh) 一种通信设备以及有效性检测方法
CN205231794U (zh) 车载无双模无线充电装置
JP2023067854A (ja) 低電力ワイヤレスバッテリー管理システム
CN213817320U (zh) 适用于手表和耳机的充电电路
CN211981749U (zh) 具有多个Type-C接口的系统
JP2019075840A (ja) 電力変換制御システム
CN214506645U (zh) 自动切换电路
JP2004241999A (ja) 車両用電源重畳多重通信装置
CN116418604A (zh) 一种以太网供电方法、装置和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22778421

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22778421

Country of ref document: EP

Kind code of ref document: A1