Background technology
Daily pursuits are connected to into Internet technology to develop rapidly, family's epoch are just being stepped into.Internet of Things intelligent equipment collectionInto facing the problem of the following aspects:On the one hand, it is impossible to ensure data in the case of unstable networks, multi-user access, countAccording to transmitting.Such as in the case of unstable networks, if data are transmitted without problem, how to ensure that data are not repeatedSend, how connection is reconnected after disconnecting.On the other hand, intelligent equipment agreement is complicated, without unified standard criterion, hasA little equipment support industry internal standard specification, and some are custom protocols.So as to the road band for making the transition intellectuality to conventional hardware manufacturerCarry out predicament:Highly difficult, complexity, it is difficult to realize various smart machines to be carried out integrated, and provide unified interface service.
Application content
One purpose of the application is to provide a kind of data transfer, the method and apparatus for showing, solves nothing in prior artMethod ensures data in the case of unstable networks, multi-user access, and what reliable data transmission and not unified interface were serviced askingTopic.
According to the one side of the application, there is provided a kind of method for being used for data transfer at network equipment end, the sideMethod includes:
The control data of the smart machine of the unified data form sent based on user equipment, obtains described
The running state information of smart machine;
The running state information is standardized according to the unified data form, number to be shown is obtainedAccording to;
The data to be shown are transmitted to user equipment by message queue remote measurement host-host protocol.
Further, the running state information is standardized according to the unified data form, is obtainedData to be shown, including:
By the affiliated subscriber device information of the smart machine in the running state information, device version information, setThe private information of standby manufacturer's information, harvester coding information and equipment is processed as field, and by the field according to the unificationData form be standardized, obtain data to be shown.
Further, methods described includes:
According to including air conditioner ventilation subsystem, gate inhibition's ladder control subsystem, elevator subsystem, energy consumption monitoring subsystem, fireOne kind in alert sub-system, night watching subsystem, security alarm subsystem, video monitoring subsystem and parking field subsystem is appointedSeveral combinations determine the affiliated subscriber device information of the smart machine.
Further, the control data of the smart machine of the unified data form for being sent based on user equipment, obtains instituteThe running state information of smart machine is stated, including:
The control data of the smart machine of the unified data form sent based on user equipment, determines the smart machineCorresponding host-host protocol;
The running state information of the smart machine is obtained by the corresponding host-host protocol of the smart machine.
Further, the unified data form includes JSON data forms or XML data format,
The running state information of the smart machine is standardized according to unified data form, obtains waiting to showThe data shown, including:
The running state information of the smart machine is standardized according to unified data form, JSON is obtainedThe data to be shown of data form or the data to be shown of XML data format.
Further, the private information of the equipment includes common logical of the smart machine of same type but different modelWith resource parameters, and the distinctive reserved resource parameters of smart machine of each model.
Further, the control data of the smart machine of the unified data form for being sent based on user equipment, is also included:
The intelligence for receiving the unified data form that the user equipment sends by message queue remote measurement host-host protocol setsStandby control data.
According to the application another aspect, there is provided a kind of method for being used for data display at user equipment end, the sideMethod includes:
The control data of smart machine is sent to the network equipment according to unified data form;
The operation shape by the smart machine that the network equipment sends is received by message queue remote measurement host-host protocolState information be standardized according to the unified data form after data to be shown, and show described to be shownData.
Further, the data to be shown include the affiliated subsystem of the smart machine in the running state informationThe field of the private information of system facility information, device version information, equipment vendors' information, harvester coding information and equipment.
Further, methods described also includes:
Show according to include air conditioner ventilation subsystem, gate inhibition ladder control subsystem, elevator subsystem, energy consumption monitoring subsystem,One kind in fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystem and parking field subsystemOr appoint the affiliated subscriber device information of the smart machine determined by several combinations.
Further, the control data of smart machine is sent to the network equipment according to unified data form, including:
By message queue remote measurement host-host protocol by the control data of smart machine according to unified data form send toThe network equipment.
Further, the unified data form includes JSON data forms or XML data format.
According to the application another aspect, a kind of network equipment of data transfer is additionally provided, the network equipment includes:
Harvester, for the control based on the smart machine of the unified data form of user equipment transmission
Request, obtains the running state information of the smart machine;
Processing meanss, for the running state information to be standardized according to the unified data form,Obtain data to be shown;
Transmitting device, for by the data to be shown by message queue remote measurement host-host protocol transmit to
User equipment.
Further, the processing meanss are used for:
By the affiliated subscriber device information of the smart machine in the running state information, device version information, setThe private information of standby manufacturer's information, harvester coding information and equipment is processed as field, and by the field according to the unificationData form be standardized, obtain data to be shown.
Further, the processing meanss are used for:
According to including air conditioner ventilation subsystem, gate inhibition's ladder control subsystem, elevator subsystem, energy consumption monitoring subsystem, fireOne kind in alert sub-system, night watching subsystem, security alarm subsystem, video monitoring subsystem and parking field subsystem is appointedSeveral combinations determine the affiliated subscriber device information of the smart machine.
Further, the harvester is used for:
The control data of the smart machine of the unified data form sent based on user equipment, determines the smart machineCorresponding host-host protocol;
The running state information of the smart machine is obtained by the corresponding host-host protocol of the smart machine.
Further, the unified data form includes JSON data forms or XML data format,
The processing meanss are used for:
The running state information of the smart machine is standardized according to unified data form, JSON is obtainedThe data to be shown of data form or the data to be shown of XML data format.
Further, the private information of the equipment includes common logical of the smart machine of same type but different modelWith resource parameters, and the distinctive reserved resource parameters of smart machine of each model.
Further, the harvester is additionally operable to:
The intelligence for receiving the unified data form that the user equipment sends by message queue remote measurement host-host protocol setsStandby control data.
According to another aspect of the application, a kind of user equipment of data display is additionally provided, the user equipment includes:
Dispensing device, for the control data of smart machine to be sent to the network equipment according to unified data form;
Display device, for being sent the intelligence by the message queue remote measurement host-host protocol reception network equipmentThe running state information of equipment be standardized according to the unified data form after data to be shown, and showThe data to be shown.
Further, the data to be shown include the affiliated subsystem of the smart machine in the running state informationThe field of the private information of system facility information, device version information, equipment vendors' information, harvester coding information and equipment.
Further, the display device is additionally operable to:
Show according to include air conditioner ventilation subsystem, gate inhibition ladder control subsystem, elevator subsystem, energy consumption monitoring subsystem,One kind in fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystem and parking field subsystemOr appoint the affiliated subscriber device information of the smart machine determined by several combinations.
Further, the dispensing device is used for:
By message queue remote measurement host-host protocol by the control data of smart machine according to unified data form send toThe network equipment.
Further, the unified data form includes JSON data forms or XML data format.
Compared with prior art, the smart machine that the application passes through the unified data form based on user equipment transmissionControl data, obtains the running state information of the smart machine;By the running state information according to the unified dataForm is standardized, and obtains data to be shown;By the data to be shown by message queue remote measurement transmission associationView is transmitted to user equipment.Integrated, standardization, Neng Gouwei are carried out to the running state information that various smart machine multi-protocols are obtainedUpper-layer user provides abundant data, services, unified data form, can reach consensus standard, the standardization of products, and withWhen upper-layer user is communicated, message queue remote measurement host-host protocol is employed, it is ensured that transmission reliability and safety.
Specific embodiment
The application is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is illustrated and illustrated according to a kind of method flow for being used for data transfer at network equipment end of the application one sideFigure;Methods described includes step S11~step S13:
In step s 11, the control data of the smart machine of the unified data form for being sent based on user equipment, is obtainedThe running state information of the smart machine;In the embodiment of the application one, the control data that user equipment sends is included in userThe inquiry request and control command information of the smart machine of equipment end, control of the network equipment according to accessed user equipmentRequest, correspondence finds the smart machine for needing inquiry or controlling, so as to gather the running state information of the smart machine, itsIn, running state information includes that smart machine runs the warning message of relevant parameter and/or smart machine, such as air conditioner intelligent setsStandby, its operation relevant parameter includes indoor temperature, design temperature, on off state, operational mode, the air quantity parameter of air-conditioning;AmmeterThe operation relevant parameter of smart machine includes A phase voltages, B phase voltages, C phase voltages, A phase currents, B phase currents, the C phases electricity of ammeterStream, system active power, consumption active electrical degree parameter.The warning message of smart machine include security alarm, fire protection warning andSmart machine such as goes offline at the fault message.
In step s 12, the running state information is standardized according to the unified data form, is obtainedTo data to be shown;In the embodiment of the application one, when obtaining the running state information of smart machine, need according to smart machineThe publicly-owned standard agreement of corresponding industry or proprietary protocol are gathered from smart machine, the agreement that inhomogeneous smart machine is supportedMay be different, its corresponding running state information may need to carry out data interaction by different agreements, by different intelligenceWhen energy equipment carries out integrated, need to be standardized the running state information of all of smart machine, so as to reach associationView standardization, the standardization of products, there is provided unified standard criterion, realize unified interface service.Will be accessed differentAfter the running status of smart machine is standardized, the data to be shown for needing to be interacted with user equipment are obtained, this is treatedThe data of display are the running state information after standardization, are shown at user equipment end, are inquiry request or the control of userThe display result of command information processed.
In step s 13, the data to be shown are transmitted to user equipment by message queue remote measurement host-host protocol.In the embodiment of the application one, the network equipment leads to data to be shown, that is, the running state information of the smart machine after processingCross message queue remote measurement host-host protocol to transmit to user equipment;Preferably, in step s 11, transmitted by message queue remote measurementAgreement receives the control data of the smart machine of the unified data form that the user equipment sends.
Here, message queue remote measurement host-host protocol (MQTT) has the characteristics of transmitting reliable, safe, there is provided many levelsSecurity feature, concrete manifestation is as follows, Internet:By drawing special line (such as widening band) or VPN (virtual private network) can be used(VPN) act on behalf of connecting smart machine and MQTT, to improve the safety of network transmission.Transport layer:Transport layer uses safety biographyDefeated layer protocol (TLS) encryption carries out safety, can prevent man-in-the-middle attack (Man-In-The-Middle-Attack),Client certificate not only can also be used to verify smart machine as the identity documents of smart machine.Application layer:MQTT is carriedFor customer ID (client identifier) and user name password, in application-layer authentication smart machine.MQTT is provided with threePlant messaging service quality:At most once, news release places one's entire reliance upon the TCP/IP networks of bottom, it may occur that information drop-outOr repeat, such as environmental remote sensing sensing data, even if lose a read record being also allowed to, because the issue of second dataImmediately after.At least one times, it is ensured that message reach, but may occur message repeat.Only once, it is ensured that message only reaches oneIt is secondary.
MQTT is that default situations are communicated does not encrypt based on TCP, when communication needs to transmit sensitive information or intelligence is setIt is standby to need to use TLS when being countercharged so that secure connection just can be created when shaking hands, so as to hacker cannot eavesdrop or usurpChange transferring content.In addition, MQTT supports the certification of two kinds of levels, in transport layer:Transport layer not only can be encrypted logical using TLSNews, can also carry out authenticating device using X509 certificates.In application layer:MQTT supports customer ID, user cipher and X509 cardBook, in application-layer authentication equipment.
It should be noted that can be acted on behalf of by firewall protection MQTT, the flow that can only allow correlation is delivered toMQTT is acted on behalf of, and such as UDP, Internet Control Message Protocol (ICMP) flow can be masked directly;The flow of related port can be allowedMQTT agencies are delivered to, such as MQTT (MQTT over TCP) are accessed based on TLS and is used 1883 network port numbers, and MQTT overTCP uses 8883 network port numbers;Some IP address sections can only be allowed to access MQTT agencies, user's checking and access is realizedThe rewriting of control function module.
Those skilled in the art will be understood that and above-mentioned use MQTT as carrying out data between the network equipment and user equipmentCommunications protocol during interaction is only for example, and can also include other host-host protocols, such as the AMQP for increasing income (assist by advanced message queueView) RabbitMq agreements, open source software ActiveMq are realized, other communications protocol that are existing or being likely to occur from now on such as can be fittedFor the application, also should be included within the application protection domain, and here is incorporated herein by reference.
In the embodiment of the application one, in step s 12, by son belonging to the smart machine in the running state informationThe private information of system equipment information, device version information, equipment vendors' information, harvester coding information and equipment is processed as wordSection, and the field is standardized according to the unified data form, obtain data to be shown.Here, netWhen network equipment is interacted with user equipment, its data message is mainly including the operation relevant parameter and/or intelligence of smart machineThe warning message of equipment, the common field information of all interactive information is as shown in table 1:
Table 1
Above-described embodiment is connect, in step s 12, according to including air conditioner ventilation subsystem, gate inhibition's ladder control subsystem, elevatorSystem, energy consumption monitoring subsystem, fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystem andOne kind or a several combination in parking field subsystem determines the affiliated subscriber device information of the smart machine.Here, intelligenceThe affiliated subscriber device information SubSys field definition of equipment is as shown in table 2:
| Component | Explanation |
| AIR | Air conditioner ventilation subsystem |
| DOORACCESS | Gate inhibition's ladder control subsystem |
| ELEVATOR | Elevator subsystem |
| ENERGY | Energy consumption monitoring subsystem |
| FIREALARM | Fire alarm subsystem |
| PATROL | Night watching subsystem |
| SECURITY | Security alarm subsystem |
| VSS | Video monitoring subsystem |
| PMS | Parking field subsystem |
Table 2
It should be noted that can have above-mentioned some or several subsystems in an application scenarios, it is also possible to allHave, according to actual application scenarios included subsystem is determined.
Above-described embodiment is connect, the private information of the equipment is common including the smart machine of same type but different modelGeneric resource parameter, and distinctive reserved resource parameters of smart machine of each model.Here, due to smart machine model it is variousIt is various, but the resource parameters of its equipment are similar, for the field in Info, need the generic resource comprising smart machineParameter and reserved parameter, the integration of equipments for being easy to follow-up different model is accessed.Wherein, generic resource parameter is same type but notThe common resource parameters of the smart machine of same model, if such as air conditioner intelligent equipment only A brands and B brands, different factoriesThe operational factor that business provides is different, the air-conditioning of such as A brands only have indoor temperature, design temperature, on off state, operational mode,Air quantity;B brands include the air conditioner operation parameters of A brands, also including timing, ventilation parameter, then logical for air conditioner intelligent equipmentIt is the total parameter of brand A and brand B with resource parameters.Ensure that same system not including generic resource parameter in Info fieldsWith the unification of the device parameter of brand, in addition, the data parameters additionally having more are using reserved parameter.
In the embodiment of the application one, in step s 11, the intelligence of the unified data form sent based on user equipment is setStandby control data, determines the corresponding host-host protocol of the smart machine;Obtained by the corresponding host-host protocol of the smart machineTake the running state information of the smart machine.For example, user equipment sends the operation of inquiry smart machine 1 and smart machine 2The request of state, then the network equipment smart machine 1 and each self-corresponding host-host protocol of smart machine 2 are determined according to inquiry request,The operation relevant parameter of two smart machines is collected from smart machine 1 and smart machine 2 by corresponding host-host protocol, thanSuch as the operation relevant parameter of smart machine 1 is gathered by the standard agreement of BACnet IP, smart machine is gathered by proprietary protocol2 operation relevant parameter.Subsequently the corresponding running state information of the different agreement for being collected is carried out into integrated, mark so as to convenientStandardization, so as to realize the standardization of agreement.
In the embodiment of the application one, the unified data form includes JSON data forms or XML data format, in stepIn rapid S12, the running state information of the smart machine is standardized according to unified data form, obtains JSONThe data to be shown of data form or the data to be shown of XML data format.Here, data form adopts JSON, it is a kind ofLightweight data transmission format, it is easy to which user reads and writes, with preferably browser compatibility.To control in user equipmentOn the premise of request adopts JSON forms when being sent to the network equipment, data to be shown are equally adopted the network equipment JSON latticeFormula, it is to avoid the performances loss that two kinds of form transfer zones come when interactive.It should be noted that data are being standardized, adoptCan also include XML data format with unified data form, the content of interaction data itself is not only contained in XML, andThe security attribute information of application system can also be included, rejection does not meet the request of security set, and this improves application security,So that different roles possesses different function access rights;In addition, XML is adopted with operating system platform and application systemConcrete development language it is unrelated, the current standard interconnected between heterogeneous system can be become.
Fig. 2 is illustrated and shown according to a kind of method flow for being used for data display at user equipment end of the application another aspectIt is intended to, methods described includes:Step S21 and step S22,
In the step s 21, the control data of smart machine is sent to the network equipment according to unified data form;This ShenPlease in an embodiment, by the control data of smart machine using on the premise of unified data form, subsequent network device again withThe data form that user equipment is interacted also is unified data form, it is to avoid the performance that two kinds of form transfer zones come is damagedConsumption.
In step S22, by message queue remote measurement host-host protocol receive that the network equipment sends by the intelligenceThe running state information of equipment be standardized according to the unified data form after data to be shown, and showThe data to be shown.Here, the data to be displayed that network equipment transmission comes is received, the webpage or application at user equipment endThe data interacted with the network equipment are shown in program (APP), the running state information of smart machine is carried out into visualization exhibitionShow, wherein, because the communications protocol that different types of smart machine is supported may be different, it is therefore desirable to which the network equipment is to being gatheredTo the running state information of smart machine carry out integrated, standardization, and running status is believed with unified data formBreath is transmitted, and user equipment is interacted by MQTT with the network equipment, after getting the data to be shown of smart machineShow on webpage or APP.
Preferably, the data to be shown include the affiliated subsystem of the smart machine in the running state informationThe field of the private information of facility information, device version information, equipment vendors' information, harvester coding information and equipment.Here,When upper-layer user's equipment carries out data interaction with the network equipment, interaction data includes the data of multiple fields, and each field is concreteShown in above-mentioned table 1, wherein, in step S22, when the data to be shown for getting are shown, in display fieldThe affiliated subscriber device information of smart machine be according to include air conditioner ventilation subsystem, gate inhibition ladder control subsystem, elevator subsystemSystem, energy consumption monitoring subsystem, fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystem and stopDetermined by one kind or several combinations in the subsystem of parking lot.The for example above-mentioned table 2 of affiliated subscriber device SubSys field definitionsIt is shown.In concrete application scene, wherein one or more subsystems can be included, it is also possible to including above-mentioned whole subsystemSystem.
Preferably, in the step s 21, by message queue remote measurement host-host protocol by the control data of smart machine according to systemOne data form is sent to the network equipment.Here, when user equipment is communicated with the network equipment, using message queue remote measurementHost-host protocol (MQTT), it is ensured that data in the case of unstable networks, multi-user access, the reliability transmission of data.
Preferably, the unified data form includes JSON data forms or XML data format.In the net of user equipmentPage end using on the premise of JSON data forms, what the running state information of the smart machine to collecting was standardizedNetwork equipment end is also adopted by identical JSON form, and the performance loss that two kinds of form transfer zones come, and JSON can be avoided to havePreferably browser compatibility, possesses obviously advantage, user friendly reading in terms of code realization.It is appreciated thatThe unified data form of transmission can also be XML data format, and now, network equipment end is also required to using identical XML numberNeed using the unified data form of identical according to form, i.e. user equipment end and network equipment end, it is to avoid two ends carry out dataThe conversion of data form during interaction.
Fig. 3 is illustrated and be used in the embodiment of the application one data transfer, the system structure diagram for showing.The system is mainThe function of realization includes being interacted with upper-layer user based on MQTT Internet of Things protocol realization, and by intelligent equipment collectionInto by multi-protocols standardization.First, data integration module is responsible for by industries such as Modus RTU/TCP, BACnet IP, OPCPublicly-owned standard agreement or proprietary protocol, with intelligent equipment 1, intelligent equipment 2 ... intelligent equipment n data interaction is carried out,Collecting device runs relevant parameter or obtains equipment alarm message.Then, consensus standard module is responsible for data integration moduleThe equipment correlation operational factor for getting and warning message are standardized and are packaged into JSON data forms, subsequently, by MQTTAgreement carries out data interaction with upper-layer user.The application by intelligent equipment, data integration module, consensus standard module, useFamily equipment etc. is coupled together, and to carry out data acquisition and equipment control, and conveniently carries out intellectual analysis to smart machine.It is logicalCross various intelligent equipment multi-protocols are carried out it is integrated, parse, Reseal, standardization, can provide abundant for upper-layer userData, services, standard data format, and reached consensus standard, the standardization of products, data model standardization, meanwhile,Support data form customize, when being communicated with upper-layer user adopt MQTT Internet of Things fidonetFidos, it is ensured that transmission data canBy property and safety.
Fig. 4 illustrates a kind of structural representation of the network equipment for data transfer according to the application other side;The network equipment includes harvester 11, processing meanss 12 and transmitting device 13:
Harvester 11, for the control data based on the smart machine of the unified data form of user equipment transmission,Obtain the running state information of the smart machine;In the embodiment of the application one, the control data that user equipment sends is included inThe inquiry request and control command information of the smart machine at user equipment end, the network equipment is according to accessed user equipmentControl data, correspondence finds the smart machine for needing inquiry or controlling, so as to gather the running state information of the smart machine,Wherein, running state information includes that smart machine runs the warning message of relevant parameter and/or smart machine, such as air conditioner intelligentEquipment, its operation relevant parameter includes indoor temperature, design temperature, on off state, operational mode, the air quantity parameter of air-conditioning;ElectricityThe operation relevant parameter of table smart machine includes A phase voltages, B phase voltages, C phase voltages, A phase currents, B phase currents, the C phases of ammeterElectric current, system active power, consumption active electrical degree parameter.The warning message of smart machine include security alarm, fire protection warning, withAnd smart machine such as goes offline at the fault message.
Processing meanss 12, for the running state information to be standardized into place according to the unified data formReason, obtains data to be shown;In the embodiment of the application one, when obtaining the running state information of smart machine, need according to intelligenceThe publicly-owned standard agreement of the corresponding industry of energy equipment or proprietary protocol are gathered from smart machine, and inhomogeneous smart machine is supportedAgreement may be different, its corresponding running state information may need to carry out data interaction by different agreements, will notWhen same smart machine carries out integrated, need to be standardized the running state information of all of smart machine, so as toReach consensus standard, the standardization of products, there is provided unified standard criterion, realize unified interface service.Will be accessedAfter the running status of different smart machines is standardized, the number to be shown for needing to be interacted with user equipment is obtainedAccording to the data to be shown are the running state information after standardization, are shown at user equipment end, are that the inquiry of user pleaseAsk or control command information display result.
Transmitting device 13, sets for the data to be shown to be transmitted to user by message queue remote measurement host-host protocolIt is standby.In the embodiment of the application one, the network equipment by data to be shown, that is, the running state information of the smart machine after processingTransmitted to user equipment by message queue remote measurement host-host protocol;Preferably, in harvester, passed by message queue remote measurementDefeated agreement receives the control data of the smart machine of the unified data form that the user equipment sends.
Here, message queue remote measurement host-host protocol (MQTT) has the characteristics of transmitting reliable, safe, there is provided many levelsSecurity feature, concrete manifestation is as follows, Internet:By drawing special line (such as widening band) or VPN (virtual private network) can be used(VPN) act on behalf of connecting smart machine and MQTT, to improve the safety of network transmission.Transport layer:Transport layer uses safety biographyDefeated layer protocol (TLS) encryption carries out safety, can prevent man-in-the-middle attack (Man-In-The-Middle-Attack),Client certificate not only can also be used to verify smart machine as the identity documents of smart machine.Application layer:MQTT is carriedFor customer ID (client identifier) and user name password, in application-layer authentication smart machine.MQTT is provided with threePlant messaging service quality:At most once, news release places one's entire reliance upon the TCP/IP networks of bottom, it may occur that information drop-outOr repeat, such as environmental remote sensing sensing data, even if lose a read record being also allowed to, because the issue of second dataImmediately after.At least one times, it is ensured that message reach, but may occur message repeat.Only once, it is ensured that message only reaches oneIt is secondary.
MQTT is that default situations are communicated does not encrypt based on TCP, when communication needs to transmit sensitive information or intelligence is setIt is standby to need to use TLS when being countercharged so that secure connection just can be created when shaking hands, so as to hacker cannot eavesdrop or usurpChange transferring content.In addition, MQTT supports the certification of two kinds of levels, in transport layer:Transport layer not only can be encrypted logical using TLSNews, can also carry out authenticating device using X509 certificates.In application layer:MQTT supports customer ID, user cipher and X509 cardBook, in application-layer authentication equipment.
It should be noted that can be acted on behalf of by firewall protection MQTT, the flow that can only allow correlation is delivered toMQTT is acted on behalf of, and such as UDP, Internet Control Message Protocol (ICMP) flow can be masked directly;The flow of related port can be allowedMQTT agencies are delivered to, such as MQTT (MQTT over TCP) are accessed based on TLS and is used 1883 network port numbers, and MQTT overTCP uses 8883 network port numbers;Some IP address sections can only be allowed to access MQTT agencies, user's checking and access is realizedThe rewriting of control function module.
Those skilled in the art will be understood that and above-mentioned use MQTT as carrying out data between the network equipment and user equipmentCommunications protocol during interaction is only for example, and can also include other host-host protocols, such as the AMQP for increasing income (assist by advanced message queueView) RabbitMq agreements, open source software ActiveMq are realized, other communications protocol that are existing or being likely to occur from now on such as can be fittedFor the application, also should be included within the application protection domain, and here is incorporated herein by reference.
In the embodiment of the application one, processing meanss 12, for by the smart machine institute in the running state informationThe private information of category subscriber device information, device version information, equipment vendors' information, harvester coding information and equipment is processedFor field, and the field is standardized according to the unified data form, obtains data to be shown.This, when the network equipment and user equipment are interacted, the operation relevant parameter main including smart machine of its data message and/orThe warning message of smart machine, the common field information of all interactive information is as shown in table 1:
Table 1
Connect above-described embodiment, processing meanss 12, for according to including air conditioner ventilation subsystem, gate inhibition's ladder control subsystem, electricityLadder system, energy consumption monitoring subsystem, fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystemOne kind or a several combination in system and parking field subsystem determines the affiliated subscriber device information of the smart machine.Here,The affiliated subscriber device information SubSys field definition of smart machine is as shown in table 2:
| Component | Explanation |
| AIR | Air conditioner ventilation subsystem |
| DOORACCESS | Gate inhibition's ladder control subsystem |
| ELEVATOR | Elevator subsystem |
| ENERGY | Energy consumption monitoring subsystem |
| FIREALARM | Fire alarm subsystem |
| PATROL | Night watching subsystem |
| SECURITY | Security alarm subsystem |
| VSS | Video monitoring subsystem |
| PMS | Parking field subsystem |
Table 2
It should be noted that can have above-mentioned some or several subsystems in an application scenarios, it is also possible to allHave, according to actual application scenarios included subsystem is determined.
Above-described embodiment is connect, the private information of the equipment is common including the smart machine of same type but different modelGeneric resource parameter, and distinctive reserved resource parameters of smart machine of each model.Here, due to smart machine model it is variousIt is various, but the resource parameters of its equipment are similar, for the field in Info, need the generic resource comprising smart machineParameter and reserved parameter, the integration of equipments for being easy to follow-up different model is accessed.Wherein, generic resource parameter is same type but notThe common resource parameters of the smart machine of same model, if such as air conditioner intelligent equipment only A brands and B brands, different factoriesThe operational factor that business provides is different, the air-conditioning of such as A brands only have indoor temperature, design temperature, on off state, operational mode,Air quantity;B brands include the air conditioner operation parameters of A brands, also including timing, ventilation parameter, then logical for air conditioner intelligent equipmentIt is the total parameter of brand A and brand B with resource parameters.Ensure that same system not including generic resource parameter in Info fieldsWith the unification of the device parameter of brand, in addition, the data parameters additionally having more are using reserved parameter.
In the embodiment of the application one, harvester 11 is used for the intelligence of the unified data form sent based on user equipmentThe control data of equipment, determines the corresponding host-host protocol of the smart machine;By the corresponding host-host protocol of the smart machineObtain the running state information of the smart machine.For example, user equipment sends the fortune of inquiry smart machine 1 and smart machine 2The request of row state, then the network equipment according to inquiry request determine smart machine 1 and smart machine 2 it is each it is self-corresponding transmission associationView, the operation that two smart machines are collected from smart machine 1 to smart machine 2 by corresponding host-host protocol is related to be joinedNumber, such as gather the operation relevant parameter of smart machine 1 by the standard agreement of BACnet IP, and by proprietary protocol intelligence is gatheredThe operation relevant parameter of energy equipment 2.Subsequently the corresponding running state information of the different agreement for being collected is carried out so as to convenientIntegrated, standardization, so as to realize the standardization of agreement.
In the embodiment of the application one, the unified data form includes JSON data forms or XML data format, processesDevice 12 is used for, and the running state information of the smart machine is standardized according to unified data form, obtainsThe data to be shown of JSON data forms or the data to be shown of XML data format.Here, data form adopts JSON,A kind of lightweight data transmission format, it is easy to which user reads and writes, with preferably browser compatibility.Will in user equipmentOn the premise of control data adopts JSON forms when being sent to the network equipment, the network equipment equally adopts data to be shownJSON forms, it is to avoid the performances loss that two kinds of form transfer zones come when interactive.It should be noted that data are being carried out into standardChange, XML data format can also be included using unified data form, the content of interaction data itself is not only contained in XML,But also the security attribute information of application system can be included, rejection does not meet the request of security set, and this is improve using peaceQuan Xing so that different roles possesses different function access rights;In addition, XML and operating system platform and application system instituteUsing concrete development language it is unrelated, the current standard interconnected between heterogeneous system can be become.
Fig. 5 illustrates a kind of structural representation of the user equipment for data display according to the application another aspect,The user equipment includes:Dispensing device 21 and display device 22,
Dispensing device 21, for the control data of smart machine to be sent to the network equipment according to unified data form;In the embodiment of the application one, on the premise of the control data of smart machine is adopted into unified data form, subsequent network deviceThe data form for interacting with user equipment again is also unified data form, it is to avoid the performances that two kinds of form transfer zones comeLoss.
Display device 22, for being sent the intelligence by the message queue remote measurement host-host protocol reception network equipmentCan equipment running state information be standardized according to the unified data form after data to be shown, and showShow the data to be shown.Here, receive the network equipment transmission come data to be displayed, user equipment end webpage or shouldWith the data for showing in program (APP) and the network equipment is interacted, the running state information of smart machine is visualizedShow, wherein, because the communications protocol that different types of smart machine is supported may be different, it is therefore desirable to which the network equipment is to being adoptedThe running state information of the smart machine for collecting carries out integrated, standardization, and with unified data form by running statusInformation is transmitted, and user equipment is interacted by MQTT with the network equipment, gets the data to be shown of smart machineShow on webpage or APP afterwards.
Preferably, the data to be shown include the affiliated subsystem of the smart machine in the running state informationThe field of the private information of facility information, device version information, equipment vendors' information, harvester coding information and equipment.Here,When upper-layer user's equipment carries out data interaction with the network equipment, interaction data includes the data of multiple fields, and each field is concreteShown in above-mentioned table 1, wherein, display device 22 is used for, when the data to be shown for getting are shown, display fieldIn the affiliated subscriber device information of smart machine be according to include air conditioner ventilation subsystem, gate inhibition ladder control subsystem, elevatorSystem, energy consumption monitoring subsystem, fire alarm subsystem, night watching subsystem, security alarm subsystem, video monitoring subsystem andDetermined by one kind or several combinations in parking field subsystem.The for example above-mentioned table of affiliated subscriber device SubSys field definitionsShown in 2.In concrete application scene, wherein one or more subsystems can be included, it is also possible to including above-mentioned whole subsystemSystem.
Preferably, dispensing device 21 is used for, and is pressed the control data of smart machine by message queue remote measurement host-host protocolSend to the network equipment according to unified data form.Here, when user equipment is communicated with the network equipment, using message queueRemote measurement host-host protocol (MQTT), it is ensured that data in the case of unstable networks, multi-user access, the reliability transmission of data.
Preferably, the unified data form includes JSON data forms or XML data format.In the net of user equipmentPage end using on the premise of JSON data forms, what the running state information of the smart machine to collecting was standardizedNetwork equipment end is also adopted by identical JSON form, and the performance loss that two kinds of form transfer zones come, and JSON can be avoided to havePreferably browser compatibility, possesses obviously advantage, user friendly reading in terms of code realization.It is appreciated thatThe unified data form of transmission can also be XML data format, and now, network equipment end is also required to using identical XML numberNeed using the unified data form of identical according to form, i.e. user equipment end and network equipment end, it is to avoid two ends carry out dataThe conversion of data form during interaction.
Fig. 3 is illustrated and be used in the embodiment of the application one data transfer, the system structure diagram for showing.The system is mainThe function of realization includes being interacted with upper-layer user based on MQTT Internet of Things protocol realization, and by intelligent equipment collectionInto by multi-protocols standardization.First, data integration module is responsible for by industries such as Modus RTU/TCP, BACnet IP, OPCPublicly-owned standard agreement or proprietary protocol, with intelligent equipment 1, intelligent equipment 2 ... intelligent equipment n data interaction is carried out,Collecting device runs relevant parameter or obtains equipment alarm message.Then, consensus standard module is responsible for data integration moduleThe equipment correlation operational factor for getting and warning message are standardized and are packaged into JSON data forms, subsequently, by MQTTAgreement carries out data interaction with upper-layer user.The application by intelligent equipment, data integration module, consensus standard module, useFamily equipment etc. is coupled together, and to carry out data acquisition and equipment control, and conveniently carries out intellectual analysis to smart machine.It is logicalCross various intelligent equipment multi-protocols are carried out it is integrated, parse, Reseal, standardization, can provide abundant for upper-layer userData, services, standard data format, and reached consensus standard, the standardization of products, data model standardization, meanwhile,Support data form customize, when being communicated with upper-layer user adopt MQTT Internet of Things fidonetFidos, it is ensured that transmission data canBy property and safety.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the application to the applicationGod and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologiesWithin, then the application is also intended to comprising these changes and modification.
It should be noted that the application can be carried out in the assembly of software and/or software with hardware, for example, can adoptRealized with special IC (ASIC), general purpose computer or any other similar hardware device.In one embodimentIn, the software program of the application can pass through computing device to realize steps described above or function.Similarly, the applicationSoftware program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the application can employ hardware to realize, exampleSuch as, as coordinating so as to perform the circuit of each step or function with processor.
In addition, the part of the application can be applied to computer program, such as computer program instructions, when its quiltWhen computer is performed, by the operation of the computer, can call or provide according to the present processes and/or technical scheme.And the programmed instruction of the present processes is called, in being possibly stored in fixed or moveable recording medium, and/or pass throughData flow in broadcast or other signal bearing medias and be transmitted, and/or be stored according to described program instruction operationIn the working storage of computer equipment.Here, including a device according to one embodiment of the application, the device includes usingIn the memorizer and the processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers toWhen order is by the computing device, method and/or skill of the plant running based on aforementioned multiple embodiments according to the application is triggeredArt scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned one exemplary embodiment, Er QieIn the case of without departing substantially from spirit herein or basic feature, the application can be in other specific forms realized.Therefore, no matterFrom the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, scope of the present application is by appended powerProfit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by fallingChange is included in the application.Any reference in claim should not be considered as and limit involved claim.ThisOutward, it is clear that " including ", a word was not excluded for other units or step, and odd number is not excluded for plural number.That what is stated in device claim is multipleUnit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for tableShow title, and be not offered as any specific order.