Vehicle reservation information two-dimensional code generation method and device and vehicle reservation information two-dimensional code decoding method and device
By generating and decoding the QR code of the vehicle reservation information, the compatibility of reservation information in different dock systems is solved, and the efficiency and safety of vehicle entry are improved.
Patent Information
- Application Number
- CN202411666864.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-11
AI Technical Summary
The entry reservation information in the vehicle reservation system at different docks is different, which leads to errors easily when entering the site, and the safety level requirements are different, and it needs to be compatible with multiple reservation information formats and verification levels.
A method for generating and decoding a vehicle reservation information QR code is provided. By acquiring vehicle reservation information, splicing and encoding, a feature code number is added to the encoded data header, a QR code picture is generated, and decoding and verification is performed according to the feature code number during the decoding process.
The compatibility of different entry reservation information in the vehicle reservation system of different docks has been achieved, which improves the efficiency of vehicle entry, reduces errors, and adapts to scenarios with different business characteristics and safety levels.
Smart Images

Figure CN119599048A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and in particular to a method and device for generating and decoding a two-dimensional code for vehicle reservation information. Background Art
[0002] Different terminals have different business characteristics and security levels. For example, some terminals require that only valid reservation codes can be used to enter the gate for operation, but some terminals have a higher security level and require that valid reservation codes bound to vehicle license plates can be used to enter the gate for operation. Even the reservation QR code information for special container operations must be encrypted. The security level can also be further subdivided to include the validity period of the QR code itself. QR codes that are no longer valid cannot be used normally and must be refreshed or printed after being refreshed. And the scheduled operation time. Even if the QR code is valid, it cannot be used normally to enter the gate for operation if it is not within the effective time of the reservation.
[0003] Due to the different business characteristics and security levels of different terminals, the entry reservation information in the vehicle reservation systems of different terminals is different, which results in different reservation information being presented according to different tasks when gate transport vehicles enter the terminal, which is prone to errors. Summary of the invention
[0004] The purpose of this application is to provide a method and device for generating and decoding a vehicle reservation information QR code, so as to achieve compatibility of different entry reservation information in vehicle reservation systems of different terminals, improve vehicle entry efficiency and reduce errors.
[0005] To achieve the above objectives, this application provides the following solutions.
[0006] In a first aspect, the present application provides a method for generating a vehicle reservation information QR code, comprising:
[0007] Obtain vehicle reservation information; the vehicle reservation information includes: license plate number, trailer frame number, entry box number, reservation number, reservation validity expiration date, operating time range, encoding and decoding mode, QR code validity expiration date and verification level;
[0008] The license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operable time range, QR code validity deadline and verification level number in the vehicle reservation information are spliced to obtain spliced data;
[0009] According to the encoding and decoding mode, encoding the spliced data to obtain encoded data;
[0010] Add a feature code number to the header of the encoded data to obtain the marked encoded data; the feature code number represents the encoding and decoding mode;
[0011] Convert the marked coded data into a QR code image.
[0012] Optionally, the verification level includes: a simple verification level and a full data verification level, the simple verification level is numbered S, and the full data verification level is numbered F.
[0013] Optionally, the format of the spliced data is:
[0014] #P-reservation number#T-license plate number#-C-trailer frame number#N-box number 1-box number 2-...-box number n#E-reservation validity deadline#W-operation start time-operation end time#Q-QR code validity deadline#K-verification level number#Z-anti-counterfeiting random code#; where n is the number of box numbers.
[0015] Optionally, encoding the spliced data according to a coding / decoding mode to obtain coded data specifically includes:
[0016] When the encoding and decoding mode is base64 mode, a base64 encoding algorithm is used to encode the spliced data into the encoded data;
[0017] When the encoding and decoding mode is the key encryption and decryption mode, the base64 encoding algorithm is used to encode the spliced data into initial encoded data, and the DES algorithm is used to encrypt the initial encoded data using a preset key to obtain the encoded data.
[0018] In a second aspect, the present application further provides a vehicle reservation information QR code generating device, the vehicle reservation information QR code generating device applies the above-mentioned vehicle reservation information QR code generating method, and the vehicle reservation information QR code generating device includes:
[0019] A vehicle reservation information acquisition unit is used to acquire vehicle reservation information; the vehicle reservation information includes: license plate number, trailer frame number, entry box number, reservation number, reservation validity expiration date, operable time range, encoding and decoding mode, QR code validity expiration date and verification level;
[0020] The vehicle reservation information preprocessing unit is used to splice the license plate number, trailer frame number, entry box number, reservation number, reservation validity deadline, operable time range, QR code validity deadline and verification level number in the vehicle reservation information to obtain spliced data;
[0021] An encoding unit, used for encoding the spliced data according to a coding and decoding mode to obtain encoded data;
[0022] A marking unit, used for adding a feature code number to the header of the coded data to obtain the marked coded data; the feature code number represents the encoding and decoding mode;
[0023] The two-dimensional code generating unit is used to convert the marked coded data into a two-dimensional code image.
[0024] In a third aspect, the present application provides a method for parsing a vehicle reservation information QR code, comprising:
[0025] Parsing the QR code image to obtain a string of text; the QR code image is obtained by using the above-mentioned vehicle reservation information QR code generation method;
[0026] Identify the feature code number and the data to be decoded in the string text; the data to be decoded is the coded data in the above-mentioned vehicle reservation information two-dimensional code generation method;
[0027] Decoding the data to be decoded according to the feature code number to obtain plaintext data;
[0028] The plaintext data is verified.
[0029] Optionally, decoding the data to be decoded according to the feature code number to obtain plaintext data specifically includes:
[0030] When the encoding and decoding mode represented by the feature code number is the base64 mode, the base64 decoding algorithm is used to decode the data to be decoded to obtain plaintext data;
[0031] When the encoding and decoding mode represented by the feature code number is a key encryption and decryption mode, the data to be decoded is decrypted using a preset key using a DES algorithm to obtain decrypted data, and the decrypted data is decoded using a base64 decoding algorithm to obtain the plaintext data.
[0032] Optionally, verifying the plaintext data specifically includes:
[0033] Verify whether the current date meets the reservation validity deadline, the workable time range, and the QR code validity deadline in the plain text data; and obtain a first verification result;
[0034] If the first verification result is passed, then verify the license plate number, trailer frame number, box number and reservation number in the plain text data according to the verification level in the plain text data to obtain a second verification result;
[0035] If the second verification result is passed, then returning the available verification result;
[0036] If the first verification result indicates failure, or the second verification result indicates failure, an unusable verification result is returned.
[0037] Optionally, according to the verification level in the plaintext data, the license plate number, trailer frame number, box number and reservation number in the plaintext data are verified to obtain a second verification result, which specifically includes:
[0038] If the verification level is a simple verification level, the reservation number in the plain text data is compared with the reservation number in the database. If there is a reservation number in the database that is consistent with the reservation number in the plain text data, the second verification result is passed; otherwise, the second verification result is failed;
[0039] If the verification level is the full data verification level, the reservation number in the plaintext data is compared with the reservation number in the database, and the license plate number, trailer frame number and box number in the plaintext data are compared with the actual license plate number, trailer frame number and box number respectively. When there is a reservation number in the database that is consistent with the reservation number in the plaintext data, and the license plate number, trailer frame number and box number in the plaintext data are consistent with the actual license plate number, trailer frame number and box number, the second verification result is passed; otherwise, the second verification result is failed.
[0040] In a fourth aspect, the present application provides a vehicle reservation information two-dimensional code parsing device, the vehicle reservation information two-dimensional code parsing device applies the above-mentioned vehicle reservation information two-dimensional code parsing method, and the vehicle reservation information two-dimensional code parsing device includes:
[0041] A two-dimensional code parsing unit, used to parse the two-dimensional code image to obtain a string of text; the two-dimensional code image is obtained by using the above-mentioned vehicle reservation information two-dimensional code generation method;
[0042] An identification unit, used for identifying the feature code number and the data to be decoded in the string text; the data to be decoded is the coded data in the above-mentioned vehicle reservation information two-dimensional code generation method;
[0043] A decoding unit, used for decoding the data to be decoded according to the feature code number to obtain plaintext data;
[0044] A verification unit is used to verify the plaintext data.
[0045] According to the specific embodiments provided in this application, this application has the following technical effects.
[0046] The present application provides a method and device for generating and decoding a two-dimensional code for vehicle reservation information. During the encoding process, not only the license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operating time range, and two-dimensional code validity deadline are added to the vehicle reservation information, but also the verification level and encoding and decoding mode are added to the vehicle reservation information, and the encoding and decoding mode is separately marked. During the decoding process, decoding is performed according to different encoding and decoding modes and verification levels. The technical solution of the present application can be applied to scenarios with different business characteristics and security levels. The present application realizes the compatibility of different entry reservation information in vehicle reservation systems of different terminals, improves the efficiency of vehicle entry, and reduces errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flowchart of a method for generating a vehicle reservation information QR code provided in one embodiment of the present application.
[0049] Figure 2 A flowchart of a method for decoding a vehicle reservation information QR code provided in one embodiment of the present application.
[0050] Figure 3 This is a flowchart of the method provided in Example 1 of the present application.
[0051] Figure 4 This is a structural diagram of the device provided in Example 1 of the present application.
[0052] Figure 5 This is a flowchart of the method provided in Example 2 of the present application.
[0053] Figure 6 This is a structural diagram of the device provided in Example 2 of the present application.
[0054] Figure 7 This is a flowchart of the method provided in Example 3 of the present application.
[0055] Figure 8 This is a structural diagram of the device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0058] In view of the defects mentioned in the background technology, the following requirements are summarized.
[0059] Improve gate entry efficiency: Under different tasks, the driver only needs to present a QR code. Both manual gates and smart gates can automatically determine whether the current vehicle includes a valid entry task by scanning the QR code.
[0060] Reduce the error rate in handling procedures: The QR code contains the information or key feature code of this appointment. After scanning and parsing the QR code, it is compared with the data in the system to determine whether it is valid, without the need for manual verification based on documents.
[0061] Adapt to multi-state needs: customize different reservation QR codes according to the reservation business characteristics and security levels of different terminals.
[0062] In an exemplary embodiment, Figure 1 As shown, a method for generating a vehicle reservation information QR code is provided, including the following steps 101 to 105.
[0063] Step 101, obtain vehicle reservation information; the vehicle reservation information includes: license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operating time range, encoding and decoding mode, QR code validity deadline and verification level.
[0064] Step 102, splicing the license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operable time range, QR code validity deadline and verification level in the vehicle reservation information to obtain spliced data.
[0065] Step 103: Encode the spliced data according to the encoding and decoding mode to obtain encoded data.
[0066] Step 104, adding a feature code number to the header of the encoded data to obtain the marked encoded data; the feature code number represents the encoding and decoding mode.
[0067] Step 105, converting the marked coded data into a QR code image.
[0068] By implementing the above steps 101 to 105, the compatibility of different entry reservation information in the vehicle reservation systems of different terminals is achieved, thereby improving the efficiency of vehicle entry and reducing errors.
[0069] In another exemplary embodiment of the present application, a pre-allocation strategy can be formulated based on the vehicle reservation information in the above step 101. In the subsequent application process, only specific information needs to be filled in according to the pre-allocation strategy.
[0070] The operating time range is as follows: different gate entry time ranges are set according to the business type. For example, containers can be picked up all day, non-special containers can be picked up from 09:00 to 16:00 every day, and special containers can be picked up from 09:00 to 12:00 every day.
[0071] The encoding and decoding modes include: base64 mode and key encryption and decryption mode. In base64 mode, the plain text information (i.e. concatenated data) is converted into base64 encoded information (i.e. encoded data). In key encryption and decryption mode, the plain text information is first encoded by Base64 and then encrypted by the DES algorithm into encrypted text. At this time, the encrypted text is the encoded data.
[0072] The validity period of a QR code includes two types: indefinite and valid for a certain period of time.
[0073] The verification level includes S-simple verification level and F-full data verification level. The simple verification level means that as long as the reservation code is valid, the QR code is within the validity period, and the reservation is within the validity period, the operation can be considered. In addition to the reservation number verified by the simple verification level, the full data verification level also needs to check whether the current vehicle license plate number and trailer frame number are consistent with the reservation information. If they are not consistent, the operation is not allowed; whether the box number carried this time is consistent with the box number planted in the reservation information, if they are not consistent, the operation is not allowed.
[0074] In another exemplary embodiment of the present application, in the above step 102, part of the information in the vehicle reservation information is spliced together according to a fixed format. The fixed format is: #P-reservation number#T-license plate number#-C-trailer frame number#N-in-box number 1-in-box number 2#E-reservation effective deadline#W-operation start time-operation end time#Q-QR code effective deadline#K-verification level number#Z-anti-counterfeiting random code#. The anti-counterfeiting random code consists of 3 pure numbers and is regenerated each time preprocessing is performed.
[0075] In another exemplary embodiment of the present application, in the above step 103, if it is base64 mode, the preprocessed data (i.e., the spliced data) is encoded into encoded data using base64; if it is key encryption and decryption mode, the preprocessed data (i.e., the spliced data) is first base64-encoded to obtain the initial encoded data, and then the preset key is used to encrypt it again through the DES algorithm to obtain the encrypted encoded data.
[0076] In another exemplary embodiment of the present application, in the above step 104, a feature code number is added to the header of the encoded data, and the format of the marked encoded data is: feature code number encoded data, for example: FeEevr456FRx. There are two types of feature code numbers: B: base64 mode, F: key encryption and decryption mode.
[0077] In another exemplary embodiment of the present application, in the above step 105, a third-party QR code generation function or a locally integrated QR code generation library is used to convert the marked coded data into a QR code image.
[0078] Based on the same inventive concept, the embodiment of the present application also provides a vehicle reservation information two-dimensional code generation device for implementing the vehicle reservation information two-dimensional code generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more vehicle reservation information two-dimensional code generation device embodiments provided below can refer to the limitations of the vehicle reservation information two-dimensional code generation method above, and will not be repeated here.
[0079] In an exemplary embodiment, a vehicle reservation information two-dimensional code generating device is provided, comprising:
[0080] The vehicle reservation information acquisition unit is used to obtain the vehicle reservation information; the vehicle reservation information includes: license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operating time range, encoding and decoding mode, QR code validity deadline and verification level.
[0081] The vehicle reservation information preprocessing unit is used to splice the license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operating time range, QR code validity deadline and verification level number in the vehicle reservation information to obtain spliced data.
[0082] The encoding unit is used to encode the spliced data according to the encoding and decoding mode to obtain encoded data.
[0083] The marking unit is used to add a feature code number to the header of the coded data to obtain the marked coded data; the feature code number represents the encoding and decoding mode.
[0084] The two-dimensional code generating unit is used to convert the marked coded data into a two-dimensional code image.
[0085] In an exemplary embodiment, a vehicle reservation information QR code parsing method corresponding to the above-mentioned vehicle reservation information QR code generation method is provided, such as Figure 2 As shown, the vehicle reservation information QR code parsing method includes the following steps 201 to 204.
[0086] Step 201, parse the QR code image to obtain a string of text; the QR code image is obtained by using the above-mentioned vehicle reservation information QR code generation method.
[0087] Step 202, identifying the feature code number and the data to be decoded in the character string text; the data to be decoded is the coded data in the above-mentioned vehicle reservation information two-dimensional code generation method.
[0088] Step 203: decode the data to be decoded according to the feature code number to obtain plaintext data.
[0089] Step 204: verify the plaintext data.
[0090] By executing the above steps 201 to 204, decoding can be performed according to different encoding and decoding modes and verification levels, thereby achieving compatibility of different entry reservation information in vehicle reservation systems of different terminals, improving vehicle entry efficiency, and reducing errors.
[0091] In an exemplary embodiment, in the above step 201, after obtaining the QR code image, a third-party QR code generation function or a locally integrated QR code generation library is used to parse the QR code image into a string text.
[0092] In an exemplary embodiment, in the above step 202, the feature code number and the data to be decoded in the parsed string text are identified; the parsed feature code number is converted into a string array using a space as a separator, such as ["F", "eEevr456FRx"], and then the feature code extraction method and the data to be decoded extraction method are used to extract the feature code and the data to be decoded respectively. Feature code extraction method: Get the 0th bit of the string array as the feature code. Data to be decoded acquisition method: Get the 1st bit of the string array as the data to be decoded.
[0093] In an exemplary embodiment, in the above step 203, the corresponding decoding method is called according to the identified feature code to parse the data to be decoded into decoded plaintext data. Decoding method: If it is S, it is decoded and returned by the base64 decoding algorithm. If it is F, it is first decrypted by the DES algorithm using the key, and then decoded and returned by the base64 decoding algorithm.
[0094] In an exemplary embodiment, in the above step 204, the verification method is called according to the decoded plaintext data to verify and return the verification result as available or unavailable. First, the reservation deadline, the workable time range and the validity period of the QR code in the plaintext data are verified. If all the verifications are successful, the corresponding verification method is called for verification according to the verification level. Verification method: If it is a simple verification, the reservation number in the plaintext data is compared with the matching reservation number status in the database. If it is not used, it returns available, otherwise it returns unavailable. If it is a full data verification, on the basis of the simple verification result being available, the external input operation vehicle information is compared with the decoded plaintext information. If all the comparisons are inconsistent, it returns unavailable. If they are consistent, it is further compared with the vehicle information corresponding to the reservation number in the database. If they are consistent, it returns available, otherwise it returns unavailable. Vehicle information includes: license plate number, trailer frame number, and box number.
[0095] It supports simple verification or full data verification mode, and the algorithm can be transplanted and embedded in OCR (optical character recognition) recognition equipment to achieve simple verification.
[0096] Based on the same inventive concept, the embodiment of the present application also provides a vehicle reservation information two-dimensional code parsing device for implementing the vehicle reservation information two-dimensional code parsing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more vehicle reservation information two-dimensional code parsing device embodiments provided below can refer to the limitations of the vehicle reservation information two-dimensional code parsing method above, and will not be repeated here.
[0097] In an exemplary embodiment, a vehicle reservation information two-dimensional code parsing device is provided, comprising:
[0098] The two-dimensional code parsing unit is used to parse the two-dimensional code image to obtain a character string text; the two-dimensional code image is obtained by using the above-mentioned vehicle reservation information two-dimensional code generation method.
[0099] The identification unit is used to identify the feature code number and the data to be decoded in the character string text; the data to be decoded is the encoded data in the above-mentioned vehicle reservation information two-dimensional code generation method.
[0100] The decoding unit is used to decode the data to be decoded according to the feature code number to obtain plain text data.
[0101] A verification unit is used to verify the plaintext data.
[0102] Based on the above method embodiments and device embodiments, the technical solution of the present application has the following technical effects.
[0103] 1. The reservation information is transmitted with a smaller amount of data or in an encrypted format.
[0104] 2. The appointment information is converted into a universal QR code format, which is no longer traditional plain text information. It does not require manual processing, which improves appointment efficiency.
[0105] 3. The strategy pattern can support rapid expansion of different requirements and improve reuse value.
[0106] 4. Provides a reservation standard, which can reduce development costs and improve development efficiency when connecting with third-party platforms.
[0107] In order to further illustrate the implementation of the above-mentioned method and device of the present application, the present application also provides the following embodiments.
[0108] Embodiment 1: Manual gate entry reservation procedures.
[0109] This example illustrates an implementation method for manually processing appointment procedures, such as Figure 3 As shown, the implementation steps include:
[0110] 01-1: The gate staff uses a QR code device to scan the reservation QR code to obtain the encoded reservation information, that is, a string of text.
[0111] The QR code scanning device can be a handheld device or a fixed device and must be connected to the operator's operating computer.
[0112] 01-2: Identify and decode the reservation information to obtain the plaintext data.
[0113] 01-3: Fill in the reservation information area on the webpage, and manually check whether the reservation information is valid. If it is valid, go through the gate entry procedures.
[0114] The specific identification and decoding process includes: identifying the feature code number, decoding the reservation information, and obtaining valid reservation complete data from the database according to the reservation information, so as to prepare for the subsequent filling in the reservation information box on the web page. If the decoding fails, the valid reservation information cannot be matched from the database, and an error message indicating that the reservation code is invalid is returned. If the decoding is successful and the reservation information contains complete reservation information, it will be automatically filled in the reservation information area on the web page, and manual review will be conducted to determine whether the application can be continued. The complete reservation information includes, but is not limited to: truck license plate number, frame number, container number, container pick-up reservation number, container entry deadline, container pick-up validity period, etc.
[0115] This example also provides a decoding device, such as Figure 4 As shown:
[0116] Identification unit 02-1: used to identify the feature number in the data after the QR code is parsed.
[0117] Decoding unit 02-2: used to call the corresponding decoding method according to the feature number obtained after identification in 02-1 to decode the data contained in the two-dimensional code into plain text reservation data.
[0118] Data unit 02-3: Based on the plain text reservation data decoded in 02-2, the interface provided by the terminal TOS is called to obtain the complete reservation data.
[0119] Example 2: Intelligent OCR recognizes the QR code to automatically handle the gate entry procedures.
[0120] This example illustrates a method for implementing automatic gate entry procedures based on intelligent recognition equipment. Figure 5 As shown, the implementation steps include:
[0121] 03-1: The intelligent OCR recognition device recognizes the QR code to obtain the encrypted reservation information and the vehicle information entering the gate.
[0122] Vehicle information includes but is not limited to: license plate number, vehicle type, front trunk number, and rear trunk number.
[0123] Intelligent OCR recognition equipment is usually a fixed-mounted camera.
[0124] 03-2: Pre-verification of appointment information.
[0125] 03-3: If the comparison fails, an error message will be returned. If the comparison passes, the gate entry procedure will be automatically processed.
[0126] 03-4: If the procedure fails, an error message indicating the reason for failure will be returned. If the procedure is successful, the gate barrier will be automatically raised.
[0127] The specific pre-verification process includes: the OCR device docking system recognizes and decodes the reservation information according to the embedded decoding algorithm; and compares the reservation information with the recognized vehicle information. The comparison information includes but is not limited to: vehicle license plate number, front box number, and rear box number.
[0128] The specific process of handling the gate entry formalities includes: calling the handling interface of the terminal TOS system. The interface receives the decoded reservation information.
[0129] This example uses a programmable intelligent OCR device, which supports non-human intervention verification methods. The solution provided is an automatic verification device, such as Figure 6 As shown, including:
[0130] Pre-verification unit 04-1: used for the OCR device to compare and verify the reservation information decoded by 03-2 with the vehicle information actually recognized by OCR.
[0131] Verification unit 04-2: used to compare and verify the complete reservation information obtained with 03-3 after 03-1 pre-verification passes.
[0132] Embodiment 3: Encrypted reservation information for dangerous goods to handle container pick-up procedures.
[0133] This example illustrates a method for implementing the procedure of picking up a box by encrypting the reservation information. Figure 7 As shown, the implementation steps include:
[0134] 05-1: The gate staff uses a QR code device to scan the appointment QR code to obtain the encrypted appointment information.
[0135] The QR code scanning device can be a handheld device or a fixed device and must be connected to the operator's operating computer.
[0136] 05-2: Identify and decode appointment information.
[0137] 05-3: Decrypt and verify the reservation information.
[0138] 05-4: Fill the verified reservation information into the reservation information area on the web page, and then manually check whether the reservation information is valid. If it is valid, the gate entry procedure will be carried out.
[0139] The specific identification and decoding process includes: identifying the feature number and decoding the reservation information.
[0140] The specific decryption and verification process includes: decrypting the reservation information and verifying the reservation information.
[0141] The decryption process includes: first obtaining the public key, and then using the public key to use RSA to decrypt the decrypted reservation information.
[0142] The verification process includes: comparing the decrypted reservation information with the reservation information in the database, and the verification items include but are not limited to: vehicle license plate number, frame number, box pick-up reservation number, box number. If all the verification items pass, the verification is marked as passed.
[0143] This example provides a decryption device, such as Figure 8 As shown, including:
[0144] Decryption unit 06-1: used to call the decryption method to decrypt the encrypted reservation information decoded by 05-2 into plain text reservation information.
[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0146] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A method for generating a vehicle reservation information QR code, characterized in that: include: Get vehicle reservation information; The vehicle reservation information includes: license plate number, trailer frame number, entry box number, reservation number, reservation validity deadline, operating time range, encoding and decoding mode, QR code validity deadline and verification level; The license plate number, trailer frame number, box number, reservation number, reservation validity deadline, operable time range, QR code validity deadline and verification level in the vehicle reservation information are spliced to obtain spliced data; According to the encoding and decoding mode, encoding the spliced data to obtain encoded data; Add a feature code number to the header of the encoded data to obtain the marked encoded data; the feature code number represents the encoding and decoding mode; Convert the marked coded data into a QR code image.
2. The method for generating a vehicle reservation information two-dimensional code according to claim 1, characterized in that: The verification levels include: a simple verification level and a full data verification level. The simple verification level is numbered S, and the full data verification level is numbered F.
3. The method for generating a vehicle reservation information two-dimensional code according to claim 1, characterized in that: The format of the splicing data is: #P-reservation number#T-license plate number#-C-trailer frame number#N-box number 1-box number 2-...-box number n#E-reservation validity deadline#W-operation start time-operation end time#Q-QR code validity deadline#K-verification level number#Z-anti-counterfeiting random code#; where n is the number of box numbers.
4. The method for generating a vehicle reservation information two-dimensional code according to claim 1, characterized in that: According to the encoding and decoding mode, the spliced data is encoded to obtain encoded data, which specifically includes: When the encoding and decoding mode is base64 mode, a base64 encoding algorithm is used to encode the spliced data into the encoded data; When the encoding and decoding mode is the key encryption and decryption mode, the base64 encoding algorithm is used to encode the spliced data into initial encoded data, and the DES algorithm is used to encrypt the initial encoded data using a preset key to obtain the encoded data.
5. A vehicle reservation information two-dimensional code generating device, characterized in that: The vehicle reservation information two-dimensional code generation device applies the vehicle reservation information two-dimensional code generation method according to any one of claims 1 to 4, and the vehicle reservation information two-dimensional code generation device comprises: A vehicle reservation information acquisition unit is used to acquire vehicle reservation information; the vehicle reservation information includes: license plate number, trailer frame number, entry box number, reservation number, reservation validity expiration date, operable time range, encoding and decoding mode, QR code validity expiration date and verification level; The vehicle reservation information preprocessing unit is used to splice the license plate number, trailer frame number, entry box number, reservation number, reservation validity deadline, operable time range, QR code validity deadline and verification level number in the vehicle reservation information to obtain spliced data; An encoding unit, used for encoding the spliced data according to a coding and decoding mode to obtain encoded data; A marking unit, used for adding a feature code number to the header of the coded data to obtain the marked coded data; the feature code number represents the encoding and decoding mode; The two-dimensional code generating unit is used to convert the marked coded data into a two-dimensional code image.
6. A vehicle reservation information two-dimensional code parsing method, characterized in that: include: Parse the QR code image to obtain the string text; The two-dimensional code image is obtained by using the vehicle reservation information two-dimensional code generation method according to any one of claims 1 to 4; Identify the feature code number and the data to be decoded in the string text; the data to be decoded is the coded data in the method for generating a vehicle reservation information two-dimensional code according to any one of claims 1 to 4; Decoding the data to be decoded according to the feature code number to obtain plaintext data; The plaintext data is verified.
7. The vehicle reservation information two-dimensional code parsing method according to claim 6, characterized in that: Decoding the data to be decoded according to the feature code number to obtain plaintext data specifically includes: When the encoding and decoding mode represented by the feature code number is the base64 mode, the base64 decoding algorithm is used to decode the data to be decoded to obtain plaintext data; When the encoding and decoding mode represented by the feature code number is a key encryption and decryption mode, the data to be decoded is decrypted using a preset key using a DES algorithm to obtain decrypted data, and the decrypted data is decoded using a base64 decoding algorithm to obtain the plaintext data.
8. The vehicle reservation information two-dimensional code parsing method according to claim 6, characterized in that: Verifying the plaintext data includes: Verify whether the current date satisfies the reservation validity deadline, the workable time range, and the QR code validity deadline in the plain text data, and obtain a first verification result; If the first verification result is passed, then verify the license plate number, trailer frame number, box number and reservation number in the plain text data according to the verification level in the plain text data to obtain a second verification result; If the second verification result is passed, then returning the available verification result; If the first verification result indicates failure, or the second verification result indicates failure, an unusable verification result is returned.
9. The vehicle reservation information two-dimensional code parsing method according to claim 8, characterized in that: According to the verification level in the plaintext data, the license plate number, trailer frame number, box number and reservation number in the plaintext data are verified to obtain a second verification result, which specifically includes: If the verification level is a simple verification level, the reservation number in the plain text data is compared with the reservation number in the database. If there is a reservation number in the database that is consistent with the reservation number in the plain text data, the second verification result is passed; otherwise, the second verification result is failed; If the verification level is the full data verification level, the reservation number in the plaintext data is compared with the reservation number in the database, and the license plate number, trailer frame number and box number in the plaintext data are compared with the actual license plate number, trailer frame number and box number respectively. When there is a reservation number in the database that is consistent with the reservation number in the plaintext data, and the license plate number, trailer frame number and box number in the plaintext data are consistent with the actual license plate number, trailer frame number and box number, the second verification result is passed; otherwise, the second verification result is failed.
10. A vehicle reservation information two-dimensional code parsing device, characterized in that: The vehicle reservation information two-dimensional code parsing device applies the vehicle reservation information two-dimensional code parsing method according to any one of claims 6 to 9, and the vehicle reservation information two-dimensional code parsing device comprises: A two-dimensional code parsing unit, used to parse the two-dimensional code image to obtain a string text; the two-dimensional code image is obtained by using the vehicle reservation information two-dimensional code generation method according to any one of claims 1 to 4; An identification unit, used for identifying the feature code number and the data to be decoded in the character string text; the data to be decoded is the coded data in the vehicle reservation information two-dimensional code generation method according to any one of claims 1 to 4; A decoding unit, used for decoding the data to be decoded according to the feature code number to obtain plaintext data; A verification unit is used to verify the plaintext data.