It is a kind of about mobile phone is as the authentication method of the automatic control lamp light of identification
[technical field]
The present invention relates to remote control technology field, and specifically a kind of mobile phone is as the automatic control lamp light method of identification.
[background technology]
At present by realizing the automatic control of light with under type.
1. radio-frequency (RF) identification and RFID(Radio Frequency Identification) technology, namely in controlled region, card reader is installed, utilizes the radio-frequency card of clerk's body-worn.Its shortcoming is to leave radio-frequency region as clerical workforce, and cause None-identified, signal light control aspect is embodied in automatically can only turn on light and can not automatically turn off the light.
2. infrared ray recognition technology, i.e. installation infrared identification probe, detect clerical workforce's heat that is movable or that distribute and judge whether have people in Administrative Area, if there is people, automatically open light; If no one, then automatically close light, its shortcoming is that infrared heat detects the impact being vulnerable to sunlight temperature on daytime and causes erroneous judgement, and easily causes erroneous judgement when clerical workforce is static.
Along with universalness and the more and more high-intelligentization degree thereof of mobile phone, combining wireless network, utilizes the mobile phone automatic control lamp carried with only can realize.
[summary of the invention]
The object of the invention is to overcome the deficiencies in the prior art, provide one to utilize mobile phone as wireless monitor object, realize the system that light is automatically opened and closed.
For achieving the above object, design a kind of about mobile phone is as the authentication method of the automatic control lamp light of identification, it is characterized in that the method is that mobile phone arranges a fixing Intranet IP, open WIFI function, install the program with automatic control function on the server additional, after detecting that mobile phone logs in Intranet, namely be considered as mobile phone owner and arrive office space, then server assigns the instruction of turning on light, to intelligent control unit, after intelligent control unit performs related command, corresponding light fixture is opened in certification, when mobile phone, owner leaves office, then leave Intranet wireless service, server cannot measure mobile phone, then be considered as leaving office, then assign instruction and close office light fixture.
The processing method of server is that the user data logged in WAP (wireless access point) is taken out by wired or wireless mode by server in real time, after detecting the cellphone information of counterpart personnel, by being arranged on 485 boards of server internal, control command is sent to control of intelligent terminal by 485 bus modes, control of intelligent terminal J1 interface accepts from after the data of server, by the MAX485 integrated circuit of U2, 485 signals are transferred to the RS232 signal of Transistor-Transistor Logic level, RS232 signal sends into the STC12C5A56S2 microprocessor processes of U1, U1 single-chip microcomputer is through data check, address differentiates, after command analysis, send the relevant instruction opened or closed, go to make Q1 saturation conduction or cut-off by R3, the line bag relay R L1 that Q1 saturation conduction or cut-off make obtains electric or dead electricity, and then make the movable contact of relay R L1 disconnect or close.
The intelligent control unit circuit of the method is connected 1 end of integrated circuit U2 by 3 ends of microprocessor U1, 4 ends of U1 connect 4 ends of U2, 2 ends of U2 are connected with 3 ends and are connected 39 ends of U1 again, 8 ends of U2 connect 5 volts of power supplys, the 5 end ground connection of U2, 6 ends of U2 are connected with J1 contact pin with after 7 end series resistance R1, 31 terminations of U1 have electric capacity C3 one end, resistance R2 one end and 5 volts of power supplys, 21 ends of U2 are provided with resistance R3, resistance R3 other end connecting triode Q1 base stage, triode Q1 grounded emitter, triode Q1 collector electrode one end connects the positive pole of diode D1 and tap one end connects relay R L1 one end, the negative pole of diode D1 connects 12 volts of power supplys and tap one end connects the relay R L1 other end, control switch on relay R L1 is connected with electric light, 18 ends of U1 and 19 ends are provided with the clock signal that electric capacity C1 and C2 and XL forms U1 work.
The present invention compared with prior art, the medium utilized is the mobile phone that clerical workforce carries with, compare radio-frequency card, mobile phone signal emissive porwer is larger apart from farther, and eliminate because current universalness degree is high the trouble manufacturing independent signal projector, improve mobile phone utilance and reduce the unnecessary wasting of resources, by mobile phone access internal wireless network, and differentiate whether clerical workforce arrives Administrative Area accordingly, this criterion is more accurate because of the little judgement of disturbing factor, really realizes the Long-distance Control of light.
[accompanying drawing explanation]
Fig. 1 is principle of the invention frame line chart;
Fig. 2 is intelligent control unit electrical schematic diagram of the present invention.
Fig. 3 is the schematic diagram of local area network (LAN) embodiment of the present invention;
[embodiment]
By reference to the accompanying drawings and embodiment the present invention is further elaborated, its method related to can realize for a person skilled in the art.
The technical problem being light and automatically controlling to be solved by this invention, consider the defect that existing radio frequency and infrared control technology exist, and the stable development of mobile phone and wireless network, design is a kind of by mobile phone, wireless network, server, control circuit settling signal detects, Signal transmissions, signal is changed, the signal light control scheme of signal light control, its principle as shown in Figure 1, the corresponding IP address of each mobile phone, after mobile phone logs in wireless network with this IP, server detects mobile phone signal, estimate mobile phone holder with this and whether arrive Administrative Area, now this mobile phone signal is transferred to control circuit by 485 boards being arranged on server internal by server, control command is sent to control of intelligent terminal by 485 bus modes, control of intelligent terminal J1 interface accepts from after the data of server, by the MAX485 integrated circuit of U2, 485 signals are transferred to the RS232 signal of Transistor-Transistor Logic level, RS232 signal sends into the STC12C5A56S2 microprocessor processes of U1, U1 single-chip microcomputer is through data check, address differentiates, after command analysis, send the relevant instruction opened or closed, go to make Q1 saturation conduction or cut-off by R3, the line bag relay R L1 that Q1 saturation conduction or cut-off make obtains electric or dead electricity, and then make the movable contact of relay R L1 disconnect or close, the opening and closing reaching control light with this realizes light and automatically controls.
Intelligent control unit circuit completes the part of signal conversion and signal light control in scheme, its internal circuit as shown in Figure 2 in an embodiment, 1 end of integrated circuit U2 is connected by 3 ends of microprocessor U1, 4 ends of U1 connect 4 ends of U2, 2 ends of U2 are connected with 3 ends and are connected 39 ends of U1 again, 8 ends of U2 connect 5 volts of power supplys, the 5 end ground connection of U2, 6 ends of U2 are connected with J1 contact pin with after 7 end series resistance R1, 31 terminations of U1 have electric capacity C3 one end, resistance R2 one end and 5 volts of power supplys, 21 ends of U2 are provided with resistance R3, resistance R3 other end connecting triode Q1 base stage, triode Q1 grounded emitter, triode Q1 collector electrode one end connects the positive pole of diode D1 and tap one end connects relay R L1 one end, the negative pole of diode D1 connects 12 volts of power supplys and tap one end connects the relay R L1 other end, control switch on relay R L1 is connected with electric light, 18 ends of U1 and 19 ends are provided with the clock signal that electric capacity C1 and C2 and XL forms U1 work.
Above-mentioned principle and parts are applied in local area network (LAN) as shown in Figure 3, each mobile phone is arranged a fixing Intranet IP, open WIFI function, install program additional on the server, after detecting that mobile phone logs in Intranet, namely be considered as mobile phone owner and arrive office space, then server assigns the instruction of turning on light, to intelligent control unit, after intelligent control unit performs related command, open corresponding light fixture, when client leaves office, then leave Intranet wireless service, server cannot measure mobile phone, then be considered as leaving office, then assign instruction and close office light fixture, digital filtering technique can be adopted to optimize the stability of WIFI signal further, and carry out parallel control office light fixture by computer Background control mode, in order to mobile phone power-off, the situations such as loss, Long-distance Control light accurately and efficiently can be facilitated.