Lamp information uploading method and device and lamp

CN115988042BActive Publication Date: 2026-10-20GUANGZHOU CAIYI TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211648108.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2026-10-20
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

由于每个灯具的地理位置更新频率取决于自身的唤醒周期,频率越高,电池耗电越快,频率过低将不能及时反馈实际位置信息,例如在运输途中,如果想及时更新位置信息,需要缩短唤醒周期,电池续航时间缩短,当电池耗尽后将无法上传位置信息,服务器对灯具位置失去监控

Benefits of technology

[0052]上述灯具信息上传方法、装置和灯具,若第一灯具的模式为扫描模式,则对第一灯具周围的灯具进行扫描,以获取各第二灯具的信息;在第一灯具完成扫描后,将第一灯具的模式从扫描模式切换至信标模式;在第一灯具的电量大于或等于预设电量阈值的情况下,向云服务器上传目标信息;其中,目标信息包括第一灯具的信息以及各第二灯具的信息;第一灯具的信息包括第一灯具的标识、电量和位置;第二灯具的信息包括第二灯具的标识和电量。本方法中利用第一灯具获取第二灯具的信息,由第一灯具将第一灯具的信息和第二灯具的信息上传至云服务器,不需要每个灯具独自上传自身灯具信息,因此提高了灯具之间的协调性。而且,第二灯具处于信标模式,即被扫描状态,不需要频繁唤醒,可以大量的减少第二灯具自身电量的浪费,提高第二灯具电池的续航能力,能够保证服务器对灯具进行持续性的监控。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115988042B_ABST
    Figure CN115988042B_ABST
Patent Text Reader

Abstract

The application relates to a lamp information uploading method and device and a lamp. If the mode of a first lamp is a scanning mode, the lamps around the first lamp are scanned to obtain the information of each second lamp; after the first lamp completes the scanning, the mode of the first lamp is switched from the scanning mode to a beacon mode; and the target information is uploaded to a cloud server under the condition that the power of the first lamp is greater than or equal to a preset power threshold; wherein the target information comprises the identification, power and position of the first lamp, and the identification and power of the second lamp. The method uses the first lamp to obtain the information of the second lamp, uploads the first lamp information and the second lamp information to the cloud server by the first lamp, and thus improves the coordination between the lamps, without the need for each lamp to upload the lamp information of the lamp itself, and the second lamp is in the beacon mode, does not need to be frequently woken up, can improve the battery endurance of the second lamp, and ensures that the server continuously monitors the lamps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting technology, and in particular to a method, apparatus and lighting fixture for uploading lighting information. Background Technology

[0002] In the same application scenario, stage lighting fixtures are typically produced in batches, and their location information is identical, such as from the same vehicle, warehouse, or venue. When a fixture needs to report its geographical location information to the server for management, each fixture needs to periodically wake up and upload its location information according to its own preset rules. Since the geographical location update frequency of each fixture depends on its wake-up cycle, a higher frequency results in faster battery consumption, while a lower frequency will not provide timely feedback on the actual location information. For example, during transportation, if timely location updates are desired, the wake-up cycle needs to be shortened, reducing battery life. When the battery is depleted, location information cannot be uploaded, and the server loses monitoring of the fixture's location. Summary of the Invention

[0003] Therefore, it is necessary to provide a method, device, and lamp for uploading lamp information that can save power consumption of lamps and ensure continuous monitoring of lamps by the server, in order to address the above-mentioned technical problems.

[0004] Firstly, this application provides a method for uploading lighting fixture information, the method comprising:

[0005] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the identification and power level of the second lamp.

[0006] After the first lamp completes the scan, the mode of the first lamp is switched from the scanning mode to the beacon mode;

[0007] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes the lamp's identifier, power level, and location.

[0008] In one embodiment, the method further includes:

[0009] If the power of the first lamp is greater than or equal to a preset power threshold, and the mode of the first lamp is beacon mode, then the scanning time of the first lamp sent by the cloud server is received.

[0010] During the scanning time, the lights around the first light fixture are scanned to obtain information about the scanned lights; the information about the scanned lights includes the identifier and power level of the scanned lights.

[0011] In one embodiment, the method further includes:

[0012] If the power of the first lamp is less than the preset power threshold, then power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and power supply to the Bluetooth module is enabled through the second battery of the first lamp.

[0013] Secondly, this application provides a method for uploading lighting fixture information, the method comprising:

[0014] Receive target information uploaded by the first lamp; the target information includes information of the first lamp and information of each second lamp, wherein the second lamp is the lamp around the first lamp scanned by the first lamp when the first lamp is in scanning mode, and the information of the second lamp includes the identifier and power of the second lamp, and the information of the first lamp includes the identifier, power and location of the first lamp.

[0015] The third lighting fixture is determined based on the target information;

[0016] The scanning time of the third lamp is determined and sent to the third lamp.

[0017] In one embodiment, determining the third luminaire based on the target information includes:

[0018] If the power level in the information of the first lamp is greater than or equal to a preset power threshold, then the first lamp is used as the third lamp.

[0019] In one embodiment, the method further includes:

[0020] If the power level of the first lamp is less than the preset power threshold, then a first lamp set is determined from each of the second lamps; the first lamp set includes second lamps that have been scanned to the first lamp and whose power level is greater than the preset power threshold.

[0021] The third lamp is any one of the second lamps in the first set of lamps.

[0022] In one embodiment, determining the scanning time of the third lamp includes:

[0023] Obtain the most recent scan time of the second lamp in the first set of lamps;

[0024] The second set of lamps is determined from the first set of lamps based on the most recent scan time and the current time;

[0025] The scanning time of the third lamp is determined based on the second set of lamps.

[0026] In one embodiment, determining the scanning time of the third lamp based on the second set of lamps includes:

[0027] A second set of lamps is determined from the first set of lamps; the second set of lamps includes the second lamps in the first set whose most recent scan time is greater than the current time.

[0028] The third lamp is any one of the second lamps in the second set of lamps.

[0029] In one embodiment, determining the scanning time of the third lamp includes:

[0030] Determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set;

[0031] The scanning time of the third lamp is determined based on the maximum scanning time and the preset scanning cycle.

[0032] Thirdly, this application also provides a lamp information uploading device, the device comprising:

[0033] The acquisition module is used to scan the lamps around the first lamp if the mode of the first lamp is scanning mode, so as to acquire information of each second lamp; the information of the second lamp includes the identification and power of the second lamp;

[0034] The first switching module is used to switch the mode of the first lamp from the scanning mode to the beacon mode after the first lamp has completed scanning.

[0035] The upload module is used to upload target information to the cloud server when the power of the first lamp is greater than or equal to a preset power threshold; the target information includes information of the first lamp and information of each of the second lamps; the information of the first lamp includes the identifier, power level and location of the first lamp.

[0036] Fourthly, this application also provides a lighting fixture information uploading device, the device comprising:

[0037] A receiving module is used to receive target information uploaded by a first lamp; the target information includes information about the first lamp and information about each second lamp, wherein the second lamp is the lamp around the first lamp scanned by the first lamp when the first lamp is in scanning mode, and the information of the second lamp includes the identifier and power of the second lamp, and the information of the first lamp includes the identifier, power and location of the first lamp.

[0038] The first determining module is used to determine the third lamp based on the target information;

[0039] The second determining module is used to determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0040] Fifthly, this application also provides a lighting fixture, the lighting fixture including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0041] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the identification and power level of the second lamp.

[0042] After the first lamp completes the scan, the mode of the first lamp is switched from the scanning mode to the beacon mode;

[0043] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes the lamp's identifier, power level, and location.

[0044] Sixthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0045] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the identification and power level of the second lamp.

[0046] After the first lamp completes the scan, the mode of the first lamp is switched from the scanning mode to the beacon mode;

[0047] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes the lamp's identifier, power level, and location.

[0048] Seventhly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, performs the following steps:

[0049] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the identification and power level of the second lamp.

[0050] After the first lamp completes the scan, the mode of the first lamp is switched from the scanning mode to the beacon mode;

[0051] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes the lamp's identifier, power level, and location.

[0052] The aforementioned method, device, and lamp for uploading lamp information, if the first lamp is in scanning mode, scans the lamps surrounding the first lamp to obtain information about each second lamp; after the first lamp completes the scan, its mode is switched from scanning mode to beacon mode; if the first lamp's battery level is greater than or equal to a preset battery threshold, target information is uploaded to the cloud server; wherein, the target information includes information about the first lamp and information about each second lamp; the information about the first lamp includes its identifier, battery level, and location; the information about the second lamp includes its identifier and battery level. This method utilizes the first lamp to obtain information about the second lamps, and the first lamp uploads both information to the cloud server, eliminating the need for each lamp to upload its own information independently, thus improving coordination between lamps. Furthermore, since the second lamps are in beacon mode (i.e., being scanned), frequent wake-ups are unnecessary, significantly reducing battery waste and improving battery life, ensuring continuous server monitoring of the lamps. Attached Figure Description

[0053] Figure 1 This is an application environment diagram of a lamp information uploading method in one embodiment;

[0054] Figure 2 This is a flowchart illustrating a method for uploading lighting information in one embodiment;

[0055] Figure 3 This is a structural block diagram of a lamp in one embodiment;

[0056] Figure 4 This is a flowchart illustrating the process of obtaining lighting information in one embodiment;

[0057] Figure 5 This is a flowchart illustrating the method for uploading lighting information in another embodiment;

[0058] Figure 6This is a flowchart illustrating the process of determining the scanning time of a third lamp in one embodiment;

[0059] Figure 7 This is a flowchart illustrating the process of determining the scanning time of a third lamp in one embodiment;

[0060] Figure 8 This is a flowchart illustrating the method for uploading lighting information in yet another embodiment;

[0061] Figure 9 This is a structural block diagram of a lighting information uploading device in one embodiment;

[0062] Figure 10 This is a diagram of the internal structure of a lamp in one embodiment. Detailed Implementation

[0063] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0064] The lamp information uploading method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, the application environment includes a cloud server and multiple lamps. Lamp 1 scans the surrounding lamps and obtains the lamp information of lamps 2, 3, 4, 5 and n. The lamp information of lamps 2, 3, 4, 5 and n, as well as the lamp information of lamp 1 itself, are uploaded to the cloud server.

[0065] In one embodiment, such as Figure 2 As shown, a method for uploading lighting fixture information is provided, which can be applied to... Figure 1 Taking the first lamp in the picture as an example, the explanation includes the following steps:

[0066] S201, if the mode of the first lamp is scanning mode, then the lamps around the first lamp are scanned to obtain information of each second lamp; the information of the second lamp includes the identification and power of the second lamp.

[0067] Optional, such as Figure 3As shown, each lamp includes a Bluetooth module, a processing module (core module), a switching power supply, a lithium battery, and a button battery. When the lamp is in operation, it is powered by a 220V power supply connected to the switching power supply, which also powers the lithium battery. When the lamp is in wake-up or sleep mode, it is not connected to a 220V power supply; instead, the lithium battery powers the processing module and the Bluetooth module. The processing module can change the Bluetooth module's operating mode, which includes scanning mode and beacon mode. In scanning mode, it can scan for nearby Bluetooth beacons; in beacon mode, it broadcasts beacon signals.

[0068] In this embodiment, each lamp has a default wake-up plan, sending its power level and location to the cloud server upon first wake-up. For example, all lamps wake up every three hours, but the initial wake-up time for each lamp may differ; lamp 1 wakes up at 8:00, lamp 2 at 8:20, lamp 3 at 8:10, and so on. Upon the next wake-up, the first lamp first wakes up according to the default wake-up plan after three hours, switching its Bluetooth module to scanning mode to scan the surrounding lamps. These surrounding lamps operate in beacon mode, broadcasting beacons to their surroundings, thus being detected by the first lamp, which then obtains the identifier and power level of each lamp in the second set of lamps. As described above. Figure 1 As shown, the first lamp is lamp 1, and the second lamps that were scanned are lamp 2, lamp 3, lamp 4, lamp 5 and lamp n, indicating that lamp 2, lamp 3, lamp 4, lamp 5 and lamp n have already undergone initial wake-up.

[0069] The beacon broadcast data content can be customized using the processing module. Optional options include iBeacon, Eddystone, and ADV_IND. The beacon broadcast data includes the luminaire's ID, which is unique.

[0070] S202, if the first lamp completes the scan, switch the mode of the first lamp from the scanning mode to the beacon mode.

[0071] In this embodiment, after the first lamp completes the scan, the core module switches the Bluetooth module's operating mode from scanning mode to beacon mode. At this time, the Bluetooth module's power consumption is very low.

[0072] S203, Upload target information to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes its identifier, power level, and location.

[0073] In this embodiment, the first lamp uses its core module to detect its own power level. If the power level of the first lamp is greater than or equal to a preset power threshold, the first lamp's identifier, power level, and location, as well as the power level and identifier of the second lamp, are uploaded to the cloud server. The data to be uploaded (target information) can be represented as shown in Table 1. Lamp 1 can scan lamps 2, 3, and 4. The lamp data includes the location and power level of lamp 1; and the power levels of lamps 2, 3, and 4. Since the first lamp can scan the second lamp, it can be assumed that the location information of the first and second lamps is the same. Therefore, lamps 2, 3, and 4 share the location of lamp 1.

[0074] Table 1

[0075]

[0076] Furthermore, the cloud server saves the target information uploaded each time, such as the data update time and the current location information of the lamp. The cloud server updates the latitude and longitude of the surrounding lamps scanned by lamp 1 and its own latitude and longitude to the latitude and longitude of the uploaded data, so that the specific information of each lamp can be obtained, as shown in Table 2:

[0077] Table 2

[0078]

[0079]

[0080] It should be noted that because the processing module goes into sleep mode, the lights enter a low-power mode, and the Bluetooth module only needs to be powered by a coin cell battery to ensure that the Bluetooth module operates in beacon mode. Therefore, the more lights in the same location, that is, the more surrounding lights the first light scans, the higher the utilization rate, and the stronger the overall battery life of all lights in the same location.

[0081] In the above-described method for uploading lighting information, if the first lighting fixture is in scanning mode, it scans the surrounding lighting fixtures to obtain information about each second lighting fixture. After the first lighting fixture completes its scan, it switches its mode from scanning mode to beacon mode. If the first lighting fixture's battery level is greater than or equal to a preset battery threshold, it uploads target information to the cloud server. The target information includes information about the first lighting fixture and information about each second lighting fixture. The first lighting fixture's information includes its identifier, battery level, and location. The second lighting fixture's information includes its identifier and battery level. This method utilizes the first lighting fixture to obtain information about the second lighting fixtures, and the first lighting fixture uploads both information to the cloud server. This eliminates the need for each lighting fixture to upload its own information independently, thus improving coordination between lighting fixtures. Furthermore, since the second lighting fixtures are in beacon mode (being scanned), they do not require frequent wake-ups, significantly reducing battery waste and improving battery life. This ensures continuous monitoring of the lighting fixtures by the server.

[0082] Figure 4 This is a schematic diagram of the process for obtaining lighting information in one embodiment, such as... Figure 4 As shown, it includes the following steps:

[0083] S401, if the power of the first lamp is greater than or equal to the preset power threshold, and the mode of the first lamp is beacon mode, then receive the scanning time of the first lamp sent by the cloud server.

[0084] In this embodiment, when the power of the first lamp is greater than or equal to a preset power threshold and the mode of the first lamp is beacon mode, the cloud server sends the next wake-up timestamp of the first lamp to the first lamp, that is, the next scan time of the first lamp, as shown in Table 3:

[0085] Table 3

[0086] Time1 ...

[0087] It should be noted that if the battery level of the first lamp is greater than or equal to the preset battery threshold and the first lamp is in beacon mode, but the scanning time of the first lamp cannot be obtained from the server, the first lamp may be unable to communicate with the cloud server. In this case, the first lamp will determine whether its own battery level is lower than the preset threshold. If it is lower than the preset threshold, the first lamp will shut down to protect the battery; otherwise, the first lamp can scan according to the default scanning plan at the scanning time.

[0088] S402, during the scanning time, scan the lamps around the first lamp to obtain information about the scanned lamps; the information about the scanned lamps includes the lamp's identifier and power level.

[0089] In this embodiment, the first lamp is woken up according to the scanning time issued by the cloud server, and scans the surrounding lamps to obtain the identification and power of each lamp.

[0090] Furthermore, if the power of the first lamp is less than a preset power threshold, then the power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and the second battery of the first lamp is enabled to power the Bluetooth module.

[0091] In this embodiment, as described above Figure 3 As shown, optionally, the first battery can be a lithium battery, and the second battery can be a button cell battery. After the first light fixture scans the surrounding lights, the processing module switches the first light fixture's operating mode from scanning mode to beacon mode. If the first light fixture's battery level is less than a preset threshold, indicating that the lithium battery is too low, the lithium battery stops supplying power to the processing module and the Bluetooth module, at which point the processing module is powered off. Using a button cell battery to power the Bluetooth module allows the Bluetooth module to operate in beacon mode. The button cell battery's operating current is in the μA range, and a single button cell battery can power it for several years, ensuring that the light fixture can be detected by other lights.

[0092] In this embodiment, when the battery level of the first lamp is greater than or equal to a preset battery threshold and the first lamp is in beacon mode, the scanning time of the first lamp sent by the cloud server is received. This allows the first lamp to scan other lamps according to the sent scanning time, obtain lamp information, and continuously upload information about surrounding lamps. Furthermore, when the battery level of the first lamp is less than the preset battery threshold, a second battery powers the Bluetooth module. This dual-battery power supply caters to both high and low power consumption application scenarios, ensuring that the lamp can be scanned and facilitating cloud service monitoring of the lamp.

[0093] Figure 5 This is a flowchart illustrating a method for uploading lighting fixture information in another embodiment. This method is applied to, for example... Figure 1 The cloud server shown is as follows: Figure 5 As shown, it includes the following steps:

[0094] S501, Receive target information uploaded by the first lamp; the target information includes information about the first lamp and information about each second lamp, the second lamp being the lamps around the first lamp scanned by the first lamp when the mode of the first lamp is scanning mode, the information of the second lamp includes the identification and power of the second lamp, and the information of the first lamp includes the identification, power and location of the first lamp.

[0095] In this embodiment, the first lamp sends target information to the cloud server in beacon mode. The cloud server receives the target information uploaded by the first lamp and uses the target information to update and save the information of each lamp. For example, after lamp 1 wakes up at 13:30 according to the default wake-up plan, it switches its Bluetooth module to scanning mode. The scanned lamps are lamps 2, 3, 4, 5, and 6. Lamp 1 uploads the target information to the cloud server. The cloud server receives the target information. Because lamps 1-6 are within the beacon detection range and are very close, their geographical location information can be shared. The server updates the latitude and longitude of lamps 1-6 to the latitude and longitude of lamp 1 and updates the array of lamps surrounding lamp 1.

[0096] S502, determine the third luminaire based on the target information.

[0097] In this embodiment, since the first lamp uploads the power information of the second lamp, the power level of the first lamp, and the latitude and longitude information of the first lamp to the cloud server, the cloud service updates the power and location information of the first and second lamps. This allows the cloud service to obtain specific information for each lamp and store the lamp information for both lamps, such as the current location information, power level, and data update time for each lamp. After the first lamp uploads the target information to the cloud server, the cloud server first needs to determine whether the power level of the first lamp is greater than or equal to a preset power threshold. This determines whether a new lamp and its corresponding scanning time need to be re-determined for the next scan. Therefore, the cloud server determines the third lamp based on the target information in the following two ways:

[0098] The first method: If the power level of the first lamp is greater than or equal to the preset power threshold, then the first lamp will be used as the third lamp.

[0099] In this embodiment, the cloud server compares the power information uploaded by the first lamp with a preset power threshold. If the power information of the first lamp is greater than or equal to the preset power threshold, the first lamp is used as the third lamp so that the third lamp (first lamp) can continue to upload the target information.

[0100] The second method: If the power level in the information of the first lamp is less than the preset power level threshold, then the first lamp set is determined from each of the second lamps; the first lamp set includes the second lamps that have been scanned as the first lamps and whose power level is greater than the preset power level threshold; any second lamp in the first lamp set is used as the third lamp.

[0101] In this embodiment, if the power level of a lamp is less than a preset power threshold, the cloud server needs to re-determine the third lamp from the second lamps. The cloud server uses the lamp information of each lamp to determine the set of lamps excluding the first set from the second lamps. It compares the power level of the second lamps with the preset threshold, and selects the second lamps with power levels greater than the preset threshold that can scan the first lamp as the first set of lamps. For example, in the above embodiment, the second lamps that lamp 1 can scan include lamps 2, 3, 4, 5, and 6. Based on the stored lamp information of each second lamp, the cloud server checks whether lamp 1 is included in the array of lamps that lamps 2 through 6 can scan. It then filters out lamps 3, 5, and 6 that contain lamp 1, and selects lamps 3, 5, and 6 as the first set of lamps. Any one of lamps 3, 5, and 6 can be used as the third lamp.

[0102] It should be noted that if the first lamp is in normal working condition, when the battery level of the first lamp is charged from low to a predetermined threshold, a data upload event will be triggered, thereby ensuring that the lamp can participate in the scanning plan after the battery level reaches the predetermined threshold when it is in normal working condition with low battery.

[0103] S503, determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0104] In this embodiment, the cloud server can determine the second light fixture with a time greater than the current time from the most recent scan time of the second light fixture in the first light fixture set, and then determine the scan time of the third light fixture based on the scan time corresponding to each light fixture in the second light fixture set.

[0105] In one possible implementation, the cloud server can also directly use the most recent scan time of the second lamp in the first lamp set, plus a preset time, as the scan time of the third lamp, and send the scan time to the third lamp.

[0106] In this embodiment, target information uploaded by the first lamp is received. If the power level of the first lamp is greater than or equal to a preset power threshold, the first lamp is designated as the third lamp. Alternatively, if the power level of the first lamp is less than the preset power level, the third lamp is selected from the second lamps. A scanning time is sent to the third lamp, and the target information is uploaded by the third lamp during its scanning time. The lamps work together to form a battery relay, thereby making effective use of battery power resources.

[0107] Figure 6 This is a flowchart illustrating the process of determining the scanning time of a third lamp in one embodiment, as shown below. Figure 6 As shown, it includes the following steps:

[0108] S601, obtain the most recent scan time of the second lamp in the first lamp set.

[0109] In this embodiment, the cloud server obtains the latest scan time for each lamp in the first lamp set based on the stored lamp information, as shown in Table 2 above. For example, lamp 3 was scanned at 2 PM today, lamp 5 was scanned at 3 PM today, and lamp 6 was scanned at 8 PM yesterday.

[0110] S602, determine the second set of lamps from the first set of lamps based on the most recent scan time and the current time.

[0111] In this embodiment, the second set of lamps in the first set whose most recent scan time is greater than the current scan time is selected as the second set of lamps. For example, if lamp 3 was scanned at 2 PM today, lamp 5 was scanned at 3 PM today, and lamp 6 was scanned at 8 PM yesterday, then the second set of lamps consists of lamp 3 and lamp 5.

[0112] S603, determine the scanning time of the third lamp based on the second set of lamps.

[0113] In this embodiment, the maximum scan time of the second lamp in the second lamp set can be determined, and the maximum scan time plus a preset scan period can be used as the scan time of the third lamp; alternatively, any time between the maximum scan time and the maximum scan time plus the preset scan period can be used as the scan time of the third lamp.

[0114] In this embodiment, the most recent scan time of the second lamp in the first lamp set is obtained. Based on the most recent scan time and the current time, the second lamp set is determined from the first lamp set, and then the scan time of the third lamp is determined based on the second lamp set. This method ensures that the lamp scan times are updated promptly, thereby enabling the uploading of lamp location information using the third lamp.

[0115] Figure 7 This is a flowchart illustrating the process of determining the scanning time of a third lamp in one embodiment, as shown below. Figure 7 As shown, this embodiment relates to a possible implementation of how to determine the scanning time of a third lamp based on a second set of lamps, including the following steps:

[0116] S701, determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set.

[0117] S702, determine the scanning time of the third lamp based on the maximum scanning time and the preset scanning cycle.

[0118] The preset scanning cycle can be 1 hour, 2 hours, etc. The preset scanning cycle of 1 hour means that the information of the lamps will be uploaded to the cloud server every 1 hour.

[0119] In this embodiment, the scanning time for lamp 3 is 2 PM on the same day, and the scanning time for lamp 5 is 3 PM on the same day. Therefore, the maximum scanning time is 3 PM. The scanning time for the third lamp is obtained by adding a preset scanning cycle to the maximum scanning time. If the preset scanning cycle is 1 hour, then the scanning time for the third lamp is 4 PM.

[0120] In this embodiment, the maximum scanning time among the most recent scanning times of each second lamp in the second lamp set is determined. Based on the maximum scanning time and the preset scanning cycle, the scanning time of the third lamp is determined. This allows the location information of the lamp to be obtained every preset scanning cycle, thereby enabling the monitoring and management of the lamp.

[0121] In one embodiment, such as Figure 8 As shown, a flowchart illustrating a method for uploading lighting fixture information is provided. Figure 8 As shown, after the light fixture is woken up during the scanning time, it switches its Bluetooth module to scanning mode to obtain the power and identification of surrounding lights, as well as its own power, identification, and location, generating data to be uploaded. Then, it switches its Bluetooth module to beacon mode and uploads the data to be uploaded.

[0122] If the light fixture receives the next scan time (i.e., wake-up plan) sent by the cloud server, it will wake up according to the issued wake-up plan and scan the surrounding light fixtures. If the light fixture does not receive the next wake-up plan sent by the cloud server, it will determine whether its own power is lower than a predetermined threshold. If its own power is not lower than the predetermined threshold, it will wake up according to the default wake-up plan and scan the surrounding light fixtures; if its own power is lower than the predetermined threshold, it will go into sleep mode.

[0123] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0124] Based on the same inventive concept, this application also provides a lamp information uploading device for implementing the lamp information uploading method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more lamp information uploading device embodiments provided below can be found in the limitations of the lamp information uploading method described above, and will not be repeated here.

[0125] In one embodiment, such as Figure 9 As shown, a lighting fixture information uploading device is provided, including: an acquisition module 11, a first switching module 12, and an upload module 13, wherein:

[0126] The acquisition module 11 is used to scan the lamps around the first lamp if the mode of the first lamp is scanning mode, so as to obtain the information of each second lamp; the information of the second lamp includes the identification and power of the second lamp;

[0127] The first switching module 12 is used to switch the mode of the first lamp from scanning mode to beacon mode after the first lamp has completed scanning.

[0128] Upload module 13 is used to upload target information to the cloud server when the power of the first lamp is greater than or equal to a preset power threshold; the target information includes information of the first lamp and information of each second lamp; the information of the first lamp includes the identification, power, and location of the first lamp.

[0129] In one embodiment, the lighting information uploading device further includes:

[0130] The scanning time receiving module is used to receive the scanning time of the first lamp sent by the cloud server if the power of the first lamp is greater than or equal to a preset power threshold and the mode of the first lamp is beacon mode.

[0131] The scanning module is used to scan the lamps around the first lamp during the scanning time to obtain information about the scanned lamps; the information about the scanned lamps includes the lamp's identifier and power level.

[0132] In one embodiment, the lighting information uploading device further includes:

[0133] The second switching module is used to stop supplying power to the processing module and Bluetooth module of the first lamp through the first battery of the first lamp, and to enable the second battery of the first lamp to supply power to the Bluetooth module if the power of the first lamp is less than a preset power threshold.

[0134] In one embodiment, a lamp information uploading device is provided, the device comprising:

[0135] The receiving module is used to receive target information uploaded by the first lamp; the target information includes information about the first lamp and information about each second lamp. When the mode of the first lamp is scanning mode, the second lamp is the lamps around the first lamp that the first lamp scans. The information of the second lamp includes the identification and power of the second lamp, and the information of the first lamp includes the identification, power and location of the first lamp.

[0136] The first determining module is used to determine the third luminaire based on the target information;

[0137] The second determining module is used to determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0138] In one embodiment, the first determining module includes:

[0139] The first determining unit is used to designate the first lamp as the third lamp if the power level in the information of the first lamp is greater than or equal to a preset power level threshold.

[0140] In one embodiment, the first determining module further includes:

[0141] The second determining unit is used to determine a set of first lamps from each of the second lamps if the power level in the information of the first lamp is less than a preset power level threshold; the set of first lamps includes second lamps that have been scanned as first lamps and whose power level is greater than the preset power level threshold.

[0142] The third determining unit is used to select any one of the second lamps in the first set of lamps as the third lamp.

[0143] In one embodiment, the second determining module includes:

[0144] The acquisition unit is used to acquire the most recent scan time of the second lamp in the first lamp set;

[0145] The fourth determining unit is used to determine the second set of lamps from the first set of lamps based on the most recent scan time and the current time;

[0146] The fifth determining unit determines the scanning time of the third lamp based on the second set of lamps.

[0147] In one embodiment, the fifth determining unit is further configured to determine the scanning time of the third lamp based on the maximum scanning time and the preset scanning period; and to determine the scanning time of the third lamp based on the maximum scanning time and the preset scanning period.

[0148] Each module in the aforementioned lighting information uploading device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor within the lighting fixture in hardware form, or stored in the lighting fixture's memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0149] In one embodiment, a lamp is provided, the internal structure of which can be shown in the following diagram: Figure 10 As shown, the luminaire includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for uploading luminaire information. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the luminaire housing, or an external keyboard, touchpad, or mouse.

[0150] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the lighting fixtures to which the present application is applied. Specific lighting fixtures may include more or fewer components than those shown in the figure, or may combine certain components, or may have different component arrangements.

[0151] In one embodiment, a luminaire is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to perform the following steps:

[0152] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the lamp's identifier and power level.

[0153] After the first luminaire completes the scan, switch the mode of the first luminaire from scanning mode to beacon mode;

[0154] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes its identifier, power level, and location.

[0155] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0156] If the power of the first lamp is greater than or equal to the preset power threshold, and the mode of the first lamp is beacon mode, then the scanning time of the first lamp sent by the cloud server will be received.

[0157] During the scanning time, the lights around the first light fixture are scanned to obtain information about the scanned lights. The information about the scanned lights includes the identification and power level of the scanned lights.

[0158] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0159] If the power of the first lamp is less than a preset power threshold, then power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and power supply to the Bluetooth module is started through the second battery of the first lamp.

[0160] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0161] Receive target information uploaded by the first lamp; the target information includes information about the first lamp and information about each second lamp. When the second lamp is in scanning mode, the second lamp is the lamp around the first lamp that the first lamp scans. The information of the second lamp includes the identification and power of the second lamp. The information of the first lamp includes the identification, power and location of the first lamp.

[0162] The third lighting fixture was determined based on the target information;

[0163] Determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0164] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0165] If the power level of the first lamp is greater than or equal to a preset power threshold, then the first lamp will be used as the third lamp.

[0166] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0167] If the power level of the first lamp is less than a preset power threshold, then a set of first lamps is determined from all the second lamps; the set of first lamps includes the second lamps that have been scanned and whose power levels are greater than the preset power threshold.

[0168] The third lamp is any one of the second lamps in the first set of lamps.

[0169] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0170] Obtain the most recent scan time of the second lamp in the first lamp set;

[0171] The second set of luminaires is determined from the first set of luminaires based on the most recent scan time and the current time;

[0172] The scanning time of the third lamp is determined based on the second set of lamps.

[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0174] Determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set;

[0175] The scanning time of the third lamp is determined based on the maximum scanning time and the preset scanning cycle.

[0176] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0177] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the lamp's identifier and power level.

[0178] After the first luminaire completes the scan, switch the mode of the first luminaire from scanning mode to beacon mode;

[0179] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes its identifier, power level, and location.

[0180] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0181] If the power of the first lamp is greater than or equal to the preset power threshold, and the mode of the first lamp is beacon mode, then the scanning time of the first lamp sent by the cloud server will be received.

[0182] During the scanning time, the lights around the first light fixture are scanned to obtain information about the scanned lights. The information about the scanned lights includes the identification and power level of the scanned lights.

[0183] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0184] If the power of the first lamp is less than a preset power threshold, then power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and power supply to the Bluetooth module is started through the second battery of the first lamp.

[0185] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0186] Receive target information uploaded by the first lamp; the target information includes information about the first lamp and information about each second lamp. When the second lamp is in scanning mode, the second lamp is the lamp around the first lamp that the first lamp scans. The information of the second lamp includes the identification and power of the second lamp. The information of the first lamp includes the identification, power and location of the first lamp.

[0187] The third lighting fixture was determined based on the target information;

[0188] Determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0189] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0190] If the power level of the first lamp is greater than or equal to a preset power threshold, then the first lamp will be used as the third lamp.

[0191] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0192] If the power level of the first lamp is less than a preset power threshold, then a set of first lamps is determined from all the second lamps; the set of first lamps includes the second lamps that have been scanned and whose power levels are greater than the preset power threshold.

[0193] Use any one of the second lamps in the first set of lamps as the third lamp.

[0194] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0195] Obtain the most recent scan time of the second lamp in the first lamp set;

[0196] The second set of luminaires is determined from the first set of luminaires based on the most recent scan time and the current time;

[0197] The scanning time of the third lamp is determined based on the second set of lamps.

[0198] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0199] Determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set;

[0200] The scanning time of the third lamp is determined based on the maximum scanning time and the preset scanning cycle.

[0201] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0202] If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the lamp's identifier and power level.

[0203] After the first luminaire completes the scan, switch the mode of the first luminaire from scanning mode to beacon mode;

[0204] When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes its identifier, power level, and location.

[0205] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0206] If the power of the first lamp is greater than or equal to the preset power threshold, and the mode of the first lamp is beacon mode, then the scanning time of the first lamp sent by the cloud server will be received.

[0207] During the scanning time, the lights around the first light fixture are scanned to obtain information about the scanned lights. The information about the scanned lights includes the identification and power level of the scanned lights.

[0208] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0209] If the power of the first lamp is less than a preset power threshold, then power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and power supply to the Bluetooth module is started through the second battery of the first lamp.

[0210] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0211] Receive target information uploaded by the first lamp; the target information includes information about the first lamp and information about each second lamp. When the second lamp is in scanning mode, the second lamp is the lamp around the first lamp that the first lamp scans. The information of the second lamp includes the identification and power of the second lamp. The information of the first lamp includes the identification, power and location of the first lamp.

[0212] The third lighting fixture was determined based on the target information;

[0213] Determine the scanning time of the third lamp and send the scanning time to the third lamp.

[0214] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0215] If the power level of the first lamp is greater than or equal to a preset power threshold, then the first lamp will be used as the third lamp.

