CN108566706B - Flash lamp control method and device, terminal equipment and storage medium - Google Patents
Flash lamp control method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN108566706B CN108566706B CN201810353506.9A CN201810353506A CN108566706B CN 108566706 B CN108566706 B CN 108566706B CN 201810353506 A CN201810353506 A CN 201810353506A CN 108566706 B CN108566706 B CN 108566706B
- Authority
- CN
- China
- Prior art keywords
- flash
- flash lamp
- control
- time
- terminal equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims description 48
- 230000003993 interaction Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 239000002609 medium Substances 0.000 description 13
- 230000002093 peripheral effect Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 239000012120 mounting media Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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
-
- 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)
- Telephone Function (AREA)
- Selective Calling Equipment (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the application discloses a flash lamp control method, a flash lamp control device, a terminal device and a storage medium.
Description
Technical Field
The embodiment of the application relates to computer technologies, and in particular, to a flash lamp control method and apparatus, a terminal device, and a storage medium.
Background
With the increase of the popularity of the terminal devices, more and more users use the terminal devices to execute various functions to meet their own needs, such as reading characters, watching videos, listening to music, playing games, etc., and more terminal device integrated hardware, such as a camera, a flash lamp, an infrared sensor, etc., wherein the flash lamp can be applied to various occasions, such as a concert site, due to its own light emitting characteristics.
The user can open terminal equipment's flash lamp at the concert scene and build luminous atmosphere, and the user needs the manual flash lamp of opening of prior art, complex operation, and the flash lamp lasts the terminal equipment consumption that lights the cause simultaneously and is too high.
Disclosure of Invention
The invention provides a flash lamp control method, a flash lamp control device, terminal equipment and a storage medium, which simplify user operation, reduce power consumption of the terminal equipment and optimize the flash effect of a flash lamp.
In a first aspect, an embodiment of the present application provides a flash lamp control method, including:
establishing a Bluetooth communication connection with a control device;
receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to slave terminal equipment;
and analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on or turned off according to an analysis result.
In a second aspect, an embodiment of the present application further provides a flash control device, including:
the communication connection module is used for establishing Bluetooth communication connection with the control equipment;
the command transceiving module is used for receiving a flash lamp control command sent by the control equipment and sending the flash lamp control command to the slave terminal equipment;
and the instruction processing module is used for analyzing the flash lamp control instruction and controlling the flash lamp to be turned on or turned off according to an analysis result.
In a third aspect, an embodiment of the present application further provides a terminal device, including: the flash lamp control system comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the flash lamp control method according to the embodiment of the application.
In a fourth aspect, the present application further provides a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform the flash control method according to the present application.
According to the scheme, the Bluetooth communication connection with the control equipment is established, the flash lamp control instruction sent by the control equipment is received, the flash lamp control instruction is sent to the slave terminal equipment, the flash lamp control instruction is analyzed, the flash lamp is controlled to be turned on and turned off according to the analysis result, the user operation is simplified, the power consumption of the terminal equipment is reduced, and the flash effect of the flash lamp is optimized.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a flash control method provided in an embodiment of the present application;
FIG. 2 is a flow chart of another method for controlling a flash lamp according to an embodiment of the present invention;
FIG. 3 is a flow chart of another flash control method provided by the embodiments of the present application;
FIG. 4 is a flowchart of another flash control method provided by an embodiment of the present application;
FIG. 5 is a flowchart of another flash control method provided by an embodiment of the present application;
fig. 6 is a block diagram of a flash control device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a flash control method provided in an embodiment of the present application, which is applicable to controlling a flash of a terminal device, where the method may be executed by the terminal device provided in the embodiment of the present application, and a flash control apparatus of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
and step S101, establishing and controlling Bluetooth communication connection of the equipment.
The control equipment is hardware equipment with a Bluetooth instruction sending function, and the terminal equipment and the control equipment establish Bluetooth communication connection. For example, the control device may be a device disposed in a concert venue, and may be uniformly distributed according to an actual area of the concert venue, such as in the middle, two sides, or the front and the rear of a concert stand, so that the terminal device may perform bluetooth connection. The terminal device can be a mobile phone carried by a user, and the user can enter the conference room as a conference audience carrying the terminal device.
In one embodiment, the terminal device sends a bluetooth connection request to the control device by scanning a two-dimensional code arranged on the scene of the concert, and the control device completes the establishment of the bluetooth communication connection with the terminal device after receiving the bluetooth connection request. In another embodiment, the terminal device establishes a bluetooth communication connection with the control device by accessing a web link or a wechat application.
The Bluetooth communication is a low-power-consumption wireless network data transmission technology, so that communication among devices can be realized, radiation is low, and power consumption of the devices is low. After the terminal equipment and the control equipment establish Bluetooth communication connection, the integrated flash lamp control authority is correspondingly opened, so that the flash lamp can be opened and closed according to the flash lamp control instruction.
And S102, receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to the slave terminal equipment.
After the terminal equipment and the control equipment establish Bluetooth communication connection, the terminal equipment and the control equipment receive a flash lamp control instruction sent by the control equipment, wherein the flash lamp control instruction is an instruction for controlling the on and off of a flash lamp integrated with the terminal equipment, and the on and off of the flash lamp can be controlled. In one embodiment, one or more control devices simultaneously send flash lamp control instructions to connected terminal devices, the terminal devices correspondingly send the flash lamp control instructions to slave terminal devices after receiving the flash lamp control instructions, the slave terminal devices control the on and off of self-integrated flash lamps according to the flash lamp control instructions so as to synchronously turn on or turn off the multiple flash lamps, the terminal devices can be used as master terminal devices, and the master terminal devices and the slave terminal devices are connected through a Bluetooth ad hoc network to form a local area network capable of data interaction. It should be noted that the master terminal device and the slave terminal device may be switched to each other according to different geographic locations, the terminal device establishing communication connection with the control device is used as the master terminal device, and the flash control instruction sent by the control device is distributed to the slave terminal device connected to the master terminal device, so as to control the flash of the device in the entire lan area.
Illustratively, taking a concert scene as an example, when music in the concert hall is sounded, the control device starts to send a flash control instruction to the terminal devices, and the instruction is simultaneously transmitted among the terminal devices. In another embodiment, the flash control command is a set of flash turn-on and turn-off commands containing a period of time (the specific time length may be the duration of the currently played song). In another embodiment, the flash control instruction includes a flash type and a flash on time of the flash, and may also include a song identifier and a flash on time, and the terminal device executes corresponding flash on-off control according to the flash control instruction when receiving the flash control instruction.
And S103, analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on or turned off according to an analysis result.
In one embodiment, the flash control command includes a field of times that the flash is turned on and off by parsing the flash command to obtain the times that the flash is turned on and off. And if the time of the terminal equipment is not consistent with the system calibration time, correspondingly adjusting the internal time to keep the time of each terminal equipment consistent, and controlling the flash lamp to be turned on and off by the terminal equipment according to the flash lamp turning-on and turning-off time obtained by analysis. In another embodiment, the flash control instruction may further only include a flash on command and a flash off command, that is, the terminal device directly turns on the flash after interpreting the flash on command, and directly turns off the flash after interpreting the flash off command.
In one embodiment, the flash control instruction includes a flash type and a flash start time of the flash, and the flash is controlled according to the flash type and the flash start time of the flash after the flash type and the flash start time of the flash are obtained through analysis. In another embodiment, the flash control command comprises the turn-on time of the flash and the song identification, and accordingly, the flash is controlled according to the turn-on time of the flash and the song identification.
According to the above, after the Bluetooth communication connection with the control equipment is established, the flash lamp control instruction sent by the control equipment is received, the flash lamp control instruction is sent to the slave terminal equipment, the flash lamp control instruction is analyzed simultaneously, and the flash lamp is controlled to be turned on and turned off according to the analysis result, so that the flash lamp does not need to be turned on and turned off manually by a user, the flash lamp can be turned on and turned off automatically according to the control instruction, the condition that the resource consumption is too large due to the fact that the flash lamp is turned on all the time is avoided, and meanwhile the flash effect of the flash lamp is remarkably improved due to the fact that the flash lamp is turned on and off by the plurality.
In a possible embodiment, before the establishing and controlling of the bluetooth communication connection of the device, the method further includes: and starting a flash control mode. For example, the terminal device may start the flash control mode by scanning the two-dimensional code, and correspondingly grant the flash control authority to the control device after the flash control mode is started, and the user may also manually turn off the flash control mode to prohibit receiving of the flash control instruction sent by the control device.
Fig. 2 is a flowchart of another flash control method provided in an embodiment of the present application, where optionally, the receiving a flash control instruction sent by the control device includes: and receiving a flash lamp control instruction sent by the control equipment in real time. After the controlling the on and off of the flash lamp according to the analysis result, the method further comprises the following steps: recording the opening and closing time of the flash lamp, carrying out audio identification after the flash lamp is opened, and correspondingly storing the identification result and the opening and closing time of the flash lamp. As shown in fig. 2, the technical solution is as follows:
and step S201, starting a flash control mode.
Step S202, establishing and controlling Bluetooth communication connection of the equipment.
And step S203, receiving a flash lamp control instruction sent by the control equipment in real time, and sending the flash lamp control instruction to the slave terminal equipment.
In one embodiment, the control device sends a flash control instruction to the terminal device in real time, for example, the terminal device receives the flash control instruction every 0.1 second, where the control instruction includes a flash turn-on and turn-off command, if the currently received flash control instruction indicates that the flash is turned on, the terminal device correspondingly turns on the flash, and if the received flash control instruction indicates that the flash is turned off, the terminal device correspondingly turns off the flash. Therefore, real-time control over the flash lamp is achieved, if the flash lamp is in the opening state and simultaneously receives a flash lamp opening command, control adjustment is not correspondingly conducted, and similarly, if the flash lamp is in the closing state, the flash lamp closing command is received and control adjustment is not conducted.
And S204, analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on or turned off according to an analysis result.
And S205, recording the turn-on and turn-off time of the flash lamp, performing audio identification after the flash lamp is turned on, and correspondingly storing an identification result and the turn-on and turn-off time of the flash lamp.
Illustratively, after the terminal device is in a flash lamp mode, audio can be collected through the integrated microphone, and the audio is identified to determine the identified track, and when the flash lamp is controlled according to the flash lamp control instruction, the turn-on and turn-off time of the flash lamp is correspondingly recorded, illustratively, 10 seconds are taken as an example, the flash lamp is turned on in the 1 st second, 3 seconds, 8 seconds and 10 seconds, and the flash lamp is turned off in the 2 nd second, 4 seconds and 9 seconds. And storing the recorded opening and closing time of the flash lamp and the corresponding record of the correspondingly identified audio in a database of the terminal equipment, and controlling the opening and closing of the flash lamp according to the correspondingly recorded opening and closing time of the flash lamp when the audio is detected to be played again.
According to the method, the on-off of the flash lamp integrated with the terminal equipment is controlled in real time according to the received flash lamp control instruction, so that the flash lamp is uniformly turned on and turned off, the electric quantity of the terminal equipment is saved, and the display effect of the flash lamp is better and outstanding.
Fig. 3 is a flowchart of another flash lamp control method according to an embodiment of the present application, where optionally, the analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on and off according to an analysis result includes: analyzing the flash lamp control instruction to obtain the opening and closing time of the flash lamp; and controlling the flash lamp to be turned on and off according to the turn-on and turn-off time. As shown in fig. 3, the technical solution is as follows:
and step S301, starting a flash control mode.
Step S302, Bluetooth communication connection of the device is established and controlled.
And step S303, receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to the slave terminal equipment.
And step S304, analyzing the flash lamp control instruction, and determining the on-off time of the flash lamp according to the time field in the analysis result.
In one embodiment, the flash control instruction includes the turn-on and turn-off time of the flash, and the turn-on and turn-off time can be determined by analyzing the control instruction and according to the time field in the analysis result. Thus, without real-time communication with the control device, the control device may, for example, send a flash control command that may include a flash on/off control scheme for a predetermined duration (e.g., 5 minutes).
And S305, controlling the on and off of the flash lamp according to the on and off time.
And S306, recording the on-off time of the flash lamp, carrying out audio recognition after the flash lamp is turned on, and correspondingly storing the recognition result and the on-off time of the flash lamp.
Therefore, the communication frequency of the terminal equipment, the control equipment and other terminal equipment is reduced, the communication link blockage is avoided, the communication efficiency is improved, and the control method of the flash lamp is further optimized.
Fig. 4 is a flowchart of another flash lamp control method provided in an embodiment of the present application, where optionally, the analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on and off according to an analysis result includes: analyzing the flash lamp control instruction to obtain the flash type and the flash starting time of the flash lamp; and controlling the flash lamp to be turned on and off according to the flash type and the flash turning-on time. As shown in fig. 4, the technical solution is as follows:
and step S401, starting a flash control mode.
Step S402, establishing and controlling Bluetooth communication connection of the equipment.
And S403, receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to the slave terminal equipment.
And S404, analyzing the flash lamp control instruction, and determining the flash type and the flash starting time of the flash lamp according to the type field and the time field in the analysis result.
In one embodiment, the flash control instruction includes a flash type and a flash start time of the flash, and may be determined by parsing the control instruction and according to a time field and a type field in a parsing result, where the flash type is a preset flash different mode, and exemplarily, the flash control instruction may be divided into: flash type, medium flash type, and slow flash type. The blinking-on time indicates the time when the terminal device turns on the flash.
And S405, controlling the on and off of the flash lamp according to the flash type and the flash on time.
For example, the flashing frequency of the flash lamp corresponding to the "flash type" is flashing once every 0.3 seconds, the flashing frequency of the flash lamp corresponding to the "medium flashing type" is flashing once every 0.8 seconds, and the flashing frequency of the flash lamp corresponding to the "slow flashing type" is flashing once every 1.2 seconds. In one embodiment, a corresponding preset flicker frequency is determined according to the analyzed flicker type of the flash lamp, and the flash lamp is controlled to be turned on or turned off according to the flicker frequency. The corresponding relation between the flashing type and the flashing frequency can be issued to the terminal device by the control terminal, or the terminal device can be acquired by the network server and stored locally.
And S406, recording the on-off time of the flash lamp, performing audio recognition after the flash lamp is turned on, and correspondingly storing the recognition result and the on-off time of the flash lamp.
According to the method, the flash lamp is controlled to be opened and closed according to the analyzed flash type and flash opening time of the flash lamp, so that the control flow is simplified, and the control efficiency of the flash lamp is improved.
Fig. 5 is a flowchart of another flash lamp control method according to an embodiment of the present application, where optionally, the analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on and off according to an analysis result includes: analyzing the flash lamp control instruction to obtain the starting time of the flash lamp and the song identification; inquiring a database according to the song identification to obtain the flash lamp flicker frequency corresponding to the song identification; and controlling the flash lamp to be turned on and off according to the turn-on time and the flicker frequency. As shown in fig. 5, the technical solution is as follows:
and step S501, starting a flash control mode.
And step S502, establishing and controlling Bluetooth communication connection of the equipment.
And S503, receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to the slave terminal equipment.
And step S504, analyzing the flash lamp control instruction, and determining the starting time of the flash lamp and the song identification according to the time field and the identification field in the analysis result.
And step S505, inquiring a database according to the song identification to obtain the corresponding flash lamp flicker frequency.
The song identification is used for representing different song tracks and can be determined through an identification field in an instruction analysis result.
And S506, controlling the flash lamp to be turned on and off according to the turn-on time and the flicker frequency.
In one embodiment, the flashing of the flash lamp is controlled according to the determined flashing frequency (such as 1 time, 3 times or 5 times per second), so that the flashing frequencies of the flash lamps of the plurality of terminal devices on the site of the site are kept consistent.
And step S507, recording the opening and closing time of the flash lamp, performing audio recognition after the flash lamp is opened, and correspondingly storing a recognition result and the opening and closing time of the flash lamp.
According to the method, the terminal equipment can automatically start the flash lamp according to different song identifications and flash according to the designed flash frequency, so that the flash lamp flash effect of the site is consistent, the site atmosphere is optimized, and the experience of the user in using the flash lamp is improved.
Fig. 6 is a block diagram of a flash control device according to an embodiment of the present application, where the flash control device is configured to execute a flash control method according to the above embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus specifically includes: a communication connection module 101, an instruction transceiver module 102, and an instruction processing module 103, wherein,
and the communication connection module 101 is used for establishing a bluetooth communication connection with the control device.
The control equipment is hardware equipment with a Bluetooth instruction sending function, and the terminal equipment and the control equipment establish Bluetooth communication connection. For example, the control device may be a device disposed in a concert venue, and may be uniformly distributed according to an actual area of the concert venue, such as in the middle, two sides, or the front and the rear of a concert stand, so that the terminal device may perform bluetooth connection. The terminal device can be a mobile phone carried by a user, and the user can enter the conference room as a conference audience carrying the terminal device.
In one embodiment, the terminal device sends a bluetooth connection request to the control device by scanning a two-dimensional code arranged on the scene of the concert, and the control device completes the establishment of the bluetooth communication connection with the terminal device after receiving the bluetooth connection request. In another embodiment, the terminal device establishes a bluetooth communication connection with the control device by accessing a web link or a wechat application.
The Bluetooth communication is a low-power-consumption wireless network data transmission technology, so that communication among devices can be realized, radiation is low, and power consumption of the devices is low. After the terminal equipment and the control equipment establish Bluetooth communication connection, the integrated flash lamp control authority is correspondingly opened, so that the flash lamp can be opened and closed according to the flash lamp control instruction.
And the instruction transceiver module 102 is configured to receive a flash lamp control instruction sent by the control device, and send the flash lamp control instruction to the slave terminal device.
After the terminal equipment and the control equipment establish Bluetooth communication connection, the terminal equipment and the control equipment receive a flash lamp control instruction sent by the control equipment, wherein the flash lamp control instruction is an instruction for controlling the on and off of a flash lamp integrated with the terminal equipment, and the on and off of the flash lamp can be controlled. In one embodiment, one or more control devices simultaneously send flash lamp control instructions to connected terminal devices, the terminal devices correspondingly send the flash lamp control instructions to slave terminal devices after receiving the flash lamp control instructions, the slave terminal devices control the on and off of self-integrated flash lamps according to the flash lamp control instructions so as to synchronously turn on or turn off the multiple flash lamps, the terminal devices can be used as master terminal devices, and the master terminal devices and the slave terminal devices are connected through a Bluetooth ad hoc network to form a local area network capable of data interaction. It should be noted that the master terminal device and the slave terminal device may be switched to each other according to different geographic locations, the terminal device establishing communication connection with the control device is used as the master terminal device, and the flash control instruction sent by the control device is distributed to the slave terminal device connected to the master terminal device, so as to control the flash of the device in the entire lan area.
And the instruction processing module 103 is used for analyzing the flash lamp control instruction and controlling the flash lamp to be turned on or turned off according to an analysis result.
In one embodiment, the flash control command includes a field of times that the flash is turned on and off by parsing the flash command to obtain the times that the flash is turned on and off. And if the time of the terminal equipment is not consistent with the system calibration time, correspondingly adjusting the internal time to keep the time of each terminal equipment consistent, and controlling the flash lamp to be turned on and off by the terminal equipment according to the flash lamp turning-on and turning-off time obtained by analysis. In another embodiment, the flash control instruction may further only include a flash on command and a flash off command, that is, the terminal device directly turns on the flash after interpreting the flash on command, and directly turns off the flash after interpreting the flash off command.
In one embodiment, the flash control instruction includes a flash type and a flash start time of the flash, and the flash is controlled according to the flash type and the flash start time of the flash after the flash type and the flash start time of the flash are obtained through analysis. In another embodiment, the flash control command comprises the turn-on time of the flash and the song identification, and accordingly, the flash is controlled according to the turn-on time of the flash and the song identification.
According to the above, after the Bluetooth communication connection with the control equipment is established, the flash lamp control instruction sent by the control equipment is received, the flash lamp control instruction is sent to the slave terminal equipment, the flash lamp control instruction is analyzed simultaneously, and the flash lamp is controlled to be turned on and turned off according to the analysis result, so that the flash lamp does not need to be turned on and turned off manually by a user, the flash lamp can be turned on and turned off automatically according to the control instruction, the condition that the resource consumption is too large due to the fact that the flash lamp is turned on all the time is avoided, and meanwhile the flash effect of the flash lamp is remarkably improved due to the fact that the flash lamp is turned on and off by the plurality.
In a possible embodiment, the instruction transceiver module 102 is specifically configured to:
and receiving a flash lamp control instruction sent by the control equipment in real time.
In a possible embodiment, the instruction processing module 103 is specifically configured to:
analyzing the flash lamp control instruction, and determining the turn-on and turn-off time of the flash lamp according to the time field in the analysis result;
and controlling the flash lamp to be turned on and off according to the turn-on and turn-off time.
In a possible embodiment, the instruction processing module 103 is specifically configured to:
analyzing the flash lamp control instruction, and determining the flash type and the flash starting time of the flash lamp according to the type field and the time field in the analysis result; and controlling the flash lamp to be turned on and off according to the flash type and the flash turning-on time.
In a possible embodiment, the instruction processing module 103 is specifically configured to:
analyzing the flash lamp control instruction, and determining the starting time of the flash lamp and the song identification according to the time field and the identification field in the analysis result;
inquiring a database according to the song identification to obtain the flash lamp flicker frequency corresponding to the song identification;
and controlling the flash lamp to be turned on and off according to the turn-on time and the flicker frequency.
In a possible embodiment, the communication connection module 101 is further configured to:
before the establishing and controlling of the Bluetooth communication connection of the equipment, starting a flash control mode.
In a possible embodiment, the device further includes a recording module 104, configured to record the turn-on and turn-off time of the flash after the flash is controlled to be turned on and turned off according to the analysis result, perform audio recognition after the flash is turned on, and correspondingly store the recognition result and the turn-on and turn-off time of the flash.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 7 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 7, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, bluetooth module 213, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The flash lamp control device of the terminal device and the terminal device provided in the above embodiments may execute the flash lamp control method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a flash control method of a terminal device provided in any embodiment of the present invention.
Embodiments of the present application also provide a storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform a flash control method, including:
establishing a Bluetooth communication connection with a control device;
receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to slave terminal equipment;
and analyzing the flash lamp control instruction, and controlling the flash lamp to be turned on or turned off according to an analysis result.
In one possible embodiment, the receiving the flash control instruction sent by the control device includes:
and receiving a flash lamp control instruction sent by the control equipment in real time.
In a possible embodiment, the parsing the flash lamp control command, and controlling the flash lamp to be turned on and off according to the parsed result includes:
analyzing the flash lamp control instruction, and determining the turn-on and turn-off time of the flash lamp according to the time field in the analysis result;
and controlling the flash lamp to be turned on and off according to the turn-on and turn-off time.
In a possible embodiment, the parsing the flash lamp control command, and controlling the flash lamp to be turned on and off according to the parsed result includes:
analyzing the flash lamp control instruction, and determining the flash type and the flash starting time of the flash lamp according to the type field and the time field in the analysis result; and controlling the flash lamp to be turned on and off according to the flash type and the flash turning-on time.
In a possible embodiment, the parsing the flash lamp control command, and controlling the flash lamp to be turned on and off according to the parsed result includes:
analyzing the flash lamp control instruction, and determining the starting time of the flash lamp and the song identification according to the time field and the identification field in the analysis result;
inquiring a database according to the song identification to obtain the flash lamp flicker frequency corresponding to the song identification;
and controlling the flash lamp to be turned on and off according to the turn-on time and the flicker frequency.
In a possible embodiment, before the establishing and controlling of the bluetooth communication connection of the device, the method further includes:
and starting a flash control mode.
In a possible embodiment, after the controlling the turning on and off of the flash lamp according to the analysis result, the method further includes:
recording the opening and closing time of the flash lamp, carrying out audio identification after the flash lamp is opened, and correspondingly storing the identification result and the opening and closing time of the flash lamp.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the flash control method described above, and may also perform related operations in the flash control method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (7)
1. The flash lamp control method is applied to a main terminal device and comprises the following steps:
establishing a Bluetooth communication connection with a control device;
receiving a flash lamp control instruction sent by the control equipment, and sending the flash lamp control instruction to a slave terminal equipment, wherein the slave terminal equipment is connected with the master terminal equipment through a Bluetooth ad hoc network to form a local data interaction network, the master terminal equipment is a terminal equipment which is in communication connection with the control equipment, and the master terminal equipment and the slave terminal equipment are mutually converted according to different geographic positions;
and analyzing the flash lamp control instruction, and controlling the on and off of the flash lamp according to the flash lamp on and off time obtained by analysis, wherein the time is system calibration time, and the master terminal device and the slave terminal device uniformly use the system calibration time.
2. The method of claim 1, wherein the receiving the flash control instruction sent by the control device comprises:
and receiving a flash lamp control instruction sent by the control equipment in real time.
3. The method according to any of claims 1-2, further comprising, prior to the establishing and controlling a bluetooth communication connection of a device:
and starting a flash control mode.
4. The method according to any one of claims 1-2, further comprising, after the controlling the turning on and off of the flash according to the parsed flash turning on and off time:
recording the opening and closing time of the flash lamp, carrying out audio identification after the flash lamp is opened, and correspondingly storing the identification result and the opening and closing time of the flash lamp.
5. Flash control device, characterized in that said device is integrated in a main terminal equipment, comprising:
the communication connection module is used for establishing Bluetooth communication connection with the control equipment;
the command transceiver module is used for receiving a flash lamp control command sent by the control equipment and sending the flash lamp control command to the slave terminal equipment, wherein the slave terminal equipment is connected with the master terminal equipment through a Bluetooth ad hoc network to form a local data interaction network, the master terminal equipment is terminal equipment which is in communication connection with the control equipment, and the master terminal equipment and the slave terminal equipment are mutually converted according to different geographic positions;
and the instruction processing module is used for analyzing the flash lamp control instruction and controlling the flash lamp to be turned on and turned off according to the flash lamp turning-on and turning-off time obtained through analysis, wherein the time is system calibration time, and the master terminal device and the slave terminal device uniformly use the system calibration time.
6. A terminal device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the flash control method according to any of claims 1-4 when executing the computer program.
7. A storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are for performing the flash control method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810353506.9A CN108566706B (en) | 2018-04-19 | 2018-04-19 | Flash lamp control method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810353506.9A CN108566706B (en) | 2018-04-19 | 2018-04-19 | Flash lamp control method and device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108566706A CN108566706A (en) | 2018-09-21 |
CN108566706B true CN108566706B (en) | 2020-04-07 |
Family
ID=63535936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810353506.9A Expired - Fee Related CN108566706B (en) | 2018-04-19 | 2018-04-19 | Flash lamp control method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108566706B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109511207B (en) * | 2019-01-09 | 2024-07-02 | 苏州蓝石新动力有限公司 | Lamplight synchronization method and system |
CN110267410B (en) * | 2019-05-09 | 2021-07-02 | 广州启上设计有限公司 | Stroboscopic control method and system based on desk lamp and storage medium |
CN112040147B (en) * | 2020-09-11 | 2023-06-02 | 北京奇艺世纪科技有限公司 | Lamplight flicker control method, device, equipment and system |
CN113660429B (en) * | 2021-07-07 | 2023-05-19 | 深圳市劲码科技有限公司 | External Bluetooth flash lamp control method based on Bluetooth HID protocol |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0843892A (en) * | 1994-07-29 | 1996-02-16 | Olympus Optical Co Ltd | Master flash device, slave flash device and wireless flash photographing system |
CN101377606A (en) * | 2007-08-28 | 2009-03-04 | 奥林巴斯映像株式会社 | Commander flash apparatus and slave flash apparatus |
CN106941585A (en) * | 2017-05-15 | 2017-07-11 | 上海与德科技有限公司 | A kind of control device of flash lamp, control method and mobile terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4661035B2 (en) * | 2003-08-08 | 2011-03-30 | 株式会社ニコン | Camera system and camera |
CN203671308U (en) * | 2013-12-06 | 2014-06-25 | 张坚兴 | LED net lamp and intelligent control system thereof |
CN105120097A (en) * | 2015-08-31 | 2015-12-02 | 喻应芝 | Device for controlling phone torches of concert field audiences, and method adopting same |
CN105472267B (en) * | 2015-12-25 | 2019-07-12 | 中科创达软件股份有限公司 | A kind of photographic method, apparatus and system |
CN205945972U (en) * | 2016-08-16 | 2017-02-08 | 深圳市神牛摄影器材有限公司 | Wireless remote control flash light and control system thereof |
CN106332378B (en) * | 2016-11-26 | 2018-12-25 | 湖南人文科技学院 | Intelligent LED running lamp and its control method based on music rhythm identification |
-
2018
- 2018-04-19 CN CN201810353506.9A patent/CN108566706B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0843892A (en) * | 1994-07-29 | 1996-02-16 | Olympus Optical Co Ltd | Master flash device, slave flash device and wireless flash photographing system |
CN101377606A (en) * | 2007-08-28 | 2009-03-04 | 奥林巴斯映像株式会社 | Commander flash apparatus and slave flash apparatus |
CN106941585A (en) * | 2017-05-15 | 2017-07-11 | 上海与德科技有限公司 | A kind of control device of flash lamp, control method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108566706A (en) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108566706B (en) | Flash lamp control method and device, terminal equipment and storage medium | |
US9525736B2 (en) | Content continuation system and method | |
CN107889092B (en) | Bluetooth device communication control method, device, terminal device and storage medium | |
CN108810749B (en) | Player control method, device, terminal equipment and storage medium | |
CN108024128B (en) | Control method and device for Bluetooth music playing, terminal equipment and storage medium | |
CN106254903B (en) | A kind of synchronous broadcast method of multi-medium data, apparatus and system | |
CN105430424A (en) | Video live broadcast method, device and system | |
CN111033614B (en) | Volume adjusting method and device, mobile terminal and storage medium | |
CN109274407B (en) | Data transmission method, device, electronic equipment and storage medium | |
CN106911956B (en) | Audio data playing method and device and mobile terminal | |
WO2022135527A1 (en) | Video recording method and electronic device | |
CN106713653B (en) | Audio and video playing control method and device and terminal | |
CN108737648B (en) | Music volume self-adaptive adjusting method, device, storage medium and terminal | |
WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
CN112689172B (en) | Program playing method and device, set top box and storage medium | |
CN112165645A (en) | Control method of playback device, and computer storage medium | |
CN107483734B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
WO2018161788A1 (en) | Multimedia data sharing method and device | |
CN106506646B (en) | Control method and device of playing equipment, mobile terminal and playing system | |
CN107506168B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN107071655B (en) | Method and device for configuring stereo output, audio playing equipment and mobile terminal | |
CN105682010B (en) | Bluetooth connection control method, device and playback equipment in audio frequency broadcast system | |
CN113518297A (en) | Sound box interaction method, device and system and sound box | |
CN112188362A (en) | Playing method, device and computer readable storage medium | |
WO2023045687A1 (en) | Screen projection method, device and system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200407 |
|
CF01 | Termination of patent right due to non-payment of annual fee |