CN103124255B - Method for transmitting signals - Google Patents

Method for transmitting signals Download PDF

Info

Publication number
CN103124255B
CN103124255B CN201110369339.5A CN201110369339A CN103124255B CN 103124255 B CN103124255 B CN 103124255B CN 201110369339 A CN201110369339 A CN 201110369339A CN 103124255 B CN103124255 B CN 103124255B
Authority
CN
China
Prior art keywords
data
bus
relaying
electric signal
ebi
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.)
Active
Application number
CN201110369339.5A
Other languages
Chinese (zh)
Other versions
CN103124255A (en
Inventor
郭浩
盖峰
杨水华
杨继伟
苗佳旺
杨辉
赵华
李世鹏
李晶
郑煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Watertek Information Technology Co Ltd
Original Assignee
Beijing Watertek Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Watertek Information Technology Co Ltd filed Critical Beijing Watertek Information Technology Co Ltd
Priority to CN201110369339.5A priority Critical patent/CN103124255B/en
Publication of CN103124255A publication Critical patent/CN103124255A/en
Application granted granted Critical
Publication of CN103124255B publication Critical patent/CN103124255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a kind of method for transmitting signals. Relate to the communications field; Solve and in prior art, do not had the machine-processed problem that uses CAN bus to realize MARS. The method comprises: CAN relaying card is collected CAN agreement electric signal; Described CAN relaying card is processed described CAN bus electric signal, obtains the data of photoelectric adapter EBI form; Described CAN relaying card by described photoelectric adapter EBI, is sent to photoelectric adapter by the data of described photoelectric adapter EBI form. Technical scheme provided by the invention is applicable to MARS, has realized the application of CAN agreement in MARS.

Description

Method for transmitting signals
Technical field
The present invention relates to the communications field, relate in particular to a kind of controller local area network (CAN) bus electricThe method for transmitting signals of signal.
Background technology
Multipurpose avionics relay system (MARS) is used for realizing Long-range links between discrete laboratoryAvionics junction network, is connected with various electric interfaces by multiple electric adapter, multiple electric adapterThe data format that becomes MARS to need different transform electric, a photoelectric adapter is by dataConverting optical signal to transmits; Another photoelectric adapter changes into the optical signal receiving electric suitableJoin the needed data format of card, electric adapter receives data and exports various electric signals, completes electricThe relaying of signal.
Summary of the invention
The invention provides a kind of method for transmitting signals, solved in prior art and do not existed and use CANBus realizes the machine-processed problem of MARS.
A kind of method for transmitting signals, comprising:
CAN relaying card is collected CAN agreement electric signal;
Described CAN relaying card is processed described CAN bus electric signal, obtains photoelectric adapterThe data of EBI form;
The data of described photoelectric adapter EBI form are passed through described photoelectricity by described CAN relaying cardAdapter EBI, is sent to photoelectric adapter.
Preferably, described CAN relaying card is processed described CAN bus electric signal, obtains lightThe data of Electric adapter EBI form comprise:
Described CAN bus electric signal is carried out to level conversion, obtain the TTL that contains CAN agreementSignal;
According to CAN agreement, the TTL signal of the described CAN of containing agreement is resolved, obtain effectivelyData;
Described valid data are split to combination, obtain the number of described photoelectric adapter EBI formAccording to.
The present invention also provides a kind of method for transmitting signals, in multipurpose avionics relay system, and the methodComprise:
Photoelectric adapter, by photoelectric adapter EBI, is sent to the data that receive from outsideCAN relaying card;
Described CAN relaying card is processed the data that receive from described photoelectric adapter, obtains CANBus electric signal;
Described CAN relaying cartoon is crossed described CAN protocol bus interface to described in the transmission of CAN busCAN bus electric signal.
Preferably, described CAN relaying card is processed the data that receive from described photoelectric adapter,Obtaining CAN bus electric signal comprises:
The Data Integration receiving from described photoelectric adapter is become intermediate data format by described CAN relaying cardData;
According to CAN agreement, the data of described intermediate data format are resolved, obtain containing CANThe TTL signal of agreement;
TTL signal to the described CAN of containing agreement carries out level conversion, obtains CAN bus electricSignal.
The invention provides a kind of method for transmitting signals, in the time that needs send electric signal, CAN relaying cardCollect CAN agreement electric signal, described CAN bus electric signal is processed, obtain photoelectricity suitableThe data of orchestration EBI form, then the data of described photoelectric adapter EBI form are passed through to instituteState photoelectric adapter EBI, be sent to photoelectric adapter; In the time receiving the data of optical signal carrying,Photoelectric adapter, by photoelectric adapter EBI, is sent to CAN by the data that receive from outsideRelaying card, described CAN relaying card is processed the data that receive from described photoelectric adapter, obtainsCAN bus electric signal, then sends described CAN bus by described CAN protocol bus interfaceElectric signal. Realize the application of CAN bus in MARS, solved and do not had use CANBus realizes the machine-processed problem of MARS.
Brief description of the drawings
The flow chart of a kind of method for transmitting signals that Fig. 1 provides for embodiments of the invention one;
The flow chart of a kind of method for transmitting signals that Fig. 2 provides for embodiments of the invention one;
The data flow figure of the method for transmitting signals that Fig. 3 provides for embodiments of the invention.
Detailed description of the invention
In order never to there is the machine-processed problem that uses the present MARS of CAN bus, reality of the present invention in solutionExecute example a kind of method for transmitting signals is provided. Hereinafter in connection with accompanying drawing, embodiments of the invention are carried out in detailDescribe in detail bright. It should be noted that, in the situation that not conflicting, in embodiment and embodiment in the applicationFeature can mutually be combined.
First by reference to the accompanying drawings, embodiments of the invention one are described.
CAN bus transform electric is become the needed data lattice of photoelectric adapter by the embodiment of the present inventionFormula, carries out photoelectricity transmission by photoelectric adapter; Photoelectric adapter receives optical signal, converts CAN toRelaying card data format, more further convert thereof into CAN bus electric signal by CAN relaying card and send outDeliver in CAN bus, realize the relaying between photoelectric adapter and CAN bus. CAN busElectric signal adopts storage forwarding form, avoids MARS system to extend the impact on bus, can be simultaneouslyMultibus transmission, improves laboratory system integrated level.
The embodiment of the present invention provides a kind of method for transmitting signals, and CAN bus electrical communications is passed through to lightElectric adapter converts light transmission to, and is reduced into CAN bus electric signal. Can realize CAN multibusMerge relaying, simplify circuit, extend bus transfer distance.
The embodiment of the present invention, by resolving CAN bus data, is stored, and converts to photoelectricity adaptationRequirement data format is sent, and idiographic flow as shown in Figure 1, comprising:
Step 101, CAN relaying card are collected CAN agreement electric signal;
Step 102, described CAN relaying card are processed described CAN bus electric signal, obtainThe data of photoelectric adapter EBI form;
This step specifically comprises:
1, described CAN bus electric signal is carried out to level conversion, obtain the TTL that contains CAN agreementSignal;
Be TTL by CAN bus electric signal (Frame, remote control frame etc.) through driving chip level conversionFrame signal.
2, according to CAN agreement, the TTL signal of the described CAN of containing agreement is resolved, obtainedEffect data;
Carry out CAN protocol analysis, consecutive frame is resolved to parallel data, generation CAN device id,Data amount check, data content etc.
3, described valid data are split to combination, obtain described photoelectric adapter EBI formData;
Size at the frame of CAN bus transfer is indefinite, in order to meet a complete frame of storage,FPGA storage arrange maximal format (mark (ID) account for 32bit, data link control (DLC) account for 4bit,Data (DATA) account for 64bit). After being added to flag bit, these frame data reassemble into suitable data format,Deliver to photoelectric adapter, complete the conversion of electric signal to optical signal.
Step 103, described CAN relaying card pass through the data of described photoelectric adapter EBI formDescribed photoelectric adapter EBI, is sent to photoelectric adapter.
In addition, the method for transmitting signals that uses embodiments of the invention to provide, can also receive photoelectricity suitableJoin the data of transmission, send in corresponding CAN bus through Data Analysis, realize CAN bus and passDefeated relaying, its flow process as shown in Figure 2, comprising:
Step 201, photoelectric adapter are by photoelectric adapter EBI, by the number receiving from outsideAccording to being sent to CAN relaying card;
Step 202, described CAN relaying card are processed the data that receive from described photoelectric adapter,Obtain CAN bus electric signal;
This step is specific as follows:
1, the Data Integration receiving from described photoelectric adapter is become intermediate data lattice by described CAN relaying cardThe data of formula;
2, according to CAN agreement, the data of described intermediate data format are resolved, containedThe TTL signal of CAN agreement;
Receive the data that photoelectric adapter is sent here, by flag bit judge resolve to CAN equipment ID,Data amount check, data content etc., change into TTL serial according to CAN agreement regulation by these parallel datasFrame.
3, the TTL signal of the described CAN of containing agreement is carried out to level conversion, obtain CAN bus electricityGas signal.
Step 203, described CAN relaying cartoon are crossed described CAN protocol bus interface, total to CANLine sends described CAN bus electric signal.
Through driving chip level conversion, be sent in CAN bus, complete the relaying of CAN bus.
In conjunction with the flow process shown in Fig. 1 and Fig. 2, a kind of side signal transmission that embodiments of the invention provideData flow in method as shown in Figure 3.
The related CAN relaying card of embodiments of the invention can be by FPGA and CAN bus driver coreSheet composition, is completed the parsing of TTL signal is integrated or by photoelectric adapter EBI type by FPGAData transaction become TTL signal, by CAN bus driver chip by CAN bus transform electricBecome TTL signal, or convert TTL signal to CAN bus electric signal.
Embodiments of the invention provide a kind of method for transmitting signals, in the time that needs send electric signal,CAN relaying card is collected CAN agreement electric signal, described CAN bus electric signal processed,Obtain the data of photoelectric adapter EBI form, then by described photoelectric adapter EBI formData, by described photoelectric adapter EBI, are sent to photoelectric adapter; Hold receiving optical signalCarry data time, photoelectric adapter is by photoelectric adapter EBI, by the data that receive from outsideBe sent to CAN relaying card, described CAN relaying card carries out the data that receive from described photoelectric adapterProcess, obtain CAN bus electric signal, described in then sending by described CAN protocol bus interfaceCAN bus electric signal. Realize the application of CAN bus in MARS, do not solved and existed and makeRealize the machine-processed problem of MARS by CAN bus.
The all or part of step that one of ordinary skill in the art will appreciate that above-described embodiment can make to use tricksCalculation machine program circuit is realized, and described computer program can be stored in a computer-readable recording medium,Described computer program (as system, unit, device etc.) on corresponding hardware platform is carried out,In the time carrying out, comprise step of embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can realize with integrated circuit, thisA little steps can be made into respectively integrated circuit modules one by one, or by the multiple modules in them orStep is made into single integrated circuit module and realizes. Like this, the present invention is not restricted to any specific hardPart and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation elementRealize, they can concentrate on single calculation element, also can be distributed in multiple calculation element institute groupOn the network becoming.
Each device/functional module/functional unit in above-described embodiment is realized with the form of software function moduleAnd as production marketing independently or while using, can be stored in a computer read/write memory medium.The above-mentioned computer read/write memory medium of mentioning can be read-only storage, disk or CD etc.
Any be familiar with those skilled in the art the present invention disclose technical scope in, can think easilyTo changing or replacing, within all should being encompassed in protection scope of the present invention. Therefore, protection model of the present inventionEnclose and should be as the criterion with the protection domain described in claim.

Claims (2)

1. a method for transmitting signals, is characterized in that, is applied in multipurpose avionics relay system, shouldMethod comprises:
The CAN of controller local area network relaying card is collected CAN agreement electric signal;
Described CAN relaying card is processed described CAN bus electric signal, obtains photoelectric adapterThe data of EBI form;
The data of described photoelectric adapter EBI form are passed through described photoelectricity by described CAN relaying cardAdapter EBI, is sent to photoelectric adapter;
Wherein, described CAN relaying card is processed described CAN bus electric signal, obtains photoelectricityThe data of adapter EBI form comprise:
Described CAN bus electric signal is carried out to level conversion, obtain the TTL that contains CAN agreementSignal;
According to CAN agreement, the TTL signal of the described CAN of containing agreement is resolved, obtain effectivelyData;
Described valid data are split to combination, obtain the number of described photoelectric adapter EBI formAccording to.
2. a method for transmitting signals, is characterized in that, is applied in multipurpose avionics relay system, shouldMethod comprises:
Photoelectric adapter, by photoelectric adapter EBI, is sent to control by the data that receive from outsideGeneral ability processed territory network C AN relaying card;
Described CAN relaying card is processed the data that receive from described photoelectric adapter, obtains CANBus electric signal;
Described CAN relaying cartoon is crossed described CAN protocol bus interface to described in the transmission of CAN busCAN bus electric signal;
Wherein, described CAN relaying card is processed the data that receive from described photoelectric adapter,Comprise to CAN bus electric signal:
The Data Integration receiving from described photoelectric adapter is become intermediate data format by described CAN relaying cardData;
According to CAN agreement, the data of described intermediate data format are resolved, obtain containing CANThe TTL signal of agreement;
TTL signal to the described CAN of containing agreement carries out level conversion, obtains CAN bus electricSignal.
CN201110369339.5A 2011-11-18 2011-11-18 Method for transmitting signals Active CN103124255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110369339.5A CN103124255B (en) 2011-11-18 2011-11-18 Method for transmitting signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110369339.5A CN103124255B (en) 2011-11-18 2011-11-18 Method for transmitting signals

Publications (2)

Publication Number Publication Date
CN103124255A CN103124255A (en) 2013-05-29
CN103124255B true CN103124255B (en) 2016-05-25

Family

ID=48455111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110369339.5A Active CN103124255B (en) 2011-11-18 2011-11-18 Method for transmitting signals

Country Status (1)

Country Link
CN (1) CN103124255B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674514A (en) * 2005-03-17 2005-09-28 上海交通大学 Controller local area network (LAN) bus communication hub based on optical fibre dielectric communication
CN102055634A (en) * 2010-12-14 2011-05-11 湖南南车时代电动汽车股份有限公司 CAN node interconnection device based on optical fibers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100449806B1 (en) * 2002-12-23 2004-09-22 한국전자통신연구원 A network-storage apparatus for high-speed streaming data transmission through network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674514A (en) * 2005-03-17 2005-09-28 上海交通大学 Controller local area network (LAN) bus communication hub based on optical fibre dielectric communication
CN102055634A (en) * 2010-12-14 2011-05-11 湖南南车时代电动汽车股份有限公司 CAN node interconnection device based on optical fibers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《CAN总线光纤通信接口设计》;张鑫等;《西北大学学报》;20080430;第38卷(第2期);第1页-第3页 *
《一种CAN总线光纤传输接口设计》;习亮等;《新器件新技术》;20070430(第4期);全文 *

Also Published As

Publication number Publication date
CN103124255A (en) 2013-05-29

Similar Documents

Publication Publication Date Title
CN100366029C (en) Communication controller, host-side controller, communication equipment, communication system and method
CN101702694B (en) Train interconnection gateway and system and train communication method
CN102216919B (en) Method and apparatus for connecting USB devices to a remote computer
CN101923131B (en) Satellite electric signal monitoring system
CN104954096B (en) A kind of high-speed synchronous serial communication data transmission method of one master and multiple slaves
CN103946830B (en) Sensor transmissions equipment and the method for the bus control equipment transmitting useful data from multiple sensors to vehicle
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN103178872B (en) Method and the device of USB system transfers distance is extended by Ethernet
CN102546070A (en) Method and system for synchronizing a network using existing network cables
CN104506516A (en) Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway
CN102789210A (en) Configurable industrial bus interface supporting protocol
CN103428050A (en) Multipath CAN (controller area network) simulation system based on CAN bus
CN103124255B (en) Method for transmitting signals
CN107911288B (en) Train communication network card and train control management system
KR20100057840A (en) Device for fitting a multimedia system in a vehicle
CN108521416B (en) ECN integrated circuit board
CN202602675U (en) Trunk card and relay system
CN102332948A (en) Method and system for controlling main micro/nano satellite communication
CN110096002A (en) A kind of automatization test system and test method based on CANFD bus
CN101667951A (en) Network device and data transmission method thereof
CN103414620A (en) Double-channel CAN simulation system based on CAN buses
CN109328449A (en) RTEX-EtherCAT protocol conversion apparatus and industrial control system
CN202663428U (en) Relay card and relay system
CN102662621A (en) Multi-terminal multi-partition display interactive interface control method based on configuration driving
CN107707558B (en) Data transmission system of multi-industry bus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant