CN116608858B - Indoor visible light real-time positioning method, device and equipment based on health illumination - Google Patents
Indoor visible light real-time positioning method, device and equipment based on health illumination Download PDFInfo
- Publication number
- CN116608858B CN116608858B CN202310543835.0A CN202310543835A CN116608858B CN 116608858 B CN116608858 B CN 116608858B CN 202310543835 A CN202310543835 A CN 202310543835A CN 116608858 B CN116608858 B CN 116608858B
- Authority
- CN
- China
- Prior art keywords
- real
- tag information
- modulation signal
- pulse width
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S5/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/16—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using electromagnetic waves other than radio waves
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Automation & Control Theory (AREA)
- Optical Communication System (AREA)
Abstract
本发明涉及通信定位技术领域,解决了现有技术中无法在利用可见光进行室内实时定位的同时,满足用户健康照明的需求的问题,提供了一种基于健康照明的室内可见光实时定位方法、装置及设备。该方法包括:获取多种室内日常场景下一待定位终端上的实时标签信息;对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;将所述实时标签信息和预设的目标标签信息进行匹配,当匹配上时,接收所述待定位终端反射回的反射光信号;依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。本发明在实现利用可见光信号室内定位的同时,满足了用户健康照明的需求。
The present invention relates to the field of communication positioning technology, and solves the problem in the prior art that it is impossible to meet the user's healthy lighting needs while using visible light for real-time indoor positioning, and provides a method, device and equipment for indoor visible light real-time positioning based on healthy lighting. The method includes: obtaining real-time tag information on a terminal to be positioned in a variety of indoor daily scenes; 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; matching the real-time tag information with the preset target tag information, and when matching, receiving the reflected light signal reflected back by the terminal to be positioned; positioning the terminal to be positioned based on the reflected light signal, and obtaining the real-time position information of the terminal to be positioned. The present invention meets the user's healthy lighting needs while achieving indoor positioning using visible light signals.
Description
技术领域Technical Field
本发明涉及通信定位技术领域,尤其涉及一种基于健康照明的室内可见光实时定位方法、装置及设备。The present invention relates to the field of communication positioning technology, and in particular to a method, device and equipment for real-time positioning of indoor visible light based on healthy lighting.
背景技术Background Art
在现今这个信息化的时代,人们对自身的位置信息需求越来越高,因而室内定位成为了一个热点。现如今,在诸多场合都有对室内定位的需求,其有着许多重要应用,然而适用于室外定位的GPS,并不适合运用在室内定位,而现有的磁定位系统、红外定位系统、WiFi定位系统,却都无法满足高精度、低成本、低复杂性的室内定位需求。采用环保节能LED作为光源的可见光通信(VLC)技术被认为是极具发展潜力和应用背景的技术,基于可见光通信的室内定位系统由于具有传统室内定位方法所不具备的优势,成为近来一个热门的研究课题。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.
目前VLC技术的研究大多使用高速MCU,追求高速率和高容量,而未考虑到用户的实际照明需求,也忽略了人体健康,一方面,高速率会导致光源闪烁,而人眼作为重要的感知器官如果长时间暴露在闪烁的调制光源会导致视力下降、机理受损;另一方面,越来越多的用户需要使用可支持多级调光的调制光源,现有的室内定位技术发出的光信号并不支持多级调光,综上,现有的室内定位技术并不能满足用户的实际照明需求。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.
为此,如何在利用可见光进行室内实时定位的同时,满足用户健康照明的需求是亟待解决的问题。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
有鉴于此,本发明提供了一种基于健康照明的室内可见光实时定位方法、装置及设备,用以解决现有技术中无法在利用可见光进行室内实时定位的同时,满足用户健康照明的需求的问题。In view of this, the present invention provides a method, device and equipment for real-time indoor visible light positioning based on healthy lighting, so as to solve the problem in the prior art that it is impossible to meet the user's healthy lighting needs while using visible light for real-time indoor positioning.
本发明采用的技术方案是:The technical solution adopted by the present invention is:
第一方面,本发明提供了一种基于健康照明的室内可见光实时定位方法,其特征在于,所述方法包括:In a first aspect, the present invention provides a real-time positioning method for indoor visible light based on healthy lighting, characterized in that the method comprises:
S1:获取多种室内日常场景下一待定位终端上的实时标签信息;S1: Obtain real-time tag information on a terminal to be located in a variety of indoor daily scenarios;
S2:对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;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;
S3:将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;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;
S4:依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。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.
优选地,所述S2包括:Preferably, S2 includes:
S21:对原始光信号的原编码方式进行改进处理,得出闪烁抑制后的第一脉冲宽度调制信号;S21: improving the original encoding method of the original optical signal to obtain a first pulse width modulation signal after flicker suppression;
S22:对所述第一脉冲宽度调制信号进行调光处理,得出支持多级调光比的目标调制信号;S22: performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting multiple dimming ratios;
S23:依据所述目标调制信号,将所述定位光信号向所述待定位终端发出。S23: sending the positioning optical signal to the terminal to be positioned according to the target modulation signal.
优选地,所述S21包括:Preferably, the S21 includes:
S211:获取原始光信号对应的所述原编码方式;S211: Obtain the original encoding method corresponding to the original optical signal;
S212:依据所述原编码方式,得出按照所述原编码方式进行编码的原始线路;S212: according to the original encoding method, obtaining an original line encoded according to the original encoding method;
S213:对所述原始线路中二进制编码的游程长度进行限制,得出新编码方式;S213: limiting the run length of the binary code in the original line to obtain a new coding method;
S214:依据所述新编码方式进行编码,得出所述第一脉冲宽度调制信号。S214: Encoding is performed according to the new encoding method to obtain the first pulse width modulation signal.
优选地,所述S223包括:Preferably, the S223 includes:
S2231:获取预设的第一时间间隔和第二时间间隔;S2231: Obtaining a preset first time interval and a second time interval;
S2232:依据所述第一时间间隔,得出所述第一占空比的权重值,并依据所述第二时间间隔,得出所述第二占空比的权重值;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;
S2233:依据所述第一占空比的权重值和所述第二占空比的权重值,将第一占空比和第二占空比的加权平均值作为所述第三占空比;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;
S2234:将所述第三占空比的第三脉冲宽度调制信号作为所述目标调制信号。S2234: Use the third pulse width modulation signal of the third duty cycle as the target modulation signal.
优选地,所述S3包括:Preferably, the S3 includes:
S31:获取所述目标标签信息,其中,所述目标标签信息包括多个标签信息且至少包括所述实时标签信息;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;
S32:将所述实时标签信息与所述目标标签信息中各标签信息依次进行匹配,输出匹配结果;S32: matching the real-time tag information with each tag information in the target tag information in sequence, and outputting a matching result;
S33:当所述匹配结果为实时标签信息与所述目标标签信息中一标签信息匹配上时,接收所述待定位终端反射回的反射光信号。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.
优选地,其特征在于,所述S4包括:Preferably, it is characterized in that said S4 includes:
S41:依据所述反射光信号,得出定位光信号发出的方向角和光强度;S41: deriving the direction angle and light intensity of the positioning light signal according to the reflected light signal;
S42:依据所述方向角和光强度,得出所述实时位置信息。S42: Obtaining the real-time position information according to the direction angle and the light intensity.
第二方面,本发明提供了一种基于健康照明的室内可见光实时定位装置,所述装置包括:In a second aspect, the present invention provides an indoor visible light real-time positioning device based on healthy lighting, the device comprising:
实时标签信息获取模块,用于获取多种室内日常场景下一待定位终端上的实时标签信息;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;
定位光信号发出模块,用于对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;A positioning optical signal sending module, used to process the original optical signal, and send the processed optical signal that meets the user's lighting requirements as a positioning optical signal to the terminal to be located;
反射光信号接受模块,用于将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;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;
实时位置获取模块,用于依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。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.
第三方面,本发明实施例还提供了一种电子设备,包括:至少一个处理器、至少一个存储器以及存储在存储器中的计算机程序指令,当计算机程序指令被处理器执行时实现如上述实施方式中第一方面的方法。In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-mentioned embodiment.
第四方面,本发明实施例还提供了一种存储介质,其上存储有计算机程序指令,当计算机程序指令被处理器执行时实现如上述实施方式中第一方面的方法。In a fourth aspect, an embodiment of the present invention further provides a storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above-mentioned embodiment is implemented.
综上所述,本发明的有益效果如下:In summary, the beneficial effects of the present invention are as follows:
本发明提供的基于健康照明的室内可见光实时定位方法、装置及设备,所述方法包括:获取多种室内日常场景下一待定位终端上的实时标签信息;对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。一方面,本发明通过对待定位终端上的标签信息与预设标签进行匹配,匹配上时,利用反射光信号实现了对待定位终端的室内定位;另一方面,在实现利用可见光信号室内定位的同时,还对原始光信号进行处理,只发出符合用户照明需求的光信号进行定位,进一步满足了用户健康照明的需求。The present invention provides a method, device and equipment for real-time indoor visible light positioning based on healthy lighting, the method comprising: obtaining real-time tag information on a terminal to be positioned in a variety of indoor daily scenes; processing the original light signal, and sending the processed light signal that meets the user's lighting requirements as a positioning light signal to the terminal to be positioned; matching the real-time tag information with the preset target tag information, and when the real-time tag information matches the target tag information, receiving the reflected light signal reflected back by the terminal to be positioned; positioning the terminal to be positioned based on the reflected light signal, and obtaining the real-time position information of the terminal to be positioned. On the one hand, the present invention matches the tag information on the terminal to be positioned with the preset tag, and when they match, the reflected light signal is used to realize the indoor positioning of the terminal to be positioned; on the other hand, while realizing 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, further meeting the user's healthy lighting needs.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,这些均在本发明的保护范围内。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.
图1为本发明实施例1中基于健康照明的室内可见光实时定位方法的整体工作的流程示意图;FIG1 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;
图2为本发明实施例1中发出定位光信号的流程示意图;FIG2 is a schematic diagram of a process of sending a positioning light signal in Embodiment 1 of the present invention;
图3为本发明实施例1中确定第一脉冲宽度调制信号的流程示意图;FIG3 is a schematic diagram of a process for determining a first pulse width modulation signal in Embodiment 1 of the present invention;
图4为本发明实施例1中确定目标调制信号的流程示意图;FIG4 is a schematic diagram of a process for determining a target modulation signal in Embodiment 1 of the present invention;
图5为本发明实施例1中确定第三占空比的流程示意图;FIG5 is a schematic diagram of a process for determining a third duty cycle in Embodiment 1 of the present invention;
图6为本发明实施例1中接受反射光信号的流程示意图;FIG6 is a schematic diagram of a process of receiving a reflected light signal in Embodiment 1 of the present invention;
图7为本发明实施例1中对实时标签和目标标签进行匹配的流程示意图;FIG7 is a schematic diagram of a process of matching a real-time tag with a target tag in Embodiment 1 of the present invention;
图8为本发明实施例1中确定待定位终端的实时位置信息的流程示意图;8 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;
图9为本发明实施例2中基于健康照明的室内可见光实时定位装置的结构框图;FIG9 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;
图10为本发明实施例3中电子设备的结构示意图。FIG. 10 is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。在本发明的描述中,需要理解的是,术语“中心”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。如果不冲突,本发明实施例以及实施例中的各个特征可以相互结合,均在本发明的保护范围之内。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.
实施例1Example 1
请参见图1,本发明实施例1公开了一种基于健康照明的室内可见光实时定位方法,所述方法包括:Referring to FIG. 1 , Embodiment 1 of the present invention discloses a real-time positioning method for indoor visible light based on healthy lighting, the method comprising:
S1:获取多种室内日常场景下一待定位终端上的实时标签信息;S1: Obtain real-time tag information on a terminal to be located in a variety of indoor daily scenarios;
具体地,所述室内日常场景至少包括以下场景其中之一:商业中心、大型公共建筑(地铁、机场、图书馆等)、高危工业区、医院及养老院。通过获取上述不同场景下的待定位终端上的实时标签信息,实现对于不同场景下的待定位终端的实时室内定位,也进一步说明了定位场景具有多样性,室内定位的应用范围较为广泛。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.
S2:对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;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;
具体地,由于目前室内定位(VLC)技术的研究未考虑到用户的实际照明需求,也忽略了人体健康,通过对原始光信号进行处理,将优化后符合用户照明要求的光信号作为定位光信号,其中,所述符合用户照明要求的光信号是指发出的光信号是闪烁被抑制且支持多级调光比的光信号,向所述待定位终端发出所述定位光信号,避免了用户在室内定位的过程中受到不适宜光信号的干扰和影响。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.
在一实施例中,请参见图2,所述S2包括:In one embodiment, referring to FIG. 2 , S2 includes:
S21:对原始光信号的原编码方式进行改进处理,得出闪烁抑制后的第一脉冲宽度调制信号;S21: improving the original encoding method of the original optical signal to obtain a first pulse width modulation signal after flicker suppression;
具体地,由于现有的室内定位技术采用的高速MCU,在追求传输的高速率和高容量的同时,会出现光信号闪烁情况,通过对原始光信号的原编码方式进行改进处理,得出闪烁抑制后的第一脉冲宽度调制信号,避免了人眼长时间暴露在闪烁的调制光源而出现视力下降、机理受损的问题。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.
在一实施例中,请参见图3,所述S21包括:In one embodiment, referring to FIG. 3 , the S21 includes:
S211:获取原始光信号对应的所述原编码方式;S211: Obtain the original encoding method corresponding to the original optical signal;
具体地,获取原始的编码方式,由于光信号采用二进制编码,原始的编码方式有多种,其中,编码线路中的0码和1码间隔时间也是不同的。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.
S212:依据所述原编码方式,得出按照所述原编码方式进行编码的原始线路;S212: according to the original encoding method, obtaining an original line encoded according to the original encoding method;
S213:对所述原始线路中二进制编码的游程长度进行限制,得出新编码方式;S213: limiting the run length of the binary code in the original line to obtain a new coding method;
S214:依据所述新编码方式进行编码,得出所述第一脉冲宽度调制信号。S214: Encoding is performed according to the new encoding method to obtain the first pulse width modulation signal.
具体地,通过限制所述原始线路中二进制编码的游程长度,例如在原编码方式中0码出现的游程长度为5,即间隔5个游程长度才出现一个1码,将原编码线路中的0码出现的游程长度限制为3,此时,间隔3个游程长度就会出现一个1码,同理,按照上述方式,限制1码出现的游程长度,得出新的编码方式,并将按照所述新编码方式进行编码的对应调制信号作为所述第一脉冲宽度调制信号。通过改进编码方式减少传输序列中0码和1码的长时间存在,使其交替出现以减少闪烁,从而避免了发出的定位光信号由于闪烁对人体身心健康造成的不良影响。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 flicker, thereby avoiding the adverse effects of the flickering of the emitted positioning light signal on the physical and mental health of the human body.
S22:对所述第一脉冲宽度调制信号进行调光处理,得出支持多级调光比的目标调制信号;S22: performing dimming processing on the first pulse width modulation signal to obtain a target modulation signal supporting multiple dimming ratios;
具体地,通过对所述第一脉冲宽度调制信号进行调光处理,得出支持多级调光比的目标调制信号。通过多级调光,既可以起到很好的节能效果,又可以最大限度的满足人们的照明需要。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.
在一实施例中,请参见图4,所述S22包括:In one embodiment, referring to FIG. 4 , the S22 includes:
S221:获取预设的调光值,依据所述调光值,得出所述第一脉冲宽度调制信号的第一占空比;S221: Obtain a preset dimming value, and obtain a first duty cycle of the first pulse width modulation signal according to the dimming value;
S222:依据第一占空比的所述第一脉冲宽度调制信号,得出第二占空比的第二脉冲宽度调制信号,其中,所述第二占空比为所述第一占空比与预设调光增量之和;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;
具体地,根据用户输入的调光值,确定所述脉冲宽度调制信号的第一占空比;计算所述第一占空比与预设调光增量之和得到所述脉冲宽度调制信号第二占空比。其中,对于8位二进制脉冲宽度调制信号可以实现256级调光,预设调光增量可以设置为1,每增加1个调光值,调光级数增加一级。例如:当用户输入的调光值为200时,则可以产生占空比为200的脉冲宽度调制信号以及占空比为201的脉冲宽度调制信号。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.
S223:依据所述第一脉冲宽度调制信号和所述第二脉冲宽度调制信号,得出第三占空比的第三脉冲宽度调制信号,并将所述第三脉冲宽度调制信号作为所述目标调制信号。S223: deriving 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.
在一实施例中,请参见图5,所述S223包括:In one embodiment, referring to FIG. 5 , the S223 includes:
S2231:获取预设的第一时间间隔和第二时间间隔;S2231: Obtaining a preset first time interval and a second time interval;
具体地,获取预设的第一时间间隔和第二时间间隔,在所述第一预设时间间隔内输出所述第一占空比的脉冲宽度调制信号,并在所述第二预设时间间隔内输出所述第二占空比的脉冲宽度调制信号。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.
S2232:依据所述第一时间间隔,得出所述第一占空比的权重值,并依据所述第二时间间隔,得出所述第二占空比的权重值;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;
S2233:依据所述第一占空比的权重值和所述第二占空比的权重值,将第一占空比和第二占空比的加权平均值作为所述第三占空比;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;
具体地,根据所述第一预设时间间隔和所述第二预设时间间隔,分别计算所述第一占空比的权重值以及所述第二占空比的权重值;根据所述第一占空比的权重值以及所述第二占空比的权重值,计算所述第一占空比以及所述第二占空比的加权平均值作为所述第三占空比。例如:第一预设时间间隔可以为2ms,第二预设时间间隔可以为1ms,在0-2ms输出占空比为200的脉冲宽度调制信息,在2ms-3ms输出占空比为201的脉冲宽度调制信息,在3ms-5ms再输出占空比为200的脉冲宽度调制信息,在5ms-6ms输出占空比为201的脉冲宽度调制信息,按照这样的方式循环交替进行输出。那么在几分钟或几小时的时间内,输出的第三占空比的脉冲宽度调制信号为第一占空比的脉冲宽度调制信号和所述第二占空比的脉冲宽度调制信号的加权平均值,其中,如果第一预设时间间隔为T1,第二预设时间间隔为T2,则第三占空比=第一占空比*(T1/T1+T2)+第二占空比*(T2/T1+T2),当TI=2ms,T2=1ms时,第三占空比为200.33。需要说明的是,第一预设时间间隔不局限设置为2ms,还可以设置为其他时间;第二预设时间间隔不局限设置为1ms,还可以设置为其他时间。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 outputted 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.
S2234:将所述第三占空比的第三脉冲宽度调制信号作为所述目标调制信号。S2234: Use the third pulse width modulation signal of the third duty cycle as the target modulation signal.
S23:依据所述目标调制信号,将所述定位光信号向所述待定位终端发出。S23: sending the positioning optical signal to the terminal to be positioned according to the target modulation signal.
具体地,依据所述目标调制信号,得出所述定位光信号,并将所述定位光信号向所述待定位终端发出。由于所述目标调整信号经过了闪烁抑制并且具有多级调光功能,因此,输出的定位光信号更加符合用户的照明需求,有利于帮助用户实现健康照明。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.
S3:将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;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;
在一实施例中,请参见图6,所述S3包括:In one embodiment, referring to FIG. 6 , S3 includes:
S31:获取所述目标标签信息,其中,所述目标标签信息包括多个标签信息且至少包括所述实时标签信息;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;
具体地,获取用户输入的预先标注的多个标签信息作为所述目标标签信息,例如“冰箱”、“手机”、“电脑”、“平板”和“看护设备”等,上述目标标签信息至少包括待定位终端上的实时标签信息,例如所述待定位终端上的实时标签信息为“电脑”。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".
S32:将所述实时标签信息与所述目标标签信息中各标签信息依次进行匹配,输出匹配结果;S32: matching the real-time tag information with each tag information in the target tag information in sequence, and outputting a matching result;
具体地,,将所述实时标签信息与上述目标标签信息中各标签信息依次进行匹配,与目标标签信息中“冰箱”、“手机”、“平板”和“看护设备”之间的匹配结果均为不匹配,与目标标签信息中“电脑”的匹配结果为匹配。通过将实时标签信息与目标标签信息进行匹配,只在匹配上时才发出定位光信号,从而避免了未匹配上时发出的不必要光信号造成的资源浪费,同时目标标签信息用户可以依据实际需求灵活进行设置,更加贴合实际的应用场景,提升了用户的使用体验。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.
在一实施例中,请参见图7,所述S32包括:In one embodiment, referring to FIG. 7 , the S32 includes:
S321:将所述实时标签信息和目标标签信息进行预处理,得出第一关键词信息和第二关键词信息;S321: pre-processing the real-time tag information and the target tag information to obtain first keyword information and second keyword information;
具体地,将实时标签和预设标签进行预处理,去除停用词、同义词归一化等,保留关键词,得出第一关键词信息和第二关键词信息。例如可以使用Python中的自然语言处理工具,如NLTK、jieba等来完成预处理。通过去除停用词、同义词归一化等可以去除文本中的噪声和冗余信息,减少干扰,提高匹配精度,保留关键词可以将文本转化为关键信息,便于后续特征表示和相似度计算。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.
S322:将第一关键词信息和第二关键词信息输入词袋模型中,得出第一特征向量和第二特征向量;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;
具体地,将第一关键词信息和第二关键词信息输入词袋模型中,得出第一特征向量和第二特征向量;其中,词袋模型是一种文本表示方法,它将文本看作是一个袋子,不考虑单词出现的顺序,只考虑文本中每个单词出现的次数。在词袋模型中,文本可以表示为一个向量,向量的每个维度对应于一个单词,维度的值表示该单词在文本中出现的次数。通过将文本转化为向量表示,便于后续相似度计算。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.
S323:利用余弦相似度算法,计算所述第一特征向量和第二特征向量之间的相似度;S323: Calculate the similarity between the first feature vector and the second feature vector using a cosine similarity algorithm;
具体地,利用余弦相似度算法,计算所述第一特征向量和第二特征向量之间的相似度;余弦相似度是一种用于计算两个向量相似度的方法,常用于文本相似度计算。余弦相似度计算的原理是,将两个向量表示为空间中的向量,并计算它们之间的夹角余弦值。夹角余弦值越大,表示两个向量的方向越接近,相似度越高。在文本相似度计算中,可以将每个文本表示为一个向量,向量的每个维度表示一个词汇,向量的值表示该词汇在文本中出现的次数或权重。然后,利用余弦相似度计算公式计算两个文本向量的相似度,得到一个范围在0到1之间的值,表示两个文本的相似度,值越大表示相似度越高。通过计算实时标签和预设标签之间的相似度,从而得到匹配度,便于选择最佳匹配标签。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 to obtain a value ranging from 0 to 1, 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.
S324:依据所述相似度和预设的相似度阈值,得出所述匹配结果,其中,所述相似度阈值根据实际应用场景设置。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.
具体地,例如设定相似度阈值为0.85,计算得出实时标签与预设标签之间的相似度为0.9大于0.85,则认为匹配结果为匹配上;若为0.7小于0.85,则未匹配上,所述相似度阈值根据实际应用场景灵活设置,根据具体需求设定相似度阈值,过滤低相似度标签,减少误匹配。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.
S33:当所述匹配结果为实时标签信息与所述目标标签信息中一标签信息匹配上时,接收所述待定位终端反射回的反射光信号。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.
具体地,所述待定位终端上预先设置了反射面,当所述匹配结果为实时标签信息与所述目标标签信息中一标签信息匹配上时,待定位终端会将定位光信号反射回来,通过接收所述待定位终端反射回的反射光信号,来实现精确的室内终端实时定位。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 can be achieved.
S4:依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。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.
具体地,反射光信号传输过程中可能会受到噪声、衰减等干扰,从而导致误码率增加。为了提高反射光信号的可靠性,采用前向纠错码技术,通过添加冗余信息来纠正错误,常用的前向纠错码有卷积码和LDPC码,通过反射光信号对所述待定位终端进行定位,由于可见光发光范围即通信边界非常清晰,不会受到其它无线电干扰,运行稳定,同时可以通过测量传感器光通量确定待定位终端的实时位置信息,因此可以实现高精度清晰稳定的数字信标,实现高精度的室内定位应用。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, the 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.
在一实施例中,请参见图8,所述S4包括:In one embodiment, referring to FIG. 8 , S4 includes:
S41:依据所述反射光信号,得出定位光信号发出的方向角和光强度;S41: deriving the direction angle and light intensity of the positioning light signal according to the reflected light signal;
S42:依据所述方向角和光强度,得出所述实时位置信息。S42: Obtaining the real-time position information according to the direction angle and the light intensity.
具体地,获取所述待定位终端发出的反射光信号,并依据所述反射光信号的方向角和光强度进一步计算得出定位光信号发出的方向角和光强度,依据所述定位光信号的方向角和光强度,得出所述待定位终端的实时位置信息,从而实现了待定位终端的可见光实时定位,相比传统的室内无线定位手段,可见光实时定位更具有绿色节能环保、成本低廉、无电磁干扰、定位精度高和应用场合广泛等优势。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.
实施例2Example 2
请参见图9,本发明实施例2还提供了一种基于健康照明的室内可见光实时定位装置,所述装置包括:Referring to 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:
实时标签信息获取模块,用于获取多种室内日常场景下一待定位终端上的实时标签信息;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;
定位光信号发出模块,用于对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;A positioning optical signal sending module, used to process the original optical signal, and send the processed optical signal that meets the user's lighting requirements as a positioning optical signal to the terminal to be located;
反射光信号接受模块,用于将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;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;
实时位置获取模块,用于依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。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.
具体地,本发明实施例提供的基于健康照明的室内可见光实时定位装置,所述装置包括:实时标签信息获取模块,用于获取多种室内日常场景下一待定位终端上的实时标签信息;定位光信号发出模块,用于对原始光信号进行处理,将处理后符合用户照明要求的光信号作为定位光信号向所述待定位终端发出;反射光信号接受模块,用于将所述实时标签信息和预设的目标标签信息进行匹配,当所述实时标签信息与目标标签信息匹配上时,接收所述待定位终端反射回的反射光信号;实时位置获取模块,用于依据所述反射光信号,对所述待定位终端进行定位,得出所述待定位终端的实时位置信息。一方面,本装置通过对待定位终端上的标签信息与预设标签进行匹配,匹配上时,利用反射光信号实现了对待定位终端的室内定位;另一方面,在实现利用可见光信号室内定位的同时,还对原始光信号进行处理,只发出符合用户照明需求的光信号进行定位,进一步满足了用户健康照明的需求。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.
实施例3Example 3
另外,结合图1描述的本发明实施例1的基于健康照明的室内可见光实时定位方法可以由电子设备来实现。图10示出了本发明实施例3提供的电子设备的硬件结构示意图。In addition, the indoor visible light real-time positioning method based on healthy lighting of embodiment 1 of the present invention described in conjunction with Figure 1 can be implemented by an electronic device. Figure 10 shows a schematic diagram of the hardware structure of an electronic device provided by embodiment 3 of the present invention.
电子设备可以包括处理器以及存储有计算机程序指令的存储器。The electronic device may include a processor and a memory storing computer program instructions.
具体地,上述处理器可以包括中央处理器(CPU),或者特定集成电路(ApplicationSpecific Integrated Circuit,ASIC),或者可以被配置成实施本发明实施例的一个或多个集成电路。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.
存储器可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器可在数据处理装置的内部或外部。在特定实施例中,存储器是非易失性固态存储器。在特定实施例中,存储器包括只读存储器(ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(PROM)、可擦除PROM(EPROM)、电可擦除PROM(EEPROM)、电可改写ROM(EAROM)或闪存或者两个或更多个以上这些的组合。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. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, 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.
处理器通过读取并执行存储器中存储的计算机程序指令,以实现上述实施例中的任意一种基于健康照明的室内可见光实时定位方法。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.
在一个示例中,电子设备还可包括通信接口和总线。其中,如图10所示,处理器、存储器、通信接口通过总线连接并完成相互间的通信。In one example, the electronic device may further include a communication interface and a bus. As shown in FIG10 , the processor, the memory, and the communication interface are connected via the bus and communicate with each other.
通信接口,主要用于实现本发明实施例中各模块、装置、单元和/或设备之间的通信。The communication interface is mainly used to implement communication between the modules, devices, units and/or equipment in the embodiments of the present invention.
总线包括硬件、软件或两者,将所述设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线可包括一个或多个总线。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。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 accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, the bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
实施例4Example 4
另外,结合上述实施例1中的基于健康照明的室内可见光实时定位方法,本发明实施例4还可提供一种计算机可读存储介质来实现。该计算机可读存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现上述实施例中的任意一种基于健康照明的室内可见光实时定位方法。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.
综上所述,本发明实施例提供了一种基于健康照明的室内可见光实时定位方法、装置及设备。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.
需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。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.
以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。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.
还需要说明的是,本发明中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本发明不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。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.
以上所述,仅为本发明的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。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 processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, 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 (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411131343.1A CN119197515B (en) | 2023-05-15 | 2023-05-15 | Indoor positioning method and system with multi-level dimming of optical signals |
| CN202310543835.0A CN116608858B (en) | 2023-05-15 | 2023-05-15 | Indoor visible light real-time positioning method, device and equipment based on health illumination |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310543835.0A CN116608858B (en) | 2023-05-15 | 2023-05-15 | Indoor visible light real-time positioning method, device and equipment based on health illumination |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411131343.1A Division CN119197515B (en) | 2023-05-15 | 2023-05-15 | Indoor positioning method and system with multi-level dimming of optical signals |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116608858A CN116608858A (en) | 2023-08-18 |
| CN116608858B true CN116608858B (en) | 2024-09-06 |
Family
ID=87677488
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310543835.0A Active CN116608858B (en) | 2023-05-15 | 2023-05-15 | Indoor visible light real-time positioning method, device and equipment based on health illumination |
| CN202411131343.1A Active CN119197515B (en) | 2023-05-15 | 2023-05-15 | Indoor positioning method and system with multi-level dimming of optical signals |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411131343.1A Active CN119197515B (en) | 2023-05-15 | 2023-05-15 | Indoor positioning method and system with multi-level dimming of optical signals |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN116608858B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119483744A (en) * | 2024-02-29 | 2025-02-18 | 旭宇光电(深圳)股份有限公司 | Intelligent optimization method, device and equipment for indoor lighting visible light communication carrier frequency |
| CN118353526B (en) * | 2024-04-12 | 2024-11-19 | 旭宇光电(深圳)股份有限公司 | Exhibition information push method, device, equipment and medium based on visible light communication |
| CN118449602B (en) * | 2024-05-07 | 2025-02-28 | 旭宇光电(深圳)股份有限公司 | Visible light information communication method, device and equipment based on field of view alignment |
| CN118623890B (en) * | 2024-06-06 | 2025-09-16 | 旭宇光电(深圳)股份有限公司 | Indoor visible light positioning method, device, equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8699887B1 (en) * | 2013-03-14 | 2014-04-15 | Bret Rothenberg | Methods and systems for encoding and decoding visible light with data and illumination capability |
| CN111551182A (en) * | 2020-06-08 | 2020-08-18 | 中国人民解放军战略支援部队信息工程大学 | Visible light indoor terminal positioning method and visible light positioning system |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201247016A (en) * | 2011-04-12 | 2012-11-16 | Koninkl Philips Electronics Nv | Apparatus, system and method for pulse width modulated lighting control |
| US8432438B2 (en) * | 2011-07-26 | 2013-04-30 | ByteLight, Inc. | Device for dimming a beacon light source used in a light based positioning system |
| US9306667B2 (en) * | 2013-02-22 | 2016-04-05 | Qualcomm Incorporated | Method and apparatus for power-efficient joint dimming and visible light communication |
| EA028741B1 (en) * | 2013-07-09 | 2017-12-29 | Юрий Николаевич Аксёнов | Method of transmission of information in the optical communication system, optical communication system for its implementation, transmitting-receiving terminal and communication system of the global information society |
| WO2019020200A1 (en) * | 2017-07-28 | 2019-01-31 | Fundació Privada I2Cat, Internet I Innovació Digital A Catalunya | Method and apparatus for accurate real-time visible light positioning |
| CN110798796B (en) * | 2019-09-20 | 2020-12-18 | 南方科技大学 | Indoor positioning method, device, computer equipment and storage medium |
| EP3945342A1 (en) * | 2020-07-29 | 2022-02-02 | Infineon Technologies AG | Method and apparatus for time-of-flight sensing |
| KR102398536B1 (en) * | 2020-12-14 | 2022-05-16 | 한국광기술원 | Optical modulation device based on visible light communication and method thereof, Visible light communication system |
| US20230071722A1 (en) * | 2021-09-03 | 2023-03-09 | Seagate Technology Llc | ANALOG DEMODULATION OF PHASE MODULATED CONTINUOUS WAVE (PMCW) LiDAR |
| WO2023039827A1 (en) * | 2021-09-17 | 2023-03-23 | 深圳大学 | Optimization method based on fusion of visible light communication and visible light positioning |
-
2023
- 2023-05-15 CN CN202310543835.0A patent/CN116608858B/en active Active
- 2023-05-15 CN CN202411131343.1A patent/CN119197515B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8699887B1 (en) * | 2013-03-14 | 2014-04-15 | Bret Rothenberg | Methods and systems for encoding and decoding visible light with data and illumination capability |
| CN111551182A (en) * | 2020-06-08 | 2020-08-18 | 中国人民解放军战略支援部队信息工程大学 | Visible light indoor terminal positioning method and visible light positioning system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119197515A (en) | 2024-12-27 |
| CN119197515B (en) | 2025-09-23 |
| CN116608858A (en) | 2023-08-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN116608858B (en) | Indoor visible light real-time positioning method, device and equipment based on health illumination | |
| CN106537816B (en) | Derive method, equipment and the computer-readable medium of identifier in visible light signal | |
| CN105827311A (en) | Visible light communication-based indoor positioning method and positioning system | |
| US9971921B2 (en) | Fingerprint image sensor and method for optical wireless communications using the same | |
| CN107222258A (en) | A data acquisition method, data transmission method, device and data transmission system | |
| CN108880682A (en) | A kind of visible light communication dimming controlling method and system based on coding | |
| CN1666427A (en) | Information retrieval system based on position of the light source | |
| Pohlmann | Visible light communication | |
| Pham et al. | An artificial intelligence-based error correction for optical camera communication | |
| CN111651059A (en) | Gesture recognition device, method and electronic device | |
| CN118300686B (en) | Visible light communication method, device, equipment and medium based on environment self-adaption | |
| CN110809346A (en) | Light adjusting method, light adjusting device and terminal equipment | |
| CN107171734B (en) | Optical chip for optical communication | |
| CN205407826U (en) | Light is made an uproar and is got rid of circuit and optical receiver | |
| CN103793979A (en) | Method for upgrading photon receiving end | |
| CN103559748A (en) | Visible light recognition lockset and control method for visible light recognition lockset | |
| CN106375007A (en) | Visible light communication-based device and method for LED light source | |
| Nguyen et al. | Enhanced Bit-Rate Performance for Visible Light Communication Systems Between Led and Mobile Camera | |
| CN103812556A (en) | Lighting parameter optimizing method for photon client | |
| Thieu et al. | Implementation of optical camera communication for indoor presence detection system in smart home concept | |
| CN114239792A (en) | Model quantization method, device and storage medium | |
| JP2019511171A (en) | Optical noise removal circuit, optical receiver and optical chip | |
| CN107171723B (en) | Optical noise removing circuit and optical receiver | |
| CN115694655B (en) | Optical domain amplitude-phase parasitic modulation method, system, device and storage medium | |
| CN108449138A (en) | A M-sequence visual inspection method and system for visible light communication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |