Multi-node communication system, control method, program product and storage medium

By using multiple selection switches and switch control circuits in a single-channel bus analyzer, the cyclic power-up of multiple nodes is solved, and the problem of high communication costs of single-channel bus analyzer supports multiple nodes is achieved, and the low-cost multi-dimensional Node communication.

CN119094264APending Publication Date: 2024-12-06WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411076416.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The single-channel bus analyzer only supports communication with one node on the bus network at a time. If the number of nodes increases, it is necessary to upgrade to a bus analyzer that supports multiple channels, resulting in increased communication costs.

Method used

Through the combination of a single-channel bus analyzer and a multi-select switch and switch control circuit, multiple nodes are enabled to rotate in turn, allowing the computer to communicate with multiple nodes, avoiding the need to upgrade to a multi-channel bus analyzer.

Benefits of technology

Low-cost cyclic timing communication between multiple nodes and computers is realized, which reduces communication costs and is realized through pure hardware circuits, which is lower in cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094264A_ABST
    Figure CN119094264A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-node communication system, a control method, a program product and a storage medium, relates to the technical field of communication, and realizes communication between a computer and a plurality of nodes on a bus network in a low-cost mode. The multi-node communication system comprises a single-channel bus analyzer, a multiplexer switch and a switch control circuit, a computer interface of the single-channel bus analyzer is used for being connected with a computer, and a bus interface of the single-channel bus analyzer is used for being connected with a plurality of nodes in a bus network at the same time; the multiplexer switch is provided with a control end, a single input end and a plurality of output ends, the input end of the multiplexer switch is used for being connected with a first power supply, and the output ends of the multiplexer switch are used for being connected to the power supply ends of the nodes one to one; the output end of the switch control circuit is connected with the control end of the multiplexer switch, and is used for controlling the output ends of the multiplexer switch to be communicated with the input end of the multiplexer switch in turn.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a multi-node communication system, a control method, a program product and a storage medium. Background Art

[0002] The computer is connected to the bus network through the bus analyzer to collect and process bus data, thereby realizing communication with the nodes (i.e., bus terminals) on the bus network. A single-channel bus analyzer only supports communication with one node on the bus network at a time. If the number of nodes increases, it is necessary to upgrade to a bus analyzer that supports multiple channels, resulting in increased communication costs. Summary of the invention

[0003] In view of the above problems, the present application provides a multi-node communication system, a control method, a program product and a storage medium, so as to realize the communication between a computer and multiple nodes on a bus network in a low-cost manner. The specific scheme is as follows:

[0004] The first aspect of the present application provides a multi-node communication system, comprising: a single-channel bus analyzer 100, a multi-way selection switch 200 and a switch control circuit 300;

[0005] Wherein, the computer interface of the single-channel bus analyzer 100 is used to connect to a computer, and the bus interface of the single-channel bus analyzer 100 is used to simultaneously connect to multiple nodes in the bus network;

[0006] The multi-way selection switch 200 has a control terminal, a single input terminal and multiple output terminals, wherein the input terminal is used to connect to the first power source, and the multiple output terminals are used to connect to the power supply terminals of the multiple nodes one by one;

[0007] The output end of the switch control circuit 300 is connected to the control end of the multi-way selection switch 200, and is used to control the output ends of the multi-way selection switch 200 to be connected to the input ends of the multi-way selection switch 200 in a cyclic manner.

[0008] In a possible implementation, the multiple nodes are two nodes; the multi-way selection switch 200 includes a relay KA1 and a relay driving circuit;

[0009] The relay KA1 includes a coil and a contact switch, wherein the contact switch is a single-pole double-throw switch; the single-pole double-throw switch has three terminals, one terminal is an input terminal of the multi-way selection switch 200, and the other two terminals are two output terminals of the multi-way selection switch 200;

[0010] The relay driving circuit includes a first resistor R1, a second resistor R2, a freewheeling diode D1 and a first switch tube Q1;

[0011] One end of the coil is connected to the input electrode of the first switch tube Q1, and the other end is used to connect to the second power supply; the output electrode of the first switch tube Q1 is grounded, and the second resistor R2 is connected between the output electrode and the control electrode of the first switch tube Q1; the freewheeling diode D1 is connected in parallel with the coil; one end of the first resistor R1 is connected to the control electrode of the first switch tube Q1, and the other end is the control end of the multi-way selection switch 200;

[0012] The switch control circuit 300 is used to output a PWM signal.

[0013] In a possible implementation, the switch control circuit 300 is a multivibrator.

[0014] In a possible implementation, the multivibrator includes: a NE555 timer, a third resistor R5, a fourth resistor R6, a first capacitor C1 and a second capacitor C2;

[0015] The ground pin GND of the NE555 timer is grounded; one end of the fourth resistor R6 and the reset pin RESET and the power pin VCC of the NE555 timer are all connected to the third power supply; the control voltage pin CONT of the NE555 timer is grounded through the second capacitor C2; the trigger input pin TRIG of the NE555 timer is connected to the threshold input pin THRES, one end of the first capacitor C1 and one end of the third resistor R5; the other end of the first capacitor C1 is grounded; the other end of the third resistor R5 is connected to the other end of the fourth resistor R6 and the discharge pin DISCH of the NE555 timer; the output pin OUT of the NE555 timer is the output end of the multivibrator.

[0016] In a possible implementation, the multi-node communication system further includes: a working status indication circuit connected one-to-one with each output end of the multi-way selection switch 200;

[0017] The working state indicating circuit comprises a light emitting diode and a resistor. The light emitting diode and the resistor in the working state indicating circuit are connected in series and then connected between an output terminal of the multi-way selection switch 200 and the ground.

[0018] In a possible implementation, the computer interface of the single-channel bus analyzer 100 is a USB interface, and the bus interface of the single-channel bus analyzer 100 is a CAN interface.

[0019] In a possible implementation, the single-channel bus analyzer 100 is a USBCAN-EU model device.

[0020] The second aspect of the present application provides a multi-node communication control method, which is applied to a switch control circuit 300 in a multi-node communication system, wherein the multi-node communication system further comprises a single-channel bus analyzer 100 and a multi-way selection switch 200; the computer interface of the single-channel bus analyzer 100 is used to connect to a computer, and the bus interface of the single-channel bus analyzer 100 is used to simultaneously connect to multiple nodes in a bus network; the multi-way selection switch 200 has a control end, a single input end and multiple output ends, wherein the input end is used to connect to a first power supply, and the multiple output ends are used to be connected one-to-one to the power supply ends of the multiple nodes; the output end of the switch control circuit 300 is connected to the control end of the multi-way selection switch 200;

[0021] The method includes: controlling each output terminal of the multi-way selection switch 200 to be connected to the input terminal of the multi-way selection switch 200 in a cyclical manner.

[0022] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on the switch control circuit 300, the switch control circuit 300 implements the multi-node communication control method provided in the second aspect above.

[0023] The fourth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by the switch control circuit 300, the switch control circuit 300 can implement the multi-node communication control method provided in the second aspect above.

[0024] By means of the above technical solution, the multi-node communication system provided by the present application allows a computer to simultaneously access multiple nodes on a bus network through a single-channel bus analyzer. The multi-node communication system uses a preset switch control mechanism to power on each node in turn, thereby realizing that multiple nodes communicate with the computer in turn in a cycle. The present application does not need to upgrade a single-channel bus analyzer to a multi-channel bus analyzer, and can realize the cyclic timing communication function between a computer and multiple nodes, which is lower in cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0026] Figure 1 A schematic diagram of single-channel CAN message communication between a computer and a single ECU provided in the prior art;

[0027] Figure 2A schematic diagram of dual-channel CAN message communication between a computer and two ECUs provided in the prior art;

[0028] Figure 3 A schematic diagram of the structure of a multi-node communication system provided by the present application;

[0029] Figure 4 A schematic diagram of the structure of another multi-node communication system provided by the present application;

[0030] Figure 5 A schematic diagram of the structure of another multi-node communication system provided by the present application;

[0031] Figure 6 A circuit schematic diagram of a NE555 timer provided in this application;

[0032] Figure 7 A waveform diagram of the capacitor voltage and the output voltage of a multivibrator provided in the present application;

[0033] Figure 8 A schematic diagram of the structure of another multi-node communication system provided in this application. DETAILED DESCRIPTION

[0034] In the following description, in order to ensure the accuracy of the citation and the fluency of reading, the key technical terms, abbreviations or abbreviations involved in the text are summarized and explained as follows:

[0035] ECU: Electronic Control Unit, also known as electronic control unit or on-board computer;

[0036] CAN: Controller Area Network, controller area network;

[0037] USB: Universal Serial Bus, universal serial bus;

[0038] PWM: Pulse width modulation.

[0039] A bus analyzer is a comprehensive bus development and testing tool that integrates multiple functions, such as message capture and parsing, timing analysis, performance analysis, error detection and diagnosis, data recording and analysis, simulation and emulation, programming and configuration, etc., thereby fully supporting the development and testing of bus systems. It is widely used in automotive electronics, industrial automation control and other fields.

[0040] The computer is connected to the bus network through the bus analyzer to collect and process bus data, thereby realizing communication with the nodes on the bus network (i.e., bus terminals). A single-channel bus analyzer only supports communication with one node on the bus network at a time. If the number of nodes that need to communicate increases, it is necessary to upgrade to a bus analyzer that supports multiple channels, resulting in increased communication costs.

[0041] For example, Figure 1 As shown, in the automotive electronic system, the node on the bus network is, for example, an ECU, the bus network is, for example, a CAN network, and the single-channel bus analyzer is, for example, a USBCAN-EU model device. ECU is an electronic device that integrates a microcontroller and peripheral circuits, and its function is similar to that of a microcomputer. It is mainly responsible for receiving signals from sensors, processing and analyzing these signals, and issuing corresponding control instructions to guide the actuators to perform correct actions. The CAN bus uses differential signals for data transmission, that is, the CAN bus contains two lines, CAN-L and CAN-H, and the voltage difference between CAN-L and CAN-H represents the logical state, thereby achieving information transmission. USBCAN-EU is a high-performance CAN interface card compatible with the USB2.0 full-speed specification and with one CAN interface (i.e., supporting a single channel). USBCAN-EU enables a computer to connect to the CAN network through a USB interface, collect and process CAN bus data, and realize single-channel CAN message communication between a computer and a single ECU. If the number of ECUs increases, USBCAN-EU needs to be upgraded to a CAN interface card that supports multiple CAN channels, which will result in a corresponding increase in CAN communication costs. For example Figure 2 As shown in the figure, when the number of ECUs increases to 2, USBCAN-EU needs to be upgraded to USBCAN-2E-U. USBCAN-2E-U is a high-performance CAN interface card compatible with USB2.0 full-speed specification and with 2 CAN interfaces (i.e. supporting dual channels). Its cost is much higher than that of USBCAN-EU.

[0042] In order to realize the communication between a computer and multiple nodes on a bus network in a low-cost manner, an embodiment of the present application provides a multi-node communication system, which allows a computer to simultaneously access multiple nodes on a bus network through a single-channel bus analyzer. The multi-node communication system uses a preset switch control mechanism to power on each node in turn, thereby realizing that multiple nodes communicate with the computer in turn in a cycle. The embodiment of the present application does not need to upgrade the single-channel bus analyzer to a multi-channel bus analyzer, and can realize the cyclic timing communication function between the computer and multiple nodes, which is lower in cost.

[0043] A multi-node communication system provided by an embodiment of the present application is described below in conjunction with the accompanying drawings. A person skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0044] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0045] like Figure 3 As shown, a multi-node communication system provided by an embodiment of the present application specifically includes: a single-channel bus analyzer 100, a multi-way selection switch 200 and a switch control circuit 300;

[0046] Wherein, the computer interface of the single-channel bus analyzer 100 is used to connect to a computer, and the bus interface of the single-channel bus analyzer 100 is used to simultaneously connect to multiple nodes in the bus network;

[0047] The multi-way selection switch 200 has a control terminal, a single input terminal and multiple output terminals, wherein the input terminal is used to connect to the first power supply, and the multiple output terminals are used to connect to the power supply terminals of the multiple nodes one by one;

