CN117675431A - same-ID CAN equipment control system and method based on switch matrix - Google Patents
same-ID CAN equipment control system and method based on switch matrix Download PDFInfo
- Publication number
- CN117675431A CN117675431A CN202311536796.8A CN202311536796A CN117675431A CN 117675431 A CN117675431 A CN 117675431A CN 202311536796 A CN202311536796 A CN 202311536796A CN 117675431 A CN117675431 A CN 117675431A
- Authority
- CN
- China
- Prior art keywords
- switch matrix
- control module
- transceiver
- mcu control
- switch
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 239000011159 matrix material Substances 0.000 title claims abstract description 97
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000011144 upstream manufacturing Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 claims description 3
- 230000008054 signal transmission Effects 0.000 abstract description 4
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003466 welding Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Small-Scale Networks (AREA)
Abstract
A same ID CAN equipment control system and method based on a switch matrix belongs to the technical field of the Internet of things, and comprises the following steps: the MCU control module, the input interface unit, the switch matrix, the output interface unit, the switch control unit and a plurality of CAN transceivers; the switch matrix control signal transmission path CAN meet the requirements of connecting and controlling a plurality of devices with the same CAN ID on a single CAN bus, and accurately transmitting CAN bus instructions to a designated CAN transceiver; in addition, the accuracy, reliability and rapidity of switching of the CAN equipment CAN be ensured by controlling the signal transmission path through the switch matrix, and the flexible and reliable switching of the same ID CAN equipment is realized.
Description
Technical Field
The invention relates to the technical field of the Internet of things, in particular to a same-ID CAN equipment control system and method based on a switch matrix.
Background
In the control field, the CAN bus is a common data communication protocol that allows multiple devices to communicate on the same bus, each device being identified by a unique Identifier (ID).
In some application scenarios it may be necessary to connect a plurality of devices with the same CAN ID to a single CAN bus, e.g. in some test or debug environments, to be able to dynamically select or switch different devices communicating with the single CAN bus in order to control, data acquisition or diagnose them. However, the switching of devices with the same CAN ID is usually a manual switching to physically connect the devices, but this method is not flexible and convenient enough and may risk erroneous connection or disconnection.
Therefore, an automatic programmable switching circuit is needed to be able to connect and control a plurality of devices with the same CAN ID on a single CAN bus, so as to realize dynamic switching and selection of a single CAN to connect a plurality of CAN devices with the same ID, and meet the requirements of flexible and programmable CAN device connection in different fields.
Disclosure of Invention
In order to meet the requirement of connecting and controlling a plurality of devices with the same CAN ID on a single CAN bus, the invention provides a control system and a control method of the same ID CAN device based on a switch matrix.
A switch matrix based on-ID CAN device control system, the on-ID CAN node control system comprising:
the MCU control module, the input interface unit, the switch matrix, the output interface unit, the switch control unit and a plurality of CAN transceivers; the switch matrix is connected with the MCU control module through the input interface unit and connected with the CAN transceiver through the output port, and is used for routing CAN bus instructions from the MCU control module to the CAN transceiver and routing signals acquired by the CAN transceiver to the MCU control module; the MCU control module conducts control on the switch matrix through the switch control unit, so that data interaction between the MCU control module and the CAN transceiver is realized; the IDs of the CAN transceivers are the same.
Preferably, the switch matrix includes: a downstream switch matrix and an upstream switch matrix; the downlink switch matrix is connected with a CAN protocol transmitting port of the MCU control module through the input interface unit and is used for routing a CAN bus instruction to the CAN transceiver to be controlled; the uplink switch matrix is connected with a CAN protocol receiving port of the MCU control module through the input interface unit and is used for routing data of the CAN transceiver to the MCU control module.
A same ID CAN equipment control method based on a switch matrix comprises the following steps:
the MCU control module controls the conduction of a set channel in the switch matrix through the switch control unit, and formulates a CAN bus instruction through a CAN protocol; the CAN bus instruction is routed to a CAN transceiver through a channel conducted in the switch matrix and is controlled to acquire data; the CAN transceiver routes the acquired data to the MCU control module through the switch matrix.
Preferably, the CAN bus command is routed to a CAN transceiver through a channel conducted in the switch matrix and controlled to perform data acquisition, and the method includes: the CAN bus command sent by the MCU control module is transmitted to the downlink switch matrix through the input unit interface and is routed through the channel which is conducted in the downlink switch matrix; the downlink switch matrix transmits CAN bus instructions to the CAN transceiver through the output interface unit.
Preferably, the routing of the collected data by the CAN transceiver to the MCU control module through the switch matrix includes: the CAN transceiver transmits the acquired data to an uplink switch matrix through an output unit interface, and routes the data through a channel which is conducted in the uplink switch matrix; the uplink switch matrix transmits data to the MCU control module through the input interface unit.
Compared with the prior art, the invention has the beneficial effects that:
the technical scheme provided by the invention comprises the following steps: the MCU control module, the input interface unit, the switch matrix, the output interface unit, the switch control unit and a plurality of CAN transceivers; the switch matrix control signal transmission path CAN meet the requirements of connecting and controlling a plurality of devices with the same CAN ID on a single CAN bus, and accurately transmitting CAN bus instructions to a designated CAN transceiver; in addition, the accuracy, reliability and rapidity of switching of the CAN equipment CAN be ensured by controlling the signal transmission path through the switch matrix, and the flexible and reliable switching of the same ID CAN equipment is realized.
Drawings
FIG. 1 is a diagram of a same ID CAN node control system frame in the invention;
FIG. 2 is a schematic circuit diagram of the same ID CAN node control system in the invention.
Detailed Description
For a better understanding of the present invention, reference is made to the following description, drawings and examples.
The embodiment provides a same-ID CAN device control system based on a switch matrix, wherein a frame diagram of the same-ID CAN node control system is shown in fig. 1, a circuit schematic diagram of the same-ID CAN node control system is shown in fig. 2, and the same-ID CAN node control system comprises: the MCU control module, the input interface unit, the switch matrix, the output interface unit, the switch control unit and a plurality of CAN transceivers; the switch matrix is connected with the MCU control module through the input interface unit and connected with the CAN transceiver through the output port, and is used for routing CAN bus instructions from the MCU control module to the CAN transceiver and routing signals acquired by the CAN transceiver to the MCU control module; the MCU control module conducts control on the switch matrix through the switch control unit, so that data interaction between the MCU control module and the CAN transceiver is realized; the IDs of the CAN transceivers are the same. In the same ID CAN device control system provided in this embodiment, the input interface unit has an input interface for receiving the CANTX and CANTX pin signals of the MCU. This interface should be able to properly connect to the MCU and receive CAN communication signals from the CAN controller, and the manner in which the input interface is connected to the CANRX and CANTX pins of the MCU, by means other than direct welding, connector interface, wire connection, etc., achieves a secure and reliable connection and effectively transmits signals from the CAN controller.
The switch matrix circuit consists of two groups of matrix switches, and is respectively connected with CANTX and CANRX signal lines of the input interface. In each operation, one of the two sets of matrix switches (the downstream switch matrix and the upstream switch matrix) is simultaneously turned on, so that signals are simultaneously routed to CANTX and CANTX by the two matrix switches. This configuration allows the connection of the respective CANTX and CANTX channels at each instant through a set of selected matrix switches. The design allows the CANTX and CANTX signals to be transmitted simultaneously on different paths through the synergistic effect of the two sets of matrix switches. Each time a particular route in a set of matrix switches is selected, the proper delivery of the corresponding signal is ensured. The switch matrix circuit may employ a variety of switching device types including, but not limited to, mechanical relays, opto-coupler relays, analog switches, and the like. The front end of the switch matrix circuit is connected with the input interface, and the rear end of the switch matrix circuit is connected with the output interface.
The output interface unit CAN condition the compatibility of the electrical characteristics of the matrix switch circuit and the CAN transceiver, including voltage level, signal amplitude, current capability and the like. Ensuring that the signals can be correctly transmitted and received and avoiding communication faults or equipment damage caused by electrical mismatch. The output interface is connected with the pins of the CAN transceiver, and the connection mode realizes stable and reliable connection and effectively transmits signals by means of direct welding, connector interfaces, wire connection and the like. The front end of the output interface is connected with the switch matrix circuit. And the rear end of the output interface is connected with the CAN transceiver.
The switch control unit and the MCU control module receive control instructions from the MCU control module through SPI control, and control the conduction of the switches in the switch matrix through TTL level control after instruction analysis.
The switch matrix includes: a downstream switch matrix and an upstream switch matrix; the downlink switch matrix is connected with a CAN protocol transmitting port of the MCU control module through the input interface unit and is used for routing a CAN bus instruction to the CAN transceiver to be controlled; the uplink switch matrix is connected with a CAN protocol receiving port of the MCU control module through the input interface unit and is used for routing data of the CAN transceiver to the MCU control module.
The switch matrix is provided with multiple channels, the conduction of each channel CAN be controlled by the TTL level of the switch control unit, each channel is connected with a CAN transceiver, and the CAN transceiver collects data information of an external tested piece. Flexible switching and selection of devices is achieved using a switch matrix. By adopting the structure of the switch matrix, the system can flexibly switch and select different devices according to the needs. The switch matrix provides multiple paths through which communication signals can be routed to different devices as desired.
The number of the configurable matrix switch paths and the number of the CAN transceivers are adopted, so that different application requirements and scenes CAN be met. The number of matrix switch paths and the number of CAN transceivers in the system CAN be flexibly configured according to specific application requirements. The configuration mode enables the system to have the capability of adapting to different application scenes, and can meet the communication and control requirements of specific applications.
Based on the same inventive concept, the embodiment also provides a same-ID CAN equipment control method based on a switch matrix, which comprises the following steps: the MCU control module controls the conduction of a set channel in the switch matrix through the switch control unit, and formulates a CAN bus instruction through a CAN protocol; the CAN bus instruction is routed to a CAN transceiver through a channel conducted in the switch matrix and is controlled to acquire data; the CAN transceiver routes the acquired data to the MCU control module through the switch matrix.
The CAN bus instruction is routed to a CAN transceiver through a channel conducted in the switch matrix and is controlled, data acquisition is carried out, and the method comprises the following steps: the CAN bus command sent by the MCU control module is transmitted to the downlink switch matrix through the input unit interface and is routed through the channel which is conducted in the downlink switch matrix; the downlink switch matrix transmits CAN bus instructions to the CAN transceiver through the output interface unit.
The CAN transceiver routes the acquired data to the MCU control module through the switch matrix, and the CAN transceiver comprises: the CAN transceiver transmits the acquired data to an uplink switch matrix through an output unit interface, and routes the data through a channel which is conducted in the uplink switch matrix; the uplink switch matrix transmits data to the MCU control module through the input interface unit.
It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Claims (5)
1. The utility model provides a with ID CAN equipment control system based on switch matrix which characterized in that, with ID CAN node control system includes:
the MCU control module, the input interface unit, the switch matrix, the output interface unit, the switch control unit and a plurality of CAN transceivers; the switch matrix is connected with the MCU control module through the input interface unit and connected with the CAN transceiver through the output port, and is used for routing CAN bus instructions from the MCU control module to the CAN transceiver and routing signals acquired by the CAN transceiver to the MCU control module; the MCU control module conducts control on the switch matrix through the switch control unit, so that data interaction between the MCU control module and the CAN transceiver is realized; the IDs of the CAN transceivers are the same.
2. The on-ID CAN device control system based on a switch matrix of claim 1, wherein the switch matrix comprises: a downstream switch matrix and an upstream switch matrix;
the downlink switch matrix is connected with a CAN protocol transmitting port of the MCU control module through the input interface unit and is used for routing a CAN bus instruction to the CAN transceiver to be controlled; the uplink switch matrix is connected with a CAN protocol receiving port of the MCU control module through the input interface unit and is used for routing data of the CAN transceiver to the MCU control module.
3. The same-ID CAN equipment control method based on the switch matrix is characterized by comprising the following steps of:
the MCU control module controls the conduction of a set channel in the switch matrix through the switch control unit, and formulates a CAN bus instruction through a CAN protocol;
the CAN bus instruction is routed to a CAN transceiver through a channel conducted in the switch matrix and is controlled to acquire data;
the CAN transceiver routes the acquired data to the MCU control module through the switch matrix.
4. The method for controlling the same-ID CAN device based on the switch matrix according to claim 3, wherein the CAN bus command is routed to a CAN transceiver through a channel conducted in the switch matrix and is controlled to perform data acquisition, comprising:
the CAN bus command sent by the MCU control module is transmitted to the downlink switch matrix through the input unit interface and is routed through the channel which is conducted in the downlink switch matrix;
the downlink switch matrix transmits the CAN bus instruction to a CAN transceiver through an output interface unit.
5. The on-ID CAN device control method of claim 3, wherein the CAN transceiver routes the collected data to the MCU control module through the switch matrix, comprising:
the CAN transceiver transmits the acquired data to an uplink switch matrix through an output unit interface, and routes the data through a channel which is conducted in the uplink switch matrix;
the uplink switch matrix transmits data to the MCU control module through the input interface unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311536796.8A CN117675431A (en) | 2023-11-17 | 2023-11-17 | same-ID CAN equipment control system and method based on switch matrix |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311536796.8A CN117675431A (en) | 2023-11-17 | 2023-11-17 | same-ID CAN equipment control system and method based on switch matrix |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117675431A true CN117675431A (en) | 2024-03-08 |
Family
ID=90085480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311536796.8A Pending CN117675431A (en) | 2023-11-17 | 2023-11-17 | same-ID CAN equipment control system and method based on switch matrix |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117675431A (en) |
-
2023
- 2023-11-17 CN CN202311536796.8A patent/CN117675431A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104865958A (en) | Matrix switch device, system and method | |
WO2021249270A1 (en) | Photoelectric transceiving device and control method thereof | |
CN108062283B (en) | Interface adapter device for rail transit vehicle-mounted controller | |
CN112367219B (en) | DCS platform module LVDS multi-channel test conversion card and application method thereof | |
CN211123056U (en) | Avionics test system | |
CN117675431A (en) | same-ID CAN equipment control system and method based on switch matrix | |
CN109633414B (en) | Backboard testing device and method based on ATCA (advanced telecom computing architecture) | |
US4247941A (en) | Simulator for bit and byte synchronized data network | |
CN108011766B (en) | Automatic switching device for system architecture and wiring relation | |
CN215931952U (en) | Connecting device for testing switching value output module | |
US11327921B2 (en) | Control device and inter-module communication method | |
CN113328887A (en) | Load board testing system and method based on M-LVDS bus | |
CN102098186A (en) | QSFP (Quad Small Form-factor Pluggable) module detecting system and detecting method | |
CN111208770B (en) | Signal acquisition and test system and test method | |
CN117220780B (en) | Method for switching communication modes of active cable | |
CN218123919U (en) | Adapter assembly | |
CN213661607U (en) | SIM card switching device and SIM card testing device | |
CN216623239U (en) | USB-to-serial port circuit and wireless communication test system | |
CN113448316B (en) | Signal injection system for hardware-in-the-loop testing | |
CN218630094U (en) | Circuit board batch test circuit and circuit board batch test tool | |
CN219915827U (en) | Cable insulation testing device | |
CN216083679U (en) | Multiple hardware resource multiplexing device | |
EP3531587B1 (en) | Frontend for a radio-frequency test device and radio-frequency test device | |
CN115328086A (en) | Full-jumper automobile diagnosis communication circuit and use method thereof | |
CN118132476A (en) | One-way multiplexing method for UART serial port |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |