Positioning method and electronic equipment

The method modulates visible light signals with identification information for accurate positioning without image capturing, improving user experience and device interaction.

CN119064909APending Publication Date: 2024-12-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310645917.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing indoor positioning methods using visible light communication require cumbersome operations and image capturing, leading to potential positioning errors and reduced user experience due to image quality requirements and increased power consumption.

Method used

A method that modulates light signals from visible light sources with identification information, allowing devices to demodulate and determine positioning without complex algorithms, using ambient light sensors for high sampling rate and accuracy, and enabling interaction with linked devices based on positioning.

Benefits of technology

Simplifies the positioning process, improves accuracy, reduces power consumption, and enhances user experience by allowing direct interaction with linked devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064909A_ABST
    Figure CN119064909A_ABST
Patent Text Reader

Abstract

The invention provides a positioning method and electronic equipment, and relates to the technical field of positioning. The method comprises the following steps that: receiving equipment receives a first target optical signal and demodulates the first target optical signal to obtain a first modulation parameter; wherein the first target optical signal is obtained by the first sending device through modulation based on the first modulation parameter. Then, the receiving device obtains identification information of the first sending device according to the first modulation parameter; then, the receiving equipment determines a first positioning position of the receiving equipment according to the identification information of the first sending equipment; the user does not need to carry out tedious positioning operation, and the positioning process is simple. Meanwhile, in the process of analyzing the optical signals, complex algorithm processing is not needed. Therefore, the positioning precision is improved, the power consumption of the equipment is saved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of positioning technology, and in particular to a positioning method and electronic equipment. Background Art

[0002] With the development of visible light communication technology, fluorescent lamps or light-emitting diodes (LEDs) can be used for lighting, and can achieve communication under different distances and bandwidth conditions by adjusting the brightness and light field distribution. It has the characteristics of not occupying channel resources, fast response speed and point-to-point transmission security. Since visible light is closely related to users' daily lives, visible light communication technology can provide users with indoor positioning services anytime and anywhere.

[0003] Usually, users can use electronic devices to capture images corresponding to LED lamps, and obtain their specific positions indoors based on the images. Specifically, the electronic device can decode the images captured by the image sensor to determine the position of the LED lamp. Finally, the user is located through positioning algorithms and calculations. In this way, users need to perform tedious operations such as shooting in the process of determining their own positions. And the captured images need to meet certain quality requirements to facilitate subsequent decoding by electronic devices. In other words, if the captured images do not meet the quality requirements, positioning errors will occur, reducing the accuracy of positioning. In turn, the user's experience is reduced. Summary of the invention

[0004] The embodiment of the present application provides a positioning method and electronic device, which obtains identification information of a visible light source by processing a received modulated light signal. Then, the positioning position is determined according to the identification information of the visible light source. The positioning process is realized without performing cumbersome positioning operations, and the positioning process has high accuracy, thereby improving the user experience.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In the first aspect, the embodiment of the present application provides a positioning method, which is applied to a receiving device, and the method includes: the receiving device receives a first target optical signal and demodulates the first target optical signal to obtain a first modulation parameter; wherein the first target optical signal is modulated by a first emitting device based on the first modulation parameter. Then, the receiving device obtains identification information of the first emitting device according to the first modulation parameter. Then, the receiving device determines a first positioning position of the receiving device according to the identification information of the first emitting device.

[0007] It can be seen that the embodiment of the present application can modulate the light signal emitted by the visible light source using the modulation parameters so that the emitted light signal carries the identification information corresponding to the visible light source. Then, the receiving device obtains the modulated light signal and demodulates the light signal to obtain the modulation parameters. Then the receiving device obtains the identification information corresponding to the visible light source according to the modulation parameters. Finally, the receiving device determines the first positioning position according to the identification information corresponding to the visible light source. This allows the user carrying the receiving device to obtain his own location. In this way, based on the above content, the user does not need to perform cumbersome positioning operations, and the positioning process is simple. At the same time, in the process of analyzing the light signal, there is no need to perform complex algorithm processing. The ambient light sensor in the receiving device can also be used to obtain the light signal, which has a high sampling rate and accuracy. This improves the accuracy of positioning, saves the power consumption of the receiving device, and improves the user's experience.

[0008] In an implementation of the first aspect, the method further includes: the receiving device can determine a first linkage device according to the first positioning position; the first linkage device is a device associated with the first positioning position. The receiving device detects a first trigger operation and sends a first trigger instruction to the first linkage device, where the first trigger instruction is used to instruct the first linkage device to execute the first task.

[0009] It can be seen that in the embodiment of the present application, the receiving device can find the device associated with the first positioning position according to the first positioning position. Then the receiving device can also detect the first trigger operation and send the first trigger instruction to the first linkage device to instruct the first linkage device to perform the first task. For example, when the user's first positioning position is in the first room, the receiving device can find the first smart speaker in the first room. The user can control the first smart speaker to play the first song through the receiving device.

[0010] In this way, the receiving device in the embodiment of the present application can be linked with other devices based on the positioning position, so that other devices perform corresponding tasks, provide users with more humanized functions, improve the interactivity between users and multiple devices, and improve the user's usage experience.

[0011] In an implementation of the first aspect, the method further includes: the receiving device can display the first linkage device and at least one function identifier corresponding to the first linkage device. Then, the receiving device detects a trigger operation for the function identifier and sends a first trigger instruction to the first linkage device, so that the first linkage device performs a first task corresponding to the function identifier.

[0012] It can be seen that the receiving device can display the first linkage device and at least one function identifier corresponding to the first linkage device. The user can trigger the function identifier, and after the receiving device detects the trigger operation, it controls the linkage device to perform the first task corresponding to the function identifier. The user can perceive the device associated with the first positioning position and control any device to perform the corresponding work. Provide users with more services, improve the naturalness and process of interaction, and enhance the user experience.

[0013] In an implementation manner of the first aspect, there is a first corresponding relationship between the identification information of the sending device and the position information. In the process of determining the first positioning position of the receiving device according to the identification information of the first sending device, the receiving device can determine the position information corresponding to the first sending device according to the first corresponding relationship and the identification information of the first sending device. Then, the first positioning position of the receiving device is determined according to the position information corresponding to the first sending device.

[0014] It can be seen that there is a first corresponding relationship between the identification information of the emitting device and the location information. The receiving device can determine the location information corresponding to the first emitting device based on the first corresponding relationship and the identification information of the first emitting device. Then, the first positioning position of the receiving device is determined by the location information corresponding to the first emitting device. Exemplarily, the receiving device can determine that the location information corresponding to the first lamp is the first room through the identification information corresponding to the first lamp, and then the first positioning position of the receiving device can be determined to be the first room. There is no need to rely on the captured image for positioning, which avoids positioning errors and improves the accuracy of positioning.

[0015] In an implementable manner of the first aspect, the method further includes: the receiving device can receive a second target optical signal, and the second target optical signal is modulated by the second emitting device based on a second modulation parameter. And the receiving device demodulates the second target optical signal to obtain the second modulation parameter. Then, the receiving device obtains the identification information of the second emitting device according to the second modulation parameter. Then, according to the identification information of the second emitting device, the second positioning position of the receiving device is determined; the second positioning position is different from the first positioning position. Finally, the receiving device can also send a second trigger instruction to the second linkage device according to the second positioning position. Among them, the second linkage device is a device associated with the second positioning position, and the second trigger instruction is used to instruct the second linkage device to perform the first task.

[0016] It can be seen that the receiving device can also determine its own second positioning position based on the received second target light signal. The second positioning position is different from the above-mentioned first positioning position. Then, the receiving device can control the device associated with the second positioning position to perform the first task. Exemplarily, when the first positioning position is the first room, the receiving device can find the smart speaker in the first room and control the first smart speaker to play the first song. When the second positioning position is the second room, the receiving device can find the second smart speaker in the second room and control the second smart speaker to continue playing the first song. In this way, the functions of sound following people and music flow / continuation can be realized. While simplifying the positioning process, more humanized services can be provided to users based on the positioning position to improve the user experience.

[0017] In an implementation manner of the first aspect, the method further includes: after the receiving device sends the second trigger instruction to the second linkage device, the receiving device sends a third trigger instruction to the first linkage device; the third trigger instruction is used to instruct the first linkage device to stop executing the first task.

[0018] It can be seen that after controlling the second linkage device to perform the first task, the receiving device can also send a third trigger instruction to the first linkage device to make the first linkage device stop performing the first task. Continue to use the above-mentioned first smart speaker and second smart speaker to play the first song as an example. After the receiving device controls the second smart speaker to continue playing the first song, it can control the first smart speaker to stop playing the first song. In this way, the embodiment of the present application can improve the flow / continuation process for realizing the first task and provide users with a better experience.

[0019] In an implementation of the first aspect, during the process of receiving the first target optical signal by the receiving device, the receiving device may receive at least one group of first optical signals within a preset time period; different groups of first optical signals are emitted by different emitting devices. Then, the receiving device obtains at least one group of second optical signals from the at least one group of first optical signals, each group of second optical signals includes at least two optical signals that appear repeatedly. Then, the receiving device determines the first target optical signal based on the at least one group of second optical signals.

[0020] Furthermore, in the process of determining the first target optical signal based on at least one second optical signal, the receiving device needs to obtain at least one group of third optical signals from at least one group of second optical signals, wherein the time interval between two adjacent occurrences of optical signals in each group of third optical signals is the same, and each group of third optical signals is converted into a corresponding electrical signal. Finally, the receiving device obtains the signal strength of each electrical signal, and determines the third optical signal corresponding to the electrical signal with the largest signal strength as the first target optical signal.

[0021] It can be seen that the receiving device can exclude the optical signal that appears only once in at least one group of first optical signals to obtain at least one group of second optical signals. Then, in at least one group of second optical signals, the optical signal that appears twice in a different time interval is excluded to obtain at least one group of third optical signals. Finally, each group of third optical signals is converted into a corresponding electrical signal, and the third optical signal corresponding to the electrical signal with the largest signal strength is determined as the first target optical signal. This improves the accuracy and efficiency of determining the first target optical signal.

[0022] In an implementation manner of the first aspect, there is a second corresponding relationship between the identification information of the emitting device and the modulation parameter. In the process of obtaining the identification information of the first emitting device according to the first modulation parameter, the receiving device can obtain the identification information of the first emitting device according to the second corresponding relationship and the first modulation parameter. The modulation parameter includes one or more of a light intensity parameter, a color temperature parameter, a color parameter, a spectral power distribution parameter, or a high-frequency flicker frequency parameter.

[0023] It can be seen that there is a corresponding relationship between the identification information of the sending device and the modulation parameter. The receiving device can directly obtain the identification information of the first sending device according to the second corresponding relationship and the first modulation parameter. There is no need to perform complex algorithm processing, which improves the efficiency and accuracy of obtaining the identification information of the first sending device.

[0024] In an implementation manner of the first aspect, the method further includes: the receiving device may further output location prompt information, wherein the location prompt information is used to indicate the first positioning location, and the location prompt information includes one or more of text prompt information, voice prompt information, and video prompt information.

[0025] It can be seen that the receiving device can display the determined first positioning position. The user can perceive the positioning result according to the position prompt information output by the receiving device, thereby improving the user's usage experience.

[0026] In a second aspect, an embodiment of the present application provides a positioning method, which is applied to a first sending device, and the method includes:

[0027] The first emitting device can modulate the optical signal based on the first modulation parameter to obtain the first target optical signal. Then, the first emitting device emits the modulated first target optical signal. The modulated first target optical signal is used by the receiving device to obtain the identification information of the first emitting device according to the first modulation parameter, and determine the first positioning position of the receiving device according to the identification information of the first emitting device.

[0028] It can be seen that the first target light signal emitted by the first emitting device is obtained after modulation based on the first modulation parameter. The subsequent receiving device does not need to rely on complex algorithm processing, nor does it need to rely on the captured image for positioning. It can directly obtain the identification information of the first emitting device based on the first modulation parameter, and then determine the first positioning position of the receiving device based on the identification information of the first emitting device. This simplifies the positioning process and improves the accuracy of the positioning process. This in turn improves the user experience.

[0029] In a third aspect, an embodiment of the present application provides a positioning system, which includes a sending device and a receiving device. The sending device is configured to modulate an optical signal based on a first modulation parameter to obtain a first target optical signal. The sending device is also configured to send the modulated first target optical signal. The receiving device is configured to receive the first target optical signal. The receiving device is also configured to demodulate the first target optical signal to obtain a first modulation parameter. The receiving device is also configured to obtain identification information of the sending device based on the first modulation parameter. The receiving device is also configured to determine a first positioning position of the receiving device based on the identification information of the sending device.

[0030] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein a computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the positioning method described in the first aspect above, or the positioning method described in the second aspect above.

[0031] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer can execute the positioning method as described in the first aspect above, or the positioning method as described in the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of a scenario for positioning an electronic device provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the structure of a positioning system provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 4 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0036] Figure 5A schematic diagram of an interface for adding a device provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of an interface of a modulation device provided in an embodiment of the present application;

[0038] Figure 7 A schematic diagram of an interface for prompting information provided in an embodiment of the present application;

[0039] Figure 8 A schematic diagram of another prompt information interface provided in an embodiment of the present application;

[0040] Fig. 9 A schematic diagram of an interface of a first service information provided in an embodiment of the present application;

[0041] Fig.10 A schematic diagram of an interface of a device list provided in an embodiment of the present application;

[0042] Fig.11 A schematic diagram of an interface of a second service information provided in an embodiment of the present application;

[0043] Fig.12 An interactive schematic diagram of a positioning method provided in an embodiment of the present application;

[0044] Fig.13 A schematic diagram of a process of receiving a first target optical signal provided in an embodiment of the present application;

[0045] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. At the same time, in some embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for easy understanding.

[0047] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0048] With the continuous improvement and development of electronic equipment hardware and software technology, sensor technology, mobile Internet technology, etc., indoor positioning, as a combination of sensor technology and electronic equipment, has achieved great progress in the fields of positioning accuracy, response speed and manufacturing cost. Indoor positioning technology can include infrared positioning technology, visible light positioning technology, ultrasonic positioning technology, radio frequency identification (RFID) / near field communication (NFC) positioning technology, etc., depending on the electromagnetic waves used. According to its networking protocol or design, it can include Bluetooth positioning technology, Zigbee positioning technology, Wi-Fi positioning technology, ultra-wideband positioning technology (Ultra wide band, UWB), etc. It can also include Global Positioning System (GPS) positioning technology and acceleration / magnetic field positioning technology.

[0049] Among them, infrared positioning technology is line-of-sight transmission, with extremely poor penetration, and is also easily affected by environmental factors such as lighting and smoke. Ultrasonic positioning technology has a large attenuation in the air. When used in reflection ranging, it is greatly affected by multipath effects and non-line-of-sight transmission, and the measurement data is inaccurate. Radio frequency identification positioning technology does not have communication functions, has poor anti-interference ability, requires large-scale deployment of communication devices, and is expensive. Bluetooth positioning technology has slightly poor stability, is greatly interfered by noise signals, and can only identify nearby devices. Zigbee positioning technology signal transmission is greatly affected by multipath effects and movement, and is expensive. Wi-Fi positioning technology has co-frequency interference, its power consumption is large, and it cannot achieve accurate positioning. In addition, Wi-Fi hotspots are sometimes on and sometimes off, and cannot transmit signals all the time. In ultra-wideband positioning technology, device layout needs to be carried out in advance according to needs, and it is difficult to achieve large-scale indoor coverage, and the cost is high. Global Positioning System positioning technology is mainly suitable for outdoor scenes. After passing through the wall, the satellite positioning signal will be severely weakened, and it cannot provide a reliable and high-precision positioning environment in the indoor environment. The positioning accuracy of acceleration / magnetic field positioning technology is closely related to the sensor device or user status, and the positioning accuracy is low.

[0050] Compared with the above positioning technologies, with the development of visible light communication technology, fluorescent lamps or light-emitting diodes (LEDs) can use the emitted illumination light as a carrier to transmit information while being used for lighting. Communication under different distances and bandwidth conditions only needs to be achieved by adjusting the brightness and light field distribution. It has the characteristics of not occupying channel resources, fast response speed and secure point-to-point transmission.

[0051] Usually, see Figure 1, the user can use the camera in the electronic device to capture the image corresponding to the LED lamp, and use the application in the electronic device to locate the user. Specifically, after the camera captures the image corresponding to the LED lamp, the application in the electronic device can process the image to obtain the light and dark stripe pattern corresponding to the image. Afterwards, the application decodes the light and dark stripe pattern to obtain the corresponding location information. Finally, the application further calculates the three-dimensional position coordinates of the camera through the positioning algorithm of the camera based on the location information such as the position coordinates of the LED lamp to obtain the positioning result. Then, the specific location of the user in the room is obtained.

[0052] That is to say, in the process of determining their own position, users need to rely on the camera and camera system of the electronic device. For example, after shooting, the electronic device needs to obtain the image captured in the album to perform positioning. Since the album application involves images other than LED lamp images taken by the user, there will be a situation where user privacy is leaked when the electronic device calls the album application. In addition, the user needs to use the electronic device to perform a series of photo taking and positioning operations, which increases the power consumption of the electronic device. At the same time, the electronic device also needs the captured image to meet certain quality requirements when decoding the image. If the captured image does not meet the quality requirements, positioning errors will occur, reducing the accuracy of positioning. In turn, the user's user experience is reduced.

[0053] Based on the above content, the embodiments of the present application provide a positioning method and an electronic device, which can be applied to a variety of scenarios, such as home scenes and communities, hospitals, large shopping malls, indoor pedestrian streets, underground parking lots, and work factories, etc., which have a large range and a relatively complex spatial environment. It can also be applied to outdoor scenes such as highways, parks, and scenic spots.

[0054] The embodiment of the present application modulates the light signal emitted by the visible light source based on the light emitting principle of the visible light source, so that the emitted light signal carries the identification information corresponding to the visible light source. The user can obtain the modulated light signal through the electronic device carried by the user, and then obtain the location where he is. Specifically, the electronic device receives the light signal emitted by the visible light source, and demodulates it to identify the identification information carried by the light signal. Afterwards, the electronic device obtains the corresponding positioning position based on the correspondence between the identification information and the corresponding position. Furthermore, in the home scenario, after the electronic device obtains the positioning position, it can also obtain other electronic devices associated with the positioning position according to the positioning position, and establish information interaction with other electronic devices.

[0055] The positioning method provided in this application can be applied to the positioning system. Figure 2A positioning system provided in an embodiment of the present application includes a first electronic device 101 (such as an LED lamp), a second electronic device 102 (a device to be positioned used by a user, such as a user's mobile phone), and a third electronic device 103 (a modulation device, such as a user's laptop computer).

[0056] In some embodiments of the present application, a communication connection may be established between the first electronic device 101 and the third electronic device 103. The communication connection may include a wireless communication connection. For example, the wireless communication connection may include a short-range wireless communication connection such as a Bluetooth communication connection and a wireless local area network communication connection. In an implementable manner, the third electronic device 103 is used to control the first electronic device 101 to perform signal modulation.

[0057] In some embodiments of the present application, the user may use the second electronic device 102 to implement the positioning process with the first electronic device 101. The number of the first electronic device 101 may be one or more.

[0058] The positioning system provided in the embodiment of the present application may also include other electronic devices such as a fourth electronic device 104 (e.g., a user's smart speaker) in addition to the first electronic device 101, the second electronic device 102, and the third electronic device 103. The fourth electronic device 104 and the first electronic device 101 are both set at the same indoor location. A communication connection may be established between the second electronic device 102 and the fourth electronic device 104.

[0059] The positioning system provided in the embodiment of the present application includes but is not limited to information interaction between the above-mentioned devices, and can also be information interaction between one device and multiple devices. Those skilled in the art can determine the type and quantity of electronic devices according to actual needs, and these designs do not exceed the protection scope of the embodiment of the present application.

[0060] For example, in a home scene, when a user is moving a mobile phone, the mobile phone can communicate and interact with LED lamp 1 in room A, and obtain the location information of "room A" to realize the indoor positioning process. The mobile phone can also communicate and interact with LED lamp 2 in room B, and obtain the location information of "room B" to realize information interaction with other electronic devices in room B based on the obtained location information.

[0061] For example, the user moves in multiple rooms. When the user moves to room A with a mobile phone, the mobile phone determines that the location is room A based on the LED lamp 1 and obtains the smart speaker in room A. After that, the mobile phone displays the service card corresponding to the smart speaker, such as the feature ability (FA) card, on the screen. Then the user can directly control the smart speaker to perform the corresponding task based on the FA card corresponding to the smart speaker. In other words, the user does not need to open the home application corresponding to the smart speaker, but can directly click on the FA card to make the interface displayed on the mobile phone jump directly to the service interface corresponding to the smart speaker. Among them, the FA card is used to implement the service functions of the application program (APP). An APP can have multiple FAs, and different FAs represent different service functions.

[0062] For another example, when the user is in room A, the smart speaker 1 in room A plays song A. Later, when the user moves to room B with the mobile phone, the mobile phone determines that the location is room B based on the LED lamp 2 and obtains the smart speaker 2 in room B. After that, the mobile phone controls the smart speaker 2 in room B to continue playing song A. In this way, the user's location can be obtained in real time, and the electronic devices associated with different rooms can be controlled to work together based on the user's location. Taking the above as an example, the user can be provided with the function of service flow / continuation such as "sound follows the person".

[0063] In some embodiments of the present application, the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or bluetooth lowenergy (BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM) and infrared (IR), etc.

[0064] It can be understood that the electronic device in the embodiments of the present application can be, for example, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable device, an augmented reality technology (AR) device, a virtual reality (VR) device, a vehicle-mounted device, a smart screen, a smart car, a smart speaker, a robot, and a smart home device, etc. The present application does not impose any special restrictions on the specific form of the electronic device.

[0065] Furthermore, the first electronic device 101, the second electronic device 102, the third electronic device 103 and the fourth electronic device 104 may be installed with an operating system or may not be installed with an operating system, and the operating system includes but is not limited to Or other operating systems. This application does not limit the specific type of electronic equipment or the type of operating system when an operating system is installed.

[0066] The first electronic device 101, the second electronic device 102, the third electronic device 103, and the fourth electronic device 104 in the embodiment of the present application can be implemented by different / same devices. For example, the second electronic device 102, the third electronic device 103, and the fourth electronic device 104 in the embodiment of the present application can be implemented by different / same devices. Figure 3 It is implemented by the hardware structure in.

[0067] It should be noted that the first electronic device 101 may also be referred to as a sending device, the second electronic device 102 may also be referred to as a receiving device, and the fourth electronic device 104 may also be referred to as a linkage device.

[0068] For example, taking the electronic device as a mobile phone, Figure 3 A schematic structural diagram of an electronic device is shown.

[0069] The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc.

[0070] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.

[0071] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0072] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0073] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0074] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments of the present application, the memory in the processor 110 may be a cache memory (CACHE). The memory may store instructions or data that have been used or are frequently used by the processor 110. If the processor 110 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0075] In some embodiments of the present application, the memory also stores other data in addition to the computer program. The other data may include data generated after the operating system or application is run, and the data includes system data (such as configuration parameters of the operating system) and user data. For example, the data cached by the application opened by the user is typical user data. The memory generally includes internal memory and external memory. The internal memory may be a random access memory (RAM), a read-only memory (ROM), and a CACHE, etc. The external memory may include a solid state drive (Solid State Disk or Solid State Drive, SSD), a universal flash storage (Universal Flash Storage, UFS), a hybrid hard drive (HHD), a disk, a floppy disk, an optical disk, a USB flash drive, and a multimedia card, etc.

[0076] It is understandable that the connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0077] In some embodiments of the present application, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a BeiDou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and / or a Satellite Based Augmentation System (SBAS).

[0078] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments of the present application, the pressure sensor 180A can be disposed on the display screen 194 .

[0079] The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments of the present application, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting.

[0080] The air pressure sensor 180C is used to measure air pressure. In some embodiments of the present application, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0081] The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments of the present application, when the electronic device is a flip phone, the electronic device can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0082] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in all directions (generally three axes). When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0083] The distance sensor 180F is used to measure the distance. The electronic device can measure the distance by infrared or laser. In some embodiments of the present application, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0084] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outward through the light emitting diode. The electronic device uses the photodiode to detect infrared reflected light from nearby objects.

[0085] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touch.

[0086] In some embodiments of the present application, in indoor scenes, the ambient light sensor 180L can also be used to collect visible light emitted by LED lamps through free space optical wireless channels, and convert the optical signal corresponding to the visible light into an electrical signal. Afterwards, the ambient light sensor 180L identifies the identification information carried by the optical signal based on the electrical signal, and obtains the corresponding location information based on the corresponding relationship between the identification information and the indoor location, thereby realizing the indoor positioning process.

[0087] The fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0088] The temperature sensor 180J is used to detect temperature. In some embodiments of the present application, the electronic device uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.

[0089] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it.

[0090] The bone conduction sensor 180M can obtain vibration signals. In some embodiments of the present application, the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure beating signals. In some embodiments of the present application, the bone conduction sensor 180M can also be set in the earphones to form bone conduction earphones.

[0091] The electronic device can realize the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0092] The display screen 194 is used to display files, images, videos, etc. The display screen 194 includes a display panel. In some embodiments of the present application, the electronic device may include one or more display screens 194. The user may open a target file stored in the disk through the display screen 194, and the electronic device controls the display screen 197 to display the corresponding target file in response to the user's opening action on the target file.

[0093] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0094] Figure 4 (A) is a software structure block diagram of the electronic device of an embodiment of the present application.

[0095] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments of the present application, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime), the system library, and the kernel layer.

[0096] The application layer can include a series of application packages.

[0097] like Figure 4As shown in (A), the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0098] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0099] like Figure 4 As shown in (A), the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0100] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0101] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0102] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0103] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0104] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0105] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0106] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0107] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library of the Android system.

[0108] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0109] The system library may include multiple functional modules, such as a photosensitive module, a demodulation module, and a positioning module. The photosensitive module is used to obtain light signals; the demodulation module is used to convert light signals into electrical signals and demodulate the electrical signals to obtain corresponding identification information; the positioning module is used to generate a positioning position based on the identification information.

[0110] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0111] like Figure 4 As shown in (B), the interactive system architecture provided by the embodiment of the present application includes a physical unit and a functional unit, wherein the physical unit includes an ambient light sensor and a processor in a first electronic device such as an LED lamp and a second electronic device such as a mobile phone. The functional unit includes a modulation module and a driving module in the first electronic device, a photosensitive module, a demodulation module, and a positioning module in the second electronic device.

[0112] like Figure 4 As shown in (C), the process of executing the positioning method of the interactive system provided in the embodiment of the present application is as follows: the modulation module in the first electronic device can modulate the optical signal based on the modulation parameter, and send a driving signal to the driving module to emit the modulated optical signal.

[0113] The photosensitive module of the ambient light sensor in the second electronic device can receive the light signal emitted by the first electronic device. Then, the photosensitive module sends the light signal to the demodulation module. The demodulation module demodulates the light signal to obtain the modulation parameter. And obtains the identification information corresponding to the first electronic device according to the modulation parameter. Then the demodulation module sends the identification information corresponding to the first electronic device to the positioning module. After receiving the identification information, the positioning module obtains the positioning position of the first electronic device based on the corresponding relationship between the identification information of the first electronic device and the position to which the first electronic device belongs.

[0114] The technical solutions involved in the following examples can all be implemented in electronic devices having the above-mentioned hardware architecture and software architecture.

[0115] The embodiment of the present application provides a positioning method, which modulates the optical signal emitted by the first electronic device 101 so that the modulated optical signal carries the identification information of the first electronic device 101. Then the second electronic device 102 receives the modulated optical signal emitted by the first electronic device 101, and demodulates the modulated optical signal to obtain the identification information carried by it. Afterwards, the second electronic device 102 obtains the indoor position information corresponding to the identification information, i.e., the positioning position, based on the identification information, to achieve indoor positioning.

[0116] In some examples, the number of first electronic devices 101 is one or more. The number of second electronic devices 102 can be one or more. The technical solution provided in the embodiment of the present application can realize indoor positioning by a second electronic device 102 according to multiple modulated optical signals emitted by multiple first electronic devices 101. For example, when there are multiple LED lamps in room A, or there are multiple mobile phones in room A, different users can use their own mobile phones to interact with different LED lamps to obtain the positioning position in room A.

[0117] Specifically, in the indoor scene of the home, LED lamps are installed in every room of the user's home, and the LED lamps can emit modulated visible light when in working state. When the user moves indoors with a mobile phone, the ambient light sensor in the mobile phone can collect and demodulate the visible light emitted by the LED lamps in the room to obtain the location corresponding to the LED lamp, that is, the user is in a room indoors. The mobile phone then identifies other electronic devices in the room based on the location to control other electronic devices to perform corresponding tasks.

[0118] In indoor scenes with complex spatial environments, such as large shopping malls, indoor pedestrian streets, underground parking lots, and work plants. Take the above-mentioned large shopping mall as an example. There will be multiple stores in the large shopping mall, and LED lamps will be installed in each store. When the user moves around the mall with a mobile phone, the ambient light sensor in the mobile phone can collect and demodulate the light signals emitted by the LED lamps in the store, and obtain the positioning position corresponding to the LED lamp, that is, the user is located in a store in the mall. If the user wants to go to other stores, the mobile phone can also provide navigation and other services to the user based on the positioning position.

[0119] It can be seen that visible light is closely related to the daily life of users, and many electronic devices in the above indoor scenes contain visible light sources. The embodiments of the present application can provide users with more intelligent, humanized and complex functions such as indoor positioning and navigation services anytime and anywhere, thereby improving the user's experience.

[0120] It should be noted that the second electronic device 102 and the third electronic device 103 may be different electronic devices of the same user. For example, the second electronic device 102 is a device to be located used by the first user, such as a mobile phone, and the third electronic device 103 is a modulation device used by the first user, such as a laptop computer. The first user can use the laptop computer to modulate the LED lamp, and then use the mobile phone to locate it.

[0121] The second electronic device 102 and the third electronic device 103 may also be different electronic devices of different users. For example, the second electronic device 102 is a device to be located such as a mobile phone used by a first user, and the third electronic device 103 is a modulation device such as a laptop used by a second user. The first user may be a mother, and the second user may be a child. The mother may use a laptop to modulate the LED lamp, and then the child may use a mobile phone to locate it.

[0122] A device of the same user can also realize the modulation function corresponding to the second electronic device 102 and the positioning function corresponding to the third electronic device 103. For example, the first user can use a mobile phone to modulate the LED lamp, and then continue to use the mobile phone for positioning.

[0123] Below, taking the first electronic device 101 as an LED lamp, the second electronic device 102 as the user's first mobile phone (modulation device), and the third electronic device 103 as the user's second mobile phone (positioning device) as examples, the technical solution provided in the example of this application is described in detail in combination with the accompanying drawings.

[0124] In some embodiments of the present application, a user can use a first mobile phone to bind an LED lamp to a location to which the LED lamp belongs in advance, so as to establish a first corresponding relationship between the LED lamp and the location to which the LED lamp belongs. It is understandable that, in the process of binding the LED lamp and the location to which the first mobile phone belongs, the identification information corresponding to the LED lamp can be obtained after establishing a communication connection with the LED lamp. Then, the first mobile phone detects the setting operation for the location to which the LED lamp belongs, and binds the identification information corresponding to the LED lamp and the location to which the LED lamp belongs. Then, the first mobile phone can control the LED lamp to modulate the light signal emitted based on the identification information of the LED lamp without affecting the normal lighting of the LED lamp, so that the identification information of the LED lamp is loaded into the light signal emitted by the LED lamp. This facilitates the subsequent receiving end to receive the light signal containing the identification information and demodulate the corresponding identification information from the light signal.

[0125] In one possible implementation, a user can add an LED lamp in a smart home APP and select a corresponding location for binding. After detecting the binding operation input by the user, the first mobile phone can establish a first corresponding relationship between the identification information of the LED lamp and its location information. By associating the LED lamp with the location, the first mobile phone can facilitate the subsequent determination of the location information corresponding to the LED lamp through the identification information corresponding to the LED lamp.

[0126] For example, Figure 5 This is a schematic diagram of an interface for adding a device provided in an embodiment of the present application. Figure 5 As shown in (A) of FIG. 1 , it is a front view of a first mobile phone provided in an embodiment of the present application. A smart home APP icon 500 is displayed on the display screen of the first mobile phone. The user can click on the smart home APP icon 500. Figure 5 As shown in (B), in response to a click operation on the smart home APP icon, the first mobile phone displays the user interface of the smart home APP, and the user interface may include pre-configured scene names, electronic devices at home, and corresponding status information. For example, the electronic devices at home and the corresponding status information include the TV in the living room (online), the TV in the master bedroom (online), the audio system in the master bedroom (offline), and the smart door lock (online). The pre-configured scene names include home scene, sleep scene, and going out scene. The user interface may also include icons of configured electronic devices.

[0127] It is understandable that the configured electronic device can be an electronic device associated with a user account. The user needs to log in to the corresponding user account in the smart home APP. And the electronic device pre-configured by the user needs to be bound to the user account to complete the configuration. If the user has not logged in to the smart home APP, he needs to log in to the corresponding user account and enter the user name and password.

[0128] Continue to see Figure 5 In (B), users can also click the "+" icon on the user interface to add electronic devices and create scenes with one click. Figure 5 As shown in (C) in the figure, after the user clicks the "+" icon, the first mobile phone controls the display screen to display a drop-down menu in response to the user's click operation. The drop-down menu includes an add device control 501, a share device control 502, a create scene control 503, a connect third-party platform control 504, and a modulate device control 505. The user can click the pre-configured add device control 501 in the drop-down menu to trigger the entry into the add device interface. Figure 5As shown in (D), the first mobile phone displays an add device interface in response to the user clicking the add device control 501. The add device interface includes a first content area 506 and a second content area 507. The first content area 506 is used to display the device name of the added device, and the second content area 507 is used to display the room corresponding to the pre-added device. The user can add a device to the ">" control in the first content area 506, and click "Master Bedroom" in the second content area 506 to set the room to which the electronic device belongs. Then click the OK control 508 to complete the device adding process. For example, the user adds LED lamp 1 and selects the corresponding room as the master bedroom. In this way, the first mobile phone can associate the added device with the room to which it belongs in response to the user clicking the OK control 508.

[0129] It should be noted that the first mobile phone can associate all LED lamps in the home scene with the rooms to which they belong, and the implementation form of the association is not limited in the embodiment of the present application.

[0130] After the first mobile phone associates the LED lamp with its location, it can store the first correspondence between the LED lamp and its location to the server. In this way, electronic devices other than the first mobile phone can also obtain the first correspondence between the LED lamp and its location from the server. For example, when a user uses a tablet computer, he can obtain the first correspondence between the LED lamp and its location by logging into the smart home APP and the user account in the tablet computer.

[0131] In some embodiments of the present application, after establishing a first corresponding relationship between an LED lamp and a location to which the LED lamp belongs, the first mobile phone can control the LED lamp to modulate the emitted light signal based on identification information corresponding to the LED lamp.

[0132] It should be noted that the user can control the light signal modulated by the LED lamp through the smart home APP in the first mobile phone, and can also control the light signal modulated by the LED lamp through other software solutions. The user can also control the light signal modulated by the LED lamp through a desktop computer, a tablet computer, and a laptop computer. The embodiment of the present application does not specifically limit the implementation method of the light signal modulated by the LED lamp and the electronic device used by the user.

[0133] The following is an explanation of the process of a user modulating an LED lamp.

[0134] Figure 6 This is a schematic diagram of a modulation device interface provided in an embodiment of the present application. Figure 6 As shown in (A) in FIG. 1 , the user can click on the pre-configured modulation device control 505 in the drop-down menu to trigger the modulation device interface. Figure 6As shown in (B), the first mobile phone displays a modulation device interface in response to the user clicking on the modulation device control 505. The modulation device interface includes a modulation parameter control 601, at least one pre-modulation device control 602, a select all control 603, and a modulation control 604. After the user clicks on any pre-modulation device control 602, the first mobile phone can display the modulation details page of the device corresponding to the modulation device control 602. Exemplarily, after the first mobile phone detects that the user clicks on the LED lamp 1, the modulation details page corresponding to the LED lamp 1 is displayed. And after detecting that the user clicks on the modulation details page, the first mobile phone can only control the LED lamp 1 to modulate the light signal emitted by itself.

[0135] In addition, the first mobile phone can also control all LED lamps to modulate the light signals emitted by themselves. After the first mobile phone detects that the user clicks on the all-select control 603, the LED lamps in the modulation device interface are controlled to enter the all-select state. Then, after the user clicks on the modulation parameter control 601, the first mobile phone can display the parameter menu corresponding to the modulation parameter control 601. The parameter menu may include light intensity, color temperature, color, spectral power distribution, and high-frequency flicker frequency, etc. The user can select any modulation parameter in the parameter menu, and the first mobile phone can display the modulation parameter in the modulation parameter control 601 according to the modulation parameter selected by the user. It can be understood that the user can select one or more modulation parameters in the parameter menu. The first mobile phone can control the LED lamp to modulate the modulation parameter of the light signal. For example, the first mobile phone can control the LED lamp to modulate the high-frequency flicker frequency of the light signal. For another example, the first mobile phone can control the LED lamp to modulate the light intensity of the light signal. Finally, the first mobile phone detects the user's click operation on the modulation control 604, and can control all LED lamps to perform subsequent modulation tasks based on the modulation parameter corresponding to the modulation parameter control 601.

[0136] In some embodiments of the present application, when the first mobile phone is controlling an LED lamp to modulate an emitted light signal, the first mobile phone can control multiple LED lamps to modulate the same type of modulation parameters of the emitted light signal, or can control multiple LED lamps to modulate different types of modulation parameters of the emitted light signal.

[0137] Exemplarily, the first mobile phone can control the LED lamp 1 to modulate the high-frequency flickering frequency of the light signal, and control the LED lamp 2 to modulate the high-frequency flickering frequency of the light signal. In another exemplary embodiment, the first mobile phone can control the LED lamp 1 to modulate the high-frequency flickering frequency of the light signal, and control the LED lamp 2 to modulate the light intensity of the light signal.

