CN116546710A - A Bluetooth-connected flashlight control method and control system thereof - Google Patents
A Bluetooth-connected flashlight control method and control system thereof Download PDFInfo
- Publication number
- CN116546710A CN116546710A CN202310518666.5A CN202310518666A CN116546710A CN 116546710 A CN116546710 A CN 116546710A CN 202310518666 A CN202310518666 A CN 202310518666A CN 116546710 A CN116546710 A CN 116546710A
- Authority
- CN
- China
- Prior art keywords
- flashlight
- bluetooth
- instruction
- control
- mobile terminal
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/19—Controlling the light source by remote control via wireless transmission
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth-connected flashlight control method and a Bluetooth-connected flashlight control system, which belong to the technical field of illumination control, and firstly, a flashlight and a mobile terminal are communicated through Bluetooth to generate a new control instruction to send the flashlight to realize the updating of the control rule of the flashlight, so that the flashlight can modify the control rule in the flashlight according to the habit of a user and the individuation of a use scene, the design can meet the requirements of the market on a multifunctional product, but the user can learn to use with the lowest cost, and the flashlight can be used without checking a specification all the time when an emergency occurs; and secondly, the Bluetooth module of the flashlight and the Bluetooth module of the mobile terminal ensure the accuracy and the safety of the Bluetooth connection of the mobile terminal and the flashlight based on the check code updated in real time.
Description
Technical Field
The invention relates to the technical field of illumination control, in particular to a Bluetooth-connected flashlight control method and a Bluetooth-connected flashlight control system.
Background
The flashlight is a common illumination tool, can provide illumination with large range and high brightness by using the flashlight for illumination, and is applied to various scenes such as daily use, outdoor exploration, industrial maintenance, mining operation and the like.
The existing flashlight is controlled by mechanical keys, and the control mode is good in stability and can realize blind operation in darkness. However, with the continuous development of technology, the existing flashlight has more and more functions, which makes the layout of the buttons of the flashlight difficult. Therefore, more and more manufacturers provide electric flashlights with electronic switches, even more than two electronic switches, and the flashlight chip can receive signals of the electronic switches, and the convenience of flashlight operation is achieved through signal collocation of single click, continuous click, three click and long press of the electronic switches, and even double electronic switches. A flashlight can have a plurality of convenient lighting modes, the mode is switched by repeatedly and repeatedly switching the flashlight, and the requirements of users can be met by means of an electronic switch. Therefore, with the increasing functions of flashlights, different types of flashlights use different ways of calling various functions by using electronic switches, so that the user must know the product instruction before using the emergency lighting tool to correctly call the flashlight or adjust the flashlight to the required brightness and function. However, in some emergency or special situations, the user cannot know the product description of the flashlight, and the flashlight cannot be used normally, which causes great inconvenience to the user.
Accordingly, it would be desirable to provide a method and system for quickly, easily, and individually setting the manner in which a flashlight is evoked.
Disclosure of Invention
In view of the above, the present invention provides a control method and a control system for a bluetooth-connected flashlight, which can individually change the control mode of the flashlight according to the user's own needs.
In order to achieve the above object, the present invention provides the following technical solutions:
in one aspect, the invention provides a flashlight control method for bluetooth connection, comprising the following steps:
acquiring state information of a switch button of the flashlight;
determining whether to start a Bluetooth module according to the switch button state information;
when the Bluetooth module is determined to be started, the flashlight sends a Bluetooth connection request;
the mobile terminal receives a Bluetooth connection request of the flashlight and establishes Bluetooth connection with the flashlight, the flashlight sends a current control instruction to the mobile terminal, generates a control rule, and generates a corresponding new control instruction according to the control rule;
the mobile terminal compares whether the current control instruction is consistent with the new control instruction;
if the current control instruction is consistent with the new control instruction, generating an update completion instruction, and sending the update completion instruction to the flashlight, wherein the flashlight is disconnected with Bluetooth;
if the current control instruction is inconsistent with the new control instruction, generating an update instruction, and sending the new control instruction and the update instruction to the flashlight; and the flashlight receives the new control instruction and the update instruction, finishes the update of the control instruction, disconnects the Bluetooth connection, and operates according to the new control instruction when the flashlight is used next time.
Preferably, after the control instruction of the flashlight is updated successfully, the mobile terminal stores an update record, wherein the update record comprises one or more of a new control rule, an update object number, an update instruction and a complete update instruction.
Preferably, the mobile terminal receiving a bluetooth connection request of the flashlight and establishing bluetooth connection with the flashlight specifically includes: the mobile terminal scans whether a target flashlight exists around; when the target flashlight exists, the mobile terminal is in communication connection with the target flashlight and performs verification; and when the verification fails, the mobile terminal updates the verification code and continues to verify until the verification is successful, and the mobile terminal is paired with the target flashlight to complete Bluetooth connection. The mobile terminal can update the check code no matter whether the check is successful or failed, so that the check code is leaked, other flashlights acquire the check code of the mobile terminal, and the other flashlights cannot be successfully checked when the next Bluetooth connection is performed because the check code of the mobile terminal is updated, so that the mobile terminal cannot be connected with the Bluetooth of the mobile terminal, and the safety of the mobile terminal is ensured.
Preferably, when the flashlight runs according to the new control instruction, the new control instruction and the factory control instruction coexist, and after the preset action, the flashlight changes the factory control rule back, so that the flashlight is convenient for other people to use in the early stage of program change in a short time.
Preferably, after the flashlight receives the new control instruction and the update instruction finishes updating the control instruction, the method further includes: if the flashlight fails to update, the flashlight automatically reads the control instruction of the last time, if the flashlight reads the control instruction to be empty, the control instruction is restored to the factory, and otherwise, the control instruction of the last time is restored to the factory.
Preferably, the mobile terminal is connected with bluetooth modules of a plurality of flashlights simultaneously, and updates control instructions of the flashlights, so that the flashlights with consistent functions or time display functions are ensured, and the flashlights with time display functions need unified set time and the like.
Preferably, after the instruction updating is completed, the instruction can be locked, so that a user cannot modify the instruction, and the authenticity of the information provided by the flashlight is ensured.
Preferably, the flashlight sends a bluetooth connection request, and if the connection is unsuccessful after the bluetooth connection request exceeds a preset time, the bluetooth module is turned off.
On the other hand, the invention discloses a Bluetooth-connected flashlight control system for realizing any one of the control methods, wherein the system comprises a flashlight and a mobile terminal;
the flashlight comprises a control panel, a control module and a Bluetooth communication board, wherein the control panel is used for acquiring the state of the switch module and controlling the work of the luminous component and the switch of the Bluetooth communication board based on control rules; the Bluetooth communication board is used for establishing communication connection with the mobile terminal;
the mobile terminal comprises: the Bluetooth communication module is used for establishing connection with the Bluetooth communication board; the display module is used for displaying the current instruction rule; the rule updating module is used for generating a new control instruction and sending the new control instruction to the control panel; the judging module is used for judging whether the new control instruction is consistent with the current control instruction or not and generating a corresponding instruction; and the storage module is used for storing the update record.
The mobile terminal further includes: the verification module is used for verifying and analyzing the return instruction; and the retransmission module is used for retransmitting the return instruction when the return instruction is lost or incorrect.
According to the technical scheme, compared with the prior art, the flashlight control method and the flashlight control system are disclosed, firstly, the flashlight control method and the flashlight control system are realized through Bluetooth connection, the control rules in the flashlight can be modified according to the habit of a user and individuation of a use scene, the design can meet the requirements of the market on multifunctional products, the user can learn to use at the lowest cost, and the flashlight can be used without checking the specification all the time when an emergency occurs; and secondly, the Bluetooth module of the flashlight and the Bluetooth module of the mobile terminal ensure the accuracy and the safety of the Bluetooth connection of the mobile terminal and the flashlight based on the check code updated in real time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a flashlight control method for bluetooth connection according to the present invention.
Fig. 2 is a schematic diagram of a bluetooth-connected flashlight control system according to the present invention.
Fig. 3 is a schematic diagram of another structure of a bluetooth-connected flashlight control system according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention discloses a flashlight control method connected by Bluetooth, which is shown in figure 1 and comprises the following steps:
acquiring state information of a switch button of the flashlight;
determining whether to turn on the Bluetooth module according to the state information of the switch button, when the state of the switch button is on, turning on the Bluetooth module, and when the state of the switch button is off, turning off the Bluetooth module;
when the Bluetooth module is determined to be started, the flashlight sends a Bluetooth connection request;
the mobile terminal receives a Bluetooth connection request of the flashlight and establishes Bluetooth connection with the flashlight, the flashlight sends a current control instruction to the mobile terminal, the mobile terminal generates a control rule, and a corresponding new control instruction is generated according to the control rule;
the mobile terminal compares whether the current control instruction is consistent with the new control instruction;
if the current control instruction is consistent with the new control instruction, generating an update completion instruction, sending the update completion instruction to the flashlight, disconnecting the flashlight from Bluetooth, and executing the current control instruction when the flashlight is started again;
if the current control instruction is inconsistent with the new control instruction, generating an update instruction, and sending the new control instruction and the update instruction to the flashlight; the flashlight receives the new control instruction and the update instruction to complete the update of the control instruction and disconnect the Bluetooth connection, and the flashlight operates according to the new control instruction when the flashlight is used next time.
Furthermore, the mobile terminal encrypts a new control instruction by adopting a preset encryption key and sends the new control instruction to the flashlight; the flashlight adopts a preset encryption key to decrypt, and if the decryption is successful, the verification is passed. Encryption/decryption uses symmetric keys for encryption/decryption. In order to further improve the safety, after the flashlight is decrypted, the new control instruction is further verified, and after verification is passed, writing of the new control instruction of the flashlight is completed.
Preferably, after the control instruction of the flashlight is updated successfully, the mobile terminal stores an update record, wherein the update record comprises one or more of a new control rule, an update object number, an update instruction and a complete update instruction.
Preferably, the mobile terminal receiving a bluetooth connection request of the flashlight and establishing bluetooth connection with the flashlight specifically includes: the mobile terminal scans whether a target flashlight exists around; when the target flashlight exists, the mobile terminal is in communication connection with the target flashlight and performs verification; when the verification fails, the mobile terminal updates the verification code and continues to verify until the verification is successful, and the mobile terminal is matched with the target flashlight to complete Bluetooth connection. The mobile terminal can update the check code no matter whether the check is successful or failed, so that the check code is leaked, other flashlights acquire the check code of the mobile terminal, and the other flashlights cannot be successfully checked when the next Bluetooth connection is performed because the check code of the mobile terminal is updated, so that the mobile terminal cannot be connected with the Bluetooth of the mobile terminal, and the safety of the mobile terminal is ensured.
Preferably, when the flashlight runs according to the new control instruction, the new control instruction and the factory control instruction coexist, and after the preset action, the flashlight changes the factory control rule back, so that the flashlight is convenient for other people to use in a short time in the early stage of program change.
Preferably, after the flashlight receives the new control command and the update command completes the update of the control command, the flashlight further comprises: if the flashlight instruction is failed to update, the flashlight automatically reads the control instruction of the last time, if the flashlight is empty, the control instruction is restored to the factory, and otherwise, the control instruction of the last time is restored.
Furthermore, after the flashlight finishes updating, the updating state is returned to the control terminal in the form of a return instruction; the control terminal checks and analyzes the return instruction and judges whether the return instruction is lost or correct; if the gyration instruction is lost or incorrect, triggering a retransmission mechanism, and sending a return instruction to the mobile terminal again by the flashlight; if the return instruction is correct, judging the type of the return instruction;
when the returned instruction type is the upgrade ending instruction type, analyzing an upgrade completion mark through the returned entity number, and when the upgrade completion mark is upgrade success, prompting that the upgrade is successful by the mobile terminal, and disconnecting the Bluetooth connection; when the upgrading completion mark is upgrading failure, the mobile terminal prompts upgrading failure and retransmits a new control instruction.
Preferably, the mobile terminal is connected with the Bluetooth modules of the flashlights at the same time, and updates control instructions of the flashlights, so that the flashlights with consistent functions or time display functions are ensured to be required to be set for time uniformly, and the like.
Preferably, after the instruction updating is completed, the instruction locking can be performed, so that a user cannot modify the instruction, and the authenticity of the information provided by the flashlight is ensured.
Preferably, the flashlight sends a Bluetooth connection request, and after the Bluetooth connection request exceeds a preset time, the Bluetooth module is turned off if the connection is unsuccessful.
On the other hand, the invention discloses a Bluetooth-connected flashlight control system, which is used for realizing any one of the control methods, and as shown in fig. 2, the system comprises a flashlight and a mobile terminal;
the flashlight comprises a control panel, a light emitting component, a Bluetooth communication board and a control module, wherein the control panel is used for acquiring the state of the switch module and controlling the work of the light emitting component and the switch of the Bluetooth communication board based on control rules; the Bluetooth communication board is used for establishing communication connection with the mobile terminal;
a mobile terminal, comprising: the Bluetooth communication module is used for establishing connection with the Bluetooth communication board; the display module is used for displaying the current instruction rule; the rule updating module is used for generating a new control instruction and sending the new control instruction to the control panel; the judging module is used for judging whether the new control instruction is consistent with the current control instruction or not and generating a corresponding instruction; and the storage module is used for storing the update record.
As shown in fig. 3, the mobile terminal further includes: the verification module is used for verifying and analyzing the return instruction; and the retransmission module is used for retransmitting the return instruction when the return instruction is lost or incorrect.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310518666.5A CN116546710A (en) | 2023-05-10 | 2023-05-10 | A Bluetooth-connected flashlight control method and control system thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310518666.5A CN116546710A (en) | 2023-05-10 | 2023-05-10 | A Bluetooth-connected flashlight control method and control system thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116546710A true CN116546710A (en) | 2023-08-04 |
Family
ID=87450183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310518666.5A Pending CN116546710A (en) | 2023-05-10 | 2023-05-10 | A Bluetooth-connected flashlight control method and control system thereof |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116546710A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115767553A (en) * | 2022-10-12 | 2023-03-07 | 深圳莫界科技有限公司 | Bluetooth secure connection method for smart system or smart device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080272714A1 (en) * | 2005-10-14 | 2008-11-06 | Barry Angus Noble | Programmable lighting device |
| CN102791060A (en) * | 1998-10-09 | 2012-11-21 | 阿佐特克(私人)有限公司 | Intelligent electrical devices |
| CN109857438A (en) * | 2019-01-30 | 2019-06-07 | 深圳卡特加特智能科技有限公司 | Liquid crystal touch control switch, configuration system and configuration method |
| CN115835461A (en) * | 2022-12-14 | 2023-03-21 | 深圳市中孚能电气设备有限公司 | A signal sending method, control device, flashlight and storage medium |
-
2023
- 2023-05-10 CN CN202310518666.5A patent/CN116546710A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102791060A (en) * | 1998-10-09 | 2012-11-21 | 阿佐特克(私人)有限公司 | Intelligent electrical devices |
| US20080272714A1 (en) * | 2005-10-14 | 2008-11-06 | Barry Angus Noble | Programmable lighting device |
| CN109857438A (en) * | 2019-01-30 | 2019-06-07 | 深圳卡特加特智能科技有限公司 | Liquid crystal touch control switch, configuration system and configuration method |
| CN115835461A (en) * | 2022-12-14 | 2023-03-21 | 深圳市中孚能电气设备有限公司 | A signal sending method, control device, flashlight and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115767553A (en) * | 2022-10-12 | 2023-03-07 | 深圳莫界科技有限公司 | Bluetooth secure connection method for smart system or smart device |
| CN115767553B (en) * | 2022-10-12 | 2025-09-16 | 深圳莫界人工智能科技有限公司 | Bluetooth safe connection method of intelligent system or intelligent device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9342682B2 (en) | Portable electronic device | |
| KR20110028056A (en) | Bluetooth communication connection method and system | |
| US20130099672A1 (en) | Illumination system and control method of illumination system | |
| JP2007180826A (en) | Apparatus, system, method and program for visible light communication | |
| CN113423026B (en) | Wireless switch, processing method thereof and control system | |
| CN113300473B (en) | Intelligent controller, processing method thereof and control system | |
| RU2691185C1 (en) | Method and device for timing | |
| CN116546710A (en) | A Bluetooth-connected flashlight control method and control system thereof | |
| CN108924990B (en) | WeChat applet-based LED lamp control system and connection method thereof | |
| JP2019095595A (en) | Communication device, display device, control method and program of communication and display devices, as well as display system thereof | |
| CN115802201A (en) | Control system, terminal processing method, wireless switch and processing method thereof | |
| CN105246098B (en) | Routing device connection method and device | |
| JP5616438B2 (en) | Network communication system | |
| CN109709880B (en) | Control method and control system of projector | |
| CN106341780A (en) | Intelligent terminal remote control system and method based on vehicle-mounted Bluetooth | |
| US10827212B2 (en) | Image transmission equipment and image transmission method | |
| CN107229233A (en) | Switch panel control method, switch panel and computer-readable recording medium | |
| CN105898079A (en) | Profile switching method | |
| CN111199637A (en) | Infrared code updating method, terminal device and computer readable storage medium | |
| CN116047924A (en) | Equipment control method, device, intelligent control panel and storage medium | |
| CN114496599B (en) | A smart switch and local linkage control method | |
| JP7684838B2 (en) | Electronic device, network system, and network construction method | |
| JP3496579B2 (en) | Setting device for remote monitoring and control system | |
| CN112333931B (en) | Remote control method and system of composite flash initiator, electronic equipment and storage medium | |
| CN102447860A (en) | Remote control television system and remote control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |