CN110855347A - Communication device based on CAN bus - Google Patents
Communication device based on CAN bus Download PDFInfo
- Publication number
- CN110855347A CN110855347A CN201911129613.4A CN201911129613A CN110855347A CN 110855347 A CN110855347 A CN 110855347A CN 201911129613 A CN201911129613 A CN 201911129613A CN 110855347 A CN110855347 A CN 110855347A
- Authority
- CN
- China
- Prior art keywords
- optical fiber
- fault
- bus
- path
- controller
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/03—Arrangements for fault recovery
- H04B10/032—Arrangements for fault recovery using working and protection systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/071—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using a reflected signal, e.g. using optical time domain reflectometers [OTDR]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
- H04B10/0791—Fault location on the transmission path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Optical Communication System (AREA)
Abstract
The invention discloses a communication device based on a CAN bus, which comprises: the CAN bus transceiver receives data to be sent from the microprocessor, sends the data, generates loop data which is the same as the sent data and feeds the loop data back to the processor; and the microprocessor comprises a transmitting end used for transmitting data and a receiving end used for receiving the data. The invention can detect whether the sending end of the microprocessor successfully sends the data in real time; the register value detector can detect the transmission state of data on the bus in real time; the display circuit can display the detection result in real time; the data transmission of the communication device is in a normal state, and when the communication device is abnormal, maintenance personnel can quickly respond according to the display device.
Description
Technical Field
The invention relates to the field of communication, in particular to a communication device based on a CAN bus transceiver.
Background
In the prior art, the multi-machine communication mechanism commonly used at present is a one-master multi-slave communication mechanism based on RS485 level transmission. This is achieved on the premise that a master/slave architecture must be constructed in the communication network.
To circumvent the limitations of the master/slave architecture, a multi-master communication scheme using token-ring implementation based on RS485 was proposed in the prior art. However, the software running efficiency of the multi-host communication scheme is low, and the bus bandwidth utilization rate is also low.
Further, in order to improve communication efficiency, advanced multi-host communication schemes such as an ethernet and a Controller Area Network (CAN) bus are proposed in the prior art, but success or failure of data transmission in a communication process cannot be known in time, a specific state of data transmission on the CAN bus cannot be known in time, and when data transmission on the CAN bus is abnormal and a maintainer does not make a rescue reaction rapidly, a great influence is caused on operation of the whole CAN bus.
Disclosure of Invention
The invention aims to provide a communication device based on a CAN bus transceiver, which is used for solving the problems in the prior art, such as: whether data transmission in the communication process is successful or not CAN not be known in time, the specific state of data transmission on the CAN bus CAN not be known in time, and when the data transmission on the CAN bus is abnormal and a maintainer does not make a rescue reaction rapidly, the operation of the whole CAN bus is greatly influenced.
The invention provides a communication device based on a CAN bus, which comprises:
the CAN bus transceiver receives data to be sent from the microprocessor, sends the data, generates loop data which is the same as the sent data and feeds the loop data back to the processor;
the microprocessor comprises a sending end for sending data and a receiving end for receiving data, the sending end and the receiving end are connected with the CAN bus transceiver in a bidirectional mode to receive and send the data, after one sending end of the microprocessor sends the data, one receiving end of the microprocessor receives loop data fed back by the CAN bus transceiver, the sending end compares the sent data with the loop data after finishing sending the data, and when the comparison result is consistent, the data is judged to be successfully sent;
a register value detector connected with the microprocessor and used for detecting a bus state register value on the CAN bus, wherein the bus state register value is used for corresponding to a data transmission state on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for sending data transmission on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for receiving data reception on the CAN bus, the register value detector detects that the register value on the CAN bus is an abnormal register value for sending data transmission abnormality on the CAN bus, and the register value detector detects that the register value on the CAN bus is an abnormal register value for receiving data reception abnormality on the CAN bus;
and the display circuit is connected with the microprocessor and used for displaying the bus state register value and the data transmission state on the CAN bus detected by the register value detector and also used for displaying whether the data sent by the sending end of the microprocessor is successfully sent.
Preferably, the optical fiber module further comprises an optical fiber module and a signal conditioning circuit, and the optical fiber module is connected with the microprocessor through the signal conditioning circuit.
Preferably, the fiber optic module includes:
the time sequence acquisition device is used for acquiring the real-time working time sequence of a digital high-speed serial transceiver of the optical fiber communication system;
the time sequence comparison device is used for comparing the working time sequence with a reference time sequence prestored when the digital high-speed serial transceiver works normally, judging the optical path fault of the optical fiber communication system when the working time sequence is inconsistent with the reference time sequence, and sending the judgment result of the optical path fault to the controller;
fault locating device, under the control of controller to the light path fault location, its concrete mode is: determining a plurality of calibration points on a light path in a normal state of the light path, measuring the light path distance from a starting point of the light path to all the calibration points to form a distance set, acquiring the geographical coordinates of all the calibration points to form a coordinate set, measuring the fault distance from the starting point of the light path to a fault point when the fault comparison device judges that the light path has a fault, finding the light path distance with the minimum difference value between the distance set and the fault distance, determining a first calibration point closest to the fault point according to the light path distance with the minimum difference value, and acquiring the geographical coordinates of the first calibration point from the coordinate set;
the fault self-healing device self-heals the optical path fault under the control of the controller, and the specific mode is as follows: in the optical path fault state, on the basis that the fault positioning device acquires the geographic coordinate of the first calibration point, sending a preset self-healing time sequence to the digital high-speed serial transceiver, and responding to the self-healing time sequence to execute fault self-healing of the optical fiber communication system;
the controller is used for receiving and processing a judgment result fed back by the time sequence comparison device, controlling the fault positioning device to position the optical path fault according to the judgment result, receiving a fault positioning result fed back by the fault positioning device, namely the geographic coordinate of a first calibration point, controlling the fault self-healing device to carry out fault self-healing on the optical path fault according to the geographic coordinate of the first calibration point, and receiving a fault self-healing result fed back by the fault self-healing device;
wherein, time sequence collection system's output with time sequence comparison device's input is connected, time sequence comparison device's output with an input of controller is connected, fault locating device with controller both way junction, fault self-healing device with controller both way junction, an output of controller with signal conditioning circuit's input is connected, signal conditioning circuit's output with a receiving terminal of microprocessor is connected.
Preferably, the optical fiber module further includes a standby fault detection device, where the standby fault detection device includes an optical power detection device, an optical fiber vibration detection device, a non-working optical fiber detection device, an OTDR, and an optical detection device;
the output end of the optical power detection device is connected with one input end of the controller and is used for detecting the optical power of an optical path of the optical fiber communication system and sending the optical power detection result to the controller;
the output end of the optical fiber vibration detection device is connected with one input end of the controller and is used for detecting vibration information of an optical path of the optical fiber communication system and sending a vibration information detection result to the controller;
an output end of the OTDR is connected to an input end of the non-operating optical fiber detection device, and an output end of the non-operating optical fiber detection device is connected to an input end of the controller, and is configured to detect, through the OTDR, fault information of a non-operating optical fiber of an optical fiber communication system, and send a detection result of the fault information of the non-operating optical fiber to the controller;
an output end of the OTDR is connected to an input end of the optical detection device, and an output end of the optical detection device is connected to an input end of the controller, and is configured to detect fault information of an optical path of an optical fiber communication system through the OTDR and send a detection result of the fault information of the optical path to the controller;
and when the controller receives the optical path fault judgment result sent by the time sequence comparison device or the optical path fault detection result sent by the optical detection device, the controller determines that the optical path of the optical fiber communication system is in a fault state.
Preferably, the optical fiber module further comprises a working optical path switching device, and the working optical path switching device is connected with the controller and is used for controlling the on-off of a working optical fiber optical path and a non-working optical fiber optical path of the optical fiber communication system.
Preferably, when the controller determines that the optical path of the optical fiber communication system is in a fault state, the working optical path switching device cuts off an original working optical path of the optical fiber communication system and connects the original working optical path to a standby non-working optical path of the optical fiber communication system.
Preferably, when the optical power detection result received by the controller is in an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the original working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
Preferably, when the vibration information detection result received by the controller is in an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the original working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
Preferably, when the detection result of the non-working optical fiber fault information received by the controller is a fault state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system, and cuts off a spare non-working optical fiber path of the optical fiber communication system.
Preferably, the optical fiber module further comprises an emergency alarm device, the emergency alarm device is connected with the controller, and when a working optical fiber light path and a non-working optical fiber light path of the optical fiber communication system are cut off simultaneously, the emergency alarm device sends alarm information.
The invention has the beneficial effects that: (1) the invention can detect whether the sending end of the invention successfully sends the data in real time through the microprocessor; the register value detector can detect the transmission state of data on the bus in real time; the display circuit can display the detection result in real time; the data transmission of the communication device is in a normal state, and when the communication device is abnormal, maintenance personnel can quickly respond according to the display device.
(2) The optical fiber module judges the fault of the optical fiber communication system through acquiring the real-time working time sequence of the digital high-speed serial transceiver and when the working time sequence is inconsistent with the reference time sequence, and sends the positive pulse of the working time sequence to the digital high-speed serial transceiver, and responds to the positive pulse to execute the fault self-healing of the optical fiber communication system, so that the fault of the optical path can be automatically checked and self-healed, the fault checking and recovery efficiency is improved, and the manual intervention is reduced.
Additional features and advantages of the invention will be set forth in the description which follows. Also, some of the features and advantages of the invention will be apparent from the description, or may be learned by practice of the invention. The objectives and some of the advantages of the invention may be realized and attained by the process particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic structural diagram of embodiment 1 of the present invention.
Fig. 2 is a schematic structural diagram of embodiment 2 of the present invention.
Detailed Description
The following detailed description will be provided for the embodiments of the present invention with reference to the accompanying drawings and examples, so that the practitioner of the present invention can fully understand how to apply the technical means to solve the technical problems, achieve the technical effects, and implement the present invention according to the implementation procedures. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Example 1:
a CAN-bus based communication device, the device comprising:
the CAN bus transceiver receives data to be sent from the microprocessor, sends the data, generates loop data which is the same as the sent data and feeds the loop data back to the processor;
the microprocessor comprises a sending end for sending data and a receiving end for receiving data, the sending end and the receiving end are connected with the CAN bus transceiver in a bidirectional mode to receive and send the data, after one sending end of the microprocessor sends the data, one receiving end of the microprocessor receives loop data fed back by the CAN bus transceiver, the sending end compares the sent data with the loop data after finishing sending the data, and when the comparison result is consistent, the data is judged to be successfully sent;
a register value detector connected with the microprocessor and used for detecting a bus state register value on the CAN bus, wherein the bus state register value is used for corresponding to a data transmission state on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for sending data transmission on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for receiving data reception on the CAN bus, the register value detector detects that the register value on the CAN bus is an abnormal register value for sending data transmission abnormality on the CAN bus, and the register value detector detects that the register value on the CAN bus is an abnormal register value for receiving data reception abnormality on the CAN bus;
and the display circuit is connected with the microprocessor and used for displaying the bus state register value and the data transmission state on the CAN bus detected by the register value detector and also used for displaying whether the data sent by the sending end of the microprocessor is successfully sent.
The microprocessor can detect whether the sending end of the microprocessor successfully sends the data in real time; the register value detector can detect the transmission state of data on the bus in real time; the display circuit can display the detection result in real time; the data transmission of the communication device is in a normal state, and when the communication device is abnormal, maintenance personnel can quickly respond according to the display device.
Preferably, the optical fiber module further comprises an optical fiber module and a signal conditioning circuit, and the optical fiber module is connected with the microprocessor through the signal conditioning circuit.
Preferably, the fiber optic module includes:
the time sequence acquisition device is used for acquiring the real-time working time sequence of a digital high-speed serial transceiver of the optical fiber communication system;
the time sequence comparison device is used for comparing the working time sequence with a reference time sequence prestored when the digital high-speed serial transceiver works normally, judging the optical path fault of the optical fiber communication system when the working time sequence is inconsistent with the reference time sequence, and sending the judgment result of the optical path fault to the controller;
fault locating device, under the control of controller to the light path fault location, its concrete mode is: determining a plurality of calibration points on a light path in a normal state of the light path, measuring the light path distance from a starting point of the light path to all the calibration points to form a distance set, acquiring the geographical coordinates of all the calibration points to form a coordinate set, measuring the fault distance from the starting point of the light path to a fault point when the fault comparison device judges that the light path has a fault, finding the light path distance with the minimum difference value between the distance set and the fault distance, determining a first calibration point closest to the fault point according to the light path distance with the minimum difference value, and acquiring the geographical coordinates of the first calibration point from the coordinate set;
the fault self-healing device self-heals the optical path fault under the control of the controller, and the specific mode is as follows: in the optical path fault state, on the basis that the fault positioning device acquires the geographic coordinate of the first calibration point, sending a preset self-healing time sequence to the digital high-speed serial transceiver, and responding to the self-healing time sequence to execute fault self-healing of the optical fiber communication system;
the controller is used for receiving and processing a judgment result fed back by the time sequence comparison device, controlling the fault positioning device to position the optical path fault according to the judgment result, receiving a fault positioning result fed back by the fault positioning device, namely the geographic coordinate of a first calibration point, controlling the fault self-healing device to carry out fault self-healing on the optical path fault according to the geographic coordinate of the first calibration point, and receiving a fault self-healing result fed back by the fault self-healing device;
wherein, time sequence collection system's output with time sequence comparison device's input is connected, time sequence comparison device's output with an input of controller is connected, fault locating device with controller both way junction, fault self-healing device with controller both way junction, an output of controller with signal conditioning circuit's input is connected, signal conditioning circuit's output with a receiving terminal of microprocessor is connected.
Acquiring a real-time working time sequence of a digital high-speed serial transceiver of an optical fiber communication system, and comparing the working time sequence with a pre-stored reference time sequence of the digital high-speed serial transceiver during normal working; when the working time sequence is inconsistent with the reference time sequence, judging the optical path fault of the optical fiber communication system; under the state of optical path fault, sending a preset self-healing time sequence to the digital high-speed serial transceiver, and responding to the self-healing time sequence to execute the fault self-healing of the optical fiber communication system; the working time sequence comprises a digital high-speed serial transceiver sending reset time sequence and a digital high-speed serial transceiver receiving reset time sequence;
the digital high-speed serial transceiver receives a reset time sequence which comprises a physical medium sublayer reset time sequence, a low power consumption mode reset time sequence and a physical coding sublayer reset time sequence;
when the work time sequence is a signal digital high-speed serial transceiver receiving reset time sequence, the preset self-healing time sequence is sent to the digital high-speed serial transceiver, and the step of responding to the self-healing time sequence to execute the fault self-healing of the optical fiber communication system comprises the following steps:
sending a phase-locked loop reset timing sequence to the digital high-speed serial transceiver; the digital high-speed serial transceiver responds to the positive pulse of the phase-locked loop reset time sequence and returns to the phase-locked loop locking time sequence;
if the negative pulse of the phase-locked loop locking time sequence is detected, the receiving physical media sublayer reset time sequence is sent to the digital high-speed serial transceiver; after detecting the positive pulse of the reset time sequence of the receiving physical media sublayer, the digital high-speed serial transceiver executes a self-healing process of the reset time sequence of the receiving physical media sublayer, and returns to a high level of the reset completion time sequence of the receiving physical media sublayer after the self-healing process of the reset time sequence of the receiving physical media sublayer is finished;
responding to the high level of the receiving physical media sublayer reset completion time sequence and sending the receiving low power consumption mode reset time sequence to the digital high-speed serial transceiver; after detecting the positive pulse of the low power consumption mode reset time sequence, the digital high-speed serial transceiver executes a self-healing process of the low power consumption mode reset time sequence, and returns to the high level of the user preparation time sequence after the self-healing process of the low power consumption mode reset time sequence is finished;
sending the receive physical coding sublayer reset sequence to the digital high-speed serial transceiver in response to the high level of the receive user preparation sequence; after detecting the positive pulse of the reset time sequence of the received physical coding sublayer, the digital high-speed serial transceiver executes a self-healing process of the reset time sequence of the received physical coding sublayer and returns to a high level of the received reset completion time sequence after the self-healing process of the reset time sequence of the received physical coding sublayer is finished;
the digital high-speed serial transceiver receiving a reset timing sequence further comprises receiving a cache reset timing sequence;
when the work time sequence is the digital high-speed serial transceiver receiving reset time sequence, the digital high-speed serial transceiver sends a preset self-healing time sequence, and the step of responding to the self-healing time sequence to execute the fault self-healing of the optical fiber communication system further comprises the following steps:
sending the receive buffer reset sequence to the digital high-speed serial transceiver in response to a high level of the receive user preparation sequence; after detecting the positive pulse of the receiving cache resetting time sequence, the digital high-speed serial transceiver executes a receiving cache resetting time sequence self-healing process and returns to a high level of the receiving resetting completion time sequence after the receiving cache resetting time sequence self-healing process is finished;
after the receiving physical media sublayer reset sequence is sent to the digital high-speed serial transceiver, the method further comprises the following steps:
sending a dynamic reconfiguration command and a dynamic reconfiguration command preparation sequence to the digital high-speed serial transceiver;
after detecting the first positive pulse of the preparation time sequence of the dynamic reconfiguration command, the digital high-speed serial transceiver responds to the dynamic reconfiguration command to execute a write 0 operation;
and the digital high-speed serial transceiver responds to the dynamic reconfiguration command to execute data recovery operation after detecting the second positive pulse of the preparation time sequence of the dynamic reconfiguration command.
According to the scheme, the real-time working time sequence of the digital high-speed serial transceiver is obtained, when the working time sequence is inconsistent with the reference time sequence, the optical path fault of the optical fiber communication system is judged, the digital high-speed serial transceiver sends the positive pulse of the working time sequence, the positive pulse is responded, the fault self-healing of the optical fiber communication system is executed, the fault of the optical path can be automatically checked and self-healed, the fault checking and recovery efficiency is improved, the manual intervention is reduced, the state detection of the whole optical path is online real-time detection, the real-time detection can be carried out on the premise of not influencing the normal work of equipment, and the working independence of the equipment and the timeliness of the detection device are guaranteed.
Example 2:
on the basis of embodiment 1, it is preferable that the optical fiber monitoring system further includes a standby fault detection device, where the standby fault detection device includes an optical power detection device, an optical fiber vibration detection device, a non-working optical fiber detection device, an OTDR, and an optical detection device;
the output end of the optical power detection device is connected with one input end of the controller and is used for detecting the optical power of an optical path of the optical fiber communication system and sending the optical power detection result to the controller;
the output end of the optical fiber vibration detection device is connected with one input end of the controller and is used for detecting vibration information of an optical path of the optical fiber communication system and sending a vibration information detection result to the controller;
an output end of the OTDR is connected to an input end of the non-operating optical fiber detection device, and an output end of the non-operating optical fiber detection device is connected to an input end of the controller, and is configured to detect, through the OTDR, fault information of a non-operating optical fiber of an optical fiber communication system, and send a detection result of the fault information of the non-operating optical fiber to the controller;
an output end of the OTDR is connected to an input end of the optical detection device, and an output end of the optical detection device is connected to an input end of the controller, and is configured to detect fault information of an optical path of an optical fiber communication system through the OTDR and send a detection result of the fault information of the optical path to the controller;
and when the controller receives the optical path fault judgment result sent by the time sequence comparison device or the optical path fault detection result sent by the optical detection device, the controller determines that the optical path of the optical fiber communication system is in a fault state.
The working condition of the optical fiber communication system can be comprehensively and automatically detected in real time through the detection result of the optical power, the detection result of the vibration information, the detection result of the non-working optical fiber fault information and the detection result of the optical path fault information, and the control of the whole system by maintenance personnel of the optical fiber communication system is greatly facilitated.
Preferably, the optical fiber communication system further comprises a working optical path switching device, wherein the working optical path switching device is connected with the controller and is used for controlling the on-off of a working optical fiber optical path and a non-working optical fiber optical path of the optical fiber communication system.
Preferably, when the controller determines that the optical path of the optical fiber communication system is in a fault state, the working optical path switching device cuts off an original working optical path of the optical fiber communication system and connects the original working optical path to a standby non-working optical path of the optical fiber communication system.
Preferably, when the optical power detection result received by the controller is in an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the original working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
Preferably, when the vibration information detection result received by the controller is in an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the original working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
By controlling the on-off of the working optical fiber light path and the non-working optical fiber light path of the optical fiber communication system, when the original working optical fiber light path fails, the optical fiber communication system can be switched to the standby non-working optical fiber light path, the normal work of the optical fiber communication system can be ensured, and the adverse effect caused by the failure of the original working optical fiber light path is reduced.
Preferably, when the detection result of the non-working optical fiber fault information received by the controller is a fault state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system, and cuts off a spare non-working optical fiber path of the optical fiber communication system. The safe operation of other lines of the optical fiber communication system can be effectively protected and is not influenced by the fault line.
Preferably, the optical fiber communication system further comprises an emergency alarm device, wherein the emergency alarm device is connected with the controller, and when a working optical fiber light path and a non-working optical fiber light path of the optical fiber communication system are cut off simultaneously, the emergency alarm device sends alarm information.
The fault condition of the line of the optical fiber communication system maintainer can be informed through the alarm information sent by the emergency alarm device, and the self-healing system of the optical fiber communication system can not overcome the fault of the existing optical fiber communication system and needs the optical fiber communication system maintainer to carry out emergency treatment on the scene.
Example 3:
preferably on the basis of the embodiment 2, when the communication traffic of the power system increases and a standby non-working light path needs to be changed into a working light path, the scheme can remotely complete the switching of the corresponding device from a non-working light path operation mode to a working light path operation mode; when the communication accuracy of the working light path operation is ensured in order to improve the monitoring independence, the system can remotely complete the switching from the working light path operation mode with protection to the non-working light path operation mode.
The controller adopt the model to be STM32F205 'S singlechip, optic fibre vibration detection device is the optic fibre vibration detector of RJ45 interface, optical detection device adopt the model to be STM8S105 series' S singlechip, non-work optic fibre detection device adopt the model to be STM8S105 series 'S singlechip, optical power detection device is RS232 interface optical power meter, and emergency alarm device adopts MDZ12 series chip, work light path auto-change over device adopt the model to be STM8S103 series' S singlechip.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. The technical scheme of the invention can also have other various embodiments. Various corresponding changes or modifications may be made by those skilled in the art without departing from the spirit of the invention, and these corresponding changes or modifications are intended to fall within the scope of the appended claims.
Claims (10)
1. A CAN-bus based communication apparatus, the apparatus comprising:
the CAN bus transceiver receives data to be sent from the microprocessor, sends the data, generates loop data which is the same as the sent data and feeds the loop data back to the processor;
the microprocessor comprises a sending end for sending data and a receiving end for receiving data, the sending end and the receiving end are connected with the CAN bus transceiver in a bidirectional mode to receive and send the data, after one sending end of the microprocessor sends the data, one receiving end of the microprocessor receives loop data fed back by the CAN bus transceiver, the sending end compares the sent data with the loop data after finishing sending the data, and when the comparison result is consistent, the data is judged to be successfully sent;
a register value detector connected with the microprocessor and used for detecting a bus state register value on the CAN bus, wherein the bus state register value is used for corresponding to a data transmission state on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for sending data transmission on the CAN bus, the register value detector detects that the register value on the CAN bus is a timing value for receiving data reception on the CAN bus, the register value detector detects that the register value on the CAN bus is an abnormal register value for sending data transmission abnormality on the CAN bus, and the register value detector detects that the register value on the CAN bus is an abnormal register value for receiving data reception abnormality on the CAN bus;
and the display circuit is connected with the microprocessor and used for displaying the bus state register value and the data transmission state on the CAN bus detected by the register value detector and also used for displaying whether the data sent by the sending end of the microprocessor is successfully sent.
2. The CAN-bus-based communication device according to claim 1, further comprising an optical fiber module and a signal conditioning circuit, wherein the optical fiber module is connected to the microprocessor through the signal conditioning circuit.
3. The CAN-bus based communication device of claim 2, wherein the fiber optic module comprises:
the time sequence acquisition device is used for acquiring the real-time working time sequence of a digital high-speed serial transceiver of the optical fiber communication system;
the time sequence comparison device is used for comparing the working time sequence with a reference time sequence prestored when the digital high-speed serial transceiver works normally, judging the optical path fault of the optical fiber communication system when the working time sequence is inconsistent with the reference time sequence, and sending the judgment result of the optical path fault to the controller;
fault locating device, under the control of controller to the light path fault location, its concrete mode is: determining a plurality of calibration points on a light path in a normal state of the light path, measuring the light path distance from a starting point of the light path to all the calibration points to form a distance set, acquiring the geographical coordinates of all the calibration points to form a coordinate set, measuring the fault distance from the starting point of the light path to a fault point when the fault comparison device judges that the light path has a fault, finding the light path distance with the minimum difference value between the distance set and the fault distance, determining a first calibration point closest to the fault point according to the light path distance with the minimum difference value, and acquiring the geographical coordinates of the first calibration point from the coordinate set;
the fault self-healing device self-heals the optical path fault under the control of the controller, and the specific mode is as follows: in the optical path fault state, on the basis that the fault positioning device acquires the geographic coordinate of the first calibration point, sending a preset self-healing time sequence to the digital high-speed serial transceiver, and responding to the self-healing time sequence to execute fault self-healing of the optical fiber communication system;
the controller is used for receiving and processing a judgment result fed back by the time sequence comparison device, controlling the fault positioning device to position the optical path fault according to the judgment result, receiving a fault positioning result fed back by the fault positioning device, namely the geographic coordinate of a first calibration point, controlling the fault self-healing device to carry out fault self-healing on the optical path fault according to the geographic coordinate of the first calibration point, and receiving a fault self-healing result fed back by the fault self-healing device;
wherein, time sequence collection system's output with time sequence comparison device's input is connected, time sequence comparison device's output with an input of controller is connected, fault locating device with controller both way junction, fault self-healing device with controller both way junction, an output of controller with signal conditioning circuit's input is connected, signal conditioning circuit's output with a receiving terminal of microprocessor is connected.
4. A CAN-bus based communication device according to claim 3, wherein the optical fiber module further comprises a backup failure detection device, the backup failure detection device comprises an optical power detection device, an optical fiber vibration detection device, a non-working optical fiber detection device, an OTDR and an optical detection device;
the output end of the optical power detection device is connected with one input end of the controller and is used for detecting the optical power of an optical path of the optical fiber communication system and sending the optical power detection result to the controller;
the output end of the optical fiber vibration detection device is connected with one input end of the controller and is used for detecting vibration information of an optical path of the optical fiber communication system and sending a vibration information detection result to the controller;
an output end of the OTDR is connected to an input end of the non-operating optical fiber detection device, and an output end of the non-operating optical fiber detection device is connected to an input end of the controller, and is configured to detect, through the OTDR, fault information of a non-operating optical fiber of an optical fiber communication system, and send a detection result of the fault information of the non-operating optical fiber to the controller;
an output end of the OTDR is connected to an input end of the optical detection device, and an output end of the optical detection device is connected to an input end of the controller, and is configured to detect fault information of an optical path of an optical fiber communication system through the OTDR and send a detection result of the fault information of the optical path to the controller;
and when the controller receives the optical path fault judgment result sent by the time sequence comparison device or the optical path fault detection result sent by the optical detection device, the controller determines that the optical path of the optical fiber communication system is in a fault state.
5. The CAN-bus-based communication device according to claim 4, wherein the optical fiber module further comprises a working optical path switching device, and the working optical path switching device is connected to the controller and is configured to control on/off of a working optical fiber path and a non-working optical fiber path of the optical fiber communication system.
6. The CAN-bus based communication device of claim 5, wherein when the controller determines that the optical path of the optical fiber communication system is in a fault state, the working optical path switching device cuts off the original working optical path of the optical fiber communication system and connects the original working optical path to the spare non-working optical path of the optical fiber communication system.
7. The CAN-bus based communication device of claim 5, wherein when the optical power detection result received by the controller is an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the original working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
8. The CAN-bus-based communication device according to claim 5, wherein when the controller receives the vibration information and detects that the vibration information is in an abnormal state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and connects the working optical fiber path to a standby non-working optical fiber path of the optical fiber communication system.
9. The CAN-bus-based communication apparatus according to any one of claims 6 to 8, wherein when the controller receives the non-working optical fiber fault information and detects that the non-working optical fiber fault information is in a fault state, the working optical path switching device cuts off an original working optical fiber path of the optical fiber communication system and cuts off a spare non-working optical fiber path of the optical fiber communication system.
10. The CAN-bus-based communication device according to claim 9, wherein the optical fiber module further comprises an emergency alarm device, the emergency alarm device is connected to the controller, and the emergency alarm device sends an alarm message when an operating optical fiber path and a non-operating optical fiber path of the optical fiber communication system are simultaneously cut off.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911129613.4A CN110855347A (en) | 2019-11-18 | 2019-11-18 | Communication device based on CAN bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911129613.4A CN110855347A (en) | 2019-11-18 | 2019-11-18 | Communication device based on CAN bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110855347A true CN110855347A (en) | 2020-02-28 |
Family
ID=69602092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911129613.4A Pending CN110855347A (en) | 2019-11-18 | 2019-11-18 | Communication device based on CAN bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110855347A (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010094804A (en) * | 2000-04-07 | 2001-11-03 | 이동문 | method for a long range operating optical fiber fault prevention system |
CN1798114A (en) * | 2004-12-29 | 2006-07-05 | 中国船舶重工集团公司第七一一研究所 | CAN bus - bridge of Ethernet network |
CN101464846A (en) * | 2008-12-09 | 2009-06-24 | 北京星网锐捷网络技术有限公司 | Data card read-write method, interface control method and apparatus |
CN102053570A (en) * | 2010-10-29 | 2011-05-11 | 中国兵器工业集团第二一四研究所苏州研发中心 | Single-chip digital controller for electric steering engine and unipolar and dipolar modulation control method |
CN102355382A (en) * | 2011-09-28 | 2012-02-15 | 东南大学 | Method for analyzing and triggering controller area network (CAN) bus |
CN103186447A (en) * | 2011-12-27 | 2013-07-03 | 安凯(广州)微电子技术有限公司 | Bus read-write detection device |
CN103293995A (en) * | 2013-06-09 | 2013-09-11 | 南车株洲电力机车研究所有限公司 | Field bus communication module based on microcontroller |
CN103780305A (en) * | 2014-01-23 | 2014-05-07 | 深圳市金宏威技术股份有限公司 | Concentrated monitoring and managing method and system of power distribution network communication optical cable network |
CN106094801A (en) * | 2016-07-12 | 2016-11-09 | 四川大学 | A kind of novel CAN FD controller |
CN107528630A (en) * | 2017-10-20 | 2017-12-29 | 东北电力大学 | With Backup lightpath and failure can self-healing double mode optic-fiber monitoring system and method |
CN206993134U (en) * | 2017-04-13 | 2018-02-09 | 北京光年无限科技有限公司 | A kind of communicator based on CAN transceiver |
CN107888279A (en) * | 2017-11-17 | 2018-04-06 | 京信通信系统(中国)有限公司 | The fault self-recovery method and system of optical fiber telecommunications system |
CN108090010A (en) * | 2016-11-23 | 2018-05-29 | 英飞凌科技奥地利有限公司 | Bus unit, processing method, setting method and setting system |
CN108923847A (en) * | 2018-08-09 | 2018-11-30 | 平湖波汇通信科技有限公司 | A kind of Cable's Fault monitoring and accurate positioning method based on GIS |
-
2019
- 2019-11-18 CN CN201911129613.4A patent/CN110855347A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010094804A (en) * | 2000-04-07 | 2001-11-03 | 이동문 | method for a long range operating optical fiber fault prevention system |
CN1798114A (en) * | 2004-12-29 | 2006-07-05 | 中国船舶重工集团公司第七一一研究所 | CAN bus - bridge of Ethernet network |
CN101464846A (en) * | 2008-12-09 | 2009-06-24 | 北京星网锐捷网络技术有限公司 | Data card read-write method, interface control method and apparatus |
CN102053570A (en) * | 2010-10-29 | 2011-05-11 | 中国兵器工业集团第二一四研究所苏州研发中心 | Single-chip digital controller for electric steering engine and unipolar and dipolar modulation control method |
CN102355382A (en) * | 2011-09-28 | 2012-02-15 | 东南大学 | Method for analyzing and triggering controller area network (CAN) bus |
CN103186447A (en) * | 2011-12-27 | 2013-07-03 | 安凯(广州)微电子技术有限公司 | Bus read-write detection device |
CN103293995A (en) * | 2013-06-09 | 2013-09-11 | 南车株洲电力机车研究所有限公司 | Field bus communication module based on microcontroller |
CN103780305A (en) * | 2014-01-23 | 2014-05-07 | 深圳市金宏威技术股份有限公司 | Concentrated monitoring and managing method and system of power distribution network communication optical cable network |
CN106094801A (en) * | 2016-07-12 | 2016-11-09 | 四川大学 | A kind of novel CAN FD controller |
CN108090010A (en) * | 2016-11-23 | 2018-05-29 | 英飞凌科技奥地利有限公司 | Bus unit, processing method, setting method and setting system |
CN206993134U (en) * | 2017-04-13 | 2018-02-09 | 北京光年无限科技有限公司 | A kind of communicator based on CAN transceiver |
CN107528630A (en) * | 2017-10-20 | 2017-12-29 | 东北电力大学 | With Backup lightpath and failure can self-healing double mode optic-fiber monitoring system and method |
CN107888279A (en) * | 2017-11-17 | 2018-04-06 | 京信通信系统(中国)有限公司 | The fault self-recovery method and system of optical fiber telecommunications system |
CN108923847A (en) * | 2018-08-09 | 2018-11-30 | 平湖波汇通信科技有限公司 | A kind of Cable's Fault monitoring and accurate positioning method based on GIS |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5200949A (en) | Link changeover control system for local area network of broadcasting arrangement | |
CN102055525A (en) | Loop detecting and controlling method | |
CN103678198B (en) | The latch-release method of bus, apparatus and system | |
CN104639468A (en) | Optical port adaptive Ethernet switch and adaptive method thereof | |
CN110650073B (en) | CAN bus communication method for mass data transmission | |
CN104104542B (en) | RS 485-based real-time intelligent obstacle removing method | |
CN111341063A (en) | Intelligent control system, method and device for safety early warning and monitoring of electric equipment and terminal equipment | |
CN107888279B (en) | Fault self-healing method, system, computer readable storage medium and computer device | |
CN113114551B (en) | Dual-redundancy LIN bus communication device | |
US20080002569A1 (en) | Method and apparatus for identifying a fault in a communications link | |
CN110855347A (en) | Communication device based on CAN bus | |
CN110830105A (en) | Troubleshooting device based on optical fiber communication transceiver | |
CN111169510A (en) | Train communication system | |
CN107844398A (en) | A kind of server monitoring method and device | |
CN213072692U (en) | Integrated diagnosis and multiplexing serial communication master station management device | |
CN110749046B (en) | Air conditioner control method and device, air conditioner and computer readable storage medium | |
CN114172824A (en) | Redundancy switching method and device for oil-gas pipeline high-speed bus and controller | |
KR101234102B1 (en) | A circuit automatic switching apparatus and its operational method thereof | |
CN116654049B (en) | Train state data processing method, device, equipment and storage medium | |
CN113364659B (en) | Data acquisition system based on Modbus protocol | |
CN209690933U (en) | Cable management system based on IOT | |
CN114826890B (en) | Communication method, system, device and train | |
CN114401183A (en) | Edge cloud disaster recovery system, method and device based on distributed cloud platform | |
JPH04116473A (en) | Distributed control system with signal cable connection monitoring function | |
JP3133172B2 (en) | Multi-wave ring LAN fault management system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200228 |
|
RJ01 | Rejection of invention patent application after publication |