Methods, devices and electronic equipment for transmitting optical lens information
By assembling a tag device into an external optical lens, the automatic matching of electronic equipment and optical lens parameters is achieved, solving the problem of users manually adjusting parameters and improving shooting results and efficiency.
Patent Information
- Application Number
- CN202611271445.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-17
AI Technical Summary
Users need to manually adjust the shooting parameters of the electronic device to match the parameters of the external optical lens, which makes it impossible for ordinary users to effectively improve the photo or video quality.
A tag device is installed in the external optical lens to obtain the optical lens parameters through communication with electronic devices, and to automatically optimize shooting parameters and image processing.
It achieves automated identification and optimization of external optical lens parameters, improving photo or video quality and increasing the efficiency of external optical lens-assisted shooting.
Smart Images

Figure CN123123697A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a method, device and electronic device for transmitting optical lens information. Background Technology
[0002] With the ever-increasing power of photography capabilities in smartphones and other electronic devices, taking photos and recording videos has become one of the core user needs. Whether it's capturing fleeting moments, shooting portraits, or creating professional content, the imaging capabilities of electronic devices directly influence users' choices.
[0003] Among numerous shooting scenarios, telephoto shooting is undoubtedly one of the most essential functions. From concert telephoto and sports event capture to wildlife observation and cityscape compression, telephoto capabilities allow users to break through distance limitations and bring distant wonders closer. However, the physical limitations of the internal space of electronic devices have pushed the thickness of periscope telephoto modules to near their limit. To achieve even more extreme telephoto shooting without sacrificing portability, the industry has begun to explore the new path of external optical accessories. Other optical lens technologies with different functions, such as wide-angle lenses, macro lenses, fisheye lenses, and panoramic lenses, are also continuously evolving.
[0004] As user needs and scenarios become increasingly segmented, single-model optical lenses (such as teleconverters) will no longer be able to meet the diverse shooting requirements. To satisfy new scenarios and new demands, optical lens technology will continue to evolve towards a multi-model, multi-scenario optical lens matrix. For example, manufacturers may launch optical lens matrices covering different focal lengths, different apertures, and different application scenarios.
[0005] However, different optical lenses have different optical lens parameters. In this case, users need to check the optical lens parameters and manually adjust the shooting parameters of the electronic device or switch the shooting mode of the electronic device accordingly. This requires users to have a high level of optical knowledge. For ordinary users, this will reduce the degree to which the external optical lens improves the photo or video quality of the electronic device. Summary of the Invention
[0006] This application provides a method, apparatus, and electronic device for transmitting optical lens information. By assembling a tag device in an external optical lens, which is associated with the optical lens parameters, the electronic device can obtain the optical lens parameters of the external optical lens through communication with the tag device. Based on these optical lens parameters, the electronic device can optimize its photographing or video recording effects. This solves the problem in related technologies where the external optical lens, which has an optical lens matrix, provides only a low degree of improvement in the photographing or video recording effects of the electronic device.
[0007] In a first aspect, a method for transmitting optical lens information is provided, executed by an electronic device detachably connected to the optical lens, the method comprising: When a first triggering condition is met, a first action is performed, wherein the first triggering condition is used to trigger the acquisition of optical lens information of the optical lens, and the electronic device performs the first action to communicate with a tag device within the optical lens; If the optical lens information is obtained based on the first action, a second action is performed, the second action including taking a picture and / or processing an image using shooting parameters that match the optical lens information.
[0008] Secondly, a method for transmitting optical lens information is provided, performed by an optical lens, wherein the optical lens is detachably connected to an electronic device, and the optical lens includes a tag device; the method includes: During the communication between the electronic device and the tag device based on the first action, the tag device sends optical lens information of the optical lens or indication information of the optical lens to the electronic device.
[0009] Thirdly, an optical lens information transmission device is provided for use with an electronic device, the electronic device being detachably connected to the optical lens, the device comprising: The first execution module is configured to perform a first action when a first triggering condition is met, wherein the first triggering condition is configured to trigger the acquisition of optical lens information of the optical lens, and the first action is configured to enable the electronic device to communicate with the tag device within the optical lens; The second execution module is configured to perform a second action when the optical lens information is obtained based on the first action. The second action includes taking a picture and / or processing an image using shooting parameters that match the optical lens information.
[0010] Fourthly, an optical lens information transmission device is provided for an optical lens, the optical lens being detachably connected to an electronic device, the optical lens including a tag device, the device comprising: The transmitting module is used to transmit optical lens information of the optical lens or indication information of the optical lens to the electronic device through the tag device during the process of the electronic device communicating with the tag device based on the first action.
[0011] Fifthly, an electronic device is provided, which is detachably connected to an optical lens. The electronic device includes a processor and a memory, the memory storing programs or instructions executable on the processor, which, when executed by the processor, perform the steps of the method described in the first aspect.
[0012] In a sixth aspect, an optical lens is provided that is detachably connected to an electronic device, the optical lens including a tag device, the optical lens including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in the second aspect.
[0013] In a seventh aspect, a readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect, or implement the steps of the method described in the second aspect.
[0014] In this embodiment, in a scenario where the electronic device and the optical lens are detachably connected, the electronic device performs a first action when a first trigger condition is met. The first trigger condition is used to trigger the acquisition of optical lens information from the optical lens. The electronic device performs the first action to communicate with a tag device within the optical lens. If the optical lens information is acquired based on the first action, a second action is performed. The second action includes taking a picture and / or performing image processing using shooting parameters matched to the optical lens information. This allows the electronic device to communicate with the tag device within the optical lens based on the first trigger condition, to acquire optical lens information from the tag device or an indication of acquiring optical lens information from the tag device. Finally, based on the optical lens information, actions to optimize the photographing or video recording effects of the electronic device are automatically executed. It can automatically identify the optical lens information of the optical lens actually installed on the electronic device, including the optical lens model or identification information, and use the optical lens information to automatically perform shooting and / or image processing actions using shooting parameters that match the optical lens information, so as to optimize the photo or video recording effect of the electronic device. It can optimize the degree of improvement of the photo or video recording effect of the external optical lens on the electronic device, and improve the efficiency of using the external optical lens to assist the electronic device in performing the shooting process. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating a method for transmitting optical lens information on the side of an electronic device, as provided in an embodiment of this application. Figure 2 This is a schematic diagram of the Bluetooth broadcast signal structure; Figure 3 This is a schematic diagram illustrating the interaction between the electronic device and the optical lens in performing the eighth action; Figure 4 This is a flowchart illustrating a method for transmitting optical lens information on the optical lens side, as provided in an embodiment of this application. Figure 5 This is one of the schematic diagrams illustrating the interaction between the electronic device and the optical lens in the embodiments of this application; Figure 6 This is a schematic diagram of the frame structure of a Bluetooth broadcast signal; Figure 7 This is a schematic diagram showing the mapping relationship between teleconverter information and Bluetooth broadcast signals at different layers; Figure 8 This is the second schematic diagram of the interaction between the electronic device and the optical lens in the embodiments of this application; Figure 9 This is the third schematic diagram of the interaction between the electronic device and the optical lens in the embodiments of this application; Figure 10 This is the fourth schematic diagram of the interaction between the electronic device and the optical lens in the embodiments of this application; Figure 11 This is a schematic diagram of the structure of an optical lens information transmission device provided in an embodiment of this application; Figure 12 This is a schematic diagram of the structure of an optical lens information transmission device provided in an embodiment of this application; Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 14 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0016] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0017] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, without limiting the number of objects; for example, the first object can be one or more. Furthermore, "or" in this application indicates at least one of the connected objects. For example, "A or B" covers three scenarios: Scenario 1: including A but not B; Scenario 2: including B but not A; Scenario 3: including both A and B. The character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0018] The term "instruction" in this application can be either a direct instruction (or explicit instruction) or an indirect instruction (or implicit instruction). A direct instruction can be understood as one in which the sender explicitly informs the receiver of specific information, the operation to be performed, or the requested result, etc.; an indirect instruction can be understood as one in which the receiver determines the corresponding information based on the instruction sent by the sender, or makes a judgment and determines the operation to be performed or the requested result, etc., based on the judgment result.
[0019] The following description, in conjunction with the accompanying drawings, details the optical lens information transmission method, optical lens information transmission device, and related equipment provided in this application through some embodiments and application scenarios.
[0020] Please see Figure 1 This application provides a method for transmitting optical lens information, the execution subject of which can be an electronic device, and the electronic device is detachably connected to the optical lens, such as... Figure 1 As shown, the method for transmitting optical lens information may include the following steps: Step 101: When the first triggering condition is met, execute the first action, wherein the first triggering condition is used to trigger the acquisition of optical lens information of the optical lens, and the electronic device executes the first action to communicate with the tag device in the optical lens.
[0021] In some implementations, the electronic device can obtain optical lens information from the tag device by performing a first action.
[0022] In other embodiments, by performing a first action, the electronic device can obtain associated information or indication information of the optical lens from the tag device. Thus, the electronic device can determine the optical lens information based on the association between the optical lens information and the associated information, or it can determine the optical lens information based on the correspondence or calculation method between the optical lens information and the indication information.
[0023] In some implementations, the optical lens information includes the model number of the optical lens, such as a teleconverter model number.
[0024] In some implementations, the optical lens information includes parameters of the optical lens, such as focal length, aperture size, and telephoto magnification.
[0025] In some implementations, the first triggering condition may represent the triggering condition for the electronic device to recognize the optical lens, or the triggering condition for the electronic device to acquire information about the optical lens.
[0026] In some implementations, the first triggering condition may include at least one of the following: The electronic device starts the camera and activates optical lens functions related to the optical lens, such as the teleconverter function; The electronic device detects that the optical lens is being installed or has been installed; The electronic device detects a trigger signal that activates the function for identifying the optical lens; The electronic device detected a trigger signal for identifying the optical lens; The electronic device detects the scene used to trigger the first action, such as by AI analysis of the camera preview screen, or AI analysis based on the received signal, or AI analysis using sensor data such as gyroscopes and magnetometers, or by network big data or wireless signal analysis, automatically determines whether the current scene requires telephoto shooting, and automatically triggers the recognition of teleconverter when it is determined that telephoto shooting is required, or automatically triggers the recognition of wide-angle lens in the scene where a wide-angle lens is required, etc. The electronic device detects a user operation to trigger the first action, such as pressing a hardware button to trigger the first action, or triggering the first action through touch input or gesture recognition, such as the electronic device detecting the user's action or posture of raising the phone through a front-facing camera or a non-sensory sensor, or the action or posture of installing an optical lens, to identify and trigger the first action.
[0027] In some implementations, the trigger signal for activating the function for identifying the optical lens and / or the trigger signal for identifying the optical lens may be generated based on user operation, or when the optical lens function associated with the optical lens is activated, or when a physical interface on the electronic device is detected that the optical lens is connected.
[0028] In some implementations, the electronic device activates the camera and enables optical lens functions related to the optical lens, such as a teleconverter function. This can be achieved by the user actively informing the electronic device of a need to use the optical lens, and the electronic device then randomly initiates an action to acquire optical lens information (i.e., the first action). Specific solutions may include at least one of the following: 1) Implemented based on the function switch in the camera APP: For example, a "teleconverter mode" button or option can be added to the photo mode or video mode selection in the camera application. The electronic device will only start to obtain optical lens information after the user clicks it. 2) The optical lens mode can be set in the system quick settings panel (such as quick apps, negative one screen, etc.). Users can quickly launch the optical lens mode through this shortcut. The electronic device will only start acquiring teleconverter information after the user launches this shortcut. 3) Provide a shortcut to quickly launch the camera and enter optical lens mode on the lock screen or lock screen interface. Users can use this shortcut to quickly launch optical lens mode. The electronic device will only start obtaining optical lens information after the user launches this shortcut application; 4) The electronic device will only start acquiring optical lens information when the user turns on the camera and detects that the shooting parameters require the use of an optical lens; for example, taking a teleconverter as an example, the camera will start into teleconverter recognition mode when it starts up, that is, when the user turns on the camera and detects that the current focal length is set to telephoto (e.g., 3.5x telephoto), it will automatically suggest to start acquiring teleconverter information.
[0029] In some implementations, the electronic device detects that the optical lens is being installed or has been installed. This can be achieved by the electronic device automatically sensing the physical installation action or status of the optical lens using built-in sensors or changes in external signals, without requiring additional user intervention. Specific solutions may include at least one of the following: 1) Magnetic detection, such as Hall sensors / magnetometers: Small magnets can be embedded in optical lenses, and electronic devices can detect changes in the magnetic field through Hall sensors or magnetometers, thereby detecting the installation status of the optical lens.
[0030] 2) Capacitive proximity detection, such as using the capacitive sensor on the screen / back of an electronic device to detect whether the optical lens is close, thereby detecting the installation status of the optical lens; 3) Acceleration / vibration detection: For example, accelerometers or vibration detectors in electronic devices can be used to detect the vibration characteristics of the optical lens during installation, thereby detecting the installation status of the optical lens.
[0031] 4) Infrared and other proximity light sensors, such as proximity light sensors on the screen / back of electronic devices, can be used to detect whether the optical lens is close, thereby detecting the installation status of the optical lens.
[0032] 5) Tag signal strength changes, such as the strength (e.g. RSRP, RSSI) or strength changes of the Bluetooth signal received by the electronic device from the Bluetooth tag to detect the installation status of the optical lens.
[0033] In some implementations, the electronic device acquires the trigger signal for recognizing the optical lens, which can be achieved through software-level or hardware-level triggering. Specifically, it may include at least one of the following: 1) Physical button triggering method, such as using physical buttons (volume buttons or camera buttons) on the side of electronic devices to trigger recognition; 2) Allows third-party applications to trigger optical lens recognition by sending intent broadcasts; 3) Voice command triggering, such as triggering the optical lens mode through the electronic device's built-in voice assistant or voice interaction system; 4) Utilize NFC tag touch triggering. For example, an NFC tag can be embedded in the optical lens, allowing the user to trigger identification upon touch. In this case, NFC serves as a triggering method, while the actual optical lens information is still carried by the Bluetooth tag inside the optical lens.
[0034] 5) Geofencing or environmental awareness triggers, such as when an electronic device detects that a user has entered a specific geographic location (e.g., a concert venue, stadium, mountain, etc.) through geofencing or environmental awareness, it will automatically trigger recognition; 6) Time / schedule triggering: such as automatically triggering based on user-defined calendar time or preset schedule.
[0035] It should be noted that the method for triggering the acquisition of optical lens information may include any of the methods listed in this embodiment, or a combination of at least two methods, and is not specifically limited here.
[0036] In this embodiment, the electronic device can be triggered to perform the first action in various ways, such as user operation, usage scenario of the electronic device, detection signal of the electronic device, and functional detection of the electronic device.
[0037] Of course, the methods for triggering the electronic device to perform the first action are not exhaustive in this embodiment. In addition to the methods for triggering the electronic device to perform the first action listed in this embodiment, other methods can also be used to trigger the electronic device to perform the first action. For example, the electronic device can be triggered to perform the first action based on a Bluetooth device whitelist. When the mobile phone is connected to a specific Bluetooth device (such as a Bluetooth selfie stick or Bluetooth remote control), the electronic device is automatically triggered to perform the first action to obtain optical lens information.
[0038] Step 102: If the optical lens information is obtained based on the first action, a second action is performed, the second action including at least an action to optimize the photo or video recording effect of the electronic device.
[0039] In some embodiments, the electronic device in this application can be a terminal, or it can be any other device besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. For ease of explanation, this application typically uses a mobile phone as an example for illustration, and this application does not impose specific limitations.
[0040] In some embodiments, the optical lens in this application may be an optical component / module that is physically separate from the electronic device, or an independent optical component / module, and may be used in conjunction with the electronic device by means of snap-fit, magnetic attraction, sliding groove, etc.
[0041] In some implementations, the electronic device and the optical lens are detachably connected, which can be achieved by at least one of the following methods: magnetic attraction, snap-on, slot-type, etc.
[0042] For example, taking a mobile phone as an example, the mobile phone can achieve detachable connection with an external optical lens using at least one of the following methods: Magnetic type: If the back of the phone has a magnetic interface, users can attach a dedicated optical module as needed, which is convenient for installation and removal.
[0043] Clip / slide type: Requires a dedicated phone case. Align the clip structure of the external optical lens with the clip or slide on the dedicated phone case, and lock the optical lens onto the dedicated phone case by rotating or pushing the optical lens.
[0044] Standalone external lenses: Similar to lens accessories for professional cameras, they connect to mobile phones via a physical mount. These products are typically larger and have higher optical quality, such as 400mm teleconverters.
[0045] The emergence of external optical lenses is an inevitable product of the physical limits of imaging technology in mobile phones and other electronic devices. By placing the optical structure externally, it circumvents the limitations of the camera body through a "space-for-performance" strategy, providing users with a simple solution between mobile phones and professional cameras. In the embodiments of this application, the electronic device can automatically identify the optical lens model and intelligently adapt the shooting parameters. This not only allows external optical lenses to easily achieve "plug and play," but also opens up new possibilities for the next stage of evolution in electronic device imaging.
[0046] In some implementations, the embodiments of this application can be applied to at least the following scenarios: Cross-brand compatibility standard: A unified physical interface and communication protocol allows for the sharing of external optical lenses between electronic devices from different brands; Third-party optical manufacturers are entering the market: optical lens products launched by traditional lens manufacturers can be adapted to electronic devices such as mobile phones; Optical lens rental market: Targeting the low-frequency use of optical lenses, this market can promote the formation of a convenient external optical lens rental service system.
[0047] It should be noted that the optical lenses in the embodiments of this application may have a variety of different functions, types, models, and even different manufacturers. The optical lens parameters of optical lenses of different types, models, and manufacturers are different.
[0048] For example, a certain mobile phone model can be equipped with two teleconverters (or long-range lenses). These two teleconverters, combined with the phone's built-in 85mm gimbal-level telephoto lens (approximately 3.5x zoom), can achieve full focal length coverage from 14mm ultra-wide-angle to 400mm super telephoto. In well-lit conditions, the 400mm teleconverter can clearly capture the backlit edges of an idol's hair and the texture of their clothing on a concert stage. It can even extend the focal length to an equivalent 1600mm super telephoto capability, sufficient to record the details of bird feathers. Thus, with the phone's built-in 200-megapixel telephoto lens and the combination of teleconverters, the phone can achieve excellent shooting results in concert scenes. The two teleconverters mentioned above can include the optical lens parameters shown in Table 1 below: Table 1
[0049] Of course, in addition to the examples above, in order to meet new scenarios and new needs, the embodiments of this application can also be applied to optical lens matrix scenarios with multiple models and multiple scenarios that may emerge in the future.
[0050] For example: As user needs become increasingly segmented, a single model of teleconverter can no longer meet the diverse shooting scenarios. In the future, manufacturers will launch the following matrix of teleconverters covering different focal lengths and application scenarios: Lightweight everyday models (such as 100-200mm): Primarily designed for portability, meeting everyday telephoto needs; Professional telephoto lenses (such as 400-600mm): used for concerts and sporting events; Macro-specific type: Utilizing the characteristic of teleconverters that do not change the closest focusing distance, high-magnification macro shooting can be achieved; Cinema Widescreen: Adapts to the anamorphic widescreen lenses used by video creators.
[0051] Furthermore, in this embodiment of the application, by enabling the tag device within the optical lens to communicate with the electronic device, at least one of the following functions can be achieved: Automatic optical lens model recognition: The mobile phone reads the model ID in the optical lens chip and automatically loads the corresponding optical correction parameters (such as vignetting compensation and chromatic aberration correction). Aperture information feedback from optical lenses: Optical lenses can send effective aperture values to mobile phones, helping exposure algorithms to calculate shutter speed and ISO more accurately; Image stabilization collaboration: The optical lens with a built-in micro OIS module can work in conjunction with the phone's image stabilization algorithm to improve image stability at the telephoto end; EXIF information record: The optical lens model used is recorded in the photo metadata, which facilitates post-processing management and creative sharing.
[0052] Furthermore, in this embodiment, the camera module built into the electronic device can be used in conjunction with an external optical lens for shooting. Compared with shooting with an external optical lens alone, this method has advantages such as improved dynamic tracking focus and improved focusing speed.
[0053] For example, taking a mobile phone as the electronic device and a teleconverter as the optical lens, the following AI algorithm can be used on the mobile phone to improve the combined shooting effect of the mobile phone's built-in camera module and the teleconverter: AI-assisted focusing: Utilizes the AI computing power on the mobile device to predict motion trajectories and compensate for the mechanical focusing delay of the teleconverter. Multi-frame synthesis enhancement: In low-light environments, multi-frame synthesis technology is used to compensate for the insufficient light intake of the teleconverter. Image quality restoration algorithm: AI algorithm is used to optimize the image quality at the edges of the teleconverter.
[0054] In some implementations, the tag device in the embodiments of this application may include at least one of the following: Bluetooth tags, NFC tags, RFID tags, WiFi tags, Star Flash tags, LoRa tags, and Zigbee tags.
[0055] Among them, NFC tags are based on the electromagnetic induction principle of the 13.56MHz frequency band, which can achieve completely passive operation. They do not require power to be supplied to the NFC tag. Information in the NFC tag can be read by bringing it close. It has the advantages of extremely low cost, excellent mobile phone compatibility, and mature standardization. However, its communication distance is usually within 3 centimeters, which is suitable for identification scenarios where the optical lens is installed close to the electronic device.
[0056] RFID technology covers multiple frequency bands, including low frequency, high frequency, and ultra-high frequency. Passive UHF RFID tags can achieve long-distance identification from several meters to more than ten meters.
[0057] Bluetooth / BLE tags are one of the most mainstream short-range communication methods for mobile phones and other electronic devices. Traditional active BLE tags rely on built-in batteries to periodically broadcast data packets, with a recognition distance of up to tens of meters and excellent mobile phone compatibility. However, the tags require regular battery replacements and are relatively expensive. The emerging BLE backscatter technology attempts to achieve low-power communication in a completely passive way, but it is still in the research and development and academic verification stage and is far from being commercialized.
[0058] As a new generation of short-range wireless communication standard led by China, StarScan tags can support centimeter-level high-precision positioning and multi-sensor fusion in low-power mode, but currently mobile phones require dedicated chips to support it, and the ecosystem is still in the early stages of development.
[0059] While Wi-Fi tags offer long communication distances and can utilize existing Wi-Fi infrastructure, they also have high power consumption, high tag costs, and mobile phones cannot directly act as readers, making them more suitable for enterprise-level asset tracking than for identifying consumer electronics accessories.
[0060] In this application embodiment, several feasible and mature technical solutions can be adopted, such as NFC tags, RFID tags and active BLE tags. Among them, NFC tags and RFID tags are suitable for mass deployment due to their extremely low cost and passive maintenance-free characteristics, while BLE tags support richer application expansion with their flexible identification distance and bidirectional communication capabilities.
[0061] For example, taking a mobile phone as an example of an electronic device, the comparison of the various labeling technologies mentioned above is summarized in Table 2 below: Table 2
[0062] For ease of explanation, in the embodiments of this application, Bluetooth tags and RFID tags are usually used as examples of tag devices inside the optical lens. Other types of tag devices can also transmit optical lens information or optical lens indication information to electronic devices, and this does not constitute a specific limitation.
[0063] In some implementations, performing the first action includes at least one of the following: Perform a label scanning process, which is used to identify the label device inside the optical lens; Execute a label inventory process, which is used to inventory or query the label devices inside the optical lens; The system receives a tag signal sent by a tag device within the optical lens, wherein the tag signal carries first information, which is used to carry or characterize information about the optical lens.
[0064] In some implementations, the electronic device can determine the optical lens information based on the tag information obtained from the tag scanning process; for example, if the identification information of the Bluetooth tag is associated with the optical lens information in advance, the electronic device can obtain the optical lens information associated with the identification information after obtaining the identification information of the tag device in the optical lens through tag scanning.
[0065] In other implementations, after the electronic device identifies the tag device within the optical lens through a tag scanning process, it can communicate with the tag device to receive additional tag information sent by the tag device.
[0066] In some embodiments, after the electronic device connects to the tag device within the recognition optical lens, it can store relevant information about the tag device and, upon the next triggering of the first action, directly receive the tag information sent by the tag device based on the stored relevant information.
[0067] In some implementations, the first information may directly carry optical lens information, such as directly including the optical lens information.
[0068] In other implementations, the first information can indirectly characterize the optical lens information. For example, the first information may be other information associated with the optical lens information, such as an identifier or code. In this way, after the electronic device obtains the first information, it can obtain the optical lens information based on the association between the identifier, code, etc. and the optical lens information.
[0069] In some implementations, the electronic device can inventory or query the tag devices within the optical lens according to the tag inventory process to obtain tag information and determine the optical lens information based on the tag information; for example, the tag information such as the device name and model of the tag device is associated with the optical lens information in advance. After the electronic device obtains the tag information such as the device name and model of the tag device within the optical lens through the tag inventory process, it can obtain the optical lens information associated with the tag information such as the device name and model.
[0070] In this embodiment, the electronic device can perform the first action based on at least one of the following: a tag scanning process, a tag inventory process, and an interaction process with the tag device.
[0071] It should be noted that the specific method of the label scanning process is related to the hardware configuration of the electronic device and the types of labels that can be scanned.
[0072] In some implementations, the label scanning process includes at least one of the following: Standard scanning procedure: The standard scanning procedure is the scanning procedure in which the electronic device scans the broadcast signal sent by the tag device located near the electronic device; Non-standard scanning procedure: The non-standard scanning procedure is a scanning procedure in which the electronic device transmits a carrier signal and scans the broadcast signal sent by a tag device located near the electronic device.
[0073] For example, taking Bluetooth tags as an example, for active Bluetooth tags, the electronic device can perform a standard scanning process, that is, the electronic device scans the broadcast signal sent by the tag device located near the electronic device. In this scanning process, the electronic device only needs to listen to the periodic broadcast of the active Bluetooth tag to complete the tag identification. For passive Bluetooth tags, the electronic device needs to perform a non-standard scanning process, that is, the electronic device transmits a carrier signal and scans the broadcast signal sent by the tag device located near the electronic device. In this non-standard scanning process, the electronic device needs to first transmit a Bluetooth carrier to power the passive Bluetooth tag and activate it. At this time, the electronic device receives the reflected signal of the passive Bluetooth tag to complete the tag identification.
[0074] As an optional implementation, the tag scanning process includes: Once the label scanning method is determined, the label scanning process is executed; The method for determining the label scanning method includes: Obtain second information, wherein the second information includes at least one of the following: tag scanning capability information of the electronic device, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second information, the label scanning method is determined.
[0075] In some implementations, the first configuration information may be user-configured, factory-configured, or issued by network-side devices or cloud devices. For example, the user device can configure the first configuration information to scan only active tags and not passive tags, i.e., to perform only the standard scanning process and not the non-standard scanning process.
[0076] In some implementations, the tag-scanning capability information of the electronic device can reflect which methods or ways the electronic device can support interacting with the tag device, or which actions or actions the electronic device can perform to activate the tag device. For example, for Bluetooth tags, the tag-scanning capability information of the electronic device includes at least: whether it supports the ability to transmit radio frequency carriers, and / or, capability information related to receiving Bluetooth signals, such as whether it supports backscatter reception mode.
[0077] In some implementations, the capability information of the tag device may be user-inputted, determined by the electronic device based on historical experience, or distributed from the cloud; no specific limitation is made here. This capability information may reflect which tag scanning methods the tag device supports. For example, for passive tags, it may only support scanning via non-standard scanning methods.
[0078] In some implementations, the type of tag device can be determined based on the historical tag scanning results of the electronic device. For example, if the electronic device identified an active Bluetooth tag during the last tag scanning process, it will first perform tag scanning according to the standard scanning method for active Bluetooth tags, and if the tag scanning fails, it will then perform tag scanning according to the non-standard scanning method for passive Bluetooth tags.
[0079] Of course, the electronic device can determine which tag scanning process to perform based on at least two of the following: the electronic device's tag scanning capability information, the tag device's capability information, the tag device's type, and the first configuration information.
[0080] For example, taking Bluetooth tags as an example, after triggering the tag scanning process, the electronic device can invoke the Bluetooth or Bluetooth Low Energy (BLE) module, or invoke the Bluetooth or BLE chip to enter broadcast listening mode to receive broadcast signals or beacon signals sent by the Bluetooth / BLE tag. During this process, the electronic device will determine which Bluetooth / BLE scanner to use for scanning based on its hardware capabilities, the type of tag device, or initial configuration information: 1) For active Bluetooth / BLE tags, the electronic device will activate a standard Bluetooth / BLE scanner and perform tag scanning according to the standard scanning procedure. For example, the scanner is configured in low-latency mode, which means a longer scanning window and shorter scanning intervals, typically set to continuous scanning or a scanning window of 300 milliseconds and an interval of 100 milliseconds. The scanner will also set filtering conditions to only receive broadcast packets from specific vendor IDs, thus avoiding processing a large number of irrelevant Bluetooth device broadcasts. After scanning begins, the BLE baseband circuitry within the electronic device will continuously listen to three main broadcast channels, waiting for broadcast packets sent by nearby active Bluetooth tags; 2) For passive Bluetooth / BLE tags, the electronic device activates a dedicated passive Bluetooth tag mode and performs tag scanning according to a non-standard scanning procedure. For example, it checks whether the electronic device's Bluetooth / BLE chip supports continuous carrier transmission mode. If the electronic device supports this mode, and the BLE chip is configured to carrier transmission mode, the electronic device can configure the Bluetooth / BLE receiver to a special backscatter reception mode to receive reflected signals from the passive Bluetooth tag. The carrier transmission mode and backscatter reception mode of the electronic device can operate simultaneously or in a time-division multiplexing manner; no specific limitations are specified here.
[0081] In this embodiment, the electronic device can determine which tag scanning process to use for tag scanning based on at least one of the following: the electronic device's tag scanning capability information, the tag device's capability information, the tag device's type, and the first configuration information, thereby improving the flexibility and reliability of tag scanning.
[0082] In addition to the tag scanning process described above, electronic devices may also obtain optical lens information from the tag device based on the tag inventory process. This corresponds to the presence of RFID tags, including active RFID tags or passive RFID tags, on the optical lens.
[0083] As an optional implementation, the label inventory process includes any one of the following: Send an inventory command or query command; The radio frequency carrier signal is sent along with an inventory command or a query command, wherein the radio frequency carrier signal is used by the tag device to generate tag signals; The inventory command or query command is used to obtain the associated optical lens information of the tag device.
[0084] The above-described tag inventory process of sending inventory or query commands applies to inventorying active tag devices, while the above-described process of sending radio frequency carrier signals and sending inventory or query commands applies to inventorying passive tag devices.
[0085] In some implementations, the inventory command may instruct, trigger, or command the tag device to send optical lens information associated with the tag device to the electronic device.
[0086] In some implementations, the query command can query optical lens information associated with the tag device.
[0087] In some implementations, the tag inventory process includes: Once the label inventory method is determined, execute the inventory process; The method for determining the label inventory includes: Obtain second information, wherein the second information includes at least one of the following: capability information of the electronic device related to tag inventory, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second piece of information, determine the label inventory method.
[0088] The second information mentioned above may have the same meaning and function as the second information in the aforementioned label scanning process, and is not specifically limited here.
[0089] In this embodiment, the electronic device can determine which label inventory process to use for label inventory based on at least one of the electronic device's label inventory-related capability information, the label device's capability information, the type of the label device, and the first configuration information, thereby improving the flexibility and reliability of the label inventory process.
[0090] In some implementations, when the tag device is a Bluetooth tag, the first information can be carried by a broadcast signal transmitted by the Bluetooth tag, or by a Beacon signal transmitted by the Bluetooth tag.
[0091] As an optional implementation, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the broadcast signal transmitted by the Bluetooth tag: Data fields in the broadcast data of the Protocol Data Unit (PDU) payload; The Universally Unique Identifier (UUID) in the broadcast data (ADvData) of the PDU data payload. The device name in the broadcast data of the PDU data payload; The Media Access Control (MAC) address in the broadcast data of the PDU payload.
[0092] As another optional implementation, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the beacon signal transmitted by the Bluetooth tag: The custom field in the PDU data payload of the Beacon signal; The UUID in the Beacon signal; The device name in the Beacon signal; The MAC address in the Beacon signal.
[0093] In some implementations, data fields in the broadcast data of the Protocol Data Unit (PDU) data payload, or custom fields in the PDU data payload of the Beacon signal, such as the Major or Minor field, can directly carry optical lens information. In this case, the first information directly indicates the optical lens information.
[0094] In other implementations, the data fields in the broadcast data of the Protocol Data Unit (PDU) data payload, or the custom fields in the PDU data payload of the Beacon signal, may carry first information associated with the optical lens information. In this case, the first information may be any character or string associated with the optical lens information.
[0095] In some implementations, at least one of the tag device's UUID, device name, and MAC address can be associated with the optical lens information in advance; or, at least a portion of the fields of at least one of the tag device's UUID, device name, and MAC address can be associated with the optical lens information in advance. Thus, after obtaining at least one of the tag device's UUID, device name, and MAC address, the optical lens information can be determined based on the aforementioned association information.
[0096] For example, after receiving the tag signal sent by the tag device within the optical lens, the execution of the first action further includes: Based on the first association information, obtain the optical lens information associated with the first information; The first associated information includes the association information between the first information and the optical lens information.
[0097] In some implementations, the first association information may be any information capable of indicating the association between the optical lens information and the first information.
[0098] In some implementations, the aforementioned first association information may be pre-stored within the electronic device, requested from a server, or written externally.
[0099] In some implementations, the tag device can be of a type other than a Bluetooth tag, and the information transmission method between the tag device and the electronic device will also change accordingly as the type of tag device changes. In this case, the carrying method of the first information in the interaction signal can be adjusted accordingly based on the information transmission method between the tag device and the electronic device.
[0100] For example, when the tag device is a Radio Frequency Identification (RFID) tag, the first information is carried in at least one of the following in the response signal sent by the RFID tag: The Electronic Product Code (EPC) in the response signal; The tag identifier (TID) in the response signal; The unique identifier (UID) in the response signal; The response signal contains a data frame, which includes a data field.
[0101] In some embodiments, the RFID tag itself does not directly carry optical lens model information. Instead, it establishes a mapping or association relationship with the optical lens information through the tag's identification information such as EPC, TID, or UID. Thus, the electronic device indirectly obtains the optical lens model information by acquiring the identification information of the RFID tag.
[0102] In other embodiments, the RFID tag directly carries the optical lens model / identification information in the transmitted response signal, so that the electronic device can directly identify the lens model without querying the association between the RFID tag identification and the optical lens.
[0103] In other embodiments, the data frames of tag signals or response signals sent by the RFID tag may further carry optical parameters and / or optical sensor data directly through data fields in the extended data area of the User Memory Bank.
[0104] In some implementations, similar to tag signals, when the first information is carried by the response signal of an RFID tag, the first information can also be associated with optical lens information so that the electronic device can obtain the optical lens information associated with the first information based on the association.
[0105] For example, after receiving the response signal sent by the tag device within the optical lens, the execution of the first action further includes: Based on the first association information, obtain the optical lens information associated with the first information; The first associated information includes the association information between the first information and the optical lens information.
[0106] As an optional implementation, the electronic device may pre-store the first association information, or the first association information may be written to the electronic device online; Alternatively, the first association information is stored on a cloud server, and the step of obtaining the optical lens information associated with the first association information includes: Send a first request message to the cloud server, wherein the first request message carries the first information; Receive the optical lens information from the cloud device.
[0107] For example, the association between the tag device's UUID, MAC address, or device name and the optical lens information can be stored in the electronic device in the form of a mapping table; The association between the tag device's UUID, MAC address, or device name and the optical lens information can be stored on a server and obtained through online requests; The association between the tag device's UUID, MAC address, or device name and the optical lens information can be written online through system upgrades or other means.
[0108] In some implementations, the first association information may indicate that one or more Bluetooth / BLE tags’ UUIDs, MAC addresses, or device names are associated with an optical lens.
[0109] In this embodiment, the first information can indirectly indicate optical lens information. After acquiring the first information, the electronic device can determine the optical lens information associated with the first information based on the first association information. This simplifies the first information, reduces its data size, and lowers the resource consumption caused by transmitting the first information between the tag device and the electronic device. Furthermore, the electronic device can acquire the first association information through multiple means, improving the convenience of acquiring or updating the first association information.
[0110] It should be noted that, as Figure 2 As shown, the broadcast signal or Beacon signal transmitted by the Bluetooth tag also includes at least one of the following: A preamble is used to synchronize electronic devices with Bluetooth tags; Access address, which identifies whether this is a Bluetooth / BLE broadcast signal or a Beacon signal; A PDU contains: header fields, packet type, length information, and data payload.
[0111] At this point, the first piece of information can be carried in the payload, specifically in at least one of the data fields, UUID, device name, and MAC address in the payload's broadcast data (ADvData).
[0112] In some implementations, there are cases where the electronic device identifies multiple tag devices via tag scanning. In this case, the tag devices can be screened in the following way to determine the broadcast signal or Beacon signal sent by the tag device with the optical lens actually mounted on the electronic device: 1) After receiving a broadcast signal or Beacon signal, the electronic device performs preamble detection and access address detection to confirm that it is a valid broadcast signal or Beacon signal; 2) When there are at least two valid broadcast signals or Beacon signals, the target broadcast signal or target Beacon signal is determined as the broadcast signal or Beacon signal sent by the tag device of the optical lens according to the first preset rule; The first preset rule is at least one of the following: The broadcast signal / Beacon signal with the strongest signal strength (RSRP, RSSI) is selected as the target signal; or, the broadcast signal / Beacon signal whose signal strength (RSRP, RSSI) meets the preset threshold is selected as the target signal, for example, a signal that is greater than threshold one and less than threshold two, or less than threshold three, or greater than threshold four.
[0113] The broadcast signal / Beacon signal with the shortest transmission time is determined as the target signal; or, the broadcast signal / Beacon signal whose transmission time meets a preset threshold is determined as the target signal, such as selecting a signal that is greater than time threshold five and less than time threshold six, or less than time threshold seven, or greater than time threshold eight.
[0114] 3) Analyze the target signal to obtain the first information.
[0115] In some embodiments, the action of taking a picture and / or processing an image using shooting parameters matched with the optical lens information includes at least one of the following: Optimize the shooting parameters of the camera program or image sensor program based on the optical lens information; Based on the optical lens information, adjust the hardware parameters of the camera on the electronic device; Based on the optical lens information, optimize the image signal processing (ISP) algorithm used by the electronic device; Based on the optical lens information, the auxiliary photography function of the electronic device is enabled or optimized.
[0116] In some implementations, optimizing the shooting parameters of the camera program or image sensor program based on the optical lens information can be achieved by the electronic device using an AI model, a preset algorithm, or preset association information to determine shooting parameters that are compatible with the acquired optical lens information. For example, optimizing the shooting parameters of the camera program or image sensor program based on the optical lens information may include at least one of the following: The image signal processor is notified to use a vignetting correction profile that corresponds to or is associated with the optical lens information to compensate for the edge brightness attenuation introduced by the teleconverter; Adjust the search range and step size in the autofocus algorithm to adapt to changes in depth of field after mounting the optical lens; Modify the control parameters of optical image stabilization to increase the stabilization strength in order to compensate for the effects of hand shake after magnification of the optical lens; Update the maximum magnification limit for digital zoom to prevent severe image quality degradation due to excessive zooming; Adjust the recommended upper limit value of the International Organization for Standardization (ISO) in the exposure algorithm to prevent excessive noise.
[0117] In some implementations, adjusting the hardware parameters of the camera on the electronic device based on the optical lens information can be an automatic adaptation of camera hardware parameters, i.e., the electronic device, such as a mobile phone, automatically adjusts the hardware parameters based on the optical characteristics of the optical lens or the returned parameters.
[0118] For example, the adjustable hardware parameters and their corresponding operations / actions are shown in Table 3 below: Table 3
[0119] In some implementations, the image signal processing (ISP) algorithm used by the electronic device is optimized based on the optical lens information. This can be achieved by the ISP module on a mobile phone or other electronic device selecting different image processing strategies or algorithms based on the characteristics of the optical lens.
[0120] For example, the actions / operations of the ISP's algorithm module include at least one of the following as shown in Table 4: Table 4
[0121] In some implementations, enabling or optimizing the auxiliary photography function of the electronic device based on the optical lens information can be achieved by activating, enabling, or optimizing the auxiliary photography function based on the characteristics of the optical lens.
[0122] For example, optimizing the auxiliary photography function may include at least one of the following items as shown in Table 5: Table 5
[0123] In some implementations, the second action may further include at least one of the following: Send an acknowledgment signal to the tag device. The acknowledgment signal is used to notify the tag device that the electronic device has successfully acquired the optical lens information. At this time, the tag device can stop sending tag signals according to the received acknowledgment signal. For example, the acknowledgment signal is used to notify or instruct the Bluetooth / BLE tag to stop sending broadcast signals or Beacon signals. Output a first prompt message, which is used to indicate that the optical lens information has been successfully obtained or the optical lens has been successfully installed. For example, the first prompt message can be used to indicate that the optical lens has been successfully installed, the model information of the installed optical lens, the focal length information of the installed optical lens, etc. The first prompt message can be at least one of text prompt message or voice prompt message. The display interface of the electronic device is adjusted based on the optical lens information.
[0124] In some implementations, adjusting the display interface of the electronic device based on the optical lens information may involve optimizing user interface (UI) elements and / or user experience (UX) elements based on the optical lens information.
[0125] For example, the UI / UX elements that can be optimized for electronic devices, and the optimization actions or operations that can be performed, may include at least one of the following: Table 6 below: Table 6
[0126] In some implementations, there are scenarios where electronic devices cannot obtain optical lens information. In such cases, the success rate of obtaining optical lens information can be improved by switching the tag recognition method, switching the method of obtaining optical lens information, or repeatedly executing the process of obtaining optical lens information. Alternatively, after failing to obtain optical lens information, the corresponding error handling process can be executed.
[0127] As an optional implementation, the method further includes: If the optical lens information of the optical lens is not obtained based on the first action, the third action and / or the fourth action shall be performed; The fourth action is used to trigger a backup process when the optical lens information is not acquired; the third action includes at least one of the following: If the first information of the tag device is obtained based on the first action, a second request information is sent to the cloud server. The second request information is used to request optical lens information associated with the first information, and the first information is used to characterize the optical lens information. Perform the first action at least twice until the first condition is met, whereby the first condition is the stopping condition for the first action; Output a second prompt message, which indicates that the acquisition of the optical lens information failed.
[0128] The third action can improve the success rate of acquiring optical lens information, and the fourth action can be an error handling process to be executed after failure to acquire optical lens information.
[0129] In some implementations, only the third action may be performed, or only the fourth action may be performed, or the fourth action may be performed when the third action is performed and no optical lens information is obtained through the third action.
[0130] In some implementations, when an electronic device obtains the first information of the tag device based on the first action, it can first query the optical lens information associated with the obtained first information based on the first association information stored locally on the electronic device. When the query fails, it can send a second request to the cloud server to request the optical lens information associated with the first information. In this way, when the first association information stored locally on the electronic device is not updated in time, but the cloud server stores the association information between the first information and the optical lens information, the success rate of the electronic device obtaining the optical lens information can be improved.
[0131] Optionally, after the electronic device requests the optical lens information associated with the first information from the cloud server, it can store the association information between the first information and the optical lens information locally for later use.
[0132] Optionally, if the third action includes requesting optical lens information associated with the first information from the cloud server, and the electronic device still fails to obtain the optical lens information after performing the third action, a fourth action may be performed.
[0133] In some implementations, the first condition includes at least one of the following: The number of times the tag signal detection fails is greater than or equal to the first threshold; The number of times the optical lens information acquisition fails is greater than or equal to the second threshold; The detection time of the tag signal exceeds or is equal to the third threshold; The time for acquiring optical lens information is greater than or equal to the fourth threshold.
[0134] In this embodiment, at least one of the following can be limited: the number of times the electronic device fails to detect the tag signal, the number of times it fails to acquire optical lens information, the time for detecting the tag signal, and the time for acquiring optical lens information. When at least one or all of them reach the corresponding threshold, the first action is stopped, and then the fourth action can be performed.
[0135] In some implementations, by outputting a second prompt message, the user can be notified that the electronic device has not acquired optical lens information, thus avoiding long waiting times and improving the user experience.
[0136] In some implementations, the fourth action includes at least one of the following: Output a third prompt message, which prompts the user to obtain the optical lens information using a method other than the first action; Perform the shooting function in the mode without the optical lens installed.
[0137] In some implementations, the third prompt message may prompt the user to manually enter optical lens information; or, restart the device; or, switch the scanning method of the tag device, such as the user scanning the NFC tag on the optical lens using the NFC of their mobile phone; or, use an electronic device to scan the QR code, barcode, etc. on the optical lens so that the electronic device can obtain the optical lens information in other ways.
[0138] In other implementations, if the acquisition of optical lens information fails, or if the optical lens information is still not acquired after the third prompt message is output, the shooting function is executed directly according to the mode without the optical lens installed, so as to ensure that the camera module built into the electronic device can be used normally.
[0139] In this embodiment, when the acquisition of optical lens information fails, the electronic device can operate according to the error handling process, thus avoiding prolonged waiting or operational errors.
[0140] In some embodiments, the method further includes: If the second triggering condition for stopping the acquisition of optical lens information is met, the acquisition of optical lens information is stopped, and the fifth action is executed. The fifth action includes at least one of the following: Cancel the first prompt message; Adjust the shooting parameters of the camera program or image sensor program to the default parameters when the optical lens is not installed; Enable the label scanning function.
[0141] In some implementations, the second triggering condition includes at least one of the following: The optical lens was detected to have separated from the electronic device; The electronic device is detected to have switched to the photo-taking or video-recording mode when the optical lens is not installed. The optical lens information has been successfully obtained.
[0142] In some implementations, if optical lens information is not obtained and a second triggering condition for stopping the acquisition of optical lens information is met, the tag device scanning function can be activated, and the tag device can continue scanning after the user replaces or adjusts the position of the optical lens.
[0143] In this embodiment, when the electronic device detects that the optical lens has separated from the electronic device, detects that the electronic device has switched to the photo-taking or video-recording mode when the optical lens is not installed, or the electronic device has successfully acquired the optical lens information, and the electronic device no longer needs to acquire or use the optical lens information, the electronic device can perform a fifth action to eliminate the first prompt message indicating successful acquisition or installation of the optical lens, and / or restore the shooting parameters of the camera program or image sensor program to the photo-taking or video-recording mode when the optical lens is not installed, and / or restart the tag scanning device to wait for a new tag signal. This achieves a closed-loop operation for the electronic device when it no longer needs to acquire or use the optical lens information.
[0144] In some implementations, in addition to performing a second action on one end to optimize the photo or video recording effect, the electronic device can also be linked with the optical lens to optimize the photo or video recording effect.
[0145] As an optional implementation, the method further includes: If the optical lens information of the optical lens is obtained based on the first action, an eighth action is performed; wherein, the eighth action includes: an interaction action with the tag device; When the third information of the optical lens is obtained based on the eighth action, the second action is performed in assistance based on the third information; The third information includes sensor data collected by the sensor integrated in the optical lens.
[0146] For example, if an optical lens integrates a sensor, it can transmit environmental sensing data back to the electronic device to assist the device's built-in camera module in optimizing the data. The sensor type and the optimization actions / operations performed by the electronic device include at least one of the following items from Table 7: Table 7
[0147] In some embodiments, the eighth action further includes: A control command is sent to the tag device, the control command being used to adjust the parameters of the controllable element integrated in the optical lens.
[0148] The control commands can be optical or mechanical control commands for the optical lens.
[0149] For example, assuming the optical lens includes a teleconverter, and the teleconverter has a built-in controllable optical element (or optical sensor), then the electronic device and the teleconverter can perform at least one of the actions or operations shown in Table 8 below to achieve coordinated optimization of the electronic device's shooting effect: Table 8
[0150] In other implementations, electronic devices can interact with tag devices to achieve scene-adaptive optimization or operation.
[0151] For example, Table 9 below provides examples of joint operation designs of electronic devices and optical lenses in different scenarios: Table 9
[0152] For example: Figure 4 As shown, taking a mobile phone as the electronic device, a teleconverter as the optical lens, and a Bluetooth tag within the teleconverter as an example, the mobile phone and the teleconverter can perform the following actions: Figure 3 The interactions and actions shown are designed to optimize the phone's shooting effect in conjunction with the teleconverter, such as... Figure 3 As shown, the interaction process includes the following steps: Step 301: The mobile phone obtains the teleconverter information from the teleconverter's Bluetooth tag; Step 302: Adjust the broadcast / Beacon strategy of the teleconverter, such as reducing power consumption and extending the transmission period; Step 303: Use the mobile application to optimize shooting effects with teleconverter information, such as optimizing parameters like focal length, image stabilization, and correction. Step 304: The mobile phone requests third-party information from the Bluetooth tag, such as auxiliary data collected by the sensor; Step 305: The Bluetooth tag transmits third information back to the mobile phone, such as ambient brightness, color temperature, jitter, aperture and other information collected by the sensor integrated in the teleconverter; Step 306: The mobile phone dynamically adjusts the parameters for taking photos or videos based on the third information, such as exposure, white balance, and image stabilization. Step 307: The mobile phone sends control commands to the Bluetooth tag; Step 308: The teleconverter adjusts its optical parameters according to the control commands, such as adjusting the diagonal, aperture, and image stabilization.
[0153] In this embodiment, the tag device integrated in the electronic device and the optical lens can improve the shooting effect of the electronic device or reduce the energy consumption of the tag device by performing actions independently, and can also optimize the shooting effect of the electronic device more flexibly by acting in conjunction with the optical lens.
[0154] In this embodiment, in a scenario where the electronic device and the optical lens are detachably connected, the electronic device performs a first action when a first trigger condition is met. The first trigger condition triggers the acquisition of optical lens information, and the electronic device performs the first action to communicate with a tag device within the optical lens. If the optical lens information is acquired based on the first action, a second action is performed. The second action includes taking a picture and / or performing image processing using shooting parameters matched to the optical lens information. This allows the electronic device to communicate with the tag device within the optical lens based on the first trigger condition, acquiring optical lens information or an indication of acquiring optical lens information from the tag device. Finally, based on the optical lens information, the electronic device automatically performs actions to take a picture and / or perform image processing using shooting parameters matched to the optical lens information, thereby optimizing the photographic or video recording effect of the electronic device. It can automatically identify the optical lens information of the optical lens actually installed on the electronic device, and use the optical lens information to automatically optimize the photo or video recording effect of the electronic device. It can optimize the degree of improvement of the photo or video recording effect of the external optical lens on the electronic device, and improve the efficiency of using the external optical lens to assist the electronic device in performing the shooting process.
[0155] This application embodiment also provides another method for transmitting optical lens information. The subject of this method is an optical lens, which is detachably connected to an electronic device, and the optical lens includes a tag device, such as... Figure 4 As shown, the method includes the following steps: Step 401: During the process of the electronic device communicating with the tag device based on the first action, the tag device sends the optical lens information of the optical lens or the indication information of the optical lens to the electronic device.
[0156] It should be noted that the meanings and functions of the first action, tag device, optical lens information, optical lens information indication information, and the instruction information for sending optical lens information or optical lens information to the electronic device through the tag device in the embodiments of this application are the same as the meanings and functions of the first action, tag device, optical lens information, first information, and the instruction information for sending optical lens information or optical lens information to the electronic device through the tag device in the embodiments of the optical lens information transmission method on the electronic device side of this application. Moreover, the embodiments of this application, in conjunction with the embodiments of the optical lens information transmission method on the electronic device side of this application, can jointly enable the electronic device to automatically identify the optical lens information of the optical lens actually installed on the electronic device, and use the optical lens information to automatically optimize the photo or video recording effect of the electronic device. This can optimize the degree of improvement of the photo or video recording effect of the external optical lens on the electronic device, and improve the efficiency of using the external optical lens to assist the electronic device in performing the shooting process.
[0157] In some embodiments, the method further includes: Receive an acknowledgment signal from an electronic device, wherein the acknowledgment signal is used to notify the tag device that the electronic device has successfully acquired the optical lens information; In response to the confirmation signal, a seventh action is performed, the seventh action including at least one of the following: Adjust the transmission parameters of the tag device for transmitting tag signals, wherein the transmission parameters include at least one of transmission interval and transmission power; Enter sleep mode; Send a third message to the electronic device, wherein the third message includes data collected by a sensor integrated in the optical lens; Adjust the parameters of the controllable components integrated in the optical lens.
[0158] For example, after the electronic device successfully acquires the optical lens information or completes the first action, it can notify the tag device of the optical lens to perform at least one of the actions shown in Table 10 below: Table 10
[0159] In some implementations, the third information has the same meaning and function as the third information in the aforementioned embodiment of the transmission method for optical lens information on the electronic device side of this application. For example, it may include the sensor data listed in Table 7 of the aforementioned embodiment.
[0160] In some implementations, the controllable elements and their adjustable parameters have the same meaning and function as the controllable elements and their adjustable parameters in the aforementioned embodiment of the method for transmitting optical lens information on the electronic device side of this application. For example, it may include the controllable elements and their parameter adjustment strategies listed in Table 8 of the aforementioned embodiment.
[0161] In this embodiment, the optical lens can interact with the electronic device based on the tag device, and when it is determined that the electronic device has successfully acquired the information of the optical lens based on the confirmation signal fed back by the electronic device, it can perform actions such as adjusting the transmission parameters of the tag signal, going into sleep mode, providing further sensor data to the electronic device, and performing optical or mechanical control on the controllable components integrated in the optical lens. This makes the function of the optical lens more comprehensive and has the effects of reducing the energy consumption of the tag device, providing sensor data for optimizing the shooting performance of the electronic device, and cooperating with the electronic device to perform joint operations to optimize the shooting performance.
[0162] In some embodiments, where the seventh action includes adjusting parameters of a controllable element integrated in the optical lens, the method further includes: The device receives control commands from the electronic device, the control commands being used to adjust the parameters of the controllable elements integrated in the optical lens.
[0163] In this embodiment, the parameter adjustment of the controllable element integrated in the optical lens is determined by the electronic device. The optical lens only needs to receive the control command sent by the electronic device based on the tag device and adjust the parameter of the controllable element integrated in the optical lens according to the control, which can reduce the computing power requirements of the optical lens.
[0164] Of course, in other embodiments, the optical lens may also determine how to adjust the parameters of the controllable elements integrated in the optical lens based on the data collected by the sensors integrated in the optical lens, which does not constitute a specific limitation.
[0165] For ease of understanding, the method for transmitting optical lens information provided in this application embodiment will be illustrated by taking a mobile phone as the electronic device, a teleconverter as the optical lens, and a Bluetooth tag as the tagging device.
[0166] It should be noted that although this embodiment uses a teleconverter as an example, the optical lens in this application embodiment may include, but is not limited to, at least one of the optical lens types shown in Table 11 below: Table 11
[0167] like Figure 5 As shown, in the process of transmitting optical lens information, the mobile phone and the teleconverter can perform the following actions and interact: Step 501: The mobile phone and the Bluetooth tag of the teleconverter establish an association between the optical lens information and the Bluetooth tag information, such as a mapping table. The first association information used to indicate this association can be stored in the mobile phone or in the server. Step 502: If the first triggering condition is met, the mobile phone executes the first action; Step 503: The Bluetooth tag sends a Bluetooth broadcast signal or a Beacon signal; Step 504: The mobile phone receives Bluetooth broadcast signals or Beacon signals and obtains optical lens information accordingly; Step 505: If the mobile phone successfully obtains the optical lens information, it performs the second action; Optionally, in this step, if the mobile phone successfully obtains the optical lens information, it can notify the tag device to perform the seventh action, or jointly perform the eighth action with the Bluetooth tag. Furthermore, if the tag device performs the seventh action, it can adjust the transmission parameters of the broadcast or Beacon signal, or enter sleep mode.
[0168] Step 506: If the mobile phone fails to acquire optical lens information, it performs the third action; Optionally, in this step, if the mobile phone fails to obtain optical lens information, a fourth action can be performed or an error handling process can be entered; optionally, the tag device can continue to send broadcast or Beacon signals.
[0169] Step 507: If the second triggering condition is met, execute the fifth action.
[0170] It should be noted that some actions in steps 501 to 507 of this embodiment may not be executed simultaneously. For example, when step 505 is executed, step 506 is usually not executed.
[0171] In this embodiment, the meanings and functions of the names such as first triggering condition, first action, Bluetooth broadcast signal or Beacon signal, optical lens information, second action, third action, fourth action, second triggering condition, and fifth action are the same as those of the names in the aforementioned method embodiments of this application, and will not be repeated here.
[0172] In some implementations, the field or indication field carrying / characterizing / mapping / indicating teleconverter information can be the PDU data unit portion or the MAC address portion of the Bluetooth / BLE broadcast signal. The following two embodiments illustrate in detail how Bluetooth broadcast signals or Beacon signals carry teleconverter information: Example 1: Teleconverter information is carried via Bluetooth broadcast signal.
[0173] For example Figure 2 The frame structure of the Bluetooth signal shown indicates that the teleconverter information can be carried in at least one of the following ways: Implementation method 1: Carry it through fields or indication fields in the broadcast data (ADvData) in the PDU Payload.
[0174] In some implementations, the broadcast data uses the Broadcast Data Unit (AD Structure) format, with ADType (broadcast type code set) to 0xFF. The manufacturer can define a custom data field (Data), which carries teleconverter information. The advantage of this is that the mobile device can directly parse the teleconverter information without needing to obtain the teleconverter model information through the Tag ID or the initial association between device information and teleconverter information.
[0175] In one possible design, the fields in the Data field represent different teleconverter information (e.g., model type, zoom ratio parameters, etc.). As shown in Table 12, the Data field uses 16-bit binary encoding (value range 0-65535), and different fields represent different teleconverter information: Table 12
[0176] Encoding example: Manufacturer A 2x magnetic type: Manufacturer code = 0001 (hexadecimal 0x1), type code = 00, multiplier code = 0010, serial number code = 000001, and the final data field sequence ID is 0x1021 (hexadecimal). Manufacturer A 5x magnetic type: Manufacturer=0001, Type=00, Multiplier=0101, Serial Number=000001, and the final data field sequence ID is 0x1501; Taking manufacturer A as an example, the relationship between the sequence ID in the data field and the teleconverter information is shown in Table 13: Table 13
[0177] Implementation Method 2: Characterized by the UUID in the broadcast data (ADvData) of the PDU Payload.
[0178] In some implementations, the broadcast data (aDvData) uses the AD Structure format and sets the AD Type (type code) to 0x02 or 0x03. The UUID, or tag ID, is a standardized, machine-readable code that is associated with teleconverter information. One possible approach is to assume that the association between the complete UUID and the teleconverter model can be stored in the device via a mapping table or on a server. For example, a complete UUID (128 bits or 16 bytes) can be designed as follows: [Bluetooth / BLE Broadcast Package] └── AD Structure (Type=0xFF,Manufacturer Specific) ├── Company ID (2 bytes) = 0x004C (Apple) or a custom vendor ID └── Data ├── UUID (16 bytes) ├── Other The aforementioned 16-byte UUID is used to indicate the teleconverter model or teleconverter information. This 16-bit UUID can be structured, with each bit in the 128-bit UUID segmented and defined. Different segments can indicate different information.
[0179] For example, the format of structured UUID encoding is: XXXXXXXX-YYYY-ZZZZ-WWWW-VVVVVVVVVVV; The 32-bit XXXXXXXX represents a fixed prefix or namespace; the 16-bit YYYY carries the manufacturer or category identifier; the 12-bit ZZZZ can carry a subtype or variant identifier; the 16-bit WWWW carries the teleconverter model code; and the 24-bit VVVVVVVVVVVV carries the serial number or batch number. The relationship between the UUID encoding and teleconverter information is shown in Table 14 below: Table 14
[0180] For a specific example, based on Table 14 above, when the UUID is E6C4A5B2-0001-001-0001-000001, it indicates that the teleconverter model is the AX300 Ultra 2x teleconverter; when the UUID is E6C4A5B2-0001-001-0002-000001, it indicates that the teleconverter model is the AX300 Ultra. The Ultra comes with a 400mm teleconverter; when the UUID is E6C4A5B2-0002-001-0001-000001, the teleconverter model indicates manufacturer B, a magnetic 2.5x teleconverter; when the UUID is E6C4A5B2-0002-001-0002-000001, the teleconverter model indicates manufacturer B, a magnetic 5x periscope teleconverter; when the UUID is E6C4A5B2-0003-002-0001-000001, the teleconverter model indicates manufacturer C... Snap-on 3.5x teleconverter; when UUID is E6C4A5B2-0008-001-1001-000001, it indicates the teleconverter model is a third-party universal magnetic 2x teleconverter; when UUID is E6C4A5B2-0008-001-1002-000001, it indicates the teleconverter model is a third-party universal snap-on 3x teleconverter; when UUID is E6C4A5B2-0008-001-2001-000001, it indicates the teleconverter model is a third-party dedicated macro teleconverter.
[0181] In this embodiment, the advantage of using a complete UUID to represent teleconverter information is that the probability of a collision with a 128-bit UUID is extremely low, eliminating concerns about duplicate teleconverter information such as model ID; simultaneously, a single UUID can uniquely identify teleconverter information, eliminating the need for additional teleconverter information fields such as model ID; it also complies with iBeacon and Bluetooth specifications, requiring no modification to the underlying protocol; the corresponding mobile device only needs to compare UUID values, without parsing complex bit fields; and it has good scalability, meaning that new teleconverter information only requires updating the mapping table, without requiring a firmware upgrade for the mobile device. However, the disadvantages of this approach are that the 128-bit UUID plus other fields occupy a large broadcast space, and the UUID itself does not contain readable information, requiring reliance on the mapping table between the corresponding fields in the UUID and the teleconverter information.
[0182] Of course, in other implementations, a short UUID (i.e., 16-bit or 32-bit) can be used to carry the teleconverter information, which can reduce broadcast overhead or improve recognition efficiency. The short UUID can be designed as at least one of the following: 1) Reuse the Service UUID from the standard broadcast field, encode the teleconverter information into a 16-bit Service UUID, and place it in the Service UUID list of the broadcast packet. When the mobile phone scans, it reads the complete list of 16-bit UUIDs (type 0x03) to obtain the teleconverter information; 2) Service Data with a 16-bit UUID: This field uses the Service Data - 16-bit UUID data type (type 0x16), with a format of 2 bytes UUID + N bytes of service data. Range extender information can be encoded in the UUID field, with the subsequent service data storing the specific parameters. This method is more flexible than a pure UUID list because the service data can carry additional information related to the data. 3) Manufacturer Specific Data: Use Manufacturer Specific Data (type 0xFF), allocating a 2-byte manufacturer ID within it, with subsequent bytes defined by the manufacturer. Teleconverter information can be encoded in the manufacturer-defined data using 1-2 bytes.
[0183] Taking manufacturer-defined data as an example, and also using 16-bit encoding, the field containing the UUID can be designed as follows: [Bluetooth / BLE Broadcast Package] └── AD Structure (Type=0xFF,Manufacturer Specific) ├── Company ID (2 bytes) = 0x004C (Apple) or a custom vendor ID └── Data ├── UUID (2 bytes) ├── Other The aforementioned 2-byte UUID is used to indicate teleconverter information, such as the model identifier of the teleconverter.
[0184] For example: Suppose the UUID is: 0x08 0xFF 0x34 0x12 0x21 0x11 0x00; Among them, 0x08 is a manufacturer-defined data segment; Specifically, the relationship between UUID and teleconverter information is shown in Table 15 below: Table 15
[0185] For example: Taking manufacturer A 2x teleconverter as an example, its brand code = 0001(1), model code = 00000010(2), version code = 0001(1), and the final hexadecimal UUID code is 0x0121; Taking manufacturer A as an example, Table 16 below shows a design example of a mapping table between UUID and teleconverter information, where the UUID is a 16-bit short UUID: Table 16
[0186] Implementation Method 3: Carry the device name in the broadcast data of the PDU Payload.
[0187] In some implementations, the broadcast data uses the AD Structure format, and the AD Type (type code setting) is 0x08 (short name) or 0x09 (full name). The device name (i.e., a user-readable device information string used to display device identification information to the user during Bluetooth scanning by a mobile phone) is associated with the teleconverter information. In one possible approach, the association between the device name and the teleconverter information can be stored in the electronic device via a mapping table, or on a server.
[0188] One possible design is to use a structured device naming format or encoding method, where different fields in the name represent different parameters or meanings.
[0189] For example, the format of the equipment name is: [Brand Identifier]-[Model Code]-[Rate Identifier][Optional Variations].
[0190] At this time, when the device name is CS A-2X-G2, the indicated teleconverter is manufacturer A 2x G2 version; when the device name is CS B-MAG-25X, the indicated teleconverter is manufacturer B magnetic 2.5x; when the device name is CS C-PRO-3X, the indicated teleconverter is manufacturer C Pro version 3x; when the device name is TY -5X-V2, the indicated teleconverter is general 5xV2 version.
[0191] Taking manufacturer A as an example, Table 17 below provides a design example of a mapping table between equipment names and teleconverter information: Table 17
[0192] Meanwhile, taking the teleconverter with serial number 1 as an example, the structure of the device name in the Bluetooth / BLE broadcast signal is: ADStructure 1 (device name), which is 12 bits long, of type Complete LocalName, and the data content is: CS A-2X-G2.
[0193] It's worth noting that the device name is used for user identification and initial setup, but it can also be used in conjunction with other fields for higher reliability. For example, the device name scheme can be used in parallel with the previous UUID and short UUID schemes. For instance, the device name is responsible for user display and quick identification of the teleconverter model, while the UUID or manufacturer data is responsible for accurate matching, anti-counterfeiting verification, or obtaining more information on the teleconverter's optical parameters. The two complement each other, forming a complete information transmission for the teleconverter.
[0194] Implementation Method 4: Carry the device MAC address in the PDU Payload.
[0195] The device MAC address is 6 bytes long and is associated with the teleconverter information. One possible approach is to store this association between the tag's MAC address and the teleconverter information in the electronic device via a mapping table, or on a server.
[0196] In one possible design, a 48-bit static random address (a type of MAC address) can be used to represent the teleconverter information. The MAC address, also using segmented encoding, would be: 11 xxxxxx xxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxx; In the MAC address, the highest two bits are fixed at 11, used to identify a static random address. The actual space available for carrying teleconverter information is a 46-bit encoding space. This 46-bit encoding can include the following encoding segments: The code consists of an 8-bit brand code, a 16-bit model number, an 8-bit batch code, and a 14-bit serial number.
[0197] Table 18 below provides an example of a MAC address encoding field design, where different fields represent different teleconverter information: Table 18
[0198] In some implementations, Table 19 below provides an example design of a mapping table between MAC addresses and teleconverter information, where the model name can be represented by 16 bits. The xx:xx portion of the MAC address is the batch code and serial number, which does not affect model identification or parameter acquisition. The mobile phone only needs to match the first 4-5 bytes to determine the model. Table 19
[0199] In other implementations, 3-4 bytes of the MAC address can be matched to improve matching speed.
[0200] In some implementations, if MAC address mapping of teleconverter information is used, the Bluetooth / BLE broadcast packets can be simplified, for example: for... Figure 6 The frame structure of the Bluetooth broadcast signal shown only requires AD Structure 1. The Device Name (0x09) and Manufacturer Data carried in ADS Structure 2 can be omitted because the MAC already contains the model information of the Bluetooth tag.
[0201] In this embodiment, since the MAC address is a mandatory field in every BLE device broadcast, the uniqueness of the MAC address is used to map the teleconverter model, enabling identification without broadcast data payload. That is, the terminal device only needs to obtain the device's MAC address to look up complete teleconverter information. Furthermore, since the mobile phone can obtain the MAC address upon receiving the broadcast, it can obtain the teleconverter information without parsing the AD structure field. The static random address remains unchanged throughout the device's lifecycle, and the MAC address can be burned into the Bluetooth tag according to the encoding rules during production, requiring no additional configuration. However, this method is susceptible to MAC address spoofing and requires the mobile phone to have MAC address access permissions.
[0202] Implementation method 5: Carry teleconverter information through multiple types of information.
[0203] At least two of the embodiments one to four described in the above embodiment can be combined and complement each other to meet different needs. For example, a layered hybrid scheme can be designed, which layers different schemes according to priority and reliability, taking into account recognition speed, compatibility, reliability, and scalability. For example: Figure 7As shown, the MAC address and AD structure are used together to represent / carry teleconverter information. The MAC address layer can carry an address prefix code, assuming it's FD:21:00:21:xx:xx, which corresponds to the teleconverter information being the brand code (0x01) + model number (0x21). The device name layer carries a name string, assuming it's "CS A-2X-G2", which corresponds to the teleconverter information: brand identifier 9 (manufacturer A) + magnification (2X) + version (G2). The manufacturer data layer carries a short UUID or custom data, for example: [CompanyID=0x1234][ShortUUID=0x1021][CRC]. In this case, teleconverter information can also be carried through the short UUID or custom data.
[0204] Table 20 below provides an example design of a mapping table between teleconverter information and MAC address, device name, and UUID: Table 20
[0205] Example 2: Teleconverter information is carried via Beacon signals.
[0206] In the aforementioned embodiment one, teleconverter information was carried through Bluetooth / BLE broadcast signals. This embodiment presents a method for carrying teleconverter information using Bluetooth / BLE Beacon signals. Beacon signals are a special type of Bluetooth / BLE signal with the following characteristics: (1) One-way broadcasting, meaning Beacon devices can only broadcast and cannot establish a connection with a mobile phone; (2) Standardized format, meaning they follow a specific data payload substructure definition, or it can be said that Beacon signals are the data payload portion of a special-structured PDU (Protocol Data Unit); (3) Fixed broadcast channels, generally transmitted on Bluetooth / BLE broadcast channels 37, 38, and 39. Table 21 below summarizes the differences between ordinary Bluetooth / BLE broadcasting and Beacon broadcasting: Table 21
[0207] Based on the characteristics of Bluetooth / BLE Beacon signals, teleconverter information can also be carried / characterized / transmitted through at least one of the four implementation methods: PDU data payload, UUID, device name, and MAC address in the Beacon signal.
[0208] Implementation method 1: Based on Beacon PDU data payload to carry.
[0209] In this design example, the Beacon signal follows the standard AD Structure format, and the data payload consists of one or more [length, type, data] units, carrying teleconverter information through custom encoding in a custom data segment (Type set to 0xFF).
[0210] For example, this field can be designed as follows: AD Structure 2: Manufacturer Specific Data (Type=0xFF) [1A] [FF][4C:00] [02:15][UUID(16B)] [Major(2B)][Minor(2B)] [TxPower(1B)] Thus, as shown in Table 22 below, the teleconverter information can be encoded using the Major / Minor fields in the Beacon: Table 22
[0211] Encoding example: Model ID = 0x1021 (Manufacturer A 2x), Manufacturer Code = 0x01, Version Number = 0x01 Major = 0x10 (high 8 bits of model number) + 0x01 (manufacturer) = 0x1011 (4113) Minor = 0x21 (lower 8 bits of model) + 0x01 (version) = 0x2101 (8449).
[0212] It should be noted that in this embodiment, the mapping relationship between the code number and the teleconverter information can refer to the design of Implementation Method 1 in the aforementioned embodiments. To avoid repetition, it will not be described again here.
[0213] Implementation method 2: Based on the UUID in the Beacon signal.
[0214] All Beacon signals have a 128-bit UUID, which serves as a unique identifier for the device type. Therefore, fields in the UUID can be associated with teleconverter information. The mapping table design between UUID and teleconverter information can refer to the design of Implementation Method 2 in the aforementioned embodiments. To avoid repetition, it will not be described again here.
[0215] Implementation method 3: Based on the device name in the Beacon signal.
[0216] The Beacon signal contains a device name field (AD Type set to 0x08 or 0x09), and teleconverter information can be carried through structured device name encoding. The design of the mapping table between device name and teleconverter information can refer to the design of Implementation Method 3 in the aforementioned embodiments, and will not be repeated here to avoid repetition.
[0217] Implementation Method 4: Based on the MAC address in the Beacon signal.
[0218] The Beacon signal also contains MAC address information, located in the preamble. Teleconverter information is carried by structured encoding of the MAC address. The mapping table between MAC addresses and teleconverter information can be designed with reference to Implementation Method Four in the aforementioned embodiments; to avoid repetition, it will not be described again here.
[0219] Implementation Method 5: Hybrid Solution.
[0220] Similar to the scheme in Embodiment 1 where the broadcast / BLE broadcast signal uses a mixture of PDU data payload, UUID, device name, and MAC address to represent teleconverter information, the same scheme can be used to represent teleconverter information based on a mixture of PDU data payload, UUID, device name, and MAC address in the Beacon signal. The mapping table between different fields and teleconverter information in the mixed scheme can be referenced from the design of Implementation Method 5 in the aforementioned embodiments; to avoid repetition, it will not be elaborated further here.
[0221] Furthermore, in the following embodiments, taking a mobile phone as the electronic device, a teleconverter as the optical lens, and an RFID tag as the tagging device, the method for transmitting optical lens information provided in this application embodiment will be illustrated.
[0222] Example 3: Linking teleconverter information with identification information such as EPC, TID, or UID of RFID tags; In this embodiment, the RFID tag itself does not directly carry optical lens model information. Instead, it establishes a mapping relationship or association relationship with the optical lens information through the tag's identification information such as EPC, TID, or UID (i.e., the association relationship indicated by the first association information). Thus, the electronic device indirectly obtains the optical lens model information by acquiring the identification information of the RFID tag.
[0223] Specifically, in the tag storage configuration, the TID Bank of the RFID tag stores tag chip identification information, including the tag chip manufacturer code and tag chip model code. This information is written by the tag chip manufacturer at the time of chip manufacturing and cannot be modified. The EPC Bank of the RFID tag stores a standard EPC serial number, which is written by the lens manufacturer during lens production using a dedicated RFID reader. In the corresponding tag identification information and optical lens information association mechanism, the tag's EPC and / or TID identification information itself does not contain any semantic information about the optical lens, but rather serves as an "index key" to establish a mapping relationship with the optical lens model information. The first association information can be stored in at least one of the following media: The camera-tag mapping table is stored locally on the phone. This camera-tag mapping table can be factory-configured or updated via cloud download. Lens-tag mapping database in the cloud server.
[0224] For example, the EPC serial number "0x3034-XXXX-XXXX-XXXX-XXXX" corresponds to the optical lens model "ABC-50mm F1.8" in the database; the tag chip model code in the TID corresponds to the optical lens category "fixed focal length standard lens".
[0225] Based on this design, the workflow of the electronic device and the tag device includes at least one of the following: 1) During the production process, optical lens manufacturers use RFID readers to write the standard EPC serial number into the EPC Bank of the tag and record the mapping relationship between the EPC serial number and the lens model in the database.
[0226] 2) The user installs the external optical lens onto the mobile phone. After the mobile phone detects the physical connection of the optical lens (e.g., by detecting that the optical lens is not connected to the mobile phone through a Hall sensor, magnetic induction switch or mechanical contact) or other first triggering conditions, it triggers the RFID reader module to start working.
[0227] 3) The mobile RFID reader module sends a query command to execute the tag inventory process. Specifically, the reader sends a query command (carrying the Q parameter), the RFID tag randomly selects a time slot, and when the time slot counter of the RFID tag is zero, the RFID tag sends RN16 (a 16-bit random number) as a response; after receiving the RN16, the reader sends an acknowledgement (ACK) command (carrying the RN16 echo), and the tag replies with its EPC data and CRC-16 checksum.
[0228] 4) The mobile RFID reader module can optionally send a Read command to read data from the RFID tag TID Bank and obtain the RFID tag chip manufacturer code and RFID tag chip model code.
[0229] 5) The mobile phone processor uses the obtained EPC and / or TID as an index to query the first associated information locally or query the cloud server through the wireless network to obtain the optical lens model information corresponding to the EPC and / or TID, as well as the optical parameters (such as focal length range, aperture range, lens group structure, filter diameter, etc.) corresponding to the model.
[0230] 6) The mobile phone camera application automatically loads the corresponding distortion correction parameters, chromatic aberration compensation parameters, vignetting correction parameters, etc., based on the obtained optical lens model and optical parameters to complete the image optimization.
[0231] The advantages of the above embodiment three include: the RFID tag does not require additional storage space, the RFID tag has the lowest cost, and it is suitable for minimalist tag solutions.
[0232] Example 4: Directly iterating teleconverter information via response signals sent through RFID tags; For example, RFID tags can directly carry optical lens model / identification information in their transmitted response signals. This allows electronic devices to directly identify the lens model without needing to query the association between the RFID tag and the optical lens. Specifically, this embodiment may include any of the following implementation methods: Implementation method 1: EPC-coded optical lens model.
[0233] The optical lens identification information is directly encoded in the EPC Bank of the RFID tag. One possible EPC encoding format is as follows: [Header 8-bit][Brand Code 16-bit][Model Number 16-bit][Focal Length Indicator 8-bit][Aperture Indicator 8-bit][Serial Number 20-bit][CRC-16] Among them, the brand code uniquely identifies the optical lens brand (e.g., "ABC" brand corresponds to 0x0001), the model number identifies the specific model under the brand, the focal length identifier encodes the lens focal length information (e.g., 50mm is encoded as 0x32), the aperture identifier encodes the lens maximum aperture information (e.g., F1.8 is encoded as 0x12, i.e., 18), and the serial number is the unique serial number of this lens.
[0234] During the tag inventory process, after receiving the EPC data from the RFID tags, the mobile phone processor directly parses the EPC code and extracts information such as brand, model, focal length, and aperture, without needing to query external databases or primary related information.
[0235] Implementation Method 2: User Memory carries optical lens model information.
[0236] The RFID tag's EPC Bank maintains a standard EPC serial number, while the User Memory Bank stores optical lens model information in plaintext string format. For example: "BRAND:ABC|MODEL:50mm F1.8|SN:L2024010001|TYPE:PRIME" After acquiring the EPC of the RFID tag and establishing a communication handle, the mobile RFID reader sends a Read command to read data from the specified address in the User Memory Bank. The RFID tag replies with a data frame containing the optical lens model string, and the mobile phone processor parses the string to obtain the lens model information.
[0237] Implementation Method 3: TID pre-writes optical lens attributes at the factory.
[0238] In addition to the tag chip manufacturer code and tag chip model code, the TID Bank of an RFID tag also includes an optical lens attribute identification field. The TID Bank encoding format is as follows: [Allocation Class 8bit][Tag Manufacturer ID 16bit][Tag Model 16bit] [Lens type 4-bit][Maximum aperture 4-bit][Focal length 8-bit][Reserved 8-bit] Among them, the lens type is identified by distinguishing prime lenses (0x0), zoom lenses (0x1), macro lenses (0x2), wide-angle lenses (0x3), telephoto lenses (0x4), etc.; the maximum aperture is identified by multiplying the F-number by 10 (e.g., F1.8 is coded as 18, i.e., 0x12); the focal length is identified by the nominal focal length of the lens.
[0239] During the RFID tag production process, tag chip manufacturers can pre-write optical lens attribute identifiers into the TID Bank according to the lens manufacturer's customized requirements. Since the TID Bank cannot be modified after leaving the factory, this information has inherent tamper-proof characteristics.
[0240] like Figure 8 As shown, based on any of the implementation methods in Embodiment 4 above, the information interaction process between electronic devices such as mobile phones and tag devices may include at least one of the following steps: S21. Write the optical lens model / identification information into the corresponding storage area of the RFID tag; This step can be performed according to the requirements of any of the above-mentioned implementation methods one, two, and three to determine the content to be written into the RFID tag and the storage area of the content, such as EPC encoding, writing optical parameters and / or optical sensor data into the extended data area of the User Memory Bank, or writing optical lens attribute information into the TID.
[0241] S22. The user installs the external lens onto the mobile phone. After the mobile phone detects the physical connection of the lens or other first triggering conditions, it triggers the RFID reader module to start working.
[0242] S23. The mobile RFID reader module sends a Query command to execute the tag inventory process and obtain the EPC data of the RFID tags.
[0243] S24. The mobile phone processor directly parses the lens model information encoded in the EPC (Implementation Method 1), or the mobile phone RFID reader module further sends a Read command to read the lens model string in the User Memory (Implementation Method 2), or reads the optical lens attribute identifier in the TID Bank (Implementation Method 3), thereby directly obtaining the optical lens model information.
[0244] S25: The mobile phone processor loads the corresponding optical parameters and correction data from the local preset optical parameter library based on the obtained lens model.
[0245] S26. The mobile phone camera application optimizes the image based on optical parameters and correction data.
[0246] The advantages of Embodiment 4 include: no network connection or external database query for first-related information is required; the mobile phone can identify the optical lens model offline and instantly, with fast response speed and no reliance on cloud services.
[0247] Example 5: The data frames in the tag signal or response signal sent by the RFID tag directly carry optical parameters and / or optical sensor data.
[0248] For example, data frames that can be sent by RFID tags as tag signals or response signals, such as the extended data area in a User Memory Bank, can directly carry optical parameters and / or optical sensor data.
[0249] Specifically, the User Memory Bank of an RFID tag stores optical parameter data and / or optical sensor data. The data frame structure of the User Memory Bank is as follows: [0x0000] Frame header (10 bytes): ├── Version number (2 bytes): Identifies the data frame format version ├── Static data area length (2 bytes): Indicates the byte length of the static data area. ├── Starting address of dynamic data area (2 bytes): Indicates the starting address of the dynamic data area in User Memory. ├── Dynamic Data Area Length (2 bytes): Indicates the byte length of the dynamic data area. └── Reserved (2 bytes) [0x000A] Static data area (variable length, factory written, selectively lockable): ├── Focal length range (minimum focal length 2 bytes + maximum focal length 2 bytes, unit mm × 10) ├── Aperture range (minimum aperture value 2 bytes + maximum aperture value 2 bytes, unit F-number × 100) ├── Lens group structure (number of groups 1 byte + number of lenses 1 byte + special lens markings 1 byte) ├── Filter aperture (2 bytes, unit mm×10) ├── Closest focusing distance (2 bytes, in cm) ├── MTF curve data (1 byte for spatial frequency points + 2 bytes for radial MTF value of each spatial frequency point + 2 bytes for tangential MTF value) ├── Focus offset calibration value (1 byte for the number of focal length positions + 2 bytes for the focus offset at each focal length position, in μm) ├── Eccentricity / Tilt Correction Parameters (X-direction offset 2 bytes + Y-direction offset 2 bytes, unit μm) ├── Distortion correction parameters (radial distortion coefficients k1, k2, k3, 4 bytes each, floating-point numbers + tangential distortion coefficients p1, p2, 4 bytes each, floating-point numbers) └── Dispersion compensation parameters (R channel horizontal offset 2 bytes + B channel horizontal offset 2 bytes, unit pixel × 100) [0xXXXX] Dynamic sensor data area (variable length, written in real time by MCU, using a cyclic overwrite writing method): ├── Current aperture value (2 bytes, unit: F-number × 100) ├── Current focal length position (2 bytes, unit mm×10) ├── Current focus distance (2 bytes, unit cm) ├── Focus encoder value (4 bytes, encoder raw value) ├── Zoom encoder value (4 bytes, encoder raw value) ├── Temperature (2 bytes, signed integer, unit °C × 10) ├── Lens Status (1 byte: 0x00=Not installed, 0x01=Installed, 0x02=Hibernating, 0xFF=Faulty) └── Data update timestamp (4 bytes, Unix timestamp) The data writing phase is divided into writing static data and writing dynamic sensor data.
[0250] The writing of static data into the tag involves the optical lens manufacturer using a dedicated RFID reader to write optical parameters and calibration data into the tag's User Memory Bank static data area during lens production. Once written, the static data area can be locked using the Lock or Permalock command of the EPC Gen2 protocol to prevent accidental modification later.
[0251] Writing to the dynamic sensor data area: The optical lens assembly integrates a microcontroller unit (MCU) and a sensor module. The sensor module includes, but is not limited to, an aperture position sensor, a focus position encoder, a zoom position encoder, and a temperature sensor. The MCU connects to the RFID tag chip via communication interfaces such as I²C and SPI, periodically collecting sensor data and writing it to the dynamic sensor data area of the RFID tag's UserMemory Bank through these interfaces. The dynamic sensor data area uses a cyclic overwrite writing method; when the write address exceeds the end of the dynamic data area, it automatically returns to the beginning address to continue writing. Additionally, the mobile RFID reader module can also write shooting parameters and other information to the tag's dynamic sensor data area via the Write command of the EPC Gen2 protocol.
[0252] Based on the scheme of Embodiment 5 above, the signaling interaction process between mobile phones and other electronic devices and tag devices includes at least one of the following: Phase 1: Identification and parameter loading, such as Figure 9 As shown, the identification and parameter loading process includes the following steps; S31. During the production process, the lens manufacturer writes the lens model information (in accordance with Example 1 or Example 2) into the corresponding storage area of the tag using a dedicated RFID reader, and writes the optical parameters and calibration data into the static data area of the tag's UserMemory Bank, and then locks the static data area.
[0253] S32. The user installs the external optical lens onto the mobile phone. After the mobile phone detects the physical connection of the lens or other first triggering conditions, it triggers the RFID reader module to start working.
[0254] S33. The mobile RFID reader module sends a Query command to execute the tag inventory process, obtain the tag's EPC data (or further read the lens model information in TID and User Memory), and identify the optical lens model.
[0255] S34. The mobile RFID reader module sends a Read command to read the frame header data starting from address 0x0000 in the User Memory Bank and obtain information such as the data frame format version, static data area length, dynamic data area start address, and dynamic data area length.
[0256] S35, the mobile RFID reader module sends a Read command to read all the data in the static data area of the User Memory Bank, and obtain optical parameters and calibration data, including focal length range, aperture range, MTF curve data, focus offset calibration value, eccentricity / tilt correction parameters, distortion correction parameters and dispersion compensation parameters.
[0257] S36: The phone's camera app optimizes shooting results based on the acquired optical parameters and calibration data.
[0258] In this step, the phone's camera application can perform at least one of the operations described in Tables 3-10, or it can configure the image processing pipeline, including but not limited to: performing distortion correction processing on the image according to distortion correction parameters; performing dispersion compensation processing on the image according to dispersion compensation parameters; performing sharpening processing on the image according to MTF curve data; compensating for the offset of the autofocus algorithm according to the focus offset calibration value; and performing geometric correction on the image according to the eccentricity / tilt correction parameters.
[0259] Phase Two: Real-time sensor data reading, such as Figure 10 As shown, the process of reading real-time sensor data includes the following steps; S41. After the mobile phone camera application is launched, the mobile phone RFID reader module enters the periodic polling mode.
[0260] In this step, during each polling cycle, the reader sends a Read command to read the current data in the dynamic sensor data area of the User Memory Bank. The polling cycle can be set from 50ms to 500ms, preferably 100ms.
[0261] S42. The lens-built MCU collects data such as the current aperture value, current focal length position, current focus distance, temperature, and lens status from the sensor module in each data acquisition cycle, and writes the data into the dynamic sensor data area of the RFID tag's User Memory Bank through the I²C / SPI interface, while updating the data update timestamp.
[0262] S43, the mobile phone RFID reader module receives dynamic sensor data from the tag in each polling, and the mobile phone processor transmits the data to the camera application.
[0263] S44: The phone's camera app optimizes shooting results based on real-time dynamic sensor data.
[0264] In this step, the phone's camera app can perform at least one of the operations listed in Tables 3-9. Alternatively, it can also perform at least one of the following operations: dynamically adjust exposure parameters based on the current aperture value; update distortion correction and chromatic aberration compensation parameters based on the current focal length (because the distortion and chromatic aberration characteristics of zoom lenses change with focal length); assist the autofocus algorithm based on the current focusing distance; and perform temperature drift compensation on optical parameters based on temperature data.
[0265] In other implementations, the static data area in the RFID tag's User Memory Bank can also be organized using a Type-Length-Value (TLV) format. Each data record contains a Type identifier byte, a Length identifier byte, and a corresponding data value. The range of values for the Type identifier byte is as follows: 0x01: Brand Name 0x02: Lens Model 0x03: Factory serial number 0x04: Manufacturing date 0x10: Focal length range 0x11: Aperture range 0x12: Lens assembly structure 0x13: Filter Diameter 0x14: Closest focusing distance 0x20: MTF curve data 0x21: Focus offset calibration value 0x22: Eccentricity / Tilting Correction Parameters 0x23: Distortion Correction Parameters 0x24: Dispersion compensation parameters 0x30: Current aperture value 0x31: Current focal length position 0x32: Current focus distance 0x33: Focus encoder value 0x34: Temperature 0x35: Lens Status The advantages of using the TLV format are: mobile RFID readers can read specific types of data on demand without reading the entire data area, thus reducing the amount of communication data; at the same time, the TLV format has good scalability, making it easy to add new data types in the future.
[0266] The advantages of this fifth embodiment include: the RFID tag not only provides lens model information, but also provides complete individualized optical parameters, calibration data and real-time sensor data, enabling the mobile phone to perform precise imaging compensation and optimization for the actual optical characteristics of the specific lens, significantly improving image quality.
[0267] In the above embodiments three, four, and five, the RFID tag uses the Electronic Product Code Generation 2 (EPC Gen2) protocol (International Organization for Standardization (ISO) 18000-6C) as an example for illustration. However, those skilled in the art will understand that this application is also applicable to other RFID protocols, including but not limited to ISO 15693 for 13.56MHz high-frequency (HF) tags, ISO 14443 for NFC tags, ISO 18000-7 for 433MHz active RFID tags, and ISO 18000-3 Mode 3 for Gen2 HF tags. When using the ISO 15693 protocol, optical lens information can be associated (implicitly associated) through the tag's UID, or the optical lens model and parameter information can be obtained by reading data blocks in the tag's memory through the Read Multiple Blocks command. When using the ISO 14443 (NFC) protocol, optical lens information can be organized using the NFC Data Exchange Format (NDEF). The mobile phone can obtain the optical lens information by reading the NDEF message through an NFC reader.
[0268] In the above embodiments three, four, and five, the data in the storage areas such as EPC, TID, and User Memory of the RFID tag can be pre-written by the lens manufacturer at the time of manufacture using a dedicated RFID reader, or it can be written in real time by the MCU integrated inside the lens through interfaces such as the internal integrated circuit (I²C) and serial peripheral interface (SPI) (especially dynamic sensor data). The two writing methods can be used independently or in combination.
[0269] In the above embodiments three, four, and five, the triggering time for the mobile phone RFID reader module to read tag information includes, but is not limited to, at least one of the following: triggering when the lens is physically installed; triggering when the camera application is started; triggering during the operation of the camera application by polling at a fixed period; and combinations of the above methods.
[0270] In Embodiments 3, 4, and 5 above, after the mobile phone obtains the optical lens information, the camera application performs operations including but not limited to: automatic lens model identification and parameter loading; distortion correction of the image based on distortion correction parameters; chromatic aberration compensation of the image based on chromatic aberration compensation parameters; image sharpening based on MTF curve data; compensation for the offset of the autofocus algorithm based on focus offset calibration values; geometric correction of the image based on eccentricity / tilt correction parameters; dynamic adjustment of exposure parameters, focus parameters, and / or white balance parameters based on real-time sensor data; and any combination of the above operations.
[0271] Furthermore, the optical lens information encoding method described in Embodiments 1 and 2 is also applicable to Embodiments 3, 4, and 5. It is only necessary to replace the corresponding Bluetooth device information, MAC address, and UUID with EPC, TID, or UID in RFID. No further examples will be given in this application.
[0272] The optical lens information transmission method provided in this application can be executed by an optical lens information transmission device, an electronic device, or an optical lens. This application uses an optical lens information transmission device as an example to illustrate the optical lens information transmission device provided in this application.
[0273] Please see Figure 11 The optical lens information transmission device 1100 provided in this application embodiment can be a device within an electronic device, which is detachably connected to the optical lens.
[0274] like Figure 11As shown, the optical lens information transmission device 1100 may include the following modules: The first execution module 1101 is used to execute a first action when a first triggering condition is met, wherein the first triggering condition is used to trigger the acquisition of optical lens information of the optical lens, and the first action is used for the electronic device to communicate with the tag device in the optical lens; The second execution module 1102 is used to execute a second action when the optical lens information is obtained based on the first action. The second action includes taking a picture and / or processing an image using shooting parameters that match the optical lens information.
[0275] In some implementations, the first triggering condition includes at least one of the following: The electronic device starts the camera and activates the optical lens functions associated with the optical lens; The electronic device detects that the optical lens is being installed or has been installed; The electronic device detects a trigger signal that activates the function for identifying the optical lens; The electronic device detected a trigger signal for identifying the optical lens; The electronic device detects a scene that triggers the first action; The electronic device detects a user action that triggers the first action.
[0276] In some implementations, the first execution module 1101 is specifically configured to perform at least one of the following: Perform a label scanning process, which is used to identify the label device inside the optical lens; Execute a label inventory process, which is used to inventory or query the label devices inside the optical lens; The system receives a tag signal sent by a tag device within the optical lens, wherein the tag signal carries first information, which is used to carry or characterize information about the optical lens.
[0277] In some implementations, the label scanning process includes at least one of the following: Standard scanning procedure: The standard scanning procedure is the scanning procedure in which the electronic device scans the broadcast signal sent by the tag device located near the electronic device; Non-standard scanning procedure: The non-standard scanning procedure is a scanning procedure in which the electronic device transmits a carrier signal and scans the broadcast signal sent by a tag device located near the electronic device.
[0278] In some implementations, the first execution module 1101 is further configured to execute a label scanning process when the label scanning method is determined; The first execution module 1101 includes: The first acquisition unit is configured to acquire second information, wherein the second information includes at least one of the following: tag scanning capability information of the electronic device, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; The first scanning unit is used to determine the label scanning method based at least on the second information.
[0279] In some implementations, the label inventory process includes any of the following: Send an inventory command or query command; The radio frequency carrier signal is sent along with an inventory command or a query command, wherein the radio frequency carrier signal is used by the tag device to generate tag signals; The inventory command or query command is used to obtain the associated optical lens information of the tag device.
[0280] In some implementations, the first execution module 1101 is further configured to execute the inventory process when the label inventory method is determined; The first execution module 1101 includes: The second acquisition unit is used to acquire second information, wherein the second information includes at least one of the following: the capability information of the electronic device related to tag inventory, the capability information of the tag device, the type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; The second determining unit is used to determine the label inventory method based at least on the second information.
[0281] In some implementations, the tagging device includes at least one of the following types: Bluetooth tags, NFC tags, RFID tags, WiFi tags, Star Flash tags, LoRa tags, and Zigbee tags.
[0282] In some implementations, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in a broadcast signal transmitted by the Bluetooth tag: Data fields in the broadcast data of the Protocol Data Unit (PDU) payload; The Universally Unique Identifier (UUID) in the broadcast data of the PDU data payload; The device name in the broadcast data of the PDU data payload; The Media Access Control (MAC) address in the broadcast data of the PDU data payload.
[0283] In some implementations, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the beacon signal transmitted by the Bluetooth tag: The custom field in the PDU data payload of the Beacon signal; The UUID in the Beacon signal; The device name in the Beacon signal; The MAC address in the Beacon signal.
[0284] In some implementations, when the tag device is an RFID tag, the first information is carried in at least one of the following in the response signal sent by the RFID tag: The electronic product code (EPC) in the response signal; The tag identifier TID in the response signal; The unique identifier (UID) in the response signal; The response signal contains a data frame, which includes a data field.
[0285] In some implementations, the first execution module 1101 is further configured to: After receiving a tag signal or response signal sent by a tag device within the optical lens, the optical lens information associated with the first association information is obtained according to the first association information. The first associated information includes the association information between the first information and the optical lens information.
[0286] In some implementations, the electronic device pre-stores the first association information, or the first association information is written to the electronic device online; Alternatively, the first association information is stored on a cloud server, and the first execution module 1101 includes: The first sending unit is configured to send a first request message to the cloud server, wherein the first request message carries the first information; The first receiving unit is used to receive the optical lens information from the cloud device.
[0287] In some implementations, the second action includes at least one of the following: Send an acknowledgment signal to the tag device, the acknowledgment signal being used to notify the tag device that the electronic device has successfully acquired the optical lens information; Optimize the shooting parameters of the camera program or image sensor program based on the optical lens information; Output a first prompt message, which is used to indicate that the optical lens information has been successfully obtained or the optical lens has been successfully installed; Based on the optical lens information, adjust the hardware parameters of the camera on the electronic device; Based on the optical lens information, optimize the image signal processing (ISP) algorithm used by the electronic device; Based on the optical lens information, enable or optimize the auxiliary photography function of the electronic device; The display interface of the electronic device is adjusted based on the optical lens information.
[0288] In some embodiments, the optical lens information transmission device 1100 further includes: The third execution module is used to execute a third action and / or a fourth action if the optical lens information of the optical lens is not obtained based on the first action. The fourth action is used to trigger a backup process when the optical lens information is not acquired; the third action includes at least one of the following: Send a second request message to the cloud server, the second request message being used to request optical lens information associated with the first message; Perform the first action at least twice until the first condition is met, whereby the first condition is the stopping condition for the first action; Output a second prompt message, which indicates that the acquisition of the optical lens information failed.
[0289] In some implementations, the first condition includes at least one of the following: The number of times the tag signal detection fails is greater than or equal to the first threshold; The number of times the optical lens information acquisition fails is greater than or equal to the second threshold; The detection time of the tag signal exceeds or is equal to the third threshold; The time for acquiring optical lens information is greater than or equal to the fourth threshold.
[0290] In some implementations, the fourth action includes at least one of the following: Output a third prompt message, which prompts the user to obtain the optical lens information using a method other than the first action; Perform the shooting function in the mode without the optical lens installed.
[0291] In some embodiments, the optical lens information transmission device 1100 further includes: The fourth execution module is used to stop acquiring optical lens information and execute the fifth action when the second trigger condition for stopping the acquisition of optical lens information is met. The fifth action includes at least one of the following: Cancel the first prompt message; Adjust the shooting parameters of the camera program or image sensor program to the default parameters when the optical lens is not installed; Repeat the first action.
[0292] In some implementations, the second triggering condition includes at least one of the following: The optical lens was detected to have separated from the electronic device; The electronic device is detected to have switched to the photo-taking or video-recording mode when the optical lens is not installed. The optical lens information has been successfully obtained.
[0293] In some embodiments, the optical lens information transmission device 1100 further includes: The fifth execution module is configured to execute an eighth action when the optical lens information of the optical lens is obtained based on the first action; wherein the eighth action includes: an interaction action with the tag device; When the third information of the optical lens is obtained based on the eighth action, the second action is performed in assistance based on the third information; The third information includes sensor data collected by the sensor integrated in the optical lens.
[0294] In some embodiments, the eighth action further includes: A control command is sent to the tag device, the control command being used to adjust the parameters of the controllable element integrated in the optical lens.
[0295] The optical lens information transmission device 1100 provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method embodiments shown achieve the same technical effect, and will not be described again here to avoid repetition.
[0296] Please see Figure 12 The optical lens information transmission device 1200 provided in this application embodiment may be a device inside the optical lens, which is detachably connected to an electronic device, and the optical lens includes a tag device.
[0297] like Figure 12 As shown, the optical lens information transmission device 1200 may include the following modules: The sending module 1201 is used to send optical lens information of the optical lens or indication information of the optical lens to the electronic device through the tag device during the process of the electronic device communicating with the tag device based on the first action.
[0298] In some embodiments, the optical lens information transmission device 1200 further includes: The first receiving module is used to receive a confirmation signal from an electronic device, wherein the confirmation signal is used to notify the tag device that the electronic device has successfully acquired the optical lens information; The sixth execution module is configured to execute a seventh action in response to the confirmation signal, the seventh action including at least one of the following: Adjust the transmission parameters of the tag device for transmitting tag signals, wherein the transmission parameters include at least one of transmission interval and transmission power; Enter sleep mode; Send a third message to the electronic device, wherein the third message includes sensor data collected by a sensor integrated in the optical lens; Adjust the parameters of the controllable components integrated in the optical lens.
[0299] In some embodiments, when the seventh action includes adjusting the parameters of a controllable element integrated in the optical lens, the optical lens information transmission device 1200 further includes: The second receiving module is used to receive control commands from the electronic device, the control commands being used to adjust the parameters of the controllable elements integrated in the optical lens.
[0300] The optical lens information transmission device 1200 provided in this application embodiment can achieve... Figure 4 The various processes implemented in the method embodiments shown achieve the same technical effect, and will not be described again here to avoid repetition.
[0301] like Figure 13 As shown, this application embodiment also provides an electronic device 1300, including a processor 1301 and a memory 1302. The memory 1302 stores a program or instructions that can run on the processor 1301. When the program or instructions are executed by the processor 1301, they implement the following: Figure 1 The steps of the method embodiment shown are the same and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0302] Specifically, Figure 14A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0303] The electronic device 1400 includes, but is not limited to, at least some of the following components: radio frequency unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
[0304] Those skilled in the art will understand that the electronic device 1400 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1410 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 14 The electronic device structure shown does not constitute a limitation on the terminal. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0305] Among them, the electronic device 1400 is detachably connected to the optical lens, and the processor 1410 is used for: When a first triggering condition is met, a first action is performed, wherein the first triggering condition is used to trigger the acquisition of optical lens information of the optical lens, and the processor 1410 executes the first action for the electronic device to communicate with the tag device in the optical lens; If the optical lens information is obtained based on the first action, a second action is performed, the second action including taking a picture and / or processing an image using shooting parameters that match the optical lens information.
[0306] In some implementations, the first triggering condition includes at least one of the following: The electronic device starts the camera and activates the optical lens functions associated with the optical lens; The electronic device detects that the optical lens is being installed or has been installed; The electronic device detects a trigger signal that activates the function for identifying the optical lens; The electronic device detected a trigger signal for identifying the optical lens; The electronic device detects a scene that triggers the first action; The electronic device detects a user action that triggers the first action.
[0307] In some embodiments, the execution of the first action by the processor 1410 includes at least one of the following: The radio frequency unit 1401 is controlled to execute a tag scanning process, which is used to identify the tag device inside the optical lens; The radio frequency unit 1401 is controlled to execute a tag inventory process, which is used to inventory or query the tag devices inside the optical lens. The radio frequency unit 1401 receives a tag signal sent by a tag device inside the optical lens, wherein the tag signal carries first information, which is used to carry or characterize the optical lens information.
[0308] In some implementations, the label scanning process includes at least one of the following: Standard scanning procedure: The standard scanning procedure is the scanning procedure in which the electronic device scans the broadcast signal sent by the tag device located near the electronic device; Non-standard scanning procedure: The non-standard scanning procedure is a scanning procedure in which the electronic device transmits a carrier signal and scans the broadcast signal sent by a tag device located near the electronic device.
[0309] In some embodiments, the processor 1410 controls the radio frequency unit 1401 to perform the tag scanning process, including: When the tag scanning method is determined, the processor 1410 controls the radio frequency unit 1401 to execute the tag scanning process; The tag scanning method executed by the processor 1410 includes: Obtain second information, wherein the second information includes at least one of the following: tag scanning capability information of the electronic device, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second information, the label scanning method is determined.
[0310] In some implementations, the label inventory process includes any of the following: Send an inventory command or query command; The radio frequency carrier signal is sent along with an inventory command or a query command, wherein the radio frequency carrier signal is used by the tag device to generate tag signals; The inventory command or query command is used to obtain the associated optical lens information of the tag device.
[0311] In some implementations, the control radio frequency unit 1401 performs a tag inventory process, including: When the tag inventory method is determined, the processor 1410 controls the radio frequency unit 1401 to execute the inventory process; The method for determining the label inventory executed by the processor 1410 includes: Obtain second information, wherein the second information includes at least one of the following: capability information of the electronic device related to tag inventory, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second piece of information, determine the label inventory method.
[0312] In some implementations, the tagging device includes at least one of the following types: Bluetooth tags, NFC tags, RFID tags, WiFi tags, Star Flash tags, LoRa tags, and Zigbee tags.
[0313] In some implementations, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in a broadcast signal transmitted by the Bluetooth tag: Data fields in the broadcast data of the Protocol Data Unit (PDU) payload; The Universally Unique Identifier (UUID) in the broadcast data of the PDU data payload; The device name in the broadcast data of the PDU data payload; The Media Access Control (MAC) address in the broadcast data of the PDU data payload.
[0314] In some implementations, when the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the beacon signal transmitted by the Bluetooth tag: The custom field in the PDU data payload of the Beacon signal; The UUID in the Beacon signal; The device name in the Beacon signal; The MAC address in the Beacon signal.
[0315] In some implementations, when the tag device is an RFID tag, the first information is carried in at least one of the following in the response signal sent by the RFID tag: The electronic product code (EPC) in the response signal; The tag identifier TID in the response signal; The unique identifier (UID) in the response signal; The response signal contains a data frame, which includes a data field.
[0316] In some embodiments, after the processor 1410 executes the step of receiving a tag signal or response signal sent by a tag device within the optical lens via the radio frequency unit 1401, it is further configured to obtain optical lens information associated with the first association information based on the first association information. The first associated information includes the association information between the first information and the optical lens information.
[0317] In some implementations, the electronic device pre-stores the first association information, or the first association information is written to the electronic device online; Alternatively, the first association information is stored on a cloud server, and the step of processor 1410 executing the step of obtaining the optical lens information associated with the first association information includes: The radio frequency unit 1401 or the network module 1402 sends a first request message to the cloud server, the first request message carrying the first information; The optical lens information is received from the cloud device via the radio frequency unit 1401 or the network module 1402.
[0318] In some implementations, the second action includes at least one of the following: Send an acknowledgment signal to the tag device, the acknowledgment signal being used to notify the tag device that the electronic device has successfully acquired the optical lens information; Optimize the shooting parameters of the camera program or image sensor program based on the optical lens information; Output a first prompt message, which is used to indicate that the optical lens information has been successfully obtained or the optical lens has been successfully installed; Based on the optical lens information, adjust the hardware parameters of the camera on the electronic device; Based on the optical lens information, optimize the image signal processing (ISP) algorithm used by the electronic device; Based on the optical lens information, enable or optimize the auxiliary photography function of the electronic device; The display interface of the electronic device is adjusted based on the optical lens information.
[0319] In some implementations, the processor 1410 is also used for: If the optical lens information of the optical lens is not obtained based on the first action, the third action and / or the fourth action shall be performed; The fourth action is used to trigger a backup process when the optical lens information is not acquired; the third action includes at least one of the following: Send a second request message to the cloud server, the second request message being used to request optical lens information associated with the first message; Perform the first action at least twice until the first condition is met, whereby the first condition is the stopping condition for the first action; Output a second prompt message, which indicates that the acquisition of the optical lens information failed.
[0320] In some implementations, the first condition includes at least one of the following: The number of times the tag signal detection fails is greater than or equal to the first threshold; The number of times the optical lens information acquisition fails is greater than or equal to the second threshold; The detection time of the tag signal exceeds or is equal to the third threshold; The time for acquiring optical lens information is greater than or equal to the fourth threshold.
[0321] In some implementations, the fourth action includes at least one of the following: Output a third prompt message, which prompts the user to obtain the optical lens information using a method other than the first action; Perform the shooting function in the mode without the optical lens installed.
[0322] In some implementations, the processor 1410 is also used for: If the second triggering condition for stopping the acquisition of optical lens information is met, the acquisition of optical lens information is stopped, and the fifth action is executed. The fifth action includes at least one of the following: Cancel the first prompt message; Adjust the shooting parameters of the camera program or image sensor program to the default parameters when the optical lens is not installed; Repeat the first action.
[0323] In some implementations, the second triggering condition includes at least one of the following: The optical lens was detected to have separated from the electronic device; The electronic device is detected to have switched to the photo-taking or video-recording mode when the optical lens is not installed. The optical lens information has been successfully obtained.
[0324] In some implementations, the processor 1410 is also used for: If the optical lens information of the optical lens is obtained based on the first action, an eighth action is performed; wherein, the eighth action includes: an interaction action with the tag device; When the third information of the optical lens is obtained based on the eighth action, the second action is performed in assistance based on the third information; The third information includes sensor data collected by the sensor integrated in the optical lens.
[0325] In some embodiments, the eighth action further includes: A control command is sent to the tag device, the control command being used to adjust the parameters of the controllable element integrated in the optical lens.
[0326] The electronic device 1400 provided in this application embodiment is capable of performing the following... Figure 11 The functions of each module in the optical lens information transmission device 1100 shown are illustrated, and it is capable of acquiring information from... Figure 11 The same beneficial effects of the electronic devices shown will not be repeated here to avoid repetition.
[0327] It should be understood that, in this embodiment, the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042. The GPU 14041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1406 may include a display panel 14061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1407 includes at least one of a touch panel 14071 and other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0328] The memory 1409 can be used to store software programs and various data. The memory 1409 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1409 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1409 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0329] Processor 1410 may include one or more processing units; optionally, processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1410.
[0330] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described method for transmitting optical lens information and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0331] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0332] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described optical lens information transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0333] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0334] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described method for transmitting optical lens information, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0335] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0336] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of computer software products plus necessary general-purpose hardware platforms, and of course, they can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes several instructions to cause the terminal or network-side device to execute the methods described in the various embodiments of this application.
[0337] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other implementations under the guidance of this application without departing from the spirit and scope of the claims. All of these implementations are within the protection scope of this application.
Claims
1. A method for transmitting optical lens information, applied to an electronic device, wherein the electronic device is detachably connected to the optical lens, characterized in that, The method includes: When a first triggering condition is met, a first action is performed, wherein the first triggering condition is used to trigger the acquisition of optical lens information of the optical lens, and the electronic device performs the first action to communicate with a tag device within the optical lens; If the optical lens information is obtained based on the first action, a second action is performed, the second action including taking a picture and / or processing an image using shooting parameters that match the optical lens information.
2. The method according to claim 1, characterized in that, The first triggering condition includes at least one of the following: The electronic device starts the camera and activates functions related to the optical lens; The electronic device detects that the optical lens is being installed or has been installed; The electronic device detects a trigger signal that activates the function for identifying the optical lens; The electronic device detected a trigger signal for identifying the optical lens; The electronic device detects a scene that triggers the first action; The electronic device detects a user action that triggers the first action.
3. The method according to claim 1, characterized in that, The execution of the first action includes at least one of the following: Perform a label scanning process, which is used to identify the label device inside the optical lens; Execute a label inventory process, which is used to inventory or query the label devices inside the optical lens; The system receives a tag signal sent by a tag device within the optical lens, wherein the tag signal carries first information, which is used to carry or characterize information about the optical lens.
4. The method according to claim 3, characterized in that, The label scanning process includes at least one of the following: Standard scanning procedure: The standard scanning procedure is the scanning procedure in which the electronic device scans the broadcast signal sent by the tag device located near the electronic device; Non-standard scanning procedure: The non-standard scanning procedure is a scanning procedure in which the electronic device transmits a carrier signal and scans the broadcast signal sent by a tag device located near the electronic device.
5. The method according to claim 3, characterized in that, The tag scanning process includes: Once the label scanning method is determined, the label scanning process is executed; The method for determining the label scanning method includes: Obtain second information, wherein the second information includes at least one of the following: tag scanning capability information of the electronic device, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second information, the label scanning method is determined.
6. The method according to claim 3, characterized in that, The label inventory process includes any one of the following: Send an inventory command or query command; The radio frequency carrier signal is sent along with an inventory command or a query command, wherein the radio frequency carrier signal is used by the tag device to generate tag signals; The inventory command or query command is used to obtain the associated optical lens information of the tag device.
7. The method according to claim 3, characterized in that, The label inventory process includes: Once the label inventory method is determined, execute the inventory process; The method for determining the label inventory includes: Obtain second information, wherein the second information includes at least one of the following: tag scanning capability information of the electronic device, capability information of the tag device, type of the tag device, and first configuration information, wherein the first configuration information is used to configure the type of tag device that the electronic device needs to identify; Based at least on the second piece of information, determine the label inventory method.
8. The method according to claim 3, characterized in that, When the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the broadcast signal transmitted by the Bluetooth tag: Data fields in the broadcast data of the Protocol Data Unit (PDU) payload; The Universally Unique Identifier (UUID) in the broadcast data of the PDU data payload; The device name in the broadcast data of the PDU data payload; The Media Access Control (MAC) address in the broadcast data of the PDU data payload.
9. The method according to claim 3, characterized in that, When the tag device is a Bluetooth tag, the first information is carried in at least one of the following in the beacon signal transmitted by the Bluetooth tag: The custom field in the PDU data payload of the Beacon signal; The UUID in the Beacon signal; The device name in the Beacon signal; The MAC address in the Beacon signal.
10. The method according to claim 3, characterized in that, When the tag device is an RFID tag, the first information is carried in at least one of the following in the response signal sent by the RFID tag: The electronic product code (EPC) in the response signal; The tag identifier TID in the response signal; The unique identifier (UID) in the response signal; The response signal contains a data frame, which includes a data field.
11. The method according to any one of claims 8 to 10, characterized in that, After receiving the tag signal or response signal sent by the tag device within the optical lens, the execution of the first action further includes: Based on the first association information, obtain the optical lens information associated with the first information; The first associated information includes the association information between the first information and the optical lens information.
12. The method according to claim 11, characterized in that, The electronic device has the first association information pre-stored, or the first association information is written to the electronic device online; Alternatively, the first association information is stored on a cloud server, and the step of obtaining the optical lens information associated with the first association information includes: Send a first request message to the cloud server, wherein the first request message carries the first information; Receive the optical lens information from the cloud device.
13. The method according to any one of claims 1 to 12, characterized in that, The action of taking a picture and / or processing an image using shooting parameters that match the optical lens information includes at least one of the following: Optimize the shooting parameters of the camera program or image sensor program based on the optical lens information; Based on the optical lens information, adjust the hardware parameters of the camera on the electronic device; Based on the optical lens information, optimize the image signal processing (ISP) algorithm used by the electronic device; Based on the optical lens information, enable or optimize the auxiliary photography function of the electronic device; And / or, the second action further includes at least one of the following: Send an acknowledgment signal to the tag device, the acknowledgment signal being used to notify the tag device that the electronic device has successfully acquired the optical lens information; Output a first prompt message, which is used to indicate that the optical lens information has been successfully obtained or the optical lens has been successfully installed; The display interface of the electronic device is adjusted based on the optical lens information.
14. The method according to any one of claims 1 to 12, characterized in that, The method further includes: If the optical lens information of the optical lens is not obtained based on the first action, the third action and / or the fourth action shall be performed; The fourth action is used to trigger a backup process when the optical lens information is not acquired; the third action includes at least one of the following: If the first information of the tag device is obtained based on the first action, a second request information is sent to the cloud server. The second request information is used to request optical lens information associated with the first information, and the first information is used to characterize the optical lens information. Perform the first action at least twice until the first condition is met, whereby the first condition is the stopping condition for the first action; Output a second prompt message, which indicates that the acquisition of the optical lens information failed.
15. The method according to claim 13, characterized in that, The method further includes: If the second triggering condition for stopping the acquisition of optical lens information is met, the acquisition of optical lens information is stopped, and the fifth action is executed. The fifth action includes at least one of the following: Cancel the first prompt message; Adjust the shooting parameters of the camera program or image sensor program to the default parameters when the optical lens is not installed; Enable the label scanning function.
16. The method according to claim 15, characterized in that, The second triggering condition includes at least one of the following: The optical lens was detected to have separated from the electronic device; The electronic device is detected to have switched to the photo-taking or video-recording mode when the optical lens is not installed. The optical lens information has been successfully obtained.
17. The method according to any one of claims 1 to 12, characterized in that, The method further includes: If the optical lens information of the optical lens is obtained based on the first action, an eighth action is performed; wherein, the eighth action includes: an interaction action with the tag device; When the third information of the optical lens is obtained based on the eighth action, the second action is performed in assistance based on the third information; The third information includes sensor data collected by the sensor integrated in the optical lens.
18. The method according to claim 17, characterized in that, The eighth action also includes: A control command is sent to the tag device, the control command being used to adjust the parameters of the controllable element integrated in the optical lens.
19. A method for transmitting optical lens information, applied to an optical lens, wherein the optical lens is detachably connected to an electronic device, characterized in that, The optical lens includes a tagging device, and the method includes: During the communication between the electronic device and the tag device based on the first action, the tag device sends optical lens information of the optical lens or indication information of the optical lens to the electronic device.
20. The method according to claim 19, characterized in that, The method further includes: Receive an acknowledgment signal from an electronic device, wherein the acknowledgment signal is used to notify the tag device that the electronic device has successfully acquired the optical lens information; In response to the confirmation signal, a seventh action is performed, the seventh action including at least one of the following: Adjust the transmission parameters of the tag device for transmitting tag signals, wherein the transmission parameters include at least one of transmission interval and transmission power; Enter sleep mode; Send a third message to the electronic device, wherein the third message includes sensor data from a sensor integrated in the optical lens; Adjust the parameters of the controllable components integrated in the optical lens.
21. The method according to claim 20, characterized in that, If the seventh action includes adjusting the parameters of the controllable element integrated in the optical lens, the method further includes: The device receives control commands from the electronic device, the control commands being used to adjust the parameters of the controllable elements integrated in the optical lens.
22. An optical lens information transmission device for use in an electronic device, wherein the electronic device is detachably connected to the optical lens, characterized in that, The device includes: The first execution module is configured to perform a first action when a first triggering condition is met, wherein the first triggering condition is configured to trigger the acquisition of optical lens information of the optical lens, and the first action is configured to enable the electronic device to communicate with the tag device within the optical lens; The second execution module is configured to perform a second action when the optical lens information is obtained based on the first action. The second action includes taking a picture and / or processing an image using shooting parameters that match the optical lens information.
23. A device for transmitting optical lens information, used for an optical lens, wherein the optical lens is detachably connected to an electronic device, characterized in that, The optical lens includes a tagging device, the device comprising: The transmitting module is used to transmit optical lens information of the optical lens or indication information of the optical lens to the electronic device through the tag device during the process of the electronic device communicating with the tag device based on the first action.
24. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method for transmitting optical lens information as claimed in any one of claims 1 to 18.
25. An optical lens, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method for transmitting optical lens information as described in any one of claims 19 to 21.
26. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method for transmitting optical lens information as claimed in any one of claims 1 to 18, or implement the steps of the method for transmitting optical lens information as claimed in any one of claims 19 to 21.
