CN106773892A - The digital and analogue signals harvester of industry is equipped towards electrician - Google Patents

The digital and analogue signals harvester of industry is equipped towards electrician Download PDF

Info

Publication number
CN106773892A
CN106773892A CN201610986648.XA CN201610986648A CN106773892A CN 106773892 A CN106773892 A CN 106773892A CN 201610986648 A CN201610986648 A CN 201610986648A CN 106773892 A CN106773892 A CN 106773892A
Authority
CN
China
Prior art keywords
circuit
data
chips
protocol
electrician
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
CN201610986648.XA
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.)
State Grid Corp of China SGCC
Beijing Xuji Electric Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing Xuji Electric 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 State Grid Corp of China SGCC, Beijing Xuji Electric Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201610986648.XA priority Critical patent/CN106773892A/en
Publication of CN106773892A publication Critical patent/CN106773892A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • G05B19/0425Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2612Data acquisition interface

Abstract

The present invention provides a kind of digital and analogue signals harvester that industry is equipped towards electrician, including:For the I/O channel switching circuit, signal conditioning circuit, the MCU governor circuits for processing external control order, the CAN protocol change-over circuit for changed between CAN protocol and Ethernet protocol for the voltage signal received from sensor matching to be converted to level signal that switch between input channel and output channel;Wherein described MCU governor circuits connect the controller of sensor and distal end by signal conditioning circuit and I/O channel switching circuit;And the MCU governor circuits connection CAN protocol change-over circuit.

Description

The digital and analogue signals harvester of industry is equipped towards electrician
Technical field
The invention belongs to areas of information technology, more particularly to a kind of digital and analogue signals collection towards electrician's equipment industry Device.
Background technology
With the extensive utilization of information technology, various data collection stations are used in every field.Manufacture field, by It is very many in the part of plant equipment and easily break down, therefore carry out monitor in real time to the part of plant equipment and can reduce to set Standby fault rate.Existing many plant equipment, its critical data is characterized with switching value, analog signalses in the middle of equipment, This signal can represent the real time information of plant equipment, but existing plant equipment will not record this signal mostly;So The digitization modeling in equipment running process is caused to lack necessary critical data.
The content of the invention
Operationally it is difficult to gather the problem of various analogue datas for plant equipment present in prior art, the present invention The technical problem to be solved is to provide a kind of effective and efficient digital and analogue signals harvester that industry is equipped towards electrician, with reality When collection machinery equipment key parameter.
In order to solve the above problems, the embodiment of the present invention proposes a kind of digital and analogue signals collection towards electrician's equipment industry Device, including:For switch between input channel and output channel I/O channel switching circuit, for will be from sensing The voltage signal matching that device is received is converted to the signal conditioning circuit of level signal, the MCU for processing external control order Governor circuit, the CAN protocol change-over circuit for changed between CAN protocol and Ethernet protocol;
Wherein described MCU governor circuits by signal conditioning circuit and I/O channel switching circuit connect sensor and The controller of distal end;And the MCU governor circuits connection CAN protocol change-over circuit.
Wherein, the analog input and output passage includes the relay for switching;The I/O channel switching Circuit is connected to the sensor of gathered data and the controller of distal end by mixing binding post.
Wherein, the signal conditioning circuit includes simulated measurement input circuit, switching value input circuit, pulsed quantity input electricity Road, voltage-current converter circuit.
Wherein, the MCU governor circuits connect the signal conditioning circuit and generate CAN with according to the level signal for receiving Protocol frame, and the MCU governor circuits connection CAN protocol change-over circuit is converted to default biography with by the CAN protocol frame Exported after defeated agreement;
The MCU governor circuits include AduC7060 chips for gathering signal and for being processed data LPC11C14 chips;Wherein described AduC7060 chips are input into by simulated measurement input circuit, switching value input circuit, pulsed quantity Circuit, voltage-current converter circuit connect the I/O channel switching circuit and are acquired with to data;And it is described AduC7060 chips are connected the LPC11C14 chips and are processed to LPC11C14 chips with the data is activation that will be collected;And The LPC11C14 chips connect the CAN protocol change-over circuit.
Wherein, the CAN protocol change-over circuit include control chip LPC2368, ethernet physical layer chip DP83848T, CAN driving chips TJA1050T.
Wherein, also including power module;The power module includes:Input power circuit, isolation circuit, analog power are supplied Circuit.
Wherein input power circuit includes LM2575 series switch voltage regulators;
Wherein isolation circuit includes WRB0505S-1W insulating power supplies and ADP3333 insulating power supplies;
Wherein analog power power supply circuit includes A0515S-1W chips.
Above-mentioned technical proposal of the invention has the beneficial effect that:Above-mentioned technical scheme proposes one kind and is adapted to electrician Equipment industry, can in real time carry out the device design of different classes of signal acquisition.The device is with hardware such as LCP11C14 as base Plinth, realizes to industry spot, digital quantity, the Real-time Collection of analog quantity of all kinds of electrician's equipments, and by protocol conversion, will adopt The data for collecting carry out the transmission of data by Ethernet interface.Electrician's equipment industry relevant device, device is solved to believe in real time Breath cannot convenient collection problem.
Brief description of the drawings
Fig. 1 is the system architecture diagram of the embodiment of the present invention;
Fig. 2 is the schematic diagram of LPC11C14 chips;
Fig. 3 is the structural representation of CAN controller;
Fig. 4 is power module structure schematic diagram;
Fig. 5 is AD initialization flowcharts;
Fig. 6 is Lpc2368 protocol conversion module workflow diagrams.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
The embodiment of the present invention proposes a kind of digital and analogue signals harvester that industry is equipped towards electrician, including:For I/O channel switching circuit, the voltage letter for will be received from sensor switched between input channel and output channel Number matching is converted to the signal conditioning circuit of level signal, MCU governor circuits, CAN protocol for processing external control order Change-over circuit.
Wherein, analog input and output passage is completed using the switching of relay;Panasonic is used in the embodiment of the present invention The type relays of TQ2H 1 of company.
Wherein described MCU governor circuits are connected to the sensing of gathered data by I/O channel switching circuit simultaneously Device and the controller of distal end;
Wherein described MCU governor circuits connect the signal conditioning circuit and generate CAN with according to the level signal for receiving Protocol frame, and the MCU governor circuits connection CAN protocol change-over circuit is converted to default biography with by the CAN protocol frame Exported after defeated agreement.
Wherein, the I/O channel switching circuit is connected to the sensor of gathered data by mixing binding post And the controller of distal end, wherein the I/O channel switching circuit is included for being cut between input channel and output channel The relay for changing.Wherein signal conditioning circuit crosses simulated measurement input circuit, switching value input circuit, arteries and veins including as shown in Figure 1 Momentum input circuit, voltage-current converter circuit.
As shown in Figure 1, the MCU governor circuits are included for gathering the AduC7060 chips of signal and for data The LPC11C14 chips for being processed;Wherein described AduC7060 chips by simulated measurement input circuit, switching value input circuit, Pulse volume input circuit, voltage-current converter circuit connect the I/O channel switching circuit and are acquired with to data; And the AduC7060 chips are connected the LPC11C14 chips and are carried out to LPC11C14 chips with the data is activation that will be collected Treatment;And the LPC11C14 chips connect the CAN protocol change-over circuit.
As shown in Figure 2 is the schematic diagram of LPCIlCl4 chips;LPCIlxx series is micro- based on ARM Cortex-M0 Controller, can be used for the Embedded Application of high integration and low-power consumption.ARM Conex-MO are second generation kernels, and it provides one Individual simple instruction set, it is possible to achieve determine sexual behaviour.The working frequency of LPCIllx CPU is up to 50MHz.LPCIllx's is outer If including:Up to the data storage of F1ash, 8kB of 32kB, the interface of Fast-mode Plus, RS485,2 SSP interfaces, 4 general purpose timers, and up to 42 general purpose I/O pins.
LPCIl C14 main control modules also include reset circuit, crystal oscillation clock circuit and J-TAG debug circuits, physical circuit Framework is similar with AduC7060.This main control module carries the communication between CAN controller completion and master node using it, passes through SPI interface receives the blended data of AduC7060 collections, and data CAN protocol modulus of conversion is transmitted in the form of CAN protocol Block.
CAN controller is integrated with LPCIlCl4 main control modules, inside is embedded with communication protocol, for performing serial data Communication.The controller can set up powerful local network to multiplex wired network, while simultaneously having high security. As shown in Figure 3, integrated CAN controller includes CAN kernels, message RAM, Message processing journey in LPCIlCl4 main control modules Sequence, control register and APB interface.For the communication in CAN network, each message object is separately configured.To received Message carry out receive filtering message object and identifier shielding be to be stored in message continent.The letter of all about Message processing Number is performed by mh.These functions are message transmissions, the treatment between reception filtering, CAN kernels and message are deleted Send the function that request and generation module are interrupted.The register set of CAN controller can be carried out by outer CPU by APB buses Directly access.
As shown in Figure 3, the CAN protocol change-over circuit includes control chip LPC2368, ethernet physical layer chip DP83848T, CAN driving chip TJA1050T.There are a 10/100MbpsEthernet MAC interface and 2 in LPC2368 pieces Road CAN passages.Ethernet MAC have SRAM and dma controller of correlation of 16KB on independent ahb bus.Bus Data baud rate is up to 1Mbps;May have access to the register and RAM of 32;The overall situation is checked and accepted filter and can recognize that nearly all bus 11 and 29 Rx identifiers.Wherein, the CAN controller inside LPC2368 is based entirely on event triggering, i.e. CAN controls The result of state change can be told microcontroller by device processed when state itself changes, so microcontroller is in treatment CAN During controller, can be by the way of interrupting.According to LPC2368 microcontrollers and its characteristic of internal CAN controller, CAN is total Line communication software is divided into hardware abstraction layer, power function layer and application programming interfaces 3 level of layer.Hardware abstraction layer controls CAN The ardware feature of device processed is carried out abstract with data type, and provides the interface of CAN controller hardware operation.Power function layer be CAN controller various functions realize the set of function, the function of this layer using in hardware abstraction layer to the interface of register manipulation To access CAN controller.
LPC2368 has been internally integrated 1 10/100Mbps Ethernet mac controller, and hardware circuit needs The external ethernet physical layer chip of ethernet mac controller relevant pins of LPC2368, ethernet physical layer chip passes through band again The RJ45 connector HR911105A of network isolation transformer realizes the connection with industry ethernet.
Ethernet mac controller inside LPC2368 is connected with DP83848T using RMII patterns, and reducing needs connection The number of pin, facilitates the wiring of signal.In order that being operated in RMII patterns after electricity on DP83848T, need DP83848T's RX_DV/MII_MODE pins are by 1+3.3V power supply of the resistance welding system of 2.2K Ω.Under RMII patterns, data with The clock rate of 50MHz once transmits 2, therefore is configured with the X1 pins that a 50MHz oscillator is connected to DP83848T.
As shown in Figure 1, the digital and analogue signals harvester towards electrician's equipment industry of the embodiment of the present invention also includes electricity Source module.Change between 20V~30V because voltage is general in industrial equipment field monitoring practice, therefore the present invention is real The supply district for applying the power module present apparatus in example is 9V~36v.And the MCU governor circuits in the embodiment of the present invention include using LPC11C14 chips in the AduC7060 chips of collection signal and for being processed data, wherein AduC7060 chips Operating voltage is 2.5V, and the operating voltage of LPC11C14 chips is 3.3V, and the operating voltage of analog circuit is 12V.Therefore originally Power module in inventive embodiments is provided with multiple mutually isolated power supply units and is supplied with being respectively said chip/circuit Electricity.
As shown in Figure 4, the power module of the embodiment of the present invention includes:Input power circuit, isolation circuit, analog power Power supply circuit.
Wherein, input power circuit includes LM2575 series switch voltage regulators.Wherein, LM2575 is step down supplies Management monolithic integrated optical circuit, can export the driving current of lA, while having linear and load regulation characteristic well, can fix Output 3.3V, 5V, 12V.
Wherein isolation circuit includes WRB0505S-1W insulating power supplies and ADP3333 insulating power supplies.Wherein WRB0505S-1W The isolation voltage of insulating power supply is up to 3000V, and can provide the isolation voltage of 5V.The output voltage of WRB0505S-1W circuits High precision up to 1% or so, it is efficiency high, low in energy consumption and encapsulate small with good current protecting function.Isolation circuit includes WRB0505S-1W circuits 5V is input voltage, exports the 5V voltages of stabilization, and maximum output current reaches 0.8A.Wherein ADP3333 is Low voltage difference power conversion chip, is responsible for safe current limitation, overtemperature protection shut-off;Its voltage input end has relatively wide input Scope:3V to 12V, is subjected to the load current of up to 300mA.
Wherein analog power power supply circuit includes A0515S-1W chips, and it can change the input voltage of 5V into 15V for mould Intend circuit to power.The effect of A0515S-1W is that one group of out-put supply is produced in assist side distributed power supply system, and this is exported Power supply is isolated from each other with input power.A0515S-1W can simultaneously carry out output short circuit protection.
, it is necessary to consider EMC Design in the circuit design of the embodiment of the present invention, specifically include:
1st, reliable ground:
The important technology that grounding technology must be taken when being any electronic system normal work, it be not only protection the person and The necessary means of installation security, the weight for be also suppression electromagnetic interference, assurance module Electro Magnetic Compatibility, improving circuit operational reliability Want technical measures.The electric current of any circuit finally all can form loop by ground wire, and ground wire inevitably becomes each circuit Common wire in loop, because the presence of ground wire common impedance can produce a voltage difference between different earth points, so that shape Into connection interference.Rational earthing mode can provide very low common impedance path, so as to reduce noise signal to other The electromagnetic interference of electrical equipment.Earthing mode typically has signal ground and safety ground.Signal ground is the various letters of inside modules The common reference point of number voltage zero potential.Separately to connect up through conventional analog signal ground and digital signal ground in engineering practice, two Plant signal ground to be connected by magnetic bead, with suppression electromagnetic interference.Safety ground is that the shell of electrical equipment is led by low-impedance Body is connected to big ground, prevents equipment operator from its person peace will not be endangered because of the electric leakage of static discharge or device housings Entirely.
2nd, voltage-stabilized power supply and decoupling capacitance:
Effect of the D.C. regulated power supply in electronic system is powered to each function component, its work quality be The stability of system is closely bound up, and good voltage-stabilized power supply can greatly improve the stability and efficiency of system work.Present apparatus voltage stabilizing Power supply uses Switching Power Supply Voltage stabilizing module LM2575, traditional voltage-stabilized power supply phase in Switching Power Supply and rectifier epoch early stage It is rapid dynamic response speed, small volume, lightweight, energy-efficient than, its advantage.The internal resistance impedance of ideal source should be zero, But power source internal can all have impedance in practice, such system can be formed between each component and component because of internal driving Coupling circuit, causes interfering between signal, and the measure solved to this is typically in parallel several small in the output end of power supply The high frequency capacitance of capacity and the electrochemical capacitor of larger capacity, and need to be in the earth terminal of IC chip and power end also decoupling electricity in parallel Hold, reduction interference as much as possible.
3rd, the optimization design of pcb board:
The Stability and dependability of device work has very big association with the designing quality height of pcb board, is that module can be normal The key of steady operation.Therefore, there is correct electrical connection except allowing between component in PCB layout, should also take into full account The Electro Magnetic Compatibility of pcb board.Anti-interference Design considers to include suppressing noise source, reduces the noise sensitivity of module and cut Disconnected noise pipeline.Wherein need most attention is exactly the noise suppressed of pcb board.The layout of power and ground, component The width requirement of layout and holding wire is also several big factor that be should be noted during PCB fabric swatch.
Meanwhile, the embodiment of the present invention is also improved control method, including:
First, based on AduC7060 data acquisitions and control module
Write on the AduC7060 for be integrated with converter, the program module includes AduC7060 main programs, each function Means initialization function, port function configuration module, AD conversion module, data processing module, PWM control modules.Its main work( Can be the configuration of completing port function, and corresponding collection external sensor signal or external is performed according to specific port function The task of portion's actuator output control data.
2nd, based on Lpcllcl4 communication modules
Write on the LPCIlCl4 for be integrated with CAN controller, including CAN controller initialization, CAN message send with Receive subprogram etc..
3rd, based on Lpc2368 protocol conversion modules
Write being integrated with the LPC2368 of Ethernet mac controllers, CAN controller, including Ethernet MAC Controller, the initialization of CAN controller, the control program of protocol conversion.
Wherein, it is specially based on AduC7060 data acquisitions and control module:
1AduC7060 data acquisitions and control program
The program module is completed on AduC7060, and in order to ensure the real-time of data acquisition and output, this program is only born The collection of blended data and the output of control data are blamed, the packing of CAN message and the treatment of protocol analysis are placed on LPCIlCl4 Chip is completed.The function of this module is the specific order issued according to master node, gathers main website data centralised arrangement and control Equipment condition monitoring data required by center processed are simultaneously pre-processed, including following subprogram:AduC7060 main programs, AduC7060 initialization programs, port function configurator, AD conversion program, digital filter program.
1.1AduC7060 main programs
Main program is the final configuration processor of each function sub-modules.The program calls initialization program first, to CPU works Making other crucial peripheral hardwares such as clock, house dog and interrupt vector register carries out Initialize installation, and initiating port function Array, then calls port function configuration function according to the port function code that main website sends, and completes corresponding port concrete function Set, corresponding task is performed further according to port numbers and specific function code.
1.2AduC7060 is initialized
CAN data acquisition node main control chip initialization programs in this module include:SPI registers are set, house dog The setting of timer, interrupt register are set, port is set, timer is set and converter is initialized etc..
AduC7060 is integrated with two independent multichannel ADC.Main ADC is one 16 5 passage ADC.Auxiliary ADC is 7 16 ADC of passage, highest can support 7 single ended input passages.This module requires that the every input channel of AduC7060 is 6 It is individual, from auxiliary ADC, speed is set to low speed conversion (per 50 times/s of passage), reserve certain times of collection and filtered for numeral Ripple treatment, while AD copped waves are opened, reduces ADC offset errors, drift and noise figure.Deposited by ADC FILTER TO CONTROLs Device operation can be set the unlatching and stopping of its switching rate and copped wave.
Following AD partially-initializeds code:
Ⅺ=BITl of ADCMS:∥ ADc interrupt control registers.Enable ADC and interrupt ADCFLT=BIrr0+BITl+BIT2+ BIT3+BIT4+ ∥ set ADC filter registers.BIT8+BIT9+BITl0+BITl 1+BITl2+BITl3+AF= 63BITl5:∥ copped waves are opened
ADCMDE=BIT0+BIT7:∥ ADC mode registers.Continuous translative mode ADCOCON=BITl+BIT6 ∥ Reference power supply in ADCO control register pieces
2 port function functions
Specifically gathered or output task before the concrete function of each port must reasonably be distributed. When CAN master nodes have port function configuration order, Lpcllcl4 is sent to specific port function code by spi bus AduC7060 carries out port function distribution.AduC7060 is assigned 4 function ports for it, and the address of each port oneself is compiled Number, for by program addressable and identification.For clear and definite this 4 being completed for tasks of port, many work(that have been each port assignment The design of the I/O modules port function code different from realizing can be mixed, one is placed on and is stated that the integer array that size is 4 bytes becomes In amount, its array index is exactly its port numbers.In order that the data that the function code of port numbers gathers or export with each port It is one-to-one, states a port functional structure body to complete the mapping of data and port numbers:
Typedef s enemy lct IO Port ∥ port function structures
{unsigIled char ncD;∥ port functions code
unsigIled 10ng Data;∥ port processings or the data of output
1lIlsigIled char addr;∥ port address number
}IO_Pon;
IO Port S port[4];∥ states 4 port function structures
Wherein,
1. ADIO ports:Quantity is 2, and its address number is 0xoo~Ox01, completes three kinds of functions:Collection analog quantity, Collection switching value and output switch amount.
2. FIO ports:Global function port, quantity is 1, and address number is Ox02, can complete institute functional:Collection mould Analog quantity, exports analog quantity, gathers switching value, output switch amount and acquisition pulse amount.
3. DIDA ports:Quantity 1, address number is Ox03, completes three kinds of functions:Collection switching value, output switch amount, Output analog quantity.
3AD conversion programs
AduC7060 is assigned 6 channel acquisition data, and a kind of range of every 3 channel acquisitions, passage 2,3,4 is responsible for collection Small-range analog quantity, passage 6,7,8 is responsible for collection wide range analog quantity, in order that module reaches the function of range self-adapting, needs Range judgement is carried out to the analog quantity for gathering.Because wide range analog quantity is all in more than 5V, adopting for small-range is greatly exceed Collection range, so the data of collection are first sent into small-range passage and are judged, if the data of collection can make AD shapes more than full scale The position 13 of state register puts 1, and the analog quantity that current collection can be learnt by reading this state is a large amount of or a small amount of.Tool Body, the flow is as shown in Figure 5.
4 data processing modules
Because the external world environment residing for module is changeable, complexity, forceful electric power occurs unavoidably during gathered data Data are carried out jamproof filtering process and are just particularly important, although on hardware by other noise jammings such as electromagnetic interference Related jamproof measure is done, but in order to further eliminate noise source, has improved the degree of accuracy of data acquisition, software has also been taken The mode of software filtering is processed data.Interference filter is carried out to signal compared to hardware simulation wave filter, using soft Part filtering has the advantage that:
(1) hardware design that software filtering need not be complicated, only needs a software algorithm, and reliability is high, in the absence of impedance Have to the spike of suddenly change or some low-frequency interference signals with problem, especially software digital filter and filter effect well Really, this is that hardware filter to be accomplished.
(2) as long as suitably changing the filter or operational factor of software filter, its filtering just can easily be changed special Property, this is dry for low frequency, pulse to stir, random noise etc. is especially effective.
This filter is adjusted by analog acquisition function (unsigned long ADC (unsigned charCH_NUM)) With the data to gathering carry out median-value filter, per passage 10 data of continuous acquisition, are arranged according to order from big to small Row, therefrom remove a maximum, and then a minimum value calculates 8 average values of value of middle rank, as last reference data With.
5LPC11C14 main programs
LPC11C14 main programs need to only call the subfunction function of correlation to perform corresponding task.After the completion of system initialization Detect that the communications status of CAN wait CAN to interrupt simultaneously by inquiry mode, that is, interrupt and receive the order that master node sends Frame, interrupts after CAN and call CAN message to process function, last time delay major cycle after message is received.
System initialization is to complete the initialization and the initialization of CAN protocol controller to the inside related device of MCU.It is main To include the setting of system operating frequency, close no functional module to reduce single-chip microcomputer power consumption, port function is set, SPI Traffic rate is set.CAN message processes the command code corresponding function sub-modules of execution that function is sent according to master node, including Node is connected, the function such as device reset and reading data, calls CAN to send sub- journey in Message processing function after the completion of analysis Sequence is replying the command frame of main website.
5.1CAN initialization programs
CAN controller includes 32 message objects on the piece of LPC11C14, and each message object has arbitration position, shielding The information such as position, direction position, message control bit, data field, it is CAN controller to carry out correct initial configuration to these information bits The key of energy normal work.
typedefstruct
{
uint32_t id;
uint32_t dlc;
uint32_t data[8];
}message_object;
The definition of Message_objectCall_full [32] ∥ CAN message object structure bodies
5.2CAN message transmission programs
It is that the command frame that master node sends is needed to be called when response or response that CAN message sends function, its order The ACK bit of frame is 0 to need response.Single frames at most sends 8 data of byte length, the transmission of CAN message every time when sending There are inquiry mode and interrupt mode to send, this module is sent using inquiry mode.
6Lpc2368 protocol conversion modules
It is as shown in Figure 6, wherein LPC2368 inside ethernet controller drive include ethernet controller initialize, with Too net data frame sends and receives.Initialization is main to include that removing software reset's state of mac controller, configuration physical layer accesses The MIIM interfaces of mac controller, selection RMII or MII interface modes, configuration send and receive DMA engine and descriptor array, Configure the master register group of MA controllers and enable and send and receive data channel.Pack the data to and meet Ethernet transmission frame After the data of form, function can be sent by ethernet data frame and be transmitted.
Send function to initially set up descriptor and data, enable transmission data channel, send dma manager and sent by reading Descriptor array sends the data frame to be sent in buffering area to be positioned at, and the data is activation is gone out.If sending failure, hair Sending dma manager will report mistake, user writing to transmit the state information to by way of state array and interrupt status register Program can judge whether data send successfully by inquiring about mode bit.
Ethernet data acceptance uses interrupt mode, when ethernet data frame or frame burst is received, will produce data Receive and interrupt, user program should read interrupt status register to judge interrupt type and do phase in interrupt service routine Should process.
CAN- Ethernet protocol switching softwares are responsible for mutually turning CAN protocol packet Ethernet protocol data packet format Change.CAN communication agreement has four kinds of different frame formats, and standard frame format is used in the system.The one Ethernet physics of standard In addition to the indefinite length of data segment, the length of other parts all immobilizes transmission frame.The whole transmission bag of Ethernet regulation is most Long length can not be less than 60 bytes, filling is needed when 46 byte of data deficiencies of data field no more than 1514 bytes, minimum;When During more than 1500 byte, multiple frame transmission need to be splitted into.
After the completion of system initialization, when packet is received from Ethernet, LPC2368 is analyzed to packet, if It is ARP packets, then program is transferred to ARP processing routines.If UDP message bag and port are correct, then think that datagram is correct. After data are unpacked, data division is packaged into CAN protocol standard frame format, CAN is sent to by CAN controller.Otherwise, If receiving data from CAN, data are packed according to udp protocol form, Ethernet is sent to by ethernet controller On.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications Should be regarded as protection scope of the present invention.

Claims (6)

1. the digital and analogue signals harvester of industry is equipped towards electrician, it is characterised in that including:For in input channel and output Between passage switch I/O channel switching circuit, for by the voltage signal received from sensor matching be converted to electricity The signal conditioning circuit of ordinary mail number, the MCU governor circuits for processing external control order, for carrying out CAN protocol and ether The CAN protocol change-over circuit changed between fidonetFido;
Wherein described MCU governor circuits connect sensor and distal end by signal conditioning circuit and I/O channel switching circuit Controller;And the MCU governor circuits connection CAN protocol change-over circuit.
2. it is according to claim 1 towards electrician equip industry digital and analogue signals harvester, it is characterised in that the mould Analog quantity I/O channel includes the relay for switching;The I/O channel switching circuit is by mixing binding post It is connected to the sensor of gathered data and the controller of distal end.
3. the digital and analogue signals harvester that industry is equipped towards electrician according to claim 1, it is characterised in that wherein institute Stating signal conditioning circuit includes simulated measurement input circuit, switching value input circuit, pulse volume input circuit, Voltage to current transducer electricity Road.
4. the digital and analogue signals harvester that industry is equipped towards electrician according to claim 1, it is characterised in that wherein institute State MCU governor circuits and connect the level signal generation CAN protocol frame that the signal conditioning circuit is received with basis, and it is described MCU governor circuits connect the CAN protocol change-over circuit to be exported after the CAN protocol frame is converted into Preset Transfer agreement;
The MCU governor circuits include AduC7060 chips for gathering signal and for being processed data LPC11C14 chips;Wherein described AduC7060 chips are input into by simulated measurement input circuit, switching value input circuit, pulsed quantity Circuit, voltage-current converter circuit connect the I/O channel switching circuit and are acquired with to data;And it is described AduC7060 chips are connected the LPC11C14 chips and are processed to LPC11C14 chips with the data is activation that will be collected;And The LPC11C14 chips connect the CAN protocol change-over circuit.
5. it is according to claim 1 towards electrician equip industry digital and analogue signals harvester, it is characterised in that it is described CAN protocol change-over circuit includes control chip LPC2368, ethernet physical layer chip DP83848T, CAN driving chip TJA1050T。
6. it is according to claim 1 towards electrician equip industry digital and analogue signals harvester, it is characterised in that also include Power module;The power module includes:Input power circuit, isolation circuit, analog power power supply circuit;
Wherein, input power circuit includes LM2575 series switch voltage regulators;
Wherein isolation circuit includes WRB0505S-1W insulating power supplies and ADP3333 insulating power supplies;
Wherein analog power power supply circuit includes A0515S-1W chips.
CN201610986648.XA 2016-11-09 2016-11-09 The digital and analogue signals harvester of industry is equipped towards electrician Pending CN106773892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610986648.XA CN106773892A (en) 2016-11-09 2016-11-09 The digital and analogue signals harvester of industry is equipped towards electrician

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610986648.XA CN106773892A (en) 2016-11-09 2016-11-09 The digital and analogue signals harvester of industry is equipped towards electrician

Publications (1)

Publication Number Publication Date
CN106773892A true CN106773892A (en) 2017-05-31

Family

ID=58972803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610986648.XA Pending CN106773892A (en) 2016-11-09 2016-11-09 The digital and analogue signals harvester of industry is equipped towards electrician

Country Status (1)

Country Link
CN (1) CN106773892A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107344483A (en) * 2017-07-25 2017-11-14 江苏浩昱驰汽车电子有限公司 A kind of new-energy automotive air-conditioning heat-exchange system and its control method
CN110244631A (en) * 2019-06-25 2019-09-17 长沙瀚鹏电子技术有限公司 A kind of analog signal collector, method and system
CN110275858A (en) * 2019-05-17 2019-09-24 南京南瑞继保电气有限公司 A kind of information processing method, terminal and computer readable storage medium
CN110429694A (en) * 2019-09-05 2019-11-08 深圳京柏医疗科技股份有限公司 A kind of method and device preventing the concatenated dry cell reversal connection of 4 sections
CN111953585A (en) * 2019-05-14 2020-11-17 现代自动车株式会社 Gateway device and control method thereof
CN115623092A (en) * 2022-12-19 2023-01-17 北京安帝科技有限公司 System monitoring method, device, equipment and medium based on electric signals

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102269981A (en) * 2011-03-14 2011-12-07 南大傲拓科技江苏有限公司 Analogue quantity acquiring method and device in industrial control
CN103279082A (en) * 2013-05-02 2013-09-04 广州航新航空科技股份有限公司 Aeronautic integrated data acquisition and control system
CN203520130U (en) * 2013-09-29 2014-04-02 西门子信号有限公司 Trackside box
CN103885379A (en) * 2014-02-20 2014-06-25 上海工程技术大学 Rotating speed type multisensory signal collecting device
CN203909564U (en) * 2014-02-20 2014-10-29 上海工程技术大学 Signal collection device suitable for multiple sensors
CN204009877U (en) * 2014-06-11 2014-12-10 国网山西省电力公司电力科学研究院 A kind of integrated data collection and control device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102269981A (en) * 2011-03-14 2011-12-07 南大傲拓科技江苏有限公司 Analogue quantity acquiring method and device in industrial control
CN103279082A (en) * 2013-05-02 2013-09-04 广州航新航空科技股份有限公司 Aeronautic integrated data acquisition and control system
CN203520130U (en) * 2013-09-29 2014-04-02 西门子信号有限公司 Trackside box
CN103885379A (en) * 2014-02-20 2014-06-25 上海工程技术大学 Rotating speed type multisensory signal collecting device
CN203909564U (en) * 2014-02-20 2014-10-29 上海工程技术大学 Signal collection device suitable for multiple sensors
CN204009877U (en) * 2014-06-11 2014-12-10 国网山西省电力公司电力科学研究院 A kind of integrated data collection and control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
恩智浦荷兰半导体有限公司: "《LPC11Cx2/Cx4 Product data sheet》", 27 June 2011 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107344483A (en) * 2017-07-25 2017-11-14 江苏浩昱驰汽车电子有限公司 A kind of new-energy automotive air-conditioning heat-exchange system and its control method
CN111953585A (en) * 2019-05-14 2020-11-17 现代自动车株式会社 Gateway device and control method thereof
CN111953585B (en) * 2019-05-14 2024-01-23 现代自动车株式会社 Gateway apparatus and control method thereof
CN110275858A (en) * 2019-05-17 2019-09-24 南京南瑞继保电气有限公司 A kind of information processing method, terminal and computer readable storage medium
CN110275858B (en) * 2019-05-17 2022-03-29 南京南瑞继保电气有限公司 Information processing method, terminal and computer readable storage medium
CN110244631A (en) * 2019-06-25 2019-09-17 长沙瀚鹏电子技术有限公司 A kind of analog signal collector, method and system
CN110429694A (en) * 2019-09-05 2019-11-08 深圳京柏医疗科技股份有限公司 A kind of method and device preventing the concatenated dry cell reversal connection of 4 sections
CN110429694B (en) * 2019-09-05 2021-11-23 深圳京柏医疗科技股份有限公司 Method and device for preventing reverse connection of 4-unit series-connected dry batteries
CN115623092A (en) * 2022-12-19 2023-01-17 北京安帝科技有限公司 System monitoring method, device, equipment and medium based on electric signals

Similar Documents

Publication Publication Date Title
CN106773892A (en) The digital and analogue signals harvester of industry is equipped towards electrician
CN105785958B (en) Multi-functional data collector, acquisition system and method based on wisdom factory
CN202995711U (en) Device for remotely controlling field programmable gate array (FPGA) prototype verification system
CN104753085A (en) Remote online monitoring system for distributed photovoltaic access
CN102590758A (en) High-voltage battery pack test system
CN106712295A (en) Logical power distribution terminal based on distributed power distribution automation system and communication method thereof
CN103944782B (en) Multifunctional motor-driven automobile CAN-bus mobile unit simulator
CN202471925U (en) Test system for high-voltage battery pack
CN102436733A (en) Thermotechnical electric quantity type energy efficiency data collecting terminal
CN103294025A (en) Intelligent management and control system and method of energy consumption of internet of things
CN201477418U (en) Microcomputer protection measuring and controlling device
CN202696907U (en) Low-power green moisture monitoring network gateway based on ZigBee
CN102506932A (en) Thermodynamic type energy-efficiency data acquisition terminal
CN106850420A (en) A kind of gateway and intelligent city management
CN207490989U (en) A kind of distributed data acquisition system for multirobot
CN206930710U (en) Hydroelectric power plant's modular multichannel remote power metering device
CN202304874U (en) Thermotechnical type energy efficiency data acquisition terminal
CN109256865A (en) A kind of distribution network automated terminal with self-checking function
CN205565900U (en) Intelligence circuit breaker communication networking system
CN105673213B (en) The analogue means of AXIe interface combustion engine throttle actuators
CN211427481U (en) Function detection device for electricity consumption information acquisition terminal
CN206506551U (en) A kind of gateway
CN110262989A (en) A kind of multifunctional communication converter and the means of communication
CN206194119U (en) Data acquisition manager based on instrument
CN206442409U (en) A kind of data acquisition node and Internet of things 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531