CN103002159B - A kind of Bluetooth of mobile phone control switch and control method - Google Patents

A kind of Bluetooth of mobile phone control switch and control method Download PDF

Info

Publication number
CN103002159B
CN103002159B CN201210570471.7A CN201210570471A CN103002159B CN 103002159 B CN103002159 B CN 103002159B CN 201210570471 A CN201210570471 A CN 201210570471A CN 103002159 B CN103002159 B CN 103002159B
Authority
CN
China
Prior art keywords
mobile phone
button
bluetooth module
switch
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210570471.7A
Other languages
Chinese (zh)
Other versions
CN103002159A (en
Inventor
潘伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201510475426.7A priority Critical patent/CN105023419B/en
Priority to CN201210570471.7A priority patent/CN103002159B/en
Publication of CN103002159A publication Critical patent/CN103002159A/en
Application granted granted Critical
Publication of CN103002159B publication Critical patent/CN103002159B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of Bluetooth of mobile phone control switch and control method, comprise controller and the mobile phone with Bluetooth function, controller arranges bluetooth module, power module, switch control module, bluetooth module respectively with power module, switch control module is connected, the output connecting circuit switch of described controller, controller is set up communication by bluetooth module and mobile phone and is connected, controller receives the control command sent from mobile phone by bluetooth module on the one hand, and process in bluetooth module inside, bluetooth module exports adhesive and the release that low and high level comes control switch control module contact, realize on-off action, bluetooth module sends to mobile phone the result after process on the other hand, and feedback information is shown to display switch state on software interface.Bluetooth module of the present invention is creatively direct to be analyzed control command, process and controls, and is operated in not discoverable mode, and circuit design of the present invention is compact, with low cost, and reliability is high, easily promotes the use of.

Description

A kind of Bluetooth of mobile phone control switch and control method
Technical field
The invention belongs to Industry Control, electrical equipment control and electronic lock and control technical field, particularly a kind of Bluetooth of mobile phone control switch and control method.
Background technology
Along with the development of society and the progress of science and technology, the smart mobile phone of large-screen, touch-screen is just being subject to liking of more and more people, and Bluetooth function has become the standard configuration of smart mobile phone.Bluetooth is a kind of wireless communication technique of short distance, and electronic installation can couple together through bluetooth each other, eliminates traditional electric wire.Smart mobile phone has easy to carry, good man-machine interface, is a good remote controller.Traditional industrial equipment controls and lighting apparatus controls, and adopt and have line traffic control, control end and controlled terminal exist physics connection.Smart mobile phone is applied to industrial equipment control and lighting apparatus control, it makes user free from the line of numerous and complicated, has profound significance; Smart mobile phone is applied to field of vehicles and electronic lock field, can easily realize the unblanking of automobile, car locking, quiet, open boot, start the functions such as air-conditioning, life will be made more convenient.CN 102186285 A discloses a kind of light fixture of Bluetooth of mobile phone Long-distance Control; comprise light fixture and the mobile phone with Bluetooth function; light fixture is provided with main control module, bluetooth module, luminous lamp tube, power module; main control module is connected with power module with bluetooth module, luminous lamp tube respectively; light fixture is established a communications link by bluetooth module and mobile phone; light fixture receives the control command sent from mobile phone by bluetooth module on the one hand, and control command is transferred to the main control module process of light fixture; Main control module sends packet by bluetooth module to mobile phone on the other hand, and the control command that main control module sends according to user controls luminous lamp tube.Foregoing invention, user controls lamp switch by mobile phone remote, but the light fixture of described Bluetooth of mobile phone Long-distance Control adopts main control module to process, only be the use of the function that traditional bluetooth module receives data, ignore the power of bluetooth module as chip itself completely, add complexity in circuits, add failure rate, cause certain wasting of resources.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provides a kind of Bluetooth of mobile phone control switch and control method, achieves user and controls industrial equipment, appliance switch, the vehicles by mobile phone wireless, efficiently solves controlled in wireless and a wiring difficult problem.
To achieve these goals, the technical solution used in the present invention is: a kind of Bluetooth of mobile phone control switch, comprise controller and the mobile phone with Bluetooth function, described controller arranges bluetooth module, power module, switch control module, described bluetooth module respectively with power module, switch control module is connected, the output connecting circuit switch of described controller, described controller is set up communication by bluetooth module and mobile phone and is connected, controller receives the control command sent from described mobile phone by bluetooth module on the one hand, the control command received processes by described bluetooth module therein, described bluetooth module controls adhesive and the release of the contact of described switch control module by exporting low and high level, thus realize on-off action, described bluetooth module sends to described mobile phone the result after process on the other hand, and described mobile phone is shown to the current state of display switch on software interface the feedback information received.
All arrange corresponding application program in described mobile phone and described controller, described bluetooth module exports by PIO port adhesive and the release that low and high level controls the contact of described switch control module.
Described power module is connected with described switch control module with described bluetooth module respectively, for they provide stable working power.
Described controller arranges insulation crust.
Described bluetooth module is set to BC417143 Bluetooth chip, external 8Mbit FLASH, 6 road Non-follow control, and 6 tunnels export.
Described bluetooth module is set to 12 tunnels and exports, and PIO0 ~ PIO11 is output port, the described switch control module of corresponding connection.
The external analog switching ic of PIO port of described bluetooth module, can expand to 16 tunnels and export or the output of 32 tunnels, even more multiple-channel output.
The quantity of described mobile phone is set to one or more.
The quantity of described bluetooth module is set to one or more.
Described bluetooth module arranges User Defined signal code and power failure memory function.
Described appliance switch comprises the various electromagnetic switch such as relay switch, lighting switch, car key switch, door switch.
Operation principle of the present invention: controller mainly comprises bluetooth module, power module, switch control module, described controller is set up communication by bluetooth module with described mobile phone and is connected, and receives and send packet to described mobile phone; Described bluetooth module not only carries out data communication with described mobile phone, and carries out analyzing and processing to described control command, drives described switch control module action; Set up applications on user mobile phone, is connected with described controller communication by the bluetooth equipment on described mobile phone, to described controller sending controling instruction, and receives the reply data bag that described controller returns.
The control method of Bluetooth of mobile phone control switch of the present invention, comprises the following steps:
A () first connects industrial equipment or lighting apparatus the output of described controller, described power supply connected by described controller;
B () opens application program of mobile phone, click menu-setting, enters button and arranges, the identifier (identifier is arranged on the nameplate of controller) of load button title and controller, and preserve; Click menu-startup, the main interface of display and control button;
C the type of button of () cell phone software is set to A, B, C three types, specific works flow process is as follows:
Category-A type button: press the button starting device, start successfully and press the button closing device again, workflow is as follows:
Starting device: press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment energising runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts) simultaneously;
Arrestment: after device start success, press the button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
Category-B type button: press the button starting device, release button closing device, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts) simultaneously;
Release button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
C type button: press the button starting device, start latching successfully, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Simultaneously described bluetooth module send to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts)-time delay-described mobile phone to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
D () described controller is received and analyzing and processing control command by described bluetooth module, and drive described switch control module to make corresponding action.
(e) Non-follow control: to having Three models, the first Non-follow control, when the hand push button be connected with described bluetooth module closes, corresponding described switch control module adhesive, makes equipment be energized and runs; When described hand push button disconnects, corresponding described switch control module releasing contact, makes device powers down stop; The second Non-follow control, presses described hand push button, and equipment energising runs, and again presses described hand push button, and device powers down stops; The third Non-follow control, presses described hand push button, starting device, then timing automatic arrestment.If described hand push button closing apparatus has a power failure suddenly when being in running status, send a telegram here again after a while, even if at this moment described hand push button is in closure state, equipment also can not run.
(f) for controlling industrial equipment, the controller of civil electric appliance equipment has following functions:
1), a controller supports that plurality of mobile phones controls;
2), single channel and multi-channel control;
3), Non-follow control;
4) number of times that powers on, by controlling controller controls the output of single channel or multichannel:
5), power failure memory function;
6), the mode of operation of user's selection control;
G () has following functions for the controller controlling the vehicles and electronic lock:
1), 1 controller supports that plurality of mobile phones controls;
2), single channel or multi-channel control;
3), User Defined signal code: the packet that mobile phone sends comprises cryptopart and control command part, and password arranges and is divided into two classes:
The first kind, arranges a signal code: arrange password in cell phone software and preserve: the button arranging password button-press cell phone software pressing controller sends packet-controller and receives packet and the password button-password that arranges being stored into memory-unclamp controller is provided with.The button pressing described cell phone software as user sends packet, described controller receives packet and first resolves cryptopart and the cryptopart of the packet stored with memory compares, if cryptopart is identical, then resolve the control command part of this packet, the control command after parsing controls corresponding output port action.
Equations of The Second Kind, multiple signal code is set: each button of cell phone software can arrange signal code, illustrates: the signal code of the A button of cell phone software is first set and preserves: the A road password pressing described controller arranges button-press cell phone software A button and sends packet-described controller and receive packet and the A road password being stored into the described controller of A memory-unclamp arranges button-password is provided with.The cipher set-up method of other buttons is identical with described A button.The A button pressing cell phone software as user sends packet, and described controller receives packet and compares with the packet that all memories store, if packet is identical, the control command of then resolving this packet controls corresponding output port action.
Beneficial effect of the present invention:
A the bluetooth module of () described controller not only carries out data communication with described mobile phone, and analyze described control command, process, and participates in control directly;
B () described controller and cell phone software communication, without the need to search, pairing, only need arrange identifier in described cell phone software, get final product communication; The bluetooth module of described controller is operated in not discoverable mode, and other bluetooth equipments cannot access described controller, is have higher coefficient of safety compared with the bluetooth equipment of discoverable mode;
C () arranges power-off and removes memory function: no matter be that described mobile phone controls, or Non-follow control, and send a telegram here after a while after power-off, described switch control module is in release condition all the time again, can effectively avoid security incident occurs;
(d) described cell phone software have timing open, timing closing function;
The mode of operation of (e) user selection control;
F () controls the output of single channel or multichannel by the number of times that powers on controlling controller;
G () user can self-defined signal code, enhance fail safe;
H () described cell phone software can arrange arbitrarily the quantity of described button;
I () cell phone software can control multiple controller; And a controller can be subject at most the control of seven described mobile phones at the same time.
J () described controller is made up of bluetooth module, power module, this three part of switch control module, circuit structure design is compact, with low cost, and effectively avoid too many levels in circuit design to cause departure and the high defect of failure probability, can effectively increase work efficiency and reliability.
The omnibearing exploration of the present invention function of bluetooth module, change the present situation using bluetooth as transmission data element of everybody common recognition in traditional sense, Programming is carried out as core control element using bluetooth, and achieve the function of the various electromagnetic switch switch of Bluetooth control, perfect in shape and function, workable, coefficient of safety is high, creatively improves smart mobile phone practical value.
The control protocol of controller of the present invention and mobile phone and the same mobile phone being suitable for other operating systems of method, as long as the mobile phone of its operating system possesses the condition of bluetooth exploitation, just easily can realize the function that mobile phone wireless controls industrial equipment, civil electric appliance equipment, the vehicles, electronic lock, allow mobile phone become the smart mobile phone really with practical value.
Accompanying drawing explanation
Fig. 1 controller hardware block diagram of the present invention;
Fig. 2 controller hardware circuit diagram of the present invention;
Electric control wiring schematic diagram on Fig. 3 controller;
Fig. 4 controller powers on control flow chart;
Fig. 5 controller application flows figure of the present invention;
Fig. 6 Android Android system mobile phone of the present invention application flows figure;
Fig. 7 JAVA system mobile phone of the present invention application flows figure;
The application rollouts of Fig. 8 Android Android system mobile phone of the present invention;
The application rollouts of Fig. 9 JAVA system mobile phone of the present invention.
Embodiment
Specific embodiment 1
A kind of Bluetooth of mobile phone control switch, comprise controller and the mobile phone with Bluetooth function, described controller arranges bluetooth module, power module, switch control module, described controller hardware block diagram as shown in Figure 1, described bluetooth module is connected with described power module and described switch control module respectively, the output connecting circuit switch of described controller, described controller is set up communication by described bluetooth module with described mobile phone and is connected, described controller receives the control command sent from mobile phone by described bluetooth module on the one hand, after the control command received processes by bluetooth module therein, bluetooth module comes adhesive and the release of the contact of control switch control module by exporting low and high level, thus realize on-off action, bluetooth module can send to mobile phone the result after process on the other hand, and mobile phone is shown to the feedback information received on software interface, is used for showing current on off state.
Corresponding application program is all provided with in described mobile phone and described controller; Described controller receives the control command of described mobile phone transmission by described bluetooth module, the control command received processes by described bluetooth module therein, export by PIO port adhesive and the release that low and high level controls the contact of described switch control module, thus realize on-off action.
Described power module is connected with described switch control module with described bluetooth module respectively, for they provide stable working power.
Described controller arranges insulation crust, and described insulation crust is installed on appliance switch inside, and described appliance switch is set to relay switch.
Described bluetooth module is set to BC417143 Bluetooth chip; External 8Mbit FLASH, can meet the capacity requirement of this system; Electric current 20 ~ 40MA fluctuation when low-voltage 3.3V work (3.1V ~ 4.2V) connects, electric current 20MA time standby; PIO port able to programme, is convenient to user program expansion; The application program that described bluetooth module runs is developed by C programmer; Described bluetooth module has low-power consumption, volume little (27mm × 13mm × 2mm), employing SMD paster technique, simple periphery design circuit, Class 2 power level, working temperature :-25 to+75 degree are the ideal choses without line development.
As shown in Figure 2, this circuit is 6 road Non-follow control to the hardware circuit diagram of described controller, and 6 tunnels export.PIO0, PIO1, PIO2, PIO3, PIO4, PIO5, as output port, export controlled quentity controlled variable information, are connected respectively J1, J2, J3, J4, J5, J6 switch control module; PIO6, PIO7, PIO8, PIO9, PIO10, PIO11 are set to input port, input operation action message, are connected respectively S1, S2, S3, S4, S5, S6 hand push button; When closed S1 hand push button, PIO0 exports high level, the adhesive of J1 relay; When disconnecting S1 hand push button, PIO0 output low level, J1 relay discharges; Hand push button S2 control J2 switch control module, hand push button S3 control J3 switch control module, hand push button S4 control J4 switch control module, hand push button S5 control J5 switch control module, hand push button S6 control J6 switch control module.
Controlled the output state of single channel or multichannel by the number of times that powers on controlling described controller, on described controller, electric control wiring schematic diagram as shown in Figure 3, and described controller is that 4 tunnels export, and be respectively A road, B road, C road, D road, K switch is mains switch.Described controller powers on control flow chart as shown in Figure 4, as first time closed electrical source switch K, first work in combination, so-called " combination " just refer to A road, B road, C road, the output of D road operating state for opening or closing, be expressed as A ON/OFF, B ON/OFF, C ON/OFF, the open/close combination of D, can be ABCD standard-sized sheet, also can be ABCD complete shut-down, can also arbitrary, wantonly two for ABCD, wantonly three, wantonly four open or close; As second time closed electrical source switch K, second " combination " works; As third time closed electrical source switch K, the 3rd " combination " works.
As previously mentioned, No. 4 controllers shown in Fig. 3, single channel or multiplexer (MUX can certainly be set to, several mode of operation can be preset in the bluetooth module program of described controller, " combination " that often kind of mode of operation is corresponding different, user according to the mode of operation needing selection control of oneself, thus can realize different switching effect.
Described controller application program as shown in Figure 5, after described controller energising, start working, and waits for the connection of mobile phone by described bluetooth module; When after the control command receiving the transmission of described mobile phone, described bluetooth module controls described switch control module and performs corresponding action, sends feedback information to described mobile phone simultaneously.
User can select smart mobile phone supporting with it according to control software design, controlling application program installed by described mobile phone: described application program is by JAVA program development, as shown in Figure 6, JAVA system mobile phone application program as shown in Figure 7 for Android Android system mobile phone application program.
Open application program of mobile phone, click menu-setting, enter button and arrange, the identifier (position identifier is arranged on the nameplate of described controller) of load button title and controller, and preserve; Click menu-startup, show described button key frame; Press the described button set, described mobile phone is to described controller sending controling instruction, and described controller performs corresponding action according to receiving control command; Described mobile phone receives the feedback information that described controller sends simultaneously, and on software, show the action performed by described controller.As shown in Figure 8, JAVA system mobile phone application program as shown in Figure 9 for Android Android system mobile phone application program.
The quantity of described mobile phone is set to one; The quantity of described bluetooth module is set to one or more.Be convenient to realize a mobile phone and control multiple controlled switch simultaneously.
Described bluetooth module arranges User Defined signal code and power failure memory function.
Specific embodiment 2
Distinguish with specific embodiment 1 and be, described controller is directly installed on electric switch shell side, and output jumps into switch by wire; The quantity of described mobile phone is set to multiple; The quantity of described bluetooth module is set to one.Be convenient to realize multiple mobile phone and control same controlled switch, easy for installation, lower, with low cost for the elegance requirement of its profile.
Specific embodiment 3
Distinguish with specific embodiment 1 and be, described controller is directly installed on appliance switch inside, can conserve space well, and described appliance switch is set to lighting switch; The quantity of described mobile phone is set to multiple; The quantity of described bluetooth module is set to one.Be convenient to realize multiple mobile phone and control same controlled switch.
Specific embodiment 4
Distinguish with specific embodiment 1 and be, described controller arranges insulation crust, and described insulation crust is installed on appliance switch inside, and described appliance switch is set to industrial relay switch; Described bluetooth module is set to 12 tunnels and exports, and PIO0 ~ PIO11 is output port, the described switch control module of corresponding connection; The quantity of described mobile phone is set to multiple; The quantity of described bluetooth module is set to multiple.Be convenient to realize the controlled switch of the comprehensive control of multiple mobile phone, solve Industry Control and climb inconvenient problem up and down.
Specific embodiment 5
Distinguish with specific embodiment 4 and be, described bluetooth module is set to 16 tunnels and exports, and PIO0 ~ PIO15 is output port, the described switch control module of corresponding connection; Be convenient to realize the controlled switch of the comprehensive control of multiple mobile phone, solve Industry Control and climb inconvenient problem up and down.
Specific embodiment 6
Distinguish with specific embodiment 1 and be, described controller is directly installed on car key switch internal, saves insulation crust, can conserve space well, can not normally use by Harassment Vehicle key; The quantity of described mobile phone is set to 1; The quantity of described bluetooth module is set to one.Be convenient to realize mobile phone and control car key, the action of simulation car key, thus the function transplanting of automobile remote controllers has been arrived on mobile phone, even if car key is locked in car, also car door can be opened, solve the troublesome problem forgotten car key and must go home to get, a coverlet one mobile phone controls simultaneously, and fail safe is good.Described method is equally applicable to the control to other automatically controlled class vehicles and electronic lock.
Operation principle of the present invention: controller mainly comprises bluetooth module, power module, switch control module, described controller is set up communication by bluetooth module with described mobile phone and is connected, and receives and send packet to described mobile phone; Described bluetooth module not only carries out data communication with described mobile phone, and carries out analyzing and processing to described control command, drives described switch control module action; Set up applications on user mobile phone, is connected with described controller communication by the bluetooth equipment on described mobile phone, to described controller sending controling instruction, and receives the reply data bag that described controller returns.
Work process: user opens and starts application program of mobile phone, data cube computation is set up by Bluetooth of mobile phone and controller, controller receives the control command of mobile phone transmission by bluetooth module and resolves instruction, exports the action of low and high level control switch control module, realizes on-off action; Simultaneously bluetooth module the result feedback performed to mobile phone.
The control method of Bluetooth of mobile phone control switch of the present invention, comprises the following steps:
A () first connects industrial equipment or lighting apparatus the output of described controller, described power supply connected by described controller;
B () opens application program of mobile phone, click menu-setting, enters button and arranges, the identifier (identifier is arranged on the nameplate of controller) of load button title and controller, and preserve; Click menu-startup, the main interface of display and control button;
C the type of button of () cell phone software is set to A, B, C three types, specific works flow process is as follows:
Category-A type button: press the button starting device, start successfully and press the button closing device again, workflow is as follows:
Starting device: press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment energising runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts) simultaneously;
Arrestment: after device start success, press the button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
Category-B type button: press the button starting device, release button closing device, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts) simultaneously;
Release button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
C type button: press the button starting device, start latching successfully, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Simultaneously described bluetooth module send to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment starts)-time delay-described mobile phone to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes (indication equipment stops) simultaneously;
D () described controller is received and analyzing and processing control command by described bluetooth module, and drive described switch control module to make corresponding action.
(e) Non-follow control: to having Three models, the first Non-follow control, when the hand push button be connected with described bluetooth module closes, corresponding described switch control module adhesive, makes equipment be energized and runs; When described hand push button disconnects, corresponding described switch control module releasing contact, makes device powers down stop; The second Non-follow control, presses described hand push button, and equipment energising runs, and again presses described hand push button, and device powers down stops; The third Non-follow control, presses described hand push button, starting device, then timing automatic arrestment.If described hand push button closing apparatus has a power failure suddenly when being in running status, send a telegram here again after a while, even if at this moment described hand push button is in closure state, equipment also can not run.
Beneficial effect of the present invention:
A the bluetooth module of () described controller not only carries out data communication with described mobile phone, and analyze described control command, process, and participates in control directly;
B () described controller and cell phone software communication, without the need to search, pairing, only need arrange identifier in described cell phone software, get final product communication; The bluetooth module of described controller is operated in not discoverable mode, and other bluetooth equipments cannot access described controller, is have higher coefficient of safety compared with the bluetooth equipment of discoverable mode;
C () arranges power-off and removes memory function: no matter be that described mobile phone controls, or Non-follow control, and send a telegram here after a while after power-off, described switch control module is in release condition all the time again, can effectively avoid security incident occurs;
(d) described cell phone software have timing open, timing closing function;
E () described cell phone software can arrange arbitrarily the quantity of described button;
F () cell phone software can control multiple controller; And a controller can be subject at most the control of seven described mobile phones at the same time.
G () described controller is made up of bluetooth module, power module, this three part of switch control module, circuit structure design is compact, with low cost, and effectively avoid too many levels in circuit design to cause departure and the high defect of failure probability, can effectively increase work efficiency and reliability.
The omnibearing exploration of the present invention function of bluetooth module, change the present situation using bluetooth as transmission data element of everybody common recognition in traditional sense, Programming is carried out as core control element using bluetooth, and achieve the function of the various electromagnetic switch switch of Bluetooth control, perfect in shape and function, workable, coefficient of safety is high, creatively improves smart mobile phone practical value.
The control protocol of controller of the present invention and mobile phone and the same mobile phone being suitable for other operating systems of method, as long as the mobile phone of its operating system possesses the condition of bluetooth exploitation, just easily can realize the function that mobile phone wireless controls industrial equipment, civil electric appliance equipment, the vehicles, electronic lock, allow mobile phone become the smart mobile phone really with practical value.

Claims (8)

1. a Bluetooth of mobile phone control switch, it is characterized in that: comprise controller and the mobile phone with Bluetooth function, described controller arranges bluetooth module, power module, switch control module, described bluetooth module respectively with power module, switch control module is connected, the output connecting circuit switch of described controller, described controller is set up communication by bluetooth module and mobile phone and is connected, controller receives the control command sent from described mobile phone by bluetooth module on the one hand, the control command received processes by described bluetooth module therein, described bluetooth module controls adhesive and the release of the contact of described switch control module by exporting low and high level, thus realize on-off action, described bluetooth module sends to described mobile phone the result after process on the other hand, and described mobile phone is shown to the current state of display switch on software interface the feedback information received,
Its control method, comprises the following steps:
A () first connects industrial equipment or lighting apparatus the output of described controller, described power supply connected by described controller;
B () opens application program of mobile phone, click menu-setting, enters button and arranges, the identifier of load button title and controller, and preserve; Click menu-startup, the main interface of display and control button;
C the type of button of () cell phone software is set to A, B, C three types, specific works flow process is as follows:
Category-A type button: press the button starting device, start successfully and press the button closing device again, workflow is as follows:
Starting device: press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment energising runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes simultaneously;
Arrestment: after device start success, press the button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes simultaneously;
Category-B type button: press the button starting device, release button closing device, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes simultaneously;
Release button-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes simultaneously;
C type button: press the button starting device, start latching successfully, workflow is as follows:
Press the button-described mobile phone receives instruction to the bluetooth module that described controller sends starting command-described controller and exports high level and drive described switch control module adhesive, and equipment is energized and runs; Simultaneously described bluetooth module to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes-time delay-described mobile phone send to described controller cease and desist order-bluetooth module of described controller receives instruction and output low level drives described switch control module releasing contact, and device powers down is stopped; Described bluetooth module is to the result after described mobile phone transmission processing-described mobile phone receives feedback information-Button Color and text color changes simultaneously;
D () described controller is received and analyzing and processing control command by described bluetooth module, and drive described switch control module to make corresponding action;
(e) Non-follow control: to having Three models, the first Non-follow control, when the hand push button be connected with described bluetooth module closes, corresponding described switch control module adhesive, makes equipment be energized and runs; When described hand push button disconnects, corresponding described switch control module releasing contact, makes device powers down stop; The second Non-follow control, presses described hand push button, and equipment energising runs, and again presses described hand push button, and device powers down stops; The third Non-follow control, presses described hand push button, starting device, then timing automatic arrestment; If described hand push button closing apparatus has a power failure suddenly when being in running status, send a telegram here again after a while, even if at this moment described hand push button is in closure state, equipment also can not run.
2. Bluetooth of mobile phone control switch as claimed in claim 1, it is characterized in that: all arrange corresponding application program in described mobile phone and described controller, described bluetooth module exports by PIO port adhesive and the release that low and high level controls the contact of described switch control module.
3. Bluetooth of mobile phone control switch as claimed in claim 1, is characterized in that: described controller arranges insulation crust.
4. Bluetooth of mobile phone control switch as claimed in claim 1, is characterized in that: described bluetooth module is set to BC417143 Bluetooth chip, external 8Mbit FLASH, 6 road Non-follow control, and 6 tunnels export.
5. Bluetooth of mobile phone control switch as claimed in claim 1, is characterized in that: described bluetooth module is set to 12 tunnels and exports, and PIO0 ~ PIO11 is set to output port, correspondingly connects described switch control module.
6. Bluetooth of mobile phone control switch as claimed in claim 1, is characterized in that: the external analog switching ic of PIO port of described bluetooth module, expands to that 16 tunnels export, 32 tunnels export or more multiple-channel output.
7. Bluetooth of mobile phone control switch as claimed in claim 1, is characterized in that: described appliance switch comprises the various electromagnetic switch such as relay switch, lighting switch, car key switch, door switch.
8. Bluetooth of mobile phone control switch as described in as arbitrary in claim 1-7, is characterized in that: described controller has following functions:
1), a controller supports that plurality of mobile phones controls;
2), single channel and multi-channel control;
3), Non-follow control;
4) number of times that powers on, by controlling controller controls the output of single channel or multichannel:
5), power failure memory function;
6), the mode of operation of user's selection control.
CN201210570471.7A 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method Expired - Fee Related CN103002159B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510475426.7A CN105023419B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method
CN201210570471.7A CN103002159B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210570471.7A CN103002159B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201510475426.7A Division CN105023419B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method