[0048] The output end of the switch control circuit 300 is connected to the control end of the multi-way selection switch 200 . The switch control circuit 300 is used to control the output ends of the multi-way selection switch 200 to be connected to the input ends of the multi-way selection switch 200 in a cyclic manner.

[0049] Figure 3 It is only taken as an example that the computer interface of the single-channel bus analyzer 100 is a USB interface, the bus interface of the single-channel bus analyzer 100 is a CAN interface, the number of nodes in the bus network is 2, and the voltage of the first power supply is 24V.

[0050] The working principle of the embodiment of the present application is as follows:

[0051] After nodes 1 to n (n is the total number of nodes in the bus network) and the first power supply in the bus network are correctly connected to the multi-node communication system, and the ground terminals GND of nodes 1 to n are grounded, the multi-node communication system can be started to work. Specifically, when the i-th (i=1, 2, 3, ..., n) output terminal of the multi-way selection switch 200 is connected to the input terminal, the power supply terminal of node i in the bus network is connected to the first power supply, and only one node is powered on at the same time. After the node is powered on, it can communicate with the computer through the single-channel bus analyzer 100; the switch control circuit 300 controls the output terminals of the multi-way selection switch 200 to be connected to the input terminal in turn, so that the n nodes are powered on in turn and communicate with the computer through the single-channel bus analyzer 100 in turn. In this way, there is no need to upgrade the single-channel bus analyzer 100 to a multi-channel bus analyzer, and the cyclic timing communication function between the computer and n nodes (cyclic timing communication refers to data transmission or information exchange at fixed time intervals) can be realized, saving costs.

[0052] In one possible implementation, see Figure 4 ( Figure 4 Only taking the case where the computer interface of the single-channel bus analyzer 100 is a USB interface, the bus interface of the single-channel bus analyzer 100 is a CAN interface, and the voltage of the first power supply is 24V as an example for illustration), when n=2, the multi-way selection switch 200 may be set to include a relay KA1 and a relay driving circuit;

[0053] The relay KA1 includes a coil and a contact switch, and the contact switch is a single-pole double-throw switch; the single-pole double-throw switch has three terminals, namely a first terminal P1, a second terminal P2 and a common terminal O; the common terminal O of the single-pole double-throw switch is an input terminal of the multi-way selection switch 200, and the first terminal P1 and the second terminal P2 of the single-pole double-throw switch are two output terminals of the multi-way selection switch 200;

[0054] The relay driving circuit includes a first resistor R1, a second resistor R2, a freewheeling diode D1 and a first switch tube Q1;

[0055] One end of the coil is connected to the input terminal of the first switch tube Q1, and the other end of the coil is used to connect to the second power supply ( Figure 4 Only taking the voltage of the second power supply as 24V as an example for illustration), the output electrode of the first switch tube Q1 is grounded, and the second resistor R2 is connected between the output electrode and the control electrode of the first switch tube Q1; the freewheeling diode D1 is connected in parallel with the coil; one end of the first resistor R1 is connected to the control electrode of the first switch tube Q1, and the other end is the control end of the multi-way selection switch 200.

[0056] exist Figure 4In the embodiment, the switch control circuit 300 is used to output a PWM signal. A PWM signal is a periodic digital signal, which is characterized in that information is transmitted or control is achieved by changing the width of a pulse (ie, the duration of a high level 1).

[0057] Figure 4 The working principle of the illustrated embodiment is as follows:

[0058] Since the coil of relay KA1 usually needs to flow through a current of at least 50 mA in order for the contact switch of relay KA1 to switch from the first end P1 to the second end P2, in order to prevent the output current of the switch control circuit 300 from failing to reach the current value required for the contact switch to switch from the first end P1 to the second end P2, it is necessary to set up a relay drive circuit to amplify the output signal of the switch control circuit 300.

[0059] The switch control circuit 300 outputs a PWM signal, and the relay drive circuit responds to the PWM signal to cause the relay KA1 to operate periodically (i.e., the contact switch switches periodically between the first terminal P1 and the second terminal P2). Specifically: within a pulse period of the PWM signal, when the switch control circuit 300 outputs a low level 0, the first transistor Q1 is in a cut-off state, and no current flows through the coil of the relay KA1. At this time, the common terminal O of the single-pole double-throw switch of the relay KA1 is connected to the first terminal P1, the node 1 is powered off, the node 2 is powered on, and communication with the computer begins; when the switch control circuit 300 outputs a high level 1, the first transistor Q1 is in a conducting state, and current flows through the coil of the relay KA1. At this time, the common terminal O of the single-pole double-throw switch of the relay is connected to the second terminal P2, the node 2 is powered off, the node 1 is powered on, and communication with the computer begins. The pulse period of the PWM signal is also the action period of relay KA1. By adjusting the pulse period and duty cycle of the PWM signal (the duty cycle refers to the ratio of the duration of high level 1 to the pulse period in a pulse period), the power-on and power-off time of the two nodes can be changed, that is, the communication time between the computer and each node can be changed to meet actual needs.

[0060] The first resistor R1 is the control current limiting resistor of the first transistor Q1. The second resistor R2 is the control electrode pull-down resistor of the first transistor Q1, which is used to provide a certain pull-down level for the control electrode of the first transistor Q1 to prevent the control electrode from being in a floating state when the first transistor Q1 is cut off, causing the first transistor Q1 to be mis-turned on. The coil of the relay KA1 is equivalent to an inductor. When the coil is powered off, since the inductor current cannot change suddenly, a large reverse voltage will appear at both ends of the coil, which may damage the first transistor Q1. The freewheeling diode D1 can release the inductor energy to protect the first transistor Q1 from damage.

[0061] The first transistor Q1 can be an NPN transistor, but is not limited thereto. Figure 4 The first transistor Q1 is an NPN transistor for example. When the first transistor Q1 is an NPN transistor, the control electrode, input electrode, and output electrode of the first transistor Q1 are the base, collector, and emitter of the NPN transistor, respectively.

[0062] In one possible implementation, Figure 4 The switch control circuit 300 in the embodiment shown may use a multivibrator, such as Figure 5 shown.

[0063] A multivibrator, also known as a rectangular wave generator, is a self-excited oscillator that can generate a rectangular wave pulse signal. The multivibrator is named because its rectangular wave pulse signal contains a wealth of high-order harmonic components in addition to the fundamental wave component. The multivibrator uses the working principle of deep positive feedback and resistor-capacitor coupling to make two electronic devices alternate between the on and off states, so that the circuit state automatically alternates between two quasi-stable states, thereby automatically generating a rectangular wave pulse signal. By adjusting the component parameters of the multivibrator, the pulse period and duty cycle of the rectangular wave pulse signal (that is, the above-mentioned PWM signal) output by the multivibrator can be changed.

[0064] Compared with the use of a single-chip microcomputer and other software programs to control the periodic action of relay KA1, the use of a multivibrator instead of a single-chip microcomputer can enable the entire multi-node communication system to be implemented using pure hardware circuits, which is less costly.

[0065] In one possible implementation, see Figure 5 The multivibrator includes: a NE555 timer, a third resistor R5, a fourth resistor R6, a first capacitor C1 and a second capacitor C2.

[0066] NE555 timer is an integrated circuit chip widely used in electronic circuit design, which can generate continuous pulse signals based on an external resistor-capacitor network (i.e., the third resistor R5, the fourth resistor R6 and the first capacitor C1). The third resistor R5, the fourth resistor R6 and the first capacitor C1 are timing elements. By adjusting the resistance values ​​of the third resistor R5, the fourth resistor R6 and the capacitance value of the first capacitor C1, the pulse period and duty cycle of the PWM signal output by the multivibrator can be controlled.

[0067] The NE555 timer contains 8 pins, the meanings of each pin are as follows:

[0068] Pin 1: GND, ground pin.

[0069] Pin 2: TRIG, trigger input pin.

[0070] Pin 3: OUT, output pin.

[0071] Pin 4: RESET, reset pin.

[0072] Pin 5: CONT, control voltage pin.

[0073] Pin 6: THRES, threshold input pin.

[0074] Pin 7: DISCH, discharge pin.

[0075] Pin 8: VCC, power pin.

[0076] Pin 1 of the NE555 timer is grounded; one end of the fourth resistor R6 and pins 4 and 8 of the NE555 timer are connected to the third power supply VCC ( Figure 5 Only VCC=5V is used as an example for illustration); Pin 5 of the NE555 timer is grounded through the second capacitor C2, which is also a decoupling capacitor (generally a small capacitor of 0.01μF) to prevent the introduction of high-frequency interference; Pin 2 of the NE555 timer is connected to Pin 6, one end of the first capacitor C1 and one end of the third resistor R5; the other end of the first capacitor C1 is grounded; the other end of the third resistor R5 is connected to the other end of the fourth resistor R6 and Pin 7 of the NE555 timer; Pin 3 of the NE555 timer is the output end of the multivibrator.

[0077] like Figure 6 As shown, the NE555 timer includes: a first voltage comparator U1, a second voltage comparator U2, a fifth resistor R7, a sixth resistor R8, a seventh resistor R9, an eighth resistor R10, a second transistor Q2, a basic RS trigger, a NAND gate G3 and a NOT gate G4; the fifth resistor R7, the sixth resistor R8 and the seventh resistor R9 have the same resistance value. Below, based on the output logic of the RS trigger, the NAND gate and the NOT gate, the working principle of the NE555 timer is described in detail:

[0078] The basic RS flip-flop consists of an R terminal (reset input terminal), an S terminal (set input terminal), a Q terminal (output terminal), end Four pins. The truth table (i.e. output logic) of the basic RS flip-flop is shown in Table 1, where "0" represents a low level and "1" represents a high level:

[0079] Table 1 - Truth table of a basic RS flip-flop

[0080]

[0081] The output logic of the NAND gate is: when at least one input terminal of the NAND gate is at a low level 0, the output is a high level 1; when both input terminals of the NAND gate are at a high level 1, the output is a low level 0. The third power supply VCC voltage is a high level 1.

[0082] The output logic of the NOT gate is: the output state of the NOT gate is opposite to the input state.

[0083] The fifth resistor R7, the sixth resistor R8, and the seventh resistor R9 are connected in series to form a resistor divider, which provides a reference voltage for the first voltage comparator U1 and the second voltage comparator U2. The voltage at the in-phase input terminal of the first voltage comparator U1 (reference voltage) is 2 / 3VCC, and the voltage at the inverting input terminal of the second voltage comparator U2 (reference voltage) is 1 / 3VCC.

[0084] After the NE555 timer is connected to the third power supply VCC, the second power supply VCC charges the first capacitor C1 through the third resistor R5 and the fourth resistor R6, and the voltage vc of the first capacitor C1 gradually increases. When vc increases to more than 2 / 3VCC, there are: the voltage at the in-phase input terminal of the first voltage comparator U1 in the NE555 timer is less than the voltage vc at the inverting input terminal, so the first voltage comparator U1 outputs a low level 0, that is, the R terminal of the basic RS trigger is a low level 0; at the same time, the voltage vc at the in-phase input terminal of the second voltage comparator U2 is greater than the voltage at the inverting input terminal, so the second voltage comparator U2 outputs a high level 1, that is, the S terminal of the basic RS trigger is a high level 1; according to Table 1, it can be seen that at this time According to the output logic of the NAND gate, it can be known that at this time the output of the NAND gate G3 is a high level 1, the second switch tube Q2 is turned on when the control pole is a high level 1, and the voltage vo at the output terminal of the multivibrator is a low level 0.

[0085] After the second switch tube Q2 is turned on, the first capacitor C1 is discharged through the third resistor R5 and the second switch tube Q2. When the voltage vc drops below 1 / 3VCC, the voltage at the in-phase input terminal of the first voltage comparator U1 is greater than the voltage vc at the inverting input terminal, so the first voltage comparator U1 outputs a high level 1, that is, the R terminal of the basic RS trigger is a high level 1; at the same time, the voltage vc at the in-phase input terminal of the second voltage comparator U2 is less than the voltage at the inverting input terminal, so the second voltage comparator U2 is a low level 0, that is, the S terminal of the basic RS trigger is a low level 0; according to Table 1, it can be seen that at this time According to the output logic of the NAND gate, it can be known that at this time the output of the NAND gate G3 is a low level 0, the second switch tube Q2 is cut off when the control pole is at a low level 0, and the output terminal voltage vo of the multivibrator is a high level 1.

[0086] After the second switch tube Q2 is turned off, the third power source VCC charges the first capacitor C1 again through the third resistor R5 and the fourth resistor R6, so that vc increases. The above process is repeated, and the output terminal vo generates a PWM waveform. Figure 7 As shown in the figure, it is the relationship diagram between vc and vo voltage waveforms.

[0087] The charging time of capacitor C1, i.e. the time when vo is at high level, tp1≈0.7×(R5+R6)×C1.

[0088] The discharge time of capacitor C1, that is, the low level time of vo, is tp2≈0.7×R5×C1.

[0089] The period of the PWM waveform output by the multivibrator is T=tp1+tp2=0.7×(2×R5+R6)×C1.

[0090] PWM waveform duty cycle

[0091] In a possible implementation, R5=73kΩ, R6=1kΩ, C1=100uF can be set, and the PWM waveform period T is calculated to be 10.29 seconds, the duty cycle q is about 50.3%, tp1 is about 5.18 seconds, and the multivibrator outputs a high level 1 during tp1. tp2 is about 5.11 seconds, and the multivibrator outputs a low level 0 during tp2.

[0092] In a possible implementation, based on any of the embodiments disclosed above, the multi-node communication system further includes: a working state indication circuit connected one-to-one with each output terminal of the multi-way selection switch 200. The working state indication circuit includes a light emitting diode and a resistor, and the light emitting diode and the resistor in the working state indication circuit are connected in series and then connected between one output terminal of the multi-way selection switch 200 and the ground.

[0093] like Figure 8 As shown, still assuming n=2, the working status indication circuit corresponding to node 1 includes a light-emitting diode D2 and a resistor R3, and the working status indication circuit corresponding to node 2 includes a light-emitting diode D3 and a resistor R4. The light-emitting diode D2 and the light-emitting diode D3 are used to display the power-on and power-off status of the two nodes; when node 2 is powered on, the light-emitting diode D3 is lit, and the light-emitting diode D2 is off; when node 1 is powered on, the light-emitting diode D2 is lit, and the light-emitting diode D3 is off.

[0094] In addition, the embodiment of the present application further provides a multi-node communication control method, which is applied to a switch control circuit 300 in a multi-node communication system, wherein the multi-node communication system further includes a single-channel bus analyzer 100 and a multi-way selection switch 200; the computer interface of the single-channel bus analyzer 100 is used to connect to a computer, and the bus interface of the single-channel bus analyzer 100 is used to simultaneously connect to multiple nodes in a bus network; the multi-way selection switch 200 has a control end, a single input end, and multiple output ends, wherein the input end is used to connect to a first power supply, and the multiple output ends are used to be connected one-to-one to the power supply ends of the multiple nodes; the output end of the switch control circuit 300 is connected to the control end of the multi-way selection switch 200;

[0095] The method includes: controlling each output terminal of the multi-way selection switch 200 to be connected to the input terminal of the multi-way selection switch 200 in a cyclical manner.

[0096] In addition, an embodiment of the present application also provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on the switch control circuit 300, the switch control circuit 300 implements any of the multi-node communication control methods described above.

[0097] In addition, an embodiment of the present application also provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by the switch control circuit 300, the switch control circuit 300 can implement any of the multi-node communication control methods described above.

[0098] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the embodiments of the present application. Therefore, the embodiments of the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features disclosed herein.

Claims

1. A multi-node communication system, characterized in that: include: A single-channel bus analyzer (100), a multi-way selection switch (200) and a switch control circuit (300); The computer interface of the single-channel bus analyzer (100) is used to connect to a computer, and the bus interface of the single-channel bus analyzer (100) is used to simultaneously connect to a plurality of nodes in a bus network; The multi-way selection switch (200) has a control end, a single input end and a plurality of output ends, wherein the input end is used to connect to a first power source, and the plurality of output ends are used to connect to the power supply ends of the plurality of nodes one by one; The output end of the switch control circuit (300) is connected to the control end of the multi-way selection switch (200), and is used to control each output end of the multi-way selection switch (200) to be connected to the input end of the multi-way selection switch (200) in a cyclical manner.

2. The multi-node communication system according to claim 1, characterized in that: The multiple nodes are two nodes; the multi-way selection switch (200) comprises a relay (KA1) and a relay driving circuit; The relay (KA1) comprises a coil and a contact switch, wherein the contact switch is a single-pole double-throw switch; the single-pole double-throw switch has three connection terminals, one connection terminal is an input terminal of the multi-way selection switch (200), and the other two connection terminals are two output terminals of the multi-way selection switch (200); The relay drive circuit comprises a first resistor (R1), a second resistor (R2), a freewheeling diode (D1) and a first switch tube (Q1); One end of the coil is connected to the input pole of the first switch tube (Q1), and the other end is used to connect to the second power supply; the output pole of the first switch tube (Q1) is grounded, and the second resistor (R2) is connected between the output pole and the control pole of the first switch tube (Q1); the freewheeling diode (D1) is connected in parallel with the coil; one end of the first resistor (R1) is connected to the control pole of the first switch tube (Q1), and the other end is the control end of the multi-way selection switch (200); The switch control circuit (300) is used to output a PWM signal.

3. The multi-node communication system according to claim 2, characterized in that: The switch control circuit (300) is a multivibrator.

4. The multi-node communication system according to claim 3, characterized in that: The multivibrator comprises: a NE555 timer, a third resistor (R5), a fourth resistor (R6), a first capacitor (C1) and a second capacitor (C2); The ground pin (GND) of the NE555 timer is grounded; one end of the fourth resistor (R6) and the reset pin (RESET) and power pin (VCC) of the NE555 timer are all connected to the third power supply; the control voltage pin (CONT) of the NE555 timer is grounded through the second capacitor (C2); the trigger input pin (TRIG) of the NE555 timer is connected to the threshold input pin (THRES), one end of the first capacitor (C1) and one end of the third resistor (R5); the other end of the first capacitor (C1) is grounded; the other end of the third resistor (R5) is connected to the other end of the fourth resistor (R6) and the discharge pin (DISCH) of the NE555 timer; the output pin (OUT) of the NE555 timer is the output end of the multivibrator.

5. The multi-node communication system according to any one of claims 1 to 4, characterized in that: The multi-node communication system further comprises: a working status indication circuit connected one-to-one with each output end of the multi-way selection switch (200); The working state indicating circuit comprises a light emitting diode and a resistor. The light emitting diode and the resistor in the working state indicating circuit are connected in series and then connected between an output end of the multi-way selection switch (200) and the ground.

6. The multi-node communication system according to any one of claims 1 to 4, characterized in that: The computer interface of the single-channel bus analyzer (100) is a USB interface, and the bus interface of the single-channel bus analyzer (100) is a CAN interface.

7. The multi-node communication system according to claim 6, characterized in that: The single-channel bus analyzer (100) is a device of the USBCAN-EU model.

8. A multi-node communication control method, characterized in that: A switch control circuit (300) applied to a multi-node communication system, the multi-node communication system further comprising a single-channel bus analyzer (100) and a multi-way selection switch (200); the computer interface of the single-channel bus analyzer (100) is used to connect to a computer, and the bus interface of the single-channel bus analyzer (100) is used to simultaneously connect to a plurality of nodes in a bus network; The multi-way selection switch (200) has a control end, a single input end and a plurality of output ends, wherein the input end is used to connect to a first power source, and the plurality of output ends are used to connect to the power supply ends of the plurality of nodes one by one; The output end of the switch control circuit (300) is connected to the control end of the multi-way selection switch (200); The method comprises: controlling each output end of the multi-way selection switch (200) to be connected to the input end of the multi-way selection switch (200) in a cyclical and alternating manner.

9. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on the switch control circuit (300), the switch control circuit (300) implements the multi-node communication control method as claimed in claim 8.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by the switch control circuit (300), the switch control circuit (300) can implement the multi-node communication control method as claimed in claim 8.