CN103840964A - Data collection communication system and upgrade method - Google Patents

Data collection communication system and upgrade method Download PDF

Info

Publication number
CN103840964A
CN103840964A CN201210491162.0A CN201210491162A CN103840964A CN 103840964 A CN103840964 A CN 103840964A CN 201210491162 A CN201210491162 A CN 201210491162A CN 103840964 A CN103840964 A CN 103840964A
Authority
CN
China
Prior art keywords
processing unit
data
program memory
module
interface
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
CN201210491162.0A
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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201210491162.0A priority Critical patent/CN103840964A/en
Publication of CN103840964A publication Critical patent/CN103840964A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a data collection communication system. A processing unit is connected with a data acquisition module, a data backup module, a communication module and an upgrade module. The processing unit is a MCU with an internal timer, and further provided with an ADC interface, an I2C interface, a SPI interface, an external bus interface and a network controller interface. The method comprises the following steps that the processing unit can upgrade a backup storage in the upgrade module by judging the type of a received command, upgraded program data received by the communication module are written into the backup storage through the processing unit, a main program storage is disabled, the processing unit is reseted, and the upgraded program data are transferred into the processing unit to be conducted from the backup storage in a program form. By the adoption of a plurality of data collection modes, the data collection modes and methods are expanded, the diversity of collection method of system front-end data is increased, the system can be upgraded and operated online when hardware equipment is not changed, and cost of the required manpower and material resources for upgrading the system is reduced.

Description

