CN110336726A - SCM Based CAN bus data acquire structure - Google Patents

SCM Based CAN bus data acquire structure Download PDF

Info

Publication number
CN110336726A
CN110336726A CN201910647885.7A CN201910647885A CN110336726A CN 110336726 A CN110336726 A CN 110336726A CN 201910647885 A CN201910647885 A CN 201910647885A CN 110336726 A CN110336726 A CN 110336726A
Authority
CN
China
Prior art keywords
electrically connected
chip microcontroller
bus
data
node
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
CN201910647885.7A
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.)
Guizhou University
Original Assignee
Guizhou University
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 Guizhou University filed Critical Guizhou University
Priority to CN201910647885.7A priority Critical patent/CN110336726A/en
Publication of CN110336726A publication Critical patent/CN110336726A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a kind of SCM Based CAN bus data to acquire structure, including CAN bus, several back end is electrically connected in the CAN bus, the back end includes: single-chip microcontroller;CAN controller is electrically connected with the single-chip microcontroller;Photoisolator is electrically connected with the CAN controller;CAN driver is electrically connected with the photoisolator and the CAN bus respectively;Power circuit is electrically connected, for powering with the single-chip microcontroller;One of back end shows node as data, and remainder data node is as data acquisition node, and the data show node further include: display circuit is electrically connected with the single-chip microcontroller;The data acquisition node further include: A/D conversion circuit, one end and the single-chip microcontroller are electrically connected, and the other end is used to be electrically connected with sensor.The stability and reliability that information is transmitted in Industry Control can be improved in data acquisition structure of the present invention.

Description

