CN103676866A - Embedded networked multivariate input and output system - Google Patents

Embedded networked multivariate input and output system Download PDF

Info

Publication number
CN103676866A
CN103676866A CN201310654378.9A CN201310654378A CN103676866A CN 103676866 A CN103676866 A CN 103676866A CN 201310654378 A CN201310654378 A CN 201310654378A CN 103676866 A CN103676866 A CN 103676866A
Authority
CN
China
Prior art keywords
module
data
input
embedded
program
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
CN201310654378.9A
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.)
SUZHOU LANGJIETONG INTELLIGENT TECHNOLOGY Co Ltd
Original Assignee
SUZHOU LANGJIETONG INTELLIGENT TECHNOLOGY 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 SUZHOU LANGJIETONG INTELLIGENT TECHNOLOGY Co Ltd filed Critical SUZHOU LANGJIETONG INTELLIGENT TECHNOLOGY Co Ltd
Priority to CN201310654378.9A priority Critical patent/CN103676866A/en
Publication of CN103676866A publication Critical patent/CN103676866A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an embedded networked multivariate input and output system which comprises an embedded control device, an IP camera and a field device. The IP camera is in communication with the embedded control device through network connection, and the field device is used for collecting and transforming field signals. The IP camera transmits image and video information to the embedded control device. The embedded control device receives the data of the IP camera and the data of the field device and is provided with a network module, an RFID module and an I/O module, and the I/O module is connected with the embedded control device through a serial port bus and is used for controlling the field device and enabling the field device to collect and transform the field signals. The network module is in communication with the IP camera to control and transmit the image and video information. The system does not depend on a PC, is low in cost, easy to popularize, flexible in use, easy to maintain and rich in peripheral resource, and adopts a preemptive real-time operating system.

Description