A kind of Data Acquisition and Communication System and upgrade method thereof
Technical field
The present invention relates to, for industrial data collection communicating system and method, be specifically related to by the method for remote collection data, Backup Data and remote upgrade.
Background technology
Along with the development of computer technology and industrial control technology, pick-up transducers data have just become indispensable part in industrial equipment, current collecting method is relative with pattern single, do not catch up with the development of transducer kind far away, greatly restricted pattern and the overall performance of data acquisition.
For gathering the data of coming, current way is directly to carry out processing and the transmission of image data, once loss of data like this can cause more serious consequence.Directly apply in addition image data secure data area is also existed to certain hidden danger, reduce the safety and reliability of whole system.
Current data acquisition system, can only, by manually equipment being upgraded and safeguarding, can not realize remote upgrade, has increased difficulty and the cost of device upgrade and maintenance.
Summary of the invention
For the deficiencies in the prior art, the invention provides a kind of by the system and method for remote collection data, Backup Data and remote upgrade.The technical scheme that the present invention adopted is for achieving the above object: a kind of Data Acquisition and Communication System, comprising: processing unit is connected with data acquisition module, data backup module, communication module, upgrading module; Described processing unit is the MCU with timer internal, and with ADC interface, I2C interface, SPI interface, external bus interface and network controller interface; Described data backup module is multiple memories or memory device; Include/radio network interface of communication module.
Described upgrading module is 2 program storages.
Described data acquisition module comprises multiple analog sensors and digital sensor; Described digital sensor is connected with I2C interface or the SPI interface of processing unit; Described analog sensor is connected with the ADC interface of MCU by operational amplifier.
A kind of data acquisition communication means comprises the following steps:
The remote command of processing unit received communication module also judges its command type; If order is remote upgrade operational order, the stand-by program memory that enables to upgrade in module; If not remote upgrade operational order, carry out respective handling according to remote command content;
Enable after stand-by program memory, the ROMPaq data that communication module is received write stand-by program memory by processing unit; Judge whether stand-by program memory and main program memory conflict in bus; If conflict, waits for; If do not conflicted, anergy main program memory reset processing unit; ROMPaq data are called from stand-by program memory with the form of program in the internal memory of processing unit and are moved.
The frame format of described remote command comprises: command header, command number, transducer number, data length, data content and verification.
Describedly judge whether stand-by program memory and main program memory conflict and comprise in bus: if main program memory is not received the request of read signal OE and the write signal WE of processing unit in one or several clock cycle simultaneously, stand-by program memory and main program memory in bus without conflict; If main program memory is received the request of read signal OE or the write signal WE of processing unit in one or several clock cycle, stand-by program memory and main program memory have conflict in bus.
The present invention has following beneficial effect and advantage:
1. the present invention has used various modes data acquisition technology, the pattern of having expanded data acquisition and method, has strengthened the diversity of system front end collecting method.
2. adopt technology of data copy to back up gathering the data of coming, strengthened the safety and reliability of data through encryption and decryption processing.
3. utilize system upgrade and the network communications technology, in the situation that hardware device is constant, system is carried out to online upgrading operation, reduced the required man power and material's cost of renewal system.
4. the sensor signal after being dwindled by operation amplifier circuit; compared with single-stage discharge circuit; discharge circuit in this explanation adopts prime to amplify; the strategy that rear class is followed; strengthen the stability of dwindling rear signal; increase multiple protective circuit of diode simultaneously, strengthened the safety and reliability of circuit.
Accompanying drawing explanation
Fig. 1 is hardware structure diagram of the present invention;
Fig. 2 is the hardware structure diagram of processing unit;
Fig. 3 is the hardware structure diagram of acquisition module;
Fig. 4 is the schematic diagram of data backup module;
Fig. 5 is the schematic diagram of upgrading module;
Fig. 6 is the connection diagram of communication module;
Fig. 7 is operation amplifier circuit schematic diagram;
Fig. 8 is the flow chart of data acquisition communication means.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Accompanying drawing 1-6 is an embodiment of Data Acquisition and Communication System.As shown in Figure 1, whole system is made up of data acquisition module 1, data backup module 2, processing unit 3,4 of moulds of communication and upgrading module 5 five parts.Processing unit 3 is brains of whole system, and he receives next data the operating data backup module 2 of acquisition module 1 collection and carries out data backup, transmits gathering the data of coming by communication module 4.As shown in Figure 2, processing unit 3 is the processors 9 with ADC interface 6, I2C interface 7, SPI interface 8, timer 10, external bus interface 11 and network controller interface 12 to processing unit 3 concrete structures.As long as meet interface condition, can select single-chip microcomputer, ARM, DSP as processor.
The remote command of processing unit received communication module, whole command format is made up of command header, command number, device number, data length, data content and verification and five parts.Command header is as the beginning of frame format, for notifying recipient the beginning of a whole frame.Command number has been indicated the type of order, the operation that processing unit can be correlated with by command type, and transducer number is the numbering of multiple transducers in an equipment, can operate the transducer in different equipment according to sensor number.Data length is the byte number that will transmit data.Data content is data message or the remote update routine data of sensor transmissions.Verification and be the ending of command frame, is that receiving terminal judges that command frame transmits correct foundation, verification and taked command header, command number, device number, data length, data content to add and mode.Command frame format is in table 1.
Table 1
In Fig. 1, data acquisition module 1 is that the front end of whole system is also the input of system, and it provides multi-path digital image data information and analog acquisition information for processing unit 3, has strengthened the diversity of system front end collecting method, as shown in Figure 3.Gather analog information by analog sensor group 13.Transducer group 13 can form (as analog sensors such as temperature, humidity and air pressure) by multiple dissimilar analog sensors.Transducer group 13 zooms in or out operation by discharge circuit 14 to gathering the analog data signal coming, analog within the scope of ADC interface 6 acceptables in processing unit 3, complete the gatherer process of simulated sensor data, wherein Fig. 7 has provided a sensor signal by the example of discharge circuit, sensor signal is first connected into the positive input terminal of amplifier LM358 by two divider resistances, and the positive input terminal at amplifier LM358 adds protective circuit, as diode V1 (IN4148) and V2 (IN4148) protect signal, exported the signal that dwindles two divider resistance ratio multiples at the output of amplifier LM358, stablizing the signal after dwindling by the follow circuit of one-level amplifier LM358, pass through protective circuit, as diode V1 (IN4148) and V2 (IN4148) protect the signal after dwindling, finally obtain the sensor signal after dwindling, the ADC interface of access processing unit.Gather digital sensor signal by digital sensor group 16.Transducer group 16 can have multiple dissimilar digital sensors, and transducer group 16 can be connected with SPI interface 8 with I2C interface 7 in processing unit 3 by data/address bus (as I2C, spi bus), completes the gatherer process of digital sensor data.
The information that in Fig. 1, data backup module 2 gathers data acquisition module 1 is carried out storage backup operation through the processing of processing unit 3.Fig. 4 is the schematic diagram of data backup module.The information that processing unit 3 gathers data acquisition module 1 is processed, carry out data storage by the data after encryption by interface bus 17 and memory device 18 (can be the memory devices such as SD card, hard disk), cryptographic algorithm can be used conventional DES, RSA and DSA algorithm.Data in memory device 20 also can be read into data in processing unit 3 by interface bus 17 by decryption processing, then carry out transfer of data by the network interface of the communication module 4 in Fig. 6 by communication network.Communication network can be LAN, can comprise for example for the communication based on ieee standard 802.11 or for the communications component based on ieee standard 802.3, as hub, router, switch, bridge and wire.
The module of upgrading in Fig. 15 is whole system program upgrade modules in the situation that hardware device does not change.Shown in the schematic diagram 5 of upgrading module 5.Main program memory 19 (can be that FLASH can be also EEPROM) is the place of processing unit 3 program storages and operation.Alternate program memory 20 (can be that FLASH can be also EEPROM) is in the time that system need to be upgraded, the place of the storage of system update program and operation.More newer command and more when new data of the system program of sending when the network interface of processing unit 3 received communication modules 4, by bus arbitration processing, the data of upgrading are write in alternate program memory 20, and move alternate program memory 20 in once starting in system, so just complete the renewal operation of remote system program, reduced the required man power and material's cost of renewal system.The process of bus arbitration processing as shown in Figure 8, the first first receiving remote order of processing unit, judgement is program action command or upgrading order, if program action command, program continues operation.If program upgrade order, enable backup of memory, the data of upgrading are write after backup of memory, judge in bus whether backup of memory and main program memory data collision occurs in bus, if there is conflict, enter and wait for until do not clash.If data collision does not occur for backup of memory and main program memory in bus, after anergy main program memory, restart facility reruns the program after renewal in back-up registers.
Above described example is described, to allow easily to understand the present invention, but above-mentioned example does not limit the present invention.On the contrary, the present invention's plan comprises various improvement and equivalent method, and its scope will be given the widest explanation to comprise all such improvement and equivalent method under law allows.

Claims (6)

1. a Data Acquisition and Communication System, is characterized in that: processing unit (3) is connected with data acquisition module (1), data backup module (2), communication module (4), upgrading module (5); Described processing unit (3) is the MCU with timer internal, and with ADC interface, I2C interface, SPI interface, external bus interface and network controller interface; Described data backup module (2) is multiple memories or memory device; Include/radio network interface of communication module (4).
2. a kind of Data Acquisition and Communication System according to claim 1, is characterized in that: described upgrading module (5) is 2 program storages.
3. a kind of Data Acquisition and Communication System according to claim 1, is characterized in that: described data acquisition module (1) comprises multiple analog sensors and digital sensor; Described digital sensor is connected with I2C interface or the SPI interface of processing unit (3); Described analog sensor is connected with the ADC interface of MCU by operational amplifier.
4. a data acquisition communication means, is characterized in that comprising the following steps:
The remote command of processing unit (3) received communication module (4) also judges its command type; If order is remote upgrade operational order, the stand-by program memory (20) that enables to upgrade in module; If not remote upgrade operational order, carry out respective handling according to remote command content;
Enable after stand-by program memory (20), the ROMPaq data that communication module (4) is received write stand-by program memory (20) by processing unit (3); Judge whether stand-by program memory (20) and main program memory (19) conflict in bus; If conflict, waits for; If do not conflicted, anergy main program memory (19) reset processing unit (3); ROMPaq data are called from stand-by program memory (20) with the form of program in the internal memory of processing unit (3) and are moved.
5. a kind of data acquisition communication means according to claim 4, is characterized in that: the frame format of described remote command comprises: command header, command number, transducer number, data length, data content and verification.
6. a kind of data acquisition communication means according to claim 4, it is characterized in that: describedly judge whether stand-by program memory (20) and main program memory (19) conflict and comprise in bus: if main program memory (19) is not received the request of read signal OE and the write signal WE of processing unit (3) in one or several clock cycle simultaneously, stand-by program memory (20) and main program memory (19) in bus without conflict; If main program memory (19) is received the request of read signal OE or the write signal WE of processing unit (3) in one or several clock cycle, stand-by program memory (20) and main program memory (19) have conflict in bus.
CN201210491162.0A 2012-11-27 2012-11-27 Data collection communication system and upgrade method Pending CN103840964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210491162.0A CN103840964A (en) 2012-11-27 2012-11-27 Data collection communication system and upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210491162.0A CN103840964A (en) 2012-11-27 2012-11-27 Data collection communication system and upgrade method

Publications (1)

Publication Number Publication Date
CN103840964A true CN103840964A (en) 2014-06-04

Family

ID=50804129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210491162.0A Pending CN103840964A (en) 2012-11-27 2012-11-27 Data collection communication system and upgrade method

Country Status (1)

Country Link
CN (1) CN103840964A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104535717A (en) * 2014-12-03 2015-04-22 河南汉威电子股份有限公司 Gas detector having on-line maintenance and upgrade functions as well as method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256527A (en) * 2008-03-12 2008-09-03 中兴通讯股份有限公司 Backup method and apparatus for bootstrap
US20100280795A1 (en) * 2009-04-29 2010-11-04 National Tsing Hua University (Taiwan) Sensing method for improved sensing module
CN102243594A (en) * 2011-07-26 2011-11-16 重庆大唐科技股份有限公司 Method for safely and remotely upgrading embedded Linux system software
CN102279581A (en) * 2011-04-19 2011-12-14 浙江大学 Integral test device for pico-satellite
CN102376153A (en) * 2011-11-15 2012-03-14 深圳市科陆电子科技股份有限公司 Method for remotely updating carrier sheet and acquirer in concentrated meter reading system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256527A (en) * 2008-03-12 2008-09-03 中兴通讯股份有限公司 Backup method and apparatus for bootstrap
US20100280795A1 (en) * 2009-04-29 2010-11-04 National Tsing Hua University (Taiwan) Sensing method for improved sensing module
CN102279581A (en) * 2011-04-19 2011-12-14 浙江大学 Integral test device for pico-satellite
CN102243594A (en) * 2011-07-26 2011-11-16 重庆大唐科技股份有限公司 Method for safely and remotely upgrading embedded Linux system software
CN102376153A (en) * 2011-11-15 2012-03-14 深圳市科陆电子科技股份有限公司 Method for remotely updating carrier sheet and acquirer in concentrated meter reading system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
成强等: ""程序可远程升级的数据采集终端的设计"", 《河南大学学报(自然科学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104535717A (en) * 2014-12-03 2015-04-22 河南汉威电子股份有限公司 Gas detector having on-line maintenance and upgrade functions as well as method thereof

Similar Documents

Publication Publication Date Title
CN104063290B (en) Handle system, the method and apparatus of time-out
TWI393009B (en) Data sharing and transfer systems and methods
CN104794089B (en) The method, apparatus and system to be communicated suitable for the modified UART of single-chip microcomputer
CN204331708U (en) A kind of portable set and a kind of host computer system
WO2011088672A1 (en) Intelligent charging method and device for terminal
CN104731746A (en) Equipment controller device
CN103631534B (en) Data storage system and managing method thereof
CN104361143B (en) A kind of portable data acquisition card and its method
CN103399830A (en) Equipment and method for reading computer physical memory through PCI Express bus
CN101777003A (en) Method for remotely updating program of industrial fuel gas meter data reader
CN101031898B (en) Implementing bufferless dma controllers using split transactions
CN105527878A (en) Data acquisition method, data acquisition device and data acquisition and debugging system
CN104460406A (en) Single-line communication method and single chip microcomputer firmware updating method based on single-line communication
CN106951352A (en) A kind of server log memory management method
CN100481895C (en) Method and device for carrying out TV set software upgrade
CN103840964A (en) Data collection communication system and upgrade method
CN103873566A (en) Method and device of accessing mobile equipment
CN105094886A (en) Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine
CN114579392A (en) AXI bus monitor for write transactions
CN102222181A (en) Method for realizing trusted computing platform in embedded device
CN102236747A (en) Method for upgrading conventional computer into trusted computer
CN208999999U (en) Data processing equipment
CN106445854A (en) Method and system for supporting transparent transmission of serial interfaces
CN103914421B (en) Data terminal, data transmission system and hot-swap control method
CN106126452B (en) The method that (SuSE) Linux OS based on IIC agreement is communicated with bare machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140604

RJ01 Rejection of invention patent application after publication