CN108833267A - Intelligent industrial gateway - Google Patents

Intelligent industrial gateway Download PDF

Info

Publication number
CN108833267A
CN108833267A CN201810376450.9A CN201810376450A CN108833267A CN 108833267 A CN108833267 A CN 108833267A CN 201810376450 A CN201810376450 A CN 201810376450A CN 108833267 A CN108833267 A CN 108833267A
Authority
CN
China
Prior art keywords
data
equipment
intelligent industrial
acquisition
control mcu
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
CN201810376450.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.)
Zhejiang Chint Electrics Co Ltd
Original Assignee
Zhejiang Chint Electrics 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 Zhejiang Chint Electrics Co Ltd filed Critical Zhejiang Chint Electrics Co Ltd
Priority to CN201810376450.9A priority Critical patent/CN108833267A/en
Publication of CN108833267A publication Critical patent/CN108833267A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Abstract

A kind of intelligent industrial gateway, including control MCU and the multiple RS485 interfaces, Ethernet interface, the blue tooth interface, storage unit that are connect with control MCU;The control MCU is connected by RS485 interface and intelligent industrial equipment, for acquiring the equipment data in intelligent industrial equipment operational process in real time, control MCU is connected by Ethernet interface with Cloud Server, for the equipment data of acquisition to be transferred to Cloud Server, mobile phone, which is connected by blue tooth interface with control MCU, to be controlled, control the equipment data that MCU was stored in and read acquisition to storage unit, and the control MCU is filtered the equipment data of acquisition, the real-time acquisition that data are equipped in intelligent industrial equipment operational process can be achieved, and convenient for the operating status of user's real time inspection intelligent industrial equipment.

Description

Intelligent industrial gateway
Technical field
The present invention relates to internet of things field, and in particular to a kind of intelligent industrial gateway.
Background technique
Existing intelligent industrial equipment is all provided with various communication interfaces, directly connect with cloud server terminal, to cloud service network End transmission equipment data, such as the equipment of various smart grids, including breaker, relay, ammeter, and other terminal controls Control equipment etc., however the interface of these equipment is different, as the networking that intelligent industrial is equipped in industrial production is widely applied, It is badly in need of a kind of intelligent industrial gateway, realizes intelligent industrial equipment single action to linkage, to realize quickly network connection and in fact When acquire.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of intelligent industrial gateway is provided, it can be achieved that intelligent work Industry equips in operational process the real-time acquisition for equipping data, and convenient for the operating status of user's real time inspection intelligent industrial equipment.
To achieve the above object, present invention employs following technical solutions:
A kind of intelligent industrial gateway connects including control MCU and with control MCU multiple RS485 interfaces, the Ethernet connecting Mouth, blue tooth interface, storage unit;The control MCU is connected by RS485 interface and intelligent industrial equipment, for acquiring in real time Intelligent industrial equips the equipment data in operational process, and control MCU is connected by Ethernet interface with Cloud Server, for that will adopt The equipment data of collection are transferred to Cloud Server, and mobile phone, which is connected by blue tooth interface with control MCU, to be controlled, and control MCU to depositing Storage unit deposit and the equipment data for reading acquisition, and the control MCU is filtered the equipment data of acquisition.
It preferably, further include for making to control finger of the MCU reset with the input key of input signal and for prompting state Show lamp;It further include the RS232 interface being connect with control MCU.
Preferably, the control MCU is embedded chip, model STM32F407;The Ethernet interface includes model For the Ethernet chip of W5500;The blue tooth interface includes the Bluetooth chip of model CC2541, and control MCU is connect by bluetooth Mouth and mobile communication.
Preferably, the RS485 interface includes SP485 chip, the end RO of SP485 chip and the embedded master of control MCU The end the RS485_TX connection of chip is controlled, the end DI is connect with the end RS485_RX of the embedded main control chip of control MCU, the end RE and DE End is connect with the end RS485_RE of the embedded main control chip of control MCU;The side a and b of SP485 chip connects with 485 respectively Two end angles connection of mouth, is also connected with resistance R21 between the side a and b of SP485 chip;The VCC of SP485 chip is terminated Power supply, and the end VCC of SP485 chip is connect through resistance R15 with a port of 485 interfaces, and through capacitor C1 and resistance R14 It is connect with another port of 485 interfaces, the tie point ground connection between capacitor C1 and resistance R14;The GND of SP485 chip is terminated Ground.
Preferably, the filtering processing include digital averaging filtering and/or recurrence average filtering and/or middle position filtering and Or merge repeated data.
Preferably, the control MCU effectively determines the equipment data of acquisition, if the equipment data of acquisition are not being set Determine then to give up in range.
Preferably, the control MCU carries out calculating analysis to the equipment data of acquisition, i.e., the data of acquisition is passed through conversion Formula carries out conversion and virtual value is calculated.
Preferably, the control MCU obtains data processing rule from Cloud Server, and by data processing rule to equipment number According to being handled.
Preferably, data processing module passes through device id that intelligent industrial to be processed is equipped first and obtains pair from server The data processing rule answered;If any data processing rule has not been obtained by device id, then pass through intelligence to be processed The device type of energy industrial equipment searches the data processing rule for obtaining the corresponding default of device type.
Preferably, the basic data for all intelligent industrial equipments not accessed that control MCU is obtained from Cloud Server, basis Data include the equipment ID and communications protocol for the intelligent industrial equipment not accessed;When new intelligent industrial equips access, control The basic data for the intelligent industrial equipment not accessed that MCU traversal Cloud Server obtains, passes sequentially through the intelligent industrial not accessed The communications protocol of equipment sends acquisition to the intelligent industrial equipment newly accessed, until receiving the intelligent industrial equipment newly accessed Successful connection response, the content of acquisition include do not access intelligent industrial equipment equipment ID, control MCU receive connection After successful respond, the request that connection is succeeded in registration is sent to Cloud Server, Cloud Server equips the intelligent industrial newly accessed State is adjusted to have accessed.
Intelligent industrial gateway of the invention connects including control MCU and with control MCU RS485 interface, the Ethernet connecting Mouth, blue tooth interface, storage unit, RS485 interface and intelligent industrial equipment connect, and Ethernet interface is connect with Cloud Server, blue Tooth interface is connected, it can be achieved that equipping the acquisition and storage of data, and user can pass through mobile phone real time inspection intelligence work with mobile phone The operating status of industry equipment guarantees that production is gone on smoothly, storage unit is to adopting convenient for finding the failure of intelligent industrial equipment in time The equipment data of collection are cached, and are avoided mass data while being poured in Cloud Server, ensure that the fluency of data storage, control MCU is filtered to reduce the data of storage the equipment data of acquisition.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the Internet of things system that intelligent industrial apparatus components formula of the present invention is set up;
Fig. 2 is the structural representation of the first embodiment for the Internet of things system that intelligent industrial apparatus components formula of the present invention is set up Figure;
Fig. 3 is the workflow schematic diagram for the Internet of things system that intelligent industrial apparatus components formula of the present invention is set up;
Fig. 4 is the structural representation of the second embodiment for the Internet of things system that intelligent industrial apparatus components formula of the present invention is set up Figure;
Fig. 5 is the structural schematic diagram of intelligent industrial gateway of the present invention;
Fig. 6 is the workflow schematic diagram of intelligent industrial gateway of the present invention;
Fig. 7 is the workflow schematic diagram that mobile phone of the present invention is configured intelligent industrial gateway;
Fig. 8 is the structural representation of the 3rd embodiment for the Internet of things system that intelligent industrial apparatus components formula of the invention is set up Figure;
Fig. 9 is the workflow schematic diagram of data processing module of the invention;
Figure 10 is the workflow schematic diagram of message distribution module of the present invention;
Figure 11 is the workflow schematic diagram of asynchronous message processing module of the present invention;
Figure 12 is the Optimizing Flow schematic diagram that module is established in data model processing of the present invention;
Figure 13 is the workflow of the fourth embodiment for the Internet of things system that intelligent industrial apparatus components formula of the present invention is set up Schematic diagram;
Figure 14 is the flow diagram that asynchronous message processing module of the present invention handles equipment data;
Figure 15 is the structural schematic diagram of one embodiment of intelligent industrial gateway of the present invention;
Figure 16 is the RS485 interface circuit figure of the embodiment of Figure 15;
Figure 17 is the ethernet interface circuit figure of the embodiment of Figure 15;
Figure 18 is the blue tooth interface circuit diagram of the embodiment of Figure 15;
Figure 19 is the RS232 interface circuit diagram of the embodiment of Figure 15.
Specific embodiment
Below in conjunction with the embodiment that attached drawing provides, the specific embodiment party of intelligent industrial gateway of the invention is further illustrated Formula.Intelligent industrial gateway of the invention is not limited to the following description.
As shown in Figure 1, the Internet of things system of intelligent industrial apparatus components formula component of the invention, including filled with intelligent industrial The data collector of standby connection, and the Cloud Server being connected with data collector;The data collector include control MCU, The first interface connected with intelligent industrial equipment, the second interface and storage unit that connect with Cloud Server, control MCU and first Interface, second interface are connected with storage unit.
When new intelligent industrial equips access, the data collector obtains all intelligence not accessed from Cloud Server The basic data of industrial equipment, basic data include the equipment ID and communications protocol for the intelligent industrial equipment not accessed;The number According to the basic data for the intelligent industrial equipment not accessed that collector traversal Cloud Server obtains, the intelligence not accessed is passed sequentially through The communications protocol of industrial equipment sends acquisition to the intelligent industrial equipment newly accessed, until receiving the intelligent industrial newly accessed The successful connection response of equipment, the acquisition include the equipment ID for the intelligent industrial equipment not accessed;The data acquisition Device receives the request succeeded in registration after the successful connection response that the intelligent industrial newly accessed is equipped to Cloud Server transmission connection, cloud The state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by server, realizes the connection registration of intelligent industrial equipment.If It traverses all intelligent industrial equipments not accessed obtained from Cloud Server and does not obtain successful connection response, then it represents that new access Intelligent industrial equipment can not establish connection, can not be communicated.It should be noted that the data collector is from Cloud Server The opportunity for obtaining the basic data of all intelligent industrial equipments not accessed can be and obtain before new intelligent industrial equipment access Caching is taken, is also possible to obtain update again in new intelligent industrial equipment access.
The intelligent industrial equipment newly accessed is received acquisition and is parsed based on its communications protocol, and what is parsed adopts Equipment ID in collection order is identical as the equipment ID of itself, then the intelligent industrial equipment newly accessed can the company of foundation with data collector It connects and communicates, send successful connection response to data collector, indicate successful connection.If the intelligent industrial equipment base newly accessed In the parsing of its communications protocol acquisition is unsuccessful or acquisition in equipment ID it is different from the equipment ID of itself, then without Method establishes connection, can not be communicated.
The Internet of things system of intelligent industrial apparatus components formula component of the invention realizes distinct interface, brand, agreement The unified data collector of access of intelligent industrial apparatus components formula, solves the problems, such as uniform, realizes intelligent industrial The modular design of equipment, convenient for the flexible deployment of intelligent industrial equipment, by way of cloud computing, automatic discrimination intelligent industrial The interface of equipment, brand, agreement establish reading and writing data connection, and it is adaptive with data collector to realize intelligent industrial equipment Adaptation.
Fig. 2 is the first embodiment of the Internet of things system of intelligent industrial apparatus components formula component of the invention.
The Internet of things system that intelligent industrial apparatus components formula of the invention is set up, including the number with intelligent industrial equipment connection According to collector, and the Cloud Server being connected with data collector.
The data collector includes controlling MCU, connecting with the first interface of intelligent industrial equipment connection, with server Second interface and storage unit, first interface are that pluggable Internet of Things accesses assembly module, and second interface is pluggable net Network component accesses assembly module, and control MCU accesses assembly module, network insertion assembly module and storage unit with Internet of Things respectively Connection.
The Internet of Things access assembly module is pluggable general-purpose interface, and Internet of Things accesses assembly module and supports a variety of works Industry field bus technique, including RS485, RS232, RS422, ModBus, ProfiBus, CAN, TCP/IP and Ethernet/IP, It supports to communicate with the intelligent industrial of distinct interface equipment, can further be connect according to what intelligent industrial was equipped using pluggable mode Mouth is replaced, and is further reduced the cost while meeting application demand.
The network insertion assembly module supports multiple network access technology, including Ethernet, GPRS, WiFi and NBIOT provides the network capabilities of remote access Cloud Server, the upload of equipment data and server is realized, using pluggable side Formula provides different network access ways as needed.
The control MCU is connect with Internet of Things access assembly module, network insertion assembly module and storage unit, according to phase The communications protocol answered is communicated and is converted, and is sent intelligent industrial equipment to after receiving the order translation-protocol of Cloud Server, is connect The data of intelligent industrial equipment are received, send Cloud Server to after translation-protocol.
The storage unit is Flash storage, control MCU and Flash storage according to computing capability and storage requirement into Row selection, control MCU can be stored in data into Flash storage and read data from Flash storage.Preferably, storage unit It can be used for the equipment data of data cached collector acquisition.
Further, the data collector is additionally provided with cloud data collection module, for the software for being built in data collector, Be stored in storage unit, encapsulate the communications protocol interacted between data collector and Cloud Server, have protocol conversion and The function of data transmission.Preferably, cloud data collection module is with the facility registration between data collector and Cloud Server, ginseng Number setting and data transmission etc. functions, the interaction between data collector and Cloud Server pass through cloud data collection module into Row.The method that cloud data collection module is realized is executed by control MCU, is executed intelligent industrial apparatus components formula of the invention and is set up Method and collecting method.
After the data collector is connect with Cloud Server, data collector passes through cloud data collection module to Cloud Server Sending device log-in command (ID and relevant information including data collector), data collector is activated on Cloud Server, Then data collector can obtain equipment acquisition parameter, to read the equipment data of intelligent industrial equipment.
The data collector obtains the basic data and equipment of the intelligent industrial accessed equipment by Cloud Server The basic data of acquisition parameter, the intelligent industrial equipment accessed includes equipment ID, communications protocol and the dress of intelligent industrial equipment Standby access address;After data collector is converted into the corresponding communications protocol of intelligent industrial equipment based on the equipment acquisition parameter of acquisition It is equipped to the intelligent industrial and sends acquisition, intelligent industrial equipment passes through the return format response of communication protocol by data are equipped Data collector is returned to, received equipment data are sent to Cloud Server and stored by data collector.The data are adopted Storage includes equipment ID, pickup area address, data by the equipment acquisition parameter that Cloud Server obtains intelligent industrial equipment Beginning address and data length further can also include communications protocol, frequency acquisition and upload data frequency.Equip acquisition parameter It is periodically equipped according to communications protocol to intelligent industrial according to frequency acquisition and sends acquisition, it is corresponding on acquisition intelligent industrial equipment The equipment data of data initial address and data length, data collector is by received equipment data buffering to storage unit;Root The equipment data packing of buffering is periodically encapsulated into the corresponding network protocol of Cloud Server according to data frequency is uploaded, is sent to cloud clothes Business device.
Table one is an exemplary data structure of the equipment acquisition parameter that data collector is obtained from Cloud Server, parameter The content of setting includes device id, communications protocol, frequency acquisition, uploads data frequency, pickup area address, data initial address It is specific as follows with data length:
Table one:
The Cloud Server for realizing data acquire and data acquisition in required types of equipment, communication assist View, access method and data format carry out parametrization management comprising equipment registration service module, military equipment management service module, Data acquisition service module and other expansion service modules;The equipment registration service module, military equipment management service module and Data acquisition service module is the module of software realization, and the method that above-mentioned module is realized is stored in the storage medium of Cloud Server On, it is executed by the processor or virtual processor of Cloud Server.
The equipment registration service module needs the intelligent industrial of networking to equip for registering, by user or other flat Platform needs the intelligent industrial of networking to equip by equipment registration service module addition, and the information of addition includes device id, communication association The information such as view, interface type.
The military equipment management service module is communicated with the cloud data collection module of data collector, and data collector passes through Military equipment management service module obtains the basic data for the intelligent industrial equipment not accessed, and the intelligent industrial equipment accessed Basic data.Military equipment management service module is used to record communications protocol, transmission mode, transformat and the data packet format supported Different types of equipment, the content of record mainly includes:Equip provider, the chip of use, use communications protocol and data The resolution rules of packet;
The data acquisition parameters service module, the equipment acquisition parameter for needing to acquire for recording intelligent industrial equipment. Data collector obtains the equipment acquisition parameter that intelligent industrial is equipped from data acquisition parameters service module, equips acquisition parameter packet It includes device id, communications protocol, frequency acquisition, upload data frequency, pickup area address, data initial address and data length; Data collector feeds back its collected equipment data to data acquisition parameters service module, is sent to cloud after summarizing, being packaged Server.
As shown in figure 3, the Internet of things system that the intelligent industrial apparatus components formula of the invention based on cloud computing is set up, work It is as follows to make process:
(1) the equipment registration service module of the Cloud Server obtains what intelligent industrial was equipped from military equipment management service module Basic data, basic data include equipment ID, protocol type, interface type, equipment access address, data collection cycle, equipment Provider, registration date and registration people;
Preferably, the basic data can by way of being manually entered or data import mode store cloud service The military equipment management service module of device.
(2) Internet of Things of the intelligent industrial equipment access data collector accesses assembly module, the cloud of data collector Data collection module obtains the basic number that all intelligent industrials not accessed are equipped from the military equipment management service module of Cloud Server According to;
(3) data collector sends the acquisition with communications protocol, communication to the intelligent industrial equipment accessed Agreement equips the communications protocol supported for the intelligent industrial accessed, and the intelligent industrial equipment accessed receives signal and parses life Equipment ID in order, the equipment ID in order is identical as the equipment ID that the intelligent industrial is equipped, then intelligent industrial equipment and object Networking access assembly module foundation connects and communicates, if the intelligent industrial equipment accessed can not parse the order or parsing life The equipment ID obtained after order is different from the equipment ID of the intelligent industrial equipment accessed, then the intelligent industrial equipment accessed can not Connection and communication are established with Internet of Things access assembly module;
Preferably, it after the intelligent industrial equipment accessed is connected and communicated with Internet of Things access assembly module foundation, is connect The intelligent industrial entered is equipped to Internet of Things access assembly module and returns to an answer signal, to confirm successful connection.Preferably, institute Stating communications protocol is Host Link agreement, ModeBus agreement or ProfiBus agreement etc..
(4) the cloud data collection module of the intelligent industrial equipment sends the request that connection is succeeded in registration to Cloud Server, The equipment registration management service module of Cloud Server by the intelligent industrial equipment records of successful connection to having connected in queue, component The intelligent industrial equipment networking of formula is set up successfully.
(5) data collector obtains intelligent industrial equipment by the data acquisition parameters service module of Cloud Server Acquisition parameter is equipped, the equipment data of intelligent industrial equipment are collected, equipment acquisition parameter of the data collector based on acquisition is raw At acquisition, acquisition is packaged into the communications protocol that intelligent industrial equipment is supported, sends and adopts to intelligent industrial equipment Collection order, as the data collector equips the current value order sent in collection period to the intelligent industrial;
(6) current value is returned to data acquisition by the return format response of the communication protocol by intelligent industrial equipment Device, data collector obtain in equipment data acquisition parameters setting according to from the data acquisition parameters service module of Cloud Server Hold, periodically collects the equipment data for uploading intelligent industrial equipment, and summarize to the equipment data of collection, i.e., by acquisition Equipment data are ranked up according to the format of corresponding network protocol, and packing is encapsulated into the corresponding network of network insertion assembly module Agreement;
(7) the equipment data for being packaged encapsulation are passed through data of the Ethernet to Cloud Server by the network insertion assembly module It acquires service module and sends request, the equipment data persistence that data acquisition service module encapsulates the packing to DB (data Library).
As shown in figure 4, the second embodiment for the Internet of things system set up for intelligent industrial apparatus components formula of the present invention, with Europe It is specific as follows for the intelligent industrial equipment (hereinafter referred to as " intelligent industrial equipment ") of nurse dragon PLC type CP1H:
Intelligent industrial equipment uses Host Link agreement, and interface uses RS422, and protocol format is as follows:
Command format
@ 0 0 R D X X * CR
Unit NO.HeadercodeFCSTerminator
Return to format
@ 0 0 R D 0 0 X X * CR
Unit NO.Header code End codeFCSTerminator
(1) the equipment registration service component of the Cloud Server obtains the basic data of CP1H, and basic data includes equipment ID (i.e. Unit NO. unit number), equipment access address, data collection cycle, equipment provider, registration date and registration people;
(2) assembly module, data collector are accessed by the Internet of Things of the RS-422 interfacing data collector of CP1H Cloud data collection module obtain the base that all intelligent industrials for not accessing are equipped from the military equipment management serviced component of Cloud Server Plinth data;
(3) Internet of Things of data collector accesses assembly module and sends one with Host to intelligent industrial equipment The acquisition of Link agreement, for CP1H by the equipment ID in the signal and resolve command, what is parsed equips ID's and CP1H It is identical to equip ID, then CP1H is connected and communicated with Internet of Things access assembly module foundation, and then, CP1H accesses component to Internet of Things Module returns to an answer signal, confirms successful connection;
(4) the cloud data collection module of data collector sends the request that connection is succeeded in registration, cloud service to Cloud Server The equipment registration management serviced component of device by the intelligent industrial equipment records to having connected equipment queue, CP1H access Internet of Things at Function;
(5) data collector obtains the equipment acquisition parameter of CP1H from the data acquisition parameters service module of Cloud Server, Data collector sends acquisition by collection period to CP1H;
(6) current value is returned to unitized data by the return format response of Host Link agreement and adopted by the CP1H Storage, content of the universal data acquisition device by equipment data acquisition parameters setting, the equipment number of CP1H required for collecting Simply summarized according to and to collected equipment data, packing is encapsulated into the corresponding Ethernet TCP/ of network insertion assembly module IP agreement;
It should be pointed out that the data of universal data acquisition device acquisition, are the data of an address range, these data It may include the parameters such as electric current, voltage, yield, Cloud Server needs the point argument address according to setting, parameter type etc., right Collected data are parsed.
(7) the network insertion assembly module of universal data acquisition device will be packaged encapsulation equipment data by Ethernet to The data acquisition service area assembly of Cloud Server sends request, and data acquisition service component is by data persistence to database.
As shown in figure 5, a kind of preferred embodiment of data collector of the invention, preferably a kind of intelligent industrial gateway, It is specific as follows:
The intelligent industrial gateway comprising control MCU, and with control MCU connect first interface, second interface and Storage unit, first interface and intelligent industrial equipment connect, and second interface is connect with Cloud Server.
Equipment data in the control MCU acquisition intelligent industrial equipment operational process, will effectively equip data buffer storage To storage unit, then effective equipment data are stored to Cloud Server by Ethernet interface.The intelligent industrial gateway, Its control MCU support multiple kinds, it can be achieved that for a variety of different agreements intelligent industrial equipment equipment data acquire, Data buffer storage will effectively be equipped to storage unit, and Cloud Server can be transferred to by Ethernet interface and carry out persistence Storage, can additionally be connect by mobile phone with blue tooth interface, carry out the data of on-site parameters setting and real time inspection acquisition.
A kind of preferred scheme, control MCU can also effectively determine the equipment data of acquisition, multiple filter and meter Point counting analysis, obtains effectively equipping data, and will effectively equip data buffer storage to storage unit, is conducive to the dress for improving acquisition The quality of standby data and the efficiency of transmission for improving equipment data.
Preferably, as shown in figure 15, the control MCU is embedded main control chip, and model STM32F407 passes through volume The concrete function of Cheng Shixian intelligent industrial gateway;The first interface includes multiple RS485 interfaces, and belongs to same production line Multiple intelligent industrial equipment connections, RS485 interface use SP485 chip, and second interface is Ethernet interface, with Cloud Server phase Even, Ethernet interface includes the Ethernet chip of model W5500, it is preferred that and intelligent industrial gateway further includes third interface, the Three interfaces are blue tooth interface, are connected with mobile phone, and blue tooth interface includes the Bluetooth chip of model CC2541, mobile phone by network and Cloud Server connection;The input key controls MCU reset or the input of other signals for making, such as the start and stop of intelligent industrial gateway And parameter setting, indicator light is for prompting correlated condition, such as working condition, communication state and error condition;The storage Unit, for SD card storage or Flash storage.Preferably, the first interface further includes multiple RS232 interfaces, RS232 interface Using SP3232 chip;The intelligent industrial gateway further includes that the SWD downloading mouth being connected with control MCU and other reservations connect Mouthful.The model STM32F407 of embedded main control chip, also have 3 SPI interfaces, 3 I2C interfaces, 6 USART interfaces, 2 CAN mouthfuls a, 1 Ethernet and 1 USB interface etc. can be achieved at the same time a variety of data communication methods.Bluetooth portion has used indigo plant Tooth serial port module is simplified design by the way of module, and replaces and be easy, for example serial ports turns wifi module, serial ports turns nothing Wire module etc..
As shown in figure 16, the physical circuit figure of RS485 interface, including SP485 chip, the end R0 of SP485 chip and insertion The end RS485_TX of formula main control chip connects, and the end DI is connect with the end RS485_RX of embedded main control chip, and the end RE and the end DE are equal It is connect with the end RS485_RE of embedded main control chip;The side a and b of SP485 chip connects with two end angles of 485 interfaces respectively It connects, resistance R21 is also connected between the side a and b of SP485 chip;The VCC of SP485 chip terminates 3.3V power supply, and The end VCC of SP485 chip is connect through resistance R15 with a port of 485 interfaces, and is connect through capacitor C1 and resistance R14 with 485 Another port connection of mouth, the tie point ground connection between capacitor C1 and resistance R14;The end GND of SP485 chip is grounded.
As shown in figure 17, ethernet interface circuit figure, Ethernet interface include W5500 chip, H1102NL chip and RJ45 Chip, W5500 chip are connect with embedded main control chip, and W5500 chip is connect with RJ45 chip, W5500 chip and H1102NL Chip connection, RJ45 chip are connected with H1102NL chip.Specifically, the end W5500_INTn of W5500 chip, W5500_MOSI End, the end W5500_MISO, the end W5500_SCLK, the end W5500_SCSn and the end W5500_nRST connect with embedded main control chip respectively It connecing, the end ACTLED, the end LINKLED are connect with RJ45 chip, and the end TXN, the end TXP, the end RXN, the end RXP are connect with H1102NL chip, The end TD+ and the end TD- of RJ45 chip are connect with the end TX+ of H1102NL chip and the end TX- respectively;The end NC1 of RJ45 chip and Resistance R30 is passed through at the end NC2 respectively and resistance R33 is connect with one end of resistance R31, the other end of resistance R31 through resistance R37 with The end CT3 of H1102NL chip connects, the end RX+ and the end RX- of RJ45 chip respectively with the end RX+ of H1102NL chip and the end RX- Connection, and the end RX+ of RJ45 chip and the end RX- are connect with resistance R35 and the one end resistance R38 respectively, resistance R35 and resistance The R38 other end is in parallel and connect through resistance 37 with the end CT3 of H1102NL chip, the end NC3 and the end NC4 of RJ45 chip respectively with Resistance R42 is connected with the one end resistance R42, resistance R41 and the resistance R43 other end it is in parallel and through resistance 42 and resistance 37 with The end CT3 of H1102NL chip connects.
RS232 interface circuit diagram shown in blue tooth interface circuit as shown in figure 18 and Figure 19.
The intelligent industrial gateway passes through more different types of intelligence of the same production line of RS485 interface acquisition and storage The equipment data of industrial equipment, control MCU also effectively determines equipment data, is filtered, calculating and divide in the present embodiment The processing such as analysis, obtains effectively equipping data, then encrypt and upload to by network mode to effective equipment data Cloud Server is stored.For example, being effectively judged to determining whether the data of acquisition fall in setting range, if not in setting model The data for then giving up acquisition in enclosing, then retain the data of acquisition if it is within range, as judging x > 10, meet, think that data have Effect.Filtering processing can be multiple filter, can be used limit filtration, digital averaging filtering and/or recurrence average filtering and/or in Position filtering and/or merging repeated data, the unconverted equipment data scheduling algorithm of deletion are filtered, as getting 5 data 2/5/6/4/3, it carries out average value filtering and obtains 4 to be exactly filtered value;The data that calculating analysis will acquire pass through relevant Conversion formula carries out conversion and virtual value is calculated, and as getting electric current and information of voltage, then utilizes formula electric current * voltage=function The numerical value of power can be calculated in rate.Retain abnormal equipment data simultaneously, alert data is convenient for analysis and early warning.
Further, the intelligent industrial gateway of the present embodiment is managed and is arranged to intelligent industrial equipment, intelligent industrial dress Standby equipment information can store in being locally stored of intelligent industrial gateway, when connecting mobile phone or Cloud Server, that The equipment information that relevant intelligent industrial is equipped can be sent to cell phone application or Cloud Server by corresponding intelligent industrial gateway On, user can be added and be deleted the intelligent industrial below corresponding intelligent industrial gateway by cell phone application or Cloud Server Equipment information of equipment, such as the ID, producer, communications protocol, the address for needing to read data that produce equipment etc., so intelligence work Industry gateway can realize the intelligent acquisition process of equipment data, such as specific agreement when acquisition according to the content of setting With acquisition data address etc., and timing upload onto the server.
Preferably, the communications protocol is Host Link agreement, ModeBus agreement or ProfiBus agreement.
It should be pointed out that the equipment data of transport layer are verified using circulation honor check code CRC16, to ensure Equip the loss of identification equipment data in data transmission procedure.
As shown in fig. 6, the workflow of the intelligent industrial gateway is as follows:
(1) acquisition of data is equipped:The intelligent industrial gateway uses relevant communications protocol, periodically fills to intelligent industrial Standby equipment data are acquired, and are filtered processing to equipment data collected, obtain effectively equipping data, then The state of effective equipment data and intelligent industrial gateway is stored to storage unit;Such as a kind of filter method is that this is adopted The data * ratio of the data * ratio of collection+last time acquisition is to get arriving required data, naturally it is also possible to other using filtering processing etc. Filter type.
(2) the effectively upload of equipment data:Via two kinds of approach when upload, approach is first is that via in Ethernet interface timing Cloud Server is reached, carries out data encryption in upload procedure, so that Cloud Server obtains safely effective dress of intelligent industrial equipment Standby data, avoid data from revealing in transmission process;Approach by blue tooth interface and mobile phone second is that communicated, Yong Huke The related data equipped by cell phone application real time inspection intelligent industrial.
Preferably, the mobile phone is communicated by blue tooth interface with intelligent industrial gateway, issues corresponding machine using mobile phone System not only can satisfy the function that equipment data are checked under mobile phone and intelligent industrial gateway connection state, but also without passing through When mobile phone checks equipment data, then stop the communication of mobile phone Yu intelligent industrial gateway.
It is noted that data are still in storage unit after the intelligent industrial gateway transfers data to Cloud Server Caching, after next time collects new data, legacy data is replaced by new data;User can only check intelligent industrial by mobile phone The data of gateway acquisition.
Preferably, as shown in fig. 7, may be used also when the mobile phone is connect and communicated with intelligent industrial gateway by blue tooth interface To be configured by cell phone application to intelligent industrial gateway, detailed process is as follows:
The mobile phone built-in mobile phone APP is communicated by blue tooth interface with intelligent industrial gateway.
(1) start cell phone application, connect by blue tooth interface with intelligent industrial gateway;
(2) cell phone application obtains intelligent industrial gateway data automatically, and intelligent industrial gateway data is intelligent industrial equipment Equipment information, such as equipment ID, manufacturer, communications protocol, the address for needing to read data etc.;
(3) user adds or deletes intelligent industrial equipment by cell phone application, and order is handed down to intelligent industrial gateway;
(4) after the intelligent industrial gateway receives the order of cell phone application, according to the automatic change equipment information of order, example Such as produce ID, the producer, communications protocol, the address for needing to read data of equipment;
(5) the intelligent industrial gateway carries out equipment data acquisition to intelligent industrial equipment according to new equipment information;
(6) the intelligent industrial gateway is processed equipment data collected, obtains effectively equipping data;
(7) effective equipment data are uploaded to Cloud Server and stored by the intelligent industrial gateway;
(8) operating status of the Cloud Server according to the equipment data real-time monitoring intelligent industrial equipment uploaded.
Certainly, the intelligent industrial gateway can also be connected by Ethernet interface with host computer, by host computer to intelligence Energy industrial gateway is configured, or is directly configured to intelligent industrial gateway by inputting key.
As shown in figure 8, the 3rd embodiment for the Internet of things system set up for intelligent industrial equipment of the invention.
The Internet of things system that the intelligent industrial equipment of the present embodiment is set up, including being adopted with the data of intelligent industrial equipment connection Collection equipment and the Cloud Server being connect with data acquisition equipment.The Internet of Things system that the intelligent industrial equipment of the present embodiment is set up System, the method that can be set up using assembly type of the invention, can also use other way component.
The data acquisition equipment includes data processing module, and data acquisition equipment and intelligent industrial equipment are connected, be used for The equipment data in intelligent industrial equipment operational process are acquired, the data model processing of data processing module and Cloud Server is established Whether module connection needs for establishing module acquisition data processing rule from data model processing, judging to equip before data upload It handles and equipment data is handled according to data processing rule.The method that data processing module is realized is adopted by data The control MCU for collecting equipment is executed.
Table three is system convention table, shows the data structure of data processing rule, specific as follows:
Table three:
English field name Data type Chinese Fields name
RULE_ID VARchar(30) Rule ID
RULE_ITEM VARchar(10) Handle serial number
RULE_NAME VARchar(50) Rule declaration
RULE_PROC VARchar(500) Rule process process
CREATE_TIME DATETIME Creation time
CREATE_BY VARchar(30) Founder
Wherein, rule process process is one section of processing logic, can correspond to the storing process of an extension, rule ID pair Answer the business scenario that calling rule is needed in treatment process.
The following are data processing modules to use an example of the logic of data processing rule progress data processing:
Determine that data processing module rule of correspondence ID is CJQ001;
Corresponding rule process process RULE_PROC treatment process is obtained, is directly used in and preliminary working is carried out to data:
Such as:Get a rule data:
Wherein:PROC_SJCL cjq001:It is the storing process code an of data processing, quotes its data to acquisition It carries out repeating to judge to delete latter item.PROC_SJCL cjq001 ergodic data, if two adjacent datas have repetition Delete latter item.
The data acquisition equipment is data collector, and data collector includes control MCU and connect with control MCU First interface, second interface, third interface, storage unit, first interface and second interface are plug-in general-purpose interface, and third connects Mouth is blue tooth interface, and control MCU is equipped by first interface and intelligent industrial and connected, and is run for acquiring intelligent industrial equipment Equipment data in journey, control MCU are connect with Cloud Server by second interface, are connect by third interface with mobile phone;It is described Data processing module realizes that control MCU executes data processing rule to realize data processing module by application program.
Preferably, the number of the intelligent industrial equipment is multiple, as shown in figure 8, multiple intelligent industrials equipment is set respectively It sets and m intelligent industrial equipment is set in region one and region two, region one, m >=1, interior n intelligent industrial of setting in region two fills It is standby, n >=1;The data acquisition equipment can be simultaneously in the intelligent industrial equipment operational process in pickup area one and region two Equip data.
As shown in figure 9, the workflow of the data processing module for the data acquisition equipment.
Data acquisition equipment and intelligent industrial equipment connect, the equipment data in acquisition intelligent industrial equipment operational process, Then module connection is established in the processing of the data model of data processing module and Cloud Server, for establishing mould from data model processing Block obtains the model of data processing rule, if there is model is then processed according to data processing rule model, then will Data upload, and directly upload data if without model.Certainly, can also first be cached after acquiring data, periodically into The working process and upload of row data.Data acquisition equipment is connect with Cloud Server, is such as connect with military equipment management service module, is led to It crosses device id and/or device type obtains corresponding data processing rule, be preferentially device id, without specified fixed to feature device id Adopted data processing model takes the corresponding default data processing model of the device type.Specifically, data acquisition equipment and cloud service Device connection, is obtained the rule ID of corresponding data processing rule by the device id that intelligent industrial is equipped first, then passes through rule Then ID establishes module from data model processing and obtains corresponding data processing rule;If had not been obtained by specific device id The rule ID of any data processing rule then searches the data processing for obtaining the corresponding default of device type by device type The rule ID list of rule.
The Cloud Server includes message reception module, message distribution module, is disappeared by what multiple message processing modules formed Module and database are established in breath processing module cluster, asynchronous message processing module, data model processing.
The message reception module, is connected with data acquisition equipment, for receiving by the original of data acquisition equipment acquisition Equipment data and via data processing module handle equipment data, and by equipment data be transferred to message distribution module.
The message distribution module establishes module, message processing module cluster with message reception module, data model processing Be connected, for from message reception module obtain equipment data, from data model processing establish module obtain message distribution rule with And equipment data are distributed to the message processing module of message processing module cluster according to message distribution rule.
It is noted that the data structure and processing logic of the message distribution rule and data processing rule are all the same, Only rule ID is different, and rule process process RULE_PROC is different.
It as shown in Figure 10, is the workflow of the message distribution module.Message reception module receives data acquisition and sets After the equipment data that preparation is sent, detect whether that there are message distribution rule models, and if so, according to message distribution rule from Satisfactory message processing module and dispatch messages are selected in message processing module cluster, are corresponded in message processing module cluster Message processing module handled and cached.
The message processing module cluster includes multiple message processing modules, number n, n >=1, message processing module collection Group uses distributed frame, can increase or decrease the number of message processing module according to the size extended resources of business scenario, Message processing module is used to obtain equipment data from message distribution module, is handled and is cached.
The asynchronous message processing module establishes module phase with message processing module cluster, database, data model processing Even, asynchronous message processing is obtained for obtaining equipment data from message processing module cluster, establishing module from data model processing Rule and equipment data are handled and are transferred to database and stored according to asynchronous message processing rule.It may be noted that , the data structure and processing logic of the asynchronous message processing rule and data processing rule are all the same, only rule ID Difference, rule process process RULE_PROC are different.Asynchronous message processing module is to from from message processing server cluster Equipment data carry out processing include data roughing, data fining-off and data persistence, data roughing includes to dress Standby parameter is allocated and keeps in, data fining-off include data summarization, data result operation and reach data and can be used for The work showed, data persistence save result data to database.If asynchronous message processing module is every time from message Each message processing module of reason module cluster respectively obtains M item equipment data, and the equipment data that will acquire are answered from each Message Processing It is deleted, M >=1, then the M item equipment data of each Message Processing application server is classified respectively, and will in server Then of a sort equipment Data Integration is stored in database application server.
It as shown in figure 11, is the workflow of the asynchronous message processing module.
As shown in figure 12, data model processing establishes module and passes through manual intervention adjustment, data analysis and artificial The means such as intelligence generate at a data model continued to optimize, with data processing module, message distribution module and asynchronous message It manages module to be connected, provides data processing rule, message distribution rule and asynchronous data processing rule respectively for three, and to opposite The module (including data processing module, message distribution module and asynchronous message processing module) answered provides service.
The data model be burst of data processing rule set, data processing rule include rule ID, processing serial number, The information such as rule declaration, rule process process, creation time, founder;The rule process process is one section of processing logic, The storing process that an extension can be corresponded to, needs the business scenario of calling rule during rule ID alignment processing, at data Reason module, message distribution module and asynchronous message processing module are based respectively on respective rule ID dynamic acquisition rule process mistake Journey, the corresponding storing process of executing rule treatment process execute the business scenario for needing calling rule.For example, message distribution mould Block establishes module from data model processing based on the rule ID of message distribution and obtains corresponding rule process process as message point Equipment data are distributed to the message of message processing module cluster by hair rule, the corresponding storing process of executing rule treatment process Processing module;Asynchronous message processing module establishes module with data model processing and is connected, the rule ID based on asynchronous Processing for removing Module is established from data model processing and obtains corresponding rule process process as asynchronous message processing rule, executes asynchronous message The corresponding storing process of processing rule;Data processing module establishes module with data model processing and is connected, based on data processing Rule ID establishes module from data model processing and obtains corresponding rule process process as data processing rule, executes at data The corresponding storing process of reason rule handles equipment data.At data processing module, message distribution module and asynchronous message Module is managed, default has set corresponding rule ID when passing through application deployment, then retrieves corresponding data processing rule by rule ID.Often The corresponding rule ID of a module is unique.
Further, data processing rule further includes processing serial number, data processing module, message distribution module and asynchronous message Processing module can establish module from data model processing respectively and obtain multiple data processing rules, then according to processing serial number Sequence executes, and executes the business scenario for needing calling rule.Such as the available multiple asynchronous messages of asynchronous message processing rule Processing rule is respectively used to carry out roughing, fining-off and the persistence etc. of data.
The present invention establishes module by data model processing and is managed to the set of data processing rule, so that each mould Block, including including data processing module, message distribution module and asynchronous message processing module can dynamic acquisition data processing in real time Rule, convenient for being adjusted in the acquisition of demand pairs evidence, distribution rules.
Preferably, the application server cluster that the Cloud Server is constituted for more application servers, message reception module, Message distribution module, asynchronous message processing module, database and data model treatment establish module pass through be built in using clothes The application program being engaged on device realizes that application server cluster includes the message for being deployed with message reception module and message distribution module Reception distribution application server, is deployed with database at the message processing module application server for being deployed with message processing module Database application server, the asynchronous message for being deployed with asynchronous message processing module handle application server and are deployed with data mould Application server is established in the data model processing that module is established in type processing.It should be pointed out that each application server can be according to need Data volume to be processed, is increased and decreased, if data volume very little, above-mentioned each module can be set to one or two application service On device;Further, Cloud Server can also be realized using virtual server, such as Ali's cloud, Tencent's cloud and Amazon cloud etc.. Cloud Server includes storage medium, is stored with and realizes a kind of computer journey of the method for uploading of Internet of Things acquisition data of the present invention Sequence.
Invention additionally discloses a kind of method for uploading of Internet of Things acquisition data, the intelligent industrial apparatus components of 3rd embodiment The Internet of things system of formula component carries out the upload of data by this method, specific as follows:
(1) data acquisition equipment of the data collector obtains the equipment data in intelligent industrial equipment running process, Obtain original equipment data;The equipment data obtained according to different intelligent industrial equipments are different, for example including equipment ID, According to equipment acquisition parameter from the data for equipping upper corresponding data initial address and data length acquisition, according to the different intelligence Industrial equipment, data content may be current value, voltage value, can also be the performance number after calculating.In addition, data acquisition equipment The operating condition data of intelligent industrial equipment connected to it, including equipment operation current state, equipment failure can also be provided Data, equipment runing time, equipment yield, equipment acceptance number.(2) data processing module of the data collector is from data mould Type processing establishes module and obtains data processing rule, if original equipment data are handled before upload, at data Reason module is handled original equipment data by the data processing rule, is obtained the equipment data of single treatment and is passed It is defeated by message reception module, otherwise, the original equipment data of acquisition are transferred directly to message sink mould by data acquisition equipment Block;
Preferably, the data processing rule includes effectively being determined the equipment data of acquisition, if the equipment of acquisition Data are not given up then within the set range;The data collector is filtered the equipment data of acquisition to reduce storage Data, the filtering processing include digital averaging filtering and/or recurrence average filtering and/or middle position filtering and/or merge weight Complex data;And retain abnormal data, alert data;It further include that calculating analysis is carried out to the equipment data of acquisition, i.e., it will acquisition Data by conversion formula carry out conversion virtual value is calculated.
(3) the message distribution module of the Cloud Server establishes module from data model processing and obtains message distribution rule;
Preferably, the message distribution rule is mainly according to the data type of equipment data and/or region (i.e. equipment source Geographic area) and available server (application server of i.e. idle message processing module deployment) etc. establish, with into Row resource allocation realizes load balancing, failure transfer, improves oncurrent processing ability.
(4) the message distribution module of the Cloud Server is according to message distribution rule by the received equipment of message reception module Data distribute to the message processing module cluster of Cloud Server;
(5) message processing module of the message processing module cluster handles received equipment data, obtains two Then the equipment data of secondary processing cache the equipment data of secondary treatment;
(6) asynchronous message processing module obtains the equipment data of secondary treatment, institute from Message Processing application server cluster It states asynchronous message processing module and establishes module acquisition asynchronous message processing rule from data model processing, handled according to asynchronous message The equipment data that rule handles the equipment data of secondary treatment and handled three times, the equipment that then will be handled three times The database that data are transferred to Cloud Server is stored.The asynchronous message processing rule is that asynchronous message processing module is each M item equipment data are respectively obtained from each message processing module of message processing module cluster, and the equipment data that will acquire are from respectively disappearing It deletes in breath processing application server, M >=1, is then divided the M item equipment data of each Message Processing application server respectively Class, and by of a sort equipment Data Integration, it is then stored in database application server,
The message distribution rule and asynchronous message processing rule establish module from the processing of the data model of Cloud Server Dynamic obtains, and the data processing rule includes rule ID and rule process process, and the rule process process is stored with one Process or execution code are corresponding;
Message distribution module establishes module from data model processing based on the rule ID of message distribution and obtains corresponding rule Treatment process will as the corresponding storing process of executing rule treatment process of message distribution rule as message distribution rule Equipment data distribute to the message processing module of message processing module cluster;
The processing of asynchronous message processing module and data model establishes module and is connected, the rule ID based on asynchronous Processing for removing from Data model processing establishes module and obtains corresponding rule process process as asynchronous message processing rule, executes at asynchronous message The corresponding storing process of reason rule;
The processing of data processing module and data model establishes module and is connected, based on the rule ID of data processing from data model Processing establishes module and obtains corresponding rule process process as data processing rule, executes the corresponding storage of data processing rule Process handles equipment data.
As shown in figure 13, the fourth embodiment for the Internet of things system set up for intelligent industrial apparatus components formula of the invention, It is specific as follows by taking the equipment data and data that acquire NA1 omnipotent breaker upload as an example:
NA1 omnipotent breaker is connect with intelligent industrial gateway, and intelligent industrial gateway is data acquisition equipment comprising control MCU processed, and the RS485 interface, Ethernet interface and the storage unit that connect with control MCU, control MCU support a variety of communication associations View, is connected with NA1 omnipotent breaker by RS485 interface, is connected by Ethernet interface with Cloud Server.The cloud service Device is the server cluster of more application server compositions, and application server may include being deployed with message reception module and disappearing The fast message of breath distribution mould receives distribution application server, is deployed with the Message Processing application server of message processing module, portion Administration have database data server, be deployed with data model processing establish module data model processing establish application service Device, is deployed with the asynchronous message processing application server of asynchronous message processing module, and above-mentioned each module passes through software realization;Root According to message data volume to be treated, more corresponding application servers are respectively set and constitute application server cluster, for example, number According to measuring in very big situation, more Message Processing application servers can be set to constitute Message Processing application server collection Group, can also increase and decrease as needed;When data volume is smaller, each module can also be deployed on an application server, such as Message reception module, message distribution module and data model treatment are established module to be deployed on the same application server.When So, the Cloud Server can also be realized using virtual server, such as Ali's cloud, Tencent's cloud and Amazon cloud etc..
(1) the control MCU of the intelligent industrial gateway executes data processing rule to realize data processing module, to acquisition The equipment data of the NA1 omnipotent breaker arrived carry out preliminary treatment, to improve the quality of equipment data.
The data processing module of the intelligent industrial gateway is handled equipment data according to data processing rule, data Processing module is equipped with initial data processing rule, periodically can also establish module from the processing of the data model of Cloud Server and obtain It updates.For example,
Initial data processing rule is:Data relevant to electric current, voltage, power merge repetitive rate and reach 95% Data delete the unconverted data of state in intelligent industrial equipment operational process, retain whole abnormal datas and alert data, Every five seconds uploads data by narrowband Internet of Things NB-IOT communication modes.
It should be pointed out that the data processing rule can according to the statistical framework of the equipment data quarterly uploaded with And the conscientious modification of business demand, it module is established by the processing of the data model of Cloud Server is adjusted and be issued to intelligent industrial Gateway.
(2) the message sink distribution application server receives equipment data and carries out load balancing to received data, It is temporary to be assigned to idle Message Processing application server progress message;The message sink distribution application server is according to message Distribution rules and the application process resource of current message processing application server are allocated, and message sink distributes application server Equipped with initial message distribution rule, can also modify according to using needs;
As shown in figure 13, initial message distribution rule is:For example, one group of equipment data is from the region HD and uses NB- IOT communication modes, another group of equipment data are from FHD and use non-NB-IOT communication modes, from the region HD and use NB- The equipment data of IOT communication modes are limited to use Message Processing application server 1,1 busy of Message Processing application server, judgement Whether Message Processing application server 2 is idle, if idle, the equipment data from the region HD are distributed to Message Processing application Server 2 otherwise waits for the processing of 1 idle of Message Processing application server;Every 5 minutes, obtain current each Message Processing application clothes The resource service condition (service condition for referring mainly to monitoring CPU and memory) of business device is carried out when resource utilization is more than 90% Data save, and when memory space (referring mainly to the application server for storing data) is less than 100G, record currently available money Source optimizes as initial data feedback for data model, to judge whether to increase Message Processing application server;Using non- NB-IOT communication modes and equipment data from the region FHD then preferentially use Message Processing application server 2, data processing It is regular identical as above-mentioned rule.The resource service condition of Message Processing application server is primarily referred to as making for monitoring CPU and memory With situation, memory space is primarily referred to as the memory space that data store corresponding server.
Preferably, monthly the data of current data process (is referred to by the data of overall process generation, is had comprising all The data of record) and treatment process in application server resource utilization analyzed and (can also be passed through with artificial judgment Regular intelligent decision), decide whether to modify message distribution processing rule, includes whether to increase Message Processing application server.
(3) as shown in figure 14, the asynchronous message processing module of the asynchronous message processing application server successively obtains respectively In Redis (key-value storage system) on Message Processing application server earliest 50 temporary equipment data and by this Some temporary equipment data are deleted from the Redis of each Message Processing application server, every temporary equipment data include electric current, Then the data of voltage, frequency and power factor (PF) are handled simultaneously 50 electric currents and voltage data in a manner of asynchronous process 50 A data are formed, the data of 50 frequencies and power factor (PF) are processed and formed with 50 B datas, handle A data and B number According to obtaining a result and be stored in database.
It should be pointed out that obtaining the item number of data from the Redis of Message Processing application server and by those data The method for doing merging treatment is carried out according to asynchronous data processing rule, data model (the i.e. collection of asynchronous message processing rule Close) come from big data intellectual analysis or manual analysis.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention Protection scope.

Claims (10)

1. a kind of intelligent industrial gateway, it is characterised in that:It includes controlling MCU and connecing with the control MCU multiple RS485 connecting Mouth, Ethernet interface, blue tooth interface, storage unit;
The control MCU is connected by RS485 interface and intelligent industrial equipment, is run for acquiring intelligent industrial equipment in real time Equipment data in journey, control MCU is connected by Ethernet interface with Cloud Server, for being transferred to the equipment data of acquisition Cloud Server, mobile phone, which is connected by blue tooth interface with control MCU, to be controlled, and control MCU is stored in storage unit and reading is adopted The equipment data of collection, and the control MCU is filtered the equipment data of acquisition.
2. intelligent industrial gateway according to claim 1, it is characterised in that:Further include for make control MCU reset and it is defeated The input key and the indicator light for prompting state for entering signal;It further include the RS232 interface being connect with control MCU.
3. intelligent industrial gateway according to claim 1, it is characterised in that:The control MCU is embedded chip, model For STM32F407;The Ethernet interface includes the Ethernet chip of model W5500;The blue tooth interface includes model The Bluetooth chip of CC2541, control MCU pass through blue tooth interface and mobile communication.
4. intelligent industrial gateway according to claim 1, it is characterised in that:The RS485 interface includes SP485 chip, The end RO of SP485 chip is connect with the end RS485_TX of the embedded main control chip of control MCU, the insertion at the end DI and control MCU The end RS485_RX of formula main control chip connects, the end RS485_RE of the end RE and the end DE with the embedded main control chip of control MCU Connection;The side a and b of SP485 chip is connect with two ends angle of 485 interfaces respectively, between the side a and b of SP485 chip It is also connected with resistance R21;The VCC termination power of SP485 chip, and the end VCC of SP485 chip is through resistance R15 and 485 interfaces A port connection, and connect through capacitor C1 and resistance R14 with another port of 485 interfaces, capacitor C1 and resistance R14 it Between tie point ground connection;The end GND of SP485 chip is grounded.
5. intelligent industrial gateway according to claim 1, it is characterised in that:The filtering processing includes arithmetic average filter Wave and/or recurrence average filtering and/or middle position filtering and/or merging repeated data.
6. intelligent industrial gateway according to claim 1, it is characterised in that:Equipment data of the control MCU to acquisition Effectively determined, if acquisition equipment data not within the set range if give up.
7. intelligent industrial gateway according to claim 1, it is characterised in that:Equipment data of the control MCU to acquisition Calculating analysis is carried out, i.e., the data of acquisition is subjected to conversion by conversion formula and virtual value is calculated.
8. intelligent industrial gateway according to claim 1, it is characterised in that:The control MCU obtains number from Cloud Server Equipment data are handled according to processing rule, and by data processing rule.
9. intelligent industrial gateway according to claim 8, it is characterised in that:Data processing module passes through to be processed first The device id of intelligent industrial equipment obtains corresponding data processing rule from server;If had not been obtained by device id any Data processing rule, then the device type equipped again by intelligent industrial to be processed searches that obtain device type corresponding silent The data processing rule recognized.
10. intelligent industrial gateway according to claim 1, it is characterised in that:Control MCU is obtained all from Cloud Server The basic data for the intelligent industrial equipment not accessed, basic data include equipment ID and the communication for the intelligent industrial equipment not accessed Agreement;When new intelligent industrial equips access, the intelligent industrial equipment of control MCU traversal Cloud Server acquisition not accessed Basic data, the communications protocol for passing sequentially through the intelligent industrial equipment not accessed send acquisition to the intelligent industrial equipment newly accessed Order, until receiving the successful connection response of the intelligent industrial equipment newly accessed, the content of acquisition includes the intelligence not accessed The equipment ID of energy industrial equipment after control MCU receives successful connection response, is asked to what Cloud Server transmission connection was succeeded in registration It asks, the state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by Cloud Server.
CN201810376450.9A 2018-04-24 2018-04-24 Intelligent industrial gateway Pending CN108833267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810376450.9A CN108833267A (en) 2018-04-24 2018-04-24 Intelligent industrial gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810376450.9A CN108833267A (en) 2018-04-24 2018-04-24 Intelligent industrial gateway

