Indoor positioning method and system for multi-stage dimming of optical signals
The indoor positioning method and system address flicker and dimming issues in VLC by improving encoding and using forward error correction, achieving precise and energy-efficient positioning that meets user lighting needs.
Patent Information
- Application Number
- CN202411131343.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2043-05-15
AI Technical Summary
Existing indoor positioning technologies using visible light communication (VLC) do not meet users' lighting needs, causing flicker and failing to support multi-level dimming, which affects user health and precision.
An indoor positioning method and system that improves the encoding of optical signals to suppress flicker and support multi-level dimming by processing the original light signal to obtain a pulse width modulation signal, performing dimming to achieve multiple dimming ratios, and using forward error correction to ensure accurate positioning.
The method and system provide high-precision, energy-efficient indoor positioning that meets user lighting needs, reducing flicker interference and ensuring healthy lighting conditions.
Smart Images

Figure CN119197515A_ABST
Abstract
Description
[0001] This invention is a divisional application of the invention patent application filed on May 15, 2023, with the invention name of “Real-time positioning method, device and equipment of indoor visible light based on healthy lighting” and application number 202310543835.0. Technical Field
[0002] The present invention relates to the field of communication positioning technology, and in particular to an indoor positioning method and system for multi-level dimming of optical signals. Background Art
[0003] In today's information age, people have an increasing demand for their own location information, so indoor positioning has become a hot topic. Nowadays, there is a demand for indoor positioning in many occasions, and it has many important applications. However, GPS, which is suitable for outdoor positioning, is not suitable for indoor positioning, and the existing magnetic positioning system, infrared positioning system, and WiFi positioning system cannot meet the needs of high-precision, low-cost, and low-complexity indoor positioning. Visible light communication (VLC) technology, which uses environmentally friendly and energy-saving LEDs as light sources, is considered to be a technology with great development potential and application background. The indoor positioning system based on visible light communication has become a hot research topic recently because it has advantages that traditional indoor positioning methods do not have.
[0004] At present, most of the research on VLC technology uses high-speed MCU, pursuing high speed and high capacity, but does not take into account the actual lighting needs of users and ignores human health. On the one hand, high speed will cause light sources to flicker, and the human eye, as an important sensory organ, will suffer from decreased vision and damaged mechanism if exposed to flickering modulated light sources for a long time; on the other hand, more and more users need to use modulated light sources that support multi-level dimming, and the optical signals emitted by existing indoor positioning technologies do not support multi-level dimming. In summary, existing indoor positioning technologies cannot meet users' actual lighting needs.
[0005] Therefore, how to meet users' needs for healthy lighting while using visible light for real-time indoor positioning is an urgent problem to be solved. Summary of the invention
[0006] In view of this, the present invention provides an indoor positioning method and system with multi-level dimming of optical signals, so as to solve the problem in the prior art that when performing optical signal positioning on indoor targets, users are interfered and affected by inappropriate optical signals.
[0007] The technical solution adopted by the present invention is:
[0008] In a first aspect, the present invention provides an indoor positioning method for multi-level dimming of an optical signal, wherein the method comprises:
[0009] An original encoding method of an original light signal of the illumination light source is improved and processed to obtain a first pulse width modulation signal after flicker suppression;
[0010] Performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting multiple dimming ratios;
[0011] According to the target modulation signal, a positioning optical signal is sent to the terminal to be located;
[0012] A reflected light signal emitted by the terminal to be located is received to determine the location information of the terminal to be located.
[0013] In a preferred embodiment, the dimming process is performed on the first pulse width modulation signal to obtain a target modulation signal supporting a multi-level dimming ratio, including:
[0014] Obtaining a preset dimming value, and obtaining a first duty cycle of the first pulse width modulation signal according to the dimming value;
[0015] Determining a second pulse width modulation signal with a second duty cycle according to the first pulse width modulation signal with a first duty cycle, wherein the second duty cycle is the sum of the first duty cycle and a preset dimming increment;
[0016] A third pulse width modulation signal with a third duty cycle is obtained according to the first pulse width modulation signal and the second pulse width modulation signal, and the third pulse width modulation signal is used as the target modulation signal.
[0017] In a preferred embodiment, the method of obtaining a third pulse width modulation signal with a third duty cycle according to the first pulse width modulation signal and the second pulse width modulation signal, and using the third pulse width modulation signal as the target modulation signal includes:
[0018] Obtaining a preset first time interval and a second time interval;
[0019] Determining a weight value of the first duty cycle according to the first time interval, and determining a weight value of the second duty cycle according to the second time interval;
[0020] According to the weight value of the first duty cycle and the weight value of the second duty cycle, taking a weighted average of the first duty cycle and the second duty cycle as the third duty cycle;
[0021] The third pulse width modulation signal with the third duty cycle is used as the target modulation signal.
[0022] In a preferred embodiment, the receiving of the reflected light signal emitted by the terminal to be located and determining the location information of the terminal to be located includes:
[0023] When the reflected light signal is transmitted, forward error correction code technology is used to correct errors by adding redundant information.
[0024] In a preferred embodiment, the receiving of the reflected light signal emitted by the terminal to be located and determining the location information of the terminal to be located includes:
[0025] Acquire a reflected light signal emitted by the terminal to be located;
[0026] Further calculating the direction angle and light intensity of the positioning light signal according to the direction angle and light intensity of the reflected light signal;
[0027] The real-time position information of the terminal to be located is obtained according to the direction angle and light intensity of the positioning light signal.
[0028] In a preferred embodiment, the original encoding method of the original light signal of the illumination light source is improved to obtain the first pulse width modulation signal after flicker suppression, including:
[0029] According to the original coding method of the original optical signal of the illumination light source, an original line encoded according to the original coding method is obtained;
[0030] Limiting the run length of the binary code in the original line to obtain a new coding method;
[0031] Encoding is performed according to the new encoding method to obtain the first pulse width modulation signal.
[0032] In a preferred embodiment, limiting the run length of the binary code in the original line to obtain a new coding method includes:
[0033] The run lengths of code 0 and code 1 of the binary code are restricted respectively.
[0034] In a preferred embodiment, the run lengths of the code 0 and the code 1 are respectively smaller than the corresponding run lengths in the original code so that the code 0 and the code 1 appear alternately to reduce the flicker of the light signal.
[0035] In a second aspect, the present invention further provides an indoor positioning system for multi-level dimming of an optical signal, wherein the indoor positioning system comprises:
[0036] A first pulse width modulation signal module, used for improving the original encoding method of the original light signal of the illumination light source to obtain a first pulse width modulation signal after flicker suppression;
[0037] A multi-level dimming module, used for performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting a multi-level dimming ratio;
[0038] A positioning signal transmitting module, used for transmitting a positioning optical signal to the terminal to be located according to the target modulation signal;
[0039] The positioning module is used to receive the reflected light signal emitted by the terminal to be positioned and determine the position information of the terminal to be positioned.
[0040] In a preferred embodiment, the positioning system is applied to one of the following daily indoor scenarios: commercial centers, large public buildings, high-risk industrial areas, hospitals and nursing homes.
[0041] In summary, the beneficial effects of the present invention are as follows:
[0042] The indoor positioning method and system for multi-level dimming of optical signals provided by the present invention obtain a target modulation signal supporting multi-level dimming ratios by dimming the first pulse width modulation signal. Through multi-level dimming, it can achieve a good energy-saving effect and meet people's lighting needs to the greatest extent. By improving the original encoding method of the original optical signal of the lighting source, not only the real-time positioning of the terminal to be positioned is achieved, but also the light flicker is suppressed, avoiding the interference and influence of inappropriate optical signals on the user during indoor positioning. Since only optical signals that meet the user's lighting needs are sent for positioning, the user's healthy lighting needs are further met. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0044] Figure 1 This is a schematic diagram of the overall working process of the indoor visible light real-time positioning method based on healthy lighting in Example 1 of the present invention;
[0045] Figure 2 This is a schematic diagram of the process of sending a positioning light signal in Embodiment 1 of the present invention;
[0046] Figure 3 This is a schematic diagram of a process for determining a first pulse width modulation signal in Embodiment 1 of the present invention;
[0047] Figure 4 A schematic diagram of a process for determining a target modulation signal in Embodiment 1 of the present invention;
[0048] Figure 5 is a schematic diagram of a process for determining a third duty cycle in Embodiment 1 of the present invention;
[0049] Figure 6 It is a schematic diagram of the process of receiving the reflected light signal in Embodiment 1 of the present invention;
[0050] Figure 7 A schematic diagram of a process for matching a real-time tag with a target tag in Embodiment 1 of the present invention;
[0051] Figure 8 This is a schematic diagram of a process for determining the real-time location information of a terminal to be located in Embodiment 1 of the present invention;
[0052] Fig. 9 This is a structural block diagram of an indoor visible light real-time positioning device based on healthy lighting in Example 2 of the present invention;
[0053] Fig.10 It is a schematic diagram of the structure of the electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.
[0055] Example 1
[0056] See also Figure 1Embodiment 1 of the present invention discloses a real-time positioning method for indoor visible light based on healthy lighting, the method comprising:
[0057] S1: Obtain real-time tag information on a terminal to be located in a variety of indoor daily scenarios;
[0058] Specifically, the indoor daily scene includes at least one of the following scenes: commercial centers, large public buildings (subways, airports, libraries, etc.), high-risk industrial areas, hospitals and nursing homes. By acquiring the real-time tag information on the terminals to be located in the above different scenes, real-time indoor positioning of the terminals to be located in different scenes is achieved, which further illustrates that the positioning scenes are diverse and the application scope of indoor positioning is relatively wide.
[0059] S2: Processing the original optical signal, and sending the processed optical signal that meets the user's lighting requirements as a positioning optical signal to the terminal to be positioned;
[0060] Specifically, since the current research on indoor positioning (VLC) technology has not taken into account the actual lighting needs of users and has also ignored human health, the original optical signal is processed and the optimized optical signal that meets the user's lighting requirements is used as a positioning optical signal, wherein the optical signal that meets the user's lighting requirements refers to an optical signal with suppressed flicker and supporting a multi-level dimming ratio. The positioning optical signal is sent to the terminal to be positioned, thereby avoiding interference and influence of inappropriate optical signals on the user during indoor positioning.
[0061] In one embodiment, see Figure 2 , said S2 comprises:
[0062] S21: improving the original encoding method of the original optical signal to obtain a first pulse width modulation signal after flicker suppression;
[0063] Specifically, due to the high-speed MCU used in the existing indoor positioning technology, while pursuing high transmission rate and high capacity, optical signal flickering may occur. By improving the original encoding method of the original optical signal, the first pulse width modulation signal after flicker suppression is obtained, which avoids the problem of decreased vision and damage to the mechanism caused by long-term exposure of the human eye to the flickering modulated light source.
[0064] In one embodiment, see Figure 3 , the S21 comprises:
[0065] S211: Obtain the original encoding method corresponding to the original optical signal;
[0066] Specifically, the original coding method is obtained. Since the optical signal adopts binary coding, there are multiple original coding methods, among which the interval time between 0 code and 1 code in the coding line is also different.
[0067] S212: according to the original encoding method, obtaining an original line encoded according to the original encoding method;
[0068] S213: limiting the run length of the binary code in the original line to obtain a new coding method;
[0069] S214: Encode according to the new encoding method to obtain the first pulse width modulation signal.
[0070] Specifically, by limiting the run length of the binary code in the original line, for example, in the original coding method, the run length of the 0 code is 5, that is, a 1 code appears every 5 run lengths, and the run length of the 0 code in the original coding line is limited to 3. At this time, a 1 code appears every 3 run lengths. Similarly, according to the above method, the run length of the 1 code is limited to obtain a new coding method, and the corresponding modulation signal encoded according to the new coding method is used as the first pulse width modulation signal. By improving the coding method, the long-term existence of the 0 code and the 1 code in the transmission sequence is reduced, and the 0 code and the 1 code appear alternately to reduce flickering, thereby avoiding the adverse effects of flickering on the physical and mental health of the human body caused by the emitted positioning light signal.
[0071] S22: performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting multiple dimming ratios;
[0072] Specifically, by dimming the first pulse width modulation signal, a target modulation signal supporting multi-level dimming ratios is obtained. Multi-level dimming can achieve a good energy-saving effect and meet people's lighting needs to the greatest extent.
[0073] In one embodiment, see Figure 4 , the S22 comprises:
[0074] S221: Obtain a preset dimming value, and obtain a first duty cycle of the first pulse width modulation signal according to the dimming value;
[0075] S222: deriving a second pulse width modulation signal with a second duty cycle according to the first pulse width modulation signal with a first duty cycle, wherein the second duty cycle is the sum of the first duty cycle and a preset dimming increment;
[0076] Specifically, according to the dimming value input by the user, the first duty cycle of the pulse width modulation signal is determined; and the sum of the first duty cycle and the preset dimming increment is calculated to obtain the second duty cycle of the pulse width modulation signal. Among them, for an 8-bit binary pulse width modulation signal, 256 levels of dimming can be achieved, and the preset dimming increment can be set to 1. For each increase in the dimming value, the dimming level increases by one level. For example: when the dimming value input by the user is 200, a pulse width modulation signal with a duty cycle of 200 and a pulse width modulation signal with a duty cycle of 201 can be generated.
[0077] S223: Obtain a third pulse width modulation signal with a third duty cycle according to the first pulse width modulation signal and the second pulse width modulation signal, and use the third pulse width modulation signal as the target modulation signal.
[0078] In one embodiment, see Figure 5 , the S223 includes:
[0079] S2231: Obtaining a preset first time interval and a second time interval;
[0080] Specifically, a preset first time interval and a second time interval are acquired, a pulse width modulation signal of the first duty cycle is output within the first preset time interval, and a pulse width modulation signal of the second duty cycle is output within the second preset time interval.
[0081] S2232: deriving a weight value of the first duty cycle according to the first time interval, and deriving a weight value of the second duty cycle according to the second time interval;
[0082] S2233: according to the weight value of the first duty cycle and the weight value of the second duty cycle, taking a weighted average of the first duty cycle and the second duty cycle as the third duty cycle;
[0083] Specifically, according to the first preset time interval and the second preset time interval, the weight value of the first duty cycle and the weight value of the second duty cycle are calculated respectively; according to the weight value of the first duty cycle and the weight value of the second duty cycle, the weighted average value of the first duty cycle and the second duty cycle is calculated as the third duty cycle. For example: the first preset time interval can be 2ms, the second preset time interval can be 1ms, the pulse width modulation information with a duty cycle of 200 is output in 0-2ms, the pulse width modulation information with a duty cycle of 201 is output in 2ms-3ms, the pulse width modulation information with a duty cycle of 200 is output again in 3ms-5ms, and the pulse width modulation information with a duty cycle of 201 is output in 5ms-6ms, and the output is cyclically alternating in this way. Then within a few minutes or hours, the output pulse width modulation signal of the third duty cycle is the weighted average of the pulse width modulation signal of the first duty cycle and the pulse width modulation signal of the second duty cycle, wherein, if the first preset time interval is T1 and the second preset time interval is T2, then the third duty cycle = first duty cycle * (T1 / T1+T2) + second duty cycle * (T2 / T1+T2), when TI = 2ms, T2 = 1ms, the third duty cycle is 200.33. It should be noted that the first preset time interval is not limited to 2ms, but can also be set to other times; the second preset time interval is not limited to 1ms, but can also be set to other times.
[0084] S2234: Use the third pulse width modulation signal with the third duty cycle as the target modulation signal.
[0085] S23: sending the positioning optical signal to the terminal to be positioned according to the target modulation signal.
[0086] Specifically, the positioning light signal is obtained according to the target modulation signal, and the positioning light signal is sent to the terminal to be located. Since the target adjustment signal has been flicker-suppressed and has a multi-level dimming function, the output positioning light signal better meets the user's lighting needs, which is conducive to helping the user achieve healthy lighting.
[0087] S3: matching the real-time tag information with preset target tag information, and when the real-time tag information matches the target tag information, receiving a reflected light signal reflected back by the terminal to be located;
[0088] In one embodiment, see Figure 6 , said S3 comprises:
[0089] S31: Acquire the target tag information, wherein the target tag information includes a plurality of tag information and at least includes the real-time tag information;
[0090] Specifically, multiple pre-marked tag information input by the user is obtained as the target tag information, such as "refrigerator", "mobile phone", "computer", "tablet" and "nursing equipment", etc. The above target tag information at least includes real-time tag information on the terminal to be located, for example, the real-time tag information on the terminal to be located is "computer".
[0091] S32: matching the real-time tag information with each tag information in the target tag information in sequence, and outputting a matching result;
[0092] Specifically, the real-time tag information is matched with each tag information in the above target tag information in turn, and the matching results between the target tag information "refrigerator", "mobile phone", "tablet" and "nursing equipment" are all mismatched, and the matching result with the target tag information "computer" is a match. By matching the real-time tag information with the target tag information, a positioning light signal is only emitted when a match is made, thereby avoiding the waste of resources caused by unnecessary light signals emitted when a match is not made. At the same time, the user can flexibly set the target tag information according to actual needs, which is more in line with the actual application scenario and improves the user experience.
[0093] In one embodiment, see Figure 7 , the S32 comprises:
[0094] S321: pre-processing the real-time tag information and the target tag information to obtain first keyword information and second keyword information;
[0095] Specifically, the real-time tags and preset tags are preprocessed, stop words are removed, synonyms are normalized, etc., and keywords are retained to obtain the first keyword information and the second keyword information. For example, natural language processing tools in Python, such as NLTK, jieba, etc., can be used to complete the preprocessing. By removing stop words, normalizing synonyms, etc., noise and redundant information in the text can be removed, interference can be reduced, and matching accuracy can be improved. Retaining keywords can convert text into key information, which is convenient for subsequent feature representation and similarity calculation.
[0096] S322: inputting the first keyword information and the second keyword information into the bag-of-words model to obtain a first feature vector and a second feature vector;
[0097] Specifically, the first keyword information and the second keyword information are input into the bag-of-words model to obtain the first feature vector and the second feature vector; wherein the bag-of-words model is a text representation method that regards the text as a bag, and does not consider the order in which the words appear, but only considers the number of times each word appears in the text. In the bag-of-words model, the text can be represented as a vector, each dimension of the vector corresponds to a word, and the value of the dimension represents the number of times the word appears in the text. By converting the text into a vector representation, subsequent similarity calculation is facilitated.
[0098] S323: Calculate the similarity between the first feature vector and the second feature vector using a cosine similarity algorithm;
[0099] Specifically, the cosine similarity algorithm is used to calculate the similarity between the first feature vector and the second feature vector; cosine similarity is a method for calculating the similarity of two vectors, and is commonly used in text similarity calculation. The principle of cosine similarity calculation is to represent two vectors as vectors in space and calculate the cosine value of the angle between them. The larger the cosine value of the angle, the closer the directions of the two vectors are, and the higher the similarity. In the text similarity calculation, each text can be represented as a vector, each dimension of the vector represents a word, and the value of the vector represents the number of times or weight of the word in the text. Then, the similarity of the two text vectors is calculated using the cosine similarity calculation formula, and a value ranging from 0 to 1 is obtained, which represents the similarity of the two texts. The larger the value, the higher the similarity. By calculating the similarity between the real-time tag and the preset tag, the matching degree is obtained, which is convenient for selecting the best matching tag.
[0100] S324: Obtain the matching result based on the similarity and a preset similarity threshold, wherein the similarity threshold is set according to an actual application scenario.
[0101] Specifically, for example, the similarity threshold is set to 0.85, and the calculated similarity between the real-time tag and the preset tag is 0.9, which is greater than 0.85, then the matching result is considered to be a match; if it is 0.7, which is less than 0.85, then it is not a match. The similarity threshold is flexibly set according to the actual application scenario, and the similarity threshold is set according to specific needs to filter low-similarity tags and reduce false matches.
[0102] S33: When the matching result is that the real-time tag information matches a tag information in the target tag information, receiving a reflected light signal reflected back by the terminal to be located.
[0103] Specifically, a reflective surface is pre-set on the terminal to be located. When the matching result is that the real-time tag information matches a tag information in the target tag information, the terminal to be located will reflect the positioning light signal back. By receiving the reflected light signal reflected back by the terminal to be located, accurate real-time positioning of the indoor terminal is achieved.
[0104] S4: Positioning the terminal to be located according to the reflected light signal to obtain real-time location information of the terminal to be located.
[0105] Specifically, the reflected light signal may be interfered by noise, attenuation, etc. during transmission, which may increase the bit error rate. In order to improve the reliability of the reflected light signal, forward error correction code technology is used to correct errors by adding redundant information. Common forward error correction codes include convolutional codes and LDPC codes. The terminal to be located is located by the reflected light signal. Since the visible light emitting range, i.e., the communication boundary, is very clear, it will not be interfered by other radio waves and the operation is stable. At the same time, the real-time position information of the terminal to be located can be determined by measuring the sensor light flux. Therefore, a high-precision, clear and stable digital beacon can be realized, and a high-precision indoor positioning application can be realized.
[0106] In one embodiment, see Figure 8 , said S4 comprises:
[0107] S41: deriving the direction angle and light intensity of the positioning light signal according to the reflected light signal;
[0108] S42: Obtaining the real-time position information according to the direction angle and the light intensity.
[0109] Specifically, the reflected light signal emitted by the terminal to be located is obtained, and the direction angle and light intensity of the positioning light signal are further calculated based on the direction angle and light intensity of the reflected light signal. Based on the direction angle and light intensity of the positioning light signal, the real-time position information of the terminal to be located is obtained, thereby realizing the visible light real-time positioning of the terminal to be located. Compared with traditional indoor wireless positioning methods, visible light real-time positioning has the advantages of being green, energy-saving and environmentally friendly, low cost, free of electromagnetic interference, high positioning accuracy and a wide range of applications.
[0110] Example 2
[0111] See also Fig. 9 Embodiment 2 of the present invention further provides an indoor visible light real-time positioning device based on healthy lighting, the device comprising:
[0112] A real-time tag information acquisition module is used to obtain real-time tag information on a terminal to be located in a variety of indoor daily scenes;
[0113] A positioning light signal sending module, used to process the original light signal, and send the processed light signal that meets the user's lighting requirements as a positioning light signal to the terminal to be located;
[0114] A reflected light signal receiving module is used to match the real-time tag information with preset target tag information, and when the real-time tag information matches the target tag information, receive the reflected light signal reflected back by the terminal to be located;
[0115] The real-time position acquisition module is used to locate the terminal to be located according to the reflected light signal, and obtain the real-time position information of the terminal to be located.
[0116] Specifically, the indoor visible light real-time positioning device based on healthy lighting provided by the embodiment of the present invention includes: a real-time tag information acquisition module, which is used to acquire the real-time tag information on a terminal to be positioned in a variety of indoor daily scenes; a positioning light signal sending module, which is used to process the original light signal, and send the processed light signal that meets the user's lighting requirements as a positioning light signal to the terminal to be positioned; a reflected light signal receiving module, which is used to match the real-time tag information with the preset target tag information, and when the real-time tag information matches the target tag information, receive the reflected light signal reflected back by the terminal to be positioned; a real-time position acquisition module, which is used to locate the terminal to be positioned based on the reflected light signal, and obtain the real-time position information of the terminal to be positioned. On the one hand, the device matches the tag information on the terminal to be positioned with the preset tag, and when it matches, the reflected light signal is used to realize the indoor positioning of the terminal to be positioned; on the other hand, while realizing the indoor positioning using the visible light signal, the original light signal is also processed, and only the light signal that meets the user's lighting requirements is sent for positioning, which further meets the user's healthy lighting needs.
[0117] Example 3
[0118] In addition, combined Figure 1 The indoor visible light real-time positioning method based on healthy lighting of the embodiment 1 of the present invention described above can be implemented by an electronic device. Fig.10 A schematic diagram of the hardware structure of an electronic device provided in Embodiment 3 of the present invention is shown.
[0119] The electronic device may include a processor and a memory storing computer program instructions.
[0120] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0121] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory may be inside or outside a data processing device. In a specific embodiment, the memory is a non-volatile solid-state memory. In a specific embodiment, the memory includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0122] The processor implements any one of the indoor visible light real-time positioning methods based on healthy lighting in the above embodiments by reading and executing computer program instructions stored in the memory.
[0123] In one example, the electronic device may further include a communication interface and a bus. Fig.10 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0124] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0125] The bus includes hardware, software or both, and the parts of the device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnection, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnection, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. In suitable cases, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention considers any suitable bus or interconnection.
[0126] Example 4
[0127] In addition, in combination with the indoor visible light real-time positioning method based on healthy lighting in the above embodiment 1, embodiment 4 of the present invention can also provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the indoor visible light real-time positioning methods based on healthy lighting in the above embodiments is implemented.
[0128] In summary, the embodiments of the present invention provide a method, device and apparatus for real-time positioning of indoor visible light based on healthy lighting.
[0129] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0130] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0131] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0132] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. An indoor positioning method for multi-level dimming of optical signals, characterized in that: The method comprises: An original encoding method of an original light signal of the illumination light source is improved and processed to obtain a first pulse width modulation signal after flicker suppression; Performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting multiple dimming ratios; According to the target modulation signal, a positioning optical signal is sent to the terminal to be located; A reflected light signal emitted by the terminal to be located is received to determine the location information of the terminal to be located.
2. The indoor positioning method of multi-level dimming of optical signals according to claim 1, characterized in that: The dimming process is performed on the first pulse width modulation signal to obtain a target modulation signal supporting a multi-level dimming ratio, including: Obtaining a preset dimming value, and obtaining a first duty cycle of the first pulse width modulation signal according to the dimming value; Determining a second pulse width modulation signal with a second duty cycle according to the first pulse width modulation signal with a first duty cycle, wherein the second duty cycle is the sum of the first duty cycle and a preset dimming increment; A third pulse width modulation signal with a third duty cycle is obtained according to the first pulse width modulation signal and the second pulse width modulation signal, and the third pulse width modulation signal is used as the target modulation signal.
3. The indoor positioning method of multi-level dimming of optical signals according to claim 2, characterized in that: The method of obtaining a third pulse width modulation signal with a third duty cycle according to the first pulse width modulation signal and the second pulse width modulation signal, and using the third pulse width modulation signal as the target modulation signal, comprises: Obtaining a preset first time interval and a second time interval; Determining a weight value of the first duty cycle according to the first time interval, and determining a weight value of the second duty cycle according to the second time interval; According to the weight value of the first duty cycle and the weight value of the second duty cycle, taking a weighted average of the first duty cycle and the second duty cycle as the third duty cycle; The third pulse width modulation signal with the third duty cycle is used as the target modulation signal.
4. The indoor positioning method of multi-level dimming of optical signals according to any one of claims 1 to 3, characterized in that: The receiving the reflected light signal emitted by the terminal to be located and determining the location information of the terminal to be located includes: When the reflected light signal is transmitted, forward error correction code technology is used to correct errors by adding redundant information.
5. The indoor positioning method of multi-level dimming of optical signals according to claim 4, characterized in that: The receiving the reflected light signal emitted by the terminal to be located and determining the location information of the terminal to be located includes: Acquire a reflected light signal emitted by the terminal to be located; Further calculating the direction angle and light intensity of the positioning light signal according to the direction angle and light intensity of the reflected light signal; The real-time position information of the terminal to be located is obtained according to the direction angle and light intensity of the positioning light signal.
6. The indoor positioning method of multi-level dimming of optical signals according to claim 5, characterized in that: The improved processing of the original encoding method of the original light signal of the illumination light source to obtain the first pulse width modulation signal after flicker suppression includes: According to the original coding method of the original optical signal of the illumination light source, an original line encoded according to the original coding method is obtained; Limiting the run length of the binary code in the original line to obtain a new coding method; Encoding is performed according to the new encoding method to obtain the first pulse width modulation signal.
7. The indoor positioning method of multi-level dimming of optical signals according to claim 6, characterized in that: The step of limiting the run length of the binary code in the original line to obtain a new coding method includes: The run lengths of code 0 and code 1 of the binary code are restricted respectively.
8. The indoor positioning method of multi-level dimming of optical signals according to claim 7, characterized in that: The run lengths of the code 0 and the code 1 are respectively smaller than the corresponding run lengths in the original code so that the code 0 and the code 1 appear alternately to reduce the flicker of the light signal.
9. An indoor positioning system with multi-level dimming of optical signals, characterized in that: The indoor positioning system comprises: A first pulse width modulation signal module, used for improving the original encoding method of the original light signal of the illumination light source to obtain a first pulse width modulation signal after flicker suppression; A multi-level dimming module, used for performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting a multi-level dimming ratio; A positioning signal transmitting module, used for transmitting a positioning optical signal to the terminal to be located according to the target modulation signal; The positioning module is used to receive the reflected light signal emitted by the terminal to be positioned and determine the position information of the terminal to be positioned.
10. The indoor positioning system according to claim 9, characterized in that: The positioning system is applied to one of the following daily indoor scenarios: commercial centers, large public buildings, high-risk industrial areas, hospitals and nursing homes.
Citation Information
Patent Citations
Apparatus, system and method for pulse width modulated lighting control
CN103493590A
Visible light indoor terminal positioning method and visible light positioning system
CN111551182A
Method and device for time-of-flight sensing
CN114063044A
A METHOD FOR TRANSMITTING INFORMATION IN AN OPTICAL COMMUNICATION SYSTEM, AN OPTICAL COMMUNICATION SYSTEM FOR ITS IMPLEMENTATION, A RECEIVING AND TRANSMITTING TERMINAL AND A COMMUNICATION SYSTEM OF THE GLOBAL INFORMATION SOCIETY
EA201300973A1
Device for dimming a beacon light source used in a light based positioning system
US20130026942A1