Parking lock communication management method, device and computer equipment based on license plate recognition
By parsing and converting the communication protocols of multiple devices, the compatibility and integration of parking space locks and sensors are achieved, which solves the resource waste problem caused by device incompatibility in the existing technology and improves the automation and efficiency of the parking management system.
Patent Information
- Application Number
- CN202410819380.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When the existing parking management system promotes parking space management technology based on license plate recognition, it is necessary to remove the existing parking space locks and cameras and reinstall unified standard equipment, resulting in a waste of resources and increased promotion costs and time.
By obtaining the communication protocols of multiple parking space locks and sensors, it parses and generates a unified target communication protocol to achieve interconnection between different devices, avoid the dismantling and reinstallation of equipment, and directly integrate into a unified management platform.
It achieves seamless integration of parking space locks and sensors of different brands and models, reduces promotion costs and time, improves the automation of the parking management system, improves the efficiency of urban parking resources, and solves parking problems.
Smart Images

Figure CN118400442B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a parking lock communication management method, device, computer equipment and storage medium based on license plate recognition. Background Art
[0002] With the acceleration of urbanization and the sharp increase in the number of motor vehicles, the problem of parking difficulties has become increasingly serious and has become a major problem in the lives of urban residents. In order to effectively manage parking resources and improve the efficiency of parking space use, intelligent parking management systems have emerged. These systems usually rely on license plate recognition technology to manage the use rights and status of parking spaces by automatically identifying the vehicle's license plate information.
[0003] However, in the actual promotion process, it was found that the existing equipment conditions of parking lots were complex and diverse. Some parking lots have installed smart parking locks, which usually rely on users to control the switch through mobile phone apps, and are not integrated with license plate recognition systems. Other parking lots have installed license plate recognition cameras to record and identify vehicle information, but are not equipped with smart parking locks. In addition, some parking lots are equipped with both license plate recognition cameras and parking locks, but there is no interconnection between the two, forming an information island and unable to achieve unified management of the system.
[0004] In order to promote the parking space management technology based on license plate recognition, it is usually necessary to remove the existing parking space locks and reinstall the cameras and control systems of unified standards. This not only increases the cost and time of promotion, but also causes a lot of waste of resources. Therefore, there is no solution to the problem of waste of resources caused by removing the existing parking space locks and cameras in order to apply new technologies (managing the use rights and status of parking spaces by automatically identifying the license plate information of vehicles) in the existing parking management system. Summary of the invention
[0005] The main purpose of the present invention is to provide a parking lock communication management method, device, computer equipment and storage medium based on license plate recognition to solve the problem of waste of resources caused by the removal of existing parking locks and cameras in the existing parking management system in order to apply new technologies.
[0006] To achieve the above-mentioned purpose, the present invention provides a parking lock communication management method based on license plate recognition, comprising: obtaining a first communication protocol of multiple parking locks and a second communication protocol of multiple sensors; parsing and processing the first communication protocol of the multiple parking locks and the second communication protocol of the multiple sensors to obtain the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors; generating a unified target communication protocol based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, wherein the target communication protocol at least includes: a data packet format, a transmission mode and an encryption mode; and, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, converting and processing the differences between the first communication protocol of the multiple parking locks, the second communication protocol of the multiple sensors and the target communication protocol to obtain a protocol conversion algorithm; obtaining an initial data packet sent by the parking lock and / or an initial data packet sent by the sensor, parsing and converting the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and sending the target data packet to a parking management cloud platform in the manner of the target communication protocol.
[0007] Furthermore, the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors are obtained, including: classifying the models of the multiple parking locks to obtain parking lock model classification results, and classifying the models of the multiple sensors to obtain sensor model classification results; extracting the communication protocol of each parking lock model to obtain the communication protocol of each parking lock, and extracting the communication protocol of each sensor model to obtain the communication protocol of each sensor.
[0008] Furthermore, after obtaining the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors, the parking lock communication management method also includes: performing version identification processing on the communication protocol of each parking lock to obtain the parking lock communication protocol version, and performing version identification processing on the communication protocol of each sensor to obtain the sensor communication protocol version; parsing processing on the communication protocol version of each parking lock to obtain the parking lock communication protocol parameters, and parsing processing on the communication protocol version of each sensor to obtain the sensor communication protocol parameters; storing processing on the parking lock communication protocol parameters to obtain the parking lock communication protocol database, and storing processing on the sensor communication protocol parameters to obtain the sensor communication protocol database.
[0009] Furthermore, the first communication protocols of the various parking locks and the second communication protocols of the various sensors are parsed and processed to obtain the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, including: reading and processing the data in the parking lock communication protocol database to obtain the parking lock protocol data, and reading and processing the data in the sensor communication protocol database to obtain the sensor protocol data; performing field parsing processing on the parking lock protocol data to obtain a parking lock protocol target field combination, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination; parsing and processing the field structure of the parking lock protocol target field combination to obtain a parking lock protocol field combination structure, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination. The field structure is parsed to obtain a sensor protocol field combination structure; each field in the parking lock protocol field combination structure is analyzed to determine the format of each field to obtain a parking lock protocol format, and each field in the sensor protocol field combination structure is analyzed to determine the format of each field to obtain a sensor protocol format; key feature information is extracted from the parking lock protocol format, and the importance of each field in the parking lock protocol field combination structure is identified and marked based on the key feature information to obtain the parking lock proprietary protocol feature; and key feature information is extracted from the sensor protocol format, and the importance of each field in the sensor protocol field combination structure is identified and marked based on the key feature information to obtain the sensor proprietary protocol feature.
[0010] Further, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, including: performing data type analysis on each field in the proprietary protocol features of the parking lock to determine the data type of each field corresponding to the parking lock, and performing data type analysis on each field in the proprietary protocol features of the sensor to determine the data type of each field corresponding to the sensor; determining the format of the parking lock data packet based on the data type of each field corresponding to the parking lock, and determining the format of the sensor data packet based on the data type of each field corresponding to the sensor, wherein the data packet format at least includes: the arrangement order of each field and the byte length of each field; determining a transmission mode that matches the format of the parking lock data packet as the parking lock transmission mode of the parking lock data packet, and determining a transmission mode that matches the format of the sensor data packet as the sensor transmission mode of the sensor data packet; integrating the format of the parking lock data packet and the parking lock transmission mode of each parking lock, and the format of the sensor data packet and the sensor transmission mode of each sensor, to obtain the target communication protocol.
[0011] Further, based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol are converted to obtain a protocol conversion algorithm, including: comparing the proprietary protocol features of the parking locks with the target communication protocol, determining the protocol differences between the proprietary protocol features of the parking locks and the target communication protocol, and obtaining a parking lock protocol difference; comparing the proprietary protocol features of the sensors with the target communication protocol, determining the protocol differences between the proprietary protocol features of the sensors and the target communication protocol, and obtaining to the sensor protocol difference; according to the parking lock protocol difference, a parking lock conversion rule is generated to convert the data packet format of the parking lock into the data packet format of the target communication protocol; according to the sensor protocol difference, a sensor conversion rule is generated to convert the data packet format of the sensor into the data packet format of the target communication protocol, wherein the conversion rule at least includes: a data structure conversion relationship, a data type conversion relationship and a field mapping relationship; algorithm modeling is performed on the parking lock conversion rule and the sensor conversion rule to obtain an initial protocol conversion algorithm, and code optimization is performed on the initial conversion algorithm to obtain the final protocol conversion algorithm.
[0012] Furthermore, based on the proprietary protocol characteristics of the multiple parking locks and the proprietary protocol characteristics of the multiple sensors, the differences between the first communication protocols of the multiple parking locks, the second communication protocols of the multiple sensors and the target communication protocol are converted to obtain a protocol conversion algorithm. The parking lock communication management method also includes: obtaining an instruction data packet sent by the parking management cloud platform; parsing and converting the instruction data packet based on the protocol conversion instruction, and sending the parsed and converted instruction data packet to the target device corresponding to the instruction data packet, wherein the target device includes: a parking lock device or a sensor device.
[0013] The present invention also provides a parking lock communication management device based on license plate recognition, comprising: an acquisition unit, used to acquire a first communication protocol of a plurality of parking locks and a second communication protocol of a plurality of sensors; a parsing unit, used to parse and process the first communication protocol of the plurality of parking locks and the second communication protocol of the plurality of sensors to obtain the proprietary protocol features of the plurality of parking locks and the proprietary protocol features of the plurality of sensors; a generating unit, used to generate a unified target communication protocol based on the proprietary protocol features of the plurality of parking locks and the proprietary protocol features of the plurality of sensors, wherein the target communication protocol at least includes: a data packet format, a transmission mode and an encryption mode; a conversion unit, used to convert and process the differences between the first communication protocol of the plurality of parking locks, the second communication protocol of the plurality of sensors and the target communication protocol based on the proprietary protocol features of the plurality of parking locks and the proprietary protocol features of the plurality of sensors to obtain a protocol conversion algorithm; a sending unit, used to acquire an initial data packet sent by the parking lock and / or an initial data packet sent by the sensor, and parse and convert the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and send the target data packet to the parking management cloud platform in the manner of the target communication protocol.
[0014] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0015] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0016] The parking lock communication management method, device, computer equipment and storage medium based on license plate recognition provided by the present invention first obtain the first communication protocol of multiple parking locks and the second communication protocol of multiple sensors. This step lays the foundation for subsequent protocol analysis and conversion by collecting and recording the communication protocols used by different types of parking locks and sensors. By comprehensively collecting these protocols, compatibility with multiple devices on the market can be ensured, thereby achieving wide applicability. Next, the first communication protocol of the multiple parking locks and the second communication protocol of the multiple sensors are analyzed and processed to obtain the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors. The analysis protocol helps to understand the communication details of each device, including data packet format, transmission mode and encryption mode. This step provides necessary information support for the subsequent generation of a unified target communication protocol by deeply analyzing the protocol features. Based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, wherein the target communication protocol at least includes: data packet format, transmission mode and encryption mode. The unified target communication protocol can standardize the data exchange between different devices, ensure that parking locks and sensors of different brands and models can communicate with each other, and eliminate information islands. Subsequently, based on the proprietary protocol characteristics of the various parking locks and the proprietary protocol characteristics of the various sensors, the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol are converted to obtain a protocol conversion algorithm. Through the protocol conversion algorithm, the initial data packets of different devices can be converted into data packets that comply with the target communication protocol, ensuring that all devices can be seamlessly integrated into a unified management platform. Finally, the initial data packet sent by the parking lock and / or the initial data packet sent by the sensor is obtained, and the initial data packet is parsed and converted based on the protocol conversion algorithm to obtain the target data packet, and the target data packet is sent to the parking management cloud platform in the target communication protocol. This step ensures that the data sent by different devices can be correctly received and processed, and ultimately achieves unified management.
[0017] In general, the entire technical solution achieves compatibility and integration of existing parking locks and sensors by parsing and converting the communication protocols of multiple devices, avoiding the waste of resources caused by dismantling and reinstalling equipment. This method not only reduces the promotion cost and time, improves the automation level of the parking management system, but also provides a good foundation for future technical updates and expansions. In this way, the efficiency of urban parking resources can be effectively improved and parking problems can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of the steps of a parking lock communication management method based on license plate recognition in one embodiment of the present invention;
[0019] Figure 2 It is a structural block diagram of a parking lock communication management device based on license plate recognition in one embodiment of the present invention;
[0020] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0021] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0023] It should be noted that the existing intelligent parking management system usually relies on license plate recognition technology to manage the use rights and status of parking spaces by automatically identifying the license plate information of vehicles, thereby achieving efficient use and dynamic management of parking spaces. It uses license plate recognition technology to realize automatic identification and recording of vehicles entering and leaving the parking lot, greatly improving the efficiency of parking management. However, in the actual promotion process, it is found that the existing equipment conditions of parking lots are complex and diverse, which brings great challenges to unified management. Some parking lots have installed intelligent parking locks, which usually rely on users to control the switch through mobile phone APPs, but are not integrated with license plate recognition systems. This means that although users can conveniently control the parking locks through mobile phone APPs, the system cannot automatically identify the vehicle's license plate information, and thus cannot achieve fully automated parking management. Other parking lots are equipped with license plate recognition cameras for recording and identifying vehicle information, but are not equipped with intelligent parking locks. In this case, although the system can automatically identify and record the information of vehicles entering and leaving the parking lot, it cannot control the use status of the parking space, and manual intervention is required to manage the switch of the parking space. In addition, some parking lots are equipped with license plate recognition cameras and parking locks at the same time, but there is no interconnection between the two, forming an information island. Although each of these devices has certain intelligent functions, due to the lack of unified communication protocols and standards, data intercommunication and unified management of the system cannot be achieved, which affects the overall management efficiency. In order to promote the parking space management technology based on license plate recognition, it is usually necessary to remove the existing parking space locks and reinstall the cameras and control systems of unified standards. This not only increases the cost and time of promotion, but also causes a lot of waste of resources. The removal and reinstallation of equipment not only requires a lot of manpower and material resources, but also interferes with the normal operation of the parking lot. Therefore, there is no effective solution to the problem of waste of resources caused by the removal of existing parking space locks and cameras in order to apply new technologies (managing the use rights and status of parking spaces by automatically identifying the license plate information of vehicles).
[0024] In this context, it is particularly important to propose a new parking lock communication management method based on license plate recognition. This method should be compatible with various existing parking locks and license plate recognition camera devices, eliminate information islands, achieve unified management and interoperability of the system, and avoid the waste of resources caused by dismantling and reinstalling equipment. This will not only help reduce the promotion cost and time of the system, but also improve the automation of the parking management system, improve the efficiency of urban parking resources, and solve parking problems. At the same time, the method should also have good scalability, providing a solid foundation for future technology updates and system upgrades.
[0025] To this end, the embodiment of the present invention provides a parking lock communication management method based on license plate recognition, referring to Figure 1 , specifically including the following steps:
[0026] S1, obtaining first communication protocols of multiple parking locks and second communication protocols of multiple sensors.
[0027] S2, parsing the first communication protocols of the various parking locks and the second communication protocols of the various sensors to obtain proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors.
[0028] S3, generating a unified target communication protocol based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, wherein the target communication protocol at least includes: a data packet format, a transmission method, and an encryption method.
[0029] S4, based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, convert the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol to obtain a protocol conversion algorithm.
[0030] S5, obtaining the initial data packet sent by the parking lock and / or the initial data packet sent by the sensor, and parsing and converting the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and sending the target data packet to the parking management cloud platform in the target communication protocol.
[0031] That is, first, obtain the first communication protocol of multiple parking locks and the second communication protocol of multiple sensors. This step lays the foundation for subsequent protocol analysis and conversion by collecting and recording the communication protocols used by different types of parking locks and sensors. By comprehensively collecting these protocols, compatibility with multiple devices on the market can be ensured, thereby achieving wide applicability. Next, the first communication protocol of the multiple parking locks and the second communication protocol of the multiple sensors are parsed and processed to obtain the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors. Parsing the protocol helps to understand the communication details of each device, including data packet format, transmission mode and encryption mode. This step provides necessary information support for the subsequent generation of a unified target communication protocol by deeply parsing the protocol features. Based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, wherein the target communication protocol at least includes: data packet format, transmission mode and encryption mode. The unified target communication protocol can standardize data exchange between different devices, ensure that parking locks and sensors of different brands and models can communicate and interconnect, and eliminate information islands. Subsequently, based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol are converted to obtain a protocol conversion algorithm. Through the protocol conversion algorithm, the initial data packets of different devices can be converted into data packets that comply with the target communication protocol, ensuring that all devices can be seamlessly integrated into a unified management platform. Finally, the initial data packet sent by the parking lock and / or the initial data packet sent by the sensor is obtained, and the initial data packet is parsed and converted based on the protocol conversion algorithm to obtain the target data packet, and the target data packet is sent to the parking management cloud platform in the target communication protocol. This step ensures that the data sent by different devices can be correctly received and processed, and ultimately unified management is achieved.
[0032] In general, the entire technical solution achieves compatibility and integration of existing parking locks and sensors by parsing and converting the communication protocols of multiple devices, avoiding the waste of resources caused by dismantling and reinstalling equipment. This method not only reduces the promotion cost and time, improves the automation level of the parking management system, but also provides a good foundation for future technical updates and expansions. In this way, the efficiency of urban parking resources can be effectively improved and parking problems can be solved.
[0033] For example, suppose a parking lot in a large shopping mall has complex and diverse equipment: some parking spaces are equipped with smart parking locks, which rely on users to control the switch through mobile phone APP, and some parking spaces are equipped with license plate recognition cameras to record and identify vehicle information, but are not equipped with smart parking locks. Some parking spaces are equipped with both license plate recognition cameras and parking locks, but there is no interconnection between the two, forming information islands. First, the system will obtain the first communication protocol of multiple parking locks and the second communication protocol of multiple sensors. For example, smart parking locks and license plate recognition cameras of different brands and models installed in the parking lot each have their own communication protocols. By collecting the communication protocols of these devices, the system can understand how these devices transmit and communicate data. Then, the system parses these communication protocols to obtain the proprietary protocol features of each device. For example, smart parking locks of different brands may have different data packet formats, transmission methods, and encryption methods. Through parsing, the system can accurately identify these protocol features and understand the specific communication requirements of each device. Then, based on the proprietary protocol features obtained by parsing, the system generates a unified target communication protocol. This target communication protocol specifies the standard data packet format, transmission method, and encryption method. For example, all devices need to package data in a unified format and use the same transmission method and encryption standard to achieve unified management and control. Subsequently, based on these protocol features, the system converts the differences between the communication protocol of the existing devices and the target communication protocol to obtain a protocol conversion algorithm. For example, if the format of the data packet sent by a smart parking lock is inconsistent with the target communication protocol, the system will convert these data packets into a format that conforms to the target communication protocol through a protocol conversion algorithm to ensure that the data can be correctly transmitted and received. Finally, the system obtains the initial data packets sent by the parking lock and sensor, parses and converts these data packets based on the protocol conversion algorithm, obtains the target data packet that conforms to the target communication protocol, and sends it to the parking management cloud platform. For example, after a license plate recognition camera recognizes a vehicle, it sends an initial data packet, which the system parses and converts into a target data packet, and then transmits to the cloud platform for further processing and management. In this way, all smart parking locks and license plate recognition cameras of different brands and models in the parking lot can be seamlessly integrated into a unified management system. This not only avoids the waste of resources for dismantling and reinstalling equipment, but also realizes the automation and efficiency of the parking management system. Ultimately, shopping mall parking lots will be able to better manage parking resources, improve the efficiency of parking space utilization, and provide customers with a more convenient parking experience.
[0034] In one example, first communication protocol data of multiple parking locks and second communication protocol data of multiple sensors are obtained, including: classifying the models of the multiple parking locks to obtain parking lock model classification results, and classifying the models of the multiple sensors to obtain sensor model classification results; extracting the communication protocol of each parking lock model to obtain the communication protocol of each parking lock, and extracting the communication protocol of each sensor model to obtain the communication protocol of each sensor.
[0035] In this example, the acquisition, parsing and conversion of the communication protocols of various parking locks and sensors are realized through detailed steps. First, the system classifies the various parking locks installed in the parking lot and obtains the classification results of different parking lock models. At the same time, the system classifies the various sensors and obtains the classification results of sensor models. Through this classification process, the system can accurately identify the models of various devices in the parking lot, which is convenient for subsequent protocol extraction. Next, the system extracts the communication protocol for each parking lock model to obtain the communication protocol of each parking lock. Similarly, the system also extracts the communication protocol for each sensor model to obtain the communication protocol of each sensor. Through these steps, the system can fully grasp the communication protocol information of all parking locks and sensors in the parking lot, including details such as data packet format, transmission method and encryption method. Then, the system parses these extracted communication protocols to obtain the proprietary protocol features of each parking lock and sensor. The results of the parsing process enable the system to understand the communication characteristics and requirements of each device in detail, providing the necessary information support for the subsequent generation of a unified target communication protocol. Based on these proprietary protocol features, the system generates a unified target communication protocol. This target communication protocol standardizes the data packet format, transmission mode and encryption mode of all devices, ensuring that parking locks and sensors of different brands and models can communicate and interconnect on the same platform to avoid the formation of information islands. On this basis, the system converts the differences between the first communication protocol of the parking lock and the second communication protocol of the sensor and the target communication protocol to obtain a protocol conversion algorithm. This conversion algorithm can convert the initial data packets of different devices into data packets that conform to the target communication protocol, ensuring that all devices can be seamlessly integrated into a unified management system. Finally, the system obtains the initial data packets sent by the parking lock and the sensor, and parses and converts these data packets based on the protocol conversion algorithm to obtain target data packets that conform to the target communication protocol, and then sends these target data packets to the parking management cloud platform. This step ensures that the data sent by different devices can be correctly received and processed, and unified management of the system is realized. Through the above steps, the present invention effectively solves the problems of device incompatibility and resource waste in the existing parking management system. The system realizes the seamless integration of multiple devices in the parking lot by classifying, extracting, parsing and converting the communication protocols of different devices, avoiding the waste of resources and cost increase caused by dismantling and reinstalling equipment. Finally, the technical solution of the present invention not only improves the automation and efficiency of the parking management system, but also provides a good foundation for future technical updates and expansions. In this way, the efficiency of urban parking resources is significantly improved, providing users with a more convenient parking experience.
[0036] For example, suppose a parking lot in a large shopping mall is equipped with multiple brands of smart parking locks and license plate recognition sensors. These devices have different communication protocols due to different brands and models. First, the system classifies the parking locks in the parking lot, such as classifying the common parking locks of brands A, B, and C on the market, and obtains the classification results of parking lock models. Similarly, the system classifies the license plate recognition sensors in the parking lot, classifies the sensors of brands X, Y, and Z, and obtains the classification results of sensor models. Next, the system extracts the communication protocol for each parking lock model. For example, for brand A parking locks, extract its communication protocol, including details such as data packet format, transmission method, and encryption method. Then, similar communication protocol extraction is performed on brand B and brand C parking locks, and finally the detailed communication protocol of each parking lock is obtained. The same steps also apply to sensors. The system extracts the communication protocol of brand X sensors, and then extracts the communication protocol of brand Y and brand Z sensors, and obtains the detailed communication protocol of each sensor. Through these steps, the system can fully grasp the communication protocol information of all parking locks and sensors in the parking lot. For example, brand A parking locks use a specific data packet format and transmission method, while brand X sensors may use another data packet format and encryption method. By classifying and extracting communication protocols, the system can understand the communication characteristics and requirements of these devices in detail. This process ensures that the system can accurately identify and process the communication protocols of different devices in the parking lot, laying the foundation for subsequent protocol parsing and unified management. In this way, the system can integrate devices of different brands and models into a unified management platform, realize seamless communication and data exchange between parking locks and sensors, and improve the automation and efficiency of parking management. In this way, not only can the waste of resources caused by the removal and reinstallation of equipment be avoided, but also the existing resources can be better utilized, the level of intelligent parking management can be improved, and users can be provided with a more efficient and convenient parking experience.
[0037] In one example, after obtaining the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors, the parking lock communication management method also includes: performing version identification processing on the communication protocol of each parking lock to obtain the parking lock communication protocol version, and performing version identification processing on the communication protocol of each sensor to obtain the sensor communication protocol version; parsing processing on the communication protocol version of each parking lock to obtain the parking lock communication protocol parameters, and parsing processing on the communication protocol version of each sensor to obtain the sensor communication protocol parameters; storing processing on the parking lock communication protocol parameters to obtain the parking lock communication protocol database, and storing processing on the sensor communication protocol parameters to obtain the sensor communication protocol database.
[0038] In this example, after obtaining the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors, the parking lock communication management method further includes the following steps. First, the communication protocol of each parking lock is processed for version identification to obtain the parking lock communication protocol version. This step ensures that the system can identify the communication protocol version used by each parking lock, thereby providing an accurate basis for subsequent parsing. Similarly, the communication protocol of each sensor is processed for version identification to obtain the sensor communication protocol version, so that the system can understand the specific protocol version of each sensor and ensure accurate parsing of the data. Next, the communication protocol version of each parking lock is parsed to obtain the parking lock communication protocol parameters. Through the parsing process, the system can extract the key parameters in each parking lock protocol, such as data packet format, transmission mode and encryption mode, etc. These parameters are the basis for realizing communication protocol conversion and unified management. Similarly, the communication protocol version of each sensor is parsed to obtain the communication protocol parameters of the sensor, thereby ensuring that the communication details of all sensors are accurately grasped. Then, the parking lock communication protocol parameters are stored to obtain a parking lock communication protocol database. By establishing a parking lock communication protocol database, the system can systematically store all the parsed parking lock communication protocol parameters for subsequent calls and management. Similarly, the sensor communication protocol parameters are stored and processed to obtain the sensor communication protocol database. The establishment of the sensor communication protocol database ensures that the system can efficiently manage and call the communication protocol parameters of all sensors. Through these steps, the system can fully grasp the communication protocols and version information of all parking locks and sensors in the parking lot. The systematic storage and management of these data enable the system to call and perform protocol conversion and unified management at any time, ensuring that parking locks and sensors of different brands and models can be seamlessly integrated into a unified platform, achieving barrier-free communication and data exchange, and improving the automation and efficiency of parking management. The entire technical solution achieves full compatibility and unified management of equipment by acquiring, version identifying, parsing and storing the parking lock and sensor communication protocols. This not only avoids the waste of resources caused by the removal and reinstallation of equipment, but also makes better use of existing resources, improves the intelligent level of parking lot management, and provides users with a more efficient and convenient parking experience. At the same time, this method provides a solid foundation for future technology updates and expansions, ensuring the sustainable development and upgrading of the system.
[0039] For example, suppose that a parking lot of a large shopping mall is equipped with multiple brands of smart parking locks and license plate recognition sensors. These devices have different communication protocols due to different brands and models. First, the system obtains the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors. Next, the system performs version identification processing on the communication protocol of each parking lock. For example, for brand A parking locks, the system identifies the specific version of its communication protocol, and similar version identification processing is performed on brand B and brand C parking locks to obtain the communication protocol version of each parking lock. At the same time, the system performs version identification processing on the communication protocol of each sensor to determine the communication protocol version of each brand X, brand Y and brand Z sensor. Subsequently, the system parses the communication protocol version of each parking lock to obtain the parking lock communication protocol parameters. For example, the communication protocol of brand A parking locks may contain specific data packet formats, transmission methods and encryption methods. The system extracts these key parameters by parsing these protocol versions. The communication protocols of brand B and brand C parking locks are also similarly parsed to obtain their respective communication protocol parameters. Similarly, the system parses the communication protocol version of each sensor and extracts the key parameters of the sensor communication protocol, including the data packet format, transmission method, and encryption method. For systematic management and subsequent calls, these parsed communication protocol parameters are stored. The system stores the communication protocol parameters of the parking lock and establishes a parking lock communication protocol database. Similarly, the communication protocol parameters of the sensor are also stored to form a sensor communication protocol database. These databases store all the parsed communication protocol parameters, which are convenient for the system to call and manage at any time. Through these steps, the system can fully grasp the communication protocols and version information of all parking locks and sensors in the parking lot. The systematic storage and management of these data enables the system to call and convert protocols and manage them uniformly at any time, ensuring that parking locks and sensors of different brands and models can be seamlessly integrated into a unified platform, achieving barrier-free communication and data exchange, and improving the automation and efficiency of parking management. This method not only avoids the waste of resources caused by the removal and reinstallation of equipment, but also makes better use of existing resources, improves the level of intelligent parking management, and provides users with a more efficient and convenient parking experience. At the same time, this method provides a solid foundation for future technology updates and expansions, ensuring the sustainable development and upgrading of the system.
[0040] In one example, the first communication protocols of the various parking locks and the second communication protocols of the various sensors are parsed and processed to obtain the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, including: reading and processing the data in the parking lock communication protocol database to obtain the parking lock protocol data, and reading and processing the data in the sensor communication protocol database to obtain the sensor protocol data; performing field parsing on the parking lock protocol data to obtain a parking lock protocol target field combination, and performing field parsing on the sensor protocol data to obtain a sensor protocol target field combination; parsing and processing the field structure of the parking lock protocol target field combination to obtain a parking lock protocol field combination structure, and performing field parsing on the sensor protocol data to obtain a sensor protocol target field combination. The combined field structure is parsed to obtain a sensor protocol field combination structure; each field in the parking lock protocol field combination structure is analyzed to determine the format of each field to obtain a parking lock protocol format, and each field in the sensor protocol field combination structure is analyzed to determine the format of each field to obtain a sensor protocol format; key feature information is extracted from the parking lock protocol format, and the importance of each field in the parking lock protocol field combination structure is identified and marked based on the key feature information to obtain the parking lock proprietary protocol feature; and key feature information is extracted from the sensor protocol format, and the importance of each field in the sensor protocol field combination structure is identified and marked based on the key feature information to obtain the sensor proprietary protocol feature.
[0041] In this example, the first communication protocols of multiple parking locks and the second communication protocols of multiple sensors are parsed to obtain the proprietary protocol features of the parking locks and the proprietary protocol features of the sensors. First, the system reads and processes the data in the parking lock communication protocol database to obtain the parking lock protocol data; at the same time, the system reads and processes the data in the sensor communication protocol database to obtain the sensor protocol data. Next, the system performs field parsing on the parking lock protocol data to extract the parking lock protocol target field combination. Similarly, the system performs field parsing on the sensor protocol data to extract the sensor protocol target field combination. Then, the system parses the field structure of the parking lock protocol target field combination to obtain the parking lock protocol field combination structure. Similarly, the system parses the field structure of the sensor protocol target field combination to obtain the sensor protocol field combination structure. In this step, the system parses the structure of each field in detail, understands the role and relationship of each field, and provides a basis for subsequent format analysis. Next, the system analyzes each field in the parking lock protocol field combination structure, determines the format of each field, and obtains the parking lock protocol format. Similarly, each field in the sensor protocol field combination structure is analyzed to determine the format of each field and obtain the sensor protocol format. Through this process, the system can understand the specific format and data type of each field, and prepare for the extraction of key feature information. Then, the system extracts key feature information from the parking lock protocol format, identifies and marks the importance of each field in the parking lock protocol field combination structure based on these key feature information, and obtains the parking lock proprietary protocol features. Similarly, key feature information is extracted from the sensor protocol format, and the importance of each field in the sensor protocol field combination structure is identified and marked based on these key feature information, and the sensor proprietary protocol features are obtained. Through these steps, the system can deeply analyze the communication protocol of parking locks and sensors and extract the proprietary protocol features of each device. These feature information is crucial to achieve compatibility and unified management of devices. Finally, the system can integrate parking locks and sensors of different brands and models into a unified platform to achieve seamless communication and data exchange, and improve the automation and efficiency of parking management. The entire technical solution not only avoids the waste of resources caused by dismantling and reinstalling equipment through the analysis and feature extraction of communication protocols, but also makes better use of existing resources, improves the level of intelligent parking management, and provides users with a more efficient and convenient parking experience. At the same time, this method provides a solid foundation for future technology updates and expansions, ensuring the sustainable development and upgrade of the system.
[0042] For example, suppose that a parking lock protocol data contains device ID, status information, and operation instruction fields, while the sensor protocol data contains sensor ID, measurement value, and timestamp fields. The system will extract the device ID and sensor ID from these data as key features and mark them as high-importance fields. Further parsing may reveal that the status information field is in Boolean format and the operation instruction field is in string format, which helps to clarify the proprietary features of the parking lock protocol. For the sensor protocol, the measurement value field may be marked as a floating point type and the timestamp field is in date and time format, which also constitute the proprietary features of the sensor protocol. In this way, the system can effectively parse and identify the key features in different device and sensor communication protocols, providing a basis for subsequent data processing and analysis.
[0043] In one example, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, including: performing data type analysis on each field in the proprietary protocol features of the parking lock to determine the data type of each field corresponding to the parking lock, and performing data type analysis on each field in the proprietary protocol features of the sensor to determine the data type of each field corresponding to the sensor; determining the format of the parking lock data packet based on the data type of each field corresponding to the parking lock, and determining the format of the sensor data packet based on the data type of each field corresponding to the sensor, wherein the data packet format at least includes: the arrangement order of each field and the byte length of each field; determining a transmission mode that matches the format of the parking lock data packet as the parking lock transmission mode of the parking lock data packet, and determining a transmission mode that matches the format of the sensor data packet as the sensor transmission mode of the sensor data packet; integrating the format of the parking lock data packet and the parking lock transmission mode of each parking lock, and the format of the sensor data packet and the sensor transmission mode of each sensor, to obtain the target communication protocol.
[0044] In this example, a unified target communication protocol is generated based on the proprietary protocol features of multiple parking locks and the proprietary protocol features of multiple sensors. First, the system performs a data type analysis on each field in the proprietary protocol features of the parking lock to determine the data type of each field corresponding to the parking lock. Similarly, the system performs a data type analysis on each field in the proprietary protocol features of the sensor to determine the data type of each field corresponding to the sensor. Through these data type analyses, the system can accurately understand the type of information contained in each field, providing a basis for the subsequent data packet format formulation. Next, based on the data type of each field corresponding to the parking lock, the system determines the format of the parking lock data packet. The data packet format includes at least the arrangement order of each field and the byte length of each field. Similarly, based on the data type of each field corresponding to the sensor, the system determines the format of the sensor data packet, including the field arrangement order and byte length. By determining the data packet format, the system can standardize the data transmission methods of different devices to ensure that the data can be correctly parsed and processed. Then, the system determines the transmission method that matches the parking lock data packet format as the parking lock transmission method of the parking lock data packet. Similarly, the system determines the transmission method that matches the sensor data packet format as the sensor transmission method of the sensor data packet. The determination of the transmission mode ensures that different data packets can be transmitted according to a unified standard, improving the reliability and efficiency of data transmission. Finally, the system integrates the data packet format and transmission mode of each parking lock, as well as the data packet format and sensor transmission mode of each sensor, and finally obtains a unified target communication protocol. This target communication protocol standardizes the data transmission mode of all devices, so that parking locks and sensors of different brands and models can communicate and interconnect on the same platform, avoiding the formation of information islands. The entire technical solution formulates a unified data packet format and transmission mode through in-depth analysis of the proprietary protocol characteristics and data type analysis of parking locks and sensors, and finally generates a target communication protocol. This process ensures that the system can seamlessly integrate different devices and achieve unified management and control. It not only avoids the waste of resources caused by the removal and reinstallation of equipment, but also improves the automation and intelligence level of the parking management system, providing users with a more efficient and convenient parking experience. The solution provides a solid foundation for future technical updates and expansions, ensuring the sustainable development and upgrade of the system.
[0045] For example, suppose there is a parking lock and a temperature sensor. First, perform data type analysis on the proprietary protocol features of the parking lock. The parking lock protocol may include device ID (string type, length 20 bytes) and status (integer type, length 4 bytes). Next, perform data type analysis on the proprietary protocol features of the sensor. The temperature sensor protocol may include sensor ID (string type, length 20 bytes), temperature value (floating point type, length 4 bytes), and timestamp (date time type, length 8 bytes). Based on the data types of these fields, determine the data packet formats of the parking lock and sensor. The format of the parking lock data packet includes device ID (string type, 20 bytes) and status (integer type, 4 bytes). The format of the temperature sensor data packet includes sensor ID (string type, 20 bytes), temperature value (floating point type, 4 bytes), and timestamp (date time type, 8 bytes). Next, determine the transmission method that matches these data packet formats. The parking lock data packet may be transmitted using the UDP protocol to ensure fast response, while the temperature sensor data packet may use the TCP protocol to ensure reliable data transmission. Finally, the data packet format and transmission mode of the parking lock and the data packet format and transmission mode of the temperature sensor are integrated to generate a unified target communication protocol. For example, the protocol may stipulate that all device ID fields use a fixed-length string type, and all status and temperature value fields are transmitted in a specified order and length. Specifically, the unified target communication protocol will contain the device ID (string type, 20 bytes), the status or temperature value (determined by the device type, the parking lock is an integer type, 4 bytes; the sensor is a floating point type, 4 bytes), and the timestamp (sensors only, date and time type, 8 bytes). This integrated target communication protocol ensures that different devices can correctly parse and transmit data under a unified protocol, improving the compatibility and reliability of the system. In this way, parking locks and temperature sensors can work seamlessly in the same smart parking system, promoting the interconnection and interoperability of IoT devices.
[0046] In one example, based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol are converted to obtain a protocol conversion algorithm, including: comparing the proprietary protocol features of the parking locks with the target communication protocol to determine the protocol differences between the proprietary protocol features of the parking locks and the target communication protocol to obtain parking lock protocol differences; comparing the proprietary protocol features of the sensors with the target communication protocol to determine the protocol differences between the proprietary protocol features of the sensors and the target communication protocol. Obtain sensor protocol differences; generate parking lock conversion rules for converting the data packet format of the parking lock into the data packet format of the target communication protocol according to the parking lock protocol differences; generate sensor conversion rules for converting the data packet format of the sensor into the data packet format of the target communication protocol according to the sensor protocol differences, wherein the conversion rules at least include: a data structure conversion relationship, a data type conversion relationship, and a field mapping relationship; perform algorithm modeling processing on the parking lock conversion rules and the sensor conversion rules to obtain an initial protocol conversion algorithm, perform code optimization processing on the initial conversion algorithm to obtain the final protocol conversion algorithm.
[0047] In this example, based on the proprietary protocol features of multiple parking locks and the proprietary protocol features of multiple sensors, the differences between the first communication protocols of multiple parking locks, the second communication protocols of multiple sensors and the target communication protocol are converted to obtain a protocol conversion algorithm. First, the system compares the proprietary protocol features of the parking locks and the target communication protocol to determine the protocol differences between the two, thereby obtaining the parking lock protocol differences. Similarly, the system compares the proprietary protocol features of the sensors and the target communication protocol to determine the protocol differences between them and obtain the sensor protocol differences. This step clarifies the specific differences between each device and the target protocol by comparing the protocol features in detail, providing a basis for the subsequent conversion rule generation. Next, the system generates a parking lock conversion rule that converts the data packet format of the parking lock into the data packet format of the target communication protocol based on the parking lock protocol differences. For example, the data packet format of a parking lock contains a specific field order and data type, and these fields need to be rearranged and converted to comply with the target protocol. Similarly, the system generates a sensor conversion rule that converts the data packet format of the sensor into the data packet format of the target communication protocol based on the sensor protocol differences. These conversion rules include at least data structure conversion relations, data type conversion relations and field mapping relations. By generating these rules, the system can ensure that the data of different devices can be accurately converted and unified. Then, the system performs algorithm modeling on the parking lock conversion rules and sensor conversion rules to obtain the initial protocol conversion algorithm. For example, by establishing an algorithm model, the system can simulate and verify the actual effects of these conversion rules to ensure the accuracy and effectiveness of data conversion. Next, the initial conversion algorithm is code optimized to further improve its performance and efficiency, and finally the protocol conversion algorithm is obtained. This step ensures that the conversion algorithm can run efficiently in actual applications and improve the overall performance of the system through code optimization. Through these steps, the system generates a protocol conversion algorithm that can seamlessly convert data from different devices. This algorithm can convert the data packet format of parking locks and sensors of different brands and models into a unified target communication protocol, ensuring that all devices can communicate and interconnect on the same platform to achieve barrier-free data exchange. The entire technical solution ensures the accuracy and consistency of data conversion through detailed protocol feature comparison and conversion rule generation, which not only avoids the waste of resources caused by the removal and reinstallation of equipment, but also improves the automation and intelligence level of the parking management system. Ultimately, users can enjoy a more efficient and convenient parking experience, while the solution provides a solid foundation for future technological updates and expansions, ensuring the sustainable development and upgrade of the system.
[0048] For example, assume that the first communication protocol of the parking lock includes device ID (string type, length 20 bytes) and status (integer type, length 4 bytes), the second communication protocol of the sensor includes sensor ID (string type, length 20 bytes), temperature value (floating point type, length 4 bytes) and timestamp (date and time type, length 8 bytes), and the target communication protocol uniformly stipulates device ID (string type, 20 bytes), status or measurement value (integer type or floating point type, 4 bytes) and timestamp (date and time type, 8 bytes, only used by sensors). First, compare the proprietary protocol features of the parking lock with the target communication protocol to determine the protocol differences between the proprietary protocol features of the parking lock and the target communication protocol. Assume that the status field in the parking lock protocol needs to be mapped to the status field in the target protocol. Next, compare the proprietary protocol features of the sensor with the target communication protocol to determine the protocol differences between the proprietary protocol features of the sensor and the target communication protocol. Assume that the sensor ID, temperature value and timestamp fields in the sensor protocol need to be mapped to the corresponding fields in the target protocol respectively. According to the differences in parking lock protocols, a parking lock conversion rule is generated to convert the data packet format of the parking lock into the data packet format of the target communication protocol. For example, the device ID remains unchanged, and the status field is directly mapped to the status field of the target protocol. According to the differences in sensor protocols, a sensor conversion rule is generated to convert the data packet format of the sensor into the data packet format of the target communication protocol. For example, the sensor ID remains unchanged, the temperature value is directly mapped to the measurement value field of the target protocol, and the timestamp field remains unchanged. These conversion rules include data structure conversion relations, data type conversion relations, and field mapping relations. The parking lock conversion rules and sensor conversion rules are algorithmically modeled to obtain an initial protocol conversion algorithm. For example, the initial algorithm can simply rearrange and convert the data types of the parking lock and sensor fields according to the conversion rules. Subsequently, the initial conversion algorithm is code optimized to improve data processing efficiency and reduce latency, and finally a protocol conversion algorithm is obtained. This final algorithm can run effectively in the system, realize the conversion of multiple parking lock and sensor protocols to a unified target communication protocol, and ensure the compatibility and reliability of data communication between different devices. In this way, the data packets of various parking locks and sensors can be converted into a unified format, simplify the data processing process, and improve the overall performance of the system. For example, when a parking lock sends a data packet, the protocol conversion algorithm converts its device ID and status fields into the target communication protocol format; similarly, when a sensor sends a data packet, the protocol conversion algorithm converts its sensor ID, temperature value, and timestamp fields into the target communication protocol format. This approach ensures that different devices can communicate seamlessly in the same system and optimizes the interoperability of IoT applications.
[0049] In one example, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, the differences between the first communication protocols of the multiple parking locks, the second communication protocols of the multiple sensors and the target communication protocol are converted to obtain a protocol conversion algorithm. The parking lock communication management method also includes: obtaining an instruction data packet sent by the parking management cloud platform; parsing and converting the instruction data packet based on the protocol conversion instruction, and sending the parsed and converted instruction data packet to a target device corresponding to the instruction data packet, wherein the target device includes: a parking lock device or a sensor device.
[0050] In this example, based on the proprietary protocol features of multiple parking locks and the proprietary protocol features of multiple sensors, the differences between the first communication protocols of multiple parking locks, the second communication protocols of multiple sensors and the target communication protocol are converted and processed. After the protocol conversion algorithm is generated, the parking lock communication management method further includes the following steps. First, the system obtains the instruction data packet sent by the parking management cloud platform. These instruction data packets may contain operation instructions for specific parking lock devices or sensor devices, such as unlocking, locking or data collection. Next, the system parses and converts the instruction data packet based on the protocol conversion algorithm. For example, the instruction data packet sent by the cloud platform may be in accordance with the target communication protocol format, while the parking lock device and the sensor device may use their own proprietary protocol format. The system parses and converts these instruction data packets into a format that the target device can recognize and execute through the protocol conversion algorithm. Once the instruction data packet is parsed and converted, the system sends these parsed and converted instruction data packets to the corresponding target device. The target device includes a parking lock device or a sensor device, depending on the content and purpose of the instruction data packet. For example, if the instruction data packet is an operation instruction for controlling the parking lock switch, the system sends the converted instruction data packet to the corresponding parking lock device; if the instruction data packet is an operation instruction for obtaining sensor data, the system sends the converted instruction data packet to the corresponding sensor device. Through these steps, the system realizes seamless communication and control between the cloud platform and parking lock devices and sensor devices of different brands and models. This process ensures that the cloud platform can uniformly manage and control all devices in the parking lot, improving the automation and intelligence level of the parking management system. To summarize the entire technical solution, by acquiring and parsing the communication protocol characteristics of multiple parking locks and sensors, the system generates a unified target communication protocol, and develops a protocol conversion algorithm on this basis. This algorithm can convert the data packet format of different devices into the target communication protocol format to achieve barrier-free data exchange. Furthermore, by acquiring the instruction data packet sent by the cloud platform and parsing and converting it based on the protocol conversion algorithm, the system can send the instruction data packet to the corresponding target device to achieve unified control of the parking lock device and sensor device. The entire solution not only avoids the waste of resources caused by the removal and reinstallation of equipment, but also significantly improves the efficiency and intelligence level of parking lot management, providing users with a more efficient and convenient parking experience. At the same time, this approach provides a solid foundation for future technological updates and expansions, ensuring the sustainable development and upgrading of the system.
[0051] For example, suppose the command data packet sent by the cloud platform requires opening a specific parking lock. This data packet contains the command type (string type, length 10 bytes) and the device ID (string type, length 20 bytes). First, obtain the command data packet and parse and convert it based on the protocol conversion command. For example, the command type is "unlock" and the device ID is "PARKING_LOCK_1234". The parsing and conversion process converts the "unlock" command into a specific operation command that the parking lock device can recognize, while retaining the device ID. Assume that the command format defined in the target communication protocol is: operation type (integer type, length 4 bytes) and device ID (string type, length 20 bytes), where the integer value corresponding to the operation type "unlock" is 1. During the parsing and conversion process, the string "unlock" is converted to an integer value 1 and combined with the device ID "PARKING_LOCK_1234" to form a new command data packet. This new data packet conforms to the format of the target communication protocol: operation type (1) and device ID (PARKING_LOCK_1234). Subsequently, the parsed and converted instruction data packet is sent to the corresponding target device, i.e., the parking lock device. Assume that after receiving this new data packet, the parking lock device identifies the operation type as 1, i.e., the "unlock" operation, and performs the unlock operation according to the device ID. In this way, the parking management cloud platform can send instruction data packets to different types of target devices, whether parking lock devices or sensor devices, through a protocol conversion algorithm and a unified target communication protocol, to ensure the correct execution of instructions and effective management of the devices. This method not only achieves seamless conversion between different communication protocols, but also ensures that instructions can be accurately transmitted to the target device. For example, when a sensor device receives a similar instruction data packet, it can also be correctly parsed and executed through protocol conversion, ensuring the efficient operation and reliability of the entire parking management system.
[0052] Reference Figure 2 The embodiment of the present invention provides a parking lock communication management device based on license plate recognition, comprising:
[0053] An acquisition unit 1 is used to acquire first communication protocols of various parking locks and second communication protocols of various sensors;
[0054] The parsing unit 2 is used to parse the first communication protocols of the various parking locks and the second communication protocols of the various sensors to obtain the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors;
[0055] A generating unit 3, configured to generate a unified target communication protocol based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, wherein the target communication protocol at least includes: a data packet format, a transmission method, and an encryption method;
[0056] A conversion unit 4 is used to convert the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors to obtain a protocol conversion algorithm;
[0057] The sending unit 5 is used to obtain the initial data packet sent by the parking lock and / or the initial data packet sent by the sensor, and parse and convert the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and send the target data packet to the parking space management cloud platform in the target communication protocol.
[0058] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.
[0059] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0060] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0061] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0062] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0063] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0064] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A parking lock communication management method based on license plate recognition, It is characterized in that include: Acquire a first communication protocol of a plurality of parking locks and a second communication protocol of a plurality of sensors; Parsing the first communication protocols of the various parking locks and the second communication protocols of the various sensors to obtain proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors; Based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, a unified target communication protocol is generated, wherein the target communication protocol at least includes: a data packet format, a transmission method, and an encryption method; Based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, convert the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol to obtain a protocol conversion algorithm; Acquire the initial data packet sent by the parking lock and / or the initial data packet sent by the sensor, parse and convert the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and send the target data packet to the parking management cloud platform in the target communication protocol mode; Wherein, after obtaining the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors, the parking lock communication management method further includes: performing version identification processing on the communication protocols of the multiple parking locks to obtain the parking lock communication protocol version, and performing version identification processing on the communication protocols of the multiple sensors to obtain the sensor communication protocol version; performing parsing processing on the communication protocol versions of the multiple parking locks to obtain parking lock communication protocol parameters, and performing parsing processing on the communication protocol versions of the multiple sensors to obtain sensor communication protocol parameters; performing storage processing on the parking lock communication protocol parameters to obtain a parking lock communication protocol database, and performing storage processing on the sensor communication protocol parameters to obtain a sensor communication protocol database; Among them, the first communication protocols of the various parking locks and the second communication protocols of the various sensors are parsed and processed to obtain the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, including: reading and processing the data in the parking lock communication protocol database to obtain the parking lock protocol data, and reading and processing the data in the sensor communication protocol database to obtain the sensor protocol data; performing field parsing processing on the parking lock protocol data to obtain a parking lock protocol target field combination, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination; parsing and processing the field structure of the parking lock protocol target field combination to obtain a parking lock protocol field combination structure, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination. The field structure of the parking lock protocol field combination structure is parsed to obtain a sensor protocol field combination structure; each field in the parking lock protocol field combination structure is analyzed to determine the format of each field to obtain a parking lock protocol format, and each field in the sensor protocol field combination structure is analyzed to determine the format of each field to obtain a sensor protocol format; key feature information is extracted from the parking lock protocol format, and the importance of each field in the parking lock protocol field combination structure is identified and marked based on the key feature information to obtain the parking lock proprietary protocol feature; and key feature information is extracted from the sensor protocol format, and the importance of each field in the sensor protocol field combination structure is identified and marked based on the key feature information to obtain the sensor proprietary protocol feature; Wherein, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, including: performing data type analysis on each field in the proprietary protocol features of the parking lock to determine the data type of each field corresponding to the parking lock, and performing data type analysis on each field in the proprietary protocol features of the sensor to determine the data type of each field corresponding to the sensor; determining the format of the parking lock data packet based on the data type of each field corresponding to the parking lock, and determining the format of the sensor data packet based on the data type of each field corresponding to the sensor, wherein the data packet format at least includes: the arrangement order of each field and the byte length of each field; determining a transmission mode that matches the format of the parking lock data packet as the parking lock transmission mode of the parking lock data packet, and determining a transmission mode that matches the format of the sensor data packet as the sensor transmission mode of the sensor data packet; integrating the format of the parking lock data packet and the parking lock transmission mode of each parking lock, and the format of the sensor data packet and the sensor transmission mode of each sensor, to obtain the target communication protocol.
2. The parking lock communication management method according to claim 1, It is characterized in that Acquiring first communication protocol data of multiple parking locks and second communication protocol data of multiple sensors includes: Classifying the various types of parking locks to obtain a classification result of parking lock models, and classifying the various types of sensors to obtain a classification result of sensor models; The communication protocol of each parking lock model is extracted to obtain the communication protocol of each parking lock, and the communication protocol of each sensor model is extracted to obtain the communication protocol of each sensor.
3. The parking lock communication management method according to claim 1, It is characterized in that Based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol are converted to obtain a protocol conversion algorithm, including: The proprietary protocol feature of the parking lock is compared with the target communication protocol to determine the protocol difference between the proprietary protocol feature of the parking lock and the target communication protocol, thereby obtaining a parking lock protocol difference; the proprietary protocol feature of the sensor is compared with the target communication protocol to determine the protocol difference between the proprietary protocol feature of the sensor and the target communication protocol, thereby obtaining a sensor protocol difference; According to the parking lock protocol difference, a parking lock conversion rule is generated to convert the data packet format of the parking lock into the data packet format of the target communication protocol; according to the sensor protocol difference, a sensor conversion rule is generated to convert the data packet format of the sensor into the data packet format of the target communication protocol, wherein the conversion rule at least includes: a data structure conversion relationship, a data type conversion relationship and a field mapping relationship; The parking lock conversion rule and the sensor conversion rule are subjected to algorithm modeling processing to obtain an initial protocol conversion algorithm, and the initial conversion algorithm is subjected to code optimization processing to obtain a final protocol conversion algorithm.
4. The parking lock communication management method according to claim 1, It is characterized in that After converting the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors to obtain a protocol conversion algorithm, the parking lock communication management method further includes: Obtain the instruction data packet sent by the parking space management cloud platform; parse and convert the instruction data packet based on the protocol conversion instruction, and send the parsed and converted instruction data packet to the target device corresponding to the instruction data packet, wherein the target device includes: a parking space lock device or a sensor device.
5. A parking lock communication management device based on license plate recognition, include: An acquisition unit, used to acquire first communication protocols of multiple parking locks and second communication protocols of multiple sensors; A parsing unit, configured to parse the first communication protocols of the various parking locks and the second communication protocols of the various sensors to obtain proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors; A generating unit, configured to generate a unified target communication protocol based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, wherein the target communication protocol at least includes: a data packet format, a transmission method, and an encryption method; a conversion unit, configured to convert the differences between the first communication protocols of the various parking locks, the second communication protocols of the various sensors and the target communication protocol based on the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, and obtain a protocol conversion algorithm; A sending unit, used for acquiring an initial data packet sent by the parking lock and / or an initial data packet sent by the sensor, parsing and converting the initial data packet based on the protocol conversion algorithm to obtain a target data packet, and sending the target data packet to the parking management cloud platform in the target communication protocol mode; Wherein, after obtaining the first communication protocol data of multiple parking locks and the second communication protocol data of multiple sensors, the parking lock communication management method further includes: performing version identification processing on the communication protocols of the multiple parking locks to obtain the parking lock communication protocol version, and performing version identification processing on the communication protocols of the multiple sensors to obtain the sensor communication protocol version; performing parsing processing on the communication protocol versions of the multiple parking locks to obtain parking lock communication protocol parameters, and performing parsing processing on the communication protocol versions of the multiple sensors to obtain sensor communication protocol parameters; performing storage processing on the parking lock communication protocol parameters to obtain a parking lock communication protocol database, and performing storage processing on the sensor communication protocol parameters to obtain a sensor communication protocol database; Among them, the first communication protocols of the various parking locks and the second communication protocols of the various sensors are parsed and processed to obtain the proprietary protocol features of the various parking locks and the proprietary protocol features of the various sensors, including: reading and processing the data in the parking lock communication protocol database to obtain the parking lock protocol data, and reading and processing the data in the sensor communication protocol database to obtain the sensor protocol data; performing field parsing processing on the parking lock protocol data to obtain a parking lock protocol target field combination, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination; parsing and processing the field structure of the parking lock protocol target field combination to obtain a parking lock protocol field combination structure, and performing field parsing processing on the sensor protocol data to obtain a sensor protocol target field combination. The field structure of the parking lock protocol field combination structure is parsed to obtain a sensor protocol field combination structure; each field in the parking lock protocol field combination structure is analyzed to determine the format of each field to obtain a parking lock protocol format, and each field in the sensor protocol field combination structure is analyzed to determine the format of each field to obtain a sensor protocol format; key feature information is extracted from the parking lock protocol format, and the importance of each field in the parking lock protocol field combination structure is identified and marked based on the key feature information to obtain the parking lock proprietary protocol feature; and key feature information is extracted from the sensor protocol format, and the importance of each field in the sensor protocol field combination structure is identified and marked based on the key feature information to obtain the sensor proprietary protocol feature; Wherein, based on the proprietary protocol features of the multiple parking locks and the proprietary protocol features of the multiple sensors, a unified target communication protocol is generated, including: performing data type analysis on each field in the proprietary protocol features of the parking lock to determine the data type of each field corresponding to the parking lock, and performing data type analysis on each field in the proprietary protocol features of the sensor to determine the data type of each field corresponding to the sensor; determining the format of the parking lock data packet based on the data type of each field corresponding to the parking lock, and determining the format of the sensor data packet based on the data type of each field corresponding to the sensor, wherein the data packet format at least includes: the arrangement order of each field and the byte length of each field; determining a transmission mode that matches the format of the parking lock data packet as the parking lock transmission mode of the parking lock data packet, and determining a transmission mode that matches the format of the sensor data packet as the sensor transmission mode of the sensor data packet; integrating the format of the parking lock data packet and the parking lock transmission mode of each parking lock, and the format of the sensor data packet and the sensor transmission mode of each sensor, to obtain the target communication protocol.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Parking operation management platform
CN106652552A
Intelligent shared parking space management system
CN112349137A
Communication protocol conversion method and device, and storage medium
CN116016699A
Management control system and method for digital building
CN116366701A
Universal model abstraction system and method based on heterogeneous industrial data acquisition protocol
CN117880381A
