CN113660429B - External Bluetooth flash lamp control method based on Bluetooth HID protocol - Google Patents
External Bluetooth flash lamp control method based on Bluetooth HID protocol Download PDFInfo
- Publication number
- CN113660429B CN113660429B CN202110768554.6A CN202110768554A CN113660429B CN 113660429 B CN113660429 B CN 113660429B CN 202110768554 A CN202110768554 A CN 202110768554A CN 113660429 B CN113660429 B CN 113660429B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- flash lamp
- hid
- flash
- app
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
-
- 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)
- Multimedia (AREA)
- Signal Processing (AREA)
- Stroboscope Apparatuses (AREA)
Abstract
The invention belongs to the field of external Bluetooth flashlights, and particularly relates to a control method of an external Bluetooth flashlight based on a Bluetooth HID protocol, which is characterized by comprising the following steps: external Bluetooth flash lamp, flash lamp APP and primary camera APP; the original camera APP and the flash lamp APP are in an operation state at the same time, the original camera APP operates in a foreground main window mode, and the flash lamp APP operates in a background floating window mode; bluetooth communication protocol integration of external bluetooth flash lamp defines the bluetooth HID equipment that has HID output report, and integrated definition has simultaneously and is used for controlling the bluetooth HID setting of the relevant operation bluetooth HID input report of primary camera shooting, and flash lamp APP sends HID output report to external bluetooth flash lamp to control the bluetooth flash lamp, and bluetooth flash lamp can send the HID input report simultaneously and control primary camera APP. According to the invention, the external Bluetooth flash lamp can be conveniently controlled, and the original camera APP can be conveniently operated to work.
Description
Technical Field
The invention belongs to the field of external Bluetooth flashlights, and particularly relates to an external Bluetooth flashlight control method based on a Bluetooth HID protocol.
Background
Intelligent mobile terminals (such as intelligent mobile phones and intelligent flat plates of android systems, apples and other systems) are called intelligent machines for short. Most intelligent machines in the current market are integrated with a camera APP, and the camera APP of the intelligent machine is called a primary camera APP for short. The original camera APP is generally provided with the LED flash lamp function, but is influenced by factors such as volume, appearance, the number of LED lamp beads and the like, and the brightness and photographing effect of the flash lamp are not very good, so that an external wireless Bluetooth flash lamp is quite necessary for the intelligent machine.
At present, the market state of an external Bluetooth flash lamp is as follows:
1. there are some external bluetooth flash lamp providers, develop the camera APP with external bluetooth flash lamp function by oneself, when pressing the button of shooing, send the bluetooth instruction of opening the flash lamp to external bluetooth flash lamp to realize that flash light and shutter are synchronous. Although the external Bluetooth flash lamp can realize the function of the Bluetooth flash lamp, the performance of the camera APP in terms of focusing/intelligent exposure/red eye prevention/scene mode/beauty and other algorithms is far less than that of the original camera APP. The method has the advantages that although the flash is enhanced, the performance and the function of the original camera APP are sacrificed, the function and the performance of the original camera APP are hardly updated synchronously, in addition, the brand and the model of the intelligent machine are numerous, and the effect that one APP is matched with the camera functions of all intelligent machine manufacturers in performance is also hardly achieved.
2. Some smart phone manufacturers develop external Bluetooth flash lamps for the original camera APP of a certain smart phone model, and the mode is good, so that the external Bluetooth flash lamps are added, and all performances of the original camera APP are maintained. However, the external Bluetooth flash lamp can only be matched with the external Bluetooth flash lamp with a specified brand and model, belongs to monopoly products, and has low cost performance. But also can be applied to a certain number of intelligent machine models.
The external Bluetooth flash lamp on the current market can only be matched with the camera APP provided by the factory. The original camera APP can only be matched with an external Bluetooth flash lamp of an appointed brand type of an intelligent machine factory, and a third-party external Bluetooth flash lamp of an unspecified brand type cannot be matched with the original camera APP and can only be matched with a camera APP developed by a manufacturer. The camera APP developed by the flash lamp factory is different from the original camera APP of the intelligent machine in function and performance.
Disclosure of Invention
In order to solve the problems, the primary object of the present invention is to provide an external bluetooth flash lamp control method based on bluetooth HID protocol, wherein a floating window of a flash lamp APP is overlapped on an operation window of a primary camera APP to operate, which not only can control the external bluetooth flash lamp conveniently, but also can operate the primary camera APP conveniently to work.
The invention further aims to provide an external Bluetooth flash lamp control method based on the Bluetooth HID protocol, which can be adapted to intelligent machines with various styles and brands.
In order to achieve the above object, the present invention has the following technical scheme.
An external Bluetooth flash lamp control method based on a Bluetooth HID protocol is characterized by comprising the following steps: external Bluetooth flash lamp, flash lamp APP and primary camera APP; the original camera APP and the flash lamp APP are in an operation state at the same time, the original camera APP operates in a foreground main window mode, and the flash lamp APP operates in a background floating window mode; bluetooth communication protocol integration of external Bluetooth flash lamp defines the bluetooth HID equipment that has HID output report, and flash lamp APP sends the HID output report to external Bluetooth flash lamp to control the bluetooth flash lamp.
In the invention, the flash APP of the third party is operated in parallel with the original camera APP of the intelligent machine in a floating window mode, although the two APPs are operated simultaneously, the floating window of the flash APP is operated on the operation window of the superimposed original camera APP, when the external Bluetooth flash lamp is operated, the floating window of the flash APP is turned on, and the camera APP with the external Bluetooth flash lamp function can be developed as conveniently as the camera APP is developed by oneself; when photographing, the camera APP can be directly controlled to work, and when the camera APP provided by a manufacturer of the intelligent machine is adopted to perform photographing operation, the optimal effect of the original factory design can be maintained no matter in terms of functions or performances, no matter in terms of an intelligent exposure algorithm automatically adapting to the environment when photographing or an algorithm for intelligently processing photos, the camera APP version maintenance is not required to be additionally carried out, and the functions and performances of the camera APP of the latest version can be maintained at any time. And the intelligent machine is not limited by manufacturers, brands, models and the like of the intelligent machine, and the external Bluetooth flash lamp function can be adapted to intelligent machines of various styles and brands as long as an operating system of the intelligent machine can support the suspended window to run the APP.
Further, the process that flash APP controlled bluetooth flash is: the flash lamp APP carries out setting coding on the content of the Bluetooth HID output report, redefines the content into a flash lamp setting operation instruction, and sends the flash lamp setting operation instruction to an external Bluetooth flash lamp in the form of the Bluetooth HID output report; after receiving the Bluetooth HID output report sent by the flash APP, the external Bluetooth flash analyzes the received Bluetooth HID output report into a flash setting operation instruction, and the external Bluetooth flash performs corresponding operation according to the flash setting operation instruction. The external Bluetooth flash lamp carries out corresponding operation according to the flash lamp setting operation instruction, namely the process of controlling the Bluetooth flash lamp by the flash lamp APP.
Further, the flash APP is provided with a brightness button, a color temperature button, an exposure button, a mode button, a switch button, a start flash photographing/shooting button, and flash setting operation instruction contents defined by the content code of the bluetooth HID output report include, but are not limited to: the brightness, color temperature, exposure, switch and mode of the external Bluetooth flash lamp are set and regulated, and flash photographing/shooting is started. The external Bluetooth flash lamp performs corresponding operations according to the flash lamp setting operation instruction, namely, the external Bluetooth flash lamp comprises brightness, color temperature, exposure, switch and mode adjustment, and flash photographing/shooting is started.
Further, the bluetooth HID device with the HID output report, which is integrally defined by the bluetooth communication protocol of the external bluetooth flash lamp, is an HID Keyboard device or an HID KeyPad device, or other HID devices with the HID output report, which are defined by the bluetooth communication protocol of the external bluetooth flash lamp.
Further, a Bluetooth HID device with an HID output report, which is integrally defined by a Bluetooth communication protocol of the external Bluetooth flash lamp, is an HID Keyboard device; the HID Keyboard device defines a Keyboard indicator status output report, and encodes a status value of the Keyboard indicator into a flash setting operation instruction to control the external bluetooth flash.
The content of the Keyboard indicator lamp state HID output report of the HID keycard device comprises five Keyboard state indicator lamps: the (num_lock, caps_lock, scroll_lock, compound, kana) state, the flash APP can perform the spot-lighting operation on the five indicator states by program, and there may be 32 (5 th power of 2) combinations at most, which corresponds to 32 codes and may be defined as 32 bluetooth instructions (i.e. flash setting operation instructions), and these bluetooth instructions may be used for setting and adjusting LED brightness/color temperature/exposure/mode/switch, and the like, and may also be used for starting flash photographing.
Further, the bluetooth communication protocol of the external bluetooth flash lamp is integrated with a bluetooth HID device capable of sending an HID input report for controlling the native camera APP, so that the external bluetooth flash lamp controls the native camera APP to take a photograph. Because the various HID input reports can start the photographing of the native camera APP, such as a bluetooth HID Keyboard, the Enter key can be used to start the photographing of the native camera APP, or the volume increase and volume decrease can be used to start the photographing of the native camera APP, for example HID Consumer Control Device, and in practical application, one or more of them can be selected.
Further, when the external Bluetooth flash lamp receives a flash photographing instruction from the flash lamp APP, an HID input report for controlling the original camera APP is sent to the original camera APP to start photographing, and an LED lamp on the external Bluetooth flash lamp is lighted to realize a flash photographing function.
Further, before the external Bluetooth flash lamp sends an HID input report for controlling the original camera APP to start photographing, an LED lamp on the external Bluetooth flash lamp is firstly turned on until the whole photographing process is finished, and the LED lamp on the external Bluetooth flash lamp is turned off. The problem that the external Bluetooth flash lamp is adopted to photograph has the synchronization of the external flash and the camera shutter is solved, because the existing original camera APP is provided with an intelligent exposure algorithm, namely, before the shutter acts, the brightness of the environment is detected first, the shutter time is intelligently controlled to control the exposure degree, if the need of starting the camera flash is detected, or the camera flash is forced to be started, the original camera APP is also firstly turned on with low brightness to test the reflection brightness of the photographing environment to the flash, in other words, the shutter time of the original camera APP is changed along with the environmental change, and therefore, the synchronization of the flash and the camera shutter is almost impossible to realize by the external Bluetooth flash lamp through a time delay mode. According to the technical scheme, when the camera APP is started to take a picture, the flash lamp is turned on first, and when the whole shooting process is finished, the flash lamp is turned off. The lighting state maintaining time of the external Bluetooth flash lamp covers the whole photographing process, intelligent test is carried out on the photographing environment before the action of the shutter from the start of photographing, then the action of the shutter is exposed, and the flash lamp is in the lighting state. The method for prolonging the flash time not only can keep the effect of the camera APP intelligent exposure algorithm, but also can realize the superposition of two flashes of the flash lamp of the camera and the external Bluetooth flash lamp, furthest improves the condition of insufficient flash brightness, and can be applicable to almost all intelligent machine brands and models.
Further, the external Bluetooth flash lamp is also connected with a sub flash lamp, and the external Bluetooth flash lamp synchronously flashes by driving the sub flash lamp through wireless radio frequency.
Compared with the prior art, the invention has the beneficial effects that the flash APP of a third party is operated in parallel with the original camera APP of the intelligent machine in a floating window mode, although two APPs are operated simultaneously, the floating window of the flash APP is operated on the operation window of the superimposed original camera APP, when the external Bluetooth flash lamp is operated, the floating window of the flash APP is opened, and the camera APP with the external Bluetooth flash lamp function can be developed as conveniently as the camera APP with the external Bluetooth flash lamp function is developed; when photographing, the camera APP can be directly controlled to work, and when the camera APP provided by a manufacturer of the intelligent machine is adopted to perform photographing operation, the optimal effect of the original factory design can be maintained no matter in terms of functions or performances, no matter in terms of an intelligent exposure algorithm automatically adapting to the environment when photographing or an algorithm for intelligently processing photos, the camera APP version maintenance is not required to be additionally carried out, and the functions and performances of the camera APP of the latest version can be maintained at any time. And the intelligent machine is not limited by manufacturers, brands, models and the like of the intelligent machine, and the external Bluetooth flash lamp function can be adapted to intelligent machines of various styles and brands as long as an operating system of the intelligent machine can support the suspended window to run the APP.
Drawings
Fig. 1 is a schematic structural diagram of an external bluetooth flash lamp, a flash lamp APP and a primary camera APP according to the present invention.
Fig. 2 is a block flow diagram of the present invention for operating a flash APP floating window to perform flash photographing.
Fig. 3 is a block flow diagram of the present invention operating a flash APP floating window to set flash brightness/color temperature/exposure/mode/switch.
Fig. 4 is a block flow chart of the invention for operating an external bluetooth flash lamp to perform flash photography.
Fig. 5 is a logic block diagram of the flash APP start of the present invention.
FIG. 6 is a logic block diagram of a flashlight APP floating window touch screen event of the present invention.
Fig. 7 is a logic block diagram of the hardware initialization of the external bluetooth flash device of the present invention.
Fig. 8 is a logic block diagram of an external bluetooth flash device according to the present invention receiving an HID output report event.
Fig. 9 is a logic block diagram of a press button event of the external bluetooth flash device of the present invention.
Fig. 10 is a block diagram of the structure of the external bluetooth flash lamp driving LED lamp according to the present invention.
Fig. 11 is a block diagram of an external bluetooth flash lamp driving LED lamp and driving a sub-flash lamp via wireless radio frequency according to the present invention.
Fig. 12 is a block diagram of the structure of the external bluetooth flash lamp according to the present invention by driving the sub flash lamp through wireless radio frequency.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
An external Bluetooth flash lamp control method based on a Bluetooth HID protocol is characterized by comprising the following steps: external Bluetooth flash lamp, flash lamp APP and primary camera APP; the original camera APP and the flash lamp APP are in an operation state at the same time, the original camera APP operates in a foreground main window mode, and the flash lamp APP operates in a background floating window mode; bluetooth communication protocol integration of external Bluetooth flash lamp defines the bluetooth HID equipment that has HID output report, and flash lamp APP sends the HID output report to external Bluetooth flash lamp to control the bluetooth flash lamp.
Here, a bluetooth protocol and a bluetooth HID protocol are briefly described. The prior art temporarily separates bluetooth communications into a lower layer protocol and an application layer protocol. The Bluetooth bottom layer protocol comprises the processing of a Bluetooth physical layer, a data link layer, a network layer and a transmission layer, and a common Bluetooth chip integrates the Bluetooth bottom layer protocol. In addition, the Bluetooth application layer protocol is independent, because when the Bluetooth chip is adopted to develop products, only the development of the Bluetooth application layer protocol is generally needed.
The bluetooth application layer protocol contains a number of protocol specifications, of which The Human Interface Device (bluetooth HID protocol) is a very specific one of the bluetooth application layer protocols, which defines the protocols, features and usage procedures of bluetooth in man-machine interface devices. Typical applications are HID bluetooth mice, HID bluetooth keyboards, HID bluetooth gamepads, etc. Currently, most well known operating systems integrate the standard protocol for bluetooth HID, for example, well known operating systems such as windows, lunix, android and ios, all integrate the standard protocol for bluetooth HID. Devices supporting the HID standard protocol, such as HID bluetooth mouse, HID bluetooth keyboard, etc., can be directly invoked to complete keyboard input and mouse input without installing drivers for all applications as long as they are added to the operating system.
Compared with a Bluetooth application layer protocol customized in an application program APP (hereinafter referred to as Bluetooth customized protocol), the Bluetooth HID protocol has a great difference that most of well-known operating systems integrate a standard protocol of Bluetooth HID, so that the Bluetooth HID protocol is adopted for communication, is an operating system-based device, any APP is operated in the operating system, and the Bluetooth HID device can be called as long as the Bluetooth HID device is in a foreground operation state. If the APP communicates with the bluetooth device using a custom bluetooth application layer protocol, more like an application-based device, the APP invokes the bluetooth device in an exclusive manner, and even if the APP is in a background running state, other devices cannot invoke the bluetooth device any more unless the APP is out of operation, and is disconnected from the bluetooth device. Therefore, the Bluetooth HID device with the HID output report is adopted, and when the original camera APP and the flash lamp APP are in the running state at the same time, the original camera APP and the flash lamp APP can call the external Bluetooth flash lamp.
Further, the flash lamp APP carries out setting coding on the content of the Bluetooth HID output report, redefines the content into a flash lamp setting operation instruction, and sends the flash lamp setting operation instruction to the external Bluetooth flash lamp in the form of the Bluetooth HID output report; after receiving the Bluetooth HID output report sent by the flash APP, the external Bluetooth flash analyzes the received Bluetooth HID output report into a flash setting operation instruction, and the external Bluetooth flash performs corresponding operation according to the flash setting operation instruction. The external Bluetooth flash lamp carries out corresponding operation according to the flash lamp setting operation instruction, namely the process of controlling the Bluetooth flash lamp by the flash lamp APP.
Further, the flash APP is provided with a brightness button, a color temperature button, an exposure button, a mode button, a switch button, a start flash photographing/shooting button, and flash setting operation instruction contents defined by the content code of the bluetooth HID output report include, but are not limited to: the brightness, color temperature, exposure, switch and mode of the external Bluetooth flash lamp are set and regulated, and flash photographing/shooting is started. The external Bluetooth flash lamp performs corresponding operations according to the flash lamp setting operation instruction, namely, the external Bluetooth flash lamp comprises brightness, color temperature, exposure, switch and mode adjustment, and flash photographing/shooting is started.
Further, the bluetooth HID device with the HID output report, which is integrally defined by the bluetooth communication protocol of the external bluetooth flash lamp, is an HID Keyboard device or an HID KeyPad device.
Further, a Bluetooth HID device with an HID output report, which is integrally defined by a Bluetooth communication protocol of the external Bluetooth flash lamp, is an HID Keyboard device; the HID Keyboard device defines a Keyboard indicator status output report, and encodes a status value of the Keyboard indicator into a flash setting operation instruction to control the external bluetooth flash.
The content of the Keyboard indicator lamp state HID output report of the HID keycard device comprises five Keyboard state indicator lamps: the (num_lock, caps_lock, scroll_lock, compound, kana) state, the flash APP can perform the spot-lighting operation on the five indicator states by program, and there may be 32 (5 th power of 2) combinations at most, which corresponds to 32 codes and may be defined as 32 bluetooth instructions (i.e. flash setting operation instructions), and these bluetooth instructions may be used for setting and adjusting LED brightness/color temperature/exposure/mode/switch, and the like, and may also be used for starting flash photographing. Although the bluetooth HID protocol defines bluetooth HID devices with many purposes, HID devices related to the purposes of a light filling lamp and a camera flash are not defined, and the reason why manufacturers of bluetooth light filling lamps and flash lamps in the current market all adopt bluetooth custom protocols to realize communication control of a flash lamp APP to an external bluetooth flash lamp. Also, because of the bluetooth custom protocol, a third party manufacturer who wants to develop an external bluetooth flash lamp can only give up the photographing function of the original camera APP with excellent functional performance, and has to develop the camera APP which can be used together with the bluetooth flash lamp.
Further, the bluetooth communication protocol of the external bluetooth flash lamp is integrated with a bluetooth HID device capable of sending an HID input report for controlling the native camera APP, so that the external bluetooth flash lamp controls the native camera APP to take a photograph. Because the various HID input reports can start the photographing of the native camera APP, such as a bluetooth HID Keyboard, the Enter key can be used to start the photographing of the native camera APP, or the volume increase and volume decrease can be used to start the photographing of the native camera APP, for example HID Consumer Control Device, and in practical application, one or more of them can be selected.
Further, when the external Bluetooth flash lamp receives a flash photographing instruction from the flash lamp APP, an HID input report for controlling the original camera APP is sent to the original camera APP to start photographing, and an LED lamp on the external Bluetooth flash lamp is lighted to realize a flash photographing function. If the communication protocol of the external bluetooth flash lamp equipment controlled by the flash lamp APP for adjusting brightness, color temperature, exposure, mode switching and other operations adopts a bluetooth custom protocol mode, the external bluetooth flash lamp equipment can supplement the flash lamp APP for monopolizing, and even if the external bluetooth flash lamp equipment is in the foreground operation, the external bluetooth flash lamp equipment cannot be called by the original camera APP of the intelligent machine, and the starting of the original camera of the intelligent machine can not be realized by the external bluetooth flash lamp analog input volume up or volume down buttons. According to the invention, the standard Bluetooth HID protocol is adopted, so that the flashlight APP and the primary camera APP can be operated simultaneously, and the external Bluetooth flashlight equipment can be called, so that the synchronous flashlight matched with the external Bluetooth flashlight for shooting by the primary camera APP can be realized.
Further, before the external Bluetooth flash lamp sends an HID input report for controlling the original camera APP to start photographing, an LED lamp on the external Bluetooth flash lamp is firstly turned on until the whole photographing process is finished, and the LED lamp on the external Bluetooth flash lamp is turned off.
Further, the external Bluetooth flash lamp is also connected with a sub flash lamp, and the external Bluetooth flash lamp synchronously flashes by driving the sub flash lamp through wireless radio frequency.
Referring to fig. 2, a flash photographing process is performed for operating a flash APP floating window:
after clicking a button for shooting flash on the flash APP, the flash APP generates an encoded HID keyBoard indication lamp output report (flash setting operation instruction) and still sends the HID keyBoard indication lamp output report (flash setting operation instruction) after encoding the indication lamp state to an external Bluetooth flash lamp in the form of a Bluetooth HID output report, and at the moment, the flash APP can enter the suspension window state in the background;
the external Bluetooth flash lamp receives the coded HID keyBoard indication lamp output report in the form of a Bluetooth HID output report, analyzes the coded HID keyBoard indication lamp output report, generates a control input report of HID volume+ or volume-which is realized by Bluetooth HID equipment of the HID input report, sends the control input report of HID volume+ or volume-to the original camera APP, and simultaneously delays driving the LED lamp to highlight and output flash;
the original camera APP analyzes the control input report of HID volume plus or volume minus after receiving the control input report, confirms the control input report as a photographing instruction, executes photographing operation and controls a flash lamp on the intelligent machine to flash.
Referring to fig. 3, a process of setting flash brightness/color temperature/exposure/mode/switch for operating a flash APP floating window:
after clicking a button of brightness/color temperature/exposure/switch/mode on the flash APP, the flash APP generates an encoded HID keyBoard indication lamp output report (flash lamp setting operation instruction), and still sends the HID keyBoard indication lamp output report (flash lamp setting operation instruction) after encoding the indication lamp state to an external Bluetooth flash lamp in the form of a Bluetooth HID output report, and at the moment, the flash APP can enter the suspension window state in the background;
the external Bluetooth flash lamp receives the coded HID keyBoard indication lamp output report in the form of the Bluetooth HID output report, analyzes the coded HID keyBoard indication lamp output report, and modifies the state parameters of the LED lamp in the external Bluetooth flash lamp according to the flash lamp setting operation instruction (namely, brightness/color temperature/exposure/switch/mode is adjusted).
Referring to fig. 4, for operating an external bluetooth flash lamp to perform flash photographing, the following steps are performed:
the user presses a flash button of external Bluetooth flash, receives and judges the type of the pressed button, judges whether the pressed button is a flash shooting button or not, then generates a control input report of HID volume plus or volume minus (realized by Bluetooth HID equipment of the HID input report), sends the control input report of HID volume plus or volume minus (HID input report) to a primary camera APP, and simultaneously delays driving an LED lamp to highlight and output flash;
the original camera APP analyzes the control input report of HID volume plus or volume minus after receiving the control input report, confirms the control input report as a photographing instruction, executes photographing operation and controls a flash lamp on the intelligent machine to flash.
Referring to fig. 5, the logic flow is started for the flash APP:
the flashlight APP inquires whether the intelligent machine is connected with external Bluetooth flashlight equipment or not, enters a background floating window interface after confirming connection to detect and process touch events, and then ends the flow. When no connection is queried, prompting that no external Bluetooth flashing device is found, and ending the flow.
Referring to fig. 6, for a strobe APP floating window touch screen event logic flow:
the flash lamp APP detects whether a touch event exists, the touch event enters a foreground to operate, the states of LED indicator lamps (Keyboard indicator lamps) of a Keyboard (HID Keyboard device) are encoded according to the defined function of a touched area (namely various buttons), a Bluetooth HID output report (flash lamp setting operation instruction in the form of the Bluetooth HID output report) of the encoded LED indicator lamps of the HID Keyboard is sent, then the background floating window to operate is entered, and the process is ended. When no touch event is detected, the flow is ended directly.
Referring to fig. 7, a logic flow is initialized for hardware of an external bluetooth flash device, on which an LED lamp (flash) and a key are disposed. The HID Keyboard interface is HID Keyboard equipment, and the HID Consumer Control Device interface is HID Consumer Control Device equipment.
Referring to fig. 8, the logic flow for the external bluetooth flash device to receive HID output report events:
the external Bluetooth flash lamp equipment detects whether an HID output report event is received or not, and if not, the process is ended; if so, continuing to judge whether the LED indicator lamp state output report (the flash lamp setting operation instruction in the form of a Bluetooth HID output report) is the HID Keyboard, and if so, carrying out coding analysis on the HID output report and judging the operation instruction; when the operation instruction is a flash photographing instruction, sending a Bluetooth HID input report of volume + and volume-of HID Consumer Control equipment, and simultaneously, highlighting and driving an LED lamp in a short time delay, and ending the flow; when the operation instruction is an operation instruction such as color temperature and brightness, the brightness value and the color temperature value of the LED on the external Bluetooth flash lamp are adjusted, and then the process is finished.
Referring to fig. 9, the logic flow for the button press event for the external bluetooth flash device: the external Bluetooth flash lamp equipment detects whether a button event occurs, and if not, the process is ended; if so, judging the operation of the button; when the operation is flash photographing, sending a Bluetooth HID input report of volume + and volume-of HID Consumer Control equipment, and simultaneously, highlighting and driving an LED lamp in a short time delay, and ending the flow; when the operation is the operation of color temperature, brightness and the like, the brightness value and the color temperature value of the LEDs on the external Bluetooth flash lamp are adjusted, and then the process is finished.
Referring to fig. 10, for the structure of the external bluetooth flash lamp driving LED lamp, this embodiment is a single type, and the single type direct driving LED lamp scheme is the most basic application, and the external bluetooth flash lamp comes out in a single type, and can perform flash photographing through the operation of a suspended window of the flash lamp APP, or perform flash photographing through the operation of a button on the flash lamp device.
Referring to fig. 11, for the structure of driving an LED lamp by an external bluetooth flash lamp and driving a sub flash lamp by a wireless radio frequency, the embodiment is a letter type, the scheme of driving the LED lamp by a sub-mother type radio frequency expansion is to add a radio frequency interface based on a single type direct driving LED lamp scheme, the specific mode of limiting the radio frequency of the radio frequency interface can be 315M/433/866/2.5G or any radio frequency, and the purpose of adding the radio frequency interface is that when flash photographing is performed, a plurality of sub flash lamps can be driven simultaneously by the radio frequency so as to increase the effect of flash or light filling.
Referring to fig. 12, the structure of the external bluetooth flash lamp is that the external bluetooth flash lamp drives the sub flash lamp through wireless radio frequency: the embodiment is that the handle support is split, the handle support split type radio frequency driving LED lamp scheme is that on the basis of a single type direct driving LED lamp scheme, the mode that the LED lamp is connected and driven is changed into a mode that a radio frequency interface indirectly drives a sub-flash lamp, and likewise, the specific mode that the radio frequency interface limits radio frequency can be 315M/433/866/2.5G and other arbitrary radio frequencies, and the purpose of modifying the radio frequency interface into the radio frequency interface is that Bluetooth driving is arranged on the handle support, and the sub-flash lamp can be independently separated through a radio frequency connector. Therefore, when the detachable sub-flash lamp is closed, the handle support can be used as a self-timer rod, and when the detachable sub-flash lamp is opened in a matched manner, the detachable sub-flash lamp can be used as an external Bluetooth flash lamp of the intelligent machine.
Compared with the prior art, the invention has the beneficial effects that the flash APP of a third party is operated in parallel with the original camera APP of the intelligent machine in a floating window mode, although two APPs are operated simultaneously, the floating window of the flash APP is operated on the operation window of the superimposed original camera APP, when the external Bluetooth flash lamp is operated, the floating window of the flash APP is opened, and the camera APP with the external Bluetooth flash lamp function can be developed as conveniently as the camera APP with the external Bluetooth flash lamp function is developed; when photographing, the camera APP can be directly controlled to work, and when the camera APP provided by a manufacturer of the intelligent machine is adopted to perform photographing operation, the optimal effect of the original factory design can be maintained no matter in terms of functions or performances, no matter in terms of an intelligent exposure algorithm automatically adapting to the environment when photographing or an algorithm for intelligently processing photos, the camera APP version maintenance is not required to be additionally carried out, and the functions and performances of the camera APP of the latest version can be maintained at any time. And the intelligent machine is not limited by manufacturers, brands, models and the like of the intelligent machine, and the external Bluetooth flash lamp function can be adapted to intelligent machines of various styles and brands as long as an operating system of the intelligent machine can support the suspended window to run the APP.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should be covered by the protection scope of the present invention by making equivalents and modifications to the technical solution and the inventive concept thereof.
Claims (4)
1. An external Bluetooth flash lamp control method based on a Bluetooth HID protocol is characterized by comprising the following steps: external Bluetooth flash lamp, flash lamp APP and primary camera APP; the original camera APP and the flash lamp APP are in an operation state at the same time, the original camera APP operates in a foreground main window mode, and the flash lamp APP operates in a background floating window mode; bluetooth communication protocol integration of the external Bluetooth flash lamp defines Bluetooth HID equipment with an HID output report, and the flash lamp APP sends the HID output report to the external Bluetooth flash lamp so as to control the Bluetooth flash lamp;
the process that flash APP controlled bluetooth flash is: the flash lamp APP carries out setting coding on the content of the Bluetooth HID output report, redefines the content into a flash lamp setting operation instruction, and sends the flash lamp setting operation instruction to an external Bluetooth flash lamp in the form of the Bluetooth HID output report; after receiving a Bluetooth HID output report sent by a flash APP, the external Bluetooth flash analyzes the received Bluetooth HID output report into a flash setting operation instruction, and the external Bluetooth flash carries out corresponding operation according to the flash setting operation instruction;
the flash APP is provided with a brightness button, a color temperature button, an exposure button, a mode button, a switch button, a start flash photographing/shooting button, and flash setting operation instruction contents defined by the content code of the bluetooth HID output report include, but are not limited to: setting and adjusting the brightness, color temperature, exposure, switch and mode of an external Bluetooth flash lamp, and starting flash photographing/shooting;
the Bluetooth HID device with the HID output report, which is integrally defined by the Bluetooth communication protocol of the external Bluetooth flash lamp, is an HID Keyboard device;
the HID Keyboard device defines a Keyboard indicator state output report, encodes the state value of the Keyboard indicator into a flash lamp setting operation instruction, and controls the external Bluetooth flash lamp;
the Bluetooth communication protocol of the external Bluetooth flash lamp is integrated with Bluetooth HID equipment which can send an HID input report for controlling the original camera APP, so that the external Bluetooth flash lamp controls the original camera APP to take a picture.
2. The method for controlling an external Bluetooth flash lamp based on a Bluetooth HID protocol according to claim 1, wherein when the external Bluetooth flash lamp receives a flash photographing instruction from a flash lamp APP, an HID input report for controlling a primary camera APP is sent to the primary camera APP to start photographing, and an LED lamp on the external Bluetooth flash lamp is turned on to realize a flash photographing function.
3. The method for controlling an external bluetooth flash lamp based on a bluetooth HID protocol according to claim 2, wherein before the external bluetooth flash lamp sends an HID input report for controlling the primary camera APP to start photographing, an LED lamp on the external bluetooth flash lamp is turned on, until the whole photographing process is finished, and the LED lamp on the external bluetooth flash lamp is turned off.
4. The method for controlling an external Bluetooth flash lamp based on a Bluetooth HID protocol according to claim 1, wherein the external Bluetooth flash lamp is further connected with a sub flash lamp, and the external Bluetooth flash lamp synchronously flashes by driving the sub flash lamp through wireless radio frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768554.6A CN113660429B (en) | 2021-07-07 | 2021-07-07 | External Bluetooth flash lamp control method based on Bluetooth HID protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768554.6A CN113660429B (en) | 2021-07-07 | 2021-07-07 | External Bluetooth flash lamp control method based on Bluetooth HID protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113660429A CN113660429A (en) | 2021-11-16 |
CN113660429B true CN113660429B (en) | 2023-05-19 |
Family
ID=78489150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110768554.6A Active CN113660429B (en) | 2021-07-07 | 2021-07-07 | External Bluetooth flash lamp control method based on Bluetooth HID protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113660429B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004054231A (en) * | 2002-05-31 | 2004-02-19 | Sanyo Electric Co Ltd | Camera having strobe |
CN103220422A (en) * | 2013-04-09 | 2013-07-24 | 深圳市影歌科技有限公司 | Flashlight system for handheld terminal equipment and control method |
CN104079831A (en) * | 2014-06-30 | 2014-10-01 | 苏州吉视电子科技有限公司 | Camera with multiple paths of flash synchronizing signals |
CN106154693A (en) * | 2015-07-12 | 2016-11-23 | 董慧强 | A kind of flash lamp |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102466211A (en) * | 2010-11-17 | 2012-05-23 | 芯讯通无线科技(上海)有限公司 | Flashlight accessory, mobile terminal, flashlight system, and method for realizing flash |
CN105425990A (en) * | 2015-11-13 | 2016-03-23 | 惠州Tcl移动通信有限公司 | Method and system for realizing remote control based on Bluetooth man-machine interface protocol |
CN106101493A (en) * | 2016-04-27 | 2016-11-09 | 朱宏静 | Many fill-flash lamp system and fill-flash control device |
CN205943061U (en) * | 2016-08-16 | 2017-02-08 | 深圳市神牛摄影器材有限公司 | Photography luminaire optical equipment's remote control unit and wireless control system thereof |
CN108566706B (en) * | 2018-04-19 | 2020-04-07 | Oppo广东移动通信有限公司 | Flash lamp control method and device, terminal equipment and storage medium |
-
2021
- 2021-07-07 CN CN202110768554.6A patent/CN113660429B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004054231A (en) * | 2002-05-31 | 2004-02-19 | Sanyo Electric Co Ltd | Camera having strobe |
CN103220422A (en) * | 2013-04-09 | 2013-07-24 | 深圳市影歌科技有限公司 | Flashlight system for handheld terminal equipment and control method |
CN104079831A (en) * | 2014-06-30 | 2014-10-01 | 苏州吉视电子科技有限公司 | Camera with multiple paths of flash synchronizing signals |
CN106154693A (en) * | 2015-07-12 | 2016-11-23 | 董慧强 | A kind of flash lamp |
Also Published As
Publication number | Publication date |
---|---|
CN113660429A (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110753430A (en) | Light source illumination adjusting system and method, lighting device and readable storage medium | |
CN105764188A (en) | Illumination controller and illumination control system and method | |
CN103037583A (en) | Fireproof and energy-saving light-emitting diode (LED) controlling system based on android system | |
CN105208715B (en) | The packet control process and system of controllable LED | |
CN104902048A (en) | Control system and control method based on mobile phone intelligent protection shell | |
CN105050239A (en) | Integrated intelligent lighting device control system | |
CN109792821A (en) | Lighting control | |
CN113660429B (en) | External Bluetooth flash lamp control method based on Bluetooth HID protocol | |
CN106163001B (en) | A kind of Intelligent LED lighting control system based on Android, IOS and ZigBee | |
CN103209525A (en) | Intelligent illumination controller | |
CN101516154A (en) | Method for using a mobile phone camera to automatic control a flash lamp as a photoinduction flashlight | |
CN106152386B (en) | A kind of processing method and processing device of AIR COND SIG Air Conditioner Singnal | |
CN104469004A (en) | Mobile terminal LED lamp turning-on method and device | |
CN111262099B (en) | Programmable remote control intelligent socket and implementation method thereof | |
KR102189465B1 (en) | Smart lamp for wireless communication and system for controlling smart lamp | |
CN106773769A (en) | A kind of magic wand and the method that intelligent home device is controlled based on magic wand | |
CN113660412B (en) | External Bluetooth flash lamp system of intelligent camera adopting double Bluetooth | |
CN112202957A (en) | Terminal control method and control device | |
CN107490969A (en) | A kind of wireless intelligent switch with touch display screen and embedded system | |
CN106527159A (en) | Method for redefining key functions, server, electrical equipment and system | |
CN110572920A (en) | Automatic code writing system and method for connecting multiple lamps | |
CN205305171U (en) | Intelligence WIFI lamps and lanterns control system | |
CN204721651U (en) | Integral intelligent lighting apparatus control device | |
CN209375967U (en) | It is a kind of can manual setting lamp light-regulating range lamp system | |
CN1354423A (en) | Radio communication equipment switcher |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |