CN100536370C - ISA intelligent adapter with optical fiber CAN interface - Google Patents

ISA intelligent adapter with optical fiber CAN interface Download PDF

Info

Publication number
CN100536370C
CN100536370C CNB2003101113776A CN200310111377A CN100536370C CN 100536370 C CN100536370 C CN 100536370C CN B2003101113776 A CNB2003101113776 A CN B2003101113776A CN 200310111377 A CN200310111377 A CN 200310111377A CN 100536370 C CN100536370 C CN 100536370C
Authority
CN
China
Prior art keywords
optical fiber
bus
interface
controller
isa
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.)
Expired - Fee Related
Application number
CNB2003101113776A
Other languages
Chinese (zh)
Other versions
CN1545222A (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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CNB2003101113776A priority Critical patent/CN100536370C/en
Publication of CN1545222A publication Critical patent/CN1545222A/en
Application granted granted Critical
Publication of CN100536370C publication Critical patent/CN100536370C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The invention relates to an ISA intelligent adapter with optical-fiber CAN interface, including embedded microprocessor, CAN controller and CAN bus network interface, where the embedded microprocessor is connected with PC and also connected with CAN bus network interface by CAN controller, and the CAN bus network interface is also connected with CAN bus; its character: the embedded microprocessor and PC are connected in ISA bus mode. It combines CAN bus technique with PC technique, to build up a CAN bus system. It provides a good man-machine interactive interface, convenient for study of the protocol and network construction mode of a CAN bus.

Description

The ISA intelligent adapter of band optical fiber CAN interface
Technical field
The invention belongs to the interface arrangement between a kind of optical fiber CAN bus network and the PC, a kind of specifically ISA intelligent adapter with the optical fiber CAN interface.
Background technology
CAN (controller local area network) bus can be used for monitoring of equipment and control, and it is simple in structure, and system is flexible, adopts non-destructive bus arbitration technology to come the processing node conflict, is a kind of up-and-coming fieldbus.Its transmission medium can be a twisted-pair feeder, also can be optical fiber.Realization, cheap easily on the twisted-pair feeder CAN networking technology, radiation has certain inhibition ability to environment electromagnetics.The optical fiber CAN networking has certain difficulty, but it has powerful anti-EMI ability.Can select transmission medium according to actual conditions.
The CAN communication adapter is as the interface arrangement between CAN node and the PC, and its function is: understand the data that send and receive on the CAN node, the CAN node is arrived in the order that sends PC, the state of monitoring CAN node.Make the transparence of communicating by letter between whole C AN node and the PC.
The CAN communication adapter has a little achievements in research at present, as: parallel port CAN adapter, serial ports CAN adapter, PC bus CAN adapter etc., but optical fiber interface CAN adapter does not appear in the newspapers.
Summary of the invention
Technical problem to be solved by this invention is: between CAN bus and PC, provide a kind of ISA intelligent adapter with the optical fiber CAN interface, its function is: the CAN controller is issued in the order of PC, be used for sending data and change the setting of CAN bus parameter; Data on the CAN bus are sent to PC, realize monitoring and the processing of PC the CAN bus data; When forming the CAN net, can select twisted-pair feeder or Optical Fiber Transmission for use.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: it comprises embedded microprocessor, CAN controller and CAN bus network interface, wherein embedded microprocessor is connected with PC by dual port RAM, embedded microprocessor is connected with CAN bus network interface by the CAN controller simultaneously, CAN bus network interface is connected with the CAN bus, embedded microprocessor and PC connected mode are the isa bus mode, be characterized in: adopt in the optical fiber CAN network interface circuit to be electrically connected, concrete annexation is: the output of CAN controller (TX) connects an input of a NAND gate (b), an input with door (d), and be connected by another input of a time delay module (a) and described NAND gate (b); Two inputs of one or (c) connect the input (RX) of CAN controller and the output of described NAND gate (b) respectively, and output described or door (c) is connected with described another input with (d); Described output with door (d) is connected with electrooptic conversion module LED (f); The input of CAN controller (RX) also is connected with photoelectric conversion module PIN (e);
Above-mentioned embedded microprocessor adopts single-chip microcomputer;
Above-mentioned dual port RAM has control circuit, can realize interrupting application and bus arbitration.
Be connected with a reset circuit between above-mentioned embedded microprocessor and the PC;
Be connected with a reset circuit between above-mentioned CAN controller and the PC.
The present invention can handle the bottom work on the CAN controller intelligently, alleviates the burden of PC with this; The data of dual port RAM are read by PC by decoding; The reset schemes that adopts has: electrification reset, button reset and utilize the RESET signal of isa bus to reset.CAN bus network interface provided by the invention has: a kind of twisted-pair feeder interface and two kinds of optical fiber interfaces; The CAN net that can set up has: traditional double twisted wire CAN net, the star-like CAN net of optical fiber, the ring-like CAN net of optical fiber.
The present invention combines CAN bussing technique and PC technology, utilizes the abundant software and hardware support of PC, and the deal with data ability is set up a CAN bus system.The good man-machine interaction interface is provided, for research and testing CAN bus transmission medium, physical connection mode and data transmission state brought convenience.
Description of drawings
Fig. 1 is a theory diagram of the present invention.
Fig. 2 is a twisted-pair feeder CAN bus network interface schema.
Fig. 3 is the star-like CAN bus network of an optical fiber interface schema.
Fig. 4 is the ring-like CAN bus network of an optical fiber interface schema.
Fig. 5 is dual port RAM and control circuit theory diagram.
Fig. 6 is the software flow pattern of the embodiment of the invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples, but following embodiment should not be construed as limitation of the present invention.
Principle of the invention block diagram as shown in Figure 1, it has with the CAN bus network interface of other node communications, it has an embedded microprocessor, and this embedded microprocessor can be by dual port RAM and PC swap data.PC visit dual port RAM is the internal memory mode.Reset schemes can realize that electrification reset, button reset and utilize the RESET signal of isa bus to reset.
As shown in Figure 2, the twisted-pair feeder that the CAN bus adopts is called CANH and CANL.PCA82C250 is the interface chip of CAN controller and twisted-pair feeder, and it is special-purpose CAN transceiver, provides the difference to bus to send and receiving function.It finishes differential signal CANH, CANL and logic level signal TX, the conversion between the RX.
As shown in Figure 3, the transmission medium of CAN bus is an optical fiber, and the TX signal of telecommunication is transferred to light through LED, and light is transferred to the RX signal of telecommunication through PIN.Wherein PIN is a photoelectric conversion module, and LED is an electrooptic conversion module.This interface circuit cooperates with the optical active fiber star-type coupler, can form the star-like CAN net of optical fiber.
As shown in Figure 4, adopt in the optical fiber CAN network interface circuit and be electrically connected, concrete annexation is: the output of CAN controller (TX) connects an input, of a NAND gate (b) and an input of door (d), and another input that passes through a time delay module (a) and described NAND gate (b) is connected; Two inputs of one or (c) connect the input (RX) of CAN controller and the output of described NAND gate (b) respectively, and output described or door (c) is connected with described another input with (d); Described output with door (d) is connected with electrooptic conversion module LED (f); The input of CAN controller (RX) also is connected with photoelectric conversion module PIN (e).The transmission means of CAN bus is an optical fiber, and TX and RX link optical fiber by interface circuit, and this interface is eliminated the transmission blockage problem of the ring-like CAN net of optical fiber, is convenient to form the ring-like CAN net of optical fiber.
As shown in Figure 5, dual port RAM is one section memory space, this section memory space can be read while write by two CPU, as long as what write is not same unit, just can not conflict, two ports all have independently address wire about dual port RAM, data wire, control line, for the CPU at two ends, the left and right sides, dual port RAM is equivalent to the external RAM of CPU.The dual port RAM of the embodiment of the invention adopts IDT7130, and this dual port RAM carries busy signal and interrupt signal, can realize bus arbitration and interrupt application.The race logic circuit of IDT7130 chip internal can be when left and right sides two-port be almost received two CPU simultaneously to the visiting demand of same unit, judge the slow side of visit in the two-port, and with its/the BUSY pin level is drop-down, the drop-down side of/BUSY line is invalid to the dual port RAM visit.Visit the end back up to the opposing party it is reverted to pull-up state, just can visit dual port RAM.The interruption application function of IDT7130 then is by wherein special two unit x3FF and x3FE realize, when left port CPU writes the x3FF unit, interrupt identification/the INTR of right output port just is set up, and when right output port CPU read the x3FF unit ,/INTR sign just was eliminated.Equally, when right output port CPU write the x3FE unit, the interrupt identification/INTL of left port just was set up, and when left port CPU read the x3FE unit ,/INTL sign just was eliminated.
The software flow pattern of the embodiment of the invention as shown in Figure 6, in this software program flow process, there are two interruptions, one is that CAN interrupts, and CAN is receiving data, and data are overflowed or the Shi Douhui that makes a mistake causes interruption, single-chip microcomputer receives in this and has no progeny, read the value of interrupt register in the SJA1000 register, judgement is the interruption which kind of reason causes, and takes appropriate measures again.To receive interruption is example, single-chip microcomputer can be put into dual port RAM to the data of SJA1000 reception buffer, writes the x3FE unit simultaneously, causes PC and interrupts, PC goes to read the data that the CAN bus interface is received in the dual port RAM in the interrupt response program, finishes the transmission of data from the CAN bus to PC; Another is that PC is write x3FF unit in the dual port RAM and caused 51 and interrupt, 51 receive this interrupt requests after, read the x3FF unit in the dual port RAM earlier, remove and interrupt, write the order that the content recognition PC is given according to the x3FF unit again.
Wherein the memory address of PC read-write dual port RAM is optionally, and it also is that optionally transplantability is fairly good that IRQ interrupts.
The present invention tests confirmation, but the data of PC real-time monitored CAN bus, and the state of CAN controller SJA1000.Three kinds of CAN bus network interfaces can switch by toggle switch, form traditional double twisted wire CAN net, fiber-optic star CAN net, the ring-like CAN net of optical fiber.
The content that is not described in detail in this specification is this professional domain technical staff known prior art.

Claims (3)

1, a kind of ISA intelligent adapter with the optical fiber CAN interface, it comprises embedded microprocessor, CAN controller and optical fiber CAN bus network interface, wherein embedded microprocessor is connected with PC by dual port RAM, embedded microprocessor also is connected with the optical fiber CAN bus network interface by the CAN controller, the optical fiber CAN bus network interface also is connected with the CAN bus, embedded microprocessor and PC connected mode are the isa bus mode, it is characterized in that: adopt in the optical fiber CAN network interface circuit to be electrically connected, concrete annexation is: the output of CAN controller (TX) connects an input of a NAND gate (b), an input with door (d), and be connected by another input of a time delay module (a) and described NAND gate (b); Two inputs of one or (c) connect the input (RX) of CAN controller and the output of described NAND gate (b) respectively, and output described or door (c) is connected with described another input with (d); Described output with door (d) is connected with electrooptic conversion module LED (f); The input of CAN controller (RX) also is connected with photoelectric conversion module PIN (e).
2, the ISA intelligent adapter of band optical fiber CAN interface as claimed in claim 1 is characterized in that: the optical fiber CAN bus network interface is an annular optical fiber CAN network interface.
3, the ISA intelligent adapter of band optical fiber CAN interface as claimed in claim 2 is characterized in that: annular optical fiber CAN interface is used to set up into the ring-like CAN network of multinode.
CNB2003101113776A 2003-11-13 2003-11-13 ISA intelligent adapter with optical fiber CAN interface Expired - Fee Related CN100536370C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101113776A CN100536370C (en) 2003-11-13 2003-11-13 ISA intelligent adapter with optical fiber CAN interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101113776A CN100536370C (en) 2003-11-13 2003-11-13 ISA intelligent adapter with optical fiber CAN interface

Publications (2)

Publication Number Publication Date
CN1545222A CN1545222A (en) 2004-11-10
CN100536370C true CN100536370C (en) 2009-09-02

Family

ID=34336068

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101113776A Expired - Fee Related CN100536370C (en) 2003-11-13 2003-11-13 ISA intelligent adapter with optical fiber CAN interface

Country Status (1)

Country Link
CN (1) CN100536370C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499946B (en) * 2009-03-05 2011-12-28 北京云涌科技发展有限责任公司 Method for CAN bus dynamic networking
CN101515878B (en) * 2009-03-30 2011-06-15 哈尔滨工业大学 Hot plug adaptive device applied on CAN bus
CN106100749A (en) * 2016-08-03 2016-11-09 中国电子科技集团公司第三十四研究所 A kind of Ka wave band optics phase equalization system and operation method thereof

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
CAN光纤媒介实现方案的研究. 谢志迅.微机算计信息,第1998年第14卷第3期. 1998
CAN光纤媒介实现方案的研究. 谢志迅.微机算计信息,第1998年第14卷第3期. 1998 *
CAN智能适配卡的设计方案. 吕杜鹃等.工业控制计算机,第14卷第8期. 2001
CAN智能适配卡的设计方案. 吕杜鹃等.工业控制计算机,第14卷第8期. 2001 *
Using a Fiber Optic CAN Bus for the Proton Source Control ofthe CERN PS Linac. G. Grawer, W. Heinze.CERN/PS/97-76, 1997, Presented at Int. Conference Accelerator and Large Experimental Physics Control Systems (Icalepcs'97). 1997
Using a Fiber Optic CAN Bus for the Proton Source Control ofthe CERN PS Linac. G.Grawer, W. Heinze.CERN/PS/97-76, 1997, Presented at Int. Conference Accelerator and Large Experimental Physics Control Systems (Icalepcs'97). 1997 *
一种新型的光纤CAN总线网络. 吴友宇.武汉理工大学学报,信息与管理工程版,第25卷第2期. 2003
一种新型的光纤CAN总线网络. 吴友宇.武汉理工大学学报,信息与管理工程版,第25卷第2期. 2003 *

Also Published As

Publication number Publication date
CN1545222A (en) 2004-11-10

Similar Documents

Publication Publication Date Title
CN100471156C (en) Data bus bridge and its working method
CN104021102B (en) CPCI serial port plate based on state machine and on-chip bus and working method of CPCI serial port plate
CN102420877B (en) Multi-mode high-speed intelligent asynchronous serial port communication module and realizing method thereof
CN102591291B (en) Industrial controller and human-machine interface bidirectional data transmission system and method
JP2005228311A (en) Bus system based on open type core protocol
CN101911000A (en) Control bus for connection of electronic devices
CN101345629A (en) Double on-site bus interface converter
CN101005376A (en) Device and method for realizing service plate main control plate communication
CN101488878A (en) Intelligence platform interface management apparatus and server
CN104679702B (en) Multipath high-speed serial interface controller
US20040205279A1 (en) Bus communication system by unrestrained connection and a communication control method therefor
CN105763258A (en) FPGA-based digital processing and control system
CN107562672A (en) A kind of system and method for improving vector network analyzer message transmission rate
CN106469127B (en) A kind of data access device and method
CN101106504A (en) Distributed communication system for intelligent independent robot based on CAN bus
CN105262789A (en) FPGA (Field Programmable Gate Array)-based MAC (Media Access Control) layer to MAC layer communication system and control method
CN201336032Y (en) Software simulation serial data transmission device
CN100536370C (en) ISA intelligent adapter with optical fiber CAN interface
EP1856618B1 (en) Single port/multiple ring implementation of a data switch
CN107239423A (en) A kind of device based on extension IIC interfaces
CN108667706A (en) The adjustable Ethernet serial server of serial ports quantity dynamic and its data transmission method
CN2660795Y (en) Optical fiber Ethernet exchanger and monitor modular for same
CN107506318A (en) A kind of software simulation serial data transmission device
CN111948971A (en) Intelligent card management device and data switching method thereof
CN104901857A (en) Bus analyzer

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090902

Termination date: 20101113