[0138] In some embodiments of the present application, the first mobile phone can store a second correspondence between the identification information of the LED lamp and the modulation parameters of the light signal emitted by the LED lamp. The first mobile phone can determine the corresponding modulation parameters based on the identification information of the LED lamp, and control the LED lamp to modulate based on the modulation parameters.

[0139] Exemplarily, the identification information of LED lamp 1 corresponds to the modulation parameter A1 of the light signal emitted by LED lamp 1, and the identification information of LED lamp 2 corresponds to the modulation parameter A2 of the light signal emitted by LED lamp 2. The modulation parameter A1 is different from the modulation parameter A2. The modulation parameter A1 and the modulation parameter A2 can be the same type of modulation parameters, for example, the modulation parameter A1 and the modulation parameter A2 are both high-frequency flicker frequencies.

[0140] For another example, the identification information of LED lamp 1 corresponds to the modulation parameter A1 of the light signal emitted by LED lamp 1, and the identification information of LED lamp 2 corresponds to the modulation parameter B2 of the light signal emitted by LED lamp 2. The modulation parameter A1 is different from the modulation parameter B2. The modulation parameter A1 and the modulation parameter B2 can be different types of modulation parameters, for example, the modulation parameter A1 is the light intensity, and the modulation parameter B2 is the high-frequency flicker frequency.

[0141] Taking modulation parameters A1 and A2 as high-frequency flicker frequencies as an example, usually, the flicker frequency of LED is at least 100Hz, which is imperceptible to the human eye. LED lamps can use binary on-off keying (OOK) modulation. Binary on-off keying modulation uses a unipolar non-return-to-zero code sequence to control the on and off of the sinusoidal carrier. Take one amplitude as 0, that is, the LED lamp emits light, and the other amplitude is non-zero, that is, the LED lamp does not emit light. The subsequent receiving end can receive the optical signal and perform OOK demodulation based on the corresponding modulation parameters. For example, modulation parameter A1 can be "1, 1, 1, 0 and 0", and modulation parameter A2 can be "1, 0, 1, 1 and 0".

[0142] It should be noted that the modulation mode may include OOK modulation, OFDM modulation, PM modulation, CSK modulation, FSK modulation, etc. The embodiment of the present application does not specifically limit this.

[0143] In this way, the first mobile phone can determine the corresponding modulation parameters based on the identification information of the LED lamp, and control the LED lamp to modulate based on the modulation parameters. Different LED lamps have different corresponding identification information, and the modulation parameters corresponding to the identification information of different LED lamps are also different. In turn, the light signals emitted by different LED lamps have different signal characteristics.

[0144] It should be noted that, in the process of determining the corresponding modulation parameters based on the identification information of the LED lamp, the first mobile phone can determine the modulation parameters based on the second corresponding relationship between the identification information of the LED lamp and the modulation parameters stored in advance and the identification information of the LED lamp. The modulation parameters corresponding to the identification information of the LED lamp can also be determined using a preset model and / or a preset algorithm. The embodiment of the present application does not specifically limit the implementation method of determining the modulation parameters.

[0145] In order to make the light signal emitted by the LED lamp carry the identification information of the LED lamp, the first mobile phone can control each LED lamp to encode its corresponding identification information and load it into the emitted light signal, so that the identification information is carried in the visible light signal for transmission.

[0146] The identification information corresponding to the LED lamp may be unique information for identifying the identity of the LED lamp. The identification information corresponding to the LED lamp may include a preset value of the LED lamp, a MAC address of the LED lamp, a hardware number of the LED lamp, or a string generated by the system, for example, one or more plain text or encrypted information such as the international mobile equipment identity (IMEI), mobile equipment identifier (MEID), personal identification number (PIN), and device serial number (SN) corresponding to the LED lamp.

[0147] Since the identification information corresponding to each LED lamp is different, after each LED lamp performs the modulation task based on its own identification information, the light signal it emits also has different signal characteristics. Therefore, it is possible to obtain the identification information of the corresponding LED lamp and the room to which the LED lamp belongs based on the emitted light signal.

[0148] In some implementations of the present application, when the first mobile phone controls the LED lamp to perform a modulation task, the first mobile phone can store the corresponding relationship between the identification information of the above-mentioned LED lamp, the corresponding position of the LED lamp, and the modulation parameters of the light signal emitted by the LED lamp. It can be understood that the modulation parameters of different light signals correspond to the identification information of different LED lamps one by one, and the identification information of different LED lamps can correspond to the same room or different positions. There can be certain mapping rules between the above three, so as to establish the above-mentioned corresponding relationship.

[0149] In one possible implementation, the electronic device may store the identification information of the LED lamp, the corresponding position of the LED lamp, and the corresponding relationship between the light signal emitted by the LED lamp in the form of a mapping table. In a home scene, the corresponding position of the LED lamp may include a room, a staircase, a corridor, etc., and the room may include a master bedroom, a second bedroom, a restroom, a kitchen, a balcony, a study, etc.

[0150] Exemplarily, referring to Table 1, the identification information corresponding to LED lamp 1 is the SN number of LED lamp 1, the room corresponding to LED lamp 1 is room A, the modulation parameter of the light signal emitted by LED lamp 1 is modulation parameter A1, and modulation parameter A1 carries the SN number of LED lamp 1. The identification information corresponding to LED lamp 2 is the SN number of LED lamp 2, the room corresponding to LED lamp 2 is room A, the modulation parameter of the light signal emitted by LED lamp 1 is modulation parameter A2, and modulation parameter A2 carries the SN number of LED lamp 2. The identification information corresponding to LED lamp 3 is the SN number of LED lamp 3, the room corresponding to LED lamp 3 is room B, the modulation parameter of the light signal emitted by LED lamp 3 is modulation parameter A3, and modulation parameter A3 carries the SN number of LED lamp 3. The identification information corresponding to LED lamp 4 is the SN number of LED lamp 4, the room corresponding to LED lamp 4 is room C, the modulation parameter of the light signal emitted by LED lamp 4 is modulation parameter A4, and modulation parameter A4 carries the SN number of LED lamp 4.

[0151] It should be noted that, in order to facilitate the management of the data related to the above-mentioned LED lamps, the smart home APP can store the data related to the above-mentioned LED lamps in the corresponding data storage table. The data storage table may include multiple data rows and data columns, and present the identification information of each of the above-mentioned LED lamps, the room corresponding to the LED lamp, and the corresponding relationship of the light signal emitted by the LED lamp through the data rows and data columns. The embodiment of the present application does not specifically limit the implementation method of the above-mentioned storage of data related to LED lamps.

[0152] Table 1

[0153]

[0154] In some implementations of the present application, LED lamps can be used for indications and reminders in addition to lighting, such as LED indicator lamps. When the LED lamps are used for non-lighting purposes, changes in the light signals emitted by the LED lamps can be perceived by the naked eye. LED lamps can use the same or different modulation methods as described above. In other words, the LED lamps in the implementation of the present application can emit modulated light signals, and the modulated light signals may have different characteristic changes such as brightness, color, and stroboscopic. The modulated light signals may be perceptible to the human eye or imperceptible to the human eye. And different modulation requirements can be set according to the different uses of the LED lamps.

[0155] In indoor scenes with more complex spatial environments, scene operators can also use applications in electronic devices to control the light signals modulated by LED lamps. Let's continue with the above-mentioned large shopping mall as an example. Scene operators can be managers of the shopping mall or shop owners of various stores. Mall managers and shop owners can use the mall's application to modulate the LED lamps installed indoors. It should be noted that multiple shopping malls can use the same or different applications to perform modulation tasks. The embodiments of the present application include but are not limited to using applications to perform modulation tasks. At the same time, the embodiments of the present application include but are not limited to modulation control within the indoor range, and can also be used for modulation control within other ranges such as provinces, cities, and administrative regions.

[0156] In one possible implementation, when the first mobile phone detects that the manager performs an association operation on the LED lamps in each store, one or more LED lamps in each store can be associated with the store to which they belong. The first mobile phone can then control the LED lamp to encode and modulate its own identification information into a visible light signal, and store the corresponding relationship between the identification information of the LED lamp, the store to which the LED lamp corresponds, and the light signal emitted by the LED lamp to the server.

[0157] In another possible implementation, when the first mobile phone detects that the store performs an association operation on the LED lamps in the store, one or more LED lamps in the store can be associated with the store to which they belong. The first mobile phone can then control all LED lamps to encode and modulate their own identification information into the form of visible light signals, and store the corresponding relationship between the identification information of the LED lamps, the store to which the LED lamps correspond, and the light signal emitted by the LED lamps to the server. For the first mobile phone to perform the association operation, control the LED lamps to perform the modulation task, and the storage operation, please refer to the description of the above-mentioned related content, which will not be repeated here.

[0158] It can be seen that the embodiments of the present application use visible light for communication, and the indoor communication information will not be leaked to the outdoors, so it has good confidentiality. In addition, there are usually a large number of visible light sources in indoor scenes, and the visible light sources will illuminate for a long time. In other words, communication can be carried out as long as the visible light is illuminated, that is, the light signal carrying the identification information relative to the indoor position will continue to be emitted. Then, subsequent indoor positioning and navigation processes can be performed. There is no need for users to perform cumbersome operations, which improves user convenience.

[0159] In some embodiments of the present application, after the first mobile phone controls the LED lamp to perform the modulation task, the second mobile phone can implement a positioning process based on the light signal emitted by the LED lamp.

[0160] In some embodiments of the present application, the second mobile phone receives the optical signal sent by the LED lamp, converts the optical signal into an electrical signal, and demodulates the electrical signal to obtain the modulation parameters corresponding to the LED lamp. Then, the identification information corresponding to the LED lamp is determined by the modulation parameters corresponding to the LED lamp. In other words, the demodulated electrical signal carries the identification information corresponding to the LED lamp, and the second mobile phone can obtain the corresponding positioning position of the user according to the identification information corresponding to the LED lamp.

[0161] In this way, when the user moves indoors, the second mobile phone only needs to decode the received light signal and find the position of the corresponding LED lamp to obtain the user's indoor position.

[0162] In some embodiments of the present application, the optical signal is acquired by a sensor of the second mobile phone, such as an ambient light sensor, which can acquire the optical signal within a preset time and analyze it. The preset time can include 0.5 seconds, 1.0 seconds, and 1.5 seconds. The embodiments of the present application do not specifically limit the above preset time.

[0163] In some embodiments of the present application, when the user uses the second mobile phone normally and moves indoors, the user does not need to perform a series of complex operations on the second mobile phone. The ambient light sensor in the second mobile phone can obtain light signals and convert them into electrical signals without the user noticing. The second mobile phone then demodulates the electrical signals to obtain the positioning position. In addition, the ambient light sensor in the second mobile phone has a high sampling rate and can quickly collect light signals, so that signal analysis can be performed quickly later. In this way, the time of the entire positioning process is shortened to achieve an efficient positioning process. At the same time, the ambient light sensor also has high measurement accuracy and low power consumption, which can improve the positioning accuracy of the entire positioning process without affecting the battery life of the second mobile phone.

[0164] In one possible implementation, when the screen of the second mobile phone is on, the ambient light sensor can automatically trigger the positioning process. That is, when the user is using the second mobile phone, the second mobile phone can detect the screen-on operation, control the ambient light sensor to obtain the light signal and convert the light signal into an electrical signal, that is, the positioning process is always executed in the background. The user does not need to perform a series of positioning operations, and can get the positioning position without any feeling.

[0165] For example, in a home scene, when the user uses the second mobile phone and moves to room A, LED lamp 1 sends a light signal to the second mobile phone, and the second mobile phone decodes the light signal sent by LED lamp 1 and obtains the identification information of LED lamp 1. Then the location corresponding to LED lamp 1, i.e. room A, is found. For another example, in an indoor scene with a relatively complex spatial environment, when the user uses the second mobile phone and moves to store O, LED lamp 2 sends a light signal to the second mobile phone, and the second mobile phone decodes the light signal sent by LED lamp 2 and obtains the identification information of LED lamp 2. Then the location corresponding to LED lamp 2, i.e. store O, is found.

[0166] In another possible implementation, the user can also control the ambient light sensor to perform the positioning process. For example, the user can turn on or off the automatic positioning function corresponding to the ambient light sensor. The second mobile phone detects the operation of turning on the automatic positioning function, controls the ambient light sensor to obtain the light signal and convert the light signal into an electrical signal, that is, triggers the execution of the positioning process after detecting the user's operation. The embodiment of the present application does not limit the specific implementation method of triggering the positioning process.

[0167] It should be noted that the method of demodulating the visible light signal may include demodulating the visible light signal by on-off keying demodulation, or demodulating the visible light signal by pulse position demodulation, or demodulating the visible light signal by multi-carrier demodulation. The embodiments of the present application are not specifically limited.

[0168] In some embodiments of the present application, a plurality of LED lamps are usually provided indoors. Since the LED lamps are used as lighting sources and are always turned on when in use, the LED lamps will repeatedly send light signals. In this way, the second mobile phone will receive multiple light signals at the same time. Therefore, the second mobile phone needs to filter out the light signal emitted by the LED lamp closest to the user from the multiple light signals received. In other words, based on the principle that the closer the distance, the greater the signal strength, the light signal with the greatest intensity that is filtered out is the light signal emitted by the LED lamp closest to the user. Then, the specific LED lamp is determined based on the signal, thereby determining the indoor position of the user.

[0169] Specifically, after receiving at least one optical signal, the second mobile phone first converts at least one optical signal into an electrical signal. Then, a signal component is extracted from the electrical signal, and each signal component corresponds to a different LED lamp. Then, each signal component is sorted from large to small according to the signal strength, and the signal component with the largest signal strength is determined as the target electrical signal. The target electrical signal corresponds to the optical signal emitted by the LED lamp closest to the user.

[0170] In some embodiments of the present application, in the process of determining the LED lamp closest to the user, the second mobile phone can pre-process the received multiple light signals after receiving the multiple light signals to obtain light signals that appear repeatedly within a certain period of time.

[0171] In one possible implementation, the second mobile phone can exclude the light signal that appears only once from the multiple light signals. Because the LED lamp emits light signals continuously, the light signal that appears only once is received by the second mobile phone due to unexpected circumstances such as reflection. Thus, abnormal light signals that appear unexpectedly due to reflection can be excluded.

[0172] In another implementation, the second mobile phone detects the time interval between two adjacent occurrences of the same light signal among multiple light signals, and excludes light signals with different time intervals between two adjacent occurrences. Because there is a time interval between two light signals emitted by the LED lamp, and the time slot intervals of each LED lamp are equal. If the time intervals between two occurrences of the same light signal are different, it indicates that the light signal is an abnormal light signal. Then it can be excluded, improving the efficiency and accuracy of the target light signal screening.

[0173] In some embodiments of the present application, the time when the indoor LED lamps first emit light signals can be set in a sequence. That is to say, the LED lamps periodically emit light signals carrying identification information, and each time the LED lamps emit light signals, there will be a certain time interval. Different LED lamps emit light signals at different times for the first time. When the time intervals are equal, the time when each light signal is emitted is also different. In this way, even if there is spatial overlap between light signals, there will be no conflict in signal reception. This avoids the overlap of light signals emitted by two or more LED lamps.

[0174] In some embodiments of the present application, the time when the LED lamps that can be set indoors emit light signals for the first time is not set in order. In the case where different LED lamps emit light signals for the first time at the same time and emit them synchronously to generate signal superposition, the second mobile phone can separate the superimposed multiple light signals according to the different signal characteristics corresponding to the light signals, so as to convert the light signals into electrical signals later. This avoids conflicts between light signals of LED lamps with different initial emission times.

[0175] In some embodiments of the present application, after determining the light signal emitted by the LED lamp closest to the user, the second mobile phone decodes the signal component with the largest signal strength to obtain the identification information corresponding to the LED lamp. In addition, the second mobile phone obtains the positioning position according to the identification information corresponding to the LED lamp.

[0176] In the home scene, as some examples, the second mobile phone can use the mapping table pre-stored in the smart home APP to obtain the positioning position. Among them, the mapping table includes the first correspondence between the identification information of the LED lamp and the room corresponding to the LED lamp. Specifically, the second mobile phone decodes the signal component with the largest signal strength to obtain the identification information corresponding to the LED lamp. Afterwards, the corresponding room can be found in the mapping table based on the identification information corresponding to the LED lamp. Then, the positioning position of the user can be determined according to the room to which the LED lamp belongs. In other words, by finding the corresponding room according to the identification information corresponding to the LED lamp, the location of the LED lamp can be determined, and the location of the second mobile phone that receives the light signal emitted by the LED lamp and the user carrying the second mobile phone can also be known.

[0177] Exemplarily, referring to Table 1 above, after decoding, the second mobile phone obtains the SN number of LED lamp 1, and according to the pre-stored mapping table, obtains that the room corresponding to the SN number of LED lamp 1 is Room A. Another exemplary example, after decoding, the second mobile phone obtains the SN number of LED lamp 3, and according to the pre-stored mapping table, obtains that the room corresponding to the SN number of LED lamp 3 is Room C.

[0178] In an indoor scene with a relatively complex spatial environment, taking a shopping mall scene as an example, the second mobile phone can use the application corresponding to the shopping mall to obtain a pre-stored mapping table from the server to obtain the positioning position. Alternatively, the second mobile phone can obtain a pre-stored mapping table from the server to obtain the positioning position when it detects that it is connected to the wireless LAN corresponding to the shopping mall. The mapping table includes a first correspondence between the identification information of the LED lamp and the store to which the LED lamp belongs. In other words, the second mobile phone can find the corresponding store according to the identification information corresponding to the LED lamp, and can determine the location of the LED lamp, and can also know the location of the second mobile phone that receives the light signal emitted by the LED lamp and the user carrying the second mobile phone.

[0179] It can be seen that the positioning method provided by the embodiment of the present application does not require the camera to acquire images and perform complex positioning calculations, and the positioning position can be obtained without the user operating the second mobile phone. The positioning speed is fast and is less susceptible to interference. At the same time, each LED lamp has different identification information corresponding to each other, and then, the second mobile phone can accurately determine the location of each LED lamp during the positioning process, thereby improving the accuracy of the positioning process.

[0180] In some embodiments of the present application, after obtaining the positioning location, the second mobile phone can make corresponding prompts or linkage operations according to the positioning location.

[0181] In one possible implementation, in a home scene, if the location obtained by the second mobile phone based on the identification information of LED lamp 1 is room A, location prompt information can be displayed, and the location prompt information is used to prompt that the current location is in room A. In an indoor scene with a more complex spatial environment, if the location obtained by the second mobile phone based on the identification information of LED lamp 2 is store B, location prompt information can also be displayed, and the location prompt information is used to prompt that the current location is in store B.

[0182] For example, see Figure 7 In (A), after the user moves to room A, the second mobile phone obtains the identification information corresponding to LED lamp 1 based on the light signal emitted by LED lamp 1. Then, the second mobile phone obtains the location of LED lamp 1 based on the identification information corresponding to LED lamp 1, and displays the corresponding location prompt information. In one implementation, the second mobile phone can display the location prompt information on the main screen, see Figure 7 In (B), the second mobile phone can display a location prompt control in the main screen, and the location prompt control can be implemented as text "Current location is in room A". In another achievable manner, the second mobile phone can also display a location prompt control in a drop-down menu bar or a negative one screen.

[0183] For further example, see Figure 8 In (A), after the user moves to store B in the mall, the second mobile phone obtains the identification information corresponding to LED lamp 2 based on the light signal emitted by LED lamp 2. Then, the second mobile phone obtains the location of LED lamp 2 based on the identification information corresponding to LED lamp 2, and displays the corresponding location prompt information. Similarly, the second mobile phone can display the location prompt information on the screen, see Figure 8 In (B), the second mobile phone can display a location prompt control on the main screen, and the location prompt control can be implemented as the text "Current location is store B".

[0184] In another possible implementation, the second mobile phone obtains the location of room A based on the identification information of the LED lamp 1, and can display the first service information, which is used to prompt whether it is necessary to control other associated electronic devices in room A to perform corresponding tasks. Then, after detecting the user's operation on the service prompt information, the second mobile phone can trigger other associated electronic devices in room A to perform corresponding tasks.

[0185] For example, see Fig. 9 In (A), after the user moves to room A, the second mobile phone obtains the identification information corresponding to LED lamp 1 based on the light signal emitted by LED lamp 1. Then, the second mobile phone obtains the location of LED lamp 1, such as room A, based on the identification information corresponding to LED lamp 1. Then, the second mobile phone can determine the electronic device associated with room A based on room A, and display the first service information corresponding to the electronic device.

[0186] See also Fig. 9 In (B), the first service information can be implemented in the form of a service card. For example, the electronic device associated in room A is a smart speaker. The second mobile phone can find the one that displays the smart speaker service card 901 on the screen. The smart speaker service card 901 can display information corresponding to the smart speaker bound to the smart home APP (such as the icon corresponding to the smart speaker, the switch control corresponding to the smart speaker, the song information corresponding to the smart speaker, and the working time information corresponding to the smart speaker, etc.). The smart speaker service card 901 can be used to trigger the second mobile phone to jump to display the control interface for controlling the smart speaker. The user can click on the switch control in the smart speaker service card 901, and the second mobile phone detects the click operation on the switch control and controls the smart speaker to play the corresponding music. The user can also click on the smart speaker service card 901 to trigger the control interface for controlling the smart speaker. Then control the smart speaker to perform the task of playing music in the control interface of the smart speaker.

[0187] In another possible implementation, the second mobile phone can locate the user's location in real time, and can also control the service flow between multiple electronic devices based on the location. It is understandable that during the service flow of multiple electronic devices, the multiple electronic devices can be the same device or different devices with the same function. For example, multiple electronic devices all have the function of playing audio, playing video, and displaying documents, etc.

[0188] For example, if the second mobile phone obtains the location of room A based on the identification information of LED lamp 1, it can trigger the smart speaker in room A to play music A. Then, after the user moves from room A to room B, the second mobile phone can obtain the location of room B based on the identification information of LED lamp 2, and trigger the smart speaker in room B to continue playing music A. Thus, the functions of music following the movement of the user and music flow / continuation are realized.

[0189] In another possible implementation, the second mobile phone obtains the location of room A based on the identification information of the LED lamp 1, and can display a device list, which includes one or more electronic devices in room A. Then, after detecting the user's operation on the device list, the second mobile phone can control the electronic devices in the device list to perform corresponding tasks.

[0190] For example, see Fig.10 In (A), after the user moves to room A, the second mobile phone obtains the location of LED lamp 1, such as room A, based on the light signal emitted by LED lamp 1. The second mobile phone can determine the electronic devices associated with room A based on room A, and display a device list on the screen, which includes the electronic devices in room A. Fig.10 In (B), the device list 1001 includes controls corresponding to the smart speaker, the smart humidifier, and the smart desk lamp. The device list 1001 can be used to trigger the second mobile phone to jump to display the control interface for controlling the electronic equipment in room A. For example, the user clicks on the control corresponding to the smart humidifier, and the second mobile phone detects the click on the control corresponding to the smart humidifier and displays the control interface corresponding to the smart humidifier. Then the user can control the smart humidifier to perform the corresponding task on the control interface corresponding to the smart humidifier.

[0191] In another possible implementation, in an indoor scene with a relatively complex spatial environment, the second mobile phone can obtain the identification information corresponding to the LED lamp based on the light signal emitted by the LED lamp. Then the second mobile phone obtains the location based on the identification information and displays the second service information, which is used to prompt whether it is necessary to jump to the target application corresponding to the location. Among them, the target application may include navigation applications, instant messaging applications, calendar applications, memo applications, etc.

[0192] Then, after detecting the triggering operation on the second service information, the second mobile phone calls the interface of the target application and jumps to the target application to display the target interface corresponding to the positioning position through the target application.

[0193] For example, see Fig.11In (A), after the user moves to store B in the mall, the second mobile phone obtains the location of the LED lamp 2, such as store B, based on the light signal emitted by the LED lamp 2, and displays the corresponding second service information. Fig.11 In (B), the second service information may include a location control 1101 corresponding to the positioning position, a geographic control 1102 corresponding to the geographic location, and a navigation control 1103 corresponding to the navigation application. The location control 1101 is used to indicate the current positioning position in the mall, and the geographic control 1102 is used to indicate the geographic location corresponding to the positioning position. The navigation control 1103 is used to trigger the second mobile phone to jump to display the navigation interface corresponding to the positioning position.

[0194] For example, if the user wants to move to another location, he can click on the navigation control 1103 to trigger a jump to the navigation application. The second mobile phone detects the click operation on the navigation control 1103, and can jump to the navigation application and display the navigation interface corresponding to the positioning location. Fig.11 In (C), the navigation interface may include a start control 1104 and a destination control 1105, wherein the start control 1104 is used to display the positioning position, and the destination control 1105 is used to display the destination position, so that the user can directly navigate based on the positioning position obtained by the second mobile phone.

[0195] Based on the above, the embodiment of the present application can directly use the light signal emitted by the LED lamp to carry the identification information relative to the indoor position, and hide the identification information corresponding to the LED lamp. Then, the ambient light sensor of the second mobile phone can be cleverly used to receive the light signal and parse the identification information corresponding to the LED lamp to obtain the location information corresponding to the LED lamp. Then, the location information corresponding to the user is obtained to realize the positioning process. There is no need for the user to perform cumbersome operations, and the positioning process is simple. At the same time, in the process of analyzing the light signal, there is no need for complex algorithm processing. The ambient light sensor has low power consumption, high sampling rate and accuracy, high recognition accuracy, and can save power consumption of electronic equipment.

[0196] In addition, the second mobile phone can further link with other electronic devices based on the location information to enable other electronic devices to perform corresponding tasks. It can provide users with humanized functions such as voice following people and service flow / continuation, improve the naturalness and process of interaction, and enhance the user experience.

[0197] like Fig.12 FIG. 1 is an interactive schematic diagram of a positioning method provided in an embodiment of the present application, the method comprising:

[0198] S1201. A first electronic device modulates an optical signal based on a first modulation parameter to obtain a first target optical signal; and sends out the modulated first target optical signal.

[0199] In some embodiments of the present application, the first electronic device may be the LED lamp in the above example, and the number of the first electronic device may be one or more.

[0200] That is to say, the LED lamp can modulate the light signal based on the first modulation parameter to obtain the first target light signal; and send out the modulated first target light signal.

[0201] S1202: The second electronic device receives a first target optical signal, and demodulates the first target optical signal to obtain a first modulation parameter.

[0202] S1203: The second electronic device obtains identification information of the first electronic device according to the first modulation parameter.

[0203] In some embodiments of the present application, the second electronic device may be a mobile phone used by the user in the above example, and the number of the second electronic devices may be one or more.

[0204] The second electronic device stores the second corresponding relationship between the identification information of the first electronic device and the first modulation parameter. In this way, the second electronic device can obtain the identification information of the first electronic device according to the second corresponding relationship and the first modulation parameter.

[0205] That is, after receiving the first target light signal, the mobile phone can demodulate the first target light signal in advance to obtain the first modulation parameter, and then obtain the identification information corresponding to the LED lamp based on the second corresponding relationship and the first modulation parameter.

[0206] S1204: The second electronic device determines a first positioning position of the second electronic device according to the identification information of the first electronic device.

[0207] In some embodiments of the present application, the second electronic device has a first corresponding relationship between the identification information of the first electronic device and the location information. In this way, the second electronic device can determine the location information corresponding to the first electronic device based on the first corresponding relationship and the identification information of the first electronic device. Then, the second electronic device determines the first positioning position of the second electronic device based on the location information corresponding to the first electronic device.

[0208] That is to say, after obtaining the identification information corresponding to the LED lamp, the mobile phone can determine the position information corresponding to the LED lamp based on the first corresponding relationship and the identification information corresponding to the LED lamp. Then, the mobile phone can determine the first positioning position of the mobile phone according to the position information corresponding to the LED lamp. It can be understood that the position information corresponding to the LED lamp is equivalent to the first positioning position of the mobile phone. In this way, the mobile phone can also determine the first positioning position of the mobile phone based on the first corresponding relationship and the identification information corresponding to the LED lamp.

[0209] In some embodiments of the present application, the first positioning position may be a position with a certain spatial range. For example, if the position information corresponding to the LED lamp is room A, then the first positioning position is also room A. For another example, if the position information corresponding to the LED lamp is room A, the first positioning position may be a position in room A that is a certain distance from the LED lamp.

[0210] like Fig.13 As shown, it is a schematic diagram of a process of a second electronic device receiving a first target optical signal provided by an embodiment of the present application.

[0211] S1301. A second electronic device receives at least one group of first optical signals within a preset time period; different groups of first optical signals are sent by different first electronic devices.

[0212] S1302: The second electronic device obtains at least one group of second optical signals from at least one group of first optical signals, where each group of second optical signals includes at least two optical signals that appear repeatedly.

[0213] S1303: The second electronic device obtains at least one group of third optical signals from the at least one group of second optical signals, wherein the time interval between two adjacent occurrences of optical signals in each group of third optical signals is the same.

[0214] S1304: The second electronic device converts each group of third optical signals into corresponding electrical signals, obtains the signal strength of each electrical signal, and determines the third optical signal corresponding to the electrical signal with the largest signal strength as the first target optical signal.

[0215] In some embodiments of the present application, the second electronic device can receive multiple optical signals emitted by different devices within a preset time length. For the convenience of subsequent description, a group of optical signals is used as an example for explanation. After the second electronic device receives at least one group of first optical signals within a preset time length, it can obtain at least one group of second optical signals from at least one group of first optical signals, and each group of second optical signals includes at least two optical signals that appear repeatedly. In other words, after receiving multiple groups of optical signals, the mobile phone can exclude optical signals that appear only once.

[0216] Next, the second electronic device obtains at least one group of third optical signals from at least one group of second optical signals, and the time interval between two adjacent optical signals in each group of third optical signals is the same. Then, the second device converts each group of third optical signals into corresponding electrical signals, obtains the signal strength of each electrical signal, and determines the third optical signal corresponding to the electrical signal with the largest signal strength as the first target optical signal. In other words, after receiving multiple groups of optical signals, the mobile phone can also exclude optical signals with different time intervals between two adjacent occurrences. Then, the mobile phone performs photoelectric conversion and determines the optical signal corresponding to the electrical signal with the largest signal strength as the first target optical signal.

[0217] In some embodiments of the present application, after determining the first positioning position, the second electronic device can determine the first linkage device according to the first positioning position. The first linkage device is a device associated with the first positioning position. Then, the second electronic device detects the first trigger operation and sends a first trigger instruction to the first linkage device, and the first trigger instruction is used to instruct the first linkage device to perform the first task.

[0218] In addition, the second electronic device may also display the first linkage device and at least one function identifier corresponding to the first linkage device. The user may trigger the function identifier corresponding to the first linkage device, and the second electronic device detects the trigger operation on the function identifier and sends a first trigger instruction to the first linkage device, so that the first linkage device executes the first task corresponding to the function identifier.

[0219] Exemplarily, when the location information of the LED lamp is room A, the first positioning position is room A. The mobile phone can find the first smart speaker in room A. The user can control the first smart speaker to play the first song through the mobile phone.

[0220] In some embodiments of the present application, the second electronic device may also receive a second target optical signal, which is modulated by other first electronic devices based on a second modulation parameter. Similarly, the second electronic device demodulates the second target optical signal to obtain a second modulation parameter. Then, the second electronic device obtains identification information of other first electronic devices based on the second modulation parameter. Then, the second electronic device determines the second positioning position of the second electronic device based on the identification information of other first electronic devices. It is understandable that the second positioning position is different from the above-mentioned first positioning position.

[0221] The second electronic device sends a second trigger instruction to the second linkage device according to the second positioning position. The second linkage device is a device associated with the second positioning position. The second trigger instruction is used to instruct the second linkage device to execute the first task.

[0222] For example, the first location is room A, and the mobile phone controls the first smart speaker to play the first song. When the user moves, the location information of another LED lamp is room B. Then the second location determined by the mobile phone is room B, and the second smart speaker in room B is found and controlled to continue playing the first song. Then the first task flow / continuation function is realized, such as sound following the person and music flow / continuation.

[0223] In some embodiments of the present application, after sending the second trigger instruction to the second linkage device, the second electronic device sends a third trigger instruction to the first linkage device, wherein the third trigger instruction is used to instruct the first linkage device to stop executing the first task.

[0224] That is, after the mobile phone controls the second smart speaker to continue playing the first song, it can control the first smart speaker to stop playing the first song. This can improve the flow / continuation process for achieving the first task and provide users with a better experience.

[0225] For other contents of this example, please refer to the relevant descriptions in other examples above, which will not be repeated here.

[0226] The present application also provides an electronic device, such as the mobile phone described above. Fig.14 As shown, the electronic device may include one or more processors 1001 , a memory 1002 and a communication interface 1003 .

[0227] The memory 1002 and the communication interface 1003 are coupled to the processor 1001. For example, the memory 1002, the communication interface 1003 and the processor 1001 may be coupled together via the communication interface 1004.

[0228] The communication interface 1003 is used for data transmission with other devices. The memory 1002 stores computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor 1001, the wearable device executes the method in the embodiment of the present application.

[0229] Among them, the processor 1001 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0230] The communication interface 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication interface 1004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0231] An embodiment of the present application further provides a positioning system, which includes a sending device and a receiving device. The positioning system can execute the relevant method steps in the above method embodiment.

[0232] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.

[0233] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.

[0234] Among them, the electronic device, positioning system, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0235] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0236] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0237] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, which may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0238] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0239] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0240] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A positioning method, characterized in that: Applied to a receiving device, the method comprises: receiving a first target optical signal, where the first target optical signal is modulated by a first sending device based on a first modulation parameter; Demodulating the first target optical signal to obtain the first modulation parameter; Obtaining identification information of the first sending device according to the first modulation parameter; A first positioning position of a receiving device is determined according to the identification information of the first sending device.

2. The method according to claim 1, characterized in that The method further comprises: Determine a first linkage device according to the first positioning position; the first linkage device is a device associated with the first positioning position; A first trigger operation is detected, and a first trigger instruction is sent to the first linkage device, where the first trigger instruction is used to instruct the first linkage device to execute a first task.

3. The method according to claim 2, characterized in that The method further comprises: Displaying the first linkage device and at least one function identifier corresponding to the first linkage device; The detecting a first trigger operation and sending a first trigger instruction to the first linkage device includes: A trigger operation for the function identifier is detected, and a first trigger instruction is sent to the first linkage device, so that the first linkage device executes the first task corresponding to the function identifier.

4. The method according to claim 2 or 3, characterized in that: There is a first corresponding relationship between the identification information of the sending device and the position information, and determining the first positioning position of the receiving device according to the identification information of the first sending device includes: Determine, according to the first corresponding relationship and the identification information of the first sending device, the location information corresponding to the first sending device; The first positioning position of the receiving device is determined according to the position information corresponding to the first sending device.

5. The method according to claim 4, characterized in that The method further comprises: receiving a second target optical signal, where the second target optical signal is modulated by a second sending device based on a second modulation parameter; Demodulating the second target optical signal to obtain the second modulation parameter; Obtaining identification information of the second sending device according to the second modulation parameter; Determine a second positioning position of the receiving device according to the identification information of the second sending device; the second positioning position is different from the first positioning position; According to the second positioning position, a second trigger instruction is sent to a second linkage device; the second linkage device is a device associated with the second positioning position, and the second trigger instruction is used to instruct the second linkage device to execute the first task.

6. The method according to claim 5, characterized in that The method further comprises: After sending the second trigger instruction to the second linkage device, sending a third trigger instruction to the first linkage device; the third trigger instruction is used to instruct the first linkage device to stop executing the first task.

7. The method according to any one of claims 1 to 6, characterized in that: The receiving a first target optical signal comprises: receiving at least one group of first optical signals within a preset time period; different groups of the first optical signals are sent by different sending devices; Obtaining at least one group of second optical signals from the at least one group of first optical signals, each group of the second optical signals comprising at least two optical signals that appear repeatedly; The first target light signal is determined based on the at least one set of second light signals.

8. The method according to claim 7, characterized in that The determining the first target optical signal based on the at least one second optical signal comprises: Obtain at least one group of third optical signals from the at least one group of second optical signals, wherein the time interval between two adjacent occurrences of optical signals in each group of the third optical signals is the same; Convert each group of the third optical signals into corresponding electrical signals; The signal strength of each of the electrical signals is acquired, and the third optical signal corresponding to the electrical signal with the largest signal strength is determined as the first target optical signal.

9. The method according to any one of claims 1 to 8, characterized in that: There is a second corresponding relationship between the identification information of the sending device and the modulation parameter; and obtaining the identification information of the first sending device according to the first modulation parameter includes: Obtaining identification information of the first sending device according to the second corresponding relationship and the first modulation parameter; The modulation parameters include one or more of a light intensity parameter, a color temperature parameter, a color parameter, a spectral power distribution parameter or a high-frequency flicker frequency parameter.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Output location prompt information; The position prompt information is used to prompt the first positioning position, and the position prompt information includes one or more of text prompt information, voice prompt information and video prompt information.

11. A positioning method, characterized in that: Applied to a first issuing device, the method comprises: Modulating the optical signal based on a first modulation parameter to obtain a first target optical signal; The first target optical signal after modulation is emitted; the first target optical signal after modulation is used by a receiving device to obtain identification information of a first emitting device according to the first modulation parameter, and to determine a first positioning position of a receiving device according to the identification information of the first emitting device.

12. A positioning system, characterized in that: The positioning system includes a sending device and a receiving device; The sending device is configured to modulate the optical signal based on a first modulation parameter to obtain a first target optical signal; The emitting device is further configured to emit the modulated first target optical signal; The receiving device is configured to receive the first target optical signal; The receiving device is further configured to demodulate the first target optical signal to obtain the first modulation parameter; The receiving device is further configured to obtain identification information of the sending device according to the first modulation parameter; The receiving device is also configured to determine a first positioning position of the receiving device according to the identification information of the sending device.

13. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores a computer program code, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the positioning method as described in any one of claims 1 to 10, or the positioning method as described in claim 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer can execute the positioning method according to any one of claims 1 to 10, or the positioning method according to claim 11.