A lighting control terminal number accurate copying method and device

By generating communication authorization codes and frequency bands through encryption algorithms, the reliability and security issues of communication during the numbering and copying process of lighting control terminals are resolved, enabling convenient and efficient numbering and copying and information association, and supporting intelligent lighting control and operation and maintenance management.

CN116528222BActive Publication Date: 2026-06-16XIAMEN IOTCOMM TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAMEN IOTCOMM TECH CO LTD
Filing Date
2023-05-10
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Existing methods for recording the serial numbers of lighting control terminals suffer from low efficiency, high cost, communication reliability affected by the environment and lamp structure, and poor information security.

Method used

An encryption algorithm is used to generate a communication authorization code and communication frequency band. Through secure communication between the transcription tool and the terminal controller, the identification number of the terminal controller is obtained and associated with the light pole number and geographical information.

🎯Benefits of technology

It enables convenient, efficient, and low-cost recording of lighting control terminal numbers, ensures communication security, and supports intelligent lighting control and refined operation and maintenance management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528222B_ABST
    Figure CN116528222B_ABST
Patent Text Reader

Abstract

The application provides a lighting control terminal number accurate copying method and device, the method comprises the following steps: installing a terminal controller on a lighting device, generating a first communication authorization code by using an encryption algorithm according to a project number and a product internal number, and generating a first communication frequency band by using a communication frequency band selection algorithm according to the project number; a copying tool automatically adjusts and enables a corresponding communication frequency band according to a second communication frequency band authorization code, sends a second communication authorization code to request the terminal controller to communicate, the terminal controller judges whether the second communication authorization code is consistent with the first communication authorization code, if it is confirmed that the second communication authorization code is consistent with the first communication authorization code, the terminal controller feeds back a pass and returns an identification number of the terminal controller; the copying tool acquires positioning information and a lamp pole number of the lighting device, and makes the positioning information, the lamp pole number and the identification number one-to-one corresponding association. The identification number copying of the lighting terminal controller can be quickly realized with low cost, convenience, high efficiency, point-to-point and high safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent control technology for street lighting, specifically to a method and device for accurately recording the serial number of a lighting control terminal. Background Technology

[0002] In recent years, with the implementation of energy conservation, emission reduction, and the national "dual-carbon" policy, urban road lighting control has evolved from simple loop timing control to intelligent control and refined management of individual lamps. The one-to-one correspondence between the lighting terminal controller identification number and the lamp post number and geographic information is a crucial step in the process of refined intelligent lighting control and operation and maintenance management. Only by combining this with a GIS management system can true intelligent lighting control and refined management be achieved.

[0003] Currently, in the field of intelligent road lighting control, the following methods are commonly used to achieve convenient and accurate one-to-one correspondence between the identification number of the lighting terminal controller and the light pole number and geographical information:

[0004] Method 1: Manual Recording: During the installation of the lighting fixtures, construction workers manually record the data on paper documents from an aerial work platform, and then back-end staff manually enter it into the system. This method has problems: prone to errors and omissions, low efficiency, inability to obtain geographical information, and high cost.

[0005] Method 2: Barcode and QR code scanning: During installation, construction workers scan the codes using their mobile phones from the aerial work platform, then register the relevant information and remotely upload it to the system. This method has several drawbacks: safety risks associated with working at heights, high skill requirements for construction workers, the possibility of barcodes and QR codes becoming contaminated or worn and unscannable, low scanning success rate in low-light conditions, and high cost.

[0006] Method 3: Anti-metal RFID tag recording: During installation, construction personnel affix metal tags to the designated locations below the light fixtures using the RFID tags on the terminal controller, according to the fixture structure. Subsequent recording and association are performed using a tag reader. This method has several drawbacks: it requires specific light fixture structures; tags are prone to detachment outdoors; communication distance is limited; and the cost is very high. Furthermore, it cannot distinguish the relationships between multiple light fixtures on a single pole.

