Summary of the invention
1, invention to solve the technical problem that。
The present invention is directed to the deficiency of the tradition low recording rate of recording instrument without paper, low precision, mutual inconvenience, large volume, a kind of recording instrument without paper based on LINUX operating system is provided, this product has that volume is little, cost is low, precision is high, recording rate is fast, real-time is good, the advantage such as simple alternately, adopt double-coreization design, Differentiation System function, utilize the real-time of real time operating system, reliability and stability to improve the performance of recording instrument without paper, meet the market new demand to recording instrument without paper。
2, technical scheme。
To achieve these goals, the technical scheme that the present invention just adopts is as follows。
A kind of recording instrument without paper based on LINUX operating system provided by the invention is broadly divided into operating system module, data acquisition card module and recording instrument without paper terminal software。Wherein, operating system module is used for running LINUX system, recording instrument without paper terminal software runs in LINUX system, the instruction control to data collecting card module and digital independent is realized by calling data acquisition card driver, data acquisition card module is after recording instrument without paper terminal software sends reading data command, data that are that collect and that process through early stage are sent in recording instrument without paper terminal software, recording instrument without paper terminal software is by after processing the data come on data collecting card module transfer, data are shown on liquid crystal display screen, and be stored in memory device with the form of data base。
Described operating system module includes microprocessor CPU, memorizer, display, USB device interface, SD card interface, RTC clock circuit, clock circuit, serial communication circuit and operating system power circuit, provides a stable hardware platform principally for running LINUX system。
What described microprocessor CPU adopted is the microprocessor of the high-performance low-power-consumption of ARM9 framework, as one of the core of whole system, is mainly used in running LINUX system。
Described memorizer adopts high-capacity FLASH memorizer, can fast reading and writing data, power down can not also lose data, is used for storing data and runs for system and provide internal memory。
Described display adopts 7 cun of color touch display liquid crystal, coordinates the interface display that LINUX operating system is abundant to realize convenient man-machine interaction, it is provided that comfortable operation sense, improves friendly interface degree。
The described operating system power circuit working power that the various piece offer thinking in aforesaid operations system module is stable。
Described USB device interface and SD card interface are respectively used to the system that the realizes read-write operation to USB storage device and SD card。
Described RTC clock circuit, is used for realizing system time setting, provides continuous print timing node for data record simultaneously。
Described clock circuit, runs for system and provides stabilizing clock, it is ensured that system is properly functioning。
Described serial communication circuit, is mainly used in the debugging system and program。
Described operating system power circuit, mainly by upper level power supply after further stabilized treatment, provides working power for operating system module。
Described microprocessor CPU is connected with display, USB device interface, SD card interface, RTC clock circuit, clock circuit, serial communication circuit respectively, described operating system power circuit is connected with microprocessor CPU, memorizer, display, USB device interface, SD card interface, RTC clock circuit, serial communication circuit respectively, thering is provided working power for them, whole operating system module can stable operation LINUX operating system。
Described data acquisition card module includes microcontroller, power circuit and omnipotent input circuit。Wherein:
Described microcontroller, adopt 16 low-power scms, it it is one of whole system core, it is mainly used to the control core as data acquisition module, the data that above-mentioned omnipotent input circuit is sent carry out early stage process, concrete processing procedure includes physical quantity and returns and non-linearization compensation, and under the reading command request of above-mentioned recording instrument without paper terminal software, sends the data after carrying out early stage process to microprocessor CPU in aforesaid operations system module。
The data collected under the control and driving of above-mentioned microcontroller, it is achieved multi-signal collection, and are sent in above-mentioned microcontroller by described omnipotent input circuit。
Described power circuit adopts multiple integrated voltage-stabilized chip, produces multiple driving voltage, provides power supply for above-mentioned operating system module and data collecting card module。
Described power circuit is connected with the operating system power circuit in microcontroller, omnipotent input circuit and aforesaid operations system module, working power is provided for them, described microcontroller is connected with the microprocessor CPU in omnipotent input circuit and above-mentioned operating system module, constitutes the communication channel of data。
Described recording instrument without paper terminal software includes data acquisition card driver and recording instrument without paper program。Wherein:
Described data acquisition card driver is the innovative design for hardware configuration of the present invention, the communication stable in order to realize high speed between above-mentioned data acquisition card module and operating system module, adopt SPI protocol, synchronize transmitting-receiving, it can be compiled in LINUX operating system nucleus, bottom hardware as system drives, and can be called by user program。
Described recording instrument without paper program, QT is adopted to write, run and in LINUX operating system, realize data collecting card setting, digital independent, data storage, data show, the detection of SD card, USB flash disk detection, PID arithmetic, thermocouple cold junction compensation, upper machine communication, wherein, data collecting card is arranged and digital independent realizes by loading above-mentioned data acquisition card driver, and data storage adopts light-weight database SQLite。
Further, described omnipotent input circuit includes voltage collection circuit, thermocouple Acquisition Circuit, current collection circuit, resistance/thermal resistance collection circuit, analog switch switching circuit, high-precision AD change-over circuit。Wherein:
Described high-precision AD circuit adopt 24 high-precision AD conversion chips, above-mentioned data acquisition card module microcontroller control and drive under, it is achieved the high speed of data, high precision collecting。
Described voltage collection circuit is for realizing the collection of voltage signal, this circuit comprises two kinds of amplifications, it is respectively intended to gather standard voltage signal and micro voltage signal, wherein micro voltage signal need to gather after the amplifier of Low Drift Temperature amplifies again, under the control of the microcontroller of above-mentioned data acquisition card module, switch two kinds of amplification circuit realiration switchings by above-mentioned analog switch。
Described thermocouple Acquisition Circuit is used for realizing the collection of thermocouple signal, adopts the amplifier of Low Drift Temperature to realize thermocouple signal high-precision amplification, thus realizing high precision collecting。
Described current collection circuit flows through voltage produced by precision resistance to realize the collection of current signal by measuring current signal。
Described resistance/thermal resistance collection circuit flows through voltage produced by resistance/thermal resistance to realize the collection of resistance signal by measuring constant-current source。
Described analog switch switching circuit is mainly used in realizing omnipotent input, under the control of the microcontroller of above-mentioned data acquisition card module, it is achieved the undisturbed of unlike signal Acquisition Circuit quickly switches。
Described analog switch switching circuit is connected with voltage collection circuit, thermocouple Acquisition Circuit, current collection circuit, thermal resistance collection circuit respectively, and described high-precision AD change-over circuit switches circuit with analog switch and is connected。
3, beneficial effect。
Adopt technical scheme provided by the invention, compared with existing known technology, have following remarkable result。
(1) a kind of recording instrument without paper based on LINUX operating system of the present invention, adopt LINUX operating system as the software platform of system, the real-time of operating system, reliability, stability and abundant operation interface element, it is possible to improve the stability of recording instrument without paper, reliability and work efficiency。
(2) a kind of recording instrument without paper based on LINUX operating system of the present invention, employing multinucleation designs, Differentiation System function, whole system is divided into two big nucleus module, respectively operating system module and data collecting card modules, and two module controls and function are mutually contradictory, it is greatly improved the operational efficiency of system, improve data acquisition and the recording rate of recording instrument without paper, meet some recording rates to recording instrument without paper and require higher occasion, expanded the range of application of recording instrument without paper。
(3) a kind of recording instrument without paper based on LINUX operating system of the present invention, adopts the integrated omnipotent input circuit of innovative design of the present invention, improves the acquisition precision to multiple unlike signal, reduce volume simultaneously。
(4) a kind of recording instrument without paper based on LINUX operating system of the present invention, adopt the data acquisition card driver of innovative design of the present invention, for the hardware configuration that the present invention is unique, custom-designed high efficiency drive program, substantially increases the communication reliability and stability before disparate modules in system。
(5) a kind of recording instrument without paper based on LINUX operating system of the present invention, adopt the recording instrument without paper program of innovative design of the present invention, based on transplantable QT storehouse, run and in LINUX operating system, utilize the human-computer interaction interface storehouse that operating system is abundant, the friendly interface degree of recording instrument without paper is greatly improved, simultaneously, built-in multiple operation function, strengthens the function of recording instrument without paper。
(6) a kind of recording instrument without paper based on LINUX operating system of the present invention, adopt 7 cun of color touch LCDs, its contents displayed on interface is more rich and varied, makes recording instrument without paper operation more meet man-machine requirement, and what improve between user and monitor is interactive。
(7) a kind of recording instrument without paper based on LINUX operating system of the present invention, the all functional chips used all use highly integrated chip, greatly reduce the size of pcb board, reduce the volume of recording instrument without paper, it is easy to carry, meanwhile, the reliability and stability of recording instrument without paper are also improved。
Detailed description of the invention
The following is the specific embodiment of the present invention and in conjunction with accompanying drawing, technical scheme is further described。
As shown in Figure 1, a kind of recording instrument without paper whole system based on LINUX operating system of the present invention includes 3 layers, it is respectively as follows: physical hardware layer 1, operating system and drives layer 2 and software application layer 3, physical hardware layer 1 is mainly platform and the hardware realization that whole Paperless Recorder System provides a hardware to run, operating system and drive layer 2 as the software running platform of whole system, it is in whole system middle level, connects this physical hardware layer 1 and software application layer 3。
As in figure 2 it is shown, described operating system module includes: microprocessor CPU, memorizer, display, USB device interface, SD card interface, RTC clock circuit, clock circuit, serial communication circuit and operating system power circuit。1) microprocessor CPU adopts the high-performance low-power-consumption microprocessor of ARM9 framework, as the operation core of whole operating system;2) memorizer adopts jumbo FALSH memorizer, and running for whole system provides internal memory and memory space;3) USB device interface and SD card interface are used for realizing Mobile Storage Function MSF, and USB device interface can realize the mobile storage of USB flash disk and hard disk, and SD card interface can realize the mobile storage of SD card;4) RTC clock circuit provides calendar function for system, is used for recording time data memory point;5) clock circuit provides work clock for system;6) serial communication circuit is for the parameter adjustment in debugging process;7) operating system power circuit provides stable working power for whole operating system module。
Described data acquisition card module includes: microcontroller, power circuit and omnipotent input circuit。1) microcontroller adopts the low-power scm of 16, is the collection core of whole system, mainly realizes the function of data acquisition, pretreatment and transmission, and sharing system runs the partial function of core;2) power circuit provides power supply principally for data acquisition card module and operating system module;3) omnipotent input circuit mainly realizes the collection of multi-signal, especially the precise acquisition to small-signal。
By SPI protocol communication between described data acquisition card module and operating system module。
As it is shown on figure 3, described omnipotent input circuit includes: voltage collection circuit, thermocouple Acquisition Circuit, current collection circuit, thermal resistance collection circuit, analog switch switching circuit, high-precision AD change-over circuit。1) voltage collection circuit, thermocouple Acquisition Circuit, current collection circuit and thermal resistance collection circuit are respectively used to realize the signal of voltage, thermocouple, electric current and thermal resistance;2) analog switch switching circuit is used for realizing the switching undisturbed of channel acquisition signal kinds;3) high-precision AD change-over circuit is the core that whole system realizes high-accuracy data acquisition, and employing is the high-precision AD conversion chip of 24。