Publications (1)

Publication Number Publication Date
CN108833267A true CN108833267A (en) 2018-11-16

Family

ID=64154790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810376450.9A Pending CN108833267A (en) 2018-04-24 2018-04-24 Intelligent industrial gateway

Country Status (1)

Country Link
CN (1) CN108833267A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083122A (en) * 2019-05-23 2019-08-02 江苏大备智能科技有限公司 A kind of industry internet control acquisition system
CN110221998A (en) * 2019-06-13 2019-09-10 南京紫图科技有限公司 Collecting method, apparatus and system, computer storage medium
CN110688372A (en) * 2019-08-30 2020-01-14 深圳鸿智云创科技有限公司 Industrial equipment communication method based on 5G and microprocessor
CN110989524A (en) * 2019-12-06 2020-04-10 福建和盛高科技产业有限公司 Multifunctional industrial gateway
CN111435234A (en) * 2019-01-15 2020-07-21 上海多维明软信息技术有限公司 Intelligent gateway control system and method
CN112506127A (en) * 2020-12-04 2021-03-16 天津中发智能科技有限公司 PLC data acquisition method
CN113341832A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Operation monitoring and management system for underground well equipment
US11835568B2 (en) 2020-11-18 2023-12-05 General Electric Company Systems and methods for monitoring and diagnosing power system assets

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026633A (en) * 2007-03-01 2007-08-29 江西省电力科学研究院 IEC 61850 and OPC based heterogeneous power quality monitoring device integrating method and gateway
CN101572638A (en) * 2008-04-30 2009-11-04 当代天启技术(北京)有限公司 Method and system for metering separate energy consumption of building
CN104035884A (en) * 2014-06-30 2014-09-10 河南百旺金赋电脑有限公司 Double-annular-array data storage method and intelligent gateway
CN204347544U (en) * 2015-01-27 2015-05-20 王波 A kind of control system based on Z-Wave gateway
CN104715598A (en) * 2013-12-11 2015-06-17 陕西天思信息科技有限公司 Electricity consumption information acquisition system and method based on home gateway
CN204967848U (en) * 2015-07-08 2016-01-13 天津维斯顿科技有限公司 Home automation gateway based on cell -phone control
CN106597868A (en) * 2016-12-30 2017-04-26 中科同德(北京)生态科技有限公司 Intelligent home control system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026633A (en) * 2007-03-01 2007-08-29 江西省电力科学研究院 IEC 61850 and OPC based heterogeneous power quality monitoring device integrating method and gateway
CN101572638A (en) * 2008-04-30 2009-11-04 当代天启技术(北京)有限公司 Method and system for metering separate energy consumption of building
CN104715598A (en) * 2013-12-11 2015-06-17 陕西天思信息科技有限公司 Electricity consumption information acquisition system and method based on home gateway
CN104035884A (en) * 2014-06-30 2014-09-10 河南百旺金赋电脑有限公司 Double-annular-array data storage method and intelligent gateway
CN204347544U (en) * 2015-01-27 2015-05-20 王波 A kind of control system based on Z-Wave gateway
CN204967848U (en) * 2015-07-08 2016-01-13 天津维斯顿科技有限公司 Home automation gateway based on cell -phone control
CN106597868A (en) * 2016-12-30 2017-04-26 中科同德(北京)生态科技有限公司 Intelligent home control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘文军等: "基于LM3S8962的RS485-Ethernet协议转换器的设计", 《微计算机应用》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111435234A (en) * 2019-01-15 2020-07-21 上海多维明软信息技术有限公司 Intelligent gateway control system and method
CN110083122A (en) * 2019-05-23 2019-08-02 江苏大备智能科技有限公司 A kind of industry internet control acquisition system
CN110221998A (en) * 2019-06-13 2019-09-10 南京紫图科技有限公司 Collecting method, apparatus and system, computer storage medium
CN110221998B (en) * 2019-06-13 2023-05-16 南京紫图科技有限公司 Data acquisition method, device and system and computer storage medium
CN110688372A (en) * 2019-08-30 2020-01-14 深圳鸿智云创科技有限公司 Industrial equipment communication method based on 5G and microprocessor
CN110989524A (en) * 2019-12-06 2020-04-10 福建和盛高科技产业有限公司 Multifunctional industrial gateway
US11835568B2 (en) 2020-11-18 2023-12-05 General Electric Company Systems and methods for monitoring and diagnosing power system assets
CN112506127A (en) * 2020-12-04 2021-03-16 天津中发智能科技有限公司 PLC data acquisition method
CN113341832A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Operation monitoring and management system for underground well equipment

Similar Documents

Publication Publication Date Title
CN108769121A (en) Intelligent industrial equips the method for uploading of internet of things data acquisition system and gathered data
CN108833267A (en) Intelligent industrial gateway
CN108400993A (en) The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up
CN107390650A (en) A kind of data collecting system based on Internet of Things and the data compression method based on the system
CN106374439A (en) Intelligent substation protection control system-based software definition implementation method
CN103152393B (en) A kind of charging method of cloud computing and charge system
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN112925646A (en) Electric power data edge calculation system and calculation method
CN104363278A (en) Mass terminal communication access system
CN101174993B (en) Network data monitoring and processing method and equipment
CN112380428B (en) Cloud-edge coordinated edge computing method, system, electronic device and storage medium
CN114401284B (en) Real-time data acquisition and transmission system and method for fixed pollution source treatment working condition
CN110225086A (en) A kind of collecting method and system towards industrial Internet of Things
CN109327511A (en) A kind of data request method and server based on http protocol
CN103996276A (en) Remote transmission system and method for data of power plant
CN108924203A (en) Data copy self-adapting distribution method, distributed computing system and relevant device
CN107566526A (en) A kind of device based on Web configuration RTU parameters
CN110362055A (en) A kind of industrial data acquisition system that terminal is expansible and method
CN106411588A (en) Network device management method, master device and management server
CN107181701B (en) The collection method and device of common gateway interface data
CN108809971A (en) A kind of opened industrial Internet of Things
CN103051979B (en) streaming media processing method and system
CN106059919B (en) A kind of stagewise internet system based on intelligent router
CN114466039A (en) OPCUA communication system and method based on 5G private network
CN110221998B (en) Data acquisition method, device and system and computer storage medium

Legal Events

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

Application publication date: 20181116