Smart lamp post field maintenance method, system and equipment based on mobile terminal
By using intelligent gateways to decrypt encryption instructions and protocol conversion in the smart lamp pole system, the problem of maintaining data transmission security risks is solved, and the security of data transmission and the efficiency of maintenance work is achieved.
Patent Information
- Application Number
- CN202411627459.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The smart light pole system has a security risk in data transmission during maintenance, and no effective encryption protection measures are taken, resulting in the maintenance data being illegally intercepted and maliciously tampered with.
The smart light pole on-site maintenance method based on mobile terminal is adopted, and the encrypted instructions from the mobile terminal are received through the intelligent gateway, decryption and protocol conversion are carried out to ensure the security of the data during transmission.
Effectively prevent maintenance data from being illegally intercepted and maliciously tampered, ensure the safe operation of smart lamp pole systems, and improve the pertinence and efficiency of maintenance work.
Smart Images

Figure CN119521215A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart city technology, and specifically to a mobile-based on-site smart lamp pole maintenance method, system and equipment. Background Art
[0002] With the rapid advancement of smart city construction, smart light poles, as an important part of urban infrastructure, integrate a variety of intelligent devices such as lighting, environmental monitoring, and video surveillance. The safe and stable operation of these devices is directly related to the efficiency of urban management and the quality of life of citizens. However, due to the wide distribution of smart light poles and the variety of equipment types, maintenance personnel need to conduct frequent on-site inspections, which not only increases maintenance costs, but also makes it difficult to detect and handle equipment failures in a timely manner, affecting the overall operating efficiency of the smart light pole system.
[0003] At present, the industry generally adopts remote maintenance management platforms to centrally monitor and maintain smart light poles. Although this method improves maintenance efficiency to a certain extent, in the remote maintenance process, the maintenance instructions sent by the maintenance platform to the smart light poles and the operating data returned by the smart light poles do not take effective encryption protection measures, resulting in technical risks of data transmission being illegally intercepted and maliciously tampered during the maintenance process, and the safe operation of the smart light pole system cannot be guaranteed. Summary of the invention
[0004] The present application provides a mobile-based on-site maintenance method, system and device for smart lamp poles, which are used to adopt an encryption protection mechanism during data transmission, effectively prevent maintenance data from being illegally intercepted and maliciously tampered with, and ensure the safe operation of the smart lamp pole system.
[0005] In the first aspect, the present application provides a mobile-based on-site maintenance method for smart lamp poles, which is applied to an intelligent gateway, and the intelligent gateway is respectively connected to the mobile terminal and multiple smart devices on the smart lamp pole. The method includes: when the mobile terminal is authenticated, receiving an encrypted instruction sent by the mobile terminal based on a customized communication protocol; decrypting the encrypted instruction, and parsing the decrypted encrypted instruction according to the communication protocol to generate a parsing result; converting the parsing result into a target instruction in the communication protocol format corresponding to the target smart device, and sending the target instruction to the target smart device, wherein the target smart device is any one of the multiple smart devices; receiving an execution result sent by the target smart device, converting and encrypting the execution result according to the customized communication protocol to generate a target execution result; sending the target execution result to the mobile terminal so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan based on the decrypted target execution result.
[0006] By adopting the above technical solution, the intelligent gateway performs decryption and protocol conversion after receiving the encrypted instructions from the mobile terminal, and converts the parsing results into a communication protocol format recognizable by the target intelligent device, thereby realizing unified control of different intelligent devices on the smart light pole. At the same time, the intelligent gateway encrypts the execution results returned by the target intelligent device before sending them to the mobile terminal, ensuring the security of maintenance data during transmission. In addition, the mobile terminal can generate an on-site maintenance plan based on the decrypted target execution results, which improves the pertinence and efficiency of maintenance work. This solution realizes secure communication and protocol adaptation between the mobile terminal and multiple intelligent devices through the intelligent gateway, and adopts an encryption protection mechanism during data transmission to effectively prevent maintenance data from being illegally intercepted and maliciously tampered with, thereby ensuring the safe operation of the smart light pole system.
[0007] Optionally, the encrypted instruction is decrypted and the decrypted encrypted instruction is parsed according to the communication protocol to generate a parsing result, including: decrypting the encrypted instruction using a first key to obtain a decrypted first instruction; formatting the first instruction according to an instruction format preset in the customized communication protocol; when the format verification passes, extracting identification information and control information of the target smart device from the first instruction; and generating a parsing result based on the identification information and control information.
[0008] By adopting the above technical solution, the encrypted instruction is decrypted by using the first key, and the format of the decrypted first instruction is verified to ensure the legality of the instruction; after the format verification is passed, the identification information and control information of the target smart device are extracted from the first instruction to generate a parsing result, which not only ensures the standardization of the parsing process, but also improves the accuracy of the instruction parsing, thereby enhancing the data security and reliability during the on-site maintenance of smart lamp poles.
[0009] Optionally, generating a parsing result based on the identification information and the control information includes: determining the device type of the target smart device based on the identification information; obtaining a target parsing rule corresponding to the device type of the target smart device from a preset correspondence between the device type and the parsing rule; parsing the control information according to the target parsing rule; and using the parsed control information as the parsing result.
[0010] By adopting the above technical solution, the device type of the target smart device is determined by identifying the identification information, and the target parsing rule corresponding to the device type is obtained from the preset corresponding relationship. The control information is parsed and processed according to the target parsing rule, thereby achieving accurate parsing of control instructions for different types of smart devices, improving the versatility and adaptability of instruction parsing, and enabling the smart gateway to accurately process maintenance instructions for different types of smart devices sent by the mobile terminal.
[0011] Optionally, converting the parsing result into a target instruction in a communication protocol format corresponding to the target smart device includes: obtaining a target communication protocol corresponding to the target smart device; and converting the parsing result into the target instruction according to an instruction conversion rule preset in the target communication protocol.
[0012] By adopting the above technical solution, by obtaining the target communication protocol corresponding to the target smart device and converting the parsing result into the target instruction according to the instruction conversion rules preset in the protocol, the instruction adaptation of smart devices with different communication protocols is achieved, ensuring that the maintenance instructions can be correctly identified and executed by the target smart device, thereby improving the communication compatibility between the smart gateway and different types of smart devices.
[0013] Optionally, converting and encrypting the execution result according to the customized communication protocol to generate a target execution result includes: converting the execution result into execution data in a standard format according to an execution result conversion rule preset in the customized communication protocol; generating data to be encrypted according to the identification information of the target smart device and the execution data; and encrypting the data to be encrypted by using a second key to generate a target execution result.
[0014] By adopting the above technical solution, the execution results returned by the smart device are converted into execution data in a standard format through preset execution result conversion rules, and the data to be encrypted is generated in combination with the identification information of the target smart device, and then the second key is used to perform encryption processing to generate the target execution result. This not only realizes the unified formatting of the execution results of different smart devices, but also protects the transmission security of the execution data through the encryption mechanism, ensuring that the mobile terminal can accurately identify and securely receive the execution results from different smart devices.
[0015] Optionally, the data to be encrypted is encrypted using the second key to generate a target execution result, including: generating a first random number for data validity verification based on a preset random number generation rule; splicing the first random number with the data to be encrypted according to a preset splicing rule to obtain first data to be encrypted; performing a group encryption operation on the first data to be encrypted using the second key to obtain target encrypted data; combining the first random number and the target encrypted data according to a preset combination rule to generate the target execution result.
[0016] By adopting the above technical solution, a first random number is generated for data validity verification, and it is concatenated with the data to be encrypted according to preset rules for group encryption operation. Finally, the first random number is combined with the target encrypted data to generate the target execution result. This not only realizes the encryption protection of the execution data, but also enhances the validity verification mechanism of data transmission through the introduction of random numbers, so that the mobile terminal can promptly detect tampering and interference in the data transmission process, further improving the security and reliability of data transmission during the maintenance of smart lamp poles.
[0017] Optionally, sending the target execution result to the mobile terminal so that the mobile terminal decrypts and displays the target execution result includes: sending the target execution result to the mobile terminal according to a preset data transmission rule; receiving data reception confirmation information returned by the mobile terminal; when the data reception confirmation information indicates that the data is received successfully, sending a decryption key acquisition instruction to the mobile terminal; receiving key request information returned by the mobile terminal based on the decryption key acquisition instruction; obtaining a target decryption key from a preset key library according to the key request information, and sending the target decryption key to the mobile terminal, so that the mobile terminal uses the target decryption key to decrypt and display the target execution result.
[0018] By adopting the above technical solution, the target execution result is sent through the preset data transmission rules, and the decryption key is obtained and sent only after receiving the data reception confirmation from the mobile terminal, thus realizing the separation of data transmission and key distribution. The mechanism of obtaining the target decryption key from the key library only after the mobile terminal sends the key request information ensures the safe transmission of the decryption key and avoids the security risks that may be caused by the simultaneous transmission of the key and the encrypted data. This step-by-step verification and separate transmission method not only ensures the safe decryption and display of the target execution result, but also improves the reliability and confidentiality of data transmission during the maintenance of smart lamp poles.
[0019] In the second aspect, the present application provides a mobile-based smart lamp pole on-site maintenance system, the system comprising: a receiving module, a parsing module, a conversion module, an execution module and an output module; wherein the receiving module is used to receive the encrypted instructions sent by the mobile terminal based on a customized communication protocol after the mobile terminal is authenticated; the parsing module is used to decrypt the encrypted instructions, and parse the decrypted encrypted instructions according to the communication protocol to generate a parsing result; the conversion module is used to convert the parsing result into a target instruction in the communication protocol format corresponding to the target smart device, and send the target instruction to the target smart device, the target smart device is any one of the multiple smart devices; the execution module is used to receive the execution result sent by the target smart device, convert and encrypt the execution result according to the customized communication protocol to generate a target execution result; the output module is used to send the target execution result to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan based on the decrypted target execution result.
[0020] In a third aspect, the present application provides an electronic device, which adopts the following technical solution: it includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes a computer program such as any of the above-mentioned mobile-based smart lamp pole on-site maintenance methods.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned mobile-based smart lamp pole on-site maintenance methods.
[0022] In summary, the present application includes at least one of the following beneficial technical effects: After receiving the encrypted instructions from the mobile terminal, the smart gateway performs decryption and protocol conversion, and converts the parsing results into a communication protocol format recognizable by the target smart device, thus realizing unified control of different smart devices on the smart light pole. At the same time, the smart gateway encrypts the execution results returned by the target smart device before sending them to the mobile terminal, ensuring the security of maintenance data during transmission. In addition, the mobile terminal can generate an on-site maintenance plan based on the decrypted target execution results, which improves the pertinence and efficiency of maintenance work. This solution realizes secure communication and protocol adaptation between the mobile terminal and multiple smart devices through the smart gateway, and adopts an encryption protection mechanism during data transmission to effectively prevent maintenance data from being illegally intercepted and maliciously tampered with, thereby ensuring the safe operation of the smart light pole system. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of a system structure provided in an embodiment of the present application; Figure 2 It is a flowchart of a mobile-based on-site smart lamp pole maintenance method provided in an embodiment of the present application; Figure 3 It is a maintenance process flow chart provided by an embodiment of the present application; Figure 4 It is a structural schematic diagram of a mobile-based smart lamp pole on-site maintenance system provided in an embodiment of the present application; Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0024] Description of reference numerals: 1000, electronic device; 1001, processor; 1002, communication bus; 1003, user interface; 1004, network interface; 1005, memory. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0026] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.
[0027] like Figure 1 As shown, Figure 1 This is a schematic diagram of a system structure provided by an embodiment of the present application. The system consists of a smart light pole and a mobile terminal device. The smart light pole integrates intelligent lamps (including single lamp controllers), cameras, environmental / weather sensors, network sound columns, WiFi, one-click calls, LED large screens, charging piles, and intelligent gateways. Intelligent gateways are used for network connections of various intelligent devices in smart light poles. In this application, the intelligent gateway is used to communicate with mobile terminal devices, parse the communication data of devices from various manufacturers, and communicate with mobile terminal devices using customized communication protocols; mobile terminal devices refer to mobile phones or tablets with mobile terminal software installed.
[0028] Since the intelligent devices mounted on smart light poles come from different manufacturers and the protocols, standards and platforms adopted by these devices are different, the maintenance of smart light poles is very difficult. This application provides a mobile-based on-site maintenance method for smart light poles, which improves the work efficiency of on-site maintenance personnel, reduces the operation steps, and reduces the difficulty of maintenance.
[0029] The mobile terminal includes a connector, a data parser, and a device data display module that establishes a connection with the smart gateway. The connector is responsible for calling the Bluetooth module of the mobile device to establish a connection with the smart gateway for data transmission; the data parser processes raw data, such as encoding, decoding, encryption, and decryption. Raw data refers to data that is encoded and encrypted according to a custom protocol; the device data display module refers to a user interaction module, which is responsible for displaying data and issuing instructions from users.
[0030] In addition to the basic functions of a gateway, the smart gateway software also includes a connector and a converter. The connector is responsible for calling the smart gateway Bluetooth module to establish a connection with the mobile device and transmit data; the converter is responsible for converting between the customized protocol and the communication protocols of various manufacturers.
[0031] When a mobile device logs in to the smart gateway, it is necessary to enter a password for authentication. The smart city platform to which the smart gateway belongs generates the password required for the mobile device to log in to the smart gateway regularly and stores it in the smart gateway. When the maintenance personnel use the mobile device to log in to the smart gateway, they need to enter this password.
[0032] Specifically, a maintenance process includes one or more instructions, which can be roughly divided into query instructions, control instructions or configuration instructions. Query instructions refer to querying the operation information or parameter information of the intelligent equipment integrated in the smart light pole; control instructions refer to controlling the intelligent equipment integrated in the smart light pole, such as controlling the on / off and switching status of the intelligent equipment; configuration instructions refer to parameter configuration of the intelligent equipment integrated in the smart light pole.
[0033] In the customized communication protocol, universal definitions are made for the query instructions, control instructions, and configuration instructions required for various intelligent devices integrated in the smart lamp poles during maintenance. During the communication between the mobile device and the smart gateway, the smart gateway needs to convert the different communication protocols of each manufacturer into the customized protocol.
[0034] Figure 2 is a flow chart of a mobile-based smart lamp pole on-site maintenance method provided in an embodiment of the present application. Figure 2 As shown, the method includes S101-S105: S101, when the mobile terminal passes the authentication, receiving the encryption instruction sent by the mobile terminal based on the customized communication protocol.
[0035] In this embodiment, the encrypted instruction is a data packet generated by the mobile terminal after encoding and encrypting the maintenance instruction. In this embodiment, the mobile terminal first encodes the maintenance instruction (query instruction, control instruction or configuration instruction) input by the user according to the specification of the customized communication protocol. The encoded instruction data contains the identification information of the target smart device (used to distinguish different devices on the smart light pole) and specific control information (such as switch status, parameter configuration value, etc.).
[0036] To ensure the security of data transmission, the data parser on the mobile terminal will use a preset encryption algorithm to encrypt the encoded instruction data. The specific encryption process includes: first generating a random number for data validity verification, combining the random number with the encoded instruction data according to the preset splicing rules, and then using the encryption key to perform group encryption operations on the combined data to finally generate encrypted instructions. This encryption mechanism can prevent maintenance instructions from being illegally intercepted or tampered with during transmission.
[0037] For example, when maintenance personnel need to control the on / off status of smart lamps, the mobile terminal first generates instruction data containing the lamp device ID and the on / off control command, which may be encoded in the form of "Device_001_Light_ON" according to the customized communication protocol, and converted into unreadable ciphertext data after encryption, which is the final encrypted instruction. After receiving the encrypted instruction, the smart gateway will use the corresponding decryption key to decrypt it, restore the original control instruction, and then convert it into the protocol format of the corresponding device to perform specific operations.
[0038] Specifically, the smart city platform will periodically generate an authentication password and store it in the smart gateway. Maintenance personnel need to enter the authentication password when logging into the smart gateway through the mobile software. When the password entered by the mobile terminal matches the authentication password stored in the smart gateway, it indicates that the authentication is successful, and a trusted connection is established between the mobile terminal and the smart gateway. After the authentication is successful, the connector module on the mobile terminal calls the device Bluetooth module to establish a near-field communication connection with the smart gateway, realizing the data transmission channel between the mobile terminal and the smart gateway.
[0039] When the mobile terminal sends a maintenance instruction, the device data display module first receives the maintenance instruction input by the user. The maintenance instruction can be a query instruction, a control instruction, or a configuration instruction. Subsequently, the data parser on the mobile terminal encodes the maintenance instruction according to the customized communication protocol, and uses a preset encryption algorithm to encrypt the encoded instruction data to generate an encrypted instruction. This unified data format based on a customized communication protocol can effectively solve the problem of inconsistent device protocols from different manufacturers. At the same time, encrypting the instructions can prevent the data from being illegally intercepted and tampered with during the maintenance process, thereby ensuring the security of the smart light pole system.
[0040] When the encrypted instruction is generated, the connector on the mobile terminal sends the encrypted instruction to the smart gateway through the established Bluetooth communication connection. The connector module of the smart gateway receives the encrypted instruction and passes it to the subsequent processing module for decryption and protocol conversion. This method based on near-field Bluetooth communication allows maintenance personnel to complete equipment maintenance work on site without the need for an Internet connection, which improves maintenance efficiency and reduces the maintenance process's dependence on the network environment.
[0041] S102, decrypting the encrypted instruction, and parsing the decrypted encrypted instruction according to the communication protocol to generate a parsing result.
[0042] In this embodiment, after the intelligent gateway receives the encrypted instruction sent by the mobile terminal, it needs to decrypt and parse it to obtain the specific maintenance instruction content. Since the encrypted instruction contains the identification information and control information of the target smart device, which has been encrypted, it needs to be decrypted first before subsequent processing. The intelligent gateway uses the first key to decrypt the encrypted instruction to obtain the decrypted first instruction. Using key decryption can ensure that only a legitimate intelligent gateway can read the instruction content and prevent the instruction from being intercepted and used by illegal devices.
[0043] After decryption is completed, the intelligent gateway needs to verify whether the format of the first instruction complies with the specifications of the customized communication protocol. The intelligent gateway performs format verification on the first instruction according to the preset instruction format in the customized communication protocol. This format verification can ensure the integrity and validity of the instruction and avoid data errors that may occur during the decryption process. When the format verification passes, it indicates that the first instruction complies with the protocol specifications and can be subsequently parsed.
[0044] After confirming that the instruction format is valid, the smart gateway extracts the identification information and control information of the target smart device from the first instruction. Based on the extracted identification information, the smart gateway can determine the device type of the target smart device, such as a smart lamp, camera, or environmental sensor. The smart gateway obtains the target parsing rule corresponding to the device type from the preset correspondence between the device type and the parsing rule. Each device type has its own specific parsing rules, which define how to process the control information of the device of that type.
[0045] Subsequently, the intelligent gateway uses the target parsing rules to parse the extracted control information and convert the control information into data in a standard format as the final parsing result. This parsing result contains complete device operation information, which can be used for subsequent protocol conversion and instruction delivery. Through this standardized parsing process, the intelligent gateway can uniformly process device instructions from different manufacturers, improving the system's interoperability and maintenance efficiency.
[0046] Based on the above embodiment, as an optional implementation, in S102, the encrypted instruction is decrypted, and the decrypted encrypted instruction is parsed according to the communication protocol, and the generation of the parsing result specifically includes S21-S24: S21, decrypt the encrypted instruction using the first key to obtain a decrypted first instruction.
[0047] The specific decryption process firstly obtains the first key from the secure storage area by the security management module of the intelligent gateway. The storage of the first key adopts hardware encryption storage, which has high security and can prevent the key from being illegally read or tampered. When obtaining the first key, the security management module will perform a key integrity check to ensure that the key has not been damaged or replaced.
[0048] After obtaining the first key, the data parser of the intelligent gateway uses a preset decryption algorithm to decrypt the encrypted instruction. The decryption process first extracts the encrypted data and verification information from the encrypted instruction, and then uses the first key to perform a decryption operation on the encrypted data. The decryption operation uses a decryption algorithm corresponding to the encryption process, and restores the ciphertext to plaintext through multiple rounds of data transformation. After the decryption is completed, the data parser verifies the verification information of the decryption result to ensure the correctness of the decryption process.
[0049] The first instruction obtained after successful decryption contains complete maintenance instruction information, including the identification information of the target smart device and specific control commands. This decryption mechanism ensures the security of the maintenance instruction during transmission, because even if the encrypted instruction is intercepted by a third party, the real instruction content cannot be obtained without the correct first key. At the same time, the verification mechanism can promptly detect errors or tampering during data transmission, thereby improving the reliability of maintenance operations.
[0050] S22, performing format verification on the first instruction according to the instruction format preset in the customized communication protocol.
[0051] The data parser of the intelligent gateway first reads the instruction format definition of the customized communication protocol from the protocol rule library. These format definitions contain the basic structural specifications of the instruction, such as the instruction header identifier, device identifier field, instruction type field, and the length and position of the parameter field. The protocol rule library also stores the allowed value range and data type constraints of each field. These rules are used to ensure the validity of the instruction content.
[0052] The verification process starts with checking the basic structure of the first instruction. The data parser first verifies whether the instruction header identifier is correct. This identifier is used to distinguish different types of communication data. Then it checks whether the instruction length complies with the protocol to ensure the integrity of the instruction data. Then it verifies each field in the instruction one by one, including whether the format of the device identifier is correct, whether the instruction type is within the allowable range, and whether the parameter value meets the data type requirements. The data parser also checks the correlation between fields to ensure that the instruction parameters match the instruction type.
[0053] When any field in the first instruction is found to not meet the format requirements, the data parser will generate a corresponding error mark to mark the specific format problem. These error messages can help quickly locate the abnormal part of the instruction, facilitating troubleshooting and processing. Only when all fields pass the verification will the first instruction be marked as a valid instruction and allowed to enter the subsequent parsing process.
[0054] S23, when the format verification passes, extracting identification information and control information of the target smart device from the first instruction.
[0055] The data parser of the intelligent gateway first determines the location and length of the identification information and control information in the first instruction according to the data structure defined in the customized communication protocol. The identification information is usually located at the front of the instruction and contains data such as the device type code and device serial number that are used to uniquely identify the target intelligent device. The data parser accurately extracts these identification fields from the instruction data stream according to the preset byte order and length rules.
[0056] While extracting identification information, the data parser will verify the data validity to ensure that the extracted device identification is within the system preset device list range. This verification can prevent instructions from being sent to non-existent devices and improve the accuracy of maintenance operations. If it is found that the device identification is not within the valid range, the system will generate a corresponding error prompt to avoid abnormalities in the subsequent processing process.
[0057] Next, the data parser begins to extract control information. The control information is located in the data part of the instruction, and contains specific operation commands and parameter values. Depending on the type of instruction, the control information may include various types of data such as device switch status, operating parameters, and configuration data. The data parser uses preset data parsing rules to separate this information from the instruction data and perform appropriate format conversion based on the data type.
[0058] S24, generating a parsing result according to the identification information and the control information.
[0059] Based on the above embodiment, as an optional implementation, in S24, determining the device type of the target smart device according to the identification information specifically includes S241-S243: S241, acquiring a target parsing rule corresponding to the device type of the target smart device from a preset correspondence between the device type and the parsing rule.
[0060] S242, parsing the control information according to the target parsing rule.
[0061] S243, taking the parsed control information as the parsing result.
[0062] The data parser of the smart gateway first searches for the specific type of the target smart device from the preset device type database based on the extracted identification information. The device type database stores all device type information supported by the smart light pole system, and each type is associated with a specific parsing rule. This association is established based on the control characteristics and data format requirements of different devices, ensuring the pertinence and accuracy of the parsing process.
[0063] After obtaining the device type, the data parser retrieves the corresponding target parsing rules from the parsing rule library. The parsing rule library contains the control information parsing methods of various types of devices, such as parameter parsing format, value conversion rules, valid range verification, etc. For example, for smart lighting equipment, the target parsing rules may include the value range conversion of brightness parameters, dimming curve calculation, etc.; while for environmental monitoring equipment, the parsing rules may include the unit conversion of sensor data, threshold judgment, etc.
[0064] According to the acquired target parsing rules, the data parser begins to parse the control information. The parsing process first decomposes the control information according to the format defined by the rules and extracts the specific control parameters. These parameters are then converted and verified to ensure that they meet the actual control requirements of the device. For example, the brightness value in percentage form is converted to the actual control voltage value, or the temperature setting value is converted to the corresponding digital value. In this process, the parser will perform necessary numerical calculations and format conversions to ensure that the parsing results meet the control requirements of the device.
[0065] After the parsing process is completed, the data parser marks the processed control information as the final parsing result. This parsing result contains the converted and verified device control parameters, which can be directly used in the subsequent device control process. The format of the parsing result is unified and standardized, which is convenient for the control module of the smart gateway to process.
[0066] S103, converting the parsing result into a target instruction in a communication protocol format corresponding to the target smart device, and sending the target instruction to the target smart device, where the target smart device is any smart device among the multiple smart devices.
[0067] In this embodiment, since the smart light pole integrates intelligent devices from different manufacturers, these devices use different communication protocols, so it is necessary to convert the parsing results in a unified format into a proprietary protocol format that can be recognized by each target intelligent device. The converter module of the intelligent gateway is responsible for executing this protocol conversion process, realizing the conversion function between the customized communication protocol and the communication protocol of each manufacturer.
[0068] Specifically, the smart gateway first obtains the device identification of the target smart device from the parsing result, searches the pre-configured device information table based on the identification, and determines the manufacturer information and corresponding communication protocol type of the target smart device. The device information table stores the protocol conversion rules of all smart devices on the smart light pole, which define how to convert the parsing results in standard format into various proprietary protocol formats. For example, when the target smart device is a smart lamp, the converter will convert the control parameters in the parsing result into the manufacturer-specific instruction format according to the manufacturer's protocol specification of the smart lamp.
[0069] After the converter obtains the protocol conversion rules corresponding to the target intelligent device, it starts to execute the protocol conversion process. The conversion process includes steps such as instruction format conversion, parameter mapping and data encapsulation. In the instruction format conversion, the converter converts the operation type (query, control or configuration) in the parsing result into the corresponding instruction type in the target device protocol. The parameter mapping process is responsible for converting the parameter value in the standard format into the parameter format defined by the target device protocol. Finally, the converter encapsulates the converted instructions and parameters according to the protocol specifications of the target device to generate the target instruction.
[0070] After generating the target command, the smart gateway sends the target command to the target smart device through the preset communication interface. Since the smart gateway integrates multiple communication interfaces, it can support the communication requirements of different smart devices, such as RS485, CAN bus or Ethernet. The smart gateway will select the corresponding interface to send the command according to the communication method of the target smart device to ensure that the command can be accurately delivered and correctly executed by the target device.
[0071] Based on the above embodiment, as an optional implementation, in S103, converting the parsing result into a target instruction in a communication protocol format corresponding to the target smart device specifically includes S31-S32: S31, obtaining a target communication protocol corresponding to the target smart device.
[0072] S32, converting the parsing result into a target instruction according to the instruction conversion rule preset in the target communication protocol.
[0073] The converter module of the smart gateway first obtains the target communication protocol corresponding to the device from the protocol management library according to the identification information of the target smart device. The protocol management library stores the communication protocol information of various devices supported by the system, including protocol type, communication parameters, data format specifications, etc. These protocol information are based on the communication specifications provided by the device manufacturer, ensuring the standardization and accuracy of the conversion process. For example, some smart lighting devices may use the DALI protocol, while environmental monitoring devices may use the Modbus protocol. The system needs to select the correct protocol for conversion based on the device type.
[0074] After obtaining the target communication protocol, the converter reads the corresponding instruction conversion rules from the protocol conversion rule library. These conversion rules define how to map the parsing results in a unified format to the instruction format of a specific protocol, including instruction structure conversion, parameter mapping relationship, data format adjustment, etc. For example, for lighting devices using the DALI protocol, the conversion rules define how to convert standardized brightness control parameters into DALI instruction sequences; for Modbus devices, the control parameters need to be converted into corresponding register operation instructions.
[0075] The conversion process first builds the instruction framework according to the requirements of the target communication protocol, including basic elements such as the instruction header, address field, and function code. Then, according to the conversion rules, the control parameters in the parsing results are mapped to the corresponding positions of the instructions, and the necessary data format conversion is performed. In this process, the converter will perform operations such as value range adjustment, unit conversion, and checksum generation to ensure that the converted instructions meet the specification requirements of the target protocol.
[0076] After completing the command conversion, the converter will verify the integrity and validity of the generated target command to ensure that the conversion result meets the protocol specification. This verification includes command structure checking, parameter range verification, checksum verification, etc., which can promptly detect errors that may occur during the conversion process. If an abnormality is found, the system will generate a corresponding error prompt to avoid sending erroneous commands to the device.
[0077] S104, receiving the execution result sent by the target smart device, converting and encrypting the execution result according to the customized communication protocol, and generating a target execution result.
[0078] In this embodiment, in order to allow maintenance personnel to understand the execution status of smart devices in a timely manner, the smart gateway needs to convert the execution results returned by the target smart device into a format recognizable by the mobile terminal and return it. Since the execution result formats returned by smart devices from different manufacturers are different, they need to be unified into a standard format specified by the customized communication protocol through protocol conversion, and encrypted to ensure the security of data transmission.
[0079] Specifically, when the target smart device executes the maintenance instruction, it will return the execution result to the smart gateway through the preset communication interface. These execution results may include the operating status, configuration parameters or error information of the device. The converter module of the smart gateway first obtains the corresponding result conversion rules from the preset protocol conversion rule library according to the device identification of the target smart device. These conversion rules define how to convert the execution results in various proprietary formats into the standard format specified by the customized communication protocol.
[0080] The converter performs format conversion and data mapping on the execution results based on the obtained conversion rules. During the format conversion process, the converter extracts information such as status codes and parameter values from the execution results and reorganizes them according to the data structure of the customized communication protocol. For example, when the target smart device is a smart lamp, the brightness value returned may use a specific data format, and the converter will convert it into the standard brightness representation specified in the customized communication protocol. The data mapping process ensures that the parameter values between different devices can be uniformly represented, which is convenient for unified processing and display on the mobile terminal.
[0081] After completing the protocol conversion, the data parser of the intelligent gateway uses a preset encryption algorithm to encrypt the converted execution result. The encryption process includes generating a random number as a data check code, combining the check code with the converted execution result according to specific rules, and then using the encryption key to perform encryption operations on the combined data to finally generate the target execution result. This encryption mechanism ensures the security of the execution result during transmission and prevents the data from being illegally intercepted or tampered with.
[0082] Based on the above embodiment, as an optional implementation, in S104, the execution result is converted and encrypted according to the customized communication protocol, and the target execution result is generated, which specifically includes S41-S43: S41, converting the execution result into execution data in a standard format according to the execution result conversion rule preset in the customized communication protocol.
[0083] S42, generating data to be encrypted according to the identification information and execution data of the target smart device.
[0084] S43, encrypting the data to be encrypted by using the second key to generate a target execution result.
[0085] The data processing module of the intelligent gateway first converts the original execution results returned by the device into execution data in a standard format according to the execution result conversion rules preset in the customized communication protocol. This conversion is necessary because the execution result formats returned by different devices may be different, and they need to be uniformly converted to the standard format specified by the customized communication protocol to facilitate unified processing by the mobile terminal. The conversion rules define how to handle various types of execution results, including status code mapping, parameter format conversion, error information standardization, etc. For example, converting device-specific status codes into unified success / failure identifiers, converting parameter values in different units into standard units, and converting device-specific error descriptions into unified error codes.
[0086] After the conversion is completed, the data processing module combines the identification information of the target smart device with the execution data in a standard format to generate the data to be encrypted. The addition of identification information ensures the correspondence between the execution result and the specific device, making it easier for the mobile terminal to accurately identify the source of the result. The structure of the data to be encrypted complies with the specifications of the customized communication protocol and contains complete information such as device identification, execution time, execution status, and result parameters. This structured data format facilitates subsequent encryption processing and parsing verification.
[0087] The data processing module obtains the second key from the secure storage area and uses a preset encryption algorithm to encrypt the data to be encrypted. The use of the second key adopts an encryption mechanism paired with the mobile terminal to ensure that only a legitimate mobile terminal can decrypt the execution result. The encryption process includes steps such as data segmentation, key calculation, and checksum generation, and multiple encryptions are used to ensure data security. The selection of the encryption algorithm takes into account the balance between security and efficiency, ensuring sufficient security strength while maintaining good processing performance.
[0088] After the encryption process is completed, the system generates the final target execution result, which contains the encrypted data and necessary verification information. The format of the target execution result conforms to the specifications of the customized communication protocol and can be correctly received and processed by the mobile terminal. This encryption mechanism ensures the security of the execution result during transmission and prevents sensitive information from being leaked or tampered with.
[0089] Based on the above embodiment, as an optional implementation, in S43, encrypting the data to be encrypted by using the second key to generate the target execution result specifically includes S431-S434: S431, generating a first random number for data validity verification based on a preset random number generation rule.
[0090] S432, concatenate the first random number and the data to be encrypted according to a preset concatenation rule to obtain first data to be encrypted.
[0091] S433, performing a group encryption operation on the first data to be encrypted using the second key to obtain target encrypted data.
[0092] S434, combining the first random number and the target encrypted data according to a preset combination rule to generate a target execution result.
[0093] The security processing module of the intelligent gateway first calls the random number generator to generate the first random number based on the preset random number generation rule. This random number generation rule uses a cryptographically secure random algorithm to ensure that the generated random number has sufficient randomness and unpredictability. The length and format of the first random number meet the system security requirements and are used in the subsequent data verification process. The introduction of random numbers makes the encrypted data of each communication unique. Even if the execution result data is the same, the encryption result will be different each time it is transmitted, effectively preventing replay attacks.
[0094] Next, the security processing module splices the first random number with the data to be encrypted according to the preset splicing rules to generate the first data to be encrypted. The splicing rules define the positional relationship between the random number and the data, the padding method and other details to ensure that the spliced data structure meets the input requirements of the encryption algorithm. This splicing method introduces random factors into the data to be encrypted, increasing the complexity and unpredictability of the data. The splicing process also includes necessary data alignment and padding processing to meet the block size requirements of the block encryption algorithm.
[0095] The security processing module obtains the second key from the key management system and uses the key to perform group encryption operations on the first data to be encrypted. Group encryption uses an industry-recognized encryption algorithm, such as AES or SM4, to divide the first data to be encrypted into multiple data blocks for encryption according to the data block size. The encryption process of each data block follows strict cryptographic operations, including round key generation, data replacement, column obfuscation and other steps. The encryption process also uses an appropriate working mode, such as CBC or CTR mode, to further enhance the encryption strength. After the encryption operation is completed, the target encrypted data is obtained.
[0096] Finally, the security processing module combines the first random number with the target encrypted data according to the preset combination rules to generate the final target execution result. The combination rules specify the arrangement of the random number and the encrypted data in the result, format identification and other information. The random number is included in the result in plain text, which allows the recipient to use the same random number for data verification. The combination process also includes adding necessary format identification and verification information to ensure that the recipient can correctly parse and verify the data.
[0097] S105, sending the target execution result to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan according to the decrypted target execution result.
[0098] In this embodiment, in order for maintenance personnel to understand the execution status of smart devices in a timely manner and make corresponding maintenance decisions, the smart gateway needs to return the encrypted target execution results to the mobile terminal for processing and display. The smart gateway sends the target execution results to the connector module of the mobile terminal through the established Bluetooth communication connection. Due to the use of near-field Bluetooth communication, the real-time and reliability of data transmission is ensured, allowing maintenance personnel to quickly obtain device feedback on site.
[0099] When the mobile terminal receives the target execution result, the data parser first uses the preset decryption key to decrypt it. The decryption process includes verifying the validity of the data checksum to ensure that the received data has not been tampered with during transmission, and then using the decryption algorithm to restore the original execution result data. This decryption mechanism ensures that only authorized mobile terminals can read the specific content of the execution result, ensuring the security of the maintenance process.
[0100] After decryption is completed, the device data display module on the mobile terminal will present the execution results to the maintenance personnel in an intuitive way. The display content includes the device execution status (such as success, failure or abnormality), specific execution parameters (such as current operating parameters, configuration values, etc.) and possible abnormal information. This visual result display method enables maintenance personnel to quickly judge the operating status of the device and improve maintenance efficiency.
[0101] Based on the decrypted execution result data, the intelligent analysis module on the mobile terminal automatically performs fault diagnosis and generates maintenance suggestions. The intelligent analysis module first compares the execution result with the preset normal operating parameter range of the device to determine whether there is an abnormality. If an abnormality is found, the system will analyze the possible cause of the fault according to the preset fault diagnosis rules. For example, when the current parameter of the smart lamp exceeds the normal range, the system will determine that there may be problems such as short circuit or load abnormality.
[0102] Based on the above embodiment, as an optional implementation, in S105, sending the target execution result to the mobile terminal so that the mobile terminal decrypts and displays the target execution result specifically includes S51-S55: S51, sending the target execution result to the mobile terminal according to the preset data transmission rule.
[0103] S52, receiving data reception confirmation information returned by the mobile terminal.
[0104] S53: When the data reception confirmation information indicates that the data is received successfully, a decryption key acquisition instruction is sent to the mobile terminal.
[0105] S54, receiving key request information returned by the mobile terminal based on the decryption key acquisition instruction.
[0106] S55, obtaining a target decryption key from a preset key library according to the key request information, and sending the target decryption key to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result using the target decryption key.
[0107] The communication module of the intelligent gateway first sends the target execution result to the mobile terminal according to the preset data transmission rules. The transmission rules define key parameters such as the format of the data packet, the transmission protocol, and the retransmission mechanism to ensure the reliability of data transmission. The transmission process adopts the method of packet transmission. Each data packet contains the necessary sequence number and checksum information to facilitate the receiver to verify the data integrity. At the same time, the transmission rules also include timeout retransmission and error recovery mechanisms to deal with possible packet loss or delay problems in network transmission.
[0108] When the mobile terminal receives the execution result data, it will return data reception confirmation information. The communication module receives this confirmation information and parses it. The confirmation information contains information such as data reception status and verification results. If the confirmation information shows that the data has been completely received and the verification has passed, the next step of the key distribution process will be entered. This confirmation mechanism ensures the integrity of the execution result data and avoids decryption failures caused by data transmission problems.
[0109] After confirming that the data is received successfully, the communication module sends a decryption key acquisition instruction to the mobile terminal. This instruction contains the necessary security verification information to confirm the identity and authority of the mobile terminal. The purpose of this step is to establish a secure key exchange channel to ensure that the decryption key is only sent to the authorized mobile terminal. The key acquisition instruction is sent using an independent secure channel, which is separated from the transmission channel of the execution result data, thereby improving the security of key distribution.
[0110] After the mobile terminal receives the key acquisition instruction, it generates a key request message and returns it to the smart gateway. The communication module receives and verifies the request message, which contains security elements such as the mobile terminal's identity proof and permission token. After the verification is passed, the smart gateway retrieves the corresponding target decryption key from the preset key library. The key library adopts a secure storage mechanism to ensure that the key information will not be illegally accessed or leaked.
[0111] Finally, the communication module sends the target decryption key to the mobile terminal through a secure channel. Additional encryption protection is used during the key transmission process to ensure the security of the decryption key itself. After the mobile terminal receives the decryption key, it can use the key to decrypt the previously received execution result data and display the decrypted result to the maintenance personnel for review.
[0112] Figure 3 is a maintenance process flow chart provided in an embodiment of the present application. Figure 3The complete process of remote maintenance of smart lamp poles based on mobile terminals is demonstrated. The process starts with the establishment of a connection between the mobile terminal and the smart gateway, and goes through the entire process of identity authentication, command transmission, protocol conversion, device control, and result feedback.
[0113] The specific process is as follows: First is the access process of the mobile terminal, including establishing a connection with the smart gateway and completing login authentication to ensure that the operator has legal access rights.
[0114] After completing the authentication, the mobile terminal generates and sends instructions based on the maintenance personnel's operations. After receiving these instructions, the smart gateway will perform protocol conversion processing and convert the instructions into a format that the target device can recognize. The converted instructions are sent to the corresponding smart device for execution.
[0115] When the smart device executes the command, the smart gateway receives the execution result and returns the result to the mobile terminal. The mobile terminal parses and displays the execution result after receiving it. If the maintenance personnel determines that other commands need to be sent based on the displayed results, the process will return to the command sending step, otherwise the process ends.
[0116] This process fully demonstrates the system's two-way communication capabilities and protocol conversion mechanism, ensuring the accuracy and reliability of maintenance operations. The security mechanism and protocol adaptation capabilities throughout the process enable the system to complete various maintenance tasks safely and efficiently, while providing good compatibility for the access of different types of equipment.
[0117] Based on the above method, the present application also discloses a mobile-based smart lamp pole on-site maintenance system, such as Figure 4 As shown, Figure 4 : is a structural diagram of a mobile-based smart lamp pole on-site maintenance system provided in an embodiment of the present application. The system includes: a receiving module, a parsing module, a conversion module, an execution module and an output module; wherein: A receiving module is used to receive encrypted instructions sent by the mobile terminal based on a customized communication protocol after the mobile terminal is authenticated; a parsing module is used to decrypt the encrypted instructions and parse the decrypted encrypted instructions according to the communication protocol to generate a parsing result; a conversion module is used to convert the parsing result into a target instruction in the communication protocol format corresponding to the target smart device, and send the target instruction to the target smart device, which is any smart device among multiple smart devices; an execution module is used to receive the execution result sent by the target smart device, convert and encrypt the execution result according to the customized communication protocol to generate a target execution result; an output module is used to send the target execution result to the mobile terminal so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan based on the decrypted target execution result.
[0118] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0119] See also Figure 5 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0120] The communication bus 1002 is used to realize the connection and communication between these components.
[0121] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0122] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0123] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0124] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a mobile-based on-site smart lamp pole maintenance method.
[0125] exist Figure 5In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call an application program stored in the memory 1005 for a mobile-based smart lamp pole on-site maintenance method. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.
[0126] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more of the methods described in the above embodiments.
[0127] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0128] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0129] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0133] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A mobile-based smart lamp pole on-site maintenance method, characterized in that: Applied to a smart gateway, the smart gateway is respectively connected to a mobile terminal and multiple smart devices on a smart lamp pole, and the method includes: When the mobile terminal passes the authentication, receiving the encrypted instruction sent by the mobile terminal based on the customized communication protocol; Decrypting the encrypted instruction, and parsing the decrypted encrypted instruction according to the communication protocol to generate a parsing result; Converting the parsing result into a target instruction in a communication protocol format corresponding to a target smart device, and sending the target instruction to the target smart device, where the target smart device is any smart device among the multiple smart devices; Receiving the execution result sent by the target smart device, converting and encrypting the execution result according to the customized communication protocol, and generating a target execution result; The target execution result is sent to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan according to the decrypted target execution result.
2. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 1 is characterized in that: The decrypting the encrypted instruction and parsing the decrypted encrypted instruction according to the communication protocol to generate a parsing result includes: Decrypting the encrypted instruction using a first key to obtain a decrypted first instruction; Performing format verification on the first instruction according to an instruction format preset in the customized communication protocol; When the format verification passes, extracting identification information and control information of the target smart device from the first instruction; A parsing result is generated according to the identification information and the control information.
3. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 2 is characterized in that: The generating of the parsing result according to the identification information and the control information includes: Determine the device type of the target smart device according to the identification information; Obtaining a target parsing rule corresponding to the device type of the target smart device from a preset correspondence between the device type and the parsing rule; Parsing the control information according to the target parsing rule; The control information after the analysis is used as the analysis result.
4. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 1 is characterized in that: The step of converting the parsing result into a target instruction in a communication protocol format corresponding to the target smart device includes: Obtain the target communication protocol corresponding to the target smart device; The parsing result is converted into the target instruction according to the instruction conversion rule preset in the target communication protocol.
5. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 1 is characterized in that: The step of converting and encrypting the execution result according to the customized communication protocol to generate a target execution result includes: According to the execution result conversion rules preset in the customized communication protocol, the execution result is converted into execution data in a standard format; Generate data to be encrypted according to the identification information of the target smart device and the execution data; The data to be encrypted is encrypted using a second key to generate a target execution result.
6. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 5 is characterized in that: The encrypting the data to be encrypted by using the second key to generate a target execution result includes: Generate a first random number for data validity verification based on a preset random number generation rule; splicing the first random number and the data to be encrypted according to a preset splicing rule to obtain first data to be encrypted; Performing a group encryption operation on the first data to be encrypted using the second key to obtain target encrypted data; The first random number is combined with the target encrypted data according to a preset combination rule to generate the target execution result.
7. The mobile terminal-based on-site smart lamp pole maintenance method according to claim 1, characterized in that: The step of sending the target execution result to the mobile terminal so that the mobile terminal decrypts and displays the target execution result includes: Sending the target execution result to the mobile terminal according to a preset data transmission rule; Receiving data reception confirmation information returned by the mobile terminal; When the data reception confirmation information indicates that the data is received successfully, sending a decryption key acquisition instruction to the mobile terminal; Receiving key request information returned by the mobile terminal based on the decryption key acquisition instruction; A target decryption key is obtained from a preset key library according to the key request information, and the target decryption key is sent to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result using the target decryption key.
8. The mobile-based smart lamp pole on-site maintenance system is characterized by: The system includes: a receiving module, a parsing module, a conversion module, an execution module and an output module; wherein, The receiving module is used to receive the encrypted instruction sent by the mobile terminal based on the customized communication protocol after the mobile terminal passes the authentication; The parsing module is used to decrypt the encrypted instruction and parse the decrypted encrypted instruction according to the communication protocol to generate a parsing result; The conversion module is used to convert the analysis result into a target instruction in a communication protocol format corresponding to a target smart device, and send the target instruction to the target smart device, where the target smart device is any smart device among the multiple smart devices; The execution module is used to receive the execution result sent by the target smart device, convert and encrypt the execution result according to the customized communication protocol, and generate a target execution result; The output module is used to send the target execution result to the mobile terminal, so that the mobile terminal decrypts and displays the target execution result, and generates an on-site maintenance plan according to the decrypted target execution result.
9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Gateway system of multifunctional pole, and multifunction pole
CN109361594A
Gateway system based on power line communication
CN113141198A
Internet of things gateway data transmission method and device, server, client and storage medium
WO2023226277A1