CN109799739A - A kind of design of data acquisition system based on CAN bus technology - Google Patents

A kind of design of data acquisition system based on CAN bus technology Download PDF

Info

Publication number
CN109799739A
CN109799739A CN201711140785.2A CN201711140785A CN109799739A CN 109799739 A CN109799739 A CN 109799739A CN 201711140785 A CN201711140785 A CN 201711140785A CN 109799739 A CN109799739 A CN 109799739A
Authority
CN
China
Prior art keywords
data acquisition
acquisition system
bus
design
bus technology
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
Application number
CN201711140785.2A
Other languages
Chinese (zh)
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.)
Changsha Min Lake Electronic Technology Co Ltd
Original Assignee
Changsha Min Lake Electronic 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 Changsha Min Lake Electronic Technology Co Ltd filed Critical Changsha Min Lake Electronic Technology Co Ltd
Priority to CN201711140785.2A priority Critical patent/CN109799739A/en
Publication of CN109799739A publication Critical patent/CN109799739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention relates to a kind of design of data acquisition system based on CAN bus technology, the present invention proposes a kind of remote data acquisition system method based on CAN bus structure, CAN bus technology is applied in industrial field control, devises hardware circuit and software, and obtain practical application.The present invention can realize the real-time acquisition and transmission to 8 tunnel sensor signals in complicated ocean, have many advantages, such as structure simply, it is reliable performance, long transmission distance, cheap.

Description

A kind of design of data acquisition system based on CAN bus technology
Technical field
The invention patent relates to electronic design art more particularly to a kind of data acquisitions based on CAN bus technology System design.
Background technique
In marine environment, farther out due to measure field offshore, bad environments, it is necessary to by measuring device and computer system point It opens, constitutes remote data acquisition system.There are two types of the data transfer mode of remote data acquisition system is general: frequency quantity transmission and Serial communication.Frequency quantity strong antijamming capability, be convenient for Long Distant Transmit, but this long-range frequency measurement be generally only applicable to it is several Ten hertz of lower frequency ranges below.In serial communication, RS-232 communication standard message transmission rate is slow (usually asynchronous logical Rate limit is believed in 19.2kbps or less), and transmitting range is short (general cable length is 15m), is not suitable for teledata and adopts Collecting system;The communication standards such as RS-449, RS-422 and RS-423, real-time be not strong;RS-485 can only constitute primary and secondary structure system System, communication mode can only also be carried out in a manner of main website poll, and real-time, the reliability of system are poor;And when system appearance is more When node sends data to bus simultaneously, it will lead to bus and short circuit be presented, thus the phenomenon that damaging certain nodes.
CAN (Controller Area Network) bus belongs to the scope of fieldbus, it is a kind of effectively support point The serial communication network of cloth control or real-time control.The physical layer and data of CAN protocol are integrated in CAN bus communication interface Link layer functionality, the achievable framing processing to communication data.The maximum feature of one of CAN protocol is with having abolished traditional station Location coding, and instead communicating data block is encoded.In this way the advantages of is that the node number in network is made to exist Theoretically unrestricted, the identification code of data block can be made of 11 or 29 bits, therefore can define 211 or 229 A different data block, it is this in the way of data block coding, it can also make different nodes while receive identical data.Number It is 8 bytes according to segment length, will not occupies that bus time is too long, to ensure that the real-time of communication.CAN protocol uses CRC Corresponding error handle function is examined and be can provide, ensure that the reliability of data communication.
Patent of invention content
The invention patent relates to a kind of design of data acquisition system based on CAN bus technology, the present invention proposes a kind of based on CAN CAN bus technology is applied in industrial field control by the remote data acquisition system method of bus structures, devises hardware electricity Road and software, and obtain practical application.
The present invention can realize the real-time acquisition and transmission to 8 tunnel sensor signals in complicated ocean, have structure letter List, reliable performance, long transmission distance, it is cheap the advantages that.
Detailed description of the invention
Fig. 1: the structural block diagram of long-range underwater data acquisition system.
Fig. 2: the structural block diagram of SCM system.
Fig. 3: singlechip main program flow chart.
Fig. 4: mainframe program flow chart.
Specific embodiment
In order to which the objects, technical solutions and advantages of the invention patent are more clearly understood, below in conjunction with attached drawing and implementation Example, is further elaborated the invention patent.It should be appreciated that specific embodiment described herein is only used to explain The invention patent is not intended to limit the present invention patent.
The invention patent relates to a kind of design of data acquisition system based on CAN bus technology, the present invention proposes a kind of base In the remote data acquisition system method of CAN bus structure, CAN bus technology is applied in industrial field control, is devised Hardware circuit and software, and practical application is obtained, the present invention can realize in complicated ocean to the real-time of 8 tunnel sensor signals Acquisition and transmission, have many advantages, such as structure simply, it is reliable performance, long transmission distance, cheap.
Further, remote data acquisition system requires sensor and measuring device to be located at measure field, computer system On the coast or on ship, distance is often in several hundred rice between them, and even up to several kilometers sometimes.Therefore, connecting wire is few, maintenance Expense is low to be just particularly important.Measuring system herein is directed to magnetic field (3 component), electric field (3 component), (2 points of dip angle parameter Amount), long-range underwater data acquisition system is constructed with CAN, using 3 measuring nodes, respectively to above-mentioned 8 tunnel sensor signal reality Acquisition and transmission when real.The structural block diagram of long-range underwater data acquisition system is as shown in Figure 1.
Further, CAN (Controller Area Network) bus belongs to the scope of fieldbus, it is a kind of Effectively support the serial communication network of distributed AC servo system or real-time control.The object of CAN protocol is integrated in CAN bus communication interface Manage layer and data link layer functions, the achievable framing processing to communication data.
Further, remote data acquisition system mainly consists of two parts: reception processing unit point and subaqueous survey on the bank Device.In order to extend the use time of battery, the on-off of subaqueous survey body portion battery supply is controlled from the bank.Data acquisition System uses four core longitudinal sealing seawater cables, and two-way transmits data, and another two-way controls battery supply.
Further, sensor of the invention uses magnetic field three-component measurement module, electric field three-component measurement module, inclination angle 2 component measurement modules.Each signal is amplified and filtered in signal processing circuit, amplification uses two panels LM148 four high guaily unit, filter Wave device is the cascade for two active low-pass filter second order sections being made of operational amplifier.SCM system believes electric field three-component Number, totally 8 road signals gate in turn and are sent into A/D and are converted for magnetic field three component signal and two attitude angle signals, A/D conversion is selected 16 chip ADS7805 of B-B company production, input voltage range are ± 10V, and output 16 and 8 is optional, used here as The output of 16 parallel-by-bits, control signal are generated by mouth line P1.0, P1.1 and P1.2 of single-chip microcontroller, the structural block diagram of SCM system As shown in Figure 2.Single-chip microcontroller is the microcontroller P87C592 for having piece CAN function again using PHILIPS's, and crystal oscillator frequency is 16MHz, P0 mouthfuls and P2 mouthfuls are used as data line and address wire, the P4 mouthfuls and P5 mouthfuls most-significant bytes and low 8 as 16 analog-digital converters Bit parallel data line.P1.6, P1.7 are used for CAN bus, and a multiplexer MAX308 is selected in P1.2, P1.3 and P1.4 control eight Channel.PC82C250 is CAN bus transceiver, is the interface between CAN controller and physical bus, provides the driving to bus Transmitting capacity, the differential transmitting capacity to CAN controller and the differential reception ability to CAN controller.It has very strong anti-wink Between interfere and protection bus ability;There is 3 kinds of different working methods i.e. high speed, slop control and standby.Certain section in bus Point power down will not influence bus, realize high-speed applications up to 1 Mbps in 40 m.Host receiving end uses PCL-841, PCL- 841 can be directly inserted in the ISA extension slot of computer, and computer is PCL-41 storage allocation address, and as in standard It deposits and is written and read, memory address can be set as any of 40 base address into EF00H C800H by wire jumper.It is built-in The CAN bus communication card of CAN controller, it provides bus arbitration and error detection and weighs sending function automatically, so as to avoid Loss of data ensure that the reliability of system.
Further, software design of the invention includes two parts, that is, SCM program and host control and data processing journey Sequence.SCM program mainly includes node initializing program, message sends program, message receives program and CAN bus error Processing routine etc..Singlechip main program flow chart is as shown in figure 3, program is write with C51 language.CAN controller carrys out CPU Say be to ensure that the register image peripheral equipment that both sides work independently occurs, state between microcontroller and CPU, control and The exchange of order is all by completing under reset mode or operating mode to the read-write of these registers.Initialize CAN Notice that Er Qiejie, hair both sides must synchronize so that the bit rate of each node must be consistent when internal register.Send a frame data Using high speed DMA, it allowed within most 2 periods, transmitted a complete message (most between CAN controller and main RAM More 10 bytes).The very big enhancing of CPU function, which is due to High Speed Transfer, to be completed on backstage.Primary successfully DMA transmission DMA bit is reset afterwards.DMA transmit during, CPU can handle next instruction, however, do not allow to data memory, The access of CANADR, CANDAT, CANCON or CANSTA.After setting DMA bit, each interruption is prohibited, until transmission terminates.It is multiple (reset request position is height) not can be carried out DMA transmission during the state of position.For the real-time for improving communication, during the reception of message uses Disconnecting debit's formula also can guarantee that receiving buffer is not in data spillover in this way.
Further, mainframe program of the invention includes measuring and controlling subprogram, the sub- journey of communicator procedure, data processing Sequence etc..DATA REASONING and control subprogram, which are used to control slave computer, to be measured, and communication subprogram sends according to communication protocol and controls Measurement data is ordered and received to system, and data processing subprogram realizes the pretreatment and storage to data.Mainframe program is compiled with C language It writes.Mainframe program process is as shown in Figure 4.
The above description is only a preferred embodiment of the patent of the present invention, is not intended to limit the invention patent, all at this Made any modifications, equivalent replacements, and improvements etc., should be included in the invention patent within the spirit and principle of patent of invention Protection scope within.

Claims (3)

1. the invention patent relates to a kind of design of data acquisition system based on CAN bus technology, the present invention proposes that one kind is based on CAN bus technology is applied in industrial field control by the remote data acquisition system method of CAN bus structure, devises hard Part circuit and software, and obtain practical application.
2. a kind of design of data acquisition system based on CAN bus technology according to claim 1, which is characterized in that this Invention can realize the real-time acquisition and transmission to 8 tunnel sensor signals in complicated ocean.
3. a kind of design of data acquisition system based on CAN bus technology according to claim 1, which is characterized in that this Invention is mainly made of reception processing unit on the bank point and underwater measurement devices two parts.
CN201711140785.2A 2017-11-16 2017-11-16 A kind of design of data acquisition system based on CAN bus technology Pending CN109799739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711140785.2A CN109799739A (en) 2017-11-16 2017-11-16 A kind of design of data acquisition system based on CAN bus technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711140785.2A CN109799739A (en) 2017-11-16 2017-11-16 A kind of design of data acquisition system based on CAN bus technology

Publications (1)

Publication Number Publication Date
CN109799739A true CN109799739A (en) 2019-05-24

Family

ID=66555948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711140785.2A Pending CN109799739A (en) 2017-11-16 2017-11-16 A kind of design of data acquisition system based on CAN bus technology

Country Status (1)

Country Link
CN (1) CN109799739A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001237838A (en) * 1999-10-30 2001-08-31 Tlc Transport Informatik & Logistik-Consulting Gmbh Method and system to unifiedly control terminal
CN104166362A (en) * 2014-08-28 2014-11-26 杭州墨锐机电科技有限公司 Deep sea drilling machine geology sampling electronic monitoring system
CN104280056A (en) * 2014-10-27 2015-01-14 中国科学院上海高等研究院 Modular embedded type sensor monitoring system
CN104914769A (en) * 2015-06-19 2015-09-16 陕西法士特齿轮有限责任公司 CAN bus-based data acquisition system and acquisition processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001237838A (en) * 1999-10-30 2001-08-31 Tlc Transport Informatik & Logistik-Consulting Gmbh Method and system to unifiedly control terminal
CN104166362A (en) * 2014-08-28 2014-11-26 杭州墨锐机电科技有限公司 Deep sea drilling machine geology sampling electronic monitoring system
CN104280056A (en) * 2014-10-27 2015-01-14 中国科学院上海高等研究院 Modular embedded type sensor monitoring system
CN104914769A (en) * 2015-06-19 2015-09-16 陕西法士特齿轮有限责任公司 CAN bus-based data acquisition system and acquisition processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵇斗等: "一种基于CAN总线技术的数据采集系统设计", 《微计算机信息》 *

Similar Documents

Publication Publication Date Title
CN112799992B (en) Fieldbus chip architecture
CN110471880B (en) ARINC429 bus module supporting Label number screening based on FPGA and data transmission method thereof
CN112380157A (en) IIC bus communication device with FIFO cache and check function
CN105066985A (en) Six-freedom degree platform movement state monitoring apparatus
JPH034351A (en) System-bus-data-link device
CN111736115A (en) MIMO millimeter wave radar high-speed transmission method based on improved SGDMA + PCIE
CN107908587A (en) Real-time data acquisition transmitting device based on USB3.0
CN102692642A (en) Seismic data transmission device based on receiver-transmitter of Ethernet physical layer
CN101106504A (en) Distributed communication system for intelligent independent robot based on CAN bus
CN102253916B (en) Double-end double-channel first in first out (FIFO) for synchronous-to-asynchronous conversion
CN104574917B (en) A kind of bump Real-time Detecting System for Microseism
CN213717982U (en) Data transmission system of sonar
CN206461608U (en) Transceiver based on ethernet physical layer chip rate continuous variable
CN109799739A (en) A kind of design of data acquisition system based on CAN bus technology
CN109696878B (en) Controller based on multiple buffer zones
CN112860611B (en) LVDS changes USB3.0 multichannel adapter
CN212458698U (en) High-voltage power distribution temperature measuring equipment
CN109669902A (en) A kind of LVDS-USB interface switching device
CN206075266U (en) Multichannel ARINC429 Communication Cards
CN101488119B (en) Address interpretation method, apparatus and single-board
CN103347023A (en) HDLC communication controller under industrial field environment
CN202066977U (en) Towing cable data interface board
CN206115220U (en) Transaction information processing system based on FPGA
CN219890472U (en) Imaging simulation device for satellite load data source
CN204462379U (en) A kind of radar data processing 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190524