[0007] Method 4: Bluetooth Wireless Recording: A Bluetooth module is built into the terminal controller. After on-site installation, the recording personnel use their mobile phones to record and associate data. This method has several problems: the terminal controller's Bluetooth hotspot needs to be constantly active regardless of whether it's used, resulting in high energy consumption and wireless "pollution"; due to the diverse structures of lighting fixtures and the complex outdoor environment of streetlights, communication success rate cannot be guaranteed; Bluetooth communication is a standard communication method, and all smartphones on the market have this function. Furthermore, all projects use the same encryption method for terminal controller communication. Once a recording app is installed and authorized in one project, it can be used in other projects, making it vulnerable to unauthorized intrusion and posing information security risks.

[0008] In summary, the main issues are: (1) The transcription and association operations should be separated from the installation and construction, and transcription and association should be carried out at any time according to the needs of the project. (2) The transcription process should be convenient and reliable, and the communication reliability should not be affected by the environment or the structure of the lamps. (3) Communication security issues need to be addressed to ensure that each project has a dedicated transcription device and corresponding key, and that the transcription device is authorized and can only be used in a certain area.

[0009] To address the aforementioned issues, this application proposes a method and apparatus for accurately recording the serial numbers of lighting control terminals, which can solve information security problems in a simple, efficient, and low-cost manner, and achieve accurate recording of the serial numbers of lighting control terminals. Summary of the Invention

[0010] To address the issue that communication reliability during the recording of existing lighting control terminal data is easily affected by the environment and the structure of the lighting fixtures, this application provides a method and apparatus for accurately recording the serial number of a lighting control terminal, thereby resolving the aforementioned technical deficiencies.

[0011] According to one aspect of the present invention, a method for accurately recording the serial number of a lighting control terminal is provided, the method comprising the following steps:

[0012] S1. Install a terminal controller with a project number and product internal number on the lighting equipment, generate a first communication authorization code using an encryption algorithm based on the project number and product internal number, and generate a first communication frequency band using a preset communication frequency band selection algorithm based on the project number;

[0013] S2. The identification number of the terminal controller is copied using a copying tool. The copying process includes: the copying tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization. After automatically adjusting and enabling the corresponding communication frequency band according to the second communication frequency band authorization code, the copying tool sends the second communication authorization code to request communication with the terminal controller. After receiving the communication request, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code. If they are consistent, the terminal controller sends a pass feedback and returns the identification number of the terminal controller; and

[0014] S3. The recording tool obtains the location information and pole number of the lighting equipment and sends them to the terminal controller, so that the location information and pole number are associated with the identification number obtained in step S2.

[0015] Secure communication between the recording tool and the terminal controller can be achieved through communication authorization codes and frequency bands. This allows the acquisition of the terminal controller's identification number, the location information of the lighting equipment, and the pole number. Ultimately, a one-to-one correspondence can be established between the identification number, the pole number, and the geographical information. This method enables users to quickly achieve refined intelligent lighting control and operation and maintenance management.

[0016] In a specific embodiment, step S1 involves generating a first communication frequency band based on the project number using a preset communication frequency band selection algorithm, including the following sub-steps:

[0017] S11. Obtain the preset value of the last digit of the project number;

[0018] S12. Determine whether the value of the preset terminal bit is greater than a preset threshold. If it is confirmed to be greater than the preset threshold, obtain the remainder obtained by dividing the value of the preset terminal bit by the preset threshold, and select the remainder as the first communication frequency band. If it is confirmed to be less than the preset threshold, execute step S13.

[0019] S13. In response to the confirmation that the value is not greater than the preset threshold, the preset value of the end bit is directly selected as the first communication frequency band.

[0020] The first communication frequency band is determined by a communication frequency band selection algorithm to ensure that the communication channels of the transcription tool and the terminal controller of the transcription object are consistent. Only on this basis can subsequent operations be performed.

[0021] In a specific embodiment, step S3, where the recording tool acquires the location information and pole number of the lighting equipment and sends them to the terminal controller, includes the following sub-steps:

[0022] S31. The recording tool obtains the location information of the lighting equipment and enters the corresponding light pole number, and sends it to the terminal controller.

[0023] S32, The terminal controller stores the location information and the light pole number, and sends confirmation information back to the recording tool; and

[0024] S33. If the transcription tool does not receive feedback information within the timeout period or the received feedback information shows a poor signal, the transcription tool sends a communication power adjustment command to the terminal controller, and the terminal controller executes the communication power adjustment command to adjust the transmission power.

[0025] Because the lighting fixtures and usage environments vary from project to project, the wireless communication signal strength received by the recording tool from the terminal controllers is inconsistent. The recording tool can adjust the transmission power of the terminal controllers with poor signals to achieve the best communication effect.

[0026] In a specific embodiment, step S33 further includes:

[0027] If the terminal controller confirms that it has not received the communication power adjustment command from the meter reading tool after a timeout, the connection between the meter reading tool and the terminal controller is disconnected and the light switch task is restored, and the connection authentication between the meter reading tool and the terminal controller is re-established.

[0028] Because there are multiple lights on a single pole or the light poles are close together, multiple terminal controllers may be received at the same time. A one-to-one "flash light" operation is performed using a recording tool to confirm the information so that the recording personnel can quickly confirm it.

[0029] In a specific embodiment, in step S1, the terminal controller has a built-in wireless communication module with adjustable transmission power and multiple communication frequency bands. Based on the project number and the product internal number, it generates a first communication authorization code using an XOR encryption algorithm. The first communication authorization code serves as the communication key between the transcription tool and the terminal controller.

[0030] The terminal controller's built-in wireless module needs sufficient transmission power to ensure normal data collection even in the most challenging environments, such as under sealed lighting fixtures or complete tree obstruction. Multiple adjustable communication frequency bands are provided to ensure consistent communication channels between the recording tool and the terminal controller of the target object.

[0031] In a specific embodiment, step S2 further includes setting a second communication authorization code, a second communication frequency band authorization code, a usage scope authorization code, and an authorization code validity period for the transcription tool according to the project area location. If the transcription tool is used beyond its scope or the validity period expires, then the second communication authorization code and the second frequency band authorization code will both become invalid.

[0032] When in use, the recording tool is authorized through the backend and used in conjunction with a directional antenna to achieve convenient and accurate data collection by "pointing and shooting".

[0033] In a specific embodiment, step S2 further includes a built-in "flash light" function in the terminal controller. After receiving the communication request sent by the transcribing tool, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code. If they are consistent, the terminal controller sends a feedback message and controls the lights to flash light as a prompt, and returns the terminal controller's identification number. If no feedback message is received after a timeout or the received feedback message shows a poor signal, the transcribing tool sends a communication power adjustment command to the terminal controller, and the terminal controller automatically adjusts the transmission power.

[0034] A flashing indicator light clearly shows whether the transcribing tool is connected to the terminal controller. The transcribing tool can adjust its transmission power for terminal controllers with poor signal strength to achieve optimal communication.

[0035] Secondly, this application provides a device for accurately recording the serial number of a lighting control terminal, the device comprising:

[0036] The generation module is configured to install a terminal controller with a project number and an internal product number on the lighting equipment, generate a first communication authorization code using an encryption algorithm based on the project number and the internal product number, and generate a first communication frequency band based on the project number using a preset communication frequency band selection algorithm.

[0037] The transcription module is configured to use a transcription tool to transcribe the identification number of the terminal controller. The transcription process includes: the transcription tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization; after automatically adjusting and enabling the corresponding communication frequency band according to the second communication frequency band authorization code, the transcription tool sends the second communication authorization code to request communication with the terminal controller; after receiving the communication request, the terminal controller determines whether the second communication authorization code matches the first communication authorization code; if they match, it sends a pass feedback and returns the identification number of the terminal controller; and

[0038] The association module is configured to allow the recording tool to obtain the location information and pole number of the lighting equipment and send them to the terminal controller, so that the location information, pole number and identification number are associated one-to-one with the identification number obtained by the recording module.

[0039] Thirdly, this application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of any of the methods described above.

[0040] Fourthly, this application provides a computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the steps of any of the methods described above.

