Shutter release device supporting replaceable bluetooth hid input device and control method thereof
By using adaptive matching technology to dynamically discover HID service and report features, the problem of camera equipment being incompatible with remote controls from different brands is solved, realizing the universality and flexibility of the shutter release device, and supporting automatic button learning and recognition for remote controls from multiple brands.
Patent Information
- Application Number
- CN202611463594.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-20
AI Technical Summary
Existing camera equipment lacks universality and is incompatible with Bluetooth HID remote controls of different brands and models, making it difficult to replace the original remote control with a compatible shutter release device if it is lost or damaged.
A shutter release device supporting replaceable Bluetooth HID input devices was designed. Through adaptive matching technology, HID service and report features are dynamically discovered. Based on multiple physical button operations, button recognition data is generated, decoupling the physical coding layer and control logic layer of the remote control, and achieving compatibility with unknown HID input differences.
It enables automatic button learning and recognition when switching to other brands or models of remote controls, ensuring the universality and flexibility of the shutter release device and reducing the reliance on hard-coded data formats from specific manufacturers.
Smart Images

Figure CN123145481A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of photographic auxiliary equipment technology, specifically to a shutter release device and its control method that supports replaceable Bluetooth HID input devices. Background Technology
[0002] Instant cameras, hybrid instant cameras, and disposable film cameras typically lack a shutter release interface, supporting only manual pressing of the physical shutter. Mechanical film cameras and some digital cameras usually lack an electronic shutter release interface, featuring only a mechanical one. A mechanical shutter release cable merely extends the shutter button; manually pressing the physical button on the cable pushes a steel wire, which in turn moves a steel pin at the cable's end to trigger the camera shutter. For wireless remote control of these cameras, a motor-driven independent shutter release mechanism is required. This allows the motor to drive a rocker arm to directly press the physical shutter button, or the motor to push the shutter release cable's steel pin, which then triggers the camera's physical shutter.
[0003] There are already many commercially available remote controls that conform to the Bluetooth Low Energy (HID) specification (HID over GATT protocol low-power Bluetooth HID input devices). These remote controls are mainly used to connect to mobile phones, tablets, or computers to send photo, volume, keyboard, mouse, or other control data as standard HID input devices. They are also suitable for products that only require simple on / off control, such as mechanical shutter releases. However, although remote controls from different manufacturers and models follow the same underlying protocol, there are still significant differences in the actual HID features, number of reports, report ID, data content, and key press and release encoding methods provided. This makes it impossible to pre-write a universal fixed key resolution value for all unknown remote controls. Therefore, when the original remote control is lost, damaged, or does not meet the user's preferences, the device cannot simply replace it with a remote control from any other brand. Summary of the Invention
[0004] This invention provides a shutter release device and its control method that support replaceable Bluetooth HID input devices. The device completely decouples the original encoding layer and control logic layer of the physical buttons on the remote control. It no longer relies on hard-coded presets for specific manufacturer data formats, but instead uses adaptive matching to be compatible with unknown HID input differences. When the user replaces the remote control with another brand or model of BLE HID remote control, the main controller can automatically complete button learning and recognition after connection.
[0005] This invention proposes a shutter release device that supports replaceable Bluetooth HID input devices, comprising: A mechanical actuator, driven by a motor, is used to press the physical shutter of a camera or push the steel pin of a mechanical shutter release cable. The main controller integrates Bluetooth wireless communication functionality, enabling wireless communication with mobile terminals and BLE HID input devices. The main controller connects to the BLE HID input device according to the selection of the mobile terminal, discovers the BLE HID input device HID service, Report features and descriptors, writes the descriptor to subscribe to Input Report notifications, and saves key recognition data formed by multiple independent entity operations of the same key. The main controller identifies key operations based on the Input Report notification sent by the BLE HID input device and the saved key recognition data, and controls the mechanical actuator to perform the shutter release action based on the key operation recognition result.
[0006] Preferably, it further includes a power management module and a controlled power supply unit, electrically connected to the main controller. The power management module is used to control the controlled power supply unit to supply power to the main controller, maintain the power supply, and control the controlled power supply unit to actively release the power supply after the task is completed. The main controller and the power management module are electrically connected to a local button module. Pressing the local button module controls the controlled power supply unit to start supplying power. After the main controller starts supplying power, it takes over the power supply holding signal. When the task is completed and the shutdown conditions are met, the main controller releases the holding signal to stop the controlled power supply unit from supplying power.
[0007] Preferably, it further includes: The storage module, integrated in the main controller, is used to store the device parameters and binding information of the BLE HID input devices and mobile devices that provide HID services, as well as the data characteristics of the learned keys. The motor drive module is electrically connected to the main controller and is used to drive the mechanical actuator motor to rotate forward, reverse, standby, and brake, thereby performing shutter operations. The audio-visual prompt module, electrically connected to the main controller, includes status indicator lights and a buzzer, used to prompt power-on, connection, countdown, key learning, test results, and other device status.
[0008] The present invention also provides a control method for the shutter release device supporting replaceable Bluetooth HID input devices, comprising: The main controller scans and connects to BLE HID input devices as both a BLE central device and a HID host, while simultaneously providing configuration, status query, and control services to mobile terminals as a BLE peripheral device. The main controller discovers the HID service and report features of the input device, performs descriptor discovery for each report feature, and searches for the report reference and CCCD descriptor; it reads the report reference to obtain the report ID and report type, and writes the report features belonging to the input report into the CCCD to subscribe to input notifications. The mobile terminal guides the user to perform multiple independent operations on the same button. The main controller starts collecting data from the first non-release data received for each operation, records the report characteristics and the sending order, and ends the collection when the corresponding release data is received or the idle time is reached. Based on the report characteristics and the sending order, the main controller determines the button according to the saved button recognition data and drives the mechanical actuator to perform the action. When a BLE HID input device reconnects, the main controller uses the cached handle and notification configuration information to resume subscription to Input Report notifications. When the cache is invalid, the main controller rediscovers the HID service, CCCD, and various report features and subscribes to Input Report notifications. Based on the Input Report notifications sent by the BLE HID input device, the main controller obtains the report features of each key operation, determines the feature type, ReportID, Report Type, and the order of similar reports, and re-maps the saved key recognition data to the report features in the current connection.
[0009] Preferably, the generation of the key recognition data includes the following steps: Obtain the characteristics and sending order of the recorded report; When the data of a single Report feature can reliably distinguish the key press, the recurring stable data in that Report feature is saved as the basis for identification, and other Report data sent in the same operation but not used to distinguish the key press is ignored. When the same button is pressed multiple times and a limited number of stable data values appear alternately, these repeatedly appearing different data values are saved as multiple identification criteria for the same button. When using only one Report feature is insufficient to reliably distinguish key presses, and the source, content, and sequence of multiple data points are repeated in multiple operations, these data and their sequence relationship are saved as the basis for identification.
[0010] Preferably, when using data from a single Report feature as the identification basis, the Report feature must have non-released data appearing in at least a preset number of operations, and must have all-zero release data of the same length appearing in at least a preset number of operations. In the same operation, the Report feature must have at most one non-release notification, and the final retained non-released data must have at least one stable byte. The determination of the stable byte specifically includes: establishing a temporary record to save a stable byte mask for each non-release notification, where each bit in the mask indicates whether the corresponding byte is currently stable; clearing the corresponding position in the mask whenever a single byte changes during subsequent operations; and retaining only the positions of the byte that remain unchanged as the basis for identification during unified screening after multiple operations.
[0011] Preferably, the notifications in this operation are compared with the notifications in the existing temporary records one by one to find the correspondence. When the two reports have the same source, the same data length, are both non-released data or both released data, and the binary content meets the similarity condition, they are considered to correspond to each other. The temporary record is recorded by calculating the proportion of the actual corresponding number based on the party with fewer notifications, and when the threshold is reached, the operation is included in the temporary record. The temporary records are compared either out of order of receipt or in order of receipt, and each temporary record uses only one comparison method. The non-order-of-receipt comparison is applicable when an operation contains a small number of non-release notifications, each from a different Report feature; the order-of-receipt comparison is applicable when an operation contains multiple non-release notifications or multiple non-release notifications for the same Report feature.
[0012] Preferably, when performing unified filtering after multiple operations, only temporary records containing at least a preset minimum number of operations are retained, and a maximum of a preset number of records are retained; In records generated from more than a preset number of operations, a notification may be missing once; in records generated from fewer than a preset number of operations, a notification must appear in every operation. Learning is deemed unsuccessful if no temporary record meets the conditions or no non-release data identification basis is ultimately formed.
[0013] Preferably, the method further includes: when learning another key, comparing the data collected this time with the key data that has been learned, and if the two cannot be reliably distinguished, determining that the learning was unsuccessful and prompting the user to select another key to relearn.
[0014] Preferably, the step of restoring the subscription to Input Report notifications through the cache of saved handle and notification configuration information by the main controller specifically includes: Attempt to resume notification subscription by sending an ATT Write Request to the BLE HID input device using the cached CCCD handle, and determine the validity of the cache based on the returned response: When a successful write response is received, mark the recovery as successful; when an error response is received, if the error code is insufficient authentication, insufficient key length, or insufficient encryption and the binding state is not yet ready, wait for the binding to complete and then retry. If the above error codes are received after other error codes are received or the binding status is ready, the cache is deemed invalid and the process is transferred to the complete HID service, feature and descriptor rediscovery and corresponding process.
[0015] The beneficial effects of this invention are: To address the compatibility issue of different BLE HID remote controls being unable to pre-write fixed key values due to differences in Report ID, feature type, and data arrangement order, making it difficult for users to freely replace lost or damaged original remote controls, this device, after connecting to the BLE HID input device to be learned, dynamically discovers HID services and Report features, and generates key recognition data based on multiple physical key operations. This completely decouples the original encoding layer of the remote control's physical keys from the control logic layer, so that the system no longer relies on hard-coded presets for specific manufacturer data formats, but instead uses adaptive matching to be compatible with unknown HID input differences. When the user replaces the remote control with another brand or model of BLE HID remote control, the main controller can automatically complete key learning and recognition after connection. Attached Figure Description
[0016] Figure 1 This is a system architecture diagram of a shutter release device supporting replaceable Bluetooth HID input devices according to an embodiment of the present invention; Figure 2 This is a flowchart of the initial discovery and reconnection confirmation process for BLE HID input features according to an embodiment of the present invention. Figure 3 This is a flowchart illustrating the key learning process according to an embodiment of the present invention; Figure 4 This is a flowchart illustrating the formation and judgment of the key recognition criteria in an embodiment of the present invention; Figure 5 This is a flowchart of the identification and single reporting of a single key press operation according to an embodiment of the present invention; Figure 6 This is a flowchart illustrating the three control signal sources and shutter service control of this invention. Figure 7 This is a flowchart illustrating the process of replacing the remote control according to an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0018] Example 1 This invention proposes a shutter release device that supports replaceable Bluetooth HID input devices, and its system architecture diagram is shown below. Figure 1 As shown, the mechanical shutter release device 101 includes a mechanical actuator 110, a main controller 102, a storage module, a motor drive module 109, an audio-visual prompt module 113, a power management module 112, and a controlled power supply unit.
[0019] The mechanical actuator 110 is driven by an electric motor and is used to press the physical shutter of the camera or push the steel pin of the mechanical shutter release cable.
[0020] The main controller 102 integrates Bluetooth wireless communication functionality to communicate wirelessly with the mobile terminal 106 and the BLE HID input device 105. When the BLE HID input device 105, which has been learned and saved, reconnects, the main controller 102, after connecting to the BLE HID input device 105, uses the cached saved handle and notification configuration information to resume the subscription to the BLE HID input device 105 Input Report notification. When the cache is invalid, it rediscovers the HID service, CCCD, and various report features and subscribes to the Input Report notification. Based on the Input Report notification sent by the BLE HID input device 105, the main controller 102 obtains the report features of each key operation, determines the feature type, report ID, report type, and the order of similar reports, and re-matches the saved key recognition data with the report features in the current connection. The main controller 102 is also used to record the current physical key operation from the first non-release data received from the BLE HID input device 105, determine the key based on the saved key recognition data, and drive the mechanical actuator to perform the action.
[0021] The power management module 112 and the controlled power supply unit are electrically connected to the main controller 102. The power management module is used to control the controlled power supply unit to supply power to the main controller, maintain the power supply, and control the controlled power supply unit to actively release the power supply after the task is completed. The main controller 102 and the power management module 112 are electrically connected to a local button and a status input module 111. Pressing the local button and the status input module 111 controls the controlled power supply unit to start supplying power. After the main controller 102 starts supplying power, it takes over the power supply holding signal. When the task is completed and the shutdown conditions are met, the main controller 102 releases the holding signal to stop the controlled power supply unit from supplying power.
[0022] The storage module is integrated into the main controller 102 and is used to store the device parameters and binding information of the BLE HID input device 105 and mobile device that provide HID services, as well as the data characteristics of the learned keys.
[0023] The motor drive module 109 is electrically connected to the main controller 102 and is used to drive the mechanical actuator 110 motor to rotate forward, reverse, standby, and brake, and to perform shutter operation.
[0024] The audio-visual prompt module 113 is electrically connected to the main controller 102 and includes a status indicator light and a buzzer, used to prompt power-on, connection, countdown, key learning, test results and other device status.
[0025] In this embodiment, the main controller 102 and the wireless communication function are integrated into the same CH592F microcontroller. It simultaneously assumes two BLE roles: role 103 for BLE peripheral device communication with mobile terminals, providing configuration, status query, and control services; and role 104 for standard BLE HID input devices (finished remote controls), acting as both a BLE central device and an HID host, responsible for scanning, connecting to, discovering HID services, and receiving button data. Both BLE connections are coordinated and managed by the same main controller 102, eliminating the need for a separate Bluetooth module or additional control chip.
[0026] Specifically, the control method for the mechanical shutter release device includes the following steps: S1: The main controller scans and connects to BLE HID input devices as both a BLE central device and a HID host. At the same time, the main controller provides configuration, status query, and control services to mobile terminals as a BLE peripheral device.
[0027] S2: Discover the HID service and Report characteristics of the input device through the main controller, perform descriptor discovery for each Report characteristic, and look up the Report Reference and CCCD descriptor; read the Report Reference to obtain the Report ID and Report Type, and write the Report characteristics belonging to Input Report to CCCD to subscribe to input notifications.
[0028] S3: The mobile terminal guides the user to perform multiple independent operations on the same button. The main controller starts collecting data from the first non-release data received for each operation, records the report characteristics and the sending order, and ends the current collection after receiving the corresponding release data or reaching the idle time. Based on the results of multiple collections, button recognition data is formed and saved.
[0029] S4: When the BLE HID input device reconnects, the main controller resumes the subscription to Input Report notifications using the cached saved handle and notification configuration information. When the cache is invalid, the main controller rediscovers the HID service, CCCD, and various report features and subscribes to Input Report notifications. Based on the Input Report notifications sent by the BLE HID input device, the main controller obtains the report features of each key operation, determines the feature type, report ID, report type, and the order of similar reports, and re-maps the saved key recognition data to the report features in the current connection.
[0030] The control flow of shutter service control module 108 is as follows: Figure 6 As shown, this device supports three control signal sources: local buttons, mobile terminal commands, and standard BLE HID remote control button recognition results, all of which are uniformly entered into the shutter service control module. This embodiment allows the user to select and learn two buttons from the remote control, designated as Button A and Button B, and assign their corresponding functions. In other embodiments, the number of buttons learned can be adjusted according to product needs. Based on the device's current state and user settings, the shutter service control module can perform the following operations: start a countdown; cancel an ongoing countdown; adjust the countdown duration or other parameters; take a picture immediately (immediately enter the mechanical shutter execution process); provide feedback without driving the motor in the learning or testing state; ignore the input in unsuitable states such as motor operation, maintenance, or shutdown preparation.
[0031] When a mechanical shutter action is required, the main controller sends a control signal to the motor drive circuit, causing the motor to sequentially complete actions such as forward rotation, stop, reverse rotation, and stop. The mechanical actuator then presses the camera's physical shutter or pushes the mechanical shutter release cable pin. The audio-visual prompt module consists of status indicator lights and a buzzer, used to indicate power-on, connection, countdown, button learning, test results, and other device statuses. The power management module employs a button-activated start, a power supply maintained after the main controller powers on, and an active power release mechanism upon task completion. When the user presses the start button, the controlled power supply unit turns on; after the main controller starts, it takes over the power supply holding signal; when the task is completed and the shutdown conditions are met, the main controller releases the holding signal, causing the controlled power supply unit to stop supplying power. This structure reduces power consumption when the equipment is idle.
[0032] Furthermore, in S2, after connecting the unknown remote controller, the main controller executes the following standard BLE HID protocol procedure: The remote control broadcasts, and this device scans and establishes a connection.
[0033] → Pairing and binding.
[0034] like Figure 2 As shown: →Service discovery: Locate HID services.
[0035] →Feature discovery: Search for features such as Report Map, Report (one or more), BootKeyboard / Mouse Input Report, etc. in the HID service.
[0036] →Descriptor discovery: For each report feature, look up the Report Reference and CCCD to obtain its UUID and handle.
[0037] → Reading Report Reference: Obtaining Report ID and Report Type: The standard value for Report Type is: 0x01 is Input Report, and the data direction is from HID device to host, which is the type required by this device.
[0038] 0x02 is the Output Report, with data direction from host to HID device.
[0039] 0x03 is the Feature Report, used to transmit configuration data, which can be read or written.
[0040] →Read the Report Map: Obtain the Report ID, Usage Page, and Usage to help determine the report type. The Report ID is used to match the descriptions in the Report Map with the corresponding report characteristics; the Usage Page and Usage are then used to help determine whether the report roughly belongs to volume control, other consumption control, keyboard, mouse pointer, touch, or other input. The Report Map also includes descriptions of field widths, number of fields, and data arrangement, but this device does not fully parse these details.
[0041] → Write the features belonging to Input Report to CCCD and subscribe to Input Report notifications.
[0042] →Enter the normal working cycle and receive key press notification data.
[0043] Each notification received by this device includes a handle for the subscribed Report feature and a string of binary data. The handle is used to distinguish which Report feature the notification comes from, and the binary data is the specific content of that Report.
[0044] This device uses a single main controller that simultaneously performs two BLE roles: as a BLE peripheral device when dealing with mobile terminals, and as a BLE central device and HID host when dealing with remote controls. Both connections are coordinated and managed by the same main controller.
[0045] This device can perform the following operations via a mobile terminal: check battery level, countdown timer, remote control connection and button learning status; set countdown duration, prompt method and remote control button functions; issue commands such as immediate trigger, start countdown or cancel countdown; and initiate the rebinding process when the user needs to replace the remote control.
[0046] During normal use, this device begins recording the current physical button operation from the moment it receives the first non-release data, determining which button the user pressed based on the saved data. The core logic of this mechanism is: once sufficient data to determine the button press is received, the device immediately reports the result to the shutter operation control module, without waiting for all data for the current operation to be received. Subsequent duplicate data, other accompanying data, or release data received for the same operation will not generate a second report. The current operation ends upon receiving the corresponding release data or reaching a preset idle time, only then allowing the recognition of the next operation. The specific button recognition process is as follows: Figure 5 As shown, this device takes the moment when it first receives the non-release data for this button press as the occurrence moment of the operation and passes it to the shutter operation control module to determine the interval between a single click and a double click. In this way, other data generated subsequently by the same operation and the time required for recognition and processing will not change the interval between the two actual button presses, thus avoiding interference with the double click determination.
[0047] like Figure 2 As shown, in the reconnection recovery mechanism described in S4, the device first attempts to restore the subscription to Input Report notifications using the saved handle and notification configuration information to shorten the time for the bound remote control to resume operation. When re-establishing a BLE connection after the device has been powered off and restarted or has not been used for a long period (e.g., one month), the device still first attempts to restore the Input Report notification subscription using the saved handle and notification configuration information cache.
[0048] The specific approach involves using the cached CCCD handle and configuration values to invoke the GATT write operation, sending an ATT Write Request to the handle to attempt to restart notifications.
[0049] Furthermore, after receiving write responses from all cached CCCDs, the program determines the recovery result: When the remote control receives a write operation, it returns ATT_WRITE_RSP. If all writes are successful, the recovery is marked as successful. When the remote control refuses to write, it returns ATT_ERROR_RSP, which includes an error code. For error codes indicating insufficient authentication (0x05), insufficient key length (0x0C), or insufficient encryption (0x0F), if the binding state is not yet ready, it will wait for the binding to complete and then retry. If other error codes are received, or if the above three error codes are received after the binding state is ready, it is determined that the cached handle can no longer be used, and the process of rediscovering and corresponding HID services, features, and descriptors is initiated.
[0050] The ready binding status is obtained from the protocol stack pairing status callback: it is marked as ready only when the status is bound or the binding record has been saved and the status is equal to success.
[0051] The program rediscovers the HID service and each report feature, and re-matches the saved key recognition data with the report features in the current connection based on the following information.
[0052] As shown in the table below: Table 1 Remapping Table The conditions for successful re-matching are: the current feature's feature type, Report ID, and Report Type must be the same as the saved information, and the ordinal must also be the same. After successful matching, the newly discovered handle replaces the old cache. If no corresponding item can be found for any saved Report feature, re-matching fails, the current key recognition data is no longer used, and relearning is required.
[0053] Furthermore, the specific key learning methods in S3, such as Figure 3 As shown, it includes the following steps: This device learns the data actually sent by a user pressing and releasing the same remote control button multiple times (five times in this example). A single operation may generate only one non-release notification, or it may generate multiple notifications from one or more Report features. This device classifies notifications with all data values equal to zero as released data, and other notifications as non-release data.
[0054] During each learning session, data collection begins from the first non-released data received for this operation, recording which report feature the data originated from and the sending order. The current data collection session ends when one of the following conditions is met:
[0055] During this operation, all Report features that previously sent non-release data have sent corresponding release data; no data from this operation has been received for a period of time (the idle timer is reset to zero each time a data is received); the preset maximum waiting time has been reached (the timer will reset upon receiving a valid notification).
[0056] After the first data collection, a temporary record is created. Subsequent collections compare new samples with existing records, updating recurring data, stable bytes, occurrence counts, release status, and order. Then, the complete original data can be discarded. During the learning phase, a maximum of two temporary records are created, each storing a maximum of ten notifications and involving a maximum of four Report features for identification.
[0057] This invention proposes three methods for storing identification criteria, such as... Figure 4 As shown, the steps for forming and judging the basis for button recognition are as follows: (1) Use one type of data: Conditions: The data of a single Report feature can reliably distinguish key presses: the feature has non-release data in at least 4 operations, has all-zero release data of the same length in at least 3 operations, has at most 1 non-release notification in the same operation, and has at least 1 stable byte.
[0058] Save content: Save stable data that appears repeatedly in this report feature; other report data sent in the same operation but not helpful in distinguishing key presses can be ignored.
[0059] (2) Using a limited number of data types: Condition: When the same button is pressed multiple times, a limited number of stable data values appear alternately (e.g., two data values appear alternately).
[0060] Save content: Save these recurring different data separately, without forcibly merging them; retain a maximum of 2 temporary records, each containing at least 2 operations.
[0061] (3) Use multiple sequential data: Condition: A single Report feature is insufficient to reliably distinguish key presses, but the source, content, and order of multiple data points are repeated in multiple operations.
[0062] Saved content: Save these data and their order of appearance; during normal recognition, match according to the saved order, and set the minimum corresponding number (1-2 items correspond to 1 item, 3-4 items correspond to 2 items, and 5 or more items correspond to 3 items).
[0063] Furthermore, the process of determining stable bytes specifically includes: The program stores a stable byte mask for each notification in the temporary record. When a record is created, each bit in the mask represents the corresponding byte that is currently stable; in subsequent operations, whenever a byte changes, the corresponding position in the mask is cleared. After learning is complete, normal recognition only compares bytes that ultimately remain stable. The positions of the changed bytes may differ in different operations, and the program will gradually clear the stability markers at different positions. A non-release notification that ultimately has no stable bytes is not used for recognition.
[0064] During the learning phase, two comparison methods are used to determine which temporary record the current operation should be assigned to: Comparison not in the order of receipt: When an operation contains 1-3 non-release notifications and each comes from a different Report feature, the source, length and complete binary content are compared, and the order of arrival is not required to be the same. Compare in the order of receipt: If an operation contains 4 or more non-release notifications, or if the same Report feature has 2 or more non-release notifications, compare them one by one in the order of receipt.
[0065] Once a temporary record is compared sequentially, subsequent operations will continue to compare in the order of receipt. During the comparison, the proportion of the actual corresponding quantity to the number of notifications less than the one with the smaller quantity is calculated; if it reaches 70%, it is added to that record.
[0066] Finally, after completing five operations, a unified screening process is performed: only temporary records containing at least two operations are retained (maximum two records); a distribution of 4+1 or 3+2 operations is allowed. For records formed by 4-5 operations, a notification can be missing a maximum of one time; for records formed by 2-3 operations, the notification must appear in each operation. If sufficiently consistent data is not formed across multiple operations, the learning is considered unsuccessful. When learning another key, the data collected this time is compared with the key data that has already been learned; if the two cannot be reliably distinguished, the learning is considered unsuccessful.
[0067] The rebinding process is as follows: Figure 7 As shown, it specifically includes: 1. This device retains the binding information and button learning results of the currently used remote control; 2. Scan for nearby candidate remote controls that can be connected and provide the candidate remote control information to the mobile terminal for display; 3. After the user selects a candidate remote control, this device temporarily connects to the candidate remote control, completes HID service, feature and descriptor discovery, and subscribes to Input Report notifications; 4. Guide the user to complete the button learning and testing. After the user confirms and saves the data, the device replaces the original remote control data with the new remote control data and writes it into the memory. 5. If the user cancels, the learning process fails, or the process is aborted, the temporary connection and learning results of the new remote control will be discarded, and the old remote control data and connection process will be restored.
[0068] During the rebinding process: the mobile terminal is mainly responsible for configuration, process guidance, and user confirmation. This device is responsible for remote control connection, data acquisition, learning, identification, data saving, and recovery after cancellation.
[0069] To restrict unauthorized mobile terminals from reading device status, modifying parameters, triggering the shutter, or replacing the remote control, this device can be configured with a mobile terminal authorization function. When adding a new mobile terminal, the user needs to first enter the authorized state of the device using the buttons on the device body, and then confirm by pressing the buttons again; after confirmation, the device saves the authorization credentials corresponding to the mobile terminal. Each subsequent connection establishment requires the mobile terminal and this device to complete a challenge-response process using the saved credentials. Only after successful verification are status query, parameter configuration, and control functions enabled; the verification result becomes invalid upon disconnection.
[0070] The mechanical shutter release device of the present invention has at least the following effects: 1. This invention enables mechanical shutter release devices to use existing standard BLE HID remote controls on the market, eliminating the need to customize proprietary remote controls for each release device. Users can choose compatible remote controls based on appearance, size, and usage habits, and can easily replace lost or damaged original remote controls themselves.
[0071] 2. The same main controller simultaneously serves as a BLE peripheral device for mobile terminals, as well as a BLE central device and HID host for remote controllers. This reduces the need for independent Bluetooth modules or additional control chips, and coordinates configuration and connection with remote controllers within the same system.
[0072] 3. After the remote control is bound and trained, it can be used independently of the mobile phone for daily shooting, while still retaining the ability to configure, view status and directly control the mobile terminal.
[0073] 4. This device does not require implementing the complete universal keyboard, mouse, and touch data parsing functions found in mobile phones or computers on a microcontroller with limited resources, and it can also learn unknown remote control buttons through actual user operation.
[0074] 5. For remote controls that send different data alternately with the same button, send data from multiple Report features, or send multiple data continuously, the present invention can still save and identify repeatable data features, and report multiple notifications generated by a single physical button press as a single operation to the shutter service control module, thereby avoiding repeated startup, cancellation, or triggering of the shutter.
[0075] 6. After the remote control is reconnected, even if the handle in the current connection changes, this device can still reconfirm the correspondence between the saved button recognition data and each report feature based on information such as Report ID and Report Type, so as to avoid the button recognition results becoming invalid due to changes in the handle.
[0076] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A shutter release device supporting replaceable Bluetooth HID input devices, characterized in that, include: A mechanical actuator, driven by a motor, is used to press the physical shutter of the camera or push the steel pin of the mechanical shutter release cable; The main controller integrates Bluetooth wireless communication functionality, enabling wireless communication with mobile terminals and BLE HID input devices. The main controller connects to the BLE HID input device according to the selection of the mobile terminal, discovers the BLE HID input device HID service, Report features and descriptors, writes the descriptor to subscribe to Input Report notifications, and saves key recognition data formed by multiple independent entity operations of the same key. The main controller identifies key operations based on the Input Report notification sent by the BLE HID input device and the saved key recognition data, and controls the mechanical actuator to perform the shutter release action based on the key operation recognition result.
2. The shutter release device supporting replaceable Bluetooth HID input devices according to claim 1, characterized in that, It also includes a power management module and a controlled power supply unit, which are electrically connected to the main controller. The power management module is used to control the controlled power supply unit to supply power to the main controller, maintain the power supply, and control the controlled power supply unit to actively release the power supply after the task is completed. The main controller and the power management module are electrically connected to a local button module. Pressing the local button module controls the controlled power supply unit to start supplying power. After the main controller starts supplying power, it takes over the power supply holding signal. When the task is completed and the shutdown conditions are met, the main controller releases the holding signal to stop the controlled power supply unit from supplying power.
3. The shutter release device supporting replaceable Bluetooth HID input devices according to claim 1, characterized in that, Also includes: The storage module, integrated in the main controller, is used to store the device parameters and binding information of the BLE HID input devices and mobile devices that provide HID services, as well as the data characteristics of the learned keys. The motor drive module is electrically connected to the main controller and is used to drive the mechanical actuator motor to rotate forward, reverse, standby, and brake, thereby performing shutter operations. The audio-visual prompt module, electrically connected to the main controller, includes status indicator lights and a buzzer, used to prompt power-on, connection, countdown, key learning, test results, and other device status.
4. A control method for a shutter release device supporting a replaceable Bluetooth HID input device as described in any one of claims 1 to 3, characterized in that, Includes the following steps: The main controller scans and connects to BLE HID input devices as both a BLE central device and a HID host, while simultaneously providing configuration, status query, and control services to mobile terminals as a BLE peripheral device. The main controller discovers the HID service and report features of the input device, performs descriptor discovery for each report feature, and searches for the report reference and CCCD descriptor; it reads the report reference to obtain the report ID and report type, and writes the report features belonging to the input report into the CCCD to subscribe to input notifications. The mobile terminal guides the user to perform multiple independent operations on the same button. The main controller starts collecting data from the first non-release data received for each operation, records the report characteristics and the sending order, and ends the collection when the corresponding release data is received or the idle time is reached. Based on the report characteristics and the sending order, the main controller determines the button according to the saved button recognition data and drives the mechanical actuator to perform the action. When a BLE HID input device reconnects, the main controller uses the cached handle and notification configuration information to resume subscription to Input Report notifications. When the cache is invalid, the main controller rediscovers the HID service, CCCD, and various report features and subscribes to Input Report notifications. Based on the Input Report notifications sent by the BLE HID input device, the main controller obtains the report features of each key operation, determines the feature type, report ID, report type, and the order of similar reports, and re-maps the saved key recognition data to the report features in the current connection.
5. The control method according to claim 4, characterized in that, The generation of the key recognition data includes the following steps: Obtain the characteristics and sending order of the recorded report; When the data of a single Report feature can reliably distinguish the key press, the recurring stable data in that Report feature is saved as the basis for identification, and other Report data sent in the same operation but not used to distinguish the key press is ignored. When the same button is pressed multiple times and a limited number of stable data values appear alternately, these different data values that appear repeatedly are saved as multiple identification criteria for the same button. When using only one Report feature is insufficient to reliably distinguish key presses, and the source, content, and sequence of multiple data points are repeated in multiple operations, these data and their sequence relationship are saved as the basis for identification.
6. The control method according to claim 5, characterized in that, When using data with a single Report feature as the identification basis, the Report feature must satisfy the following conditions: non-release data must appear in at least a preset number of operations, and all-zero release data of the same length must appear in at least a preset number of operations. In the same operation, the Report feature must have at most one non-release notification, and the final retained non-release data must have at least one stable byte. The determination of the stable byte specifically includes: establishing a temporary record to save a stable byte mask for each non-release notification, where each bit in the mask indicates whether the corresponding byte is currently stable; clearing the corresponding position in the mask whenever a single byte changes during subsequent operations; and retaining only the positions of the byte that remain unchanged as the basis for identification during unified screening after multiple operations.
7. The control method according to claim 6, characterized in that, The notifications in this operation are compared with the notifications in the existing temporary records one by one. When the two reports have the same source, the same data length, are both non-released data or both released data, and the binary content meets the similarity condition, they are considered to correspond to each other. The temporary record is recorded by calculating the proportion of the actual corresponding number based on the party with fewer notifications, and when the threshold is reached, the operation is included in the temporary record. The temporary records are compared either out of order of receipt or in order of receipt, and each temporary record uses only one comparison method. The non-order-of-receipt comparison is applicable when an operation contains a small number of non-release notifications, each from a different Report feature; the order-of-receipt comparison is applicable when an operation contains multiple non-release notifications or multiple non-release notifications for the same Report feature.
8. The control method according to claim 6, characterized in that, When performing a unified screening after completing multiple operations, only temporary records containing at least a preset minimum number of operations are retained, with a maximum of a preset number of records retained. In records generated from more than a preset number of operations, a notification may be missing once; in records generated from fewer than a preset number of operations, a notification must appear in every operation. Learning is deemed unsuccessful if no temporary record meets the conditions or no non-release data identification basis is ultimately formed.
9. The control method according to claim 4, characterized in that, Also includes: When learning another key, the data collected this time is compared with the key data that has been learned before. If the two cannot be reliably distinguished, the learning is deemed unsuccessful and the user is prompted to select another key to relearn.
10. The control method according to claim 4, characterized in that, The step of restoring the subscription to Input Report notifications through the cache of saved handle and notification configuration information by the main controller specifically includes: Attempt to resume notification subscription by sending an ATT Write Request to the BLE HID input device using the cached CCCD handle, and determine the validity of the cache based on the returned response: When a successful write response is received, mark the recovery as successful; when an error response is received, if the error code is insufficient authentication, insufficient key length, or insufficient encryption and the binding state is not yet ready, wait for the binding to complete and then retry. If the above error codes are received after other error codes are received or the binding status is ready, the cache is deemed invalid and the process is transferred to the complete HID service, feature and descriptor rediscovery and corresponding process.