SCM Based CAN bus data acquire structure
Technical field
The present invention relates to a kind of SCM Based CAN bus data to acquire structure, belongs to CAN bus communication technology neck Domain.
Background technique
With the development of industrial manufacturing technology, people are higher and higher to the requirement of communication in Industry Control, CAN bus As a kind of emerging serial bus technology, with its exclusive feature auto industry, automatic control, medical supply and building from The numerous areas such as dynamicization have many applications.Especially flourishing for computer industry brings vigorous life to industry Power, field bus technique is before with its communication speed, fast, strong interference immunity, stability height have a wide range of applications in Industry Control Scape.
Field bus technique uses distributed management, realizes point-to-point communication between each controller, it is in communication network It is in physical layer network in network, the device intelligence between needing to communicate is connected, main feature is the spacing of each equipment From farther out, dangerous diffusion possibility is reduced, it is therefore necessary to improve the stability that information is transmitted in Industry Control, and reliable Property.
Summary of the invention
The technical problem to be solved by the present invention is a kind of SCM Based CAN bus data acquisition structure is provided, to mention The stability and reliability that information is transmitted in high Industry Control.
The technical scheme is that a kind of SCM Based CAN bus data acquire structure, including CAN bus, Several back end are electrically connected in the CAN bus, the back end includes:
Single-chip microcontroller;
CAN controller is electrically connected with the single-chip microcontroller;
Photoisolator is electrically connected with the CAN controller;
CAN driver is electrically connected with the photoisolator and the CAN bus respectively;
Power circuit is electrically connected, for powering with the single-chip microcontroller;
One of back end shows node as data, and remainder data node is as data acquisition node, and the number According to display node further include:
Display circuit is electrically connected with the single-chip microcontroller;
The data acquisition node further include:
A/D conversion circuit, one end and the single-chip microcontroller are electrically connected, and the other end is used to be electrically connected with sensor.
The back end further include: reset circuit is electrically connected, the reset for single-chip microcontroller with the single-chip microcontroller.
The back end further include: clock circuit is electrically connected with the single-chip microcontroller.
The photoisolator is high speed photo coupling chip.
The beneficial effects of the present invention are: the invention proposes the design of SCM Based CAN bus data acquisition node, It is good with real-time communication, it is low in energy consumption, stability is high, anti-interference strong feature.
Detailed description of the invention
Fig. 1 is CAN hardware composition part structure chart;
Fig. 2 is anti-jamming circuit;
Fig. 3 is CAN node communication control circuit;
Fig. 4 is power circuit;
Fig. 5 is topological structure;
Fig. 6 is data acquisition display process flow diagram.
Specific embodiment
Referring to Fig. 1, a kind of SCM Based CAN bus data acquire structure, including CAN according to embodiments of the present invention Bus is electrically connected with several back end in CAN bus.
Back end includes: single-chip microcontroller, A/D conversion circuit, CAN controller, photoisolator, CAN driver, resets electricity Road, clock circuit and power circuit.
Single-chip microcontroller is the maincenter of entire controller, for handling data.
A/D conversion circuit, one end and single-chip microcontroller are electrically connected, and the other end is used to be electrically connected with sensor.A/D conversion Circuit is mainly used to the collected information of sensor being converted into the information that single-chip microcontroller can be read, and is transferred to single-chip microcontroller.
CAN controller is electrically connected with single-chip microcontroller.
Photoisolator is electrically connected with CAN controller.Photoisolator selects high speed photo coupling chip, can play isolation Effect, and there is Anti-Jamming.CAN control selections more 82C250 in automotive vehicles applications, its communication speed is fast, can reach To 1Mbps, reception and the sending function of bus may be implemented.Controller uses the side of slop control in the inside of 82C250 Formula effectively reduces interference of the external environment without good linearity, and the RS pin of 82C50 connects a resistance, and CAN driver works oblique Under rate control model.
Under the conditions of high-temperature, it may have overheating protection.CAN bus is also required to overcurrent protection, CAN bus control chip with 82C250 is connected by 5 Ω, can play overcurrent protection.CAN bus will receive the interference of high-frequency signal, shown in Fig. 2, High frequency can be played with reversed transient diode, capacitor by being connected in parallel with a capacitor between the two pin CANH and CANL and ground of 82C250 Signal filter action, filtering high frequency signals, a low frequency signal pass through, and backward dioded can inhibit saturation, dry by designing Circuit is disturbed, considers each influence factor, strengthens the use of design in systems in practice.In order to preferably inhibit to interfere, It is connected between 82C250 and SJA1000 by isolating chip 6N137, realizes electrical isolation.System connects the input of 6N137 with output The power circuit of mouth realizes isolation, improves the stability of node, plays a protective role to CAN controller.
CAN driver is electrically connected with photoisolator and CAN bus respectively;
Power circuit is electrically connected, for powering with single-chip microcontroller.Power circuit is the energy source of entire control system, complicated System in, improve the effective performance of power circuit, can be reduced the interference to system, improve stability, reduce the debugging of system Time.For power circuit as shown in figure 4, providing a system to stable 5V voltage, isolation technology, two isolated cores are applied in power supply design 5V power supply before and after piece.
The core of the communication node circuit of CAN bus is that SJA1000 is connected with single-chip microcontroller and is illustrated in fig. 3 shown below.In order to Enable SJA1000 under INTEL operating mode, the MODE pin of SJA100 is set as high level by single-chip microcontroller.It will The data address of STC89C52 control chip is multiplexed into the AD0-AD that eight pin P0 of I/O mouth are connected to SJA1000, single-chip microcontroller The data of SJA1000 are accessed from eight pins and address, SJA1000 are equivalent to external memory.Single-chip microcontroller accesses external equipment Address and the data for needing to access memory, could work, in order to save I/O mouthfuls therefore need data line and address sharing, this When RD, WR and ALE signal of the address latch pin of STC89C52 single chip and CAN controller SJA1000 distinguished into phase Even.In order to preferably control the external address of STC89C52, P2.0 mouthfuls are connected respectively to P2.1 mouthfuls the CS pin of SJA1000 And reset pin.
Display circuit is electrically connected with single-chip microcontroller, and display circuit is mainly used for showing information.
Reset circuit, is electrically connected with single-chip microcontroller, the reset for single-chip microcontroller.
Clock circuit is electrically connected with single-chip microcontroller, is used for timing.
Show that node, remainder data node are constituted as data acquisition node using one of back end as data Collected information is transferred to number by CAN bus by data acquisition node by topological structure (as shown in Figure 5) from the bottom up It is shown according to display node.
The program process flow of SCM Based CAN bus data acquisition structure is (as shown in Figure 6) as shown in the figure, work Single-chip microcontroller first initializes SJA1000 when making, and in order to enable CAN bus Successful transmissions data, receives to CAN is opened It is interrupted with sending.Single-chip microcontroller first carries out main program, when there is data on CAN, interrupts into CAN processing.CAN bus interruption has It sends and interrupts and receive interruption, host computer node, which is opened to receive, to interrupt, and sensor node is to send interruption.In host computer node In, first judgement is interrupted and whether is arrived, and CAN bus is restarted without being, the data conversion storage in the buffer area SJA1000 to outside In buffer, single-chip microcontroller is returned data to, is illustrated in fig. 6 shown below.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention Protection scope.

Claims (4)

1. a kind of SCM Based CAN bus data acquire structure, including CAN bus, which is characterized in that total in the CAN Several back end are electrically connected on line, the back end includes:
Single-chip microcontroller;
CAN controller is electrically connected with the single-chip microcontroller;
Photoisolator is electrically connected with the CAN controller;
CAN driver is electrically connected with the photoisolator and the CAN bus respectively;
Power circuit is electrically connected, for powering with the single-chip microcontroller;
One of back end shows node as data, and remainder data node is as data acquisition node, and the number According to display node further include:
Display circuit is electrically connected with the single-chip microcontroller;
The data acquisition node further include:
A/D conversion circuit, one end and the single-chip microcontroller are electrically connected, and the other end is used to be electrically connected with sensor.
2. SCM Based CAN bus data according to claim 1 acquire structure, which is characterized in that the data Node further include:
Reset circuit, is electrically connected with the single-chip microcontroller, the reset for single-chip microcontroller.
3. SCM Based CAN bus data according to claim 1 acquire structure, which is characterized in that the data Node further include:
Clock circuit is electrically connected with the single-chip microcontroller.
4. SCM Based CAN bus data according to claim 1 acquire structure, which is characterized in that the photoelectricity Isolator is high speed photo coupling chip.
CN201910647885.7A 2019-07-18 2019-07-18 SCM Based CAN bus data acquire structure Pending CN110336726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647885.7A CN110336726A (en) 2019-07-18 2019-07-18 SCM Based CAN bus data acquire structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647885.7A CN110336726A (en) 2019-07-18 2019-07-18 SCM Based CAN bus data acquire structure

Publications (1)

Publication Number Publication Date
CN110336726A true CN110336726A (en) 2019-10-15

Family

ID=68145576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647885.7A Pending CN110336726A (en) 2019-07-18 2019-07-18 SCM Based CAN bus data acquire structure

Country Status (1)

Country Link
CN (1) CN110336726A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483874A (en) * 2014-11-26 2015-04-01 哈尔滨金都太阳能科技有限公司 Data collecting device based on single chip microcomputer
CN204288502U (en) * 2014-12-23 2015-04-22 中国电子科技集团公司第二十二研究所 CAN data collector and system
CN104914769A (en) * 2015-06-19 2015-09-16 陕西法士特齿轮有限责任公司 CAN bus-based data acquisition system and acquisition processing method
CN205028112U (en) * 2015-10-19 2016-02-10 陕西嘉盛投资有限公司 Data acquisition system of robot based on hardware reset
CN106451783A (en) * 2016-11-04 2017-02-22 浙江中科正方电子技术有限公司 Remotely controllable power distribution control circuit
EP3249856A1 (en) * 2015-03-09 2017-11-29 Omron Corporation Wireless device and slave control device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483874A (en) * 2014-11-26 2015-04-01 哈尔滨金都太阳能科技有限公司 Data collecting device based on single chip microcomputer
CN204288502U (en) * 2014-12-23 2015-04-22 中国电子科技集团公司第二十二研究所 CAN data collector and system
EP3249856A1 (en) * 2015-03-09 2017-11-29 Omron Corporation Wireless device and slave control device
CN104914769A (en) * 2015-06-19 2015-09-16 陕西法士特齿轮有限责任公司 CAN bus-based data acquisition system and acquisition processing method
CN205028112U (en) * 2015-10-19 2016-02-10 陕西嘉盛投资有限公司 Data acquisition system of robot based on hardware reset
CN106451783A (en) * 2016-11-04 2017-02-22 浙江中科正方电子技术有限公司 Remotely controllable power distribution control circuit

Similar Documents

Publication Publication Date Title
CN101309193B (en) USB-Flexray bus adapter based on micro-processor
CN108566324B (en) System and method based on isolated dual Ethernet and dual CAN communication
CN104394069A (en) Micro-grid data gateway device and data converting method
CN201263157Y (en) Minitype embedded network module for transferring UART interface to CAN-bus
CN201425723Y (en) Switch of dual hard disk power lines
CN110336726A (en) SCM Based CAN bus data acquire structure
CN101145054A (en) Local network controlled switch module based on 32 bit microcontroller
CN204086381U (en) Train power supply monitoring subsystem leakage current test module
CN206133916U (en) Electricity utilization information collector
CN103546297A (en) CAN (controller area network) bus repeater for mining
CN210693974U (en) Bridge monitoring sensor system based on Can bus
CN204480237U (en) A kind of connector, universal serial bus device and intelligent terminal
CN210518684U (en) Mining Ethernet switch
CN203084719U (en) SJA1000 interface IP core based on processor local bus (PLB)
CN204086500U (en) Train power supply monitoring subsystem detects board
CN208325116U (en) A kind of vehicle computing unit having function of exchange
CN203241752U (en) Digital analog conversion CAN bus control transmit-receive system connected with multipath-sensor
CN205983819U (en) Teletransmission water gauge M connection structure of BUS communication chip and singlechip
CN216387244U (en) Three-phase intelligent low-voltage fault sensor
CN207516997U (en) A kind of outband management module that NVMe SSD are carried out using CPLD
CN203643778U (en) Frequency converter controller
CN1808343A (en) Programmable communication converter
CN201114108Y (en) Controlled LAN switching module based on 32 bit microcontroller
CN203416280U (en) Elevator controller CAN communication interface device
CN202771609U (en) CAN (controller area network) bus based automatic meter reading system for residential quarters

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: 20191015

RJ01 Rejection of invention patent application after publication