A kind of digital family system based on intelligent gateway
Technical field
The present invention relates to Smart Home field, particularly a kind of intelligent domestic system.
Background technology
At home security, the aspects such as household video intercom, intelligent appliance control, at present often based on artificial line, video line or network service, by governor circuit, keyboard, loud speaker, camera, household electrical appliance etc. are integrated and connected together.But this simple system pattern, be only suitable for over simple domestic. applications scene.Along with the raising of people's quality of life and the upgrading of home environment, more complicated indoor design, larger indoor or exterior finish, the control of more household electrical appliances, more numerous and diverse circuit etc. will propose huge challenge to traditional intelligent domestic system.
In devices communicating field, DLNA (DigitalLivingNetworkAlliance, DLNA) solution started to widely use in digital home network, be intended to solve the device interoperability in digital home network, make unrestricted the sharing of Digital Media and content service become possibility.But the various application of current DLNA all mainly concentrate on the equipment such as individual PC, consumer appliances and mobile device, and application on intelligent domestic system is relatively less.
In household intelligent system now, be that the household intelligent system of core holds in both hands by people's heat with PC.The idea of this system is exactly, and along with popularizing of computer, can data to be processed be needed all to give PC all household electrical appliance and come.So just need to build a data transport network between household electrical appliances and PC, everybody has an optimistic view of wireless now, but in this environment of family, " wall is many " this feature drastically influence the quality of wireless transmission, and particularly in villa and duplex house, this defect is more obvious.If erection private wire network network in addition to increasing cost, the position will changing household electrical appliances in daily life afterwards also seems very difficult and loaded down with trivial details, this just gives and the PLC technology (PowerlineCommunication, power carrier communication) of stringing again need not bring opportunity.
The maximum feature of PLC: do not need again to set up network, as long as live wire, just can carry out data transmission, becomes one of preferred plan solving Smart Home transfer of data undoubtedly.Simultaneously because data are only transmitted in this scope of family, the puzzlement of constraint PLC application will weaken to a great extent, the long-range control to household electrical appliances we be also first connected to PC by legacy network and then control household electrical appliances mode and realize, the cost of PLC modulation /demodulation module is also far below wireless module.
In recognition of devices and location, the concept as far back as 1999 " Internet of Things " is just suggested.To be eager at that time the Internet, RFID technique, EPC standard, on the basis of computer internet, utilize REID, wireless data communication technology etc., construct the Internet in kind " Internetofthings " (being called for short: Internet of Things) of a reality global article invasion and attack Real-Time Sharing, this is also the basis starting first round China's Internet of Things upsurge in 2003.
Therefore, get over maturation in conjunction with the practice of technology today to Internet of Things, a kind of new intelligent domestic system needs to be proposed, it should combining wireless network and power line carrier, PLC, both the shortcoming of power carrier in long haul communication and radio communication had been broken away from, can strengthen again intelligent domestic system equipment room in the speed of indoor communications and the degree of reliability, and each equipment initiatively can communicate with controller and carries out Intelligence Feedback and location, thus the Internet of Things application and service of various Smart Home is provided.
According to existing technical scheme, sum up and draw the shortcoming that existing technical scheme exists and the technical problem to be solved in the present invention, as follows:
1., in traditional intelligent domestic system, be no lack of and have use PLC (power line carrier, PLC) technology to realize the system of communication between devices.Although but the cost of use plc communication is very low, but also have very large shortcoming:
A. power carrier is because self feature is to data, and the process of data volume is limited, as X10 agreement can only for the transmission of relatively small data quantity; In time running into big data quantity, in the process that will transmit again, carry out packet loss.And the introducing of Internet of Things, Smart Home Control-oriented amount will be a large amount of.
B. the transmission pattern of power carrier to data is single, and when having multiple terminals, when different pieces of information is to transmission, it cannot be changed data.
2. traditional intelligent domestic system generally only supports several simple even single user's control model, such as: controlled etc. by the control inerface control on liquid crystal display screen or SMS.But in actual life, people seldom only use some specific control method.Because single practicality and the ease for use constraining Smart Home of control model.
3. the numerous intelligent bodies after introducing Internet of Things, lacking individuality and the easy-to-use intelligent control method of hommization, need to solve the convenient mode controlling all intelligent body electrical equipment of user, effectively improve the time of the various electrical equipment of user's centralized control.
Summary of the invention
In order to solve the problems referred to above of prior art, be necessary to provide a kind of intelligent domestic system with higher ease for use and practicality.
The technical scheme that technical solution problem of the present invention provides is:
A kind of intelligent domestic system, it home appliance comprising intelligent gateway server, power line carrier, PLC module, intelligent gateway server and be positioned at household internal, described power line carrier, PLC model calling is between described intelligent gateway server and described home appliance, it is characterized in that, described intelligent gateway server comprises TCP/IP server, data conversion server, pipe service device and serial ports transceiver module, and described TCP/IP server, pipe service device and serial ports transceiver module are connected with described data conversion server respectively.
Wherein, comprise a Zigbee communication module further, itself and the starting module wireless connections of described serial ports.
Wherein, comprise a mobile phone control terminal further, it is connected with described TCP/IP server by cell phone network.
Wherein, comprise a webpage control terminal further, it is connected with described TCP/IP server and described pipe service device by internet.
Wherein, comprise a QT control terminal further, it is connected with described pipe service device by internet or local area network (LAN).
Wherein, described data conversion server runs into multiple data when arriving simultaneously, according to the priority of data by it successively stored in buffer memory.
Wherein, after described data conversion server completes data transaction, every ten data are decided to be to the transmission of serial data and combine transmission.
Wherein, described power line carrier, PLC module can adopt Shenzhen must Weir company exploitation module BWP09.
The present invention also provides a kind of intelligent gateway server being applied to intelligent domestic system, it comprises TCP/IP server, data conversion server, pipe service device and serial ports transceiver module, and described TCP/IP server, pipe service device and serial ports transceiver module are connected with described data conversion server respectively.
Compared to prior art, intelligent domestic system of the present invention adopts multiple terminals, multi-communication mode, intranet and extranet transmission to change the mechanism, set up TCP/IP and serial ports is changed, Data Format Transform mechanism between pipeline and serial ports, realize the data format of Different Source-Common Struct, combine power carrier and wireless network two kinds of technology, in data transmission, stability and the practicality of intelligent domestic system of the present invention strengthen all greatly; By intelligent domestic system of the present invention, no matter at home or out of doors user any place that can be connected to network, can control the smart machine of family, monitor the situation of family simultaneously, and, can work between different control end simultaneously, there will not be the situation of data corruption.
Accompanying drawing explanation
Fig. 1 is the system block diagram of intelligent domestic system of the present invention.
Fig. 2 is the data flowchart of the TCP/IP server in Fig. 1.
Fig. 3 is the data flowchart of the UDP server in Fig. 1.
Fig. 4 is the data flowchart of the pipe service device in Fig. 1.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described further.
Refer to Fig. 1, intelligent domestic system of the present invention comprises intelligent gateway server, power line carrier, PLC module, the home appliance being positioned at household internal, the Zigbee communication module being positioned at household internal, the mobile phone control terminal being positioned at external network, webpage control terminal and QT control terminal.Described mobile phone control terminal is connected with described TCP/IP server by cell phone network.Described webpage control terminal is connected with described TCP/IP server and described pipe service device by internet.Described QT control terminal is connected with described pipe service device by internet or local area network (LAN).
Intelligent gateway server for receiving various network-based control instruction and data, and is parsed, and then passes through power line carrier, PLC module transfer to home appliance.Power line carrier, PLC module is connected with home appliance and intelligent gateway server respectively, and it is loaded into electric power networks for the household appliance control instruction received by intelligent gateway server, thus realizes the control to home appliance.In the present invention, can adopt Shenzhen must Weir company exploitation module BWP09 as power line carrier, PLC module.
Intelligent gateway server comprises TCP/IP server, data conversion server, pipe service device and serial ports transceiver module further.TCP/IP server, pipe service device and serial ports transceiver module are connected with data conversion server respectively.
Data conversion server is used for the data that TCP/IP server, pipe service device, UDP server parses go out to carry out conversion serial data.When receiving data, received data are taken in data buffer storage, data conversion server reads data from data buffer storage, change, when running into multiple data and arrive simultaneously, by the priority (priority set in advance) of data successively stored in buffer memory, thus avoid producing most according to time concurrent problem.In order to reduce the number of operations to serial ports, after data transaction completing, every ten data being decided to be to the transmission of serial data and combining transmission.Which reduce the transmission number of data volume, just effectively reduce packet loss problem during large data.
TCP/IP server is for receiving all TCP/IP packet.As shown in Figure 2, after TCP/IP startup of server, can monitor fixed port, just judge after receiving data, and give data conversion server data retransmission, in data conversion server, first judge it is what control data, be converted to corresponding control data and then sent by serial ports transceiver module.
UDP server for carrying out the transmission of large data, the transmission be mainly used for monitor data.As shown in Figure 3, just monitor specific port after UDP startup of server, when data is received, judge whether to start camera, log-on data just starts camera in this way, and the data that camera catches are sent to monitor terminal by UDP; Data as received close camera, closes camera, and stop the transmission of data.
Pipe service device is for receiving the data from BOA web page server and QT terminal.As shown in Figure 4, just read the data of Serverpipe pipeline after pipe service device starts always, when Serverpipe receives data, just digital independent out, first judge that data are from what, are convenient to data and return; Then judge whether it is the data starting camera, if start the data of camera, just open camera, and the data that gained obtains are sent to BOA web page server by pipeline, be sent to webpage terminal by BOA web page server; If not being start camera data, then check whether be control data, be if so, just converted to the serial data of corresponding format, if not just abandon misdata.
Serial ports transceiver module is used for the external data that serial ports receives to be sent to data server.After serial ports transceiver module starts, monitor serial ports and whether receive data, just data conversion server is given to when receiving data, data conversion server can judge that data are status datas of the data also household of transducer, then allow intelligent gateway know the present status of household according to various state, make the change meeting present status.
Described intelligent gateway server can carry out the control of multiple terminal by multiple server processes simultaneously, does not clash, and makes orderliness more clear, and data can not be disorderly.External control data all uses TCP/IP, ensure that the safety of data, the harm that the frame losing of having stopped data causes.Internal control data all use pipeline to transmit, and not tight safety and efficiency of transmission mention large increase, and to a certain degree can avoid concurrent caused problem.
Compared with prior art, intelligent domestic system of the present invention adopts multiple terminals, multi-communication mode, intranet and extranet transmission to change the mechanism, set up TCP/IP and serial ports is changed, Data Format Transform mechanism between pipeline and serial ports, realize the data format of Different Source-Common Struct, combine power carrier and wireless network two kinds of technology, in data transmission, stability and the practicality of intelligent domestic system of the present invention strengthen all greatly; By intelligent domestic system of the present invention, no matter at home or out of doors user any place that can be connected to network, can control the smart machine of family, monitor the situation of family simultaneously, and, can work between different control end simultaneously, there will not be the situation of data corruption.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.