A kind of electric equipment control device based on Internet of Things
Technical field
The utility model relates to a kind of Internet of Things control technology field, is specifically related to a kind of electric equipment control device based on Internet of Things.
Background technology
The automatic control system of current industrial circle has merged automation control system, computer network system and network communications technology in the control system of the network-enabled intelligent of one.The various consumers that intelligent control system can allow user have means more easily to come in management system, as by touch-screen, mobile phone, internet or speech recognition controlled consumer, more can perform execute-in-place, conveniently control; On the other hand, use the indoor of intelligent control system, various equipment each other can communication, also can run according to the interaction of different states even without user commander, thus bring to user farthest efficient, convenient for, comfortable safety.
The development of existing mechanics of communication, present the application of multiple mechanics of communication in industrial circle robotization that a hundred flowers blossom to get more and more, but because each equipment is relatively single, its interface is also subject to certain present situation, thus cause a certain device intelligence to be applied to a certain technical field, if need the application realizing other, just need to dock an other equipment and carry out transferring or money outside amount paid, open other a kind of network.
Data processing display purpose processor module, the application of processor module is more and more extensive, in the products such as intelligent instrument, intelligent instrument, TT&C system, digital control system, intelligent interface and multimachine application, have wide industrial applications prospect.The data processing and control display of application processor module, embodiment function of reporting to the police.
Modern industrialization field be unable to do without various consumer, has more easily that means are to manage numerous consumers in order to allow people, and intelligent industrial networked control systems arises at the historic moment.Briefly, intelligent industrial networked control systems has merged automation control system, computer network system and network communications technology in the automatic control system of network-enabled intelligent of one, by its people can more efficiently, more convenient, more comfortable with the safer various consumer of use.
Intranet is connected with Internet by industrialization gateway by the automation control system of current main flow, then by connecting the PC PC control whole system of Internet; And Intranet adopts ZigBee radio network technique, ZigBee module is set at gateway and various terminal, the wireless networking realizing Intranet with communicate.
To the multiple electrical appliances in a supply line under non-operating state, there is the communication function reading and revise write to the operational factor of its each electrical appliance, to realize the LAN monitoring management of electrical appliance in a supply line, also implement remote information control and management by internet.
The network management of current local consumer is adopt multiple electrical appliances in a supply line under operation substantially, utilize less radio-frequency and corded power carrier wave two kinds of communication modes to realize the LAN monitoring management function of electrical appliance, input cost is relatively high.A kind of disclosed in China Patent Publication No. CN101789632B can the power-supply controller of electric of telemanagement, comprise multiple power output unit, it is characterized in that, this power-supply controller of electric is provided with a control module, the display unit that this control module comprises CPU and is attached thereto, storage unit, serial communication concatenation unit, network element, clock unit, ADC and sampling unit, sensor unit, driver element, output detections unit, protected location and power supply unit, this power-supply controller of electric is communicated with upper PC by described serial communication concatenation unit, and be connected with internet by described network element, extracted the voltage of this power-supply controller of electric from serial communication concatenation unit by upper PC, electric current, temperature in power usage and the rack that is connected with this power-supply controller of electric, humidity, smog, gate inhibition, the data of the fine ambient condition of water logging, realize the remote monitoring to fine environment in this power-supply controller of electric and the rack that connects, control and management.This system can only carry out communication when there being power supply and in online situation, and cost is higher, and structure is also more complicated, height of controlling cost.
For another example a kind of power autonomous controller disclosed in China Patent Publication No. CN104113130A, comprises switch board, switch cubicle and energy storage storehouse panel box; Described switch board comprises core cpu plate, display operation panel, relay board, card extender, ups power and accumulator, described display operation panel, relay board, card extender, ups power and accumulator are connected with described core cpu plate respectively, the output terminal of described UPS power supply is connected with accumulator input end, and described core cpu plate is also connected with described switch cubicle, energy storage storehouse panel box respectively; Switch cubicle of the present utility model is the aggregation point of each subsystem switch of power autonomous system, by switch lump in switch cubicle, outside line is introduced into master switch in cabinet, then sub-control switch is entered, each shunt is arranged by its needs, energy storage storehouse panel box is also controlled by switch board, achieves centralized control and Decentralization, achieves management and realize centralized control.This system can only work online equally, and comprises a lot of neutral-controlled plant, and such as relay, card extender etc., automaticity is lower.
Utility model content
The purpose of this utility model is to solve in prior art the problem such as complexity, function singleness, poor practicability that connects up, and proposes a kind ofly to lay simply, complete function and the electric equipment control device based on Internet of Things of handled easily.
For solving the problems of the technologies described above, the technical solution adopted in the utility model is: a kind of electric equipment control device based on Internet of Things, comprise a supply line, the power supply input top of described supply line is in series with K switch 1, described K switch 1 is connected in parallel to offline network power source management controller and the K switch 2 of series connection mutually, described supply line is also connected with some electrical appliances parallel with one another, described each electrical appliance is connected to from controller; Described offline network power source management controller comprises master controller, the input end of described master controller is connected with power input interface, keyboard, internet interface and USB interface, the output terminal of described master controller is connected with power output interface, display and warning lamp, and described master controller is also connected with and runs button and stop button.
Further, described master controller is the control circuit be made up of microcontroller STR710 and ethernet controller CS8900A.
Further, described is the control circuit be made up of microcontroller STR710 and storer from controller.
Further, the supply voltage of described power input interface is single-phase 220V/50HZ or three-phase 380V/50HZ.
Further, described electrical appliance comprises televisor, air-conditioning, refrigerator, washing machine, water pump or other household electrical appliance.
Further, described internet interface or USB interface are connected with computing machine, mobile phone and internet and carry out communication.
The beneficial effects of the utility model are as follows:
1, the utility model only needs to adopt and has carried out artificial and automatic control switch a supply line and send a function, and the system of reaching lays simple effect;
2, the utility model need not additionally connect up, in the gap of powered operation, the communication of the network information can being carried out, communication can be carried out when there being power supply and in online situation, also can in communication under off-line state, freely changing of power transmission work and off-line communication can be realized;
3, the utility model can carry out data communication under off-line state Yu from controller, realizes monitoring management function;
4, the utility model achieve artificial to each consumer by setting the object of running status from controller;
5, the utility model by USB interface and internet interface to realize the communication function with computing machine, mobile phone and internet;
6, the utility model laying structure is simple, has saved cost, has had broad application prospects.
Accompanying drawing explanation
Fig. 1 is system architecture schematic diagram of the present utility model.
Fig. 2 is offline network power source management controller external structure schematic diagram of the present utility model.
Fig. 3 is the master controller internal circuit configuration principle framework figure of offline network power source management controller of the present utility model.
Fig. 4 is STR710 system principle diagram of the present utility model.
Drawing reference numeral: 1, power input interface, 2, keyboard, 3, internet interface, 4, USB interface, 5, power output interface, 6, display, 7, warning lamp, 8, run button, 9, stop button.
Embodiment
By particular specific embodiment, embodiment of the present utility model is described below, the content that person skilled in the art scholar can be disclosed by this instructions understands other advantages of the present utility model and effect easily.
A kind of electric equipment control device based on Internet of Things as shown in Fig. 1 to Fig. 3, comprise a supply line, the power supply input top of supply line is in series with K switch 1, K switch 1 is connected in parallel to offline network power source management controller and the K switch 2 of series connection mutually, supply line is also connected with some electrical appliances parallel with one another, each electrical appliance is connected to from controller; Offline network power source management controller comprises master controller, the input end of master controller is connected with power input interface 1, keyboard 2, internet interface 3 and USB interface 4, the output terminal of master controller is connected with power output interface 5, display 6 and warning lamp 7, and master controller is also connected with and runs button 8 and stop button 9.
As the further optimization of technique scheme, master controller is the control circuit be made up of microcontroller STR710 and ethernet controller CS8900A.It is the control circuit be made up of microcontroller STR710 and storer from controller.The supply voltage of power input interface 1 is single-phase 220V/50HZ or three-phase 380V/50HZ.Electrical appliance comprises televisor, air-conditioning, refrigerator, washing machine, water pump or other household electrical appliance.Internet interface 3 or USB interface 4 are connected with computing machine, mobile phone and internet and carry out communication.
STR710 is the core of whole system.It is as an embedded gateway, external network and all network electrical appliances is linked together, and is the platform that whole system is run.
First, as shown in Figure 4, in remote control household electrical appliances, STR710 is responsible for the short message that receives from MC35i and extracts user instruction from the Ethernet data that CS8900A receives, then handle corresponding network electrical appliance according to this instruction or inquire about its ruuning situation, finally in the form of a web page the execution result of instruction being fed back to user terminal by MC35i with the form of short message or by CS8900A again.
Secondly, in network electrical appliance mode of operation is arranged, the task of STR710 is exactly show corresponding menu and help information over the display, completes setting by good interface directs user.Afterwards, the working condition of household electrical appliance is checked in STR710 timing.Once there is urgent or dangerous situation, taking necessary safeguard measure in time, and sending warning message by MC35i.
CS8900A is the low-power consumption of CIRRUS LOGIC company production, 16 ethernet controllers of superior performance.The outstanding feature of this chip uses flexibly, and its physical layer interface, data-transmission mode and mode of operation etc. can dynamic conditioning as required, adapt to different applied environments by arranging of internal register.
CS8900A, after receiving the ethernet frame sent by STR710, intercepts network line.If line be busy, till just waiting until line idle, otherwise, send this Frame immediately.
During transmission, first, CS8900A adds ethernet packet header, then, generates CRC check code, finally, is sent on Ethernet by this Ethernet bag.
During reception, the packet received from Ethernet is being buffered in sheet by it after decoding, removing the step such as packet header and address check.After CRC check is passed through, it can according to initial configuration situation, and notice STR710, CS8900A have received Frame.Finally, a kind of transmission mode is selected to pass in the memory block of main frame according to configuration.
In addition, the data communication between CS8900A and STR710 be realized, suitable data-transmission mode can be selected flexibly as the case may be when circuit design.
MC35i is the new generation of wireless communication GPRS module that Siemens company releases.MC35i module is primarily of GSM baseband processor, GSM radio-frequency module supply module, FLASH, ZIF connector antennal interface six part composition as figure.The transmitted in both directions of power supply, link order, data, voice signal and control signal is realized by the ZIF connector of 40 pins of uniqueness.SIM card holder and antenna can be connected respectively by ZIF connector and 50 ohm antenna connectors.
The control method of above-mentioned a kind of electric equipment control device based on Internet of Things, comprises the steps:
A. K1 disconnects, and the master controller in supply line's top power source management controller is by carrying out data communication from controller 485 communication interface under 485 communication interfaces and K2 closure state with each electrical appliance;
B. in each electrical appliance in this supply line from controller, carry out detecting one by one by address and read the every operational factor remained in the power transmission course of work last time;
C. again to the operational factor needing amendment from controller write, the complete i.e. K2 of communication disconnects 485 communication interfaces, to realize the LAN monitoring management of electrical appliance in a supply line.
Above-mentioned off-line data collecting adopts the method based on the digital independent agreement of snmp protocol, the means that the method is taked can be summarized as: first distribute identification code by network management system to network appliance equipment, when needing the network appliance equipment be configured to be in off-line state, network management system will be temporary in database to its configuration data, send the request of application configuration data to network management system after this network equipment is reached the standard grade, after network management system does corresponding checking according to identification code, call from database and this network equipment is sent to the configuration data of this network appliance equipment, this network appliance equipment receives configuration data, complete configuration, so, unified planning and the deployment of network management can be conducive to.
The method that the network equipment carries out off-line arrangement is comprised the following steps based on snmp protocol in the present embodiment:
1. network management system is each network appliance equipment distributing user name to be configured and password: username and password is used for network management system to the identification of the network equipment and differentiation, therefore the uniqueness ensureing user name is needed, the network equipment that each user name is corresponding unique, every platform network equipment also only has unique user name, forms relation one to one thus;
2. network management system will be stored in database to the network appliance configuration data of device being in off-line state: need to be configured the network equipment in network management system, and this network equipment is when being in off-line state, network management system will carry out off-line (namely not requiring that the network equipment is online) configuration to this network appliance equipment, comprise the interface configuration of the network equipment, routing configuration, VRF configuration, IPSec configuration etc., can be configured by off-line, the configuration data of this network equipment is stored in database simultaneously; During storage, need the corresponding relation ensureing the user name of this network equipment and the configuration data to this network equipment equally, be convenient to the inquiry work that network management system is later;
3. the network equipment is reached the standard grade backward network management system application configuration data: the SNMP request sending application configuration data after this network equipment is reached the standard grade to network management system, contains username and password corresponding to this network equipment, for verifying in this SNMP asks;
4. network management system is verified username and password: network management system, after receiving this SNMP request, is verified username and password, if the verification passes, then from database, inquired about the configuration data to this network equipment; If not by checking, network management system then can take the measure disregarding or return to this network equipment authentication failed information to this SNMP request, step after no longer performing;
5. network management system sends configuration data to this network equipment: network management system is packaged in SNMP message by what inquire to the configuration data of this network equipment, and be sent to this network equipment, this network equipment is resolved after receiving SNMP message, is configured the machine according to configuration data.