Utility model content
Based on this, being necessary, for traditional supply socket function singleness and problem that cannot Based Intelligent Control, provides a kind of diverse in function and the convenient intelligent power socket of controlling.
In addition, be also necessary to provide a kind of diverse in function and the convenient intelligent power socket control system of controlling.
A kind of intelligent power socket, comprise central processing unit, electric energy metering module, WiFi module, control switch, display module, the aobvious button of wheel and sample circuit, described central processing unit is connected with described electric energy metering module, WiFi module, control switch, display module, the aobvious button of wheel respectively; Described sample circuit is connected with described electric energy metering module; Described sample circuit is used for gathering electric current and voltage, and the electric current of collection and voltage are inputted to described electric energy metering module; Described electric energy metering module obtains electric energy according to described electric current and voltage; Described display module is used for showing described electric energy; Described central processing unit is controlled unlatching and the shutoff of described control switch according to the input signal of described WiFi module.
In an embodiment, described central processing unit and electric energy metering module are integrated therein; Described control switch is relay.
In an embodiment, described intelligent power socket also comprises the infrared transceiver module being connected with described central processing unit therein, controls the household electrical appliance that are connected with described intelligent power socket by described infrared transceiver module.
Therein in an embodiment, described intelligent power socket also comprises and being connected with described central processing unit and for the timing module of control switch break-make described in timing controlled.
A kind of intelligent power socket control system, comprise mobile terminal, wireless router and intelligent power socket, described intelligent power socket comprises central processing unit, electric energy metering module, WiFi module, control switch, display module, the aobvious button of wheel and sample circuit, and described central processing unit is connected with described electric energy metering module, WiFi module, control switch, display module, the aobvious button of wheel respectively; Described sample circuit is connected with described electric energy metering module; Described sample circuit is used for gathering electric current and voltage, and the electric current of collection and voltage are inputted to described electric energy metering module; Described electric energy metering module obtains electric energy according to described electric current and voltage; Described display module is used for showing described electric energy; Described central processing unit is controlled unlatching and the shutoff of described control switch according to the input signal of described WiFi module; Described mobile terminal, wireless router and intelligent power socket form WLAN (wireless local area network), and described mobile terminal is controlled unlatching and the shutoff of the control switch of described intelligent power socket by described wireless router.
Therein in an embodiment, described intelligent power socket initial default settings is wireless router state, described mobile terminal accesses described intelligent power socket, and the SSID of described wireless router and password are configured to described intelligent power socket, so that described intelligent power socket is converted to WiFi client state from wireless router state.
Therein in an embodiment, described intelligent power socket control system also comprises server, described mobile terminal, wireless router, intelligent power socket and server form telecommunications network, and described mobile terminal is controlled unlatching and the shutoff of the control switch of described intelligent power socket by described server and described wireless router.
In an embodiment, described mobile terminal is connected with described server by GPRS pattern, 3G pattern or WiFi pattern therein.
Therein in an embodiment, described intelligent power socket also comprises and being connected with described central processing unit and for the timing module of control switch break-make described in timing controlled; Described mobile terminal carries out task setting to described intelligent power socket, and described timing module is according to the break-make of control switch described in described task timing controlled.
Therein in an embodiment, described intelligent power socket comprises the infrared transceiver module being connected with described central processing unit, described mobile terminal is from the infrared communication code of the Internet download electrical equipment, and directly send to described intelligent power socket, remote control home appliance, or by described server and described wireless router, connect described intelligent power socket, control corresponding household electrical appliance.
Above-mentioned intelligent power socket and control system, can calculate electric energy by electric energy metering module, controls the opening and closing of control switch by the input signal of WiFi module, by display module, shows electric energy etc., diverse in function, and convenient control.
In addition, can inquire about the energy data of intelligent power socket by mobile terminal, mobile terminal coordinates and can realize Long-distance Control and remote inquiry function with server, wireless router.
Embodiment
In order to make the purpose of this utility model, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the utility model is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the utility model, and be not used in restriction the utility model.
As shown in Figure 1, be the structured flowchart of intelligent power socket in an embodiment.This intelligent power socket 100, comprises sample circuit 102, electric energy metering module 104, central processing unit 106, WiFi module 108, control switch 110, the aobvious button 112 of wheel and display module 114.Wherein, central processing unit 106 is connected with display module 114 with electric energy metering module 104, WiFi module 108, control switch 110, the aobvious button 112 of wheel respectively; Sample circuit 102 is connected with electric energy metering module 104.
Sample circuit 102 is for gathering electric current and voltage.This sample circuit 102 comprises current sampling unit and voltage sample unit.Sample circuit 102 is by the electric current gathering and voltage input electric energy metering module 104; Electric energy metering module 104 obtains electric energy according to this electric current and voltage.
Central processing unit 106 is for controlling unlatching and the shutoff of control switch 110 according to the input signal of WiFi module 108.In the present embodiment, control switch 110 can be relay.
WiFi module 108 can adopt AX220XX.This A220XX is the built-in network single chip microcontroller that Taiwan AsiaINFO electronics is released.This A220XX has the IEEE802.11b/g of support wireless standard; Support frequency range: 2.412~2.484GHz; Support two kinds of wireless network types: facilities network (Infra) and MANET (Adhoc); Support multiple security authentication mechanism: WEP-64/128, TKIP (WPA-PSK), AES (WPA2-PSK); Support networking fast; Processor: 80MIPS CPU(Central Processing Unit, central processing unit); Wireless standard: 802.11b/g, 2.4Ghz; Flash:1MB Flash; RAM:64KB SRAM; Message transmission rate IEEE802.11b:1,2,5.5 and 11Mbps; IEEE802.11g:6,9,12,18,24,36,48 and 54Mbp; The characteristics such as frequency range 2.412~2.484GHz.
This WiFi module 108 can be used as STA(Station, and each is connected to the terminal in wireless network) support facilities network and two kinds of wireless networks of MANET.In addition, WiFi module 108 can be used as a simple AP(Access Point, access point).Simple AP refers to and allows a plurality of STA to be attached thereto, but can not provide route forwarding function for STA.
The aobvious button 112 of wheel is checked energy data for checking instruction for user's input, see to roll.
Display module 114 is for showing this electric energy.This display module 114 can be liquid crystal display etc.
In one embodiment, central processing unit 106 and electric energy metering module 104 are integrated, can save space.Concrete, central processing unit 106 can adopt ATT7039.This ATT7039 is that huge spring Optoelectronics Technology is produced, its Embedded single-phase measurement, processor, power management, Clock management, PLL(Phase Locked Loop, phase-locked loop), the function such as JTAG debugging.Concrete is based on 8 bit CPU 52 designs, has 8052 Compatible instruction sets and bus structures; The CPU of single Cycle; Embedded PLL frequency multiplier circuit; The memory resource that Embedded is abundant, comprises the Flash program storage of 30K, the Flash data storage of 2K, and erasing times is greater than 200,000 times; 256 bytes have the infoFlash memory of protection operation; 256 byte inner data registers; 4K byte external data register, wherein 256 bytes, when power down, can keep data not lose by back-up source; Have power supply monitoring function, power supply monitoring threshold value can arrange, power-on and power-off reliable reset; Under HOLD pattern, support the multiple wake-up modes such as external interrupt; Under SLEEP pattern, support the multiple wake-up modes such as external interrupt; The hardware watchdog circuit that Embedded can never turn-off; Embedded temperature sensor and battery voltage detection circuit; The peripheral hardwares such as Embedded button, serial communication, LCD, I2C.
In one embodiment, above-mentioned intelligent power socket 100 also comprises the infrared transceiver module 116 being connected with central processing unit 106.Can control the household electrical appliance that intelligent power socket 100 connects by infrared transceiver module 116.
In addition, above-mentioned intelligent power socket 100 also comprises the timing module being connected with central processing unit 106, by these timing module timing controlled control switch 110 break-makes.By the aobvious button 112 of the wheel on intelligent power socket 100, timing is set.
Above-mentioned intelligent power socket 100, can calculate electric energy by electric energy metering module 104, controls the opening and closing of control switch 110 by the input signal of WiFi module 108, by display module 114, shows electric energy etc., diverse in function, and convenient control.
As shown in Figure 2, be intelligent power socket control system in an embodiment.This intelligent power socket control system, comprises intelligent power socket 100, wireless router 200 and mobile terminal 300.Mobile terminal 300, wireless router 200 and intelligent power socket 100 form WLAN (wireless local area network), and mobile terminal 300 is controlled unlatching and the shutoff of the control switch of intelligent power socket 100 by wireless router 200.
Intelligent power socket 100 initial default settings are wireless router state (AP state), mobile terminal 300 access intelligent power sockets 100, and by the SSID(Service Set Identifier of wireless router 200, service set) and password configure to intelligent power socket 100 so that intelligent power socket 100 is converted to WiFi client state from wireless router state.
Concrete, use tcp port set module parameter and preserve, can use as issued orders:
First connecting this AP(is intelligent power socket) 25001 ports, send following data, set the client(client of intelligent power socket 100 expectations) state parameter.
If specify the IP of intelligent power socket 100 as follows:
req_set:nt=0,ssid=sz-boss,et=4,pass=12345678,dhcp=0,ip=192.168.1.121,
mask=255.255.255.0,gw=192.168.1.1,dns=202.96.134.133,ct=0,cm=0,lport=5000,
rport=5000,rhost=192.168.2.2,uart2=17192,sv,rb=1。
Success connection route device, will be assigned to an IP address.
Then mobile terminal 300 is again by UDP(User Datagram Protocol, User Datagram Protoco (UDP)) port that is 25002 toward target in WLAN (wireless local area network) is sent out a broadcast data packet, the content of this broadcast data packet can be set as required, in the present embodiment, preset content is 11 bytes " req_search: ", intelligent power socket 100 receives after this broadcast data packet, return to a response data packet, content is " rsp_search:sn=291031313; mac=00-19-02-03-02-01; mcpu=1.3.2, wcpu=2.0.0, " character string.Mobile terminal 300 extracts the response data packet of intelligent power socket 100, and determines the correspondence of its IP address and mac/sn address, can determine the new IP address of the intelligent power socket 100 of firm switching.
Mobile terminal 300 is also for sending electric energy query statement to intelligent power socket 100, and to obtain the energy data of intelligent power socket 100, this energy data comprises at least one in electric energy, electric current, voltage, frequency.Concrete, mobile terminal 300 sends electric energy query statement by wireless router 200 to intelligent power socket 100; Intelligent power socket 100 returns to mobile terminal 300 by energy data by wireless router 200 according to this electric energy query statement.
This mobile terminal 300 can be mobile phone, panel computer or personal digital assistant etc.
As shown in Figure 3, be the structural representation of intelligent power socket control system in another embodiment.This intelligent power socket control system, except comprising intelligent power socket 100, wireless router 200 and mobile terminal 300, also comprises server 400.Mobile terminal 300, wireless router 200, intelligent power socket 100 and server 400 form telecommunications network, and mobile terminal 300 is controlled unlatching and the shutoff of the control switch of intelligent power socket 100 by server 400 and wireless router 200.
The facility information that server 400 is also uploaded for receiving intelligent power socket 100, and the number of this facility information and mobile terminal 200 is bound.
Mobile terminal 300 is connected with server 400 by GPRS pattern, 3G pattern or WiFi pattern.While facilitating user out of doors, intelligent power socket transmitting-receiving electric energy copy reading instruction and control command by mobile terminal 300 to house or place, office space, thereby the remote control function of realization.
Mobile terminal 300 is also for sending electric energy query statement to intelligent power socket 100, and to obtain the energy data of intelligent power socket 100, this energy data comprises at least one in electric energy, electric current, voltage, frequency.Concrete, mobile terminal 300 sends electric energy query statement by server 400 and wireless router 200 to intelligent power socket 100; Intelligent power socket 100 returns to mobile terminal 300 by energy data by wireless router 200 and server 400 according to this electric energy query statement.By server 400, realized the function of Long-distance Control and remote inquiry.
Mobile terminal 300 can also arrange a plurality of timed tasks to intelligent power socket 100, by the timing module timing controlled of intelligent power socket 100, achieves the function in timed on-off of power source.
Mobile terminal 300 can also be downloaded from the Internet the infrared communication code of household electrical appliance, by WLAN (wireless local area network) with the intelligent power socket of infrared transceiver module, direct household electrical appliance in remote control family, also can pass through out of doors GPRS pattern, 3G pattern or WiFi pattern and be connected with server 400, to the transmission of the intelligent power socket with the infrared transceiver module guidance command at house or place, office space.
The above embodiment has only expressed several execution mode of the present utility model, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the utility model the scope of the claims.It should be pointed out that for the person of ordinary skill of the art, without departing from the concept of the premise utility, can also make some distortion and improvement, these all belong to protection range of the present utility model.Therefore, the protection range of the utility model patent should be as the criterion with claims.