[0216] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0217] If the power level of the first lamp is less than a preset power threshold, then a set of first lamps is determined from all the second lamps; the set of first lamps includes the second lamps that have been scanned and whose power levels are greater than the preset power threshold.

[0218] Use any one of the second lamps in the first set of lamps as the third lamp.

[0219] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0220] Obtain the most recent scan time of the second lamp in the first lamp set;

[0221] The second set of luminaires is determined from the first set of luminaires based on the most recent scan time and the current time;

[0222] The scanning time of the third lamp is determined based on the second set of lamps.

[0223] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0224] Determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set;

[0225] The scanning time of the third lamp is determined based on the maximum scanning time and the preset scanning cycle.

[0226] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media 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), magnetic 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0227] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0228] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for uploading lighting fixture information, characterized in that, The method includes: If the first lamp is in scanning mode, then the lamps around the first lamp are scanned to obtain information about each second lamp; the information about the second lamp includes the identification and power level of the second lamp. After the first lamp completes the scan, the mode of the first lamp is switched from the scanning mode to the beacon mode; When the power of the first lamp is greater than or equal to a preset power threshold, target information is uploaded to the cloud server; the target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes the lamp's identifier, power level, and location; If the power of the first lamp is greater than or equal to a preset power threshold, and the mode of the first lamp is beacon mode, then the scanning time of the first lamp sent by the cloud server is received. During the scanning time, the lights around the first light fixture are scanned to obtain information about the scanned lights; the information about the scanned lights includes the identifier and power level of the scanned lights. The cloud server determines that the power level in the information of the first lamp is less than the preset power threshold, and then determines a first lamp set from each of the second lamps; the first lamp set includes second lamps that can scan the first lamp and whose power level is greater than the preset power threshold; any second lamp in the first lamp set is taken as a third lamp, the scanning time of the third lamp is determined, and the scanning time of the third lamp is sent to the third lamp so that the third lamp can scan the lamps around the third lamp during the scanning time to obtain the information of the scanned lamps.

2. The method according to claim 1, characterized in that, The method further includes: If the power of the first lamp is less than the preset power threshold, then power supply to the processing module and Bluetooth module of the first lamp is stopped through the first battery of the first lamp, and power supply to the Bluetooth module is enabled through the second battery of the first lamp.

3. A method for uploading lighting fixture information, characterized in that, The method includes: The system receives target information uploaded by the first lamp when its power level is greater than or equal to a preset power threshold. The target information includes information about the first lamp and information about each second lamp. The second lamps are the lamps around the first lamp that the first lamp scans when the first lamp is in scanning mode. The information of the second lamps includes the identification and power level of the second lamps. The information of the first lamps includes the identification, power level, and location of the first lamp. If the battery level of the first lamp is greater than or equal to a preset battery threshold, then the scanning time of the first lamp is determined and sent to the first lamp. This allows the first lamp to receive the scanning time sent by the cloud server when its battery level is greater than or equal to the preset battery threshold and its mode is beacon mode. During the scanning time, the first lamp scans the lamps around it to obtain information about the scanned lamps. The information about the scanned lamps includes the lamp's identifier and battery level. If the power level in the information of the first lamp is less than the preset power threshold, then a first lamp set is determined from each of the second lamps; the first lamp set includes second lamps that can scan the first lamp and whose power level is greater than the preset power threshold; any second lamp in the first lamp set is taken as a third lamp, the scanning time of the third lamp is determined, and the scanning time of the third lamp is sent to the third lamp so that the third lamp can scan the lamps around the third lamp during the scanning time to obtain the information of the scanned lamps.

4. The method according to claim 3, characterized in that, Determining the scanning time of the third lamp includes: Obtain the most recent scan time of the second lamp in the first set of lamps; The second set of lamps is determined from the first set of lamps based on the most recent scan time and the current time; The scanning time of the third lamp is determined based on the second set of lamps.

5. The method according to claim 4, characterized in that, The step of determining the scanning time of the third lamp based on the second set of lamps includes: Determine the maximum scan time among the most recent scan times of each second lamp in the second lamp set; The scanning time of the third lamp is determined based on the maximum scanning time and the preset scanning cycle.

6. A lighting fixture information uploading device, the device being used to perform the steps of the method according to claim 1 or 2; the device comprising: The acquisition module is used to scan the lamps around the first lamp if the mode of the first lamp is scanning mode, so as to obtain information about each second lamp; The information of the second lamp includes the lamp's identification and power level; The first switching module is used to switch the mode of the first lamp from the scanning mode to the beacon mode after the first lamp has completed scanning. The upload module is used to upload target information to the cloud server when the power of the first lamp is greater than or equal to a preset power threshold. The target information includes information about the first lamp and information about each of the second lamps; the information about the first lamp includes its identifier, power level, and location.

7. A lighting fixture, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method of claim 1 or 2.

Citation Information

Patent Citations

  • Vehicle position reporting method and device, computer equipment and storage medium

    CN111148049A

  • Intelligent quick connection method for low-power-consumption Bluetooth equipment

    CN115499815A