Summary of the invention
The object of the present invention is to provide a kind of home network general controller, overcome and solve technological deficiency in the existing residential quarters system integration, make full use of the existing broadband networks in sub-district to the family resource, on subsystem unification to a communication platform such as separate traditionally family's security protection, three table data acquisitions, peripheral defence, building talkback, sub-district discrepancy entrance guard management, household equipment control, adopt ICP/IP protocol to carry out network communication between each subsystem.Portion adopts the mode of wireless digital communication to carry out device talk and management within the family, thereby the betterment works difficulty of construction reduces cost, and improves utilization rate of equipment and installations, guarantee system reliability.
The present invention also aims to provide described home network general controller to be used for the method for Communication Control.
As shown in Figure 1, 2, home network general controller of the present invention mainly is made of casing (1), panel (2), very color TFT liquid crystal display screen (3), touch-screen (4), function button (5), network interface (6), the antenna (7) that links to each other with wireless receiving and transmitter module, the infrared transmitting tube (8) that links to each other with infrared transmission module, serial communication interface (9), telephony interface (10), video input port (11), power interface (12), main circuit board (13), and its mutual alignment and annexation are: casing (1) is connected by fastener with panel (2); Very color TFT liquid crystal display screen (3) is embedded in panel (2) and goes up as output interface; Touch-screen (4) is close to liquid crystal display screen (3) and is done the signal input; Function button (5) is contained on the panel; Wireless receiving and transmitter module are contained on the circuit board and pass through outwards communication of antenna (7); Infrared transmission module can be contained on the circuit board, transmits to infrared equipment by infrared transmitting tube (8), or passes through interface outer signal line to prolong the installation site; Network interface (6) links to each other with Ethernet control circuit on the main circuit board, and is connected with the residential quarters local area network (LAN) by the super category 5 cable line; Telephony interface (10) links to each other with DTMF coding-decoding circuit on the main circuit board, and is connected with public telephone switch office by telephone wire; Video input port (11) links to each other with video conversion circuit on the main circuit board, and is connected with the CCD camera of building talkback doorway machine by video signal cable; Serial ports (9) links to each other with other serial devices by RS-485.
As Fig. 3,4, shown in 5, its main circuit board circuit is mainly by CPU, internal storage, the IO interface chip, the temperature detection chip, clock chip, the power supply anti-jamming circuit, sound circuit, the ethernet communication circuit, the phone coding-decoding circuit, the wireless digital signal transmission circuit, infrared learning and radiating circuit constitute, and its interconnected relationship is: power circuit by power line respectively with the Ethernet control circuit, master cpu, internal storage, the IO interface chip, the temperature detection chip, clock chip, the power supply anti-jamming circuit, sound circuit, the phone coding-decoding circuit, the wireless digital signal transmission circuit, infrared learning and radiating circuit are electrically connected mutually; The master cpu of being responsible for the network connection links to each other with ethernet module by a serial ports, and another links to each other with other master cpus, is electrically connected mutually with memory, video conversion, liquid crystal display screen, touch-screen by control and data/address bus simultaneously; It also is electrically connected mutually with clock chip, sound circuit, temperature detection circuit by its iic bus.
As shown in Figure 3, wherein the master cpu circuit module mainly is made of single-chip microcomputer U1, crystal oscillator X1, latch U2; Memory organization is made of U3, U5; LCD Interface is made of JP3; Power circuit is made of U7, U4; Intercommunication and recording circuit are made of U9 and peripheral circuit; Clock circuit is made of U6; Temperature detection circuit is made of U8; JP2 is and the ethernet circuit connector; JP4 is the interface with other circuit modules.
As shown in Figure 4, divide control single-chip microcomputer U2, telephonic communication circuit U 3 and peripheral element, radio transmitter U4 and JP4, wireless receiving circuit JP1, probe signal input circuit U5, U6 and periphery, memory circuit U7, communicating circuit U2 to constitute family's security protection circuit module jointly.
As shown in Figure 5, Ethernet protocol station module is made of jointly agreement station owner Controlled CPU, ethernet controller, memory circuit.
The method that home network general controller of the present invention is used for Communication Control is that the home network general controller is installed in the community user family as a network terminal, link to each other by the server of sub-district broadband networks, and adopt the ICP/IP protocol communication with the cell management center; The circuit module that comprises three tables, security protection, infrared receiving/transmission, wireless receiving and dispatching with subscriber household links to each other, and adopts the communication of RS-485 agreement; When the residential quarters server when local area network (LAN) sends control command or residential quarters information, the Ethernet protocol station circuit module of home network general controller is responsible for data are unpacked, and gives main control microprocessor instruction; Main control microprocessor sends wireless digital signal according to instruction, by the transmission of Radio infrared servomotor, and the various infrared equipments in the control family; When family security protection probe or three table data need return to the residential quarters server, process was opposite.
Mainly the Ethernet protocol stack circuit module that is made of protocol stack chip E5122, ethernet control chip RTL8019AS, storage chip 62256,24C32 is connected the network synthesis controller master cpu of subscriber household with cell server, the TCP/IP that Ethernet protocol stack circuit module is finished data packs, unpacks, this circuit module adopts the RJ45 connected mode to be connected with the sub-district local area network (LAN), adopts the RS232 serial communication to be connected with the home network general controller; The data that the home network general controller will send send protocol stack module to by serial ports, and E5122 becomes the IP packet with the data encapsulation that receives, and send to management server by the RJ45 mouth to little area wideband network then; When the protocol stack module circuit receives that management server passes through the data of sub-district broadband networks transmission, by E5122 the IP data are unpacked and are stored in the memory chip earlier, the control command data after will unpacking then sends to the home network general controller by serial ports.
Described home network general controller and wireless headlamp switch, socket, infrared home appliance, the Communication Control of wireless security protection probe, be need be when subordinate's circuit sends as order data, it is data medium that the home network general controller adopts the wireless carrier of 300~450MHZ, outwards send 12 binary data, wherein preceding 8 address bit as each circuit module of subordinate are used for selecting and which circuit module communication, 4 of backs are used for the transmitting control order as the order data position, the recipient removes carrier wave after receiving wireless signal, solves binary data and can carry out control corresponding.Otherwise if wireless probe has alert to report, its communication process is opposite.
In control program flow process of the present invention as described in Figure 6: (1) program initialization---to the interruption of host CPU, regularly, internal memory, input port, delivery outlet etc. carry out unified planning, and Ethernet protocol stack module is provided with parameters such as IP, port, subnet mask, communication speed.(2) judge and to receive the order of management of residential district center---judge whether the order of sending by the residential quarters local area network (LAN).(3) unpack data by protocol stack and carry out---earlier network data is unpacked, take out the real order data storage in the IP bag then and carry out the corresponding command or transmit to the next circuit module.(4) the next circuit module data are received in judgement---judge whether to receive the data of the next modules such as security protection probe alert signal, three table data-signals.(5) by ICP/IP protocol packing and transmission data.(6) judge and to receive the subscriber phone control command and carry out---judge whether the dtmf signal order data sent by phone, if having then by command execution.(7) low-power consumption mode---if without any action request, program enters the low-power consumption battery saving mode usually.
The present invention compared with prior art has following advantage and beneficial effect: (1) can be used for the system integration of residential quarters, with each dispersion, independently systematic unity management; (2) be the communication basis with the ICP/IP protocol, make full use of residential quarters broadband networks resource, need not carry out other engineering wiring; (3) adopt multi-single-chip microcomputer system, the modularized circuit structure is convenient to by user's request flexible construction system.(4) adopt TFT liquid crystal display screen and, accomplish the double screen unification video intercom image and literal interface organic unity.(5) long-term work of control circuit part is in low-power consumption mode.