The polynary input-output system of embedded type networking
Technical field
The invention belongs to technology of Internet of things field, be specifically related to the polynary input-output system of a kind of embedded type networking.
Background technology
Day by day universal along with Internet application and Internet of Things application, the degree of information sharing improves constantly.Traditional Internet application is centered by PC, and current Internet application will turn to centered by embedded device.For the low profile edge equipment centered by scm application system, how to utilize Internet resource easily by the information sharing of embedded device to Internet above, to become the emphasis of current electronic product exploitation.The popular Internet of the showing application of IA (Internet Appliance) concept has entered the embedded Internet epoch.It is predicted, in the information of transmitting in the future, the information that has 70% is come to low profile edge system on Internet.Wherein, utilize the technological difficulties of chip microcontroller embedded Internet scheme to be: 1, how to utilize the limited resource of single-chip microcomputer self to carry out ICP/IP protocol processing to information, make it to become the IP packet that can transmit on Internet.2, in single-chip microcomputer, move real-time kernel.
From solving this technical matters, there is at present following several scheme:
(1) Gateway+ private: adopt dedicated network (as RS-232, RS-485, CAN Bus etc.) a small quantities of single-chip microcomputer is linked together, and then by this dedicated Internet access to one PC, this PC is converted to ICP/IP protocol packet as gateway by the information on dedicated network, is then dealt into and realizes information sharing on the net.This scheme can connect multiple single-chip microcomputer.Shortcoming: a. need to rely on PC and carry out protocol conversion as gateway, in the situation that a plurality of Single Chip Microcomputer (SCM) system are disperseed, and very inconvenience of dedicated network wiring; B. special protocol conversion software need to be installed on PC, this software is provided by special third party software business conventionally, and expense is higher.
(2) 32 MCU+RTOS: adopt the high-grade single-chip microcomputer of 32, at RTOS(real-time multi-task operating system) on platform, carry out software development, in embedded system, realize the protocol processes of TCP/IP.Owing to adopting high-grade single-chip microcomputer, this scheme can complete the function of a lot of complexity.But there is following shortcoming in this scheme: need buy or select free RTOS to develop software, developer's development ability is had relatively high expectations.
(3) ARM MCU+ embedded software bag: 32 single-chip microcomputers that adopt Pollux company to provide can be realized Internet access function.Because this single-chip microcomputer is one of the fastest single-chip microcomputer (100,000,000 instructions per second) in the world so far, can realize real-time multi-task operation (timeslice poll).In the collection of MCU executing data with when controlling function, data can be packed, send on Internet.This scheme has following advantage: a. and does not rely on PC, realizes 32 bit single-chip systems and directly accesses Internet, and whole system is completely self-sufficient; B. use peripheral components few, system cost is low; C. because Pollux company provides free the software module of processing for Internet, greatly shortened the construction cycle, cost of development reduces greatly; D. be the real time operating system of formula of taking the lead.Shortcoming: peripheral resource is few.The present invention therefore.
Summary of the invention
The object of the invention is to provide a kind of embedded type networking polynary input-output system, has solved the technical barrier that utilizes chip microcontroller embedded Internet scheme in prior art.Native system does not rely on PC, low, the easy popularization of expense, uses flexibly, is easy to safeguard, peripheral resource is abundant, and adopt the networking RIOS of the formula real time operating system of taking the lead, it is by the means of 32 chip microcontroller Internet network communication, with long-range connection of computer realization on the network of strange land; By RS-232, RS485 interface, be connected with on-the-spot I/O module, come monitoring, monitoring, diagnosis and the maintenance of finishing equipment, and computer network technology, finally realize maintenance and the fault of equipment and get rid of.
In order to solve these problems of the prior art, technical scheme provided by the invention is:
The polynary input-output system of embedded type networking, it is characterized in that described system comprise device for embedded control, with device for embedded control by the IP camera of network connecting communication, for carrying out the collection of on-site signal, the field apparatus of conversion; Described IP camera is used for carrying out video record collection, and by image/video communication to device for embedded control; Described device for embedded control is provided with operation embedded OS, receive the data of IP camera and field apparatus, be responsible for Internet Transmission, network monitoring, data storage and logical process, described device for embedded control is provided with mixed-media network modules mixed-media, RFID module and input/output module (I/O), described RFID module is used for connecting rfid interrogator and carries out on-the-spot data collection for radio frequency, and image data is transferred to device for embedded control; Described input/output module (I/O), is connected with device for embedded control by serial bus, for field apparatus is implemented to control, makes field apparatus complete collection, the conversion of on-site signal; Described mixed-media network modules mixed-media adopts by Ethernet, WiFi access network based on ethernet mode and/or by access way and the IP camera Communication Control transmitting image video information of, serial line interface.
Preferred technical scheme is: described device for embedded control comprises:
The first single-chip microcomputer (CPU1); Described the first single-chip microcomputer is connected with dynamic data storage device (SDRAM), non-volatile data memory (NVRAM), program storage (FLASH), clock (CLOCK) respectively, and connect each input/output module (I/O) by universal serial bus, by TTL232 interface or Physical layer (PHY), be connected into network;
Dynamic data storage device (SDRAM), for storing the control program of device for embedded control the first single-chip microcomputer (CPU1) operation;
Non-volatile data memory (NVRAM), for being stored as the information parameter of device for embedded control setting, the field data that input/output module (I/O) gathers; And read by the first single-chip microcomputer (CPU1);
Program storage (FLASH), be used for storing embedded operating system kernel program, TCP (UDP)/IP network agreement, serial line interface communications protocol, and control modules and input/output module (I/O) communication by the first single-chip microcomputer (CPU1);
Clock (CLOCK), for device for embedded control provides temporal information;
Physical layer (PHY), is connected the ground floor part being used in communications protocol with the first single-chip microcomputer (CPU1);
Universal serial bus, connects the first single-chip microcomputer and each input/output module (I/O), carries out data communication operation.
Preferred technical scheme is: described device for embedded control adopts the embedded OS of ARM framework, the quantity of the input/output module of dynamically being controlled, being managed by device for embedded control (I/O) is 1~256, and described input/output module (I/O) comprising: switching input module (DI), switching value output module (DO), analog input module (AI) and width modulation output module (PWM).
Preferred technical scheme is: described switching input module (DI) is comprised of second singlechip (CPU2), multi-way switch converter (MUX) and the first photoisolator (OPT1), second singlechip (CPU2) is selected input measured signal by dc-dc converter (MUX), signal is through the first photoisolator (OPT1), deliver to second singlechip (CPU2), by RS-232 interface and the first single-chip microcomputer (CPU1) communication, between the first modulus/converter (A/D1) and second singlechip (CPU2), be provided with the first photoisolator (OPT1) again.
Preferred technical scheme is: described switching value output module (DO) is comprised of second singlechip (CPU2) and the second photoisolator (OPT2), second singlechip (CPU2) input signal is from the first single-chip microcomputer (CPU1), and its output signal is delivered to peripheral control unit through the second photoisolator (OPT2).
Preferred technical scheme is: each in described switching input module (DI), switching value output module (DO) comprises a configuration information storer (EEPROM), is all connected with second singlechip (CPU2).
Preferred technical scheme is: described control program comprises ARM system control module, serial communication module, data transmitting module, data diagnosis alarm module, device configuration module, data acquisition/memory module, and idiographic flow is as follows:
Described ARM system control module flow process: first start embedded OS, receive user's input, it is readable that the first single-chip microcomputer (CPU1) waits for that memory block sign is made as, and can read sign and be made as readablely, when not meeting, condition returns to judgement; When condition meets, judging whether it is real time data, is that real time data outputs to data transmitting module real time data in dynamic data storage device SDRAM;
It is two parts that described serial communication module flow process is divided ARM module communication flow process and input/output module (I/O) interrupt response flow process, wherein ARM module communication flow process is: in porch, carry out and be stored in the serial line interface driving function in dynamic data storage device (SDRAM), send address to input/output module (I/O), as slave is replied, the first single-chip microcomputer (CPU1) sends command word, otherwise retry; After sending command word, judge that slave data upload is no, upload and send out upload command word, otherwise give biography command word; After sending out upload command word, receive from machine data, while receiving successfully, return, when unsuccessful, again receive from machine data; Giving and passing order is to send host data or command word to slave, while sending successfully, returns, and when unsuccessful, resends from machine data; Described input/output module (I/O) interrupt response flow process: interrupting entrance input/output module (I/O) reception data, then judgement is address command or data command, that address command judges whether it is the machine address again, while being the machine address, input/output module (I/O) is sent out answer signal to the first single-chip microcomputer (CPU1), and restoring scene, interruption are returned; While not being the machine address, directly restoring scene, interruption are returned; Data command word in this way, then judge whether it is upload command word, upload command word in this way, sends data that slave gathers to the first single-chip microcomputer (CPU1) by input/output module (I/O), restoring scene, interrupts returning; If not being upload command word, by input/output module (I/O), carry out control command, restoring scene, interruption are returned;
Described data transmitting module flow process is: after starting, the first single-chip microcomputer (CPU1) waits for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading, packing data when condition meets, call ARM module, set up long-range connection, readable mark is made as and has been read, send again packing data, carrying out delay operation, judge whether to exit this program, is to finish; If do not exited this program, can again wait for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading; When condition does not meet, return and again wait for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading;
Described data diagnosis alarm module flow process: after starting, the first single-chip microcomputer (CPU1) is waited for alert notice, Deng then not returning to wait alert notice, Deng then, the readable mark of program is set to be read, judge that whether dynamic data storage device (SDRAM) alert data district is readable, condition does not meet, continue judgement, the satisfied alert data that copies of condition is to dynamic data storage device (SDRAM) data field, then the readable mark of this program is made as and has been read, exit this program module, otherwise return, wait for alert notice;
Described device configuration module flow process is: system is read parameter and created configuration info district from non-volatile data memory (NVRAM) after starting, enter configuration status, then by user's operation, selected, as what select, it is systematic parameter configuration, judge whether storage information is to deposit non-volatile data memory (NVRAM) in, as deposit non-volatile data memory (NVRAM) in, revise configuration change flag, revise configuration info district, configuration info deposits non-volatile data memory (NVRAM), termination routine in; If not being deposits in the situation of non-volatile data memory (NVRAM), termination routine; As what select, it is refreshing a device list in ARM module the first single-chip microcomputer (CPU1), first by serial communication module and slave communication, carry out again equipment I/O parameter configuration, when configuration completes, judge whether to store information in (NVRAM), in this way, revise configuration change flag, revise configuration info district, configuration info deposits non-volatile data memory (NVRAM) in, not to deposit in the situation of non-volatile data memory (NVRAM), termination routine;
Described data acquisition/memory module flow process is: after starting, by the first single-chip microcomputer (CPU1), dynamic data storage device (SDRAM) memory block read-write sign is made as and is write, judge again whether ARM module, data transmission module run through, as program module does not run through, rejudge it and can read sign; As run through, filtering data is stored in dynamic data storage device (SDRAM), the data of dynamic data storage device (SDRAM) are arranged from high to low according to timestamp, dynamic data storage device (SDRAM) memory block read-write sign is made as readable, allow ARM module, data transmission module program from memory block read data, arrange again ARM module, data transmission module program can read be masked as readable, make ARM module, data transmission module program can read dynamic data storage device (SDRAM) data, finally finish.
Technical solution of the present invention provides a kind of intellectuality, embedded, networking Long-distance Control and RFID acquisition system, it is one and has Ethernet, WiFi, RS232, RS485, USB, the distributed switch amount of VGA interface and touch screen interface and analog acquisition and switching value output and PWM output control system, be mainly used in building intelligent field, by ARM system module, I/O module and control program module form, ARM system module is responsible for Internet Transmission, network monitoring, data storage and logical process, and can pass through Ethernet interface, WiFi, RS232 or RS485 interface gather field data, process, control I/O module and RFID module, I/O module completes the collection of on-site signal and on-the-spot equipment is controlled, in the program storage of control program module stores in ARM system module.User can form a changeable remote monitoring/supervisory system from some to hundreds of point according to demand.This system is distributed I/O system, relies on client software just can realize monitoring, control function, and its real-time performance, network performance, unfailing performance are that other system hardly matches.
Device for embedded control operation embedded OS of the present invention, by serial bus management I/O module, can complete distributed I/O by Intranet and Internet network controls and RFID data acquisition, also, by transceiving data between internet transmission of virtual laboratory and Ethernet, realize the Internet Transmission of data and by Internet network, field apparatus carried out to remote monitoring, data acquisition; Control program is stored in the program storage in ARM module; I/O module is by universal serial bus and the communication of ARM system module, and each input/output function module completes collection, the conversion of on-site signal, and field control object is implemented to control.
Described Internet Transmission adopts by Ethernet, WiFi access network based on ethernet mode and/or by the access way of, serial line interface.
Described device for embedded control comprises:
The first single-chip microcomputer (CPU1);
Dynamic data storage device (SDRAM), the control program of the first single-chip microcomputer (CPU1) operation in storage ARM system module;
Non-volatile data memory (NVRAM), mainly deposits the information parameter of setting into device for embedded control, also stores the field data that described I/O module gathers; By the first single-chip microcomputer (CPU1), read;
Program storage (FLASH), be used for deposit operation system kernel program, TCP (UDP)/IP network agreement, each function control program module and serial line interface communications protocol, and by communication module program in the first single-chip microcomputer (CPU1) operation control program module, through serial communication interface, be connected with I/O module;
Clock (CLOCK), for device for embedded control provides temporal information;
Physical layer (PHY), is connected the ground floor part being used in a plurality of communications protocol with the first single-chip microcomputer (CPU1);
Universal serial bus, connects the first single-chip microcomputer (CPU1) and each I/O module, carries out data communication operation.
The described described I/O module of dynamically being controlled, being managed by device for embedded control can be 1~256, can connect rfid interrogator and carry out data collection for radio frequency and connect IP camera realizing video record and transmission, mainly comprise: switching input module (DI), switching value output module (DO), analog input module (AI) and width modulation output module (PWM), RFID data processing and transport module (RFID), the storage of monitor video data and transport module (IPCamera) simultaneously.
Switching input module (DI) is comprised of second singlechip (CPU2), multi-way switch converter (MUX) and the first photoisolator (OPT1), second singlechip (CPU2) is selected input measured signal by dc-dc converter (MUX), signal is through the first photoisolator (OPT1), deliver to second singlechip (CPU2), by serial line interface and the communication of ARM system module, between the first modulus/converter (A/D1) and second singlechip (CPU2), be provided with the first photoisolator (OPT1) again.In addition, in technical solution of the present invention, RFID module can RFID middleware software components and RS485 interface in device for embedded control realize, controlling the storage of monitor video data and the transport module of IP camera can realize by the video monitoring bitcom assembly in device for embedded control, and WiFi interface or internet interface coordinate the data acquisition control that realizes IP camera.
The present invention relates to automation field, specifically the polynary input-output system of a kind of embedded type networking.This system is by 32 chip microcontroller Intranet and Internet network communication, with long-range connection of computer realization on the network of strange land; By serial line interface and WiFi interface, be connected with on-the-spot I/O module, come monitoring, monitoring, diagnosis and the maintenance of finishing equipment, and computer network technology, finally realize on-site data gathering, equipment control, breakdown maintenance and eliminating.
In order to overcome the high cost, 8 of PC or 16 machine peripheral resources are few, difficulty on operation real-time kernel, the object of this invention is to provide a kind ofly do not rely on PC, low, the easy popularization of expense, use flexibly, be easy to safeguard, peripheral resource is abundant, adopts the networking RIOS of the formula real time operating system of taking the lead.
With respect to scheme of the prior art, advantage of the present invention is:
1. be widely used.Can be applied to the automation control area of the industries such as building intelligent, machine-building, the energy, fire-fighting, bank monitoring.
2. there is decentralised control feature.The present invention has discarded I/O unit and the control station of DCS, the input/output function of the control function of DCS control station and DCS is distributed to the field apparatus on universal serial bus or TCPIP network, realize decentralised control thoroughly, embodied the high dispersion of system architecture.
3. there is robotization integration capability.The closed system that the present invention has broken through in DCS system by dedicated network adopts man-to-man equipment to connect suede, by control loop, connect respectively to realize caused drawback, having become based on coming into the open based on sealing, special-purpose solution, standardized solution.Adopt native system, control module, the input/output module in pulpit in former DCS system can be placed in to field apparatus, be convenient to the automation equipment of standard to be linked to be system by universal serial bus, realized the various functions of comprehensive automation.
4. the present invention has the dirigibility of use.Intermodule adopts serial line interface, and user is easy to the needs according to oneself, builds the control system of oneself; Meanwhile, I/O module adopts the input/output signal of standard, is also easy to be connected with on-the-spot sensor, to on-the-spot monitoring of tools.
5. intellectuality and the function autonomy with field apparatus.The present invention by sensing measurement, compensation calculate, quantities is processed is distributed in field apparatus and completes with the function such as control, only depends on field apparatus just can complete the basic function of automatic control, and the running status of diagnostic device at any time.
6. there is good mobility.Due to Adoption Network technology, user can pass through ethernet network in any place, browses the state of this equipment, and sends control command.
7. the present invention adopts the formula real time operating system of taking the lead, and does not rely on PC.In addition, peripheral resource is abundant, as: program storage 128M, can extend to 256M, data-carrier store 128M, can expand to 2048M, 26 switching value input ports, 24 switching value output ports, 3 USB2.0Host interfaces, 1 USB2.0Slave interface, 1 RG45 interface, 1 Wi-Fi interface, 2 TTL232 interfaces, 1 RS485 interface, PCF8563 clock a slice.Because the present invention has above feature, make it from being installed to normal operation and maintenance thereof, maintenance, all embody its superiority.Such as:
(1) save hardware quantity and investment.Because being dispersed in the smart machine (I/O module) of now raising, the present invention can directly carry out multiple sensing control warning and computing function, thereby can reduce the quantity of transmitter, no longer need independent regulator, computing unit etc., also the functional units such as signal condition, conversion, isolation and complicated connection the thereof that no longer need DCS system, can also be with industry control PC as active station, thereby saved a large number of hardware investment, and can reduce the floor area of pulpit.
(2) save erected cost.Owing to adopting RS485 universal serial bus and Ethernet, the greatly simplification that makes to become equipment and being connected of this system, has reduced the workload of design, installation, has saved investment.
(3) save maintenance costs.Because the present invention has the ability that self diagnosis and simple fault are processed, and by network, relevant diagnosis maintenance information being sent to remote control terminal, user can inquire about the operation of all devices, diagnosis maintenance information, so that early stage analyzing failure cause is also got rid of fast, shortened and safeguarded shut down time; Because system architecture is simplified, reduce line and maintenance workload simultaneously.
(4) accuracy and the reliability of system have been improved.Because the present invention has intellectuality, digitizing function, it has fundamentally improved the degree of accuracy of measuring with control, has reduced transmission error; Due to the designs simplification (universal serial bus) of system and the use of radio network technique, equipment room line reduces simultaneously, and field instrument built-in function is strengthened, and has reduced the round-trip transmission of signal, has improved the functional reliability of system.
(5) be easy to management, monitoring.Because the present invention adopts Ethernet, field data can clog-freely directly be sent to administration and supervision authorities, is convenient to the business administration person of entering retrieve data, watch-dog operation conditions.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described:
Fig. 1 is the system architecture diagram of the polynary input-output system of embedded type networking;
Fig. 2 is the structural representation of device for embedded control;
Fig. 3 is the control program structured flowchart of device for embedded control;
Fig. 4 is the program flow diagram of device for embedded control communication module;
Fig. 5 is the program flow diagram of ARM module communication in device for embedded control RS-232 module.
Embodiment
Below in conjunction with specific embodiment, such scheme is described further.Should be understood that these embodiment are not limited to limit the scope of the invention for the present invention is described.The implementation condition adopting in embodiment can be done further adjustment according to the condition of concrete producer, and not marked implementation condition is generally the condition in normal experiment.
Embodiment
As shown in Figure 1, the polynary input-output system of this embedded type networking, by device for embedded control, with device for embedded control by the IP camera of network connecting communication, for carrying out the collection of on-site signal, the field apparatus of conversion forms; Described IP camera is used for carrying out video record collection, and by image/video communication to device for embedded control; Described device for embedded control is provided with operation embedded OS, receive the data of IP camera and field apparatus, be responsible for Internet Transmission, network monitoring, data storage and logical process, described device for embedded control is provided with mixed-media network modules mixed-media, RFID module and input/output module (I/O), described RFID module is used for connecting rfid interrogator and carries out on-the-spot data collection for radio frequency, and image data is transferred to device for embedded control; Described input/output module (I/O), is connected with device for embedded control by serial bus, for field apparatus is implemented to control, makes field apparatus complete collection, the conversion of on-site signal; Described mixed-media network modules mixed-media adopts by Ethernet, WiFi access network based on ethernet mode and/or by access way and the IP camera Communication Control transmitting image video information of, serial line interface.
Wherein device for embedded control moves Internet network protocol stack, by serial bus management I/O module, completing distributed I/O controls, also by transceiving data between internet transmission of virtual laboratory and Ethernet, realize the Internet Transmission of data and by Internet network, field apparatus carried out to remote monitoring, data acquisition; Control program is stored in the program storage in device for embedded control; I/O module is by universal serial bus and device for embedded control communication, and each input/output function module completes collection, the conversion of on-site signal, and field control object is implemented to control.
As shown in Figure 2, the structure of device for embedded control comprises:
The first single-chip microcomputer;
Dynamic data storage device, the control program of the first single-chip microcomputer operation in storage device for embedded control, also stores the field data of described I/O module collection, on-the-spot status information and temporal information;
Non-volatile data memory, mainly deposits the past mask of communication baud rate, IP address, son, gateway, the I/O model block configuration information parameter into device for embedded control, set; When powering on, system read by the first single-chip microcomputer;
Program storage (FLASH), be used for scheduler program, procotol TCP (UDP)/IP, each function control program module and the serial line interface communications protocol that deposit operation system kernel provides, and by serial communication module program in the first single-chip microcomputer operation control program module, through serial line interface, be connected with I/O module; Clock, for device for embedded control provides temporal information, after device for embedded control power-off, independently-powered by battery;
Physical layer, is connected with the first single-chip microcomputer, the ground floor part being used in TCP/IP procotol;
Universal serial bus, connect the first single-chip microcomputer and each I/O module, the initiation parameter of I/O module and the field data of collection are sent to dynamic data storage device and the non-volatile data memory of ARM module by this bus, by this interface, the identification of the complete salty I/O module of main main website, data communication operation.
Device for embedded control adopts ARM framework, the physical interface that provides network to connect can be following a kind of mode or its array mode: the one, and by surpassing five class unshielded twisted pairs through RJ45 interface access network based on ethernet mode, by 10M/100M networked physics layer, drive the Ethernet interface forming to be connected on Ethernet (Internet); The 2nd, pass through 802.11(a/b/g/n) WiFi interface access network based on ethernet; The 3rd, by RS485 interface, be connected to 485TCP switch access network based on ethernet.
Described device for embedded control both can be used as the access device at Ethernet scene, also can be used as the main equipment of serial communication, the first single-chip microcomputer is encoded to the data that send by its inner integrated media access controller (MAC), can automatically utilize media access controller to carry out frame check to receiving data in receiving data procedures simultaneously.
The described I/O module of dynamically being controlled, being managed by device for embedded control maximum can be 1~256, mainly comprises: switching input module, switching value output module, analog input, digital quantity input, PWM output etc.;
Switching input module is mainly comprised of second singlechip and the first photoisolator, extraneous various switching signals are photoisolator input signal, the first photoisolator output signal is delivered to second singlechip, second singlechip, through RS-232 interface and the first single chip communication, sends input data to ARM module; Switching value output module is mainly comprised of Darlington driver, second singlechip and the second photoisolator, second singlechip is through RS-232 interface and ARM module communication, the input signal that communication information is, output terminal is through the second photoisolator to Darlington driver, and Darlington driver output signal Fen Ba road is on-the-spot to controlling through relay.
I/O module comprises that each module in switching value output module, switching input module comprises a configuration information storer, be connected with the first single-chip microcomputer, the RS-232 interface mode that is connected employing standard with device for embedded control, according to selecting, the driving chip of RS-232 interface is different, can connect at most 256 I/O modules, ARM module can be identified the type of I/O module automatically, I/O inside modules can be carried out linearization and the range conversion of data according to the configuration information of ARM module, storage configuration info, completes the collection of on-site signal and conversion.
Wherein the software function module of device for embedded control (control program) comprising:
1, device configuration module
Device configuration module provides the customization function of system of the present invention, the field apparatus I/O variable that this module connects in conjunction with reality and the specific requirement of user's remote service, browser by standard arranges the configuration parameters of system of the present invention, and other all software modules that simultaneously user's configuration information offered to internal system are used; The function of its specific implementation comprises:
The identification that time delay setting, RFID module are controlled in the IP address configuration of system, the mapping settings function of I/O module, output configures with configuration feature, equipment alarm informing function, data transferring parameter configuration, can configure and need the address of the mode of the I/O of teletransmission parameter, transmission (regularly, by fixed qty transmission etc.), remote server etc.; The configuration info of storage configuration info and upload/download I/O module; I/O module universal serial bus parameter configuration, data collection rate, messaging parameter etc.
2, data acquisition/memory module
Data acquisition/memory module provides on-site data gathering and history data store function, this module is by RS-232 communication module or RS-485 communication module, read the field data information being gathered by I/O module, for other modules provide on-the-spot real time data, this module can provide short-term history data storage function simultaneously, for timed sending and the historical playback of data provides data message; Its concrete function is: field data timing acquiring, refreshes real time data district; Collection site data, store historical data.
Idiographic flow is: after starting, by the first single-chip microcomputer, dynamic data storage device memory block read-write sign is made as and is write, then judge whether ARM module, data transmission module run through, as program module does not run through, rejudge its readable duty sign; As run through, filtering data is stored in dynamic data storage device, the data of dynamic data storage device are arranged from high to low according to timestamp, queue head is real time data, then be all historical data, dynamic data storage device memory block read-write sign is made as readable, allow ARM module, data transmission module program from memory block read data, arrange again ARM module, data transmission module program can read be masked as readable, make ARM module, data transmission module program can read dynamic data storage device data, finally finish.
3, data diagnosis alarm module
The effect of data diagnosis alarm module is the alarm configuration information providing according to user, detects the abnormal alarm of I/O data, and the historical storage of warning message is provided simultaneously, notifies the managerial personnel of appointment by the mode of Email; Its concrete function is: field data alert if detects; I/O module detection of power loss is reported to the police; The historical storage of warning message.
Idiographic flow is: after starting, the first single-chip microcomputer is waited for alert notice, Deng then not returning to wait alert notice, wait then, the readable mark of program is set to be read, judge that whether dynamic data storage device alert data district is readable, condition does not meet (not readable), continues judgement, and condition meets (readable) and copies alert data to dynamic data storage device data field, then the readable mark of this program is made as and has been read, exit this program module, otherwise return, wait for alert notice.
4, data transmitting module
Data transmitting module, according to the information of user configuration, utilizes Ethernet that on-the-spot data are sent to remote service center, and its function is: the timing of data or the long-range sending function that need be subordinate to according to user; Data compression function.
Idiographic flow is: after starting, the first single-chip microcomputer waits for that dynamic data storage device data storage area is readable, the readable mark of program is for reading, packing data when condition meets, call ARM module, set up long-range connection, readable mark is made as and has been read, send again packing data, carrying out delay operation, judge whether to exit this program, is to finish; If do not exited this program, can again wait for that dynamic data storage device data storage area is readable, the readable mark of program is for reading; When condition does not meet, return and again wait for that dynamic data storage device data storage area is readable, the readable mark of program is for reading.
5, console communication module
Console communication module provides embedded data issuing function, make user use the TCP socket (socket) of standard to connect can to access on-the-spot in real time/warning message of historical data and query facility, by TCP, serve corresponding equipment configuration feature be provided simultaneously.Specifically: cipher protection function is provided, guarantees the security of equipment; The real-time Presentation Function (preferably completing graphic interface) of field apparatus is provided; Historical data, the warning message query function of field apparatus are provided; The configuration function of field apparatus is provided.
Idiographic flow is: first ARM starts after wince system and starts and enter TCP service, receives user's input, and it is readable that the first single-chip microcomputer waits for that memory block sign is made as, and can read and be masked as readablely, returns to judgement when condition does not meet; When meeting, condition judges whether again it is real time data, that real time data outputs to real time data in dynamic data storage device on TCP socket, otherwise dynamic data storage device historical data is outputed to client, then can read sign, be made as and read, finally judge whether to exit TCP service, be to finish, otherwise return, receive user's input.
6, serial communication module
Serial communication module provides the data access passage of system of the present invention and its I/O intermodule, completes management and the reading and writing data function of I/O module.
Specifically: the management information such as type, address that I/O module is provided; The read-write capability of field equipment data is provided; The configuration info read-write capability of I/O module is provided.
It is two parts that idiographic flow divides ARM module communication flow process and I/O module interrupt response flow process, wherein ARM module communication flow process is: in porch, carry out and be stored in the TTL-232 interface driver function in dynamic data storage device, send address to I/O module, as slave is replied, the first single-chip microcomputer sends command word, otherwise retry (retry is greater than three times, the processing that goes offline, otherwise again send address); After sending command word, judge that slave data upload is no, upload and send out upload command word, otherwise give biography command word; After sending out upload command word, receive from machine data, while receiving successfully, return, unsuccessful right, again receive from machine data; Giving and passing order is to send host data or command word to slave, while sending successfully, returns, and when unsuccessful, resends from machine data.Described I/O module interrupt response flow process: interrupting inlet module reception data, then judgement is address command or data command, that address command judges whether it is the machine address again, while being the machine address, I/O module is sent out answer signal to the first single-chip microcomputer, communication position SIO2 puts O, and restoring scene, interruption are returned; While not being the machine address, directly restoring scene, interruption are returned; Data command word in this way, then judge whether it is upload command word, upload command word in this way, sends data that slave gathers to the first single-chip microcomputer by I/O module, makes SIO2 put 1, restoring scene, interrupts returning; If not being upload command word, by I/O module, carry out control command, SIO2 puts 1, and restoring scene, interruption are returned.
Above-mentioned example is only explanation technical conceive of the present invention and feature, and its object is to allow person skilled in the art can understand content of the present invention and implement according to this, can not limit the scope of the invention with this.All equivalent transformations that Spirit Essence is done according to the present invention or modification, within all should being encompassed in protection scope of the present invention.

Claims (7)

1. the polynary input-output system of embedded type networking, it is characterized in that described system comprise device for embedded control, with device for embedded control by the IP camera of network connecting communication, for carrying out the collection of on-site signal, the field apparatus of conversion; Described IP camera is used for carrying out video record collection, and by image/video communication to device for embedded control; Described device for embedded control is provided with operation embedded OS, receive the data of IP camera and field apparatus, be responsible for Internet Transmission, network monitoring, data storage and logical process, described device for embedded control is provided with mixed-media network modules mixed-media, RFID module and input/output module (I/O), described RFID module is used for connecting rfid interrogator and carries out on-the-spot data collection for radio frequency, and image data is transferred to device for embedded control; Described input/output module (I/O), is connected with device for embedded control by serial bus, for field apparatus is implemented to control, makes field apparatus complete collection, the conversion of on-site signal; Described mixed-media network modules mixed-media adopts by Ethernet, WiFi access network based on ethernet mode and/or by access way and the IP camera Communication Control transmitting image video information of, serial line interface.
2. the polynary input-output system of embedded type networking according to claim 1, is characterized in that described device for embedded control comprises:
The first single-chip microcomputer (CPU1); Described the first single-chip microcomputer is connected with dynamic data storage device (SDRAM), non-volatile data memory (NVRAM), program storage (FLASH), clock (CLOCK) respectively, and connect each input/output module (I/O) by universal serial bus, by TTL232 interface or Physical layer (PHY), be connected into network;
Dynamic data storage device (SDRAM), for storing the control program of device for embedded control the first single-chip microcomputer (CPU1) operation;
Non-volatile data memory (NVRAM), for being stored as the information parameter of device for embedded control setting, the field data that input/output module (I/O) gathers; And read by the first single-chip microcomputer (CPU1);
Program storage (FLASH), be used for storing embedded operating system kernel program, TCP (UDP)/IP network agreement, serial line interface communications protocol, and control modules and input/output module (I/O) communication by the first single-chip microcomputer (CPU1);
Clock (CLOCK), for device for embedded control provides temporal information;
Physical layer (PHY), is connected the ground floor part being used in communications protocol with the first single-chip microcomputer (CPU1);
Universal serial bus, connects device for embedded control and each input/output module (I/O), carries out data communication operation.
3. the polynary input-output system of embedded type networking according to claim 2, it is characterized in that described device for embedded control adopts the embedded OS of ARM framework, the quantity of the input/output module of dynamically being controlled, being managed by device for embedded control (I/O) is 1~256, and described input/output module (I/O) comprising: switching input module (DI), switching value output module (DO), analog input module (AI) and width modulation output module (PWM).
4. the polynary input-output system of embedded type networking according to claim 3, it is characterized in that described switching input module (DI) is by second singlechip (CPU2), multi-way switch converter (MUX) and the first photoisolator (OPT1) form, second singlechip (CPU2) is selected input measured signal by dc-dc converter (MUX), signal is through the first photoisolator (OPT1), deliver to second singlechip (CPU2), again by RS-232 interface and the first single-chip microcomputer (CPU1) communication, between the first modulus/converter (A/D1) and second singlechip (CPU2), be provided with the first photoisolator (OPT1).
5. the polynary input-output system of embedded type networking according to claim 3, it is characterized in that described switching value output module (DO) is comprised of second singlechip (CPU2) and the second photoisolator (OPT2), second singlechip (CPU2) input signal is from the first single-chip microcomputer (CPU1), and its output signal is delivered to peripheral control unit through the second photoisolator (OPT2).
6. the polynary input-output system of embedded type networking according to claim 3, it is characterized in that each in described switching input module (DI), switching value output module (DO) comprises a configuration information storer (EEPROM), is all connected with second singlechip (CPU2).
7. the polynary input-output system of embedded type networking according to claim 2, it is characterized in that described control program comprises ARM system control module, serial communication module, data transmitting module, data diagnosis alarm module, device configuration module, data acquisition/memory module, idiographic flow is as follows:
Described ARM system control module flow process: first start embedded OS, receive user's input, it is readable that the first single-chip microcomputer (CPU1) waits for that memory block sign is made as, and can read sign and be made as readablely, when not meeting, condition returns to judgement; When condition meets, judging whether it is real time data, is that real time data outputs to data transmitting module real time data in dynamic data storage device SDRAM;
It is two parts that described serial communication module flow process is divided ARM module communication flow process and input/output module (I/O) interrupt response flow process, wherein ARM module communication flow process is: in porch, carry out and be stored in the serial line interface driving function in dynamic data storage device (SDRAM), send address to input/output module (I/O), as slave is replied, the first single-chip microcomputer (CPU1) sends command word, otherwise retry; After sending command word, judge that slave data upload is no, upload and send out upload command word, otherwise give biography command word; After sending out upload command word, receive from machine data, while receiving successfully, return, when unsuccessful, again receive from machine data; Giving and passing order is to send host data or command word to slave, while sending successfully, returns, and when unsuccessful, resends from machine data; Described input/output module (I/O) interrupt response flow process: interrupting entrance input/output module (I/O) reception data, then judgement is address command or data command, that address command judges whether it is the machine address again, while being the machine address, input/output module (I/O) is sent out answer signal to the first single-chip microcomputer (CPU1), and restoring scene, interruption are returned; While not being the machine address, directly restoring scene, interruption are returned; Data command word in this way, then judge whether it is upload command word, upload command word in this way, sends data that slave gathers to the first single-chip microcomputer (CPU1) by input/output module (I/O), restoring scene, interrupts returning; If not being upload command word, by input/output module (I/O), carry out control command, restoring scene, interruption are returned;
Described data transmitting module flow process is: after starting, the first single-chip microcomputer (CPU1) waits for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading, packing data when condition meets, call ARM module, set up long-range connection, readable mark is made as and has been read, send again packing data, carrying out delay operation, judge whether to exit this program, is to finish; If do not exited this program, can again wait for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading; When condition does not meet, return and again wait for that dynamic data storage device (SDRAM) data storage area is readable, the readable mark of program is for reading;
Described data diagnosis alarm module flow process: after starting, the first single-chip microcomputer (CPU1) is waited for alert notice, Deng then not returning to wait alert notice, Deng then, the readable mark of program is set to be read, judge that whether dynamic data storage device (SDRAM) alert data district is readable, condition does not meet, continue judgement, the satisfied alert data that copies of condition is to dynamic data storage device (SDRAM) data field, then the readable mark of this program is made as and has been read, exit this program module, otherwise return, wait for alert notice;
Described device configuration module flow process is: system is read parameter and created configuration info district from non-volatile data memory (NVRAM) after starting, enter configuration status, then by user's operation, selected, as what select, it is systematic parameter configuration, judge whether storage information is to deposit non-volatile data memory (NVRAM) in, as deposit non-volatile data memory (NVRAM) in, revise configuration change flag, revise configuration info district, configuration info deposits non-volatile data memory (NVRAM), termination routine in; If not being deposits in the situation of non-volatile data memory (NVRAM), termination routine; As what select, it is refreshing a device list in the first single-chip microcomputer (CPU1), first by serial communication module and slave communication, carry out again equipment I/O parameter configuration, when configuration completes, judge whether to store information in (NVRAM), in this way, revise configuration change flag, revise configuration info district, configuration info deposits non-volatile data memory (NVRAM) in, not to deposit in the situation of non-volatile data memory (NVRAM), termination routine;
Described data acquisition/memory module flow process is: after starting, by the first single-chip microcomputer (CPU1), dynamic data storage device (SDRAM) memory block read-write sign is made as and is write, judge again whether data transmission module runs through, as program module does not run through, rejudge it and can read sign; As run through, filtering data is stored in dynamic data storage device (SDRAM), the data of dynamic data storage device (SDRAM) are arranged from high to low according to timestamp, dynamic data storage device (SDRAM) memory block read-write sign is made as readable, allow data transmission module program from memory block read data, arrange again ARM module, data transmission module program can read be masked as readable, make data transmission module program can read dynamic data storage device (SDRAM) data, finally finish.
CN201310654378.9A 2013-12-06 2013-12-06 Embedded networked multivariate input and output system Pending CN103676866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310654378.9A CN103676866A (en) 2013-12-06 2013-12-06 Embedded networked multivariate input and output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310654378.9A CN103676866A (en) 2013-12-06 2013-12-06 Embedded networked multivariate input and output system

Publications (1)

Publication Number Publication Date
CN103676866A true CN103676866A (en) 2014-03-26

Family

ID=50314749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310654378.9A Pending CN103676866A (en) 2013-12-06 2013-12-06 Embedded networked multivariate input and output system

Country Status (1)

Country Link
CN (1) CN103676866A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680752A (en) * 2014-08-25 2015-06-03 北京天高智机技术开发公司 Modularized short message safety protection warning device
CN104699650A (en) * 2015-03-18 2015-06-10 贵州遵义鑫阳电子科技有限公司 Method of embedded system for providing IP access through USB interface
CN104915308A (en) * 2015-05-15 2015-09-16 深圳市双翼科技有限公司 Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN106526641A (en) * 2015-12-07 2017-03-22 北京航空航天大学 Beidou positioning and communication system applied to rotor helicopter
CN106527291A (en) * 2016-12-24 2017-03-22 大连日佳电子有限公司 Mini-type embedded terminal
CN106597948A (en) * 2016-12-24 2017-04-26 大连日佳电子有限公司 Micro-embedded terminal for Internet of Things
CN107885673A (en) * 2016-09-29 2018-04-06 华为技术有限公司 A kind of I/O request processing methods and equipment
CN108551424A (en) * 2018-06-26 2018-09-18 百斯特(广州)信息技术有限公司 A kind of equipment state gateway of internet of things based on NB-IOT technologies
CN109542059A (en) * 2018-11-19 2019-03-29 国核自仪系统工程有限公司 Historical data compression set and method
CN110059039A (en) * 2019-03-25 2019-07-26 北京龙鼎源科技股份有限公司 Input/output I/O polling method and I/O main website, system, storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604066A (en) * 2003-09-29 2005-04-06 中国科学院沈阳自动化研究所 Embedded and networked remote input and output system
CN102722153A (en) * 2012-06-14 2012-10-10 苏州伦科思电子科技有限公司 Embedded networked remote input and output system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604066A (en) * 2003-09-29 2005-04-06 中国科学院沈阳自动化研究所 Embedded and networked remote input and output system
CN102722153A (en) * 2012-06-14 2012-10-10 苏州伦科思电子科技有限公司 Embedded networked remote input and output system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680752A (en) * 2014-08-25 2015-06-03 北京天高智机技术开发公司 Modularized short message safety protection warning device
CN104699650A (en) * 2015-03-18 2015-06-10 贵州遵义鑫阳电子科技有限公司 Method of embedded system for providing IP access through USB interface
CN104915308A (en) * 2015-05-15 2015-09-16 深圳市双翼科技有限公司 Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN106526641A (en) * 2015-12-07 2017-03-22 北京航空航天大学 Beidou positioning and communication system applied to rotor helicopter
CN106526641B (en) * 2015-12-07 2019-05-17 北京航空航天大学 A kind of Beidou positioning and communication system applied to heligyro
CN107885673A (en) * 2016-09-29 2018-04-06 华为技术有限公司 A kind of I/O request processing methods and equipment
CN106527291A (en) * 2016-12-24 2017-03-22 大连日佳电子有限公司 Mini-type embedded terminal
CN106597948A (en) * 2016-12-24 2017-04-26 大连日佳电子有限公司 Micro-embedded terminal for Internet of Things
CN108551424A (en) * 2018-06-26 2018-09-18 百斯特(广州)信息技术有限公司 A kind of equipment state gateway of internet of things based on NB-IOT technologies
CN109542059A (en) * 2018-11-19 2019-03-29 国核自仪系统工程有限公司 Historical data compression set and method
CN109542059B (en) * 2018-11-19 2022-04-01 国核自仪系统工程有限公司 Historical data compression device and method
CN110059039A (en) * 2019-03-25 2019-07-26 北京龙鼎源科技股份有限公司 Input/output I/O polling method and I/O main website, system, storage medium

Similar Documents

Publication Publication Date Title
CN103676866A (en) Embedded networked multivariate input and output system
CN103123485B (en) Intelligent data acquisition and control terminal and Internet of Things system with same
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN105516352A (en) Intelligent lock monitoring system based on WeChat public platform and monitoring method of intelligent lock monitoring system
CN101931592B (en) WSN-based underground safety monitoring system gateway equipment
CN103200249A (en) Method for achieving Internet of things intelligent data gateway system
CN103384268A (en) Embedded type integratedly-manufactured data collecting terminal based on network
CN105234952A (en) Household monitoring robot control system based on STM32
CN1845519A (en) Integrative intelligent system of digitization community
CN105589438A (en) Intelligent mobile communication base station energy management system
CN103064388A (en) Intelligent guestroom control system and monitoring method thereof
CN202735737U (en) ARM processing system used for embedded networked remote input output system
CN203658776U (en) Intelligent data-collecting processor
CN110658752A (en) Data acquisition system applied to remote cloud monitoring
CN104952014A (en) IoT (Internet of Things) experimental building management system
CN202799180U (en) Wireless acquisition terminal for agricultural environmental information
CN205123760U (en) Communications management system based on intelligence passes accuse terminal
CN102314161A (en) Low-cost field bus remote input-output system
CN102722153A (en) Embedded networked remote input and output system
CN104111637A (en) Outdoor data acquisition and control equipment
CN107103657B (en) Sanitation vehicle working state collector and collecting method
CN203101975U (en) Station building environment monitoring system based on WEB and WSN (Wireless Sensor Network)
CN201549934U (en) Remote terminal device
CN211124041U (en) Oil gas field thing networking intelligent terminal equipment
Zhao et al. An embedded laboratory security monitoring system

Legal Events

Date Code Title Description
PB01 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: 20140326

RJ01 Rejection of invention patent application after publication