Lamp position information processing method, device, stage lamp and program product
Through the connection of mobile devices to the NFC module of the lamp, a three-dimensional model is built to achieve efficient positioning, which solves the problem of low positioning efficiency of lamps in the existing technology, and realizes positioning in the absence of electricity and simple management of multi-luminaire environments.
Patent Information
- Application Number
- CN202411157259.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The existing lamp positioning technology is inefficient, needs to be identified one by one, and the text is cumbersome, making it difficult to manage efficiently in a multi-luminaire environment.
The NFC module of the mobile device is connected to the NFC module of the lamp, obtain the device position information and lamp identification, build a three-dimensional model to realize positioning, and store the position information in the lamp control system for subsequent reading.
It improves the efficiency and accuracy of lamp positioning, realizes positioning without power-on, and simplifies the management process of multi-luminaire environments.
Smart Images

Figure CN118695205B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lamp positioning, and in particular to a lamp position information processing method, device, stage lamp and program product. Background Art
[0002] The lamps in the studio and theater are connected to the lighting console through cables or network cables, and the lamps are searched and managed through the console. At this time, the user cannot determine the specific location of each lamp in the studio, and the online data cannot be associated with the offline stage lamps. The current solution is: the console recognizes the lamp through the identity recognition function, that is, select a lamp in the lamp list on the console, send the identity recognition command to the lamp, and the lamp will make a specific response after receiving it, such as lighting the bulb, shaking the head, etc., to confirm the corresponding relationship.
[0003] It can be seen that in the current positioning method of lamps, the lamps must be powered on before the console can identify and manage them; to find a specific lamp, the console needs to identify each lamp one by one, which is inefficient; the console can consider adding text notes to record the recognition results, but the text description is cumbersome and not intuitive. The problem is particularly obvious when there are a large number of lamps. Therefore, the current positioning technology for lamps has the problem of low positioning efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a lamp position information processing method, device, stage lamp, computer equipment, computer readable storage medium and computer program product that can improve the positioning efficiency of lamps in response to the above technical problems.
[0005] In a first aspect, an embodiment of the present application provides a method for processing lamp position information. The method comprises:
[0006] When it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, acquiring device location information of the mobile device and a lamp identification of the target lamp;
[0007] The device location information is set as the lamp location information of the target lamp, and an association relationship between the lamp location information of the target lamp and the lamp identification is established;
[0008] According to the association relationship between the target lamps in the lamp set, a three-dimensional model matching the lamp set is constructed; and the three-dimensional model is used to locate the target lamp.
[0009] In one of the embodiments, after the step of setting the device location information as the lamp location information of the target lamp, the method further includes:
[0010] The lamp position information is written into a storage module in the second NFC module of the target lamp, so that the lamp control system can read the lamp position information stored in the storage module when the target lamp is powered on.
[0011] In one of the embodiments, when detecting that a first NFC module of a mobile device establishes a connection with a second NFC module of any target lamp in a set of lamps, acquiring the device location information of the mobile device and the lamp identification of the target lamp includes:
[0012] Initiate a connection with the second NFC module in the passive mode through the first NFC module in the active mode;
[0013] When it is detected that the first NFC module successfully establishes a connection with the second NFC module of any target lamp, the device location information of the mobile device is acquired through the location information acquisition module, and the lamp identification of the target lamp is read through the first NFC module.
[0014] In one embodiment, the device location information includes indoor location information and outdoor location information, and the acquiring the device location information of the mobile device through the location information acquiring module includes:
[0015] Acquiring the indoor location information of the mobile device through a first location acquisition module;
[0016] The outdoor location information of the mobile device is acquired through the second location acquisition module.
[0017] In one embodiment, constructing a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set includes:
[0018] Obtaining an initial three-dimensional model corresponding to the environment in which the lamp set is located;
[0019] When the association relationships of all target lamps in the lamp set are successfully constructed, the three-dimensional sub-models corresponding to the target lamps are anchored in the initial three-dimensional model according to the device location information reflected in the association relationships to obtain a three-dimensional model matching the lamp set.
[0020] In one embodiment, the method further comprises:
[0021] In response to a navigation request triggered on a mobile device, determining a lamp identifier of a lamp to be navigated from the set of lamps;
[0022] Determining a position of the lamp to be navigated in the three-dimensional model according to the lamp identifier of the lamp to be navigated;
[0023] The current location of the mobile device is obtained, and a navigation route from the current location to the location to be navigated is generated and displayed; the navigation route is used to instruct the target account to determine the real location of the lamp to be navigated according to the instructions.
[0024] In one embodiment, the method further comprises:
[0025] If the storage module in the second NFC module does not store the location information, the acquired indoor location information and the outdoor location information are stored in the storage module in the second NFC module of the target lamp according to a preset data structure;
[0026] In the case where the storage module in the second NFC module has stored the location information, the acquired indoor location information and the outdoor location information are updated with the data in the storage module to the indoor location information and the outdoor location information according to the preset data structure;
[0027] The stored or updated indoor location information and the outdoor location information are sent to a cloud management server.
[0028] In a second aspect, the present application further provides a stage lighting fixture, wherein the stage lighting fixture is configured with a second NFC module, and the second NFC module is configured as follows:
[0029] In passive mode, responding to a connection request initiated by a first NFC module in active mode of the mobile device;
[0030] After the first NFC module establishes a connection with the second NFC module, responding to an identification information reading request of the first NFC module;
[0031] Receive device location information sent by the first NFC module.
[0032] In one embodiment, the stage lamp further comprises a lamp processor connected to the second NFC module, and the lamp processor is configured to:
[0033] In a power-on state, reading device location information in the second NFC module;
[0034] The device location information is sent to a lighting control system.
[0035] In a third aspect, the present application also provides a device for processing lamp position information. The device comprises:
[0036] An information acquisition module, configured to acquire device location information of the mobile device and a lamp identification of the target lamp in the lamp set when detecting that a connection is established between the first NFC module of the mobile device and the second NFC module of any target lamp in the lamp set;
[0037] An association relationship building module, used to set the device location information as the lamp location information of the target lamp, and build an association relationship between the lamp location information of the target lamp and the lamp identification;
[0038] The model building module is used to build a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set; the three-dimensional model is used to locate the target lamp.
[0039] In a fourth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0040] When it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, acquiring device location information of the mobile device and a lamp identification of the target lamp;
[0041] The device location information is set as the lamp location information of the target lamp, and an association relationship between the lamp location information of the target lamp and the lamp identification is established;
[0042] According to the association relationship between the target lamps in the lamp set, a three-dimensional model matching the lamp set is constructed; and the three-dimensional model is used to locate the target lamp.
[0043] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] When it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, acquiring device location information of the mobile device and a lamp identification of the target lamp;
[0045] The device location information is set as the lamp location information of the target lamp, and an association relationship between the lamp location information of the target lamp and the lamp identification is established;
[0046] According to the association relationship between the target lamps in the lamp set, a three-dimensional model matching the lamp set is constructed; and the three-dimensional model is used to locate the target lamp.
[0047] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0048] When it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, acquiring device location information of the mobile device and a lamp identification of the target lamp;
[0049] The device location information is set as the lamp location information of the target lamp, and an association relationship between the lamp location information of the target lamp and the lamp identification is established;
[0050] According to the association relationship between the target lamps in the lamp set, a three-dimensional model matching the lamp set is constructed; and the three-dimensional model is used to locate the target lamp.
[0051] The above-mentioned lamp position information processing method, device, computer equipment, storage medium and computer program product first obtain the device location information of the mobile device and the lamp identification of the target lamp when detecting that the first NFC module of the mobile device has established a connection with the second NFC module of any target lamp in the lamp set, then set the device location information to the lamp location information of the target lamp, and establish an association relationship between the lamp location information of the target lamp and the lamp identification, and finally construct a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set; the three-dimensional model is used to locate the target lamp, so that the target lamps at different positions can be marked by moving the mobile device, and the three-dimensional model is successfully established, thereby realizing the positioning of lamps at different positions and improving the efficiency of positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 is a flow chart of a method for processing lamp position information in one embodiment;
[0054] Figure 2 It is a schematic diagram of the overall scheme in one embodiment;
[0055] Figure 3 A schematic diagram of data interaction between a lamp and a mobile device in an embodiment;
[0056] Figure 4 A diagram showing the composition of modules of a mobile device in one embodiment;
[0057] Figure 5 A data table of lamp location information stored in a mobile device in one embodiment;
[0058] Figure 6 A data structure table stored in a lamp near field communication module in one embodiment;
[0059] Figure 7 A flowchart for generating a three-dimensional space model in one embodiment;
[0060] Figure 8 is a structural block diagram of a lamp position information processing device in one embodiment;
[0061] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0064] The lamp position information processing method provided in the embodiment of the present application is as follows: Figure 1 As shown, the following steps are included:
[0065] S101, when it is detected that a first NFC module of a mobile device establishes a connection with a second NFC module of any target lamp in a set of lamps, acquiring device location information of the mobile device and a lamp identification of the target lamp;
[0066] The mobile device refers to a movable device used to locate the target lamp, which has an NFC module, such as a mobile phone, a tablet, etc. The target lamp is the lamp that needs to be located. The first NFC module is the NFC module in the mobile device, the second NFC module is the NFC module in the target lamp, the device location information is the location information of the mobile device, and the lamp identifier is used to determine the identity of the lamp.
[0067] For example, when the mobile device is close to the NFC of the lamp, the NFC of the mobile device is in active mode, and the two NFCs can establish a connection to perform read / write operations on the NFC of the lamp.
[0068] S102, setting the device location information as the lamp location information of the target lamp, and establishing an association relationship between the lamp location information of the target lamp and the lamp identification.
[0069] The lamp position information is the position information of the target lamp, and the association relationship is also called a corresponding relationship. For example, the association relationship may be that the position information of lamp 1 is A, and the position information of lamp 2 is B.
[0070] S103: constructing a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set.
[0071] Among them, the three-dimensional model is used to locate the target lamp, and the three-dimensional model is a 3D space model.
[0072] Exemplarily, the three-dimensional space model output module is used to process and analyze indoor positioning coordinate data, establish a 3D space model, wherein each piece of data is marked as a hotspot in the 3D space model, and output a 3D space model with interactive functions.
[0073] In the above-mentioned lamp position information processing method, first, when it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, the device position information of the mobile device and the lamp identification of the target lamp are obtained, and then the device position information is set as the lamp position information of the target lamp, and the association relationship between the lamp position information of the target lamp and the lamp identification is constructed, and finally, according to the association relationship between each target lamp in the lamp set, a three-dimensional model matching the lamp set is constructed; the three-dimensional model is used to locate the target lamp, and the target lamps at different positions are marked by moving the mobile device, and the three-dimensional model is successfully established, thereby realizing the positioning of lamps at different positions and improving the efficiency of positioning. On the other hand, the inherent functions of the mobile device are used to reduce the cost of positioning. In the case of a power outage on the lamp, the lamp can still be located by an external device, which improves the comprehensiveness of lamp positioning.
[0074] In one embodiment, after the step of setting the device location information as the lamp location information of the target lamp, the method further includes: writing the lamp location information into a storage module in the second NFC module of the target lamp, so that the lamp control system can read the lamp location information stored in the storage module when the target lamp is in a powered-on state.
[0075] Among them, the storage module is also called the lamp data storage module, such as the EEPROM in the NFC module. Since the lamp and the mobile device are very close when exchanging data, the lamp data that has been read by NFC is stored in the mobile device according to a certain data structure. The data can also be uploaded to the cloud for remote management.
[0076] Among them, the lighting control system is also called a control console, which is used to control and manage each lighting fixture.
[0077] For example, when a mobile device comes into contact with a target lamp, it will immediately obtain its own spatial position information and write the position information into the target lamp; when the lamp is subsequently powered on and connected to the control console, the control console can obtain the spatial position information of each lamp in the studio through management protocols such as RDM, thereby associating the control console data with the actual lamps and quickly finding the target lamps.
[0078] In this embodiment, the lamp position information is written into the storage module of the target lamp, so that the lamp control system can read the lamp position information stored in the storage module when the target lamp is in the power-on state; first, the storage of the lamp position information is realized through the lamp data storage module, which is convenient for subsequent query of the position or construction and display of a three-dimensional model using the position information, and then the stored position information can be used to realize data synchronization and data association of the lamp control system, thereby improving the timely update of pre-power-on data when the power is on, and ensuring the timeliness of positioning.
[0079] In one embodiment, when it is detected that a first NFC module of a mobile device establishes a connection with a second NFC module of any target lamp in a set of lamps, the device location information of the mobile device and the lamp identification of the target lamp are obtained, including: initiating a connection to a second NFC module in a passive mode through a first NFC module in an active mode; when it is detected that a connection is successfully established between the first NFC module and the second NFC module of any target lamp, obtaining the device location information of the mobile device through a location information acquisition module, and reading the lamp identification of the target lamp through the first NFC module.
[0080] Among them, when the target lamp NFC module works in passive mode, it can be read and written by other NFC modules working in active mode without power supply. Active mode means that the NFC module actively sends data and can control the start and end of communication. It is suitable for scenarios that need to actively initiate communication. Passive mode means that the NFC module waits for other devices to send data and cannot actively control the start and end of communication. It is suitable for scenarios that passively receive data or responses.
[0081] Among them, the location information acquisition module, also known as the spatial location information acquisition module, is used to obtain the indoor positioning coordinates P and geographic longitude and latitude L of the mobile device through the positioning capability solution possessed by the mobile device.
[0082] In this embodiment, a connection is first initiated to a second NFC module in a passive mode through a first NFC module in an active mode, and then, upon detecting that a connection is successfully established between the first NFC module and the second NFC module of any target lamp, the device location information of the mobile device is acquired through the location information acquisition module, and the lamp identification of the target lamp is read through the first NFC module. By setting the active and passive modes of different NFC modules, the efficiency of reading the lamp identification is improved.
[0083] In one embodiment, the device location information includes indoor location information and outdoor location information. The device location information of the mobile device is obtained through the location information acquisition module, including: obtaining the indoor location information of the mobile device through the first location acquisition module; and obtaining the outdoor location information of the mobile device through the second location acquisition module.
[0084] The indoor location information refers to the information representing the relative position in the indoor environment, and the outdoor location information refers to the latitude and longitude information.
[0085] In this embodiment, the indoor location information of the mobile device is first acquired through the first location acquisition module, and then the outdoor location information of the mobile device is acquired through the second location acquisition module. By setting different types of location information collection modules on the mobile terminal, the acquisition of indoor and outdoor location information is successfully achieved, which facilitates the subsequent use of the above location information for positioning and ensures the accuracy of positioning.
[0086] In one embodiment, a three-dimensional model matching the lamp set is constructed based on the association relationship among the target lamps in the lamp set, including: obtaining an initial three-dimensional model corresponding to the environment in which the lamp set is located; when the association relationships of all the target lamps in the lamp set are successfully constructed, anchoring the three-dimensional sub-model corresponding to each target lamp in the initial three-dimensional model according to the device position information reflected in the association relationship, so as to obtain a three-dimensional model matching the lamp set.
[0087] The three-dimensional sub-model corresponding to each target lamp may refer to a three-dimensional icon corresponding to each lamp, and the initial three-dimensional model refers to an initial model established according to the three-dimensional structure of the indoor environment.
[0088] Exemplarily, the indoor positioning coordinate data is processed and analyzed to establish a 3D space model, wherein each piece of data is marked as a hotspot in the 3D space model, and a 3D space model with interactive functions is output.
[0089] In this embodiment, an initial three-dimensional model corresponding to the environment in which the lamp set is located is first obtained. Then, when the association relationship of all target lamps in the lamp set is successfully established, the three-dimensional sub-model corresponding to each target lamp is anchored in the initial three-dimensional model according to the device location information reflected in the association relationship, so as to obtain a three-dimensional model that matches the lamp set. By anchoring the three-dimensional sub-models one by one, the establishment of the three-dimensional model is realized, and the efficiency of the three-dimensional model construction is improved.
[0090] In one embodiment, the method also includes: in response to a navigation request triggered on a mobile device, determining the lamp identification of the lamp to be navigated from the lamp collection; determining the position to be navigated of the lamp to be navigated in the three-dimensional model according to the lamp identification of the lamp to be navigated; obtaining the current position of the mobile device, and generating and displaying a navigation route between the current position and the position to be navigated.
[0091] The navigation route is used to instruct the target account to determine the real location of the light to be navigated according to the instructions.
[0092] Specifically, the process of generating and displaying the navigation route may be:
[0093] In response to a navigation request input by a target account in a mobile device, a lamp identifier of a lamp to be navigated is determined from a lamp collection; a position to be navigated of the lamp to be navigated in a three-dimensional model is determined based on the lamp identifier of the lamp to be navigated; the current position of the mobile device used by the target account is obtained, and a navigation route from the current position to the position to be navigated is generated and displayed to instruct the target account to determine the actual position of the lamp to be navigated according to the instructions.
[0094] For example, users can operate the 3D space model through mobile devices, and sense the relationship between their own position and the position of each lamp in real time. They can also search and navigate the lamps, which makes it convenient for users to quickly find the target lamps and associate online data with actual lamps. The next time the user enters the same scene, he can quickly find the lamps he needs, providing a positioning method for NFC lamps that have no power, no signal, and no positioning capability.
[0095] In this embodiment, first, in response to a navigation request triggered on a mobile device, the lamp identification of the lamp to be navigated is determined from the lamp collection, and then the position to be navigated of the lamp to be navigated in the three-dimensional model is determined according to the lamp identification of the lamp to be navigated, and finally the current position of the mobile device is obtained, and a navigation route between the current position and the position to be navigated is generated and displayed; by generating a navigation route, the convenience and efficiency of users in obtaining the specific position of the lamp is improved, and support conditions for a variety of scenarios are provided for the positioning of the lamp, thereby improving the richness of applicable scenarios for lamp positioning.
[0096] In one embodiment, the method also includes: when the storage module in the second NFC module does not store the location information, storing the acquired indoor location information and outdoor location information in the storage module in the second NFC module of the target lamp according to a preset data structure; when the storage module in the second NFC module already stores the location information, updating the data in the storage module to the indoor location information and outdoor location information according to a preset data structure; and sending the stored or updated indoor location information and outdoor location information to the cloud management server.
[0097] The indoor location information refers to the information representing the relative position in the indoor environment, and the outdoor location information refers to the latitude and longitude information.
[0098] The preset data structure refers to storing indoor location information and outdoor location information according to certain data rules. For example, the preset data structure may be a data storage structure composed of information such as lamp identifiers, indoor positioning coordinates of lamps, and geographic longitude and latitude of lamps in a certain order.
[0099] Among them, the cloud management server is a server set up in the cloud and used to store, manage and maintain location information.
[0100] For example, the spatial location information of the current target lamp is replaced by the spatial location information of the mobile device, and the mobile device stores\updates the current indoor positioning coordinates of the lamp in a preset data structure. , current geographic longitude and latitude . And write the spatial position information into the target lamp according to the above data structure.
[0101] In this embodiment, first, based on the storage status of the storage module in the second NFC module, the acquired indoor location information and outdoor location information are stored or updated according to a preset data structure, and then the stored or updated indoor location information and outdoor location information are sent to the cloud management server, thereby ensuring the timeliness of data storage and improving the security of data storage and the convenience of data use.
[0102] In one embodiment, the lamps in the studio and theater are connected to the lighting console via RS485 cables or network cables. The console can search and manage the lamps via the RDM (Remote Device Management) protocol and the ARTRDM (Architecture for Control Networks Remote Device Management) protocol. At this time, the user cannot determine the specific location of each lamp in the studio, and the online data cannot be associated with the offline stage lamps. The existing solution is: the console identifies the lamps through the Identity function of RDM / ArtNet (Art Network), that is, select a lamp in the lamp list on the console, send the Identity command to the lamp, and the lamp will make a specific response (light bulb, shake head, etc.) after receiving it, thereby confirming the corresponding relationship. There are several problems with this method: (1) The lamp must be powered on before the console can identify and manage the lamp. (2) To find a specific lamp, the console needs to identify each lamp one by one, which is inefficient. (3) The console can consider adding text notes to record the recognition results, but text descriptions are cumbersome and not intuitive. This problem is particularly obvious when there are many lamps.
[0103] Based on this, the embodiment of the present application provides a method for processing lamp position information, also known as a stage lamp equipped with NFC (Near Field Communication) capability and a management method thereof, which can be applied to mobile devices, target lamps and lamp control systems, and the following reference Figures 2 to 7 , a method for processing lamp position information is described in detail with a specific embodiment. It is worth noting that the following description is only an exemplary description and not a specific limitation to the application.
[0104] Figure 2 It is an overall schematic diagram of the solution, which is divided into two parts, including a mobile device and a target lamp group. Among them, the mobile device can be a smart phone. The mobile device can obtain spatial location information through an acquisition spatial location module, also known as a spatial location acquisition module, and perform NFC transmission through the NFC module and the NFC modules of the lamps in the target lamp group. The spatial location acquisition module can be a GPS, Wifi, UWB, 5G indoor positioning and other modules.
[0105] For any lamp in the target lamp group, such as Figure 3As shown, the lamp may include a microprocessor MCU and a dual-interface NFC module, which are connected via an SPI bus or I2C. The dual-interface NFC module is provided with a storage unit EEPROM (Electrically Erasable Programmableread only memory), and the dual-interface NFC module is then connected to an NFC module of a mobile terminal (also called a mobile device).
[0106] Generally, mobile devices have NFC modules, such as mobile phones, tablets, etc., and obtain spatial location information through the positioning capability of the mobile device. The spatial location information includes indoor positioning coordinates P and geographic longitude and latitude L. When data configuration of the lamp is required, the NFC module of the mobile device is in active mode and close to the lamp to perform read / write operations on the NFC of the lamp. The mobile device is divided into the following 5 modules, as shown in the schematic diagram Figure 4 , specifically including:
[0107] a) NFC module: When the mobile device is close to the NFC of the lamp, the NFC of the mobile device is in active mode and can perform read and write operations on the NFC of the lamp.
[0108] b) Spatial location information acquisition module: The indoor positioning coordinates P and geographic longitude and latitude L of the mobile device are obtained through the positioning capability solution of the mobile device.
[0109] c) Module for storing lamp data: Since the lamp and the mobile device are very close (≤10cm) when exchanging data, the indoor positioning coordinates of the lamp are read. , the geographical latitude and longitude of the lamp being read . The lamp data that has been read by NFC is Figure 5 The data structure is stored in the mobile device, and Figure 5 Data is uploaded to the cloud for easy remote management.
[0110] d) 3D spatial model output module: processing and analysis Figure 5 The indoor positioning coordinate data in the 3D space model is used to build a 3D space model, in which each data is marked as a hotspot in the 3D space model, and a 3D space model with interactive functions is output.
[0111] e) Visual 3D space interaction module: Users can operate the 3D space model through mobile devices, and sense the relationship between their own position and the position of each lamp in real time. They can also search and navigate the lamps, which makes it convenient for users to quickly find the target lamps and associate online data with actual lamps. The next time the user enters the same scene, he can quickly find the lamps he needs, providing a positioning method for NFC lamps without power, signal, or positioning capabilities.
[0112] In addition, the target lighting group includes all the stage lighting fixtures in the studio, which are equipped with dual-interface NFC modules. The EEPROM of the NFC module stores basic information about the lighting fixtures, such as Figure 6 , including lamp identifier, indoor positioning coordinates of lamp, geographic latitude and longitude of lamp, and other lamp information, among which the lamp identifier is unique. When the NFC module of the target lamp works in passive mode, it can be read and written by other NFC modules working in active mode without power supply.
[0113] Among them, active mode means that the NFC module actively sends data and can control the start and end of communication, which is suitable for scenarios that need to actively initiate communication. Passive mode means that the NFC module waits for other devices to send data and cannot actively control the start and end of communication. It is suitable for scenarios that passively receive data or responses.
[0114] Among them, Figure 3 As shown, the dual interface means that the MCU inside the lamp reads and writes the EEPROM of the NFC module through SPI / I2C, and the external mobile device reads and writes the EEPROM of the NFC module through wireless technology.
[0115] Specifically, when a mobile device comes into contact with a target lamp, it will immediately obtain its own spatial location information (including indoor positioning coordinates, geographic longitude and latitude) and write the location information into the target lamp. Figure 3 After the lamps are powered on, they are connected to the console, which can obtain the spatial location information of each lamp in the studio through management protocols such as RDM, so as to associate the console data with the actual lamps and quickly find the target lamps.
[0116] In the lamp position information processing method provided in the embodiment of the present application, when the mobile device communicates with the lamp via NFC, the mobile device position is very close to the lamp position (that is, the current position of the mobile device can represent the current position of the lamp), and then the spatial positioning capability is used to obtain the spatial position information, process the position relationship between each lamp and the mobile device, form a 3D spatial model and associate it with the online lamp data, so as to realize the indoor positioning, navigation and quick search functions of the lamp. The specific process is as follows Figure 7 .
[0117] The lamp location information processing method provided by the embodiment of the present application includes the following steps: (1) the mobile device approaches the target lamp; (2) information reading: the mobile device reads data through NFC and the lamp NFC; (3) obtaining location information: obtaining the indoor positioning coordinates P and geographic longitude and latitude L of the mobile device through the positioning capability solution of the mobile device; (4) storing / updating: replacing the spatial location information of the current target lamp with the spatial location information of the mobile device, and the mobile device uses Figure 5The data structure stores\updates the current indoor positioning coordinates of the lamp , current geographic longitude and latitude . And the spatial location information is Figure 6 The data structure is written into the target lamp; (5) If all target lamps have read and written NFC information, jump to step (6), otherwise jump to step (1); (6) Generate 3D space model: According to the indoor positioning coordinate data of each lamp, generate hot spots at corresponding positions in the 3D space model. The hot spots are interactive. For example, clicking on a hot spot can generate a navigation route with the current location of the mobile device.
[0118] After generating the 3D space model, users can directly operate the 3D space model, query the lamps intuitively and conveniently, and can sense the relationship between their own position and the position of each lamp in real time, realizing the association between online data and offline lamps.
[0119] The lamp location information processing method provided in the embodiment of the present application combines the characteristics of NFC near-field communication, utilizes the positioning capability of smart phones to empower lamps, and has low spatial positioning cost; the spatial location information is stored inside the lamp, providing a data basis for the console to manage based on the 3D spatial model; the spatial location information of the lamp is stored in the smart phone and can be uploaded to the cloud, creating conditions for remote management; a positioning method can be provided for NFC lamps without power, signal, or positioning capability; online and offline lamps are associated, and searching is intuitive and convenient.
[0120] The lamp location information processing method provided in the embodiment of the present application uses the characteristics of NFC near-field communication when communicating with the lamp through the NFC of the mobile device, and combines it with indoor positioning solutions, including but not limited to BLE, wifi, UWB, 5G indoor positioning, etc. The indoor positioning accuracy will reach within 30CM. With the development of technology and the optimization support of algorithms, it is expected to achieve an accuracy of 10cm in the future. While reading and writing NFC data of the lamp, the spatial position of the lamp is identified, and the lamp data is associated with its spatial coordinates to form a 3D spatial model, thereby realizing indoor positioning, navigation, and quick search functions of the lamp.
[0121] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0122] Based on the same inventive concept, the embodiment of the present application also provides a stage lamp for implementing the above-mentioned lamp position information processing method. The implementation scheme for solving the problem provided by the stage lamp is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the stage lamp embodiment provided below can refer to the above-mentioned limitations on the lamp position information processing method, and will not be repeated here.
[0123] An embodiment of the present application provides a stage lamp, which is equipped with a second NFC module. The second NFC module is configured to: in passive mode, respond to a connection request initiated by a first NFC module in active mode of a mobile device; after the first NFC module establishes a connection with the second NFC module, respond to an identification information reading request of the first NFC module; and receive device location information sent by the first NFC module.
[0124] In one embodiment, the stage lamp further includes a lamp processor connected to the second NFC module, and the lamp processor is configured to: read the device location information in the second NFC module when powered on; and send the device location information to the lamp control system.
[0125] Based on the same inventive concept, the embodiment of the present application also provides a lamp position information processing device for implementing the lamp position information processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more lamp position information processing device embodiments provided below can refer to the limitations of the lamp position information processing method above, and will not be repeated here.
[0126] In one embodiment, Figure 8 As shown, a device for processing lamp position information is provided, including: an information acquisition module 801, an association relationship building module 802, and a model building module 803, wherein:
[0127] The information acquisition module 801 is used to acquire the device location information of the mobile device and the lamp identification of the target lamp when it is detected that the first NFC module of the mobile device is connected to the second NFC module of any target lamp in the lamp set;
[0128] The association relationship building module 802 is used to set the device location information as the lamp location information of the target lamp, and to build an association relationship between the lamp location information of the target lamp and the lamp identification;
[0129] The model building module 803 is used to build a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set; the three-dimensional model is used to locate the target lamp.
[0130] Each module in the above-mentioned lamp position information processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0131] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing lamp position information is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0132] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0133] In one embodiment, a computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in the above method embodiments are implemented.
[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0135] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing lamp position information, It is characterized in that The method comprises: When it is detected that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set, acquiring device location information of the mobile device and a lamp identification of the target lamp; The device location information is set as the lamp location information of the target lamp, and an association relationship between the lamp location information of the target lamp and the lamp identification is established; According to the association relationship between the target lamps in the lamp set, a three-dimensional model matching the lamp set is constructed; the three-dimensional model is used to locate the target lamp; The method of acquiring the device location information of the mobile device and the lamp identification of the target lamp in the lamp set upon detecting that the first NFC module of the mobile device establishes a connection with the second NFC module of any target lamp in the lamp set includes: Initiate a connection with the second NFC module in the passive mode through the first NFC module in the active mode; When it is detected that the first NFC module successfully establishes a connection with the second NFC module of any target lamp, the device location information of the mobile device is acquired through the location information acquisition module, and the lamp identification of the target lamp is read through the first NFC module; The device location information includes indoor location information and outdoor location information, and the acquiring the device location information of the mobile device through the location information acquiring module includes: Acquiring the indoor location information of the mobile device through a first location acquisition module; Acquiring outdoor location information of the mobile device through a second location acquisition module; The step of constructing a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set includes: Obtaining an initial three-dimensional model corresponding to the environment in which the lamp set is located; When the association relationships of all target lamps in the lamp set are successfully constructed, anchoring the three-dimensional sub-models corresponding to the target lamps in the initial three-dimensional model according to the device location information reflected in the association relationships, to obtain a three-dimensional model matching the lamp set; The method further comprises: In response to a navigation request triggered on a mobile device, determining a lamp identifier of a lamp to be navigated from the set of lamps; Determining a position of the lamp to be navigated in the three-dimensional model according to the lamp identifier of the lamp to be navigated; Acquire the current location of the mobile device, generate and display a navigation route from the current location to the location to be navigated; the navigation route is used to instruct the target account to determine the real location of the lamp to be navigated according to the instructions; After the step of setting the device location information as the lamp location information of the target lamp, the method further includes: The lamp position information is written into a storage module in the second NFC module of the target lamp, so that the lamp control system can read the lamp position information stored in the storage module when the target lamp is powered on.
2. The method according to claim 1, It is characterized in that The method further comprises: If the storage module in the second NFC module does not store the location information, the acquired indoor location information and the outdoor location information are stored in the storage module in the second NFC module of the target lamp according to a preset data structure; In the case where the storage module in the second NFC module has stored the location information, the acquired indoor location information and the outdoor location information are updated with the data in the storage module to the indoor location information and the outdoor location information according to the preset data structure; The stored or updated indoor location information and the outdoor location information are sent to a cloud management server.
3. A stage lighting fixture, It is characterized in that The stage lighting fixture is provided with a second NFC module, and the second NFC module is configured as follows: In passive mode, responding to a connection request initiated by a first NFC module in active mode of the mobile device; After the first NFC module establishes a connection with the second NFC module, responding to an identification information reading request of the first NFC module; Receiving device location information sent by the first NFC module; So mobile devices are used to: Initiate a connection with the second NFC module in the passive mode through the first NFC module in the active mode; When it is detected that the first NFC module successfully establishes a connection with the second NFC module of any target lamp, the device location information of the mobile device is acquired through the location information acquisition module, and the lamp identification of the target lamp is read through the first NFC module; The device location information includes indoor location information and outdoor location information, and the acquiring the device location information of the mobile device through the location information acquiring module includes: Acquiring the indoor location information of the mobile device through a first location acquisition module; Acquiring outdoor location information of the mobile device through a second location acquisition module; The mobile device is used to: Obtaining an initial three-dimensional model corresponding to the environment in which the lamp set is located; When the association relationships of all target lamps in the lamp set are successfully constructed, anchoring the three-dimensional sub-models corresponding to the target lamps in the initial three-dimensional model according to the device location information reflected in the association relationships, to obtain a three-dimensional model matching the lamp set; In response to a navigation request triggered on a mobile device, determining a lamp identifier of a lamp to be navigated from the set of lamps; Determining a position of the lamp to be navigated in the three-dimensional model according to the lamp identifier of the lamp to be navigated; Acquire the current location of the mobile device, generate and display a navigation route from the current location to the location to be navigated; the navigation route is used to instruct the target account to determine the real location of the lamp to be navigated according to the instructions; The stage lamp further includes a lamp processor connected to the second NFC module, and the lamp processor is configured as follows: In a power-on state, reading device location information in the second NFC module; The device location information is sent to a lighting control system.
4. A lamp position information processing device, It is characterized in that The device comprises: An information acquisition module, configured to acquire device location information of the mobile device and a lamp identification of the target lamp in the lamp set when detecting that a connection is established between the first NFC module of the mobile device and the second NFC module of any target lamp in the lamp set; An association relationship building module, used to set the device location information as the lamp location information of the target lamp, and build an association relationship between the lamp location information of the target lamp and the lamp identification; A model building module, used to build a three-dimensional model matching the lamp set according to the association relationship between the target lamps in the lamp set; the three-dimensional model is used to locate the target lamp; The device is used for: Initiate a connection with the second NFC module in the passive mode through the first NFC module in the active mode; When it is detected that the first NFC module successfully establishes a connection with the second NFC module of any target lamp, the device location information of the mobile device is acquired through the location information acquisition module, and the lamp identification of the target lamp is read through the first NFC module; Acquiring the indoor location information of the mobile device through a first location acquisition module; Acquiring outdoor location information of the mobile device through a second location acquisition module; Obtaining an initial three-dimensional model corresponding to the environment in which the lamp set is located; When the association relationships of all target lamps in the lamp set are successfully constructed, anchoring the three-dimensional sub-models corresponding to the target lamps in the initial three-dimensional model according to the device location information reflected in the association relationships, to obtain a three-dimensional model matching the lamp set; In response to a navigation request triggered on a mobile device, determining a lamp identifier of a lamp to be navigated from the set of lamps; Determining a position of the lamp to be navigated in the three-dimensional model according to the lamp identifier of the lamp to be navigated; Acquire the current location of the mobile device, generate and display a navigation route from the current location to the location to be navigated; the navigation route is used to instruct the target account to determine the real location of the lamp to be navigated according to the instructions; The lamp position information is written into a storage module in the second NFC module of the target lamp, so that the lamp control system can read the lamp position information stored in the storage module when the target lamp is powered on.
5. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
