Physical position identification method of lighting unit, lighting unit and intelligent terminal
By enabling local self-discovery and self-encoding at the lighting unit end, combined with luminous characteristics and smart terminal photo or video recognition, the problem of cumbersome operation for location identification of multiple smart lights is solved. This achieves fast and accurate location identification and binding, reduces system costs, and improves user experience and configuration efficiency.
Patent Information
- Application Number
- CN202511436837.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-01-20
AI Technical Summary
In existing smart home systems, identifying the physical location of multiple smart lights is cumbersome and inefficient. Furthermore, relying on a centralized smart hub presents single points of failure and network dependence, making it unusable in offline scenarios. Advanced positioning solutions are costly and complex to deploy.
By enabling local self-discovery and self-encoding at the lighting unit end, and combining the luminous characteristics with smart terminal photo or video recognition, rapid and accurate location identification and binding can be achieved without a central controller. The physical characteristics of the lighting unit, such as color, brightness, and flicker, are used for encoding, and the location is identified through image processing by the smart terminal.
It enables fast, accurate, and privacy-friendly location identification and binding of multiple lighting units in the absence of an intelligent central hub, reducing system costs, improving user experience and configuration efficiency, and enhancing system reliability and scalability.
Smart Images

Figure CN121365254A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and in particular to a physical position identification method of a lighting unit, the lighting unit and a smart terminal. BACKGROUND
[0002] In a smart home, a smart lamp is a common terminal device. In particular, in a living room, a conference room or a commercial space, multiple smart lamps of the same model are usually installed. A smart home system usually uses a network identification code as a device identifier for control. The network identification code is, for example, a media access control address (MAC) or a unique identity document (ID). When a user needs to individually operate a certain smart lamp, the user cannot intuitively know the correspondence between the physical lamp and the virtual switch, and needs to try one by one or manually mark the position. The operation is complicated, inefficient and poor in user experience.
[0003] The prior art solutions are as follows: 1) manual annotation: the user manually annotates the position or name of each lamp in an application program (APP). This method is feasible when the number of lamps is small, but when the number of lamps is large, the layout is complex or the position changes frequently, the maintenance cost is high and errors are likely to occur. 2) sensor-assisted positioning: using a camera, infrared or radio frequency identification (RFID) sensor to position the lamp, which can provide position identification, but requires additional equipment, is high in cost, complicated to install and can only be used in a dedicated laboratory environment. 3) intelligent hub positioning method: a centralized intelligent hub is used to uniformly encode, feature and bind the positions of multiple lamps, and all identification and decision-making are completed on the central side, and the terminal device is passively executed. This solution usually requires deploying special algorithms and coordination logic in the intelligent hub, relies on a centralized intelligent hub, has a single point of failure and network dependency, and cannot be used in an offline scenario. These existing methods generally have the problems of complicated operation, low efficiency or high cost, and cannot meet the user's demand for quickly identifying each smart lamp in a multi-lamp environment. SUMMARY
[0004] The embodiments of the present application provide a physical position identification method of a lighting unit, a lighting unit and a smart terminal, which realize self-discovery and self-encoding of the lighting unit end locally without an intelligent hub, and realize offline availability, privacy-friendly, fast and accurate multi-lighting unit position identification and binding by combining the lighting unit light-emitting characteristics and the local photographing or video identification of the smart terminal, thereby improving the user operation experience and configuration efficiency.
[0005] In a first aspect, the embodiments of the present application provide a physical position identification method of a lighting unit, applied to any one of a plurality of lighting units, and the method comprises:
[0006] receiving device information broadcasted by other lighting units of which physical positions are to be identified, the device information comprising at least device identities and device types of the other lighting units;
[0007] generating a unique physical feature code for itself according to the device identities and device types of itself and the other lighting units, and performing the physical feature code;
[0008] receiving a feature recognition result obtained by the smart terminal identifying media data collected by the smart terminal and the other lighting units, the feature recognition result comprising physical positions and physical display information of the lighting units associated with the media data;
[0009] matching the feature recognition result with the physical feature code to determine the physical position of itself and bind the physical position with the device identity.
[0010] In a second aspect, the embodiment provides a physical position identification method of a lighting unit, applied to a smart terminal, and the method comprises:
[0011] collecting media data of each lighting unit when the lighting units perform corresponding physical feature codes;
[0012] identifying the media data of each lighting unit by using an image processing algorithm to obtain physical positions and physical display information of the lighting units associated with the media data as a feature recognition result.
[0013] In a third aspect, the embodiment provides a lighting unit, comprising:
[0014] at least one processor; and
[0015] a memory in communication with the at least one processor; wherein
[0016] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the physical position identification method of the lighting unit according to the first aspect of the embodiment.
[0017] In a fourth aspect, the embodiment provides a smart terminal, comprising:
[0018] at least one processor; and
[0019] a memory in communication with the at least one processor; wherein
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the physical position identification method of the lighting unit as described in the second aspect embodiment.
[0021] The embodiment of the present application provides a physical position identification method of a lighting unit, a lighting unit and a smart terminal, which are applied to any one of a plurality of lighting units. The method comprises the following steps: first, receiving device information broadcast by other lighting units of a physical position to be identified, wherein the device information at least comprises device identifiers and device types of the other lighting units; second, generating a unique physical feature code for itself according to the device identifiers and the device types of itself and the other lighting units, and executing the physical feature code; third, receiving a feature identification result, wherein the feature identification result is obtained by a smart terminal identifying media data collected by itself and the other lighting units, and the feature identification result comprises a physical position and physical display information of the lighting units associated with the media data; and fourth, matching the feature identification result with the physical feature code to determine the physical position of itself and bind the physical position with the device identifier. The above technical solution provides a decentralized physical position identification method of the lighting unit. In the absence of a smart hub, self-discovery and self-coding are completed by the lighting unit end locally. Control information is distributed and communicated by end-side cooperation. The lighting unit emits physical information such as color, brightness and flicker. The smart terminal identifies the physical information by taking a photo or a video. The method realizes offline use, privacy-friendly, fast and accurate multi-lighting unit position identification and binding, improves user operation experience and configuration efficiency. Each lighting unit does not need to rely on a central controller, and information sharing and automatic grouping between lighting units can be realized through local broadcasting, thereby reducing system cost, improving system reliability and expandability. In an environment where a plurality of lighting units exist, different physical feature codes are generated for different lighting units according to different lighting unit-specific device identifiers, so that the lighting units output different physical information. The position relationship of the lighting units is acquired by the smart terminal through controlling the lighting units to emit physical information such as color, brightness, flicker timing and switch timing. The physical display information emitted by the lighting units is also acquired and broadcast to the lighting units. The physical position of the lighting unit with a specified device identifier is acquired by matching the physical display information with the executed physical feature code. The physical position of the lighting unit is identified quickly, and the user operation experience and configuration efficiency are improved. The whole identification process is fully automatic and does not need human intervention, thereby greatly improving the efficiency of lighting unit deployment and space mapping. Meanwhile, the identification can be completed by the smart terminal taking a photo or a video, which is user-friendly, easy to operate and does not need professional equipment.
[0022] It is to be understood that the details set forth herein do not limit the scope of the embodiments of the application to the specific embodiments described. The foregoing detailed description has set forth various embodiments of the devices and / or processes via the use of specific terminology. However, embodiments of the application are not necessarily limited to those described, but can be practiced with the BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0024] Figure 1 A flowchart of a physical position identification method of a lighting unit provided for the first embodiment of the present application is shown in the figure.
[0025] Figure 2 A flowchart of another physical position identification method of a lighting unit provided for the second embodiment of the present application is shown in the figure.
[0026] Figure 3 A flowchart of a physical position identification method of a lighting unit provided for the third embodiment of the present application is shown in the figure.
[0027] Figure 4 A flowchart of a physical position identification method of a smart lamp provided for the third embodiment of the present application is shown in the figure.
[0028] Figure 5 An architecture diagram of a physical position identification of a smart lamp provided for the third embodiment of the present application is shown in the figure.
[0029] Figure 6 A structure diagram of a lighting unit provided for the fourth embodiment of the present application is shown in the figure.
[0030] Figure 7 A structure diagram of a smart terminal provided for the fifth embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0031] In order to make the technical personnel in the art better understand the present application scheme, the following will combine the drawings in the embodiments of the present application, and the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only some embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", and the like in the description and claims of the application and the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0033] In the field of smart home, it is often encountered that multiple smart bulbs are installed in the same area. A typical scenario is that multiple smart lights are installed in a living room. When it is needed to control the light effect of a certain smart light individually, since the smart home control hub uses MAC address or proprietary ID as device identification code, it is not intuitive to know which virtual switch the light corresponds to. It needs to be confirmed one by one and memorized to be used normally. The disadvantages of the prior art include: 1) lack of intuitive physical location correspondence between the lamp and the control end; 2) in a multi-lamp environment, only relying on manual identification and manual binding one by one is not only low in efficiency, but also prone to errors; 3) relying on centralized intelligent hub, there is a single point of failure and network dependence, and offline scenarios are not available; 4) high-level positioning scheme is high in cost and complex in arrangement, and highly dependent on environmental conditions. Therefore, a method is needed to solve the above problems. The present application aims to optimize the physical location recognition and control binding efficiency in the case of multiple devices existing densely.
[0034] Embodiment one
[0035] Figure 1 A flowchart of a physical location recognition method of a lighting unit provided by the present application is shown in the embodiment one. The method can be applied to the case of recognizing the physical location of the lighting unit. The method can be executed by a physical location recognition device of the lighting unit. The physical location recognition device of the lighting unit can be realized in the form of hardware and / or software, and is generally integrated in the lighting unit.
[0036] As shown in the embodiment one, the physical location recognition method of the lighting unit can specifically include the following steps: Figure 1
[0037] S101, receiving device information broadcast by other lighting units of the physical location to be recognized.
[0038] Among them, the device information at least includes the device identification and device type of the other lighting unit.
[0039] In this embodiment, the lighting unit can be specifically understood as a light source assembly capable of emitting light, for example, the lighting unit can be a lighting assembly in a smart lamp, a light bulb or a light strip, etc., which is not specifically limited here. The physical position identification method of the lighting unit provided in this embodiment is applied to any one of a plurality of lighting units, that is, each lighting unit whose physical position is to be identified will execute the physical position identification method of the lighting unit provided in this embodiment to determine its own physical position. The execution subject of the physical position identification method of the lighting unit is the lighting unit, which can realize fully decentralized and automated intelligent lighting unit physical position identification without relying on a central controller, has high reliability, low cost and good user experience, and is suitable for complex scenarios with mixed deployment of various lighting units.
[0040] In this embodiment, from the perspective of the execution subject, the lighting unit as the execution subject is recorded as itself, and other lighting units are recorded as other lighting units. The device identifier is used to identify different lighting units, and each lighting unit has a unique device identifier. The device identifier can be a MAC address or a device ID of the lighting unit or other information capable of identifying the device.
[0041] According to the above description, the lighting units can be divided into different device types according to different functions supported by the lighting units. For example, the lighting units can be divided into full-color lighting units, fast flashing lighting units, brightness adjustable lighting units and ordinary switch lighting units. The full-color lighting unit itself supports full-color function and can be set to any color through an instruction; the fast flashing lighting unit itself does not support full-color display but supports high-frequency flashing function; the brightness adjustable lighting unit does not support full-color display and high-frequency flashing but supports brightness adjustment function; and the ordinary switch lighting unit only supports basic on / off control and does not support full-color display, high-frequency flashing and brightness adjustment. The device identifier and the device type of the lighting unit are recorded as the device information of the lighting unit. The device information of the other lighting units includes the device identifier and the device type of the other lighting units.
[0042] For example, each lighting unit actively broadcasts its MAC address or device ID and the control characteristics supported by the current lighting unit, such as whether to support full color, fast flashing, brightness adjustment, etc., according to a self-defined protocol through wireless methods such as Bluetooth or WiFi, to facilitate automatic discovery and identification by the remaining lighting units. For example, the broadcast device information package content can include: {MAC: "AA:BB:CC:DD:EE:FF", supported functions: [full color, fast flashing, brightness adjustment]}. At the same time, each lighting unit will also actively scan and receive the device information broadcast by other lighting units around it to automatically establish a local lighting unit list while broadcasting device information.
[0043] S102, generating a unique physical feature code for itself according to the device identifier and the device type of itself and the other lighting units, and performing the physical feature code.
[0044] The physical feature code can be understood as a code for making the lighting unit output a differentiated physical feature. In this embodiment, according to the device type and supported functions of each lighting unit, multiple coding processing modes are provided, and the optimal coding mode can be automatically selected according to the device type and supported functions of the lighting unit to be identified, and the multiple coding modes can be mixed. The feature coding mode of the lighting unit can include but is not limited to color coding mode, flashing coding mode, brightness coding mode, and switch coding mode.
[0045] In this embodiment, multiple feature coding modes are provided, and the most suitable physical feature coding mode is selected according to the physical control ability of the different lighting units, such as color, flashing timing, brightness, or switch timing, so that each lighting unit can be accurately distinguished during subsequent photographing or video recognition. According to the device type of the lighting unit, that is, the supported functions, the optimal feature coding mode is selected for coding. The color coding mode is suitable for lighting units supporting full-color functions, the flashing coding mode is suitable for lighting units supporting fast flashing but not supporting full-color functions, the brightness coding mode is suitable for lighting units supporting only brightness adjustment but not supporting full-color and fast flashing functions, and the switch coding mode is suitable for lighting units supporting only switch control.
[0046] In this embodiment, each lighting unit obtains the device information of all the lighting units to be identified according to the received broadcast signals of all the lighting units, and groups them according to the control characteristics, and sorts them by device identifier within the group. After determining the feature coding mode of each lighting unit according to the device type of each lighting unit, the corresponding feature coding mode is used for unique coding assignment based on the unique device identifier sorting of the lighting unit, to generate a unique physical feature code for itself and perform the physical feature code to switch the lighting unit to the display state corresponding to the physical feature code of the lighting unit.
[0047] For example, if the color coding mode is used, different color phases can be assigned to different lighting units for color coding, so that the colors emitted by different lighting units are different. If the flashing coding mode is used, different flashing timing can be assigned to different lighting units for flashing coding, so that the flashing modes of different lighting units are distinguished from each other. If the brightness coding mode is used, different brightness can be assigned to different lighting units for brightness coding, so that the brightness emitted by different lighting units is different. If the switch coding mode is used, different switch timing can be assigned to different lighting units for switch coding, so that the switch modes of different lighting units are distinguished from each other.
[0048] It should be noted that a plurality of coding modes can also be mixed, for example, a color coding mode and a brightness coding mode are mixed, different colors and brightness are assigned to different lighting units for color and brightness coding, so that different lighting units emit different colors and brightness. The above is only an example, other mixed coding modes can also be used in this embodiment, which will not be listed one by one here.
[0049] In this embodiment, as described above, after obtaining the device types of itself and other lighting units, the optimal feature coding mode is automatically selected according to the functions supported by each lighting unit according to the device types of each lighting unit. After determining the feature coding mode of each lighting unit, the lighting units with the same feature coding mode as itself can be selected from other lighting units according to the feature coding mode of itself, and these lighting units are grouped into a group. After determining each target lighting unit with the same feature coding mode as itself, the device identifier of each lighting unit in the same group as itself is used to code itself according to the feature coding mode of itself, and a unique physical feature code is generated for itself. It is equivalent to automatically grouping according to the functions supported by the lighting unit, each lighting unit selects the appropriate display mode according to its own device identifier in the group, that is, the feature coding mode, and realizes self-coding according to the order and the feature coding mode.
[0050] As described above, after each lighting unit realizes self-coding, it will execute its own physical feature coding, automatically switch to the physical feature display state corresponding to the physical feature coding, such as the specified color, brightness, flashing timing and switching timing, etc.
[0051] For example, taking a smart lamp in a certain application scenario as an example, assuming that the smart lamps to be identified are 6 in total, of which 3 are full-color lamps and 3 are flash lamps. The MAC addresses of the lamps are as follows:
[0052] Full-color lamp A: MAC=AA:BB:CC:00:00:01
[0053] Full-color lamp B: MAC=AA:BB:CC:00:00:02
[0054] Full-color lamp C: MAC=AA:BB:CC:00:00:03
[0055] Flash lamp D: MAC=AA:BB:CC:00:00:04
[0056] Flash lamp E: MAC=AA:BB:CC:00:00:05
[0057] Flash lamp F: MAC=AA:BB:CC:00:00:06
[0058] Full-color light groups (A, B, C) are color-coded. Assuming the order after sorting is C (03), B (02), A (01), the assigned colors are red (Hue 0°), green (Hue 120°), and blue (Hue 240°), respectively.
[0059] Fast flash light groups (D, E, F) are high-frequency flashing coded. The order after sorting is F (06), E (05), D (04), and assuming that 3-bit binary coding is required (L = 2, 2^2 = 4 > 3), the codes 00, 01, and 10 are assigned, respectively. The time of the mobile phone's rolling shutter is 1 / 8000, so the flashing frequency of the lamp is adjusted to be above 20KHz, and the 2-period coding can be observed within the range of the lamp bulb.
[0060] S103, receiving the feature recognition result broadcast by the intelligent terminal.
[0061] The feature recognition result is obtained by recognizing the media data collected by the self and the other lighting units, and the feature recognition result includes the physical location and the physical display information of the lighting unit associated with the media data.
[0062] In this embodiment, when each lighting unit performs corresponding physical feature coding, the intelligent terminal collects images or videos of the display state of each lighting unit as the media data of each lighting unit. The physical location of the lighting unit can be a two-dimensional space coordinate (such as the horizontal coordinate X and the vertical coordinate Y), and the physical display information can be specifically understood as the display attribute of the lighting unit in the media data, such as color, brightness, flashing timing, and on-off timing. The intelligent terminal automatically recognizes the physical location and the physical display information of each lighting unit in each media data through an image processing algorithm. The physical location and the physical display information of each lighting unit in each media data can form a data pair: (X1, Y1, N1), (X2, Y2, N2) … (Xn, Yn, Nn), where (X1, Y1) and N1 represent the physical location and the physical display information of one lighting unit, (X2, Y2) and N2 represent the physical location and the physical display information of another lighting unit, and (Xn, Yn) and Nn represent the physical location and the physical display information of another lighting unit. The physical location and the physical display information of the lighting unit are taken as the feature recognition result.
[0063] Based on the above description, the intelligent terminal will broadcast the feature recognition result obtained by recognizing the media data, and each lighting unit will receive the feature recognition result broadcast by the intelligent terminal. For example, the user uses the mobile phone App to shoot the distribution scene of the current lighting unit, and the App recognizes the physical display information and the physical location of each lighting unit through an image processing algorithm.
[0064] S104, match the feature recognition result with the physical feature code to determine the physical position and bind with the device identification.
[0065] In the embodiment, the execution subject receives the feature recognition result broadcast by the intelligent terminal, traverses the physical display information in the feature recognition result, compares each physical display information with the physical feature code of the execution subject, determines the target physical display information matched with the physical feature code, and takes the physical position corresponding to the target physical display information as the physical position of the execution subject through the uniqueness of the physical feature code, and binds the physical position with the device identification of the execution subject, to realize accurate correspondence between the physical space coordinate and the device identification of the lighting unit.
[0066] It can be understood that in the embodiment, the position is recognized quickly based on the physical characteristics (such as color, brightness, flashing time sequence, and switching time sequence) of the lighting unit, without additional hardware, and the coding generation, feature execution, image acquisition, recognition, and binding can be automatically completed through one-key photographing, to realize the position recognition of multiple lighting units, greatly shorten the operation time, and improve the ease of use and configuration efficiency.
[0067] The technical solution provides a decentralized lighting unit physical position fast identification method, under the premise of no intelligent hub, self-discovery and self-coding are completed by the lighting unit end locally, control information is distributed through end-side cooperation and nearby communication, lighting unit light-emitting characteristics (such as color, brightness, and flicker) are combined with local photographing or video identification of the intelligent terminal, offline availability, privacy-friendly, fast and accurate multi-lighting unit position identification and binding are realized, and user operation experience and configuration efficiency are improved. Each lighting unit does not need to rely on a central controller, information sharing and automatic grouping between lighting units can be realized through local broadcasting, system cost is reduced, and system reliability and expansibility are improved. In an environment where multiple lighting units exist, different physical feature codes are coded for different lighting units according to different lighting unit specific device identifiers, so that the lighting units output differentiated physical information; the position relationship of each lighting unit is acquired through the intelligent terminal, and the physical display information emitted by the lighting unit is acquired and broadcast to the lighting unit, the lighting unit is matched according to the physical display information and the executed physical feature code, and thus the physical position of the lighting unit with the specified device identifier is acquired. The physical position of the lighting unit is quickly identified, and the user operation experience and configuration efficiency are improved. The whole identification process is fully automatic and does not need manual intervention, and the efficiency of lighting unit deployment and space mapping is greatly improved. At the same time, the identification can be completed by photographing or video shooting of the intelligent terminal, the user experience is friendly, the operation is simple, and no professional equipment is needed.
[0068] As an optional embodiment of the embodiment of the application, on the basis of the above-mentioned embodiment, before the receiving of the device information broadcast by the other lighting units with the physical position to be identified, the method further comprises: initialization according to a preset requirement, so that the self enters an identification preparation state.
[0069] This step is an initial device initialization step that needs to be performed, specifically, all lighting units with physical positions to be identified are initialized according to a preset requirement, so that the self enters an identification preparation state. For example, the lighting unit is turned on and off 3 times within 2 seconds to ensure that all lighting units enter an identification preparation state.
[0070] As an optional embodiment of the embodiment of the application, on the basis of the above-mentioned embodiment, after the determination of the physical position of the self, the method further comprises:
[0071] a1) receiving the binding relationship between the device identifier and the physical position broadcast by the other lighting units.
[0072] In this embodiment, the lighting unit itself will perform the physical position recognition method of the lighting unit provided in this embodiment, and after determining the physical position of the lighting unit itself, the device identity of the lighting unit itself will be bound to the corresponding physical position to form a binding relationship. Similarly, other lighting units will also perform the physical position recognition method of the lighting unit provided in this embodiment, and after determining the physical position of the lighting unit itself, the device identity of the lighting unit itself will be bound to the corresponding physical position to form a binding relationship. Each lighting unit will broadcast the binding relationship, and correspondingly, the execution subject will receive the binding relationship of the device identity and the physical position broadcast by each other lighting unit.
[0073] b1) store the binding relationship of the device identity and the physical position of the lighting unit itself and the other lighting units locally.
[0074] In this embodiment, the execution subject will store the binding relationship of the device identity and the physical position of the lighting unit itself and the other lighting units locally. For example, the binding relationship of the device identity and the physical position of each lighting unit can be stored in the form of a mapping table to generate a mapping table of the physical position and the device identity of the lighting unit, such as (L1, X1, Y1), (L2, X2, Y2), …, (Ln, Xn, Yn), wherein L1, L2, …, Ln respectively identify the device identity of each lighting unit, (X1, Y1) represents the physical position of the lighting unit L1, (X2, Y2) represents the physical position of the lighting unit L2, …, and (Xn, Yn) represents the physical position of the lighting unit Ln. The mapping table is stored in the local storage of each lighting unit for subsequent automatic control, scene configuration, and the like.
[0075] It should be noted that the binding relationship of the device identity and the physical position can not only be stored locally in the lighting unit, but also be synchronized to other terminals through a local area network to realize multi-end sharing and subsequent automatic control.
[0076] The above technical solution realizes the generation of the mapping table of the physical position and the unique device identity of the lighting unit, supports local or local area network multi-end synchronization, facilitates subsequent automatic control and scene configuration, and improves the intelligent level of the system.
[0077] Embodiment Two
[0078] Figure 2The flowchart of another physical position identification method of a lighting unit provided in Embodiment Two of the present application is shown in the figure. Embodiment Two is a further optimization of Embodiment One. In Embodiment Two, the optimization of "generating a unique physical feature code for the lighting unit according to the device type and the device identifier of the lighting unit and the other lighting units" and the optimization of "matching the feature identification result with the physical feature code to determine the physical position of the lighting unit and bind the device identifier" are further defined.
[0079] As shown in Figure 2 Embodiment Two provides a physical position identification method of a lighting unit, which specifically includes the following steps:
[0080] S201, receiving device information broadcast by other lighting units whose physical positions are to be identified, the device information including at least the device identifier and the device type of the other lighting units.
[0081] S202, determining the feature code mode of the lighting unit and the other lighting units according to the device type of the lighting unit and the other lighting units.
[0082] The feature code mode of the lighting unit includes color code mode, flashing code mode, brightness code mode, and switch code mode.
[0083] In this embodiment, there are multiple code modes. The color code mode is suitable for lighting units supporting full-color function. The flashing code mode is suitable for lighting units supporting fast flashing but not supporting full-color function. The brightness code mode is suitable for lighting units supporting brightness adjustment only but not supporting full-color and fast flashing function. The switch code mode is suitable for lighting units supporting switch control only.
[0084] As described above, after obtaining the device type of the lighting unit and the other lighting units, the optimal feature code mode can be automatically selected according to the function supported by each lighting unit, thereby ensuring the universality and identification accuracy of the method.
[0085] As a specific implementation, if the lighting unit supports two or more code modes, the step of "determining the feature code mode of the lighting unit and the other lighting units according to the device type of the lighting unit and the other lighting units" includes:
[0086] selecting the code mode with the highest priority from the code modes supported by the lighting unit as the feature code mode of the lighting unit.
[0087] The color code mode is superior to the flashing code mode, which is superior to the brightness code mode, which is superior to the switch code mode.
[0088] It should be noted that if the lighting unit supports two or more encoding modes, the highest priority encoding mode supported by the lighting unit can be selected as the optimal encoding mode applicable to the lighting unit. For example, for a lighting unit that supports full-color encoding mode, flickering encoding mode, brightness encoding mode and switch encoding mode, the highest priority full-color encoding mode is selected as the characteristic encoding mode of the lighting unit. For a lighting unit that supports flickering encoding mode, brightness encoding mode and switch encoding mode, but does not support full-color encoding mode, the highest priority flickering encoding mode is selected as the characteristic encoding mode of the lighting unit. Here, it is not listed one by one. The above technical scheme supports the mixed deployment of multiple types of lighting units, automatically selects the optimal physical feature encoding mode, has strong adaptability and high recognition accuracy.
[0089] S203, determining each target lighting unit with the same characteristic encoding mode as itself according to the characteristic encoding mode of the other lighting unit.
[0090] In the embodiment, after determining the characteristic encoding mode of each lighting unit, the lighting unit with the same characteristic encoding mode as itself can be selected from other lighting units according to the characteristic encoding mode of itself, and these lighting units are recorded as target lighting units.
[0091] S204, generating a unique physical feature code for itself using the characteristic encoding mode of itself according to the device identifier of itself and each target lighting unit, and executing the physical feature code.
[0092] The physical feature code is used to indicate the differentiated physical characteristics output by the lighting unit, and the differentiated physical characteristics include at least one of color, flickering encoding, brightness or switch encoding state.
[0093] After determining each target lighting unit with the same characteristic encoding mode as itself, it is equivalent to that itself and each target lighting unit are in the same group. The unique feature code of itself can be generated using the characteristic encoding mode of itself based on the device identifier of itself and each target lighting unit. In the embodiment, the unique physical feature code of itself can be generated based on the encoding allocation mechanism of the device identifier of the lighting unit in sequence.
[0094] As a specific implementation, if the characteristic encoding mode of itself is a color encoding mode, the step of generating a unique physical feature code for itself using the characteristic encoding mode of itself according to the device identifier of itself and each target lighting unit can be optimized, including:
[0095] a2) obtaining the device identification of the self and each of the target lighting units, and the number of the self and the first number / all lighting units of the target lighting units.
[0096] The following will describe how the lighting units are feature-coded by using the color coding mode. One implementation is that the device identification of the self and each of the target lighting units by using the color coding mode, and the number of the self and the target lighting units are obtained first, which are recorded as the first data. Another implementation is that the device identification of the self and each of the target lighting units by using the color coding mode, and the number of all lighting units are obtained first.
[0097] b2) dividing the preset hue value range uniformly into a plurality of to-be-allocated hues corresponding to the number of the first number / all lighting units.
[0098] The preset hue value range can be set according to actual conditions, for example, the hue value range can be 180°. If the first number is used, the colors of the self and the target lighting units are arranged respectively according to the preset hue value range divided by the first number as intervals, and these colors are recorded as to-be-allocated hues. If the number of all lighting units is used, the colors of the self and the target lighting units are arranged respectively according to the preset hue value range divided by the number of all lighting units as intervals, and these colors are recorded as to-be-allocated hues.
[0099] For example, assuming that the number of all lighting units is 6, the number of the self and the target lighting units is 3, and the hue value range is 0-359°, if the hue allocation is performed according to the number of the self and the target lighting units, 360° / 3, and the to-be-allocated hues are 0°, 120° and 240° respectively. If the hue allocation is performed according to the number of all lighting units, 360° / 6, and the to-be-allocated hues are 0°, 60°, 120°, 180°, 240° and 300° respectively.
[0100] c2) sorting the device identification of the self and each of the target lighting units from large to small, and uniquely color-coding the to-be-allocated hues allocated to the self according to the sorting position of the self.
[0101] In the embodiment, the device identifiers of the self and the target lighting units are sorted in descending order, and the sorting position of the self in the whole sorting is determined, and the color phase to be allocated to the self is uniquely color-coded according to the sorting position of the self. For example, assuming that the device identifier of the lighting unit is a MAC address, the self and the target lighting units are sorted in descending order according to the MAC address, and the colors of the lighting units are arranged at intervals of 360° / the first number respectively, so as to ensure the color differentiation between the lighting units and avoid confusion of similar colors. Assuming that the first number is 3, the color phases to be allocated are 0°, 120° and 240° respectively, and since the sorting position of the self is 2, 120° is allocated to the self and color-coded.
[0102] d2) The color code is taken as the physical feature code of the self.
[0103] Up to now, the color coding of the self is completed, and the color code is taken as the physical feature code of the self.
[0104] The above technical solution specifically implements the steps of how to use the color coding mode to code the physical features of the lighting units, uses an automatic coding allocation mechanism based on the sorting of the unique device identifiers of the lighting units, and ensures that the coding is unique, stable and reproducible. This provides a basis for subsequent identification of the physical positions of the lighting units by controlling the color, a physical information emitted by the lighting units.
[0105] As a specific implementation, if the feature coding mode of the self is a flashing coding mode, the step of generating a unique physical feature code for the self according to the device identifiers of the self and the target lighting units and using the feature coding mode of the self can be optimized, and the step includes:
[0106] a3) Obtaining the device identifiers of the self and the target lighting units, and the second number of the target lighting units / the number of all the lighting units.
[0107] The following will describe how the flashing coding mode codes the features of the lighting units. It should be noted that the flashing coding mode fully utilizes the rolling shutter principle commonly used in current mainstream mobile phone cameras, that is, the image sensor is exposed line by line in one shooting process, so that the bright and dark states of different time segments are recorded as bright and dark stripes in the image under high-frequency flashing light. By using this characteristic, the lighting units can be controlled to flash at a specific binary sequence at a high frequency, so that each lighting unit presents a unique bright and dark code in the photographed photo, thereby realizing the unique identification of the lighting units.
[0108] In the embodiment, one implementation is that the device identity of the self and each target lighting unit in the flickering coding mode is acquired first, and the number of the self and each target lighting unit is recorded as the second number. Another implementation is that the device identity of the self and each target lighting unit in the flickering coding mode is acquired first, and the number of all lighting units is acquired.
[0109] b3) determining the flickering coding length of the target lighting unit according to the second number / number of all lighting units.
[0110] The step is used for determining the coding length of the binary coding of the target lighting unit in the flickering mode, which is recorded as the flickering coding length. If the second number is used, assuming that the second number is represented as N, and the flickering coding length is represented as L, L = log2(N), that is, the smallest integer L is selected, so that 2L≥N. The length ensures that each lighting unit can be assigned to a unique binary sequence. If the number of all lighting units is used, assuming that the number of all lighting units is represented as M, and the flickering coding length is represented as L, L = log2(M), that is, the smallest integer L is selected, so that 2L≥M. The length ensures that each lighting unit can be assigned to a unique binary sequence.
[0111] c3) sorting the device identity of the self and each target lighting unit from large to small, and according to the sorting position of the self, performing unique binary flickering coding on the self according to the flickering coding length.
[0112] In the embodiment, the self and each target lighting unit to be identified physical position are sorted from large to small according to the device identity, which ensures the stability and repeatability of the coding assignment. The i th lighting unit after sorting is assigned the i th binary sequence as the flickering coding. The device identity of the self and each target lighting unit is sorted from large to small, and the sorting position of the self in the whole sorting is determined, and according to the sorting position of the self, the unique binary flickering coding is performed on the self according to the flickering coding length.
[0113] According to the above description, the coding assignment principle is that assuming that the flickering coding is a binary sequence with a length of L, for example, b_(L-1)b_(L-2)...b_0, each bit corresponds to the flickering state of a time segment. That is, 1 represents that the lighting unit is bright (ON) in the time segment, and 0 represents that the lighting unit is off (OFF) in the time segment, and the flickering state of the lighting unit is executed according to the time sequence of the binary sequence. For example, the flickering sequence of the lighting unit with the code 101 is: bright→off→bright.
[0114] d3) taking the binary flickering coding as the physical feature coding of the self.
[0115] At this point, the binary flickering code is completed for the self, and the binary flickering code is taken as the physical feature code of the self.
[0116] The technical solution specifically realizes the steps of how to encode the lighting unit by using the flickering code mode. The self and the target lighting unit to be identified are sorted in descending order according to the device identifiers. The number of bits of the code is determined according to the second number of the self and the target lighting unit or the number of all the lighting units. The self is allocated a unique binary flickering code. The lighting unit is set to flicker according to the code sequence at a high frequency, and it is ensured that the code can be captured by the intelligent terminal. The automatic code allocation mechanism based on the sorting of the unique device identifiers of the lighting unit ensures that the code is unique, stable and reproducible. This provides a basis for subsequent identification of the physical location of the lighting unit by controlling the flickering time sequence of the lighting unit.
[0117] As a specific implementation, if the feature code mode of the self is the brightness code mode, the step of generating a unique physical feature code for the self according to the device identifiers of the self and each of the target lighting units by using the feature code mode of the self can be optimized, and the step includes:
[0118] a4) obtaining the device identifiers of the self and each of the target lighting units, and the third number of the self and the target lighting units / the number of all the lighting units.
[0119] The following will describe how to encode the lighting unit by using the brightness code mode. In this embodiment, one implementation is to first obtain the device identifiers of the self and each of the target lighting units using the brightness code mode, and the number of the self and each of the target lighting units, which is denoted as the third number. Another implementation is to first obtain the device identifiers of each of the self and each of the target lighting units using the brightness code mode, and the number of all the lighting units.
[0120] b4) evenly dividing a preset brightness range into a plurality of to-be-allocated brightnesses corresponding to the third number / the number of all the lighting units.
[0121] The preset brightness range can be set according to actual conditions. If the third number is used, the preset brightness range is evenly divided into a plurality of brightnesses corresponding to the third number, and the brightnesses are denoted as to-be-allocated brightnesses. If the number of all the lighting units is used, the preset brightness range is evenly divided into a plurality of brightnesses corresponding to the number of all the lighting units, and the brightnesses are denoted as to-be-allocated brightnesses.
[0122] c4) sorting the device identifiers of the self and each of the target lighting units in descending order, and uniquely encoding the to-be-allocated brightness allocated to the self according to the sorting position of the self.
[0123] In the embodiment, the device identifiers of the self and each target lighting unit to be identified are sorted in descending order, and the brightness to be allocated is allocated to the self and each target lighting unit in turn according to the brightness gradient order. The sorting position of the self in the whole sorting is determined, and the color phase to be allocated to the self is uniquely brightness coded according to the sorting position of the self. By uniformly allocating the brightness level between the maximum brightness and the minimum brightness, the brightness distinction between the lighting units is ensured, and confusion between adjacent brightness levels is avoided.
[0124] d4) The brightness coding is taken as the physical feature coding of the self.
[0125] So far, the brightness coding for the self is completed, and the brightness coding is taken as the physical feature coding corresponding to the self.
[0126] The above technical solution specifically implements how to use the brightness coding mode to code the physical features of the lighting unit, uses an automatic coding allocation mechanism based on the unique device identifier sorting of the lighting unit, ensures that the coding is unique, stable and reproducible, and provides a basis for subsequent identification of the physical position of the lighting unit by controlling the brightness, a physical information emitted by the lighting unit.
[0127] It should be noted that the color coding mode, the flashing coding mode and the brightness coding mode are all based on the shooting mode to obtain the physical feature information of the lighting unit, and therefore in actual application, when there are multiple lighting units of different types (such as full-color lighting units, flash lighting units and brightness-adjustable lighting units) in the same space, the three modes can be flexibly combined and used. The execution subject will automatically select the most suitable coding mode according to the function of each lighting unit, and will synchronously issue the features in different coding modes to the corresponding lighting unit, so as to realize unified identification and position binding of multiple types of lighting units, greatly improve the identification efficiency and application range in a multi-lighting-unit heterogeneous environment, realize full-process automation of coding allocation and identification, support mixed deployment of multiple types of lighting units, and ensure coding uniqueness and high robustness of identification.
[0128] As a specific implementation, if the feature coding mode of the self is the on-off coding mode, the step of generating a unique physical feature coding for the self according to the device identifiers of the self and the other lighting units using the feature coding mode of the self can include:
[0129] a5) Obtain the device identifiers of the self and each target lighting unit, and the number of the fourth number / all lighting units of the self and the target lighting units.
[0130] The following will describe how the lighting units are feature-encoded using the on-off encoding mode. In the present embodiment, one implementation is to first acquire the device identifiers of the self and each target lighting unit using the on-off encoding mode, and the number of the self and each target lighting unit, denoted as the fourth number. Another implementation is to first acquire the device identifiers of the self and each target lighting unit using the on-off encoding mode, and the number of all lighting units.
[0131] b5) determining the on-off encoding length of the target lighting unit according to the fourth number / number of all lighting units.
[0132] The present step is used to determine the encoding length of the on-off binary encoding of the self and each target lighting unit, denoted as the on-off encoding length. If the fourth number is used, assuming that the number of the fourth lighting unit is denoted as N, and the on-off encoding length is denoted as L, then L = log2(N), that is, the smallest integer L is selected such that 2L≥N. The length ensures that each lighting unit can be assigned to a unique binary sequence. If the number of all lighting units is used, assuming that the number of all lighting units is denoted as M, and the on-off encoding length is denoted as L, then L = log2(M), that is, the smallest integer L is selected such that 2L≥M. The length ensures that each lighting unit can be assigned to a unique binary sequence.
[0133] c5) sorting the device identifiers of the self and each target lighting unit from large to small, and according to the sorting position of the self, performing unique binary on-off encoding for the self according to the on-off encoding length.
[0134] In the present embodiment, the self and each target lighting unit to be identified physical location are sorted from large to small according to the device identifier, and each lighting unit is sequentially and uniquely binary on-off encoded according to the on-off encoding length, ensuring the stability and repeatability of the encoding assignment. The i-th lighting unit after sorting is assigned the i-th binary sequence as its on-off encoding. The sorting position of the self in the entire sorting is determined, and the self is uniquely binary on-off encoded according to the on-off encoding length according to the sorting position of the self.
[0135] It should be noted that the on-off encoding mode is similar to the flickering encoding mode, which sets the lighting unit to change the on-off state according to the encoding sequence, but requires the user to shoot a video instead of a photo to capture the time sequence information.
[0136] d5) taking the binary on-off encoding as the physical feature encoding of the self.
[0137] Up to now, the on-off encoding of the self is completed, and the on-off encoding is taken as the physical feature encoding of the self.
[0138] The technical solution above specifically realizes how to encode the physical features of the lighting unit by using the switch coding mode, and realizes automatic coding allocation based on the unique device identification of the lighting unit, so as to ensure that the coding is unique, stable and reproducible. This provides a basis for subsequent identification of the physical position of the lighting unit by controlling the switch timing sequence of the lighting unit to emit physical information.
[0139] It should be noted that for the lighting unit using the color coding mode, the flicker coding mode and the brightness coding mode to encode the features, the intelligent terminal only needs to collect the corresponding image of the lighting unit as its media data. For the switch coding mode, the intelligent terminal is required to collect the corresponding video of the lighting unit instead of the image as its media data to capture the time sequence information. If the lighting unit to be identified has a lighting unit using the switch coding mode, all the lighting units in this identification use the video collection information.
[0140] S205, receiving the feature identification result broadcast by the intelligent terminal.
[0141] The feature identification result is obtained by identifying the media data collected by the self and the other lighting units, and the feature identification result includes the physical position and the physical display information of the lighting unit associated with the media data.
[0142] S206, traversing each of the physical display information to determine the target physical display information matched with the physical feature coding.
[0143] In this embodiment, the physical display information in the feature identification result is traversed, each physical display information is compared with the physical feature coding of the self, the physical display information matched with the physical feature coding is determined as the target physical display information.
[0144] S207, taking the physical position corresponding to the target physical display information as the physical position of the self, and binding the physical position with the device identification.
[0145] In this embodiment, after the target physical display information matched with the physical feature coding is determined, the physical position corresponding to the target physical display information is taken as the physical position of the self by the uniqueness of the physical feature coding, and the physical position is bound with the device identification of the self, so as to realize accurate correspondence between the physical space coordinates and the device identification of the lighting unit.
[0146] It can be understood that each lighting unit can use the physical identification method of the lighting unit provided in this embodiment, and the physical position of the lighting unit identified in the media data is bound with the device identification of the corresponding lighting unit by the uniqueness of the feature coding, so as to obtain the physical coordinates of each lighting unit.
[0147] To verify the feasibility of the method provided by the embodiment, an actual application scenario is taken as an example to illustrate that 6 different types of intelligent lamps are identified in a living room environment, and color coding, flashing coding and brightness coding are combined with mobile phone shooting to complete the physical position binding. The experimental results show that the method is stable and reliable under the light conditions of ordinary home environment.
[0148] The above technical solution specifically realizes the steps of generating a unique physical feature code for itself, and matching the feature recognition result with the physical feature code to determine the physical position of itself. By adopting multiple physical feature coding methods such as color coding, high-frequency flashing coding, brightness level coding, and switch timing coding, the optimal feature coding mode is automatically assigned according to the device type of the lighting unit, which improves the recognition accuracy and application range. The coding allocation algorithm ensures uniqueness and stability, avoids misidentification and confusion, and is suitable for large-scale complex scenarios. The identification process is fully automatic and does not require human intervention, greatly improving the efficiency of lighting unit deployment and space mapping. In addition, the identification can be completed by using the smart terminal to take pictures or videos, which is user-friendly and easy to operate without the need for professional equipment.
[0149] Embodiment three
[0150] Figure 3 A flowchart of a physical position identification method of a lighting unit provided by the third embodiment of the present application. The method can be applied to identify the physical position of the lighting unit, and the method can be executed by a physical position identification device of the lighting unit. The physical position identification device of the lighting unit can be realized in the form of hardware and / or software, and is generally integrated in a smart terminal.
[0151] As shown in Figure 3 The physical position identification method of the lighting unit provided by the third embodiment can specifically include the following steps:
[0152] S301, when each lighting unit executes the corresponding physical feature coding, media data of each lighting unit is collected.
[0153] The execution subject of the embodiment can be a smart terminal. When each lighting unit executes the corresponding physical feature coding, the smart terminal selects positions where the lighting units do not overlap and meet the user's visual viewing angle to take pictures to obtain image or video data of each lighting unit, which is recorded as media data.
[0154] It should be noted that according to the different encoding modes of the physical feature encoding, the image or video of the lighting unit can be selected accordingly. For the lighting unit using color encoding mode, flickering encoding mode and brightness encoding mode for feature encoding, the intelligent terminal only needs to collect the corresponding image of the lighting unit as its media data. For the on-off encoding mode, the intelligent terminal is required to collect the corresponding video of the lighting unit instead of the image as its media data to capture the time sequence information. If the lighting unit to be identified has a lighting unit using the on-off encoding mode, all the lighting units in this identification use the video collection information mode.
[0155] S302, using an image processing algorithm to identify the media data of each lighting unit, obtaining the physical location and physical display information of each lighting unit associated with the media data as a feature recognition result.
[0156] In this embodiment, the spatial coordinates and the physical features of the lighting unit associated with each media data are identified by the image processing identification mechanism. The spatial coordinates of the lighting unit are referred to as the physical location of the lighting unit, and the physical display features of the lighting unit are referred to as the physical display information of the lighting unit. By obtaining the physical location of the lighting unit, the physical display information of the lighting unit is also obtained. The physical location of the lighting unit can be two-dimensional spatial coordinates (such as horizontal coordinate X and vertical coordinate Y), and the physical display information can be understood as the display attributes of the lighting unit in the media data, such as color, brightness, flickering timing, on-off timing, etc. By using an image processing algorithm, the physical location and the physical display information of each lighting unit in each media data are automatically identified. The physical location and the physical display information of each lighting unit in each media data can form a data pair: (X1, Y1, N1), (X2, Y2, N2) … (Xn, Yn, Nn), wherein (X1, Y1) and N1 represent the physical location and the physical display information of one lighting unit, (X2, Y2) and N2 represent the physical location and the physical display information of another lighting unit, and (Xn, Yn) and Nn represent the physical location and the physical display information of another lighting unit. The physical location and the physical display information of each lighting unit associated with each media data are taken as the feature recognition result.
[0157] The above technical solution uses the intelligent terminal to take a photo or video of the display state of each lighting unit, combines an image processing algorithm, and automatically identifies the physical location and the physical display information of the lighting unit, thereby providing a basis for subsequent automatic binding of the physical location and the unique device identifier of the lighting unit.
[0158] As an optional embodiment of the present invention, based on the above embodiments, this optional embodiment can be optimized so that after obtaining the feature recognition result, the method further includes: broadcasting the feature recognition result.
[0159] In this embodiment, after the smart terminal identifies the feature recognition result from the media data, it will broadcast the feature recognition result.
[0160] The above technical solution adds a step where the smart terminal broadcasts the feature recognition results to each lighting unit, providing a basis for the lighting unit to perform physical location matching based on its own physical feature encoding and feature recognition results.
[0161] To more clearly illustrate the physical location identification method for a lighting unit provided in this embodiment of the invention, a practical application scenario of physical location identification for a lighting unit will be used as an example. Assuming the lighting unit is a smart lamp, for example... Figure 4 This is a flowchart illustrating a method for identifying the physical location of a smart light according to Embodiment 3 of the present invention. Figure 4 As shown, the execution steps of its physical location identification method can specifically include: start; smart light initialization; each smart light broadcasts its own device identifier and device type; receiving device information broadcast by other smart lights; device type classification and encoding, smart lights include full-color lights, flashing lights, adjustable brightness lights, and on / off lights, selecting the corresponding optimal encoding mode; smart lights execute display features; the acquisition method includes two types: for full-color lights, flashing lights, and adjustable brightness lights, the mobile phone acquires and uploads images of the smart lights; for on / off lights, video is acquired and uploaded; then the mobile phone performs image processing to extract the spatial coordinates and display features of the smart lights; the smart lights compare the physical feature encoding with the display features and bind the spatial coordinates with the unique device identifier; generate and store the location mapping table; end.
[0162] Figure 5 As shown in Figure 5, this is an example architecture diagram for physical location recognition of smart lights provided in Embodiment 3 of the present invention. The home environment includes smart light 1, smart light 2, smart light 3, and smart light N. After initialization, each smart light encodes its own physical features and displays them according to the physical feature codes. The camera module on the mobile APP captures images or videos of the smart lights, performs image processing, extracts the physical location and display features, and broadcasts them to each smart light. The smart lights compare the display features with the physical feature codes, bind the matched physical location with the MAC address or device ID, and achieve location binding. The location binding mapping table is stored in the mobile APP through the upload module of the mobile APP. It is understood that the modular design facilitates subsequent functional expansion and maintenance.
[0163] Example 4
[0164] Figure 6 This is a schematic diagram of the structure of a lighting unit provided in Embodiment 4 of the present invention. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0165] like Figure 6 As shown, the lighting unit 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded from the storage unit 48 into the RAM 43. The RAM 43 can also store various programs and data required for the operation of the lighting unit 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0166] Multiple components in the lighting unit 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, optical disk, etc.; and a communication unit 49, such as a network card, modem, wireless transceiver, etc. The communication unit 49 allows the lighting unit 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0167] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the physical location recognition method for the lighting unit.
[0168] In some embodiments, the method of physical location identification of a lighting unit can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 48. In some embodiments, portions of the computer program, or all of the computer program, can be loaded onto the lighting unit 40 via, e.g., ROM 42 and / or communication unit 49. When the computer program is loaded onto RAM 43 and executed by processor 41, one or more steps of the method of physical location identification of a lighting unit as described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the method of physical location identification of a lighting unit by way of other means (e.g., by way of firmware).
[0169] Embodiment Five
[0170] Figure 7 A block diagram of an intelligent terminal is provided for Embodiment Five of the present invention. The intelligent terminal is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present invention described and / or claimed in this document.
[0171] As shown in Figure 7 Intelligent terminal 50 includes at least one processor 51, and memory, such as read only memory (ROM) 52, random access memory (RAM) 53, etc., communicatively connected to the at least one processor 51, where the memory stores computer programs executable by the at least one processor 51, and the processor 51 can perform various appropriate actions and processes according to the computer programs stored in the read only memory (ROM) 52 or loaded into the random access memory (RAM) 53 from the storage unit 58. Various programs and data required for the operation of the intelligent terminal 50 can also be stored in the RAM 53. The processor 51, the ROM 52, and the RAM 53 are connected to each other through a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0172] A plurality of components in the intelligent terminal 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a magnetic disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the intelligent terminal 50 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0173] The processor 51 can be various general and / or special purpose processing components having processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 performs various methods and processes described above, such as the physical location identification method of the lighting unit.
[0174] In some embodiments, the physical location identification method of the lighting unit can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 58. In some embodiments, part or all of the computer program can be loaded and / or installed onto the intelligent terminal 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded onto the RAM 53 and executed by the processor 51, one or more steps of the physical location identification method of the lighting unit described above can be performed. Alternatively, in other embodiments, the processor 51 can be configured to perform the physical location identification method of the lighting unit by any other appropriate means, such as by means of firmware.
[0175] The various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0176] A computer program for implementing the method of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor, implements the functions / operations specified in the flow diagrams and / or the block diagrams. The computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0177] It should be understood that the various forms of flow shown above can be re-ordered, added to, or have steps deleted, without departing from the scope of the present application. For example, the steps recited in the present application can be performed in parallel, in series, or in a different order, without departing from the desired results of the technical solutions of the present application, which are not limited herein.
[0178] The above detailed description does not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method of physical location recognition of a lighting unit, applied to any one of a plurality of lighting units, characterized by, The method comprises the following steps: receiving device information broadcast by other lighting units in a physical location to be identified, the device information comprising at least device identification and device type of the other lighting units; generating a unique physical feature code for the lighting unit according to the device identification and device type of the lighting unit and the other lighting units, and performing the physical feature code; receiving a feature recognition result obtained by a smart terminal from media data collected by the lighting unit and the other lighting units, the feature recognition result comprising a physical location and physical display information of the lighting unit associated with the media data; matching the feature recognition result with the physical feature code to determine the physical location of the lighting unit and bind the device identification.
2. The method of claim 1, wherein, The step of generating a unique physical feature code for the lighting unit according to the device identification and device type of the lighting unit and the other lighting units comprises the following steps: determining a feature code mode of the lighting unit and the other lighting units according to the device type of the lighting unit and the other lighting units; determining each target lighting unit having the same feature code mode as the lighting unit according to the feature code mode of the other lighting units; generating a unique physical feature code for the lighting unit according to the device identification of the lighting unit and each target lighting unit and the feature code mode of the lighting unit. The physical feature code is used to indicate a differentiated physical characteristic output by the lighting unit, and the differentiated physical characteristic comprises at least one of the following: color, flashing code, brightness, or on-off code state.
3. The method of claim 2, wherein, The feature code mode of the lighting unit comprises a color code mode, a flashing code mode, a brightness code mode, and an on-off code mode.
4. The method of claim 3, wherein, If the lighting unit supports two or more code modes, the step of determining the feature code mode of the lighting unit and the other lighting units according to the device type of the lighting unit and the other lighting units comprises the following steps: selecting a code mode having the highest priority from the code modes supported by the lighting unit as the feature code mode of the lighting unit; wherein the color code mode is superior to the flashing code mode, which is superior to the brightness code mode, which is superior to the on-off code mode. If the feature code mode of the lighting unit is the color code mode, the step of generating a unique physical feature code for the lighting unit according to the device identification of the lighting unit and each target lighting unit and the feature code mode of the lighting unit comprises the following steps:
5. The method of claim 3, wherein, obtaining the device identification of the lighting unit and each target lighting unit, and the number of the first number / all lighting units of the lighting unit and the target lighting units; uniformly dividing a preset hue value range into a plurality of to-be-allocated hues corresponding to the number of the first number / all lighting units; sorting the device identification of the lighting unit and each target lighting unit from large to small, and uniquely color coding the to-be-allocated hue allocated to the lighting unit according to the sorting position of the lighting unit; taking the color coding as the physical feature code of the lighting unit. If the feature code mode of the lighting unit is the flashing code mode, the step of generating a unique physical feature code for the lighting unit according to the device identification of the lighting unit and each target lighting unit and the feature code mode of the lighting unit comprises the following steps:
6. The method of claim 3, wherein, obtaining device identities of the self and the target lighting units, and a number of the self and the target lighting units; determining a length of a flickering code of the target lighting units according to the number of the target lighting units; ordering the device identities of the self and the target lighting units from large to small, and performing a unique binary flickering code of the self according to a position of the self in the ordering, and according to the length of the flickering code; taking the binary flickering code as a physical feature code of the self.
7. The method of claim 3, wherein, If a feature coding mode of the self is a brightness coding mode, the generating a unique physical feature code of the self according to the device identities of the self and the target lighting units, and according to the feature coding mode of the self, comprises: obtaining device identities of the self and the target lighting units, and a number of the self and the target lighting units; uniformly dividing a preset brightness range into a plurality of to-be-allocated brightnesses corresponding to the number of the target lighting units; ordering the device identities of the self and the target lighting units from large to small, and performing a unique brightness code of the self according to a position of the self in the ordering, and according to the to-be-allocated brightness allocated to the self; taking the brightness code as a physical feature code of the self.
8. The method of claim 3, wherein, If a feature coding mode of the self is a switch coding mode, the generating a unique physical feature code of the self according to the device identities of the self and the target lighting units, and according to the feature coding mode of the self, comprises: obtaining device identities of the self and the target lighting units, and a number of the self and the target lighting units; determining a length of a switch code of the target lighting units according to the number of the target lighting units; ordering the device identities of the self and the target lighting units from large to small, and performing a unique binary switch code of the self according to a position of the self in the ordering, and according to the length of the switch code; taking the binary switch code as a physical feature code of the self.
9. The method of claim 1, wherein, The matching the feature recognition result with the physical feature code to determine a physical position of the self and to bind the device identity with the physical position, comprises: traversing the physical display information to determine a target physical display information matched with the physical feature code of the self; taking a physical position corresponding to the target physical display information as the physical position of the self, and binding the device identity with the physical position.
10. The method of claim 1, wherein, Before the receiving the device information broadcasted by the other lighting units, the method further comprises: performing initialization according to a preset requirement to make the self enter a recognition preparation state.
11. The method of claim 1, wherein, After the determining the physical position of the self, the method further comprises: receiving a binding relationship between the device identity and the physical position broadcasted by the other lighting units; storing the binding relationship between the device identity and the physical position of the self and the other lighting units to a local device.
12. A method for identifying the physical location of a lighting unit, applied to a smart terminal, characterized in that, The method comprises: collecting media data of the lighting units when the lighting units perform corresponding physical feature coding; An image processing algorithm is used to identify the media data of each of the lighting units, and the physical location and physical display information of each of the media data associated lighting unit are obtained as a feature identification result.
13. The method of claim 12, wherein, After the feature identification result is obtained, the method further comprises: broadcasting the feature identification result.
14. A lighting unit characterized by comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the physical location identification method of the lighting unit according to any one of claims 1-11.
15. A smart terminal, characterized by comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the physical location identification method of the lighting unit according to any one of claims 12-13.