Synchronous control method and device of wireless external flash lamp, equipment and medium

By establishing low-power Bluetooth communication between the mobile phone and the external flash device, sending trigger synchronization instructions and calculating the target trigger time, the flash unit is controlled to output pulse light and adjustable power flash, which solves the problems of exposure error and insufficient brightness in the existing technology and improves the shooting quality and lighting effect.

CN120686516APending Publication Date: 2025-09-23ZHONGSHAN YANGGUO ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510881829.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

The existing technology is difficult to use in different shooting modes, shutter structures or communication states. There is an error between the trigger timing and the flash output, which leads to exposure offset or insufficient brightness.

Method used

By establishing a communication connection between the mobile phone and the external flash device based on low-power Bluetooth BLE, trigger synchronization instructions are sent, and the target trigger time is calculated through the exposure prediction model, the flash unit is controlled to output pulse light and adjustable power flash, realizing multi-stage flash output control.

Benefits of technology

It improves shooting quality and lighting effects, reduces exposure errors, and enhances the flexibility of the shooting system and user convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120686516A_ABST
    Figure CN120686516A_ABST
Patent Text Reader

Abstract

The invention relates to a synchronous control method and device for a wireless external flash lamp, equipment and a medium, and the method comprises the steps: building communication connection between a mobile phone end and an external flash lamp device based on Bluetooth low energy (BLE), so as to send a triggering synchronization instruction to the external flash lamp device through the communication connection; based on the receiving timestamp of the trigger synchronization instruction and a preset exposure prediction model, calculating corresponding target trigger time, and storing the trigger synchronization instruction and the corresponding target trigger time into a time sequence cache queue; traversing the time sequence buffer queue, and controlling the flash unit to output a first section of pulse light when the current system time and the target trigger time meet a target trigger time condition; and according to the illumination mode of the mobile phone terminal, controlling the flash unit to output at least one section of additional power-adjustable flash after the first section of pulse light so as to realize multi-section flash output control. The method has the effect of improving the shooting quality of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of photography auxiliary equipment control, and in particular to a synchronous control method, apparatus, device and medium for a wireless external flash. Background Art

[0002] With the widespread adoption of smartphones in the imaging field, users are increasingly demanding fill light quality, flash timing control accuracy, and multi-scene lighting requirements. Traditional methods that rely on built-in flashes or fixed delay control are no longer able to meet the demands for high-quality image capture. To achieve fill light control with a higher dynamic range, some smart devices are beginning to use wireless external flashes for auxiliary shooting control.

[0003] Existing wireless flash control methods primarily establish a communication connection between a mobile phone and an external flash via Bluetooth or Wi-Fi. When the phone's camera triggers the shutter, a control signal is sent to the flash to initiate flash output via a delay compensation mechanism. However, these solutions typically employ fixed delay strategies or control based on single-shot compensation parameters. This results in errors between trigger timing and flash output depending on the shooting mode, shutter structure, or communication state, easily causing exposure offset or insufficient brightness.

[0004] The above-mentioned existing technical solutions have the following defects: the existing wireless flash cannot dynamically adapt to the flash timing characteristics and multi-stage lighting control requirements under different shooting scenes, so there is room for improvement. Summary of the Invention

[0005] In order to improve the shooting quality of the device, the present application provides a synchronous control method, device, equipment and medium for a wireless external flash.

[0006] The above-mentioned invention objective of this application is achieved through the following technical solutions: A synchronous control method for a wireless external flash, the method comprising: Establishing a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection; Calculating a corresponding target trigger time based on a reception timestamp of the trigger synchronization instruction and a preset exposure prediction model, and storing the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue; Traversing the timing cache queue, when the target trigger time condition is met between the current system time and the target trigger time, controlling the flash unit to output a first pulse light; According to the illumination mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, so as to realize multi-stage flash output control.

[0007] By adopting the above technical solution, a communication connection is established between a mobile phone and an external flash device based on Bluetooth Low Energy (BLE) and a trigger synchronization command is sent. This enables stable remote communication between the mobile phone and the flash device, avoiding the inconvenience and limitations of physical wiring, thereby improving the deployment flexibility and user convenience of the overall shooting system. By calculating the target trigger time based on the received timestamp of the trigger synchronization command and a preset exposure prediction model and writing it into a timing buffer queue, the flash output timing can be more closely aligned with the actual shutter action, thereby reducing exposure errors caused by Bluetooth communication delays and improving image quality. By traversing the timing buffer queue and outputting the first pulse light when the system time meets the target trigger time condition, the flash output timing can be precisely synchronized with the actual imaging process, thereby improving exposure control accuracy and image stability. By controlling the output of at least one additional flash with adjustable power according to the lighting mode of the mobile phone, the fill light intensity and brightness level requirements in different shooting scenarios can be met, thereby improving the user's control over the lighting effect and enhancing the visual expression of the image.

[0008] In one example, the present application may be further configured as follows: constructing the exposure prediction model specifically includes: Record the correspondence between multiple historical trigger synchronization instructions and the actual executed flash output time, and construct a time difference sequence; Extracting the latest continuous samples from the time difference sequence to construct a sliding window, and dynamically setting corresponding window parameters; When a new trigger synchronization instruction is received, weighted linear regression is performed on the historical samples in the current sliding window to establish a time series fitting model based on the historical time difference trend to generate the exposure prediction model.

[0009] By adopting the above technical solution, a time difference sequence is constructed by recording the correspondence between multiple historical trigger synchronization instructions and the actual executed flash output time, and a weighted linear regression fitting is performed within a sliding window to form an exposure prediction model. Based on historical data, the optimal trigger time of the system under different communication delay and response conditions can be dynamically estimated, thereby improving the adaptability of trigger prediction and the accuracy of timing control, and avoiding the fixed deviation problem caused by relying on static delay compensation.

[0010] In one example, the present application may be further configured as follows: extracting the latest continuous samples from the time difference sequence to construct a sliding window, and dynamically setting corresponding window parameters, specifically including: Obtaining a shooting mode of the mobile phone, and if the shooting mode is a continuous shooting mode, expanding the corresponding window capacity to improve fitting stability; and if the shooting mode is a normal shooting mode, reducing the window capacity to enhance timing sensitivity; A first-order difference value sequence is calculated for a plurality of consecutive samples in the time difference sequence, and a time difference change trend is determined based on the sign change and numerical distribution of the first-order difference values, and then the weight distribution of the historical samples is adjusted based on the time difference change trend.

[0011] By adopting the above technical solution, by obtaining the shooting mode of the mobile phone to dynamically adjust the sliding window capacity and adjusting the sample weight distribution according to the changing trend of the first-order difference value analysis of the time difference series, the exposure prediction model can automatically adapt to different data update frequencies and response sensitivities in continuous shooting and normal shooting modes, thereby improving the model's adaptability and robustness to system response changes, and enhancing the stability and practicality of target trigger time estimation.

[0012] In one example, the present application may be further configured as follows: determining the time difference change trend based on the sign change and the numerical distribution of the first-order difference value, and then adjusting the weight distribution of historical samples based on the time difference change trend, specifically including: When the time difference value change trend is an increasing trend, a higher weight is assigned to the samples closer to the latest moment in the window to adapt to the increase in system response delay; When the time difference value change trend is a decreasing trend, the window length is shortened and the weight of early samples is increased to improve the prediction stability; When the time difference change trend is a jitter trend, the overall smoothness weight of all samples in the sliding window is increased and the window capacity is expanded to enhance the robustness of the model.

[0013] By adopting the above technical solution, by increasing the weight of new samples when the time difference trend is increasing, enhancing the weight of early samples and shrinking the window when it is decreasing, and performing weight smoothing and window expansion under jitter state, the contribution distribution of regression samples can be flexibly adjusted according to different delay fluctuation states during model training, thereby improving the fitting accuracy and prediction reliability of the model under complex conditions, and effectively suppressing the interference of system delay instability on flash control.

[0014] In one example, the present application may be further configured as follows: when the target trigger time condition is satisfied between the current system time and the target trigger time, controlling the flash unit to output a first pulse light specifically includes: generating a minimum tolerance value according to the execution delay of the external flash device and the minimum transmission interval of Bluetooth communication, and generating a maximum tolerance value according to the current shooting mode of the mobile phone; The current system time is obtained. When the absolute value of the difference between the current system time and the target trigger time is between the minimum tolerance value and the maximum tolerance value, it is determined that the target trigger time condition is met, and the flash unit is controlled to output the first pulse light.

[0015] By adopting the above technical solution, by generating a minimum tolerance value based on the execution delay of the external flash device and the minimum transmission interval of Bluetooth communication and generating a maximum tolerance value based on the shooting mode of the mobile phone, it is possible to construct a dynamic time tolerance interval that adapts to different response conditions and shooting scenes, thereby providing a reasonable fault tolerance range for target trigger timing judgment to ensure the stability and robustness of the trigger; by determining whether the current system time is within this tolerance interval to decide whether to output the first pulse light, it is possible to effectively avoid exposure offset problems caused by false triggering or triggering too early or too late, thereby improving the precise control effect of flash output.

[0016] In one example, the present application may be further configured as follows: controlling the flash unit to output at least one additional flash with adjustable power after the first pulse light according to the illumination mode of the mobile phone, specifically including: Based on the preset lighting mode of the mobile phone, set a corresponding power level and duration for each additional flash, and send the corresponding multiple configuration parameters to the external flash device; Based on the multiple configuration parameters, the external flash device sequentially determines whether output conditions for additional flash segments are met in a configuration order; When the multi-segment configuration parameters meet the conditions of the interval time between segments, the total duration not exceeding the limit, the power value being legal, etc., the output operation of the additional flash segments is performed in sequence.

[0017] By adopting the above technical solution, by configuring the power level and duration of multiple additional flashes based on the preset lighting mode on the mobile phone and sending them to the external flash device, it is possible to provide flexible fill light parameter configuration capabilities for the lighting needs of complex scenes, thereby enhancing the user's control over the shooting style and picture atmosphere; by judging the output conditions of each flash in turn and executing the output operation when the conditions such as the inter-segment interval time, the total duration is within the limit, and the power value is legal are met, it is possible to ensure that the output behavior of each flash segment has good continuity, safety and legality, thereby effectively improving the stable execution effect of multi-segment flash and the overall exposure control accuracy.

[0018] The second object of the present invention is achieved through the following technical solutions: A synchronous control device for a wireless external flash, the device comprising: A communication establishment module is used to establish a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection; a trigger time calculation module, configured to calculate a corresponding target trigger time based on a reception timestamp of the trigger synchronization instruction and a preset exposure prediction model, and store the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue; A trigger judgment module is used to traverse the timing cache queue and control the flash unit to output the first pulse light when the target trigger time condition is met between the current system time and the target trigger time; The multi-stage flash control module is used to control the flash unit to output at least one additional adjustable power flash after the first pulse light according to the lighting mode of the mobile phone end, so as to realize multi-stage flash output control.

[0019] By adopting the above technical solution, a communication connection is established between a mobile phone and an external flash device based on Bluetooth Low Energy (BLE) and a trigger synchronization command is sent. This enables stable remote communication between the mobile phone and the flash device, avoiding the inconvenience and limitations of physical wiring, thereby improving the deployment flexibility and user convenience of the overall shooting system. By calculating the target trigger time based on the received timestamp of the trigger synchronization command and a preset exposure prediction model and writing it into a timing buffer queue, the flash output timing can be more closely aligned with the actual shutter action, thereby reducing exposure errors caused by Bluetooth communication delays and improving image quality. By traversing the timing buffer queue and outputting the first pulse light when the system time meets the target trigger time condition, the flash output timing can be precisely synchronized with the actual imaging process, thereby improving exposure control accuracy and image stability. By controlling the output of at least one additional flash with adjustable power according to the lighting mode of the mobile phone, the fill light intensity and brightness level requirements in different shooting scenarios can be met, thereby improving the user's control over the lighting effect and enhancing the visual expression of the image.

[0020] The third objective of this application is achieved through the following technical solutions: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned method for synchronously controlling a wireless external flash are implemented.

[0021] The fourth objective of this application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for synchronously controlling a wireless external flash.

[0022] In summary, this application has the following beneficial technical effects: 1. By establishing a communication connection and sending trigger synchronization commands between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), stable remote communication between the mobile phone and the flash device can be achieved, avoiding the inconvenience and limitations of physical wiring, thereby improving the deployment flexibility and user convenience of the overall shooting system. By calculating the target trigger time based on the received timestamp of the trigger synchronization command and a preset exposure prediction model and writing it into the timing cache queue, the flash output timing can be more closely aligned with the actual shutter action, thereby reducing exposure errors caused by Bluetooth communication delays and improving image quality. By traversing the timing cache queue and outputting the first pulse light when the system time meets the target trigger time condition, the flash output timing can be precisely synchronized with the actual imaging process, thereby improving exposure control accuracy and image stability. By controlling the output of at least one additional flash with adjustable power according to the lighting mode of the mobile phone, the fill light intensity and brightness level requirements in different shooting scenarios can be met, thereby improving the user's control over the lighting effect and enhancing the visual expression of the image. 2. By recording the correspondence between multiple historical trigger synchronization commands and the actual executed flash output times, a time difference sequence is constructed and weighted linear regression fitting is performed within a sliding window to form an exposure prediction model. This model can dynamically estimate the optimal trigger time of the system under different communication delay and response conditions based on historical data, thereby improving the adaptability of trigger prediction and the accuracy of timing control, and avoiding the fixed deviation problem caused by relying on static delay compensation. 3. By obtaining the shooting mode of the mobile phone to dynamically adjust the sliding window capacity and adjusting the sample weight distribution according to the changing trend of the first-order difference value analysis of the time difference series, the exposure prediction model can automatically adapt to the different data update frequencies and response sensitivities in continuous shooting and normal shooting modes, thereby improving the model's adaptability and robustness to system response changes and enhancing the stability and practicality of target trigger time estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a flow chart of a synchronous control method for a wireless external flash in one embodiment of the present application; Figure 2 This is a flowchart for implementing step S20 in the synchronous control method of a wireless external flash in one embodiment of the present application; Figure 3 This is a flowchart for implementing step S22 in the synchronous control method of a wireless external flash in one embodiment of the present application; Figure 4 This is a flowchart for implementing step S222 in the synchronous control method of a wireless external flash in one embodiment of the present application; Figure 5 This is a flowchart for implementing step S30 in the synchronous control method of a wireless external flash in one embodiment of the present application; Figure 6 This is a flowchart for implementing step S40 in the synchronous control method of a wireless external flash in one embodiment of the present application; Figure 7 This is a principle block diagram of a synchronous control device for a wireless external flashlight in one embodiment of the present application; Figure 8 It is a schematic diagram of a device in one embodiment of the present application. DETAILED DESCRIPTION

[0024] The present application is further described in detail below with reference to the accompanying drawings.

[0025] In one embodiment, if Figure 1 As shown, the present application discloses a synchronous control method for a wireless external flash, which specifically includes the following steps: S10: Establishing a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection.

[0026] Specifically, by calling the preset Bluetooth communication module interface on the mobile phone, the list of currently available BLE devices is obtained. After detecting the BLE identification signal broadcast by the external flash device, a pairing request is automatically initiated to establish a data communication channel. After the pairing is successful, the initialization configuration command in the communication instruction set is called to synchronize the current shooting scene parameters and device status parameters to the external flash device. At the same time, the BLE session identifier of the device is cached for subsequent instruction issuance. When the shooting instruction is about to be issued, the event node that the shutter is about to be triggered is captured by calling the shooting action monitoring interface in the camera application, and the trigger synchronization instruction generation function is called at the preset guidance time corresponding to the event node. The generated trigger synchronization instruction is encoded into the BLE small data packet format and sent to the target external flash device to complete the synchronization action before taking the picture.

[0027] S20: Calculate the corresponding target trigger time based on the receiving timestamp of the trigger synchronization instruction and the preset exposure prediction model, and store the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue.

[0028] Specifically, the local high-precision clock time recorded when the flash device receives the instruction unpacked and parsed by the receiving module is used as a receiving timestamp. This receiving timestamp is then input into the prediction calculation logic within the exposure control module as a time reference. A matching calculation is performed with a pre-initialized exposure prediction model to obtain a target trigger time value recommended under the current environment and delay conditions. The calculation result is bound to the original trigger synchronization instruction to generate a set of trigger scheduling entries. The buffer scheduling management module is then called to write these scheduling entries into the currently active timing cache queue. During the writing process, the entries are automatically sorted according to the target trigger time value so that the subsequent trigger judgment module can perform in-order traversal and condition judgment.

[0029] S30: Traversing the timing cache queue, when the target trigger time condition is met between the current system time and the target trigger time, controlling the flash unit to output the first pulse light.

[0030] Specifically, the control module periodically activates the current system time update function and calculates the time difference with the first untriggered scheduling entry in the timing cache queue. If the time difference falls within the set allowable trigger range, the pulse output trigger logic control process is immediately called, and the corresponding flash start command is sent to the light control interface to trigger the first pulse light output action. After the pulse light output is completed, the scheduling entry is marked as executed and removed from the cache queue. At the same time, the trigger time of this execution is recorded and compared with the original target trigger time for subsequent error analysis and strategy optimization. If the current system time does not meet the target trigger condition, polling continues until it is met or the scheduling entry times out and becomes invalid.

[0031] S40: According to the illumination mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, so as to realize multi-stage flash output control.

[0032] Specifically, by reading the lighting mode parameters preset in the mobile phone user configuration or the system-recommended shooting mode, the additional flash segments configured for the mode and the corresponding power levels and duration values ​​are extracted, and the multi-segment flash control process is triggered after the first segment of pulse light output is completed. By calling the parameter parsing module, the lighting mode parameters are parsed into a sequential control plan table and loaded into the flash output control logic. It is determined in turn whether each segment of flash is enabled and the flash output behavior of the additional segment is triggered according to conditions such as the enable flag, power threshold, and minimum interval requirements between segments. After the output of each segment of flash is completed, the output status and timestamp are written into the execution log for subsequent adjustment and feedback optimization.

[0033] In one embodiment, if Figure 2 As shown, in step S20, that is, the construction of the exposure prediction model, specifically includes: S21: Record the corresponding relationship between multiple historical trigger synchronization instructions and the actually executed flash output time, and construct a time difference sequence.

[0034] Specifically, each time the flash trigger control process is executed, the currently executed target trigger time is collected and compared with the high-precision timestamp of the actual trigger moment, the trigger delay difference is calculated and the difference is bound to the current synchronization instruction number or identification information, and recorded in chronological order into the delay sample data set maintained by the flash control module. Each time new data is added, the historical record length is automatically maintained to not exceed the preset maximum value. When the upper limit is exceeded, the earliest sample data is automatically discarded, thereby forming a continuously updated time difference sequence for subsequent timing fitting and model adjustment.

[0035] S22: Extract the latest continuous samples from the time difference sequence to construct a sliding window, and dynamically set the corresponding window parameters.

[0036] Specifically, the latest several difference samples arranged in chronological order are extracted from the time difference sequence as the input source of the current sliding window data, and the initial value of the current window capacity is set according to the window control parameters. At the same time, the window capacity size is automatically adjusted according to information such as the shooting mode, camera frame rate or continuous shooting frequency feedback from the mobile phone to match the balance requirements between prediction accuracy and stability in different scenarios. The current window data and its related control parameters are passed as input to the fitting function interface in the exposure prediction module for target trigger time calculation.

[0037] S23: When a new trigger synchronization instruction is received, weighted linear regression is performed on the historical samples in the current sliding window to establish a time series fitting model based on the historical time difference trend and generate an exposure prediction model.

[0038] Specifically, when a new trigger synchronization instruction arrives, all difference samples in the current sliding window are immediately obtained, and a corresponding time position weight coefficient is assigned to each sample. The weighted least squares method is used to construct a regression solution process to fit the time difference change trend. Finally, the delay estimation formula parameters under the current conditions are solved and a timing fitting model structure is generated. The structure is marked as a valid exposure prediction model in the current period and cached in the model usage queue for the prediction calculation of this trigger time and the subsequent error correction process.

[0039] In one embodiment, if Figure 3 As shown, in step S22, the latest continuous samples are extracted from the time difference sequence to construct a sliding window, and the corresponding window parameters are dynamically set, specifically including: S221: Obtain the shooting mode of the mobile phone. When the shooting mode is continuous shooting mode, expand the corresponding window capacity to improve fitting stability. When the shooting mode is normal shooting mode, reduce the window capacity to enhance timing sensitivity.

[0040] Specifically, the shooting setting parameter reading function in the mobile phone application is called through the Bluetooth communication interface to parse the current shooting mode field value. When it is detected that the field value is the continuous shooting mode flag, the sliding window capacity parameter is increased from the default value to a large sample capacity to ensure the stability of the prediction under fast and continuous trigger conditions. When it is detected that the field value is the normal photo mode, the sliding window capacity is lowered to a smaller number of samples to improve the response accuracy to a single action. At the same time, the adjustment result is immediately synchronized to the subsequent regression prediction function call for the window splitting operation in the model building logic.

[0041] S222: Calculate the first-order difference value sequence for multiple consecutive samples in the time difference sequence, and determine the time difference change trend based on the sign change and numerical distribution of the first-order difference value, and then adjust the weight distribution of the historical samples based on the time difference change trend.

[0042] Specifically, the time difference samples currently collected in the sliding window are traversed, and the difference increments between adjacent samples are calculated in turn to form a first-order difference value sequence. The positive and negative sign distribution and the average fluctuation amplitude are statistically analyzed in the difference sequence. When the sign change shows a continuous increasing or decreasing trend, it is judged to have a trend change. When the sign changes frequently and the amplitude is small, it is judged to be a jitter trend. According to the trend results, the weight allocation strategy is dynamically called to redistribute the sample weights at different positions in the sample set and reconstruct the weighting factor sequence to update the input data weight configuration during subsequent regression fitting.

[0043] In one embodiment, if Figure 4 As shown, in step S222, the time difference change trend is determined based on the sign change and value distribution of the first-order difference value, and then the weight distribution of the historical samples is adjusted based on the time difference change trend, specifically including: S2221: When the time difference value changes in an increasing trend, a higher weight is assigned to samples closer to the latest moment in the window to adapt to the increasing changes in the system response delay.

[0044] Specifically, when it is identified that the first-order difference value shows an overall increasing trend and the trend continues to exceed the set threshold, the dynamic weighting strategy module is called to increase the weight of the samples near the tail of the sliding window to a high priority level to enhance the response capability to the latest sample changes, ensure that the prediction of the target trigger time is more in line with the current state under the background of the gradual increase in the current system response delay, and prevent the regression model from being dominated by early low-latency samples and affecting the final estimation deviation.

[0045] S2222: When the time difference trend is decreasing, shorten the window length and increase the weight of early samples to improve prediction stability.

[0046] Specifically, when it is detected that the first-order difference value of the time difference is continuously negative and the absolute value is steadily decreasing, the current sliding window capacity is reduced to a smaller sample number limit to reduce unnecessary high-frequency adjustments. At the same time, the weight level of the samples in the first half of the window is increased to enhance the model's dependence on historical stability delay data, thereby improving the continuity and repeatability of the predicted value in scenarios where the overall response delay of the system tends to shorten, and avoiding obvious deviations in the model due to fluctuations in a single new value.

[0047] S2223: When the time difference change trend is a jitter trend, increase the overall smoothness weight of all samples in the sliding window and expand the window capacity to enhance the robustness of the model.

[0048] Specifically, when it is judged that the first-order difference value fluctuates frequently and has a high standard deviation, the system is identified as being in an unstable state, and the model robustness improvement strategy is called. A smoothing weight function is applied to all samples in the sliding window to make their weight distribution tend to be average, reducing the sensitivity to single mutant samples. At the same time, the window capacity upper limit is expanded to accommodate more samples for regression fitting, enhancing the model's anti-interference ability in unstable input environments to maintain the controllability of the target trigger time prediction results.

[0049] In one embodiment, if Figure 5 As shown, in step S30, when the target trigger time condition is met between the current system time and the target trigger time, the flash unit is controlled to output the first pulse light, specifically including: S31: generating a minimum tolerance value according to the execution delay of the external flash device and the minimum transmission interval of Bluetooth communication, and generating a maximum tolerance value according to the current shooting mode of the mobile phone.

[0050] Specifically, by loading the preset execution delay parameter table when the external flash device is initialized, combined with the minimum transmission interval value recorded in the BLE communication configuration file, the required minimum tolerance value is calculated by executing the delay estimation function and cached in the trigger control module. At the same time, the shooting mode information in the current camera settings on the mobile phone is read through the Bluetooth communication interface. According to the synchronization accuracy requirement parameter table corresponding to different shooting modes, the corresponding maximum tolerance value is selected and input together with the minimum tolerance value as the trigger time judgment interval into the next stage trigger judgment logic for subsequent judgment on the validity of the current system time.

[0051] S32: Obtain the current system time. When the absolute value of the difference between the current system time and the target trigger time is between the minimum tolerance value and the maximum tolerance value, determine that the target trigger time condition is met, and then control the flash unit to output the first pulse light.

[0052] Specifically, the system real-time clock function is called in the timing trigger scheduling module to obtain the current system time, and the difference between this time and the target trigger time of the sorted items to be triggered in the timing cache queue is calculated and the absolute value is taken. If the calculation result is greater than or equal to the preset minimum tolerance value and less than or equal to the maximum tolerance value, it is determined that the item meets the current trigger window requirement, and then the first pulse light output command in the flash control function is activated and immediately sent to the flash control unit driver module. At the same time, the actual trigger time is recorded for subsequent error evaluation and fitting calibration process, and the item is marked as executed from the cache queue to avoid repeated triggering.

[0053] In one embodiment, if Figure 6 As shown, in step S40, that is, according to the lighting mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, specifically including: S41: Based on the preset lighting mode of the mobile phone, a corresponding power level and duration are set for each additional flash, and the corresponding multi-segment configuration parameters are sent to the external flash device.

[0054] Specifically, the camera application obtains the lighting mode configuration selected for the current shooting scene during the user setting stage, reads parameters such as the target power percentage, duration, and inter-segment delay of each segment of additional flash in the configuration, constructs a structured configuration data packet, and sends the data packet to the external flash device through the application data channel defined in the Bluetooth communication protocol. After receiving and parsing the configuration data, the device loads the configuration items of each segment into the flash output control process, providing parameter basis for subsequent inter-segment scheduling and judgment.

[0055] S42: Based on the multi-segment configuration parameters, the external flash device determines in sequence according to the configuration order whether output conditions of the additional flash segment are met.

[0056] Specifically, after the external flash device completes the first segment of pulse light output, it calls the inter-segment scheduling control logic module, reads the power level, duration, whether to enable mark and minimum waiting time condition between segments corresponding to the current segment from the stored configuration parameter list, and judges in turn whether the current segment is enabled, whether the current power state meets the output conditions, whether the previous flash has been executed and the delay meets the minimum interval time. If all the judgment conditions are met, the segment is marked as "executable" and enters the specific flash control instruction generation stage. Otherwise, the segment is skipped and the judgment loop of the next segment is entered to complete the full segment scheduling judgment.

[0057] S43: When the multi-segment configuration parameters meet the conditions of the interval time between segments, the total duration is within the limit, the power value is legal, etc., the output operation of the additional flash segments is executed in sequence.

[0058] Specifically, when the inter-segment scheduling control logic determines that the current additional flash segment meets the execution conditions, a flash control instruction containing the power level and duration parameters of the segment is immediately constructed, written into the flash control instruction buffer queue and sent to the output execution process by the control process scheduling module. During the actual output process, the segment start time is recorded and the elapsed time and power output status are monitored to see whether they meet the configuration item requirements. If an abnormality occurs during the detection, such as the power does not reach the set value or the flash is actively terminated by the user, the output process of this segment is terminated in advance and the interruption status is recorded. Otherwise, after the duration reaches the set value, the flash output of this segment is automatically turned off and the next configuration item judgment process is entered until all configuration segments are executed or the active end conditions are met.

[0059] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0060] In one embodiment, a synchronization control device for a wireless external flash is provided, and the synchronization control device for the wireless external flash corresponds to the synchronization control method for the wireless external flash in the above embodiment. Figure 7 As shown, the synchronization control device for the wireless external flash includes a communication establishment module, a trigger time calculation module, a trigger determination module, and a multi-stage flash control module. The functional modules are described in detail as follows: A communication establishment module is used to establish a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection; A trigger time calculation module is used to calculate the corresponding target trigger time based on the receiving timestamp of the trigger synchronization instruction and a preset exposure prediction model, and store the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue; The trigger judgment module is used to traverse the timing cache queue and control the flash unit to output the first pulse light when the target trigger time condition is met between the current system time and the target trigger time; The multi-stage flash control module is used to control the flash unit to output at least one additional flash with adjustable power after the first pulse light according to the lighting mode of the mobile phone end, so as to realize multi-stage flash output control.

[0061] Optionally, the trigger time calculation module specifically includes: The time difference recording submodule is used to record the correspondence between multiple historical trigger synchronization instructions and the actual executed flash output time, and construct a time difference sequence; The sliding window construction submodule is used to extract the latest continuous samples in the time difference sequence to construct a sliding window and dynamically set the corresponding window parameters; The model fitting submodule is used to perform weighted linear regression on the historical samples in the current sliding window when a new trigger synchronization instruction is received to establish a time series fitting model based on the historical time difference trend and generate an exposure prediction model.

[0062] Optionally, the sliding window construction submodule specifically includes: The mode recognition unit is used to obtain the shooting mode of the mobile phone. When the shooting mode is continuous shooting mode, the corresponding window capacity is expanded to improve fitting stability. When the shooting mode is normal shooting mode, the window capacity is reduced to enhance timing sensitivity. The trend analysis unit is used to calculate the first-order difference value sequence of multiple consecutive samples in the time difference sequence, and judge the time difference change trend based on the sign change and numerical distribution of the first-order difference value, and then adjust the weight distribution of historical samples according to the time difference change trend.

[0063] Optionally, the trend analysis unit specifically includes: The increasing trend weighting subunit is used to assign higher weights to samples closer to the latest moment in the window when the time difference change trend is increasing to adapt to the increase in system response delay; The decreasing trend compression subunit is used to shrink the window length and enhance the weight of early samples when the time difference change trend is decreasing, so as to improve the prediction stability; The jitter trend smoothing subunit is used to improve the overall smoothness weight of all samples in the sliding window and expand the window capacity to enhance the robustness of the model when the trend of the time difference change is a jitter trend.

[0064] Optionally, the trigger judgment module specifically includes: A tolerance generation submodule is used to generate a minimum tolerance value based on the execution delay of the external flash device and the minimum transmission interval of Bluetooth communication, and to generate a maximum tolerance value based on the current shooting mode of the mobile phone; The time judgment submodule is used to obtain the current system time. When the absolute value of the difference between the current system time and the target trigger time is between the minimum tolerance value and the maximum tolerance value, it is judged that the target trigger time condition is met, and then the flash unit is controlled to output the first pulse light.

[0065] Optionally, the multi-stage flash control module specifically includes: A parameter configuration submodule is used to set the corresponding power level and duration for each additional flash based on the preset lighting mode of the mobile phone, and send the corresponding multi-segment configuration parameters to the external flash device; An output condition judgment submodule is used to judge whether the output conditions of the additional flash segments are met in sequence according to the configuration order of the external flash device based on the multiple configuration parameters; The multi-segment output execution submodule is used to execute the output operation of the additional flash segments in sequence when the multi-segment configuration parameters meet the conditions such as the interval time between segments, the total duration is within the limit, and the power value is legal.

[0066] The specific definitions of the wireless external flash synchronization control device can be found in the definitions of the wireless external flash synchronization control method described above and will not be repeated here. Each module in the aforementioned wireless external flash synchronization control device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.

[0067] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for synchronously controlling a wireless external flashlight is implemented.

[0068] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed: Establishing a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE) to send a trigger synchronization instruction to the external flash device through the communication connection; Based on the receiving timestamp of the trigger synchronization instruction and the preset exposure prediction model, the corresponding target trigger time is calculated, and the trigger synchronization instruction and the corresponding target trigger time are stored in the timing cache queue; Traversing the timing cache queue, when the target trigger time condition is met between the current system time and the target trigger time, the flash unit is controlled to output the first pulse light; According to the lighting mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, so as to realize multi-stage flash output control.

[0069] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Establishing a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE) to send a trigger synchronization instruction to the external flash device through the communication connection; Based on the receiving timestamp of the trigger synchronization instruction and the preset exposure prediction model, the corresponding target trigger time is calculated, and the trigger synchronization instruction and the corresponding target trigger time are stored in the timing cache queue; Traversing the timing cache queue, when the target trigger time condition is met between the current system time and the target trigger time, the flash unit is controlled to output the first pulse light; According to the lighting mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, so as to realize multi-stage flash output control.

[0070] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments provided herein may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).

[0071] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0072] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A synchronous control method for a wireless external flash, characterized in that: The method comprises: Establishing a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection; Calculating a corresponding target trigger time based on a reception timestamp of the trigger synchronization instruction and a preset exposure prediction model, and storing the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue; Traversing the timing cache queue, when the target trigger time condition is met between the current system time and the target trigger time, controlling the flash unit to output a first pulse light; According to the illumination mode of the mobile phone, the flash unit is controlled to output at least one additional flash with adjustable power after the first pulse light, so as to realize multi-stage flash output control.

2. The synchronous control method of a wireless external flash according to claim 1, characterized in that: The construction of the exposure prediction model specifically includes: Record the correspondence between multiple historical trigger synchronization instructions and the actual executed flash output time, and construct a time difference sequence; Extracting the latest continuous samples from the time difference sequence to construct a sliding window, and dynamically setting corresponding window parameters; When a new trigger synchronization instruction is received, weighted linear regression is performed on the historical samples in the current sliding window to establish a time series fitting model based on the historical time difference trend to generate the exposure prediction model.

3. The synchronous control method of a wireless external flash according to claim 2, characterized in that: The extracting of the latest continuous samples in the time difference sequence to construct a sliding window and dynamically setting corresponding window parameters specifically includes: Obtaining a shooting mode of the mobile phone, and if the shooting mode is a continuous shooting mode, expanding the corresponding window capacity to improve fitting stability; and if the shooting mode is a normal shooting mode, reducing the window capacity to enhance timing sensitivity; A first-order difference value sequence is calculated for a plurality of consecutive samples in the time difference sequence, and a time difference change trend is determined based on the sign change and numerical distribution of the first-order difference values, and then the weight distribution of the historical samples is adjusted based on the time difference change trend.

4. The synchronous control method of a wireless external flash according to claim 3, characterized in that: The step of determining a time difference change trend based on a sign change and a numerical distribution of the first-order difference value, and then adjusting a weight distribution of historical samples based on the time difference change trend, specifically includes: When the time difference value change trend is an increasing trend, a higher weight is assigned to the samples closer to the latest moment in the window to adapt to the increase in system response delay; When the time difference value change trend is a decreasing trend, the window length is shortened and the weight of early samples is increased to improve the prediction stability; When the time difference change trend is a jitter trend, the overall smoothness weight of all samples in the sliding window is increased and the window capacity is expanded to enhance the robustness of the model.

5. The synchronous control method of a wireless external flash according to claim 1, wherein: When the target trigger time condition is met between the current system time and the target trigger time, controlling the flash unit to output the first pulse light specifically includes: generating a minimum tolerance value according to the execution delay of the external flash device and the minimum transmission interval of Bluetooth communication, and generating a maximum tolerance value according to the current shooting mode of the mobile phone; The current system time is obtained. When the absolute value of the difference between the current system time and the target trigger time is between the minimum tolerance value and the maximum tolerance value, it is determined that the target trigger time condition is met, and the flash unit is controlled to output the first pulse light.

6. The synchronous control method of a wireless external flash according to claim 1, wherein: The step of controlling the flash unit to output at least one additional flash with adjustable power after the first pulse light according to the illumination mode of the mobile phone terminal specifically includes: Based on the preset lighting mode of the mobile phone, set a corresponding power level and duration for each additional flash, and send the corresponding multiple configuration parameters to the external flash device; Based on the multiple configuration parameters, the external flash device sequentially determines whether output conditions for additional flash segments are met in a configuration order; When the multi-segment configuration parameters meet the conditions of the interval time between segments, the total duration not exceeding the limit, the power value being legal, etc., the output operation of the additional flash segments is performed in sequence.

7. A synchronous control device for a wireless external flash, characterized in that: The device comprises: A communication establishment module is used to establish a communication connection between the mobile phone and the external flash device based on Bluetooth Low Energy (BLE), so as to send a trigger synchronization instruction to the external flash device through the communication connection; a trigger time calculation module, configured to calculate a corresponding target trigger time based on a reception timestamp of the trigger synchronization instruction and a preset exposure prediction model, and store the trigger synchronization instruction and the corresponding target trigger time in a timing cache queue; A trigger judgment module is used to traverse the timing cache queue and control the flash unit to output the first pulse light when the target trigger time condition is met between the current system time and the target trigger time; The multi-stage flash control module is used to control the flash unit to output at least one additional adjustable power flash after the first pulse light according to the lighting mode of the mobile phone end, so as to realize multi-stage flash output control.

8. The synchronous control device for a wireless external flash according to claim 7, characterized in that: The trigger time calculation module specifically includes: The time difference recording submodule is used to record the correspondence between multiple historical trigger synchronization instructions and the actual executed flash output time, and construct a time difference sequence; A sliding window construction submodule is used to extract the latest continuous samples in the time difference sequence to construct a sliding window and dynamically set corresponding window parameters; The model fitting submodule is used to perform weighted linear regression on the historical samples in the current sliding window when a new trigger synchronization instruction is received, so as to establish a time series fitting model based on the historical time difference trend and generate the exposure prediction model.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the synchronous control method of the wireless external flashlight according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the synchronous control method of the wireless external flashlight according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Audio-based lighting equipment synchronous control method and system, terminal and medium

    CN121487082A