Publications (2)

Publication Number Publication Date
CN103002159A CN103002159A (en) 2013-03-27
CN103002159B true CN103002159B (en) 2015-09-02

Family

ID=47930277

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210570471.7A Expired - Fee Related CN103002159B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method
CN201510475426.7A Active CN105023419B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510475426.7A Active CN105023419B (en) 2012-12-25 2012-12-25 A kind of Bluetooth of mobile phone control switch and control method

Country Status (1)

Country Link
CN (2) CN103002159B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103217919A (en) * 2013-04-27 2013-07-24 肖迟 Wireless intelligent switch based on intelligent mobile phone control and control method thereof
CN103441998A (en) * 2013-08-22 2013-12-11 李少杰 Safe privacy control method for mobile phone during non-calling period
CN103885368A (en) * 2014-04-10 2014-06-25 黄慧 Intelligent switch control system based on Bluetooth communication
CN105450836A (en) * 2014-08-26 2016-03-30 联想(北京)有限公司 Method, device and system for operation mode switching
US10257204B2 (en) 2014-06-27 2019-04-09 Lenovo (Beijing) Co., Ltd. Information processing method and electronic apparatus
CN104601821B (en) * 2015-01-30 2018-09-21 江苏中航伟业电子科技发展有限公司 A method of realizing terminal traffic control
CN105448069A (en) * 2015-12-28 2016-03-30 武汉化神科技有限公司 Bluetooth controller and operation method
CN105676669A (en) * 2016-04-13 2016-06-15 南通扬宇电子有限公司 Intelligent wall switch based on bluetooth 4.1 interconnection technology
CN106094666A (en) * 2016-08-26 2016-11-09 百色学院 A kind of network remote controls intelligent switch system
CN106227113B (en) * 2016-08-31 2019-03-22 合肥荣事达电子电器集团有限公司 A kind of Uni-connection multi-control switch based on wireless control
KR102210020B1 (en) 2017-06-29 2021-02-01 캐논 가부시끼가이샤 Communication apparatus and control method therefor
CN108694824B (en) * 2018-05-18 2021-01-12 深圳市永祥测控技术有限公司 Control method and system of energy-saving Bluetooth switch for electric equipment in office area
CN108710314A (en) * 2018-05-21 2018-10-26 上海金东唐科技有限公司 A kind of no button startup method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8522309B2 (en) * 2007-01-22 2013-08-27 Simon Yoffe Security switch
CN201153310Y (en) * 2008-01-29 2008-11-19 中兴通讯股份有限公司 Mobile phone remote controlling various switches
CN101447120A (en) * 2008-12-23 2009-06-03 天津大学 Remote control system without standby power consumption based on radio frequency identification and remote control method
CN101794500B (en) * 2009-12-29 2012-10-10 刘利华 System capable of remotely controlling electronic and electrical equipment
CN102064859A (en) * 2010-12-13 2011-05-18 余阿文 Bluetooth transmission control and anti-theft device
CN202435478U (en) * 2012-01-30 2012-09-12 河海大学 Novel mobile phone control switch

Also Published As

Publication number Publication date
CN105023419B (en) 2018-08-10
CN103002159A (en) 2013-03-27
CN105023419A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN103002159B (en) A kind of Bluetooth of mobile phone control switch and control method
CN102855744B (en) Based on infrared home appliance management system and the method for smart mobile phone
CN103019181A (en) Intelligent internet-of-things home system based on ZigBee wireless communication protocol
CN103763164A (en) Intelligent housing system based intelligent sockets
CN101478461A (en) Portable remote controller and method for controlled object arbitrary selection
CN102201134B (en) Hotel Bluetooth control device and method
EP2582210A1 (en) Intelligent power controlling system
CN103390342A (en) Air-conditioner remote controller
CN104332045A (en) Intelligent infrared remote controlsystem based on wireless network and method
CN106444543A (en) Method for wirelessly controlling low-voltage switch
CN105353746A (en) Smart home Internet of Things safety supervision control platform
CN103257600A (en) Device and method of household appliance intelligent control
CN205862203U (en) Intelligent switch device based on conventional mechanical switch
CN103986030A (en) Intelligent socket and system thereof
Malav et al. Research paper on Bluetooth based home automation using Arduino
CN205863553U (en) Internet of Things smart jack
CN203151609U (en) Mobile phone Bluetooth control switch
CN204697088U (en) Household intelligent gateway
CN204681646U (en) Novel intelligent gesture switching system
CN204929346U (en) A network device and wireless light control system for wireless light control
CN208335003U (en) Network central control host with forceful electric power output
CN105024236A (en) Automatic code matching intelligent socket and automatic code matching method thereof
CN103002625A (en) Multi-protocol power switch control system
CN205121880U (en) Trinity intelligence switch
CN205281239U (en) Building intelligent management and control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150902

Termination date: 20151225

EXPY Termination of patent right or utility model