Intelligent street lamp regulation and control method and device, computer equipment and storage medium
By assigning a unique measurement point number to each street light and generating a QR code, users can scan the QR code to obtain the communication address and control instructions of the street light, realizing centralized control and unified management of street lights, solving the problem of management difficulties of traditional street light control systems, and improving the intelligence and convenience of the system.
Patent Information
- Application Number
- CN202510210241.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-04-11
AI Technical Summary
Traditional street light control systems have problems such as difficulty in centralized management, high energy consumption and expensive maintenance costs, and lack convenient unified management methods, making it difficult to centrally control multiple street lights according to user needs.
By assigning a unique measurement point number to each street light and generating a corresponding QR code, the user scans the QR code to obtain a string containing the communication address and control instructions of the street light, finds the communication address based on the preset mapping relationship and extracts the control instructions, and realizes single or batch control of the street lights.
Centralized control and unified management of street lights have been realized, the intelligence and convenience of street light management system have been improved, and the problem of unified management of multiple street lights under user needs has been solved.
Smart Images

Figure CN119815650A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of equipment control technology, and in particular to a smart street lamp control method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of science and technology and the continuous improvement of people's quality of life, traditional street light control systems have problems such as difficulty in centralized management, high energy consumption, and expensive maintenance costs. It is usually necessary to set the control parameters of each street light separately, which is cumbersome and inefficient. In addition, there are limitations to the centralized control of multiple street lights, and there is a lack of convenient unified management methods. Therefore, it is necessary to study and propose a smarter and more efficient street light control method that can be centrally controlled according to user needs on the mobile phone. Summary of the invention
[0003] In view of this, the present invention provides a smart street lamp control method, device, computer equipment and storage medium to solve the problem of lack of centralized control and unified management of multiple street lamps according to user needs.
[0004] In a first aspect, the present invention provides a smart street lamp control method, the method comprising:
[0005] Assign a unique measurement point number to each street lamp and generate a corresponding QR code based on each measurement point number;
[0006] Identify and parse the QR code to obtain a character string containing the communication address and control instructions of each street lamp;
[0007] Based on the preset mapping relationship, the identifiable communication address corresponding to each street light in the character string is searched, and the control instruction in the character string is extracted;
[0008] Each street light is regulated based on the communication address and control instructions.
[0009] The present invention provides a smart street light control method, which generates a corresponding control QR code by assigning a unique measurement point number to each street light. The user obtains a character string containing the communication address and control instructions of each street light by scanning the QR code; searches for the identifiable communication address corresponding to each street light in the character string based on a preset mapping relationship, and extracts the control instructions in the character string; single or batch control of street lights can be achieved based on the communication address and control instructions according to user needs, including operations such as switching, brightness adjustment, etc., thus achieving centralized control and unified management of street lights, and solving the problem of lack of centralized control and unified management of multiple street lights according to user needs.
[0010] In an optional implementation, a unique measurement point number is assigned to each street lamp, and a corresponding QR code is generated based on each measurement point number, including:
[0011] Get the device identification ID, installation location, area and road section of each street light;
[0012] A measurement point number is assigned to each street light based on its device identification ID, installation location, region and road section, and a corresponding QR code is generated based on the measurement point number of each street light.
[0013] The present invention provides a smart street lamp control method, which assigns a measurement point number to each street lamp based on the device identification ID, installation location, area and road section of each street lamp, and generates a corresponding QR code based on the measurement point number of each street lamp, thereby improving the accuracy of monitoring each street lamp and facilitating the subsequent switching and brightness adjustment of each street lamp.
[0014] In an optional implementation, searching for an identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship includes:
[0015] Parse the string to obtain the device identification ID and MAC address of each street lamp;
[0016] Based on the device identification ID and / or MAC address of each street lamp, the identifiable communication address corresponding to each street lamp is searched in the preset mapping relationship.
[0017] In an optional implementation, searching for an identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship further includes:
[0018] Verify the uniformity of the format of the recognizable communication address and verify the validity of the recognizable communication address.
[0019] The present invention provides a smart street lamp control method, which parses a character string to obtain the device identification and MAC address of each street lamp, thereby achieving the purpose of searching for an identifiable communication address corresponding to each street lamp in a preset mapping relationship based on the device identification and / or MAC address of each street lamp, ensuring a one-to-one correspondence between the online street lamp and the actual street lamp communication address, and facilitating the subsequent switching and brightness adjustment of each street lamp.
[0020] In an optional implementation, the smart street light control method further includes:
[0021] The control instructions are encapsulated through the street light communication protocol, and the encapsulated control instructions are sent to the superior street light control terminal through the Internet of Things technology.
[0022] The present invention provides a smart street lamp control method, which encapsulates control instructions through a street lamp communication protocol, and sends the encapsulated control instructions to a superior street lamp control terminal through the Internet of Things technology, thereby achieving the purpose of each street lamp control terminal communicating with the superior street lamp control terminal.
[0023] In an optional implementation, the control instruction is an operation command and an operation parameter sent to a superior street lamp control terminal, and each street lamp is regulated based on the communication address and the control instruction, including:
[0024] Use the superior street light control terminal to parse the control instructions and obtain the operation commands and operation parameters;
[0025] The upper-level street lamp control terminal sends an execution command for regulating the on and off state of each street lamp and an execution command for regulating the brightness of each street lamp based on the communication address, operation command and operation parameter;
[0026] The on / off state of each street lamp is regulated and the brightness of each street lamp is regulated based on the execution command for regulating the on / off state of each street lamp and the execution command for regulating the brightness of each street lamp.
[0027] The present invention provides a smart street lamp control method, which controls the on and off state of each street lamp and the brightness of each street lamp according to the execution command for controlling the on and off state of each street lamp and the execution command for controlling the brightness of each street lamp sent by the superior street lamp control terminal, thereby achieving the effect of centralized control of batches of street lamps according to user needs and improving the intelligence and convenience of the street lamp management system.
[0028] In an optional implementation, the smart street light control method further includes:
[0029] After executing the control operation, send status feedback to the superior street light control terminal to indicate whether the operation was successfully executed;
[0030] Monitor the operating status of each street lamp in real time, feed back the operating status information to the user, and send a reminder message to the user to turn off the street lamp.
[0031] The present invention provides a smart street lamp control method. After executing the control operation, the method sends status feedback on whether the control operation is successfully executed to the superior street lamp control terminal, which is conducive to communication with the superior street lamp control terminal, monitors the operating status of each street lamp in real time, and feeds back the operating status information to the user and sends a reminder message to the user to turn off the street lamp, so that the brightness of the street lamp can be automatically adjusted according to the usage of the street lamp and environmental factors, achieving the goal of energy saving and consumption reduction, and avoiding energy waste and safety hazards.
[0032] In a second aspect, the present invention provides a smart street light control device, the device comprising:
[0033] A QR code generation module, used to assign a unique measurement point number to each street lamp and generate a corresponding QR code based on each measurement point number;
[0034] A QR code parsing module is used to identify and parse the QR code to obtain a character string containing the communication address and control instructions of each street lamp;
[0035] A communication address and control instruction extraction module, used to search for the identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship, and extract the control instruction in the character string;
[0036] The street light control module is used to control each street light based on the communication address and control instructions.
[0037] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the smart street light control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the smart street light control method of the first aspect or any corresponding embodiment thereof.
[0039] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the smart street light control method of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 is a flow chart of a smart street light control method according to an embodiment of the present invention;
[0042] Figure 2 is a flow chart of another smart street light control method according to an embodiment of the present invention;
[0043] Figure 3is a flow chart of another smart street light control method according to an embodiment of the present invention;
[0044] Figure 4 is a structural block diagram of a smart street light control device according to an embodiment of the present invention;
[0045] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0047] According to an embodiment of the present invention, an embodiment of a smart street lamp control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0048] In this embodiment, a smart street light control method is provided, which can be used in a street light management system (smart street light system). The street light management system includes a mobile terminal and a street light control terminal. The mobile terminal is such as a mobile phone, a tablet computer, etc. The mobile terminal is connected to the street light control terminal in a wireless manner. Figure 1 is a flow chart of a smart street light control method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0049] Step S101: assign a unique measurement point number to each street lamp, and generate a corresponding QR code based on each measurement point number.
[0050] Specifically, the street lamp of this embodiment has certain communication capabilities and supports remote communication methods such as 485, Bluetooth, and 4G, so as to transmit data and receive instructions with the street lamp management system. In addition, the street lamp also needs to be controllable, that is, it can be turned on and off, adjust the brightness, etc. according to the received instructions. At the same time, the hardware needs to be equipped with components such as sensors, controllers, communication modules, single lamp controllers, micro-break switches, etc., to achieve real-time monitoring and control of its status.
[0051] When each street light is installed, the street light management system will assign a unique measurement point number to each street light, which is regarded as the communication address of each street light, and plays the role of identifying and locating each street light, ensuring that each street light can be uniquely identified and controlled. A QR code generation tool is used to generate a control QR code based on the unique measurement point number of each street light. This QR code contains the communication address and control instruction information of each street light, ensuring that the user can accurately identify and control the target street light after scanning the QR code.
[0052] Step S102, identifying and parsing the QR code to obtain a character string including the communication address and control instructions of each street lamp.
[0053] Specifically, a mobile terminal application is used to scan a QR code to control the street light on the mini program side, and a QR code decoder built into the mobile terminal application is used to decode the scanned QR code image using a QR code decoding technology to obtain a string of readable string information containing the street light communication address and control instructions. The string format uses JSON (JavaScript Object Notation) format, which is a lightweight data exchange format.
[0054] The decoded string may contain some additional characters or format information, such as prefixes, suffixes, separators, etc. In order to ensure the accuracy of the string, the decoded string is preprocessed to remove these additional characters to ensure the accuracy of subsequent parsing.
[0055] Step S103: searching for the identifiable communication address corresponding to each street lamp in the character string based on the preset mapping relationship, and extracting the control instruction in the character string.
[0056] Specifically, according to the preset coding rules or format conventions, the street light management system locates and extracts the communication address of the street light in the preprocessed string. After extracting the communication address, it continues to locate and extract the control instructions in the preprocessed string, and after obtaining the user login information, it will grant the corresponding control authority, including street light switching, brightness adjustment and other operations.
[0057] Step S104: regulating each street light based on the communication address and the control instruction.
[0058] Specifically, this step requires the cooperation of the mobile terminal and the street light control terminal of the street light management system (smart street light system). First, the street light control terminal parses the control command and extracts the specific operation command and operation parameters from the control command. After the parsing is completed, the street light control terminal generates an execution command based on the communication address, specific operation command and operation parameters of each street light, and allows the mobile terminal to perform the corresponding street light control operation according to the execution command, such as switch control, brightness adjustment, etc.
[0059] The smart street light control method provided in this embodiment generates a corresponding control QR code by assigning a unique measurement point number to each street light. The user obtains a string containing the communication address and control instructions of each street light by scanning the QR code; the identifiable communication address corresponding to each street light in the string is searched based on the preset mapping relationship, and the control instructions in the string are extracted; the user can realize single or batch control of the street lights based on the communication address and control instructions according to the needs, including switching, brightness adjustment and other operations, realizing centralized control and unified management of street lights, and solving the problem of lack of centralized control and unified management of multiple street lights according to user needs.
[0060] In this embodiment, a smart street light control method is provided, which can be used in a street light management system (smart street light system). The street light management system includes a mobile terminal and a street light control terminal. The mobile terminal is such as a mobile phone, a tablet computer, etc. The mobile terminal is connected to the street light control terminal in a wireless manner. Figure 2 is a flow chart of a smart street light control method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0061] Step S201: assign a unique measurement point number to each street lamp, and generate a corresponding QR code based on each measurement point number.
[0062] Specifically, the above step S201 includes:
[0063] Step S2011, obtaining the device identification ID, installation location, area and road section of each street lamp.
[0064] Specifically, in the street light management system, an ID number is set for the street light installation area, and a device identification ID is set for each street light. Information such as the device identification ID, installation location, area and road section of each street light is obtained in the street light management system.
[0065] Step S2012: assign a measurement point number to each street lamp based on the device identification ID, installation location, area and road section of each street lamp, and generate a corresponding QR code based on the measurement point number of each street lamp.
[0066] Specifically, a measurement point number, i.e., the communication address of each street light, is assigned to each street light based on its device identification ID, installation location, region, and road section, and a QR code generation tool is used to generate a corresponding street light control QR code based on each street light measurement point number.
[0067] Step S202: Identify and parse the QR code to obtain a string containing the communication address and control instructions of each street lamp. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0068] Step S203: searching for the identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship.
[0069] First, the communication address of the street lamp is accurately parsed, including the identification of the device ID and MAC address of the street lamp, and the conversion of the device ID into an actual identifiable communication address according to the preset mapping relationship. During the parsing process, the uniformity of the communication address format, the validity verification of the communication address, and the dynamic update of the communication address are considered.
[0070] Specifically, the above step S203 includes:
[0071] Step S2031, parse the character string to obtain the device identification ID and MAC address of each street lamp.
[0072] Specifically, according to a preset encoding rule or format convention, the device identification ID and MAC address of each street lamp are located and extracted from the preprocessed character string.
[0073] Step S2032: searching for an identifiable communication address corresponding to each street lamp in a preset mapping relationship based on the device identification ID and / or MAC address of each street lamp.
[0074] Specifically, the preset mapping relationship refers to a set of rules pre-set in the street light management system, which is used to map the unique identification information of the street light, such as the device identification ID and MAC address, to the actual communication address, which is stored in the database of the street light management system and dynamically updated with the operation and maintenance of the street light management system.
[0075] When the street light management system receives a control command from a mobile terminal, it will first parse out the street light device identification ID and MAC address contained in the command, and then search for the corresponding communication address in the preset mapping database based on the parsed device identification ID or MAC address. Once a matching mapping relationship data is found, the system will convert the device identification ID or MAC address into the corresponding communication address, read the communication address information stored in the mapping relationship, and assign it to the variables or data structures inside the street light management system for subsequent communication.
[0076] For example, the preset mapping relationship may be as follows:
[0077] The street light with device identification ID "101" has a corresponding MAC address of "XX:XX:XX:XX:XX:01", so the communication address is "192.168.1.101".
[0078] Step S2033, verifying the uniformity of the format of the identifiable communication address and verifying the validity of the identifiable communication address.
[0079] Specifically, during the search process, the street light management system will verify the uniformity of the communication address format to ensure that it complies with the network communication specifications. At the same time, it will also verify the validity of the communication address, such as checking whether it belongs to the valid IP address range and whether it has been occupied by other devices.
[0080] It should be noted that as street lamp equipment is added, deleted or moved, the preset mapping relationship also needs to be updated accordingly. When a conflict may occur, the administrator is allowed to manually update the preset mapping relationship to ensure that it is always consistent with the actual situation.
[0081] Step S204, encapsulate the control instruction through the street lamp communication protocol, and send the encapsulated control instruction to the upper-level street lamp control terminal through the Internet of Things technology.
[0082] Specifically, the control instruction is a specific operation command sent by the system to the street light control terminal, such as switch control, brightness adjustment, etc. The control instruction is encapsulated through the street light communication protocol to ensure that the street light control terminal can correctly parse and execute it.
[0083] The encapsulation process includes encoding the control instructions, using the RSA encryption algorithm (asymmetric encryption algorithm), adding verification codes and other steps to ensure the security and reliability of the control instructions.
[0084] The encapsulated control instructions are sent to the street light control terminal through the Internet of Things technology NB-IoT. That is, the mobile gateway sends the control instructions to the corresponding street light control terminal through the Internet of Things technology based on the parsed street light communication address and control instructions.
[0085] Step S205: Control each street light based on the communication address and control instructions. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0086] The smart street light control method provided in this embodiment assigns a measurement point number to each street light based on the device identification ID, installation location, area and road section of each street light, and generates a corresponding QR code based on the measurement point number of each street light, thereby improving the accuracy of monitoring each street light, parsing the character string to obtain the device identification and MAC address of each street light, and achieving the purpose of searching for the identifiable communication address corresponding to each street light in the preset mapping relationship based on the device identification and / or MAC address of each street light, ensuring a one-to-one correspondence between the online street light and the actual street light communication address, and facilitating the subsequent switching and brightness adjustment of each street light. The control instructions are encapsulated through the street light communication protocol, and the encapsulated control instructions are sent to the superior street light control terminal through the Internet of Things technology, thereby achieving the purpose of each street light control terminal communicating with the superior street light control terminal.
[0087] In this embodiment, a smart street light control method is provided, which can be used in a street light management system (smart street light system). The street light management system includes a mobile terminal and a street light control terminal. The mobile terminal is such as a mobile phone, a tablet computer, etc. The mobile terminal is connected to the street light control terminal in a wireless manner. Figure 3 is a flow chart of a smart street light control method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0088] Step S301: assign a unique measurement point number to each street lamp, and generate a corresponding QR code based on each measurement point number. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.
[0089] Step S302: Identify and parse the QR code to obtain a string containing the communication address and control instructions of each street lamp. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.
[0090] Step S303: search for the identifiable communication address corresponding to each street lamp in the character string based on the preset mapping relationship, and extract the control instructions in the character string. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.
[0091] Step S304: regulating each street light based on the communication address and the control instruction.
[0092] Specifically, the control instruction is an operation command and an operation parameter sent to the superior street lamp control terminal. The above step S304 includes:
[0093] Step S3041: Use the superior street lamp control terminal to parse the control instruction to obtain the operation command and operation parameters.
[0094] Specifically, the operating instructions include two major control operations: switch control and brightness adjustment. The operating parameters include leakage current value, voltage, current, power, operating time, single lamp controller temperature, environmental index and other parameters.
[0095] The switch control command is used to control the on or off state of the street light. For example, "true" means on, and "false" means off.
[0096] The brightness adjustment command is used to adjust the brightness of the street light. It represents the percentage value of the brightness. For example, the parameter "50" means adjusting the brightness of the street light to 50%, while the parameter "30" means adjusting the brightness of the street light to 30%.
[0097] Leakage current value: The measured value of the street lamp leakage current.
[0098] Voltage: The voltage value at which the street light operates.
[0099] Current: The current value when the street light is working.
[0100] Power: The power value of the street light.
[0101] Operating time: the working time of the street light.
[0102] Single lamp controller temperature: the temperature value of the controller.
[0103] Environmental index: the impact of environmental factors on street lighting.
[0104] Step S3042: The superior street lamp control terminal sends an execution command for regulating the on and off state of each street lamp and an execution command for regulating the brightness of each street lamp based on the communication address, operation command and operation parameters.
[0105] Step S3043: Based on the execution command for regulating the on and off state of each street lamp and the execution command for regulating the brightness of each street lamp, the on and off state of each street lamp and the brightness of each street lamp are regulated respectively.
[0106] Specifically, the street light control system in the mobile terminal applet is connected to all street lights through wireless communication. The applet is connected to the street light control terminal through wireless communication. After the street light control terminal sends an execution instruction, the street light control system in the mobile terminal applet distributes the execution instruction to all corresponding street lights. The street light management system controls the switch of the street light through the micro-break switch and adjusts the brightness of the street light through the PWM signal of the single lamp controller.
[0107] The micro-breaker is usually located in the main control room of the street light management system, and controls the circuit connection part of the street lights in an area. The function of the micro-breaker is to realize the on-off control of the power supply of all street lights in an area by closing or opening the physical contacts according to the switch instructions in the execution instructions. It can be turned on and off at the same time, but the brightness cannot be adjusted.
[0108] The single lamp controller is installed under each street lamp. It is an independent street lamp control device. It also adjusts the brightness of the street lamp according to the execution instructions. It controls the average power of the street lamp by changing the width of the pulse (ie, the duty cycle), thereby achieving brightness adjustment.
[0109] Step S305: After executing the control operation, a status feedback is sent to the superior street lamp control terminal to indicate whether the control operation is successfully executed.
[0110] Specifically, after executing the control operation, the mobile terminal sends status feedback to the superior street lamp control terminal to confirm whether the operation is successfully executed.
[0111] The status feedback may include the current status of the street light (such as switch status, brightness value, voltage, current, etc.), as well as error or abnormal information that may occur during the execution process.
[0112] The superior street light control terminal has the ability to detect and handle faults. When an abnormality or fault occurs, it can take timely measures to alarm and notify management personnel for maintenance.
[0113] At the same time, the self-recovery mechanism of the superior street light control terminal automatically restores to the previous control state after power failure and restart to ensure the stability and reliability of the street light system (a system composed of all street lights).
[0114] Step S306, monitor the operating status of each street lamp in real time, feed back the operating status information to the user, and send a reminder message to the user to turn off the street lamp.
[0115] Specifically, the street light management system monitors the status of street lights in real time and feeds back the status information to users. At the same time, the street light management system can also automatically adjust the brightness of street lights according to the usage of street lights and environmental factors to achieve the goal of energy saving and consumption reduction.
[0116] The street light management system records the information of the person who turns on each street light. After the street light is turned on for a period of time (such as a set number of hours), the system will automatically send a reminder message to the person who turned it on, suggesting that he turn off the street light to avoid energy waste and safety hazards.
[0117] It should be noted that regular inspections include: regular inspections of the street light management system to ensure the normal operation of functions such as QR code generation, recognition, and mini-program access. Fault handling: If a fault or abnormality is found in the street light management system, it should be handled and repaired in a timely manner to ensure the stability and reliability of street light control. Functional upgrade: According to user needs and technological development, the street light management system is upgraded and optimized to improve the intelligent level of street light management.
[0118] The intelligent street light control method provided in this embodiment controls the on and off state of each street light and the brightness of each street light according to the execution command for controlling the on and off state of each street light and the execution command for controlling the brightness of each street light sent by the superior street light control terminal, thereby achieving the effect of centralized control of batch street lights according to user needs and improving the intelligence and convenience of the street light management system. After executing the control operation, status feedback on whether the execution is successful is sent to the superior street light control terminal, which is conducive to communication with the superior street light control terminal, real-time monitoring of the operating status of each street light, and feedback of the operating status information to the user and sending a reminder message to the user to turn off the street light, so that the brightness of the street light can be automatically adjusted according to the usage of the street light and environmental factors, achieving the goal of energy saving and consumption reduction, and avoiding energy waste and safety hazards.
[0119] As one or more specific application embodiments of the embodiments of the present invention, a detailed description of the smart street light control provided by the present invention is as follows:
[0120] 1. Preparation:
[0121] Street light numbering and communication address allocation: Assign a unique measurement point number to each street light, i.e. the street light's communication address, to ensure that each street light can be individually identified and controlled.
[0122] QR code generation: Generate the corresponding control QR code based on the unique measurement point number of the street light. The QR code should contain the communication address of the street light, control command information, and access link of the mini program.
[0123] Mobile terminal applet development: Develop an applet interface for users to scan the QR code to access the street light management system and perform street light control operations. At the same time, the mobile terminal applet should have the function of obtaining and storing user information.
[0124] 2. User operation:
[0125] Scan QR code: Users use smartphones or other scanning devices to scan the control QR code on the street light.
[0126] Mobile terminal mini program access: After scanning, the user will automatically jump to the mini program interface. In the mini program interface, the user needs to agree to obtain user information (such as mobile phone number, WeChat account, etc.), which will be stored in the street light management system as the opener information.
[0127] Street light control: Users select control commands in the mobile terminal applet, such as turning street lights on and off, adjusting brightness, etc. The street light management system generates corresponding control commands based on user selections.
[0128] Sending control instructions: Through the Internet of Things technology, the control instructions of the mobile terminal are sent to the street light control terminal, and the street light control terminal generates an execution instruction and sends it to the corresponding street light controller. After receiving the execution instruction, the street light controller performs the corresponding control operation.
[0129] 3. Status feedback and monitoring:
[0130] Status feedback: The street light management system monitors the status of street lights in real time and feeds back the status information to users. Users can view the current status of street lights and historical control records on the mobile terminal applet.
[0131] Reminder for the person who turns on the street light: The street light management system records the information of the person who turns on each street light. After the street light is turned on for a period of time (such as a set number of hours), a reminder message will be automatically sent to the person who turned it on, suggesting that he or she turn off the street light.
[0132] Energy-saving management: The street light management system automatically adjusts the brightness of street lights according to the usage of street lights and environmental factors to achieve the goal of energy saving and consumption reduction. At the same time, the street light management system can also generate energy-saving reports for user reference.
[0133] Real-time data collection: The street light management system uses the Internet of Things technology to collect key parameters of street lights in real time, such as current, voltage, lighting value, lighting time, power consumption, and leakage current value.
[0134] Data display: The collected data will be displayed in the form of tables and graphs on the mobile terminal applet, helping users to understand the operating status of street lights more intuitively.
[0135] 4. Street light management system maintenance and upgrade:
[0136] Regular inspection: Regularly inspect the street light management system to ensure the normal operation of functions such as QR code generation, recognition, and mini program access.
[0137] Fault handling: If any fault or abnormality is found in the street light management system, it should be handled and repaired in a timely manner to ensure the stability and reliability of street light control.
[0138] Functional upgrade: According to user needs and technological development, the street light management system will be upgraded and optimized to improve the intelligent level of street light management.
[0139] The present embodiment provides a smart street light control method, which generates a corresponding control QR code by assigning a unique measurement point number to each street light, that is, the communication address of the street light. By scanning the QR code, users can achieve single or batch control of street lights, including switching, brightness adjustment and other operations. In addition, when scanning the QR code to enter the mini program to control the street light, the system will request to obtain user information as the information of the person who turns it on, so as to remind the person who turns it on to turn off the street light after a long time, further improving the intelligence and convenience of street light management. The present embodiment provides a smart street light control method that can be widely used in other projects, such as urban transportation, environmental monitoring, public safety, smart parks, smart cities, Internet of Things scenarios and other projects. Through street light control and intelligent analysis, this technology can improve the efficiency of street light management and control, reduce energy consumption, and bring users a more intelligent and energy-saving experience. Therefore, this technical improvement has broad application prospects and significant promotion value.
[0140] In this embodiment, a smart street light control device is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0141] This embodiment provides a smart street light control device. Figure 4 As shown, including:
[0142] The two-dimensional code generation module 401 is used to assign a unique measurement point number to each street lamp, and generate a corresponding two-dimensional code based on each measurement point number.
[0143] The two-dimensional code analysis module 402 is used to identify and analyze the two-dimensional code to obtain a character string containing the communication address and control instructions of each street lamp.
[0144] The communication address and control instruction extraction module 403 is used to search for the identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship, and extract the control instruction in the character string.
[0145] The street light control module 404 is used to control each street light based on the communication address and the control instruction.
[0146] In some optional implementations, the QR code generation module 401 includes:
[0147] The information acquisition unit is used to obtain the device identification ID, installation location, area and road section of each street lamp.
[0148] The QR code generating unit is used to assign a measuring point number to each street lamp based on the device identification ID, installation location, area and road section of each street lamp, and generate a corresponding QR code based on the measuring point number of each street lamp.
[0149] In some optional implementations, the communication address and control instruction extraction module 403 includes:
[0150] The identification and MAC address acquisition unit is used to parse the character string to obtain the device identification ID and MAC address of each street lamp.
[0151] The communication address extraction unit is used to search for the identifiable communication address corresponding to each street light in the preset mapping relationship based on the device identification ID and / or MAC address of each street light. The verification unit is used to verify the uniformity of the format of the identifiable communication address and the validity of the identifiable communication address.
[0152] In some optional implementations, the street light control module 404 includes:
[0153] The control instruction parsing unit is used to parse the control instruction using the upper-level street lamp control terminal to obtain the operation command and operation parameters.
[0154] The execution command generating unit is used to use the upper-level street lamp control terminal to send the execution command for regulating the on and off state of each street lamp and the execution command for regulating the brightness of each street lamp based on the communication address, operation command and operation parameter.
[0155] The street lamp control unit is used to control the on and off state of each street lamp and the brightness of each street lamp based on the execution command for controlling the on and off state of each street lamp and the execution command for controlling the brightness of each street lamp.
[0156] In some optional implementations, the smart street light control device further includes:
[0157] The control instruction encapsulation and sending module is used to encapsulate the control instructions through the street light communication protocol, and send the encapsulated control instructions to the upper-level street light control terminal through the Internet of Things technology.
[0158] The status feedback module is used to send status feedback on whether the control operation is successfully executed to the superior street light control terminal after executing the control operation.
[0159] The street lamp monitoring and reminder information sending module is used to monitor the operating status of each street lamp in real time, and feed back the operating status information to the user and send a reminder message to the user to turn off the street lamp.
[0160] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0161] The smart street light control device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0162] The embodiment of the present invention also provides a computer device having the above Figure 4 The smart street light control device shown.
[0163] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0164] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0165] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0166] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0167] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0168] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0169] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0170] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0171] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0172] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A smart street light control method, characterized in that: The method comprises: Assign a unique measurement point number to each street lamp and generate a corresponding QR code based on each measurement point number; Identify the QR code and parse it to obtain a character string containing the communication address and control instructions of each street lamp; Searching for an identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship, and extracting a control instruction in the character string; Control each street lamp based on the communication address and the control instruction; Searching for an identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship includes: Parse the string to obtain the device identification ID and MAC address of each street lamp; Based on the device identification ID and / or MAC address of each street lamp, searching for an identifiable communication address corresponding to each street lamp in the preset mapping relationship; The preset mapping relationship refers to a set of rules pre-set in the street light management system, which is used to map the device identification ID and MAC address unique identification information of the street light to the actual communication address, stored in the database of the street light management system, and dynamically updated with the operation and maintenance of the street light management system.
2. The method according to claim 1, characterized in that The method of allocating a unique measurement point number to each street lamp and generating a corresponding QR code based on each measurement point number includes: Get the device identification ID, installation location, area and road section of each street light; A measurement point number is assigned to each street light based on its device identification ID, installation location, region and road section, and a corresponding QR code is generated based on the measurement point number of each street light.
3. The method according to claim 1, characterized in that: The searching for the identifiable communication address corresponding to each street lamp in the character string based on the preset mapping relationship also includes: The format of the identifiable communication address is verified for uniformity and the validity of the identifiable communication address is verified.
4. The method according to claim 1, characterized in that: The method further comprises: The control instructions are encapsulated through the street light communication protocol, and the encapsulated control instructions are sent to the upper-level street light control terminal through the Internet of Things technology.
5. The method according to claim 4, characterized in that The control instruction is an operation command and an operation parameter sent to the superior street lamp control terminal. Each street lamp is regulated based on the communication address and the control instruction, including: The control instructions are parsed by the upper-level street lamp control terminal to obtain operation commands and operation parameters; Using the superior street lamp control terminal to send an execution command for regulating the on and off state of each street lamp and an execution command for regulating the brightness of each street lamp based on the communication address, operation command and operation parameter; The on / off state of each street lamp is regulated and the brightness of each street lamp is regulated based on the execution command for regulating the on / off state of each street lamp and the execution command for regulating the brightness of each street lamp.
6. The method according to claim 5, characterized in that The method further comprises: After executing the control operation, send status feedback to the superior street light control terminal to indicate whether the operation was successfully executed; Monitor the operating status of each street lamp in real time, feed back the operating status information to the user, and send a reminder message to the user to turn off the street lamp.
7. A smart street light control device, characterized in that: The device comprises: A QR code generation module, used to assign a unique measurement point number to each street lamp and generate a corresponding QR code based on each measurement point number; A two-dimensional code parsing module, used to identify and parse the two-dimensional code to obtain a character string containing the communication address and control instructions of each street lamp; A communication address and control instruction extraction module, used to search for the identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship, and extract the control instruction in the character string; A street light control module, used to control each street light based on the communication address and control instructions; Searching for an identifiable communication address corresponding to each street lamp in the character string based on a preset mapping relationship includes: Parse the string to obtain the device identification ID and MAC address of each street lamp; Based on the device identification ID and / or MAC address of each street lamp, searching for an identifiable communication address corresponding to each street lamp in the preset mapping relationship; The preset mapping relationship refers to a set of rules pre-set in the street light management system, which is used to map the device identification ID and MAC address unique identification information of the street light to the actual communication address, stored in the database of the street light management system, and dynamically updated with the operation and maintenance of the street light management system.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the smart street light control method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the smart street light control method according to any one of claims 1 to 6.
Citation Information
Cited By
Street lamp energy consumption metering and optimization control method and system
CN121968422A