Disclosure of Invention
In order to solve the technical problem that the networking trigger operation mode provided by the target equipment for the user in the related technology has low networking trigger operation efficiency, the invention provides a method and a device for controlling equipment networking.
A method for controlling device networking, which is applied to a target device to be networked, comprises the following steps:
receiving a visible light signal emitted by a networking control end through a photoelectric sensor arranged on the target equipment, wherein the received visible light signal corresponds to a networking trigger electric signal;
the received visible light signals are subjected to photoelectric conversion to obtain networking trigger electric signals;
and controlling the target equipment to enter a networking state according to the networking triggering electric signal, and triggering and executing a networking process of the target equipment in the networking state.
The invention also provides a method for controlling the equipment networking, which is applied to a networking control end and comprises the following steps:
the target device networking command is received by being triggered by the networking control action;
generating a networking trigger electric signal for the target equipment according to the networking command of the target equipment;
visible light signal modulation is carried out on the networking triggering electric signal through a visible light signal emitting component in the networking control end, and a visible light signal corresponding to the networking triggering electric signal is obtained;
and the target device is triggered by the visible light signal to execute the networking process of the target device by emitting the visible light signal through the visible light signal emitting component.
The invention also provides a device for controlling equipment networking, which is applied to target equipment to be networked, and comprises:
a receiving unit configured to perform: receiving a visible light signal emitted by a networking control end through a photoelectric sensor arranged on the target equipment, wherein the received visible light signal corresponds to a networking trigger electric signal;
a photoelectric conversion unit configured to perform: the received visible light signals are subjected to photoelectric conversion to obtain networking trigger electric signals;
a control unit configured to perform: and controlling the target equipment to enter a networking state according to the networking triggering electric signal, and triggering and executing a networking process of the target equipment in the networking state.
The invention also provides a device for controlling equipment networking, which is applied to a networking control end and comprises:
a receiving unit configured to perform: the target device networking command is received by being triggered by the networking control action;
a generation unit configured to perform: generating a networking trigger electric signal for the target equipment according to the networking command of the target equipment;
a modulation unit configured to perform: performing visible light signal modulation on the networking triggering electric signal through a visible light signal emitting component in the networking control end to obtain a visible light signal corresponding to the networking triggering electric signal;
a transmitting unit configured to perform: and the target device is triggered by the visible light signal to execute the networking process of the target device by emitting the visible light signal through the visible light signal emitting component.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in this embodiment, the networking control end generates the networking trigger electrical signal, then modulate the networking trigger electrical signal into the visible light signal, and send the visible light signal to the target device, and then control target device self and get into the networking state, trigger the networking process of execution self under the networking state, even target device installs the place that the user is difficult to contact, the user need not also press the networking trigger button of target device with the help of the instrument, for example, the user station presses the trigger button on the stool, or the user presses the trigger button with the stock, only need to control the networking control end at the networking and carry out relevant operation, make the time greatly reduced that control target device networked, the efficiency of control target device networking has improved promptly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
As shown in fig. 1, the system is a schematic diagram of a system for controlling device networking according to an embodiment of the present invention, and the system includes a networking control end 1, a target device 2, and a network 3.
The networking control terminal is used for sending a visible light signal to the target equipment, the target equipment is used for receiving the visible light signal, the visible light signal is subjected to photoelectric conversion to obtain a networking triggering electric signal, then the target equipment is controlled to enter a networking state according to the networking triggering electric signal, a networking process of the target equipment is triggered and executed in the networking state, and finally networking (accessing to the network) of the target equipment is achieved.
The networked control terminal can be an intelligent mobile device, such as a smart phone, a tablet computer and the like.
The target device is a device with a wireless module, such as a household appliance (e.g., a gas alarm, a hanging air conditioner, a ceiling lamp, a ceiling fan), and the wireless module may be a Wi-Fi module, a ZigBee module, or the like. In the case where the wireless module is a Wi-Fi module, the network may be provided by a wireless router.
Fig. 2 is a flowchart of a method for controlling device networking (executed at a networking control end) according to an embodiment of the present invention, and fig. 3 is an interaction diagram of a target device and a networking control end in the method for controlling device networking according to an embodiment of the present invention.
The method for controlling the networking of the equipment comprises the following steps.
And S1, the networking control terminal is triggered by the networking control action to receive the networking command of the target equipment.
The networking control end is triggered by the networking control action implemented by the user, and further receives a target device networking command.
In one embodiment, the networking control end is an intelligent mobile device, and an application program (app (application)) is installed on the intelligent mobile device. After the APP runs on the intelligent mobile device, an area for receiving the user networking control action is displayed on the APP interface of the intelligent mobile device. When the user executes the networking control action in the area, the networking control terminal is triggered to receive the networking command of the target device.
As shown in fig. 4, a schematic diagram of a control device networking system in a more specific embodiment, wherein the networking control terminal includes a first processor, an amplifying circuit and a visible light signal transmitting component, and the first processor is configured to receive a target device networking command after the networking control terminal is triggered by a networking control action.
It is understood that the networked control end may also be other devices besides the smart mobile device, such as a remote controller and the like.
The networked steering action may take many forms.
When the networking control end is provided with a touch screen, the networking control action can be touch operation on the touch screen; the networked control action may also be a shaking of the smart mobile device, a voice input action to the networked control terminal, or the like.
And S2, the networking control terminal generates a networking trigger electric signal for the target equipment according to the networking command of the target equipment.
The networking trigger electrical signal generated by the networking control end for the target device can be a digital electrical signal representing a random character string, or can be a digital '1' electrical signal and the like.
After the target device receives the networking triggering electric signal, the networking triggering electric signal controls the target device to enter a networking state, and a networking process of the target device is triggered and executed in the networking state.
As shown in fig. 4, a networking trigger electrical signal is generated after the first processor receives the target device networking command.
And S3, the networking control end performs visible light signal modulation on the networking trigger electric signal through a visible light signal emitting component in the networking control end to obtain a visible light signal corresponding to the networking trigger electric signal.
As shown in fig. 4, the visible light signal emitting component modulates the networking trigger electrical signal into a visible light signal, and the modulation may be amplitude or phase modulation.
The visible light signal emitting member may be an LED (light emitting diode), a xenon lamp, or the like. In one embodiment, the networking control terminal is an intelligent mobile device with a flash lamp, and the flash lamp is a visible light signal emission component; or the networking control terminal is an intelligent mobile device with a screen, and the screen is a visible light signal transmitting component.
In one embodiment, the networking trigger electrical signal generated by the first processor needs to be amplified by the amplifying circuit before being input to the visible light signal emitting component for visible light signal modulation.
In general, the networking trigger electrical signal is a short digital signal, such as digital information of one byte or even one bit, for example, the networking trigger electrical signal is a digital signal "1".
In one embodiment, the networking trigger electrical signal is a digital signal "1", and the networking trigger electrical signal is modulated into a visible light signal in the form of a pulse with a set light intensity through the present step S2.
The above-mentioned short digital signal is compared with the name and password of the network, and generally, in order to prevent unauthorized networking of the illegal target device, the network owner or operator usually sets up a long and complicated password (e.g. a combination of letters, symbols and numbers).
Taking a router as an example, the networking trigger signal is usually much shorter than the SSID (service set identifier) and password of the router, and in general, in order to prevent unauthorized access to the router by an illegal target device, the owner of the router usually sets a longer and more complicated password (e.g., a combination of letters, symbols, and numbers), and the length of one letter, symbol, and the like is usually one byte, so the networking trigger signal is usually shorter than the SSID and password of the router.
S4, the networking control end transmits the visible light signal through the visible light signal transmitting component, and the target device is triggered by the visible light signal to execute the networking process of the target device.
Because the propagation of light has stronger directionality, therefore, when the user is operating networking control end, need aim at target device, especially the photoelectric sensor of target device with visible light signal emission part to make visible light signal be received by target device, and then trigger target device networking.
Some of the advantages of the solution of the present embodiment have been described in detail in the foregoing summary. In addition to the above advantageous effects, the present embodiment can also have the following advantageous effects.
In some prior art, an optical signal of a network name and a password is sent to a target device through a networking control terminal so as to enable the target device to be networked.
Fig. 5 is a flowchart of a method (executed in a target device) of controlling device networking according to an embodiment of the present invention.
And S5, receiving the visible light signal emitted by the networking control end through a photoelectric sensor arranged on the target equipment, wherein the received visible light signal corresponds to the networking trigger electric signal.
The photoelectric sensor can be a photoresistor, a photodiode, a phototriode, a PIN tube and the like.
And S6, the target device converts the received visible light signal into a networking trigger electric signal through photoelectric conversion.
After receiving the visible light signal, the photoelectric sensor may convert the visible light signal into a networking trigger electrical signal, for example, a networking trigger electrical signal in the form of an output optical current.
And S7, the target device controls the target device to enter a networking state according to the networking triggering electric signal, and triggers and executes a networking process of the target device in the networking state.
The target device enters a networking state, and a method for triggering the execution of the networking process of the target device in the networking state can be various, and a plurality of different methods can be selected in the prior art.
In a more specific embodiment, as shown in fig. 4, the target device includes a photosensor, a second processor, and a wireless module. The photoelectric sensor converts the visible light signal to obtain a networking triggering electric signal, and the second processor controls the wireless module to enter a networking state according to the networking triggering electric signal and executes a networking process in the networking state.
The target device is described as including a Wi-Fi module.
After the target device obtains the networking trigger signal, controlling the target device to enter a networking state, and setting a wireless module (such as a Wi-Fi module) of the target device to be in an AP (access point) mode;
next, the routing information sending device (which may be the smart mobile device of the foregoing embodiment) accesses the network provided by the wireless module in the AP mode, and sends the obtained SSID and password of the router to the wireless module;
then, the target device sets the wireless module to be in a client mode, searches for the router with the SSID, and accesses the network provided by the router by using the password to realize networking.
In order to further improve the accuracy of receiving the visible light signal by the target device, the invention further provides the technical scheme of the following embodiment.
The step S3 is:
and respectively carrying out visible light signal modulation on the networking triggering electric signals for preset times through a visible light signal transmitting component in the networking control end, and sequentially obtaining visible light signals which accord with the preset times, wherein the visible light signals which accord with the preset times correspond to the networking triggering electric signals.
For example, the networking trigger electrical signal is a digital signal "1", the networking trigger electrical signal "1" is sequentially modulated by the visible light signal emitting component for 2 times, and 2 times of visible light signals are sequentially obtained, and the 2 times of visible light signals correspond to the networking trigger electrical signal.
In step S4, the step of emitting the optical signal by the visible-light signal emitting part is:
visible light signals obtained by completing the modulation of the visible light signals are sequentially emitted by the visible light signal emitting part.
As shown in fig. 6, the step S6 includes:
and S61, after the target device receives the visible light signal, detecting whether the visible light signal is received again within a preset time.
In one embodiment, the preset duration may be 1 second.
And S62, updating the number of the visible light signals when the target device detects that the visible light signals are received again.
For example, when the target device receives the visible light signals for the first time, the number of visible light signals is updated to 1; and if the target device receives the visible light signals for the second time within 1 second after receiving the visible light signals for the first time, updating the number of the visible light signals to 2.
And S63, the target device judges whether the number of the visible light signals reaches the preset number, and if so, the visible light signals are subjected to photoelectric conversion to obtain networking trigger electric signals.
In one embodiment, the preset number of times is 2, and when the number of the visible light signals reaches 2 times, the target device performs photoelectric conversion on the visible light signals to obtain the networking trigger electrical signal. For example, only the former optical signal may be photoelectrically converted to obtain the networking trigger electrical signal, or only the latter optical signal may be photoelectrically converted to obtain the networking trigger electrical signal, or both optical signals may be photoelectrically converted to obtain the networking trigger electrical signal.
In the former embodiment, when the target device receives a visible light signal and the networking trigger signal obtained according to the visible light signal triggers the target device to enter the networking state, in this case, the networking control end may not transmit the visible light signal, but the ambient light is suddenly enhanced (for example, a light pulse occurs), so that the target device is triggered by mistake and enters the networking state.
In the technical scheme of this embodiment, the target device needs to receive at least two visible light signals to trigger the target device to be networked, so that the anti-interference capability to sudden change of ambient light can be improved.
In one embodiment, as shown in figure 7,
step S3 is:
and S31, acquiring the modulation characteristics which are configured in advance for triggering the networking of the target equipment.
For example, in amplitude optical signal modulation, it is necessary to acquire a pre-configured modulation characteristic: amplitude, i.e. the magnitude of the modulated light intensity; for another example, in phase optical signal modulation, it is necessary to acquire a modulation characteristic configured in advance: phase.
And S32, carrying out visible light signal modulation on the networking trigger electric signal according to the modulation characteristics to obtain a visible light signal corresponding to the networking trigger electric signal.
For example, in the amplitude optical signal modulation, if the amplitude modulation characteristic is I, the amplitude of the visible light signal obtained by the modulation is I through the present step S32.
For example, if the phase modulation characteristic is θ in the phase optical signal modulation, the phase of the visible light signal obtained by the modulation is θ through step S32.
As shown in fig. 8, is a schematic diagram of an apparatus 100 for controlling device networking according to an embodiment, where the apparatus is applied to a target device to be networked, and the apparatus 100 includes:
a receiving unit 101 configured to perform: receiving a visible light signal emitted by a networking control end through a photoelectric sensor arranged on target equipment, wherein the received visible light signal corresponds to a networking trigger electric signal;
a photoelectric conversion unit 102 configured to perform: the received visible light signals are subjected to photoelectric conversion to obtain networking trigger electric signals;
a control unit 103 configured to perform: and controlling the target equipment to enter a networking state according to the networking triggering electric signal, and triggering and executing a networking process of the target equipment in the networking state.
In one embodiment, the photoelectric conversion unit 102 is configured to perform:
after receiving the visible light signal, detecting whether the visible light signal is received again within a preset time;
when the visible light signals are detected to be received again, updating the number of the continuously received visible light signals;
and judging whether the number of the continuously received visible light signals reaches the preset number, if so, obtaining corresponding networking trigger electric signals of the visible light signals after photoelectric conversion according to the continuously received visible light signals.
The specific manner in which the apparatus in this embodiment performs the operations has been described in detail in the embodiments related to the control device networking method, and will not be elaborated upon here.
As shown in fig. 9, which is a schematic diagram of an apparatus 200 for controlling device networking according to an embodiment, the apparatus is applied to a networking control terminal, and the apparatus 200 includes:
a receiving unit 201 configured to perform: the target device networking command is received by being triggered by the networking control action;
a generating unit 202 configured to perform: generating a networking trigger electric signal for the target equipment according to the networking command of the target equipment;
a modulation unit 203 configured to perform: visible light signal modulation is carried out on the networking trigger electric signal through a visible light signal emitting component in the networking control end, and a visible light signal corresponding to the networking trigger electric signal is obtained;
a transmitting unit 204 configured to perform: and the visible light signal is transmitted by the visible light signal transmitting component, and the target device is triggered by the visible light signal to execute the networking process of the target device.
In one embodiment, the modulation unit 203 is configured to perform:
respectively carrying out visible light signal modulation on the networking triggering electric signals for preset times through a visible light signal transmitting component in the networking control end, and sequentially obtaining visible light signals which are consistent with the preset times, wherein the visible light signals which are consistent with the preset times correspond to the networking triggering electric signals;
the step of emitting the optical signal by the visible light signal emitting component comprises the following steps:
visible light signals obtained by completing the modulation of the visible light signals are sequentially emitted by the visible light signal emitting part.
The specific manner in which the apparatus in this embodiment performs the operations has been described in detail in the embodiments related to the control device networking method, and will not be elaborated upon here.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.