CN108400993A - The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up - Google Patents

The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up Download PDF

Info

Publication number
CN108400993A
CN108400993A CN201810369744.9A CN201810369744A CN108400993A CN 108400993 A CN108400993 A CN 108400993A CN 201810369744 A CN201810369744 A CN 201810369744A CN 108400993 A CN108400993 A CN 108400993A
Authority
CN
China
Prior art keywords
data
equipment
intelligent industrial
acquisition
accessed
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
CN201810369744.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 CN201810369744.9A priority Critical patent/CN108400993A/en
Publication of CN108400993A publication Critical patent/CN108400993A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

A kind of Internet of things system and storage device of the establishment of intelligent industrial apparatus components formula comprising the data collector connected with intelligent industrial equipment and the Cloud Server being connect with data collector;When new intelligent industrial equips access, the basic data for the intelligent industrial equipment not accessed that data collector traversal Cloud Server obtains, the communications protocol for passing sequentially through the intelligent industrial equipment not accessed sends acquisition to the intelligent industrial equipment newly accessed, until receiving the successful connection response of the intelligent industrial equipment newly accessed, the content of acquisition includes the equipment ID for the intelligent industrial equipment not accessed, after data collector receives successful connection response, the request that connection is succeeded in registration is sent to Cloud Server, the state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by Cloud Server, keep the deployment that intelligent industrial is equipped more flexible, system maintenance is easier.

Description

The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up
Technical field
The present invention relates to internet of things field, and in particular to a kind of Internet of Things that intelligent industrial apparatus components formula is set up System.
Background technology
During the manufacturing, enterprise constantly carries out upgrading to production equipment, the intelligent industrial dress largely automated It is standby to be applied;It is raw for industry and along with the continuous development of the technologies such as mobile application, cloud platform, big data and Internet of Things The utilization demand of data during production is also more and more specific, realizes intelligent industrial equipment Internet of Things, acquires intelligent industrial in real time Equipment operational process in equipment data and from equipment manufacturing industry big data obtain business value be also done step-by-step.
There is different manufacturers, distinct device type and different automation journeys during Automation Construction more in current enterprise It is applied while the intelligent industrial equipment of degree, and communication interface difference, data processing and the algorithm of these intelligent industrials equipment are not Together, along with the diversification of enterprise itself application and the prior art are based on personalized designs, in the private that equipment manufacturer provides The secondary development for having solution to contact, leads to problems such as enterprise integrate magnanimous big, of high cost.
Invention content
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of intelligent work that deployment is more flexible and convenient is provided The Internet of things system that industry apparatus components formula is set up.
To achieve the above object, present invention employs following technical solutions:
A kind of Internet of things system that intelligent industrial apparatus components formula is set up comprising the number with intelligent industrial equipment connection The Cloud Server being connect according to collector and with data collector;The data collector includes control MCU and intelligent industrial Equip the first interface of connection, the second interface and storage unit that are connect with Cloud Server, control MCU respectively with first interface, Second interface is connected with storage unit;The data collector obtains all intelligent industrial equipments not accessed from Cloud Server Basic data, basic data include do not access intelligent industrial equipment equipment ID and communications protocol;When new intelligent industrial When equipment access, the basic data for the intelligent industrial equipment not accessed that data collector traversal Cloud Server obtains is led to successively The communications protocol for crossing the intelligent industrial equipment not accessed sends acquisition to the intelligent industrial equipment newly accessed, until receiving The successful connection response of the intelligent industrial equipment newly accessed, the content of acquisition includes that the intelligent industrial not accessed is equipped ID is equipped, after data collector receives successful connection response, the request that connection is succeeded in registration, cloud service are sent to Cloud Server The state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by device.
Preferably, the intelligent industrial equipment newly accessed receives acquisition and parses, and parses the dress obtained after acquisition Standby ID is identical as the equipment ID that the intelligent industrial is equipped, then intelligent industrial equipment is connected and communicated with data collector foundation, The intelligent industrial is equipped to data collector and sends successful connection response.
Preferably, the data collector obtains the basic data of the intelligent industrial accessed equipment by Cloud Server And equipment acquisition parameter, the basic data of the intelligent industrial equipment accessed includes the equipment ID of intelligent industrial equipment, communication Agreement and equipment access address;It is corresponding that equipment acquisition parameter of the data collector based on acquisition is converted into intelligent industrial equipment It is equipped to the intelligent industrial after communications protocol and sends acquisition, equipment data are passed through communication protocol by intelligent industrial equipment It returns to format response and returns to data collector, the equipment data of reception are sent to Cloud Server by data collector.
Preferably, the data collector includes by the equipment acquisition parameter of Cloud Server acquisition intelligent industrial equipment Equip ID, data initial address and data length.
Preferably, the equipment acquisition parameter further include frequency acquisition and upload data frequency, equipment acquisition parameter according to Frequency acquisition is periodically equipped to intelligent industrial according to communications protocol and sends acquisition, and number is corresponded on acquisition intelligent industrial equipment According to the equipment data of initial address and data length, data collector is by the equipment data buffering of reception to storage unit;According to It uploads data frequency and the packing of the equipment data of buffering is periodically encapsulated into the corresponding procotol of Cloud Server, be sent to cloud clothes Business device.
Preferably, the data collector effectively judges the equipment data of acquisition, if the equipment data of acquisition are not Then give up in setting range;The data collector is filtered to reduce the number of storage the equipment data of acquisition According to described being filtered is repeated including digital averaging filtering and/or recurrence average filtering and/or middle position filtering and/or merging Data.
Preferably, the Cloud Server includes equipment registration service module, military equipment management service module and data acquisition Parameter service module;Equipment registration service module needs the intelligent industrial of networking to equip for registering, military equipment management service module It is communicated with data collector, data collector obtains the base that the intelligent industrial not accessed is equipped by military equipment management service module The basic data of plinth data and the intelligent industrial equipment accessed.
Preferably, the first interface support multiple fieldbus technology of the data collector, including RS485, RS232, RS422, ModBus, Profibus, CAN and Ethernet/IP;The second interface of the data collector supports multiple network Access technology, including Ethernet, GPRS, Wifi and NB-IOT;The communications protocol is Host Link agreements, ModeBus Agreement or ProfiBus agreements.
Preferably, the first interface and second interface are plug-in general-purpose interface;The storage unit is Flash Storage, control MCU can be stored in storage unit/read data.
The present invention also provides a kind of storage mediums, are stored with computer program, are used for data collector, the computer Program executes the method that following intelligent industrial apparatus components formula is set up, and all intelligent industrials not accessed are obtained from Cloud Server The basic data of equipment, basic data include the equipment ID and communications protocol for the intelligent industrial equipment not accessed;When new intelligence When industrial equipment accesses, the basic data for the intelligent industrial equipment of traversal Cloud Server acquisition not accessed is passed sequentially through and is not connect The communications protocol of the intelligent industrial equipment entered sends acquisition to the intelligent industrial equipment newly accessed, until receiving new access Intelligent industrial equipment successful connection response, the content of acquisition include do not access intelligent industrial equipment equipment ID; After receiving successful connection response, the request that connection is succeeded in registration, the intelligence that Cloud Server will be accessed newly are sent to Cloud Server The state of industrial equipment is adjusted to have accessed.
The Internet of things system that the intelligent industrial apparatus components formula of the present invention is set up, realizes distinct interface, brand, agreement Intelligent industrial apparatus components formula be linked into unified data collector, solve the problems, such as uniform, realize intelligence The deployment of the modular design of industrial equipment, intelligent industrial equipment is more flexible, and system maintenance is easier.
Description of the drawings
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 that the structure of the 3rd embodiment for the Internet of things system that the intelligent industrial apparatus components formula of the present invention is set up is shown It is intended to;
Fig. 9 is the workflow schematic diagram of the data processing module of the present 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 figures 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 implementation mode
Below in conjunction with the embodiment that attached drawing provides, what the intelligent industrial apparatus components formula that further illustrates the present invention was set up The specific implementation mode of Internet of things system.The present invention intelligent industrial apparatus components formula set up Internet of things system be not limited to The description of lower embodiment.
As shown in Figure 1, the present invention intelligent industrial apparatus components formula component Internet of things system, including with intelligent industrial The data collector of connection is equipped, and the Cloud Server being connected with data collector;The data collector includes control MCU, the first interface connected with intelligent industrial equipment, the second interface and storage unit being connect with Cloud Server, control MCU It is connect with first interface, second interface and storage unit.
When new intelligent industrial equips access, the data collector obtains all intelligence not accessed from Cloud Server The basic data of energy industrial equipment, basic data include the equipment ID and communications protocol for the intelligent industrial equipment not accessed;It is described The basic data for the intelligent industrial equipment not accessed that data collector traversal Cloud Server obtains, passes sequentially through and does not access The communications protocol of intelligent industrial equipment sends acquisition to the intelligent industrial equipment newly accessed, until receiving the intelligence newly accessed The successful connection response of energy industrial equipment, the acquisition include the equipment ID for the intelligent industrial equipment not accessed;The number It is received according to collector and sends connection to Cloud Server after the successful connection response of the intelligent industrial equipment newly accessed and succeed in registration The state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by request, Cloud Server, realizes the connection of intelligent industrial equipment Registration.If traversing all intelligent industrial equipments not accessed obtained from Cloud Server does not obtain successful connection response, table Show that the intelligent industrial newly accessed equipment can not establish connection, can not be communicated.It should be noted that the data collector On the opportunity that the basic data that all intelligent industrials not accessed are equipped is obtained from Cloud Server, can be in new intelligent industrial Caching is obtained before equipment access, can also be to obtain update again when new intelligent industrial equips access.
The intelligent industrial equipment newly accessed is received acquisition and is parsed based on its communications protocol, is parsed Equipment ID in acquisition is identical as the equipment ID of itself, then the intelligent industrial equipment newly accessed can be built with data collector It is vertical to connect and communicate, successful connection response is sent to data collector, indicates successful connection.If the intelligent industrial newly accessed Equipment based on the parsing of its communications protocol equipment ID during acquisition is unsuccessful or acquisition and the equipment ID of itself not Together, then connection can not be established, can not be communicated.
The Internet of things system of the intelligent industrial apparatus components formula component of the present invention, realizes distinct interface, brand, agreement Intelligent industrial apparatus components formula the unified data collector of access, solve the problems, such as uniform, realize intelligent work The modular design of industry equipment, convenient for the flexible deployment of intelligent industrial equipment, by way of cloud computing, automatic discrimination intelligence The interface of industrial equipment, brand, agreement establish reading and writing data connection, realize intelligent industrial equipment and data collector from Adapt to adaptation.
Fig. 2 is the first embodiment of the Internet of things system of the intelligent industrial apparatus components formula component of the present invention.
The Internet of things system that the intelligent industrial apparatus components formula of the present invention is set up includes and intelligent industrial equipment connects Data collector, and the Cloud Server that is connected with data collector.
The data collector includes controlling MCU, being connect with the first interface of intelligent industrial equipment connection, with server Second interface and storage unit, first interface be pluggable Internet of Things access assembly module, second interface be it is pluggable Networking component accesses assembly module, and control MCU accesses assembly module, network insertion assembly module and storage with Internet of Things respectively Unit connects.
The Internet of Things access assembly module is pluggable general-purpose interface, and it is a variety of that Internet of Things accesses assembly module support Industrial field bus technology, including RS485, RS232, RS422, ModBus, ProfiBus, CAN, TCP/IP and Ethernet/ IP is supported to communicate with the intelligent industrial of distinct interface equipment, can further be equipped according to intelligent industrial using pluggable mode Interface replaced, 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 Corresponding communications protocol is communicated and is converted, and intelligent industrial equipment is sent to after receiving the order translation-protocol of Cloud Server, The data of intelligent industrial equipment are received, Cloud Server is sent to after translation-protocol.
The storage unit is Flash storages, control MCU and Flash storages according to computing capability and storage requirement into Row selection, control MCU are stored in data and read data from Flash storages in being stored to Flash.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, to be built in the soft of data collector Part is stored in storage unit, encapsulates the communications protocol interacted between data collector and Cloud Server, is turned with agreement Change the function with data transmission.Preferably, cloud data collection module has the equipment note between data collector and Cloud Server Functions, the interactions between data collector and Cloud Server such as volume, parameter setting and data transmission pass through cloud data collection Module carries out.The method that cloud data collection module is realized is executed by controlling MCU, executes the intelligent industrial equipment group of the present invention The method and collecting method that part formula is set up.
After the data collector is connect with Cloud Server, data collector is by cloud data collection module to cloud service Device sending device log-in command (ID and relevant information that include data collector) swashs data collector on Cloud Server Living, 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;Equipment acquisition parameter of the data collector based on acquisition is converted into intelligent industrial and equips corresponding communications protocol It is equipped afterwards to the intelligent industrial and sends acquisition, intelligent industrial equipment will equip return format of the data by communication protocol Response returns to data collector, and the equipment data of reception are sent to Cloud Server and stored by data collector.The number The equipment acquisition parameter for obtaining intelligent industrial equipment by Cloud Server according to collector includes equipment ID, pickup area address, number Can also include further communications protocol, frequency acquisition and upload data frequency according to initial address and data length.Equipment is adopted Collect parameter and transmission acquisition, acquisition intelligent industrial dress are periodically equipped to intelligent industrial according to communications protocol according to frequency acquisition The equipment data of standby upper corresponding data initial address and data length, data collector is by the equipment data buffering of reception to depositing Storage unit;The packing of the equipment data of buffering is periodically encapsulated into the corresponding procotol of Cloud Server according to data frequency is uploaded, It is sent to Cloud Server.
Table one is an exemplary data structure of the equipment acquisition parameter that data collector is obtained from Cloud Server, ginseng The content of number setting includes device id, communications protocol, frequency acquisition, uploads data frequency, pickup area address, data starting Address and data length are specific as follows:
Table one:
The Cloud Server for realizing data acquire and data acquisition in required types of equipment, communication Agreement, access method and data format carry out parametrization management comprising equipment registration service module, military equipment management service mould Block, data acquisition service module and other expansion service modules;The equipment registration service module, military equipment management service mould Block and the module that data acquisition service module is software realization, the method that above-mentioned module is realized are stored in the storage of Cloud Server On medium, 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 equipping the addition of registration service module, 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 supported The different types of equipment of format, the content of record include mainly:Equip provider, the chip of use, use communications protocol and The resolution rules of data packet;
The data acquisition parameters service module needs the equipment acquisition parameter acquired 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 It is long including device id, communications protocol, frequency acquisition, upload data frequency, pickup area address, data initial address and data Degree;Data collector feeds back its collected equipment data to data acquisition parameters service module, is sent after summarizing, being packaged To Cloud Server.
As shown in figure 3, the Internet of things system that the intelligent industrial apparatus components formula based on cloud computing of the present invention is set up, Workflow is as follows:
(1) the equipment registration service module of the Cloud Server obtains intelligent industrial equipment from military equipment management service module Basic data, basic data include equipment ID, protocol type, interface type, equipment access address, data collection cycle, dress Standby provider, registration date and registration people;
Preferably, the basic data can by way of being manually entered or data import mode store cloud clothes The military equipment management service module of business 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 Equipment ID in order, the equipment ID in order is identical as the equipment ID that the intelligent industrial is equipped, then the intelligent industrial equipment with Internet of Things access assembly module foundation connects and communicates, if the intelligent industrial equipment accessed can not parse the order or solution The equipment ID obtained after analysis order is different from the equipment ID of the intelligent industrial equipment accessed, then the intelligent industrial dress accessed The standby assembly module that can not be accessed with Internet of Things is established connection and is communicated;
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, The communications protocol is Host Link agreements, ModeBus agreements or ProfiBus agreements 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, group The intelligent industrial equipment networking of part formula is set up successfully.
(5) data collector obtains intelligent industrial equipment by the data acquisition parameters service module of Cloud Server Equipment acquisition parameter, collect the intelligent industrial equipment equipment data, equipment acquisition parameter of the data collector based on acquisition Acquisition is generated, acquisition is packaged into the communications protocol that intelligent industrial equipment is supported, equips and sends to the intelligent industrial Acquisition, as the data collector equips the current value order sent in collection period to the intelligent industrial;
(6) current value is returned to data by the return format response of the communication protocol and adopted by intelligent industrial equipment Storage, data collector obtain equipment data acquisition parameters setting according to from the data acquisition parameters service module of Cloud Server Content, periodically collect the equipment data for uploading intelligent industrial equipment, and the equipment data of collection summarized, i.e., will The equipment data of acquisition are ranked up according to the format of corresponding procotol, and packing is encapsulated into network insertion assembly module pair The procotol answered;
(7) the network insertion assembly module will be packaged the equipment data of encapsulation by Ethernet to the number of Cloud Server Request, the equipment data persistence that data acquisition service module encapsulates the packing to DB (data are sent according to acquisition service module 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 It is specific as follows for the intelligent industrial equipment (hereinafter referred to as " intelligent industrial equipment ") of Omron PLC model C P1H:
Intelligent industrial equipment uses Host Link agreements, interface to use RS422, protocol format 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 numbers), 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 collectors 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 agreements, 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 and Internet of Things access assembly module, which are established, connects and communicates, and then, CP1H is to Internet of Things access group Part 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 intelligent industrial equipment records are accessed Internet of Things by the equipment registration management serviced component of device to equipment queue, CP1H is had connected Success;
(5) data collector obtains the equipment acquisition parameter of CP1H from the data acquisition parameters service module of Cloud Server, Data collector sends acquisition to CP1H by collection period;
(6) current value is returned to unitized data by the return format response of Host Link agreements and adopted by the CP1H Storage, the content that universal data acquisition device is arranged by equipping data acquisition parameters, collects the equipment number of required CP1H Simply summarized according to and to collected equipment data, packing is encapsulated into the corresponding Ethernet of network insertion assembly module ICP/IP protocol;
It should be pointed out that the data of universal data acquisition device acquisition, are the data of an address range, these numbers According to that may include the parameters such as electric current, voltage, yield, Cloud Server needs point argument address, the parameter type according to setting Deng being parsed to collected data.
(7) the equipment data for being packaged encapsulation are passed through Ethernet by the network insertion assembly module of universal data acquisition device It sends and asks to the data acquisition service area assembly of Cloud Server, data acquisition service component is by data persistence to database.
As shown in figure 5, a kind of preferred embodiment of the data collector of the present 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 are connected with intelligent industrial equipment, second interface is connect with Cloud Server.
Equipment data in the control MCU acquisitions 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 net It closes, control MCU supports multiple kinds, it can be achieved that the equipment data equipped for the intelligent industrial of a variety of different agreements Acquisition, will effectively equip data buffer storage to storage unit, and Cloud Server progress can be transferred to by Ethernet interface Persistent storage can additionally be connect by mobile phone with blue tooth interface, and on-site parameters setting and real time inspection acquisition are carried out Data.
A kind of preferred scheme, control MCU the equipment data of acquisition can also be carried out effectively judgement, multiple filter and Analysis is calculated, obtains effectively equipping data, and will effectively equip data buffer storage to storage unit, is conducive to improve acquisition Equipment data quality and improve equipment data efficiency of transmission.
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 gateways;The first interface includes multiple RS485 interfaces, and belongs to same production line Multiple intelligent industrials equipment connection, RS485 interfaces use SP485 chips, second interface is Ethernet interface, with cloud service Device is connected, and Ethernet interface includes the Ethernet chip of model W5500, it is preferred that intelligent industrial gateway further includes that third connects Mouthful, third interface is blue tooth interface, is connected with mobile phone, blue tooth interface includes the Bluetooth chip of model CC2541, and mobile phone passes through Network is connect with Cloud Server;The input button is for making control MCU resets or the input of other signals, such as intelligent industrial net The start and stop of pass 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 storages.Preferably, the first interface further includes multiple RS232 interfaces, RS232 interface uses SP3232 chips;The intelligent industrial gateway further includes the SWD download mouths being connected with control MCU, and Other retain interface.The model STM32F407 of embedded main control chip, also have 3 SPI interfaces, 3 I2C interfaces, 6 USART interfaces, 2 CAN mouthfuls, 1 Ethernet and 1 USB interface etc. can be achieved at the same time a variety of data communication methods.Bluetooth Part has used bluetooth serial ports module, design is simplified by the way of module, and replace and be easy, for example serial ports turns wifi Module, serial ports turn wireless module etc..
As shown in figure 16, the physical circuit figure of RS485 interfaces, including SP485 chips, the ends R0 of SP485 chips and insertion The ends RS485_TX of formula main control chip connect, and the ends DI are connect with the ends RS485_RX of embedded main control chip, and the ends RE and the ends DE are equal It is connect with the ends RS485_RE of embedded main control chip;Angle is held in the ends A and the ends B of SP485 chips with two of 485 interfaces respectively Connection, is also associated with resistance R21 between the side a and b of SP485 chips;The VCC of SP485 chips terminates 3.3V power supplys, and The ends VCC of SP485 chips are connect through resistance R15 with a port of 485 interfaces, and through capacitance C1 and resistance R14 and 485 Another port of interface connects, the tie point ground connection between capacitance C1 and resistance R14;The ends GND of SP485 chips are grounded.
As shown in figure 17, ethernet interface circuit figure, Ethernet interface include W5500 chips, H1102NL chips and RJ45 chips, W5500 chips are connect with embedded main control chip, and W5500 chips are connect with RJ45 chips, W5500 chips with H1102NL chips connect, and RJ45 chips are connected with H1102NL chips.Specifically, the ends W5500_INTn of W5500 chips, The ends W5500_MOSI, the ends W5500_MISO, the ends W5500_SCLK, the ends W5500_SCSn and the ends W5500_nRST respectively with insertion Formula main control chip connects, and the ends ACTLED, the ends LINKLED connect with RJ45 chips, the ends TXN, the ends TXP, the ends RXN, the ends RXP and H1102NL chips connect, and the ends TD+ and the ends TD- of RJ45 chips are connect with the ends TX+ of H1102NL chips and the ends TX- respectively; The ends NC1 and the ends NC2 of RJ45 chips are connect by resistance R30 and resistance R33 with one end of resistance R31 respectively, resistance R31's The other end is connect through resistance R37 with the ends CT3 of H1102NL chips, the ends RX+ and the ends RX- of RJ45 chips respectively with H1102NL The ends RX+ of chip are connected with the ends RX-, and the ends RX+ of RJ45 chips and the ends RX- respectively with resistance R35 and the one end resistance R38 Connection, resistance R35 and the resistance R38 other ends are in parallel and are connect with the ends CT3 of H1102NL chips through resistance 37, RJ45 chips The ends NC3 and the ends NC4 are connect with resistance R42 and the one end resistance R42 respectively, and resistance R41 and the resistance R43 other ends are in parallel and through electricity Resistance 42 and resistance 37 are connect with the ends CT3 of H1102NL chips.
RS232 interface circuit diagram shown in blue tooth interface circuit as shown in figure 18 and Figure 19.
The intelligent industrial gateway is acquired and is stored more different types of intelligence of same production line by RS485 interfaces Can industrial equipment equipment data, control MCU also effectively judges equipment data, is filtered, is calculated in the present embodiment The processing such as analysis, obtain effectively equipping data, are then encrypted and are uploaded by network mode to effectively equipping data It is stored to Cloud Server.For example, being effectively determined as whether the data of judgement acquisition fall in setting range, if not setting Determine the data for then giving up acquisition in range, the data of acquisition are retained if in range, as judging x > 10, meets, think several According to effective.It can be multiple filter to be filtered, and limit filtration, digital averaging filtering and/or recurrence average can be used to filter And/or middle position filtering and/or merging duplicate data, the unconverted equipment data scheduling algorithm of deletion are filtered, as getting 5 data 2/5/6/4/3 carry out average value filtering and obtain 4 to be exactly filtered value;It is logical to calculate the data that analysis will acquire Cross relevant conversion formula carry out conversion value is calculated, as getting electric current and information of voltage, then utilize formula electric current * voltages The numerical value of power can be calculated in=power.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 service by corresponding intelligent industrial gateway On device, user can be added and be deleted the intelligent work below corresponding intelligent industrial gateway by cell phone application or Cloud Server The equipment information of industry equipment, such as the ID of producing equipment, producer, communications protocol, the address etc. for needing reading data, such intelligence Energy industrial gateway can realize the intelligent acquisition process of equipment data, such as tool when acquisition according to the content of setting The address etc. of body agreement and gathered data, and timing is uploaded onto the server.
Preferably, the communications protocol is Host Link agreements, ModeBus agreements or ProfiBus agreements.
It should be pointed out that the equipment data of transport layer are verified using cycle honor check code CRC16, to ensure The loss of identification equipment data in equipping 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 to intelligent industrial The equipment data of equipment are acquired, and are filtered processing to the equipment data acquired, 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, this The data * ratios of data * ratios of secondary acquisition+last time acquisition are to get to required data, naturally it is also possible to using being filtered Etc. other filter types.
(2) the effectively upload of equipment data:Via two kinds of approach when upload, approach one is via Ethernet interface timing It is uploaded to Cloud Server, data encryption is carried out in upload procedure, so that Cloud Server obtains safely the effective of intelligent industrial equipment Data are equipped, data is avoided to be revealed in transmission process;Approach by blue tooth interface and mobile phone second is that communicated, use The related data that family can be equipped by cell phone application real time inspection intelligent industrial.
Preferably, the mobile phone is communicated by blue tooth interface with intelligent industrial gateway, and corresponding machine is issued using mobile phone System can not only meet 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 and intelligent industrial gateway.
It is noted that after the intelligent industrial gateway transfers data to Cloud Server, data are still in storage unit Caching, after next time collects new data, legacy data is replaced by new data;User can only check intelligent work by mobile phone The data of industry gateway acquisition.
Preferably, as shown in fig. 7, when the mobile phone is connect and communicated with intelligent industrial gateway by blue tooth interface, may be used also To be configured to intelligent industrial gateway by cell phone application, 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 with intelligent industrial gateway by blue tooth interface;
(2) cell phone application obtains intelligent industrial gateway data automatically, and intelligent industrial gateway data fills for intelligent industrial Standby equipment information, such as equipment ID, manufacturer, communications protocol, the address etc. for needing reading data;
(3) user is equipped by cell phone application add or delete intelligent industrial, 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 The ID of such as producing equipment, it producer, communications protocol, needs to read the address of data;
(5) the intelligent industrial gateway carries out equipment data acquisition according to new equipment information to intelligent industrial equipment;
(6) the intelligent industrial gateway is processed the equipment data acquired, obtains effectively equipping number According to;
(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 button.
As shown in figure 8, the 3rd embodiment of the Internet of things system for the intelligent industrial equipment establishment of the present invention.
The Internet of things system that the intelligent industrial equipment of the present embodiment is set up includes the data with intelligent industrial equipment connection Collecting device and the Cloud Server being connect with data acquisition equipment.The Internet of Things that the intelligent industrial equipment of the present embodiment is set up System may be used the method that the assembly type of the present invention is set up, can also use other manner component.
The data acquisition equipment includes data processing module, and data acquisition equipment is connected with intelligent industrial equipment, is 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 built Formwork erection block connect, for from data model processing establish module obtain data processing rule, judge equip data upload before whether It needs processing and equipment data is handled according to data processing rule.The method that data processing module is realized passes through number It is executed according to the control MCU of collecting device.
Table two is system convention table, shows the data structure of data processing rule, specific as follows:
Table two:
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 processing procedure.
It is an example of the logic that data processing module carries out data processing using data processing rule below:
Determine that data processing module rule of correspondence ID is CJQ001;
Corresponding rule process process RULE_PROC processing procedures are 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 of a data processing, quotes its number to acquisition Judge to delete latter item according to repetition is carried out.PROC_SJCL cjq001 ergodic datas repeat if two adjacent datas exist Then 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, the Three interfaces are blue tooth interface, and control MCU is connected by first interface and intelligent industrial equipment, for acquiring intelligent industrial equipment Equipment data in operational process, control MCU are connect with Cloud Server by second interface, are connected by third interface and mobile phone It connects;The data processing module realizes that control MCU executes data processing rule to realize data processing mould by application program Block.
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, region two is interior to be arranged n intelligent industrial Equipment, n >=1;The data acquisition equipment can be simultaneously in the intelligent industrial equipment operational process in pickup area one and region two Equipment data.
As shown in figure 9, the workflow of the data processing module for the data acquisition equipment.
Data acquisition equipment is connected with intelligent industrial equipment, 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 being established from data model processing Module obtains the model of data processing rule, if there is model is then processed according to data processing rule model, then Data are uploaded, directly upload data if without model.Certainly, it can also first cache after gathered data, periodically exist Carry out working process and the upload of data.Data acquisition equipment is connect with Cloud Server, is such as connected with military equipment management service module It connects, corresponding data processing rule is obtained by device id and/or device type, be preferentially device id, feature is set without specified Standby ID defines data processing model, takes the corresponding default data processing model of the device type.Specifically, data acquisition equipment It being connect with Cloud Server, the device id equipped first by intelligent industrial obtains the rule ID of corresponding data processing rule, Then module is established from data model processing by rule ID and obtains corresponding data processing rule;If by specifically setting The rule ID of any data processing rule has not been obtained in standby ID, then it is corresponding to search acquisition device type by device type The rule ID list of the data processing rule of acquiescence.
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 receive acquired by data acquisition equipment it is original 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 collection with message reception module, data model processing Faciation connects, and message distribution rule is obtained for obtaining equipment data from message reception module, establishing module from data model processing 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 all same of the message distribution rule and data processing rule, Only rule ID is different, and rule process process RULE_PROC is different.
As shown in Figure 10, it 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 Select satisfactory message processing module and dispatch messages in message processing module cluster, it is right in message processing module cluster The message processing module answered is handled and is cached.
The message processing module cluster includes multiple message processing modules, number n, n >=1, message processing module collection It mines massively and uses distributed frame, can increase or decrease of message processing module according to the size extended resources of business scenario Number, message processing module are used to obtain equipment data from message distribution module, are handled and cached.
The asynchronous message processing module establishes module with message processing module cluster, database, data model processing It is connected, is obtained from asynchronous message for obtaining equipment data from message processing module cluster, establishing module from data model processing It manages rule and equipment data is handled and are transferred to database according to asynchronous message processing rule and store.It needs , it is noted that the data structure and processing logic all same of the asynchronous message processing rule and data processing rule, are only advised Then ID is different, and rule process process RULE_PROC is different.Asynchronous message processing module comes from message handling services to coming from The processing that the equipment data of device cluster carry out includes data roughing, data fining-off and data persistence, data roughing packet Include to equipment parameter be allocated and keep in, data fining-off include data summarization, data result operation and reach data The work that can be used for showing, data persistence preserve result data to database.As asynchronous message processing module is each M items are respectively obtained from each message processing module of message processing module cluster and equip data, and by the equipment data of acquisition from respectively disappearing It deletes in breath processing application server, M >=1, then carries out the M items of each Message Processing application server equipment data respectively Classification, and by of a sort equipment Data Integration, then it is stored in database application server.
As shown in figure 11, it 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 a data model continued to optimize, with data processing module, message distribution module and asynchronous message Processing module is connected, and provides data processing rule, message distribution rule and asynchronous data processing rule respectively for three, and give Corresponding module (including data processing module, message distribution module and asynchronous message processing module) provides service.
The data model is the set of burst of data processing rule, and data processing rule includes rule ID, processing sequence Number, rule declaration, rule process process, creation time, the information such as founder;The rule process process is one section of processing Logic can correspond to the storing process of an extension, the business scenario of calling rule is needed during rule ID alignment processing, Data processing module, message distribution module and asynchronous message processing module are based respectively on respective rule ID dynamic access rule Processing procedure, the corresponding storing process of executing rule processing procedure execute the business scenario for needing calling rule.For example, message Distribution module establishes module from data model processing based on the rule ID of message distribution and obtains corresponding rule process process conduct Equipment data are distributed to message processing module cluster by message distribution rule, the corresponding storing process of executing rule processing procedure Message processing module;Asynchronous message processing module establishes module with data model processing and is connected, and is based on asynchronous Processing for removing Rule ID from data model processing establish module to obtain corresponding rule process process regular as asynchronous message processing, hold The corresponding storing process of line asynchronous Message Processing rule;Data processing module establishes module with data model processing and is connected, and is based on The rule ID of data processing establishes module from data model processing and obtains corresponding rule process process as data processing rule Then, the corresponding storing process of data processing rule is executed to handle equipment data.Data processing module, message distribution mould Block and asynchronous message processing module, acquiescence has set corresponding rule ID when passing through application deployment, then is retrieved and corresponded to by rule ID Data processing rule.Each corresponding rule ID of module is unique.
Further, data processing rule further includes processing serial number, data processing module, message distribution module and asynchronous is disappeared Breath processing module can establish module from data model processing respectively and obtain multiple data processing rules, then according to processing sequence Number sequence execute, execute and need the business scenario of calling rule.Such as asynchronous message processing rule can obtain it is multiple asynchronous Message 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 access data processing in real time Rule, convenient for being adjusted in the acquisition of demand pairs evidence, distribution rules.
Preferably, the Cloud Server is the application server cluster that more application servers are constituted, message sink mould Block, message distribution module, asynchronous message processing module, database and data model treatment are established module and are answered by being built in It is realized with the application program on server, application server cluster includes being deployed with message reception module and message distribution module Message sink distribution application server, be deployed with message processing module message processing module application server, be deployed with number According to the database application server in library, it is deployed with the asynchronous message processing application server and deployment of asynchronous message processing module There is the data model processing that module is established in data model processing to establish application server.It is pointed out that each application server The data volume that can be handled as needed, is increased and decreased, if data volume very little, can above-mentioned each module be set to one or two On a application server;Further, Cloud Server can also use virtual server to realize, such as Ali's cloud, Tencent's cloud With Amazon cloud etc..Cloud Server includes storage medium, is stored with a kind of upload side of Internet of Things gathered data of the realization present invention The computer program of method.
Invention additionally discloses a kind of method for uploading of Internet of Things gathered data, the intelligent industrial equipment groups of 3rd embodiment The Internet of things system of part 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, such as including equipment ID should according to different according to the data that equipment acquisition parameter is acquired from the upper corresponding data initial address of equipment and data length Intelligent industrial is equipped, and data content may be current value, voltage value, can also be the performance number after calculating.In addition, data are adopted Collection equipment can also provide the operating condition data of intelligent industrial equipment connected to it, including equipment operation current state, dress Standby fault data, equipment run time, equipment yield, equipment acceptance number.(2) data processing module of the data collector Module, which is established, from data model processing obtains data processing rule, if original equipment data are handled before upload, Then data processing module is handled original equipment data by the data processing rule, obtains the dress of single treatment Standby data are simultaneously transferred to message reception module, and otherwise, the original equipment data of acquisition are transferred directly to by data acquisition equipment Message reception module;
Preferably, the data processing rule includes effectively being judged the equipment data of acquisition, if the equipment of acquisition Data are not given up then in setting range;The data collector is filtered the equipment data of acquisition and is deposited with reducing The data of storage, described is filtered including digital averaging filtering and/or recurrence average filtering and/or middle position filtering and/or conjunction And duplicate data;And retain abnormal data, alert data.
(3) the message distribution module of the Cloud Server establishes module from data model processing and obtains message distribution rule;
Preferably, (i.e. equipment comes for the data type of the message distribution rule Main Basiss equipment data and/or region The geographic area in source) and the foundation such as available server (application server of i.e. idle message processing module deployment), To carry out resource allocation, realizes load balancing, failure transfer, improve oncurrent processing ability.
(4) dress that the message distribution module of the Cloud Server receives message reception module according to message distribution rule Standby data distribute to the message processing module cluster of Cloud Server;
(5) message processing module of the message processing module cluster handles the equipment data of reception, obtains two Then the equipment data of secondary processing cache the equipment data of after-treatment;
(6) asynchronous message processing module obtains the equipment data of after-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, according at asynchronous message Then the reason rule equipment data that are handled the equipment data of after-treatment and handled three times will be handled three times The database that equipment data are transferred to Cloud Server is stored.The asynchronous message processing rule is that asynchronous message handles mould Block respectively obtains M items from each message processing module of message processing module cluster every time and equips data, and by the equipment data of acquisition It is deleted from each Message Processing application server, M >=1, then by the M items of each Message Processing application server equipment data point Do not classify, and by of a sort equipment Data Integration, be 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 executes code correspondence;
Message distribution module establishes module from data model processing based on the rule ID of message distribution and obtains corresponding rule Processing procedure will as the corresponding storing process of executing rule processing procedure of message distribution rule as message distribution rule Equipment data distribute to the message processing module of message processing module cluster;
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 disappear The corresponding storing process of breath processing 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 mould Type processing establishes module and obtains corresponding rule process process as data processing rule, and it is corresponding to execute data processing rule Storing process handles equipment data.
As shown in figure 13, it is the fourth embodiment for the Internet of things system that intelligent industrial apparatus components formula of the invention is set up, It is specific as follows by taking the equipment data and data that acquire NA1 omnipotent breakers upload as an example:
NA1 omnipotent breakers are connect with intelligent industrial gateway, and intelligent industrial gateway is data acquisition equipment comprising MCU is controlled, and RS485 interfaces, Ethernet interface and the storage unit being connect with control MCU, control MCU support a variety of logical Agreement is interrogated, is connected with NA1 omnipotent breakers by RS485 interfaces, is connected with Cloud Server by Ethernet interface.It is described Cloud Server is the server cluster of more application server compositions, and application server may include being deployed with message sink Module and the fast message of message distribution mould receive distribution application server, are deployed with the Message Processing application of message processing module Server is deployed with the data server of database, is deployed with the data model processing foundation that module is established in data model processing Application server is deployed with the asynchronous message processing application server of asynchronous message processing module, and above-mentioned each module is by soft Part is realized;The message data volume handled as needed is respectively set more corresponding application servers and constitutes application server More Message Processing application servers can be arranged to constitute Message Processing for example, in the case of data volume is very big in cluster Application server cluster can also increase and decrease as needed;When data volume is smaller, each module can also be deployed in an application On server, such as message reception module, message distribution module and data model treatment are established into module and are deployed in same answer With on server.Certainly, the Cloud Server can also use virtual server to realize, such as Ali's cloud, Tencent's cloud and Ya Ma Inferior cloud etc..
(1) the control MCU of the intelligent industrial gateway executes data processing rule to realize data processing module, to adopting The equipment data of the NA1 omnipotent breakers collected 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, number It is equipped with initial data processing rule according to processing module, periodically can also establish module from the processing of the data model of Cloud Server Obtain update.For example,
Initial data processing rule is:With electric current, voltage, the relevant data of power, merges repetitive rate and reach 95% Data delete the unconverted data of state in intelligent industrial equipment operational process, retain whole abnormal datas and alarm number According to every five seconds for example uploads data by narrowband Internet of Things NB-IOT communication modes.
It should be pointed out that the data processing rule can be according to the statistical framework of the equipment data quarterly uploaded 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 intelligence Industrial gateway.
(2) the message sink distribution application server receives equipment data and carries out load balancing to the data of reception, It is temporary to be assigned to idle Message Processing application server progress message;The message sink distribution application server foundation disappears Breath distribution rules and the application process resource of current message processing application server are allocated, message sink distribution application clothes Device be engaged in 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 regions HD and uses NB- IOT communication modes, another group of equipment data are from FHD and use non-NB-IOT communication modes, from the regions HD and use NB- The equipment data of IOT communication modes are limited using Message Processing application server 1, and 1 busy of Message Processing application server is sentenced Whether disconnected Message Processing application server 2 is idle, if idle, the equipment data from the regions HD are distributed to Message Processing Application server 2 otherwise waits for the processing of 1 idle of Message Processing application server;It every 5 minutes, obtains current each Message Processing and answers With the resource service condition (referring mainly to monitoring CPU and the service condition of memory) of server, when resource utilization is more than 90% When, data preservation is carried out, when memory space (referring mainly to the application server for storing data) is less than 100G, record is worked as Preceding available resources optimize as initial data feedback for data model, to judge whether to increase Message Processing application service Device;Using non-NB-IOT communication modes and from the equipment data in the regions FHD, then Message Processing application server is preferentially used 2, data processing rule is identical as above-mentioned rule.The resource service condition of Message Processing application server, is primarily referred to as monitoring The service condition of CPU and memory, memory space are primarily referred to as the memory space that data store corresponding server.
Preferably, (data of overall process generation monthly are referred to, including all to the data of current data process Have the data of record) and processing procedure in application server resource utilization analyzed (can also with artificial judgment Pass through regular intelligent decision), decide whether to change message distribution processing rule, includes whether to increase Message Processing application service Device.
(3) as shown in figure 14, the asynchronous message processing module of the asynchronous message processing application server obtains respectively successively In Redis (key-value storage systems) on Message Processing application server earliest 50 temporary equipment data and by this A little temporary equipment data are deleted from the Redis of each Message Processing application server, and every temporary equipment data include electricity The data of stream, voltage, frequency and power factor (PF), then in a manner of asynchronous process to 50 electric currents and voltage data at 50 A data are managed and formed, the data of 50 frequencies and power factor (PF) are processed and formed with 50 B datas, handle A data And B data, deposit database of obtaining a result.
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, cannot recognize The specific implementation of the fixed present invention is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, Without departing from the inventive concept of the premise, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the present invention Protection domain.

Claims (10)

1. the Internet of things system that a kind of intelligent industrial apparatus components formula is set up, which is characterized in that it includes being equipped with intelligent industrial The data collector of connection and the Cloud Server being connect with data collector;The data collector includes control MCU and intelligence Can the first interface of industrial equipment connection, the second interface and storage unit that are connect with Cloud Server, control MCU respectively with first Interface, second interface are connected with storage unit;
The data collector obtains the basic data that all intelligent industrials not accessed are equipped, basic data packet from Cloud Server Include the equipment ID and communications protocol of the intelligent industrial equipment not accessed;
When new intelligent industrial equips access, the intelligent industrial not accessed that data collector traversal Cloud Server obtains is equipped Basic data, pass sequentially through do not access intelligent industrial equipment communications protocol to newly access intelligent industrial equipment send adopt Collection order, until receiving the successful connection response of the intelligent industrial equipment newly accessed, the content of acquisition includes not accessing The equipment ID of intelligent industrial equipment after data collector receives successful connection response, sends connection to Cloud Server and succeeds in registration Request, the state that the intelligent industrial newly accessed is equipped is adjusted to have accessed by Cloud Server.
2. the Internet of things system that intelligent industrial apparatus components formula according to claim 1 is set up, it is characterised in that:New access Intelligent industrial equipment receive acquisition and parse, parse equipment ID and the intelligent industrial equipment obtained after acquisition It is identical to equip ID, then intelligent industrial equipment is connected and communicated with data collector foundation, which equips adopts to data Storage sends successful connection response.
3. the Internet of things system that intelligent industrial apparatus components formula according to claim 1 is set up, it is characterised in that:The number The basic data and equipment acquisition parameter for obtaining the intelligent industrial accessed equipment by Cloud Server according to collector, have been accessed Intelligent industrial equipment basic data include intelligent industrial equipment equipment ID, communications protocol and equipment access address;
Equipment acquisition parameter of the data collector based on acquisition is converted into intelligent industrial and equips the backward intelligence of corresponding communications protocol Energy industrial equipment sends acquisition, and intelligent industrial equipment returns to equipment data by the return format response of communication protocol The equipment data of reception are sent to Cloud Server by data collector, data collector.
4. the Internet of things system that intelligent industrial apparatus components formula according to claim 3 is set up, it is characterised in that:The number The equipment acquisition parameter for obtaining intelligent industrial equipment by Cloud Server according to collector includes equipment ID, data initial address sum number According to length.
5. the Internet of things system that intelligent industrial apparatus components formula according to claim 4 is set up, it is characterised in that:The dress Standby acquisition parameter further includes frequency acquisition and uploads data frequency, and equipment acquisition parameter is periodically assisted according to communication according to frequency acquisition It discusses to equip to intelligent industrial and sends acquisition, the dress of acquisition intelligent industrial equipment upper corresponding data initial address and data length Standby data, data collector is by the equipment data buffering of reception to storage unit;According to upload data frequency periodically by buffering Equipment data packing is encapsulated into the corresponding procotol of Cloud Server, is sent to Cloud Server.
6. the Internet of things system that intelligent industrial apparatus components formula according to claim 3 is set up, it is characterised in that:The number The equipment data of acquisition are effectively judged according to collector, are given up if the equipment data acquired are not in setting range;Institute It states data collector to be filtered the equipment data of acquisition to reduce the data of storage, described is filtered including calculating Art average filter and/or recurrence average filtering and/or middle position filtering and/or merging duplicate data.
7. the Internet of things system that intelligent industrial apparatus components formula according to claim 1 is set up, it is characterised in that:Described Cloud Server includes equipment registration service module, military equipment management service module and data acquisition parameters service module;Equipment registration Service module needs the intelligent industrial of networking to equip for registering, and military equipment management service module is communicated with data collector, data The intelligent work that collector is obtained the basic data of the intelligent industrial not accessed equipment and accessed by military equipment management service module The basic data of industry equipment.
8. the Internet of things system that intelligent industrial apparatus components formula according to claim 1 is set up, it is characterised in that:The number According to collector first interface support multiple fieldbus technology, including RS485, RS232, RS422, ModBus, Profibus, CAN and Ethernet/IP;The second interface support multiple network access technology of the data collector, including Ethernet, GPRS, Wifi and NB-IOT;The communications protocol is Host Link agreements, ModeBus agreements or ProfiBus agreements.
9. the Internet of things system that intelligent industrial apparatus components formula according to claim 1 is set up, it is characterised in that:Described One interface and second interface are plug-in general-purpose interface;The storage unit stores for Flash, and control MCU can be single to storage First deposit/reading data.
10. a kind of storage medium, is stored with computer program, it is used for data collector, which to execute following intelligence The method that energy industrial equipment assembly type is set up,
The basic data that all intelligent industrials not accessed are equipped is obtained from Cloud Server, basic data includes the intelligence not accessed The equipment ID and communications protocol of industrial equipment;
When new intelligent industrial equips access, the basic number for the intelligent industrial equipment of traversal Cloud Server acquisition not accessed According to, the communications protocol for passing sequentially through the intelligent industrial equipment not accessed sends acquisition to the intelligent industrial equipment newly accessed, Until receiving the successful connection response of the intelligent industrial equipment newly accessed, the content of acquisition includes the intelligent industrial not accessed The equipment ID of equipment;
After receiving successful connection response, the request succeeded in registration of connection is sent to Cloud Server, Cloud Server will be accessed newly The state of intelligent industrial equipment is adjusted to have accessed.
CN201810369744.9A 2018-04-24 2018-04-24 The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up Pending CN108400993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810369744.9A CN108400993A (en) 2018-04-24 2018-04-24 The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810369744.9A CN108400993A (en) 2018-04-24 2018-04-24 The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up

Publications (1)

Publication Number Publication Date
CN108400993A true CN108400993A (en) 2018-08-14

Family

ID=63099513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810369744.9A Pending CN108400993A (en) 2018-04-24 2018-04-24 The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up

Country Status (1)

Country Link
CN (1) CN108400993A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924166A (en) * 2018-08-29 2018-11-30 广州巨时信息科技有限公司 A kind of information processing method based on narrowband Internet of Things
CN109144000A (en) * 2018-08-23 2019-01-04 珠海格力电器股份有限公司 A kind of industry acquisition transmission control system and its real-time control method
CN109164776A (en) * 2018-10-10 2019-01-08 江苏极熵物联科技有限公司 A kind of distribution type data collection method towards industrial equipment
CN109257367A (en) * 2018-10-18 2019-01-22 浙江大学台州研究院 A kind of data communication protocol and implementation method for industrial internet-of-things terminal
CN109302467A (en) * 2018-09-19 2019-02-01 武汉斗鱼网络科技有限公司 Message distributing method, device, terminal and storage medium
CN109802943A (en) * 2018-12-18 2019-05-24 武汉华工赛百数据系统有限公司 Data acquisition device
CN110198348A (en) * 2019-05-21 2019-09-03 四川精创国芯科技有限公司 A kind of Internet of Things universal intelligent equipment acquisition platform
CN110989524A (en) * 2019-12-06 2020-04-10 福建和盛高科技产业有限公司 Multifunctional industrial gateway
CN111176171A (en) * 2019-12-31 2020-05-19 南京深度智控科技有限公司 Building thing networking data acquisition device based on distributing type cloud framework
CN111897296A (en) * 2020-07-08 2020-11-06 中国电子科技集团公司第四十一研究所 Intelligent management system for industrial production line based on 5G communication
CN113704369A (en) * 2021-09-02 2021-11-26 宏桥高科技集团有限公司 System and method for adapting IOT equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660498A (en) * 2015-03-17 2015-05-27 联想(北京)有限公司 Gateway equipment and information processing method
CN105785958A (en) * 2016-05-08 2016-07-20 杭州集控软件有限公司 Smart factory-based multi-function data acquisition device, acquisition system and method
CN106549836A (en) * 2016-09-30 2017-03-29 北京邦天信息技术有限公司 A kind of Internet of Things IOT equipment accesses the system of home gateway, apparatus and method
CN106774209A (en) * 2016-12-26 2017-05-31 北京梵天智能工业科技有限公司 A kind of industrial equipment collecting method and device
CN107040459A (en) * 2017-03-27 2017-08-11 高岩 A kind of intelligent industrial secure cloud gateway device system and method
CN107770022A (en) * 2017-10-20 2018-03-06 深圳益邦阳光有限公司 Collecting method, electronic equipment and storage medium based on rtu protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660498A (en) * 2015-03-17 2015-05-27 联想(北京)有限公司 Gateway equipment and information processing method
CN105785958A (en) * 2016-05-08 2016-07-20 杭州集控软件有限公司 Smart factory-based multi-function data acquisition device, acquisition system and method
CN106549836A (en) * 2016-09-30 2017-03-29 北京邦天信息技术有限公司 A kind of Internet of Things IOT equipment accesses the system of home gateway, apparatus and method
CN106774209A (en) * 2016-12-26 2017-05-31 北京梵天智能工业科技有限公司 A kind of industrial equipment collecting method and device
CN107040459A (en) * 2017-03-27 2017-08-11 高岩 A kind of intelligent industrial secure cloud gateway device system and method
CN107770022A (en) * 2017-10-20 2018-03-06 深圳益邦阳光有限公司 Collecting method, electronic equipment and storage medium based on rtu protocol

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144000A (en) * 2018-08-23 2019-01-04 珠海格力电器股份有限公司 A kind of industry acquisition transmission control system and its real-time control method
CN108924166A (en) * 2018-08-29 2018-11-30 广州巨时信息科技有限公司 A kind of information processing method based on narrowband Internet of Things
CN109302467A (en) * 2018-09-19 2019-02-01 武汉斗鱼网络科技有限公司 Message distributing method, device, terminal and storage medium
CN109164776A (en) * 2018-10-10 2019-01-08 江苏极熵物联科技有限公司 A kind of distribution type data collection method towards industrial equipment
CN109257367A (en) * 2018-10-18 2019-01-22 浙江大学台州研究院 A kind of data communication protocol and implementation method for industrial internet-of-things terminal
CN109802943B (en) * 2018-12-18 2021-08-10 武汉华工赛百数据系统有限公司 Data acquisition device
CN109802943A (en) * 2018-12-18 2019-05-24 武汉华工赛百数据系统有限公司 Data acquisition device
CN110198348A (en) * 2019-05-21 2019-09-03 四川精创国芯科技有限公司 A kind of Internet of Things universal intelligent equipment acquisition platform
CN110989524A (en) * 2019-12-06 2020-04-10 福建和盛高科技产业有限公司 Multifunctional industrial gateway
CN111176171A (en) * 2019-12-31 2020-05-19 南京深度智控科技有限公司 Building thing networking data acquisition device based on distributing type cloud framework
CN111897296A (en) * 2020-07-08 2020-11-06 中国电子科技集团公司第四十一研究所 Intelligent management system for industrial production line based on 5G communication
CN113704369A (en) * 2021-09-02 2021-11-26 宏桥高科技集团有限公司 System and method for adapting IOT equipment
CN113704369B (en) * 2021-09-02 2024-03-15 宏桥高科技集团有限公司 System and method for adapting to IOT equipment

Similar Documents

Publication Publication Date Title
CN108400993A (en) The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up
CN108769121A (en) Intelligent industrial equips the method for uploading of internet of things data acquisition system and gathered data
CN108833267A (en) Intelligent industrial gateway
CN107390650B (en) A kind of data collection system based on Internet of Things and the data compression method based on the system
CN100424605C (en) Intelligent management apparatus and management method for distributed control network based on CAN bus
CN103761309A (en) Operation data processing method and system
CN104699736B (en) A kind of distributed larger scale data acquisition system and method based on movable equipment
CN112925646A (en) Electric power data edge calculation system and calculation method
CN103152393A (en) Charging method and charging system for cloud computing
CN103095498B (en) Bill record collection method and system
CN111586120A (en) Internet of things gateway equipment, data transmission method, storage medium and installation method
CN112698953A (en) Power grid intelligent operation and detection platform based on micro-service
CN104298194B (en) The data volume compression method of data is gathered and transmitted in elevator remote monitoring system
CN103561078A (en) Telecom operation system and service implementation method
CN103795575A (en) Multi-data-centre-oriented system monitoring method
CN104363278A (en) Mass terminal communication access system
CN108924228B (en) Industrial internet optimization system based on edge calculation
CN114401284A (en) Real-time data acquisition and transmission system and method for fixed pollution source treatment working condition
CN102006204A (en) Distributed resolution system and method for monitoring data stream in real time
CN108924203A (en) Data copy self-adapting distribution method, distributed computing system and relevant device
CN114945032A (en) Electric power internet of things terminal data access system, method, device, equipment and medium
CN101197714B (en) Method for centrally capturing mobile data service condition
CN102882979A (en) System and method for collecting, gathering and distributing data on basis of cloud computing system
CN102034163A (en) Method and system for managing asset information of telecommunication equipment
CN109917742A (en) Programmable logic controller (PLC) PLC system, data uploading method

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

Application publication date: 20180814

RJ01 Rejection of invention patent application after publication