[0041] Compared with the prior art, the beneficial results of the present invention are as follows:

[0042] (1) Each project has a unique communication authorization code and communication frequency band. This encryption method is unbreakable at the purely technical level and can solve information security problems in a simple, efficient and low-cost way.

[0043] (2) By using a copying tool for directional data collection and the terminal controller to automatically adjust the transmission function, the system is unaffected by the environment and lighting conditions, enabling convenient and accurate data collection of identification numbers that can be "pointed to and hit".

[0044] (3) Achieve one-to-one correspondence between the identification number, the light pole number, and the geographical information, enabling users to quickly achieve intelligent lighting control and refined operation and maintenance management. Attached Figure Description

[0045] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments, taken with reference to the accompanying drawings:

[0046] Figure 1 This is a flowchart of the method for accurately transcribing the lighting control terminal number according to this application;

[0047] Figure 2 This is a schematic diagram of the operation process for accurately recording the lighting control terminal number according to this application;

[0048] Figure 3 This is a schematic diagram generated based on the first communication authorization code and the first communication frequency band of the terminal controller in this application;

[0049] Figure 4 This is a flowchart of the communication frequency band selection algorithm according to this application;

[0050] Figure 5 This is a structural diagram of the lighting control terminal number accurate transcription device according to this application;

[0051] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing the electronic devices of the present application embodiments. Detailed Implementation

[0052] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0053] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0054] Figure 1 A flowchart illustrating the method for accurately recording the lighting control terminal serial number according to this application is shown. Figure 2 This is a schematic diagram illustrating the operation process of accurately recording the serial number of a lighting control terminal, in conjunction with reference. Figure 1 and Figure 2 The method includes the following steps:

[0055] S1. Install a terminal controller with a project number and product internal number on the lighting equipment, generate a first communication authorization code using an encryption algorithm based on the project number and product internal number, and generate a first communication frequency band using a preset communication frequency band selection algorithm based on the project number.

[0056] In this embodiment, the terminal controller is installed on the road lighting equipment, and the terminal controller has a built-in wireless communication module with adjustable transmission power and multiple communication frequency bands. Preferably, the terminal controller has a built-in wireless communication module with 100 adjustable communication frequency bands. Since the communication distance of the terminal controller's built-in wireless communication module needs to be sufficient to ensure normal data collection even in the worst environments (sealed lamps, complete tree obstruction), sufficient transmission power is required. However, some projects also have relatively good operating environments. In these cases, if the transmission power is too high, signals from nearby light pole terminal controllers will be received simultaneously during directional data recording, affecting the recording efficiency. To meet various scenarios simultaneously, the wireless transmission function of the terminal controller is set to medium level by default at the factory.

[0057] Preferably, before leaving the factory, a 12-digit project number and a 12-digit internal product number are assigned to the terminal controller based on project information and terminal model information. In other words, each project has a unique 12-digit project number within the company. Since the same project has the same project number, in practical applications, terminal controllers for the same project can be installed on lighting equipment in the same area to facilitate intelligent management. Each product model has a unique 12-digit internal product number within the company.

[0058] Figure 3 This diagram illustrates the generation of the first communication authorization code and the first communication frequency band by the terminal controller, in conjunction with reference. Figure 1 and Figure 3 The terminal controller internally employs a highly efficient XOR encryption algorithm with low hardware computing resource requirements to generate a unique first communication authorization code for the project based on the project number and the product's internal serial number. This first communication authorization code serves as the communication key between the transcription tool and the terminal controller.

[0059] The following example illustrates how to generate the first communication authorization code using the XOR encryption algorithm:

[0060] For example, if the project number is 2023-IOTC-0001, convert it to binary according to the corresponding 8-bit ASCII characters;

[0061] 2023 = 00110010 00110000 00110010 00110011

[0062] IOTC=01001001 01001111 01010100 01000011

[0063] 0002 = 00110000 00110000 00110000 00110010

[0064] Therefore, the project number is: 00110010 00110000 00110010 00110011 010010010100111101010100 01000011 00110000 00110000 00110000 00110010

[0065] Product internal number: 3000-1000-0010; converted to binary based on the corresponding 8-bit ASCII characters;

[0066] 3000 = 00110011 00110000 00110000 00110000

[0067] 1000 = 00110001 00110000 00110000 00110000

[0068] 0010 = 00110000 00110000 00110001 00110000

[0069] Therefore, the product internal code is: 00110011 00110000 00110000 00110000 001100010011000000110000 00110000 00110000 00110000 00110001 00110000

[0070] Obtain the first communication authorization code using the XOR encryption algorithm:

[0071] Project Number Product Internal Number 00110010 00110000 00110010 00110011 01001001 01001111 01010100 01000011 00110000 00110000 00110000 00110010

[0074] 00110011 00110000 00110000 00110000 00110001 00110000 00110000 00110000 00110000 00110000 00110001 00110000

[0077] = 00000001 00000000 00000010 00000011 01111000 01111111 01100100 01110011 00000000 00000000 00000001 00000010

[0080] Figure 4 The flowchart of the communication frequency band selection algorithm is shown, in conjunction with the reference. Figure 1 , Figure 3 and Figure 4 The first communication frequency band is generated based on the project number using a preset communication frequency band selection algorithm, including the following sub-steps:

[0081] S11. Obtain the last preset digit value of the project number. The preferred value for the last preset digit value is 4 digits, that is, obtain the last 4 digits of the project number.

[0082] S12. Determine whether the value of the last preset bit is greater than a preset threshold. If it is confirmed to be greater than the preset threshold, obtain the remainder obtained by dividing the value of the last preset bit by the preset threshold, and select the remainder as the first communication frequency band. If it is confirmed to be less than the preset threshold, proceed to step S13. Preferably, the preset threshold is 100. That is, determine whether the last 4 digits of the item number are greater than 100. If it is confirmed to be greater than 100, obtain the remainder of the last 4 digits of the item number divided by 100 as the communication frequency band.

[0083] S13. In response to the confirmation that the value is not greater than a preset threshold, the preset value at the end is directly selected as the first communication frequency band. Preferably, if the last 4 digits of the project number are not greater than 100, the corresponding value is directly selected as the communication frequency band.

[0084] The first communication frequency band is determined by a communication frequency band selection algorithm to ensure that the communication channels of the transcription tool and the terminal controller of the transcription object are consistent. Only on this basis can subsequent operations be performed.

[0085] The following example illustrates the communication frequency band selection algorithm:

[0086] If the product's internal serial number is 3000-1000-0010, then choose to use frequency band 10 for communication.

[0087] For example, if the product's internal serial number is 3000-1000-0101, since 101 / 100 is less than 1, the 1st frequency band is selected for communication.

[0088] For example, if the product's internal serial number is 3000-1000-9009, since 9099 / 100 leaves a remainder of 99, the 99 frequency band is chosen for communication.

[0089] The above method ensures that each project has a unique communication authorization code and communication frequency band combination.

[0090] Continue to refer to Figure 1 and Figure 2 The method for accurately recording the lighting control terminal number provided in this application also includes:

[0091] S2. Use a transcription tool to transcribe the identification number of the terminal controller. The transcription process includes: the transcription tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization. After the transcription tool automatically adjusts and enables the corresponding communication frequency band according to the second communication frequency band authorization code, the transcription personnel hold the directional antenna of the transcription tool and point it at the terminal controller to be transcribed, and send the second communication authorization code to request the terminal controller to communicate. After receiving the communication request, the terminal controller judges whether the second communication authorization code is consistent with the first communication authorization code. If it is confirmed to be consistent, it will send feedback to pass and return the identification number of the terminal controller. If they are inconsistent, it will send feedback to fail.

[0092] In this embodiment, after the on-site terminal controller is installed, the data entry personnel can use a dedicated data entry tool to record the identification number of the lighting terminal controller and associate it with the light pole number and geographical information. The handheld data entry tool has high-precision positioning and "point-and-shoot" directional wireless communication capabilities. Use requires authorization through the backend system as follows: Based on the project area location, the data entry tool is configured with a second communication authorization code, a second communication frequency band authorization code, a usage scope authorization code, and an authorization code validity period. If the data entry tool is used outside its scope or the validity period expires, both the second communication authorization code and the second frequency band authorization code become invalid, and a new authorization application is required.

[0093] Preferably, the terminal controller has a built-in "flash light" function. After receiving a communication request from the recording tool, the terminal controller checks whether the second communication authorization code matches the first communication authorization code. If they match, it sends a pass notification and controls the lights to flash, returning the terminal controller's identification number. If no feedback is received within the timeout period, or if the received feedback indicates a poor signal, the recording tool sends a communication power adjustment command to the terminal controller, which automatically adjusts the transmission power. The flashing light notification makes it easy for the recording personnel to see whether the recording tool is communicating with the terminal controller. Because the structure of the lights and the usage environment vary from project to project, the wireless communication signal received by the recording tool from the terminal controller can vary in strength. The recording tool can adjust the transmission power of the terminal controller with a poor signal to achieve the best communication effect.

[0094] It should be understood that the first communication authorization code of the terminal controller that can be matched and communicate with each other is actually the same as the second communication authorization code of the transcribing tool, and the first communication frequency band of the terminal controller that can be matched and communicate with each other is actually the same as the second communication frequency band of the transcribing tool.

[0095] Continue to refer to Figure 1 and Figure 2 The method for accurately recording the lighting control terminal number provided in this application also includes: S3, the recording tool obtains the location information and pole number of the lighting equipment and sends them to the terminal controller, so that the location information and pole number are associated with the identification number obtained in step S2.

[0096] In this embodiment, the process of the recording tool acquiring the location information of the lighting equipment and recording the corresponding light pole number to send to the terminal controller includes the following sub-steps:

[0097] S31. The recording tool obtains the location information of the lighting equipment and enters the corresponding light pole number, and sends it to the terminal controller.

[0098] S32. The terminal controller stores the location information and the light pole number, and sends a confirmation message to the recording tool. The terminal controller stores the information for subsequent configuration and then actively uploads the relevant information to automatically create the device on the platform.

[0099] S33. If the recording tool does not receive feedback information within the timeout period or the received feedback information shows a poor signal, the recording tool sends a communication power adjustment command to the terminal controller to adjust the transmission power. Because the structure of the lighting fixtures and the usage environment vary from project to project, the wireless communication signal strength received by the recording tool from the terminal controller is inconsistent. The recording tool can adjust the transmission power of the terminal controller with a poor signal to achieve the optimal communication effect.

[0100] If the terminal controller fails to receive a communication power adjustment command from the recording tool after a timeout, the connection between the recording tool and the terminal controller is disconnected, the light switch task is resumed, the terminal controller is restarted, and the connection authentication between the recording tool and the terminal controller is re-established. Since there may be multiple lights on a single pole or close spacing between light poles, responses may be received from multiple terminal controllers simultaneously. A one-to-one "flash light" operation using the recording tool is used for confirmation so that the recording personnel can quickly verify the information.

[0101] Secure communication between the data recording tool and the terminal controller can be achieved through communication authorization codes and frequency bands, thereby obtaining the terminal controller's identification number, as well as the location information and pole number of the lighting equipment. This method enables rapid, low-cost, convenient, efficient, and highly secure recording of lighting terminal controller identification numbers, establishing a one-to-one correspondence between these numbers and pole numbers and geographical information. Users can quickly achieve refined intelligent lighting control and maintenance management.

[0102] The method for accurately recording the lighting control terminal numbers provided in this application uses a unique communication authorization code and communication frequency band for each project, making the encryption method uncrackable at a purely technical level. This method provides a simple, efficient, and low-cost solution to information security issues. Through targeted data collection using a recording tool and automatic adjustment of the transmission function by the terminal controller, it is unaffected by environmental conditions or lighting fixtures, achieving convenient and accurate data collection.

[0103] Further reference Figure 5 As an implementation of the above method, this application provides an embodiment of a device for accurately recording the serial number of a lighting control terminal, which can be specifically applied to various electronic devices. The device 500 includes the following modules:

[0104] The generation module 510 is configured to install a terminal controller with a project number and an internal product number on a lighting device, generate a first communication authorization code using an encryption algorithm based on the project number and the internal product number, and generate a first communication frequency band based on the project number using a preset communication frequency band selection algorithm.

[0105] The transcription module 520 is configured to use a transcription tool to transcribe the identification number of the terminal controller. The transcription process includes: the transcription tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization; after automatically adjusting and enabling the corresponding communication frequency band according to the second communication frequency band authorization code, the transcription tool sends the second communication authorization code to request communication with the terminal controller; after receiving the communication request, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code; if they are consistent, it sends a pass feedback and returns the identification number of the terminal controller; and

[0106] The association module 530 is configured to use the recording tool to obtain the location information of the lighting equipment and enter the corresponding light pole number and send it to the terminal controller, so that the location information, light pole number and the identification number obtained by the recording module 520 are associated one-to-one.

[0107] The method and device for accurately recording the lighting control terminal number provided in this application can be widely used in the information collection of related network equipment in the fields of road lighting and smart cities, and has the advantages of simple operation and high security.

[0108] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing terminal devices or servers in the embodiments of this application. Figure 6 The terminal device or server shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0109] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0110] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a liquid crystal display (LCD) and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card and a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0111] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined in the methods of this application. It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable medium or any combination thereof. The computer-readable medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0112] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0114] The modules described in the embodiments of this application can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor can be described as including a receiving module, an acquiring module, a determining module, a calculating module, and a generating module. The names of these units do not necessarily limit the specific unit itself; for example, the receiving unit can also be described as "a module that, in response to determining that the verification request information includes a username, request time, user signature encoding, and client application encoding, acquires preset configuration information of the target user."

[0115] In another aspect, this application also provides a computer-readable medium, which may be included in the server described in the above embodiments; or it may exist independently and not assembled into the server. The computer-readable medium carries one or more programs, which, when executed by the server, cause the server to: receive verification request information sent by a client of a target user; in response to determining that the verification request information includes a username, request time, user signature code, and client application code, obtain preset configuration information of the target user, wherein the configuration information includes a preset user password corresponding to the username; determine whether the verification request information is valid based on the request time; in response to determining that it is valid, determine whether a preset storage area includes a user signature code; in response to determining that it does not include a user signature code, store the user signature code in the preset storage area, and calculate the server application code based on the user password, request time, and user signature code; in response to determining that the server application code and the client application code match, generate verification success information to characterize the verification request as a legitimate request.

[0116] Furthermore, the aforementioned computer-readable medium may be included in the terminal device described in the above embodiments; or it may exist independently and not assembled into the terminal device. The aforementioned computer-readable medium carries one or more programs that, when executed by the terminal device, cause the terminal device to: acquire user information input by the target user, wherein the user information includes a username and a password; generate a user signature code representing the target user based on the user information; determine the request time; calculate a client application code based on the user password, the request time, and the user signature code; generate verification request information including the username, request time, user signature code, and client application code; and send the verification request information to the server.

[0117] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A method for accurately recording the serial number of a lighting control terminal, characterized in that, Includes the following steps: S1. Install a terminal controller with a project number and an internal product number on the lighting equipment, generate a first communication authorization code using an encryption algorithm based on the project number and the internal product number, and generate a first communication frequency band using a preset communication frequency band selection algorithm based on the project number; S2. The identification number of the terminal controller is copied using a copying tool. The copying process includes: the copying tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization; the copying tool automatically adjusts and enables the corresponding communication frequency band according to the second communication frequency band authorization code, and then sends the second communication authorization code to request the terminal controller to communicate; after receiving the communication request, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code; if they are consistent, it sends a feedback of approval and returns the identification number of the terminal controller; and S3. The recording tool obtains the location information and lamp post number of the lighting equipment and sends them to the terminal controller, so that the location information, lamp post number and the identification number obtained in step S2 are associated one-to-one.

2. The method for accurately recording the lighting control terminal number according to claim 1, characterized in that, In step S1, a first communication frequency band is generated according to the project number using a preset communication frequency band selection algorithm, including the following sub-steps: S11. Obtain the last preset digit value of the project number; S12. Determine whether the value of the terminal preset bit is greater than a preset threshold. If it is confirmed that it is greater than the preset threshold, obtain the remainder obtained by dividing the value of the terminal preset bit by the preset threshold, and select the remainder as the first communication frequency band. If it is confirmed that it is not greater than the preset threshold, execute step S13. as well as S13. In response to the confirmation that the value is not greater than the preset threshold, the preset value of the end bit is directly selected as the first communication frequency band.

3. The method for accurately recording the lighting control terminal number according to claim 1, characterized in that, In step S3, the recording tool acquires the location information and pole number of the lighting equipment and sends them to the terminal controller, including the following sub-steps: S31. The recording tool acquires the location information of the lighting equipment and enters the corresponding lamp post number, and sends it to the terminal controller. S32. The terminal controller stores the positioning information and the light pole number, and sends a confirmation message back to the recording tool. as well as S33. If the transcription tool does not receive feedback information within a timeout period or the received feedback information shows a poor signal, the transcription tool sends a communication power adjustment command to the terminal controller, and the terminal controller executes the communication power adjustment command to adjust the transmission power.

4. The method for accurately recording the lighting control terminal number according to claim 3, characterized in that, Step S33 also includes: In response to the confirmation that the terminal controller has not received the communication power adjustment instruction sent by the recording tool within a timeout, the connection between the recording tool and the terminal controller is disconnected and the light switch task state is restored, and the connection authentication between the recording tool and the terminal controller is re-established.

5. The method for accurately recording the lighting control terminal number according to claim 1, characterized in that, In step S1, the terminal controller has a built-in wireless communication module with adjustable transmission power and multiple communication frequency bands. Based on the project number and the product internal number, it generates a first communication authorization code using an XOR encryption algorithm. The first communication authorization code serves as the communication key between the transcription tool and the terminal controller.

6. The method for accurately recording the lighting control terminal number according to claim 1, characterized in that, In step S2, the method further includes setting the second communication authorization code, the second communication frequency band authorization code, the usage scope authorization code, and the authorization code validity period of the transcription tool according to the project area location. If the transcription tool is used beyond the scope or the validity period expires, then the second communication authorization code and the second frequency band authorization code will both become invalid.

7. The method for accurately recording the lighting control terminal number according to claim 1, characterized in that, Step S2 also includes a built-in "flash light" function in the terminal controller. After receiving the communication request sent by the transcribing tool, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code. If they are consistent, the terminal controller sends a pass feedback and controls the lights to flash as a prompt, and returns the terminal controller's identification number. If no feedback information is received for the communication request within a timeout or the received feedback information shows a poor signal, the transcribing tool sends a communication power adjustment command to the terminal controller, and the terminal controller automatically adjusts the transmission power.

8. A device for accurately recording the serial number of a lighting control terminal, characterized in that, The device includes: The generation module is configured to install a terminal controller with a project number and an internal product number on a lighting device, generate a first communication authorization code using an encryption algorithm based on the project number and the internal product number, and generate a first communication frequency band based on the project number using a preset communication frequency band selection algorithm. A transcription module is configured to use a transcription tool to transcribe the identification number of the terminal controller. The transcription process includes: the transcription tool is pre-configured with a second communication authorization code and a second communication frequency band authorization code through background authorization; the transcription tool automatically adjusts and enables the corresponding communication frequency band according to the second communication frequency band authorization code, and then sends the second communication authorization code to request communication with the terminal controller; after receiving the communication request, the terminal controller determines whether the second communication authorization code is consistent with the first communication authorization code; if they are consistent, it sends a pass feedback and returns the identification number of the terminal controller; and The association module is configured to allow the recording tool to obtain the location information and pole number of the lighting equipment and send them to the terminal controller, so that the location information and pole number are associated one-to-one with the identification number obtained by the recording module.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.