A kind of internet of things data acquisition device
Technical field
The utility model belongs to technology of Internet of things field, particularly a kind of internet of things data acquisition device.
Background technology
Under the background of arising at the historic moment at Internet of Things and radio sensing network, the be connected sensing measurement and control network of (M2M) of thing thing is day by day universal.And in numerous unattended monitoring occasions, particularly in territorial scope wastewater treatment on a large scale and hydrologic monitoring, palegeology monitoring, numerous aspects such as pipe-line, road traffic and monitoring of equipment, the data acquisition unit of demand that can meet the most of data acquisition and monitoring of current industrial control field is still rare on market.In the Internet of Things epoch, the data collection station that can meet the market actual demand of industrial control field can, in all kinds of wireless supervisory control systems on a large scale of most enterprises, have good using value.
Summary of the invention
The purpose of this utility model is to provide one and is widely used internet of things data acquisition device flexibly.
The technical solution of the utility model is, a kind of internet of things data acquisition device, this data acquisition unit comprises MCU, the UART0 of described MCU connects RS232 interface, the UART1 of MCU connects RS485 interface, and the UART2 of MCU connects Zigbee interface, and the UART3 of MCU connects GPRS interface, the I2C of MCU connects RTC
Meanwhile, also have the GPIO of multiple do/wet sensors, multichannel analog signals input circuit, hummer, run indicator and the described MCU of multichannel external interrupt input access,
Described do/wet sensor adopts digital signal interface, on the path of access GPIO, comprises photoelectrical coupler,
Described analog signal input circuit comprises the bias current operational amplifier of multiple cascades,
Described analog signal input circuit the ground connection of circuit board be all connected to one in analog total, this in analog with being more digitally connected of circuit board,
The power input of the mimic channel of described data acquisition unit with in analog between multiple filter capacitors in parallel,
The power input of the digital circuit of described data acquisition unit with digitally between multiple filter capacitors in parallel,
Described RS485 interface bus adopts the mode of 2 lines, and signal wire is respectively RS-A and RS-B, adopts the mode of difference to communicate by letter, UART mouth by level transferring chip and MCU is connected, wherein, total ground wire of the described ground wire of 485 interfaces and the system of described data acquisition unit is isolated
Here, MCU(Micro Control Unit) be the English abbreviation of micro-control unit,
GPIO(General Purpose Input Output) be the English abbreviation of universal input/output,
UART(Universal Asynchronous Receiver/Transmitter) be the English abbreviation of universal asynchronous receiving-transmitting transmitter,
I2C is that the English of the twin wire universal serial bus developed by PHILIPS Co. is called for short
RTC(real time clock) be the English abbreviation of real-time clock.
The beneficial effects of the utility model are, by adopting the micro OS of independent research of no copyright problem, customizable data acquisition server and background management system; Support the multiple communication modes such as GPRS, RS232, RS485, Zigbee; " one master and multiple slaves " algorithm based on RS485 of autonomous Design has been realized flexible configuration and has been reduced datapath function, makes same website can adopt polylith collector on-line working; Possess temporary data storage function, in the time period of communicating interrupt, automatic collector table data storage are automatically sent to Surveillance center by storage data after telecommunication is recovered; Need not dismantle can be by long-range or RS232 configuration-system parameter etc.
Brief description of the drawings
Fig. 1 is system theory of constitution figure of the present utility model
Embodiment
Internet of Things collector of the present utility model is the data collection station for the market actual demand exploitation of industrial control field based on Internet of Things framework.Be divided into data acquisition module, data processing module and data transmission module three parts from function, sensor signal and each way switch amounts such as data collecting module collected voltage, electric current, data are after treatment sent to data acquisition server or data monitor center by modes such as GPRS again.The plate of independent research carries micro operation system and has ensured that the main task such as data sampling and processing, communication and mutual and system configuration carries out without any confusion.Can also be by long-range GPRS mode, the modes such as PC-RS232 and external key interruption are configured various parameters, as given one of each data collection station configuration No. ID, can selectively open need to gather and turn off unnecessary switching value and analog quantity, the acquisition time of configurable Cortex-M3 to sensor die analog signal and switching value signal, thereby control GPRS flow, system is provided with 4 external interrupt, can be by interrupting carrying out verification to system, the configurable effective model that uploads to the data in database is 1 or 0, 4 UART ports are uploaded to downloading mode to be configured etc.Effectively solve the problem such as the line of paving again and dismounting after system is installed.This internet of things data acquisition device can meet the demand of the most of data acquisition and monitoring of current industrial control field.
The utility model solves the technical scheme that its technical matters adopts: data acquisition module adopts ADC and the multichannel photoelectricity isolation digital quantity input channel of 12 bit resolutions; insulation blocking voltage can reach 3000VDC, can steady operation in strong voltage, miss etc. severe occasion.Data acquisition module receives 32 way switch amounts, 4 tunnel difference or the 8 single-ended analog quantitys in tunnel etc. from collection site.In implementation process, can select according to collection capacity scale the data acquisition module of different sampling channel numbers, reduce system cost.Data acquisition module is connected to data processing module by the industrial bus such as RS232/485 or PC104.Data processing module can adopt the technical grade Cortex-M3 of NXP company series processors, has the feature such as high stability, the work of wide temperature.Data after treatment are sent to data monitor center by GPRS.GPRS data transmission module can adopt and use on the market the EM310 of Huawei module and Shanghai Simcom SIM300 module very widely, embedded powerful ICP/IP protocol stack, wide temperature work, support the frequency ranges such as GSM/GPRS900/1800/1900MHz, support the functions such as broken string Auto-reconnect, ensure the accurately real-time data monitoring center that is sent to of data that data acquisition unit collects.Data collection station is by digital quantity passage and analog quantity channel collection site Ge road transducing signal respectively.In forward path, according to the Data Transport Protocol of deciding through consultation, the transducing signal collecting is carried out to data processing and tissue, deliver to GPRS module by serial ports and send to middleware.The database server of CSRC connects the GPRS module of each data collection station by wireless network, and on physical connection, sets up reliable TCP connection, ensures that data collection station upwards sends the accurate of data.In backward channel, the comprehensive various configuration informations of middleware and order, according to the configuration data agreement of deciding through consultation, be configured data collection station.
In Fig. 1, the hardware resource of data acquisition unit can adopt as follows: 1.MCU:MCU adopts the Cortex-M3 series of ARM framework, the LPC1766 that concrete chip is NXP, and this chip maximum operation frequency can reach 100MHz, has rich in natural resources and interface; 2. storage system: have 256KB Flash in sheet, 64KBRAM; 3. switching value input: 32 tunnels, there is input voltage photoelectricity isolation features, support dry, wet node input; 4. analog input: difference 4 tunnels, single-ended 8 road electric currents or voltage signal input; 5. communication interface: GPRS, ZigBee, RS485, RS232; 6. power supply and reset: adopt 9V direct supply, with reset chip, can reset by external key; 7.ISP: there is in-system programming function; 8. hummer: report to the police and indicating status hummer.
The primary function of RS485 interface is following two aspects: the first, and adopt RS485 to construct bus, the data message of each website is linked together by RS485, solve the problem that industry control plant area does not have GPRS signal to cover; The second, because some application scenario adopts PLC, control and set-up mode are generally RS485 bus, and in order to match with the signal of this PLC controller, reserved RS485 bus is for arranging or control PLC.In the present embodiment, RS485 bus adopts the mode of 2 lines, signal wire is respectively RS-A and RS-B, adopt the mode of difference to communicate by letter, UART mouth by level transferring chip and MCU is connected, and wherein RGND is the ground wire of RSM485 chip, and DGND is the total ground wire of system, other are digitally isolated the ground wire of chip and mainboard for the present embodiment, so that stable transmission data.
RS232 interface is common interfaces, can adopt MAX3232 chip to carry out the conversion of TTL and RS232 level, realizes the object of communication.
Switching value input isolation circuit, when GPIOI_A0 is input as low time, lumination of light emitting diode, also conducting of triode simultaneously, before conducting, A0 is output as high level, and after conducting, A0 is output as low level, and GPIOI_A0 is input as lowly, and A0 output is also low; GPIOI_A0 is input as height, and A0 output is also high; Mode by this photoelectricity has been isolated interference waveform, has realized the accuracy of switching value input.In embodiment, switching value has 32, is all the object by reached isolation with lower interface.
Analog quantity interface is mainly used to gather the sensor current of 4-20mA, by operational amplifier, the magnitude of current is amplified, and the magnitude of current is converted to voltage gathers.In embodiment, analog quantity has 4, and permissible accuracy is higher, so the designing requirement of the design to mimic channel and layout is higher.