A parking lot charging management method and storage medium based on dual-network hot standby
By switching to the wireless network state when the parking lot system is offline and using the target recognition terminal to receive the recognition material to generate control instructions, the problem of inefficient passage caused by user manual input of information is solved, and efficient passage of the parking lot is achieved.
Patent Information
- Application Number
- CN202211426247.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-11-15
AI Technical Summary
When the parking lot system is offline, the user manually inputs vehicle information and entry and exit information, resulting in inefficiency in traffic, and the existing technology has not effectively solved it.
Using dual-network hot backup technology, the wired network status of the parking lot is switched to the wireless network status, and the target recognition terminal is used as the central networking node of the local area network, and receives identification materials through the wireless network and generates control instructions. The working terminal makes pass judgments based on the control instructions to avoid manual input.
It improves the traffic efficiency of the parking lot, ensures the normal operation of the working terminal at the entrance and exit of the parking lot, and reduces manual operation time.
Smart Images

Figure CN115713859B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent parking lots, and in particular, to a parking lot charging management method and a storage medium based on dual-network hot standby. Background Art
[0002] An intelligent parking lot refers to a parking lot that realizes intelligent services such as unattended operation, online payment of parking fees, and license plate recognition through a parking lot background management system.
[0003] In the prior art, the parking lot background management system of an intelligent parking lot is implemented through a cloud service platform, that is, the cloud service platform is responsible for processing and analyzing the parking data generated by the intelligent parking lot, so that the background management personnel can timely understand the entry and exit vehicle conditions in the parking lot through the parking data.
[0004] The process of the cloud service platform processing parking data is as follows: when the recognition terminal at the entrance and exit of the intelligent parking lot recognizes a vehicle, the license plate of the vehicle is recognized to obtain parking data, and the parking data is uploaded to the cloud service platform through a router. After analyzing the parking data, the cloud service platform generates a control instruction, and the recognition terminal can control the entry and exit of the vehicle through the control instruction.
[0005] If a network failure occurs due to reasons such as router failure or operator broadband failure, the recognition data generated by the recognition terminal cannot be uploaded to the cloud platform, which will cause the parking lot to malfunction. The patent of case number CN114299751A provides an emergency entry and exit method for parking lot system failures. The main solution is to switch to the emergency mode when the parking lot system is offline; in the emergency mode, obtain the vehicle information and entry and exit information input by the user; control the emergency entry and exit of the vehicle according to the vehicle information and entry and exit information, that is, after the device is offline, the vehicle owner needs to manually input the vehicle information and entry and exit information to perform emergency entry and exit. Therefore, for the above prior art, the inventor believes that when the parking lot system is offline, since the user manually inputting the vehicle information and entry and exit information will consume a large amount of operation time, the method of allowing the user to manually input the vehicle information and entry and exit information to pass will seriously affect the traffic efficiency of the parking lot. Summary of the Invention
[0006] In order to effectively improve the traffic efficiency of the parking lot, the present application provides a parking lot charging management method and a storage medium based on dual-network hot standby.
[0007] In a first aspect, a parking lot charging management method based on dual-network hot standby provided by the present application adopts the following technical solution:
[0008] A parking lot charging management method based on dual-network hot standby includes:
[0009] Obtain the wired network status of the local area network of the parking lot; the wired network status includes a network disconnection status and a network connection status; if the wired network status is the network disconnection status, obtain the working status of all identification terminals at the entrance / exit of the parking lot, and obtain the working terminals based on the working status;
[0010] Based on the preset target identification terminal at the entrance / exit of the parking lot, switch the wired network status to a wireless network status, and use the target identification terminal as the central networking node of the local area network, so that the target identification terminal broadcasts a network private address in the local area network and is received by the working terminals;
[0011] Obtain the identification materials identified and stored by the working terminals for incoming / outgoing vehicles, and transmit the identification materials to the target identification terminal through the local area network;
[0012] After the target identification terminal receives the identification materials, based on the target identification terminal, send the identification materials to a preset parking lot platform, so that the parking lot platform generates a control instruction based on the identification materials;
[0013] Obtain the control instruction based on the target identification terminal, and send the control instruction to the working terminals through the local area network, so that the working terminals execute the control instruction.
[0014] By adopting the above technical solution, when the wired network status is in an offline state, the wired network status is switched to a wireless network status, and the target identification terminal is used as the central networking node of the local area network, so that the target identification terminal broadcasts a network private address in the local area network and is received by the working terminals, that is, the parking lot platform will not disconnect the network connection with the target identification terminal, and can receive the identification materials through the wireless network and generate a control instruction for the identification materials. The working terminals can make a passage judgment based on the control instruction without manual input of information, effectively improving the passage efficiency of the parking lot.
[0015] Optionally, after obtaining the identification materials identified and stored by the working terminals and transmitting the identification materials to the target identification terminal through the local area network, it includes:
[0016] Obtain the number of materials of the identification materials received by the target identification terminal at the receiving moment;
[0017] Use the receiving moment corresponding to the number of materials greater than a preset quantity threshold as the outbreak moment, and use the working terminals corresponding to the identification materials as the outbreak working terminals;
[0018] Obtain the data block length of the identification materials sent by each outbreak working terminal;
[0019] Obtain the bandwidth of the local area network;
[0020] Based on the bandwidth and the data block length, calculate the transmission delay of the burst working terminal;
[0021] Obtain the transmission distance between each burst working terminal and the target recognition terminal;
[0022] Based on the preset information transmission rate and the transmission distance, calculate the propagation delay of the burst working terminal;
[0023] Based on the transmission delay and the propagation delay, determine the reception priority of the recognition material for the target recognition terminal, so that the target recognition terminal receives the recognition material based on the reception priority.
[0024] By adopting the above technical solution, when the target recognition terminal receives recognition materials sent by multiple working terminals at the same time, the reception priority of the recognition materials for the target recognition terminal is determined through the transmission delay and the propagation delay. After determining the reception priority of the recognition materials, the priority of the working terminal receiving the control instruction can be determined, thereby ensuring the normal operation of the working terminal at the entrance and exit of the parking lot, and thus facilitating the effective improvement of the traffic efficiency of the parking lot.
[0025] Optionally, after obtaining the data block length of the recognition material sent by each burst working terminal, it includes:
[0026] Based on a preset data compression algorithm, compress the data block length greater than the preset data length threshold, and obtain the target data block length;
[0027] Judge whether the ratio of the target data block length to the data block length is less than a preset ratio threshold;
[0028] If it is less than the ratio threshold, determine that the compression of the target data block length fails, and recompress the data block length until the data block length is successfully compressed.
[0029] By adopting the above technical solution, since the transmission delay is related to the data block length, compressing the data block length is beneficial to reducing the transmission delay, shortening the time for the working terminal to receive the control instruction, and thus effectively improving the traffic efficiency of the parking lot.
[0030] Optionally, the determining the reception priority of the recognition material for the target recognition terminal based on the transmission delay and the propagation delay includes:
[0031] Based on the transmission delay and the propagation delay, calculate the transmission delay;
[0032] Obtain the terminal priority of each of the burst working terminals;
[0033] Based on the transmission delay and the terminal priority, determine the reception priority of the target recognition terminal for the recognition material.
[0034] By adopting the above technical solution, the reception priority of the target recognition terminal for the recognition material is determined by the transmission delay and the terminal priority, effectively ensuring the normal operation of the working terminals at the parking lot entrance and exit, thereby facilitating the effective improvement of the traffic efficiency of the parking lot.
[0035] Optionally, the determining the reception priority of the target recognition terminal for the recognition material based on the transmission delay and the terminal priority includes:
[0036] Obtain the delay coefficient corresponding to the transmission delay based on a preset coefficient database;
[0037] Multiply the transmission delay by the delay coefficient to obtain a first result;
[0038] Add the first result to the terminal priority to obtain a second result;
[0039] Based on a preset range database, obtain the result range in which the second result is located, and obtain the result coefficient corresponding to the result range based on the range database;
[0040] Substitute the transmission delay, the delay coefficient, the terminal priority, and the result coefficient into a preset priority calculation formula to obtain the reception priority of the target recognition terminal for the recognition material;
[0041] The priority calculation formula is as follows:
[0042]
[0043] Wherein, Y is the reception priority, k is the delay coefficient, A is the transmission delay, B is the terminal priority, and δ is the result coefficient.
[0044] By adopting the above technical solution, the reception priority of the target terminal for the recognition material is obtained from the priority calculation formula. According to this priority calculation formula, it is convenient to determine the priority of the working terminals at the parking lot entrance and exit receiving the control instruction, thereby effectively ensuring the normal operation of the parking lot and effectively improving the traffic efficiency of the parking lot.
[0045] Optionally, after obtaining the control instruction based on the target recognition terminal and sending the control instruction to the working terminal through the local area network, it includes:
[0046] Take the receiving time corresponding to the number of the materials that is not greater than a preset quantity threshold as a non-outbreak time, and at the non-outbreak time, obtain the running duration of the target recognition terminal;
[0047] Judge whether the running duration is greater than a preset duration threshold;
[0048] If it is greater than the duration threshold, take a preset standby recognition terminal as the target recognition terminal.
[0049] By adopting the above technical solution, when the running duration of the target recognition terminal is greater than the duration threshold, that is, taking the standby recognition terminal as the target recognition terminal, the probability that the target recognition terminal fails due to too long running time is reduced, effectively ensuring the normal operation of the target recognition terminal, and further effectively ensuring the operation of the parking lot.
[0050] Optionally, after calculating the transmission delay based on the sending delay and the propagation delay, it includes:
[0051] Obtain an influencing factor that affects the transmission delay;
[0052] Based on a preset transmission delay calculation formula, construct a mathematical model, and perform stochastic simulation on the mathematical model to obtain a simulation result;
[0053] Based on a preset optimization algorithm, optimize the simulation result to obtain an optimization function;
[0054] Based on the optimization function and the transmission delay calculation formula, obtain the interference coefficient of the influencing factor on the transmission delay.
[0055] By adopting the above technical solution, since the influencing factor may interfere with the transmission delay, the interference coefficient is obtained through the optimization function and the transmission delay calculation formula, which is beneficial to intuitively see the interference of the influencing factor on the transmission delay.
[0056] Optionally, after obtaining the interference coefficient of the influencing factor on the transmission delay, it includes:
[0057] Based on the interference coefficient, adjust the receiving priority to obtain a final priority, so that the target recognition terminal receives the recognition materials based on the final priority;
[0058] Send the transmission delay corresponding to the recognition materials to the vehicle terminal of the in / out vehicle corresponding to the recognition materials.
[0059] By adopting the above technical solution, after knowing the interference coefficient, by adjusting the receiving priority, it further effectively ensures the normal reception of the control instructions by the working terminals in the parking lot, and further effectively ensures the operation of the parking lot.
[0060] Optionally, adjusting the reception priority based on the interference coefficient to obtain the final priority includes:
[0061] Multiplying the interference coefficient by the reception priority to obtain the final priority.
[0062] By adopting the above technical solution, the final priority is obtained by multiplying the interference coefficient by the reception priority, effectively ensuring the normal reception of control instructions by the working terminals in the parking lot, and thus effectively ensuring the operation of the parking lot.
[0063] In a second aspect, a computer-readable storage medium provided by the present application adopts the following technical solution:
[0064] A computer-readable storage medium stores a computer program. When the computer program is loaded and executed by a processor, the above-mentioned parking lot charging management method based on dual-network hot standby is adopted.
[0065] By adopting the above technical solution, by generating a computer program for the above-mentioned parking lot charging management method based on dual-network hot standby and storing it in a computer-readable storage medium to be loaded and executed by a processor, the computer-readable storage medium facilitates the readability and storage of the computer program.
[0066] In summary, the present application has at least one of the following beneficial technical effects:
[0067] 1. When the wired network status is offline, the wired network status is switched to the wireless network status, and the target recognition terminal is used as the central networking node of the local area network. The target recognition terminal broadcasts the network private address in the local area network and is received by the working terminal. That is, the parking lot platform will not disconnect the network connection with the target recognition terminal, and can receive the recognition materials through the wireless network and generate control instructions for the recognition materials. The working terminal can make a passage judgment based on the control instructions without manual input of information, effectively improving the passage efficiency of the parking lot.
[0068] 2. The reception priority of the target recognition terminal for the recognition materials is determined by the transmission delay and the terminal priority, effectively ensuring the normal operation of the working terminals at the entrance and exit of the parking lot, and thus facilitating the effective improvement of the passage efficiency of the parking lot.
[0069] 3. Since the transmission delay is related to the data block length, compressing the data block length is beneficial to reducing the transmission delay, shortening the time for the working terminal to receive the control instruction, and thus effectively improving the passage efficiency of the parking lot. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0071] Figure 2 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0072] Figure 3 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0073] Figure 4 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0074] Figure 5 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0075] Figure 6 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0076] Figure 7 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application.
[0077] Figure 8 It is a schematic flowchart of one implementation manner of a parking lot toll management method based on dual-network hot standby according to an embodiment of the present application. Specific implementation manner
[0078] The following will further describe the present application in detail with reference to the appended Figures 1 to 8 drawings.
[0079] The embodiment of the present application discloses a parking lot toll management method based on dual-network hot standby.
[0080] Referring to Figure 1 , a parking lot toll management method based on dual-network hot standby includes the following steps:
[0081] S101. Obtain the wired network status of the local area network of the parking lot; the wired network status includes a network disconnection status and a network connection status.
[0082] Before a network failure occurs due to reasons such as router failures or operator broadband failures, that is, when the network has not failed, all identification terminals in the parking lot access the Internet, i.e., the cloud platform, through a wired network. All identification terminals in the parking lot form a wired local area network through network cables and optical fibers. A wired local area network refers to a network system that connects computer devices at different physical locations within a few kilometers and can communicate with each other and share resources with the support of network software. In the wired local area network, when the network, i.e., the Internet, has not failed, it is in a network connection state; if the network fails, it is in a network disconnection state.
[0083] S102. If the wired network state is a network disconnection state, obtain the working states of all identification terminals at the entrance / exit of the parking lot, and obtain the working terminals based on the working states.
[0084] There are an exit and an entrance in the parking lot. At the exit and entrance of the parking lot, identification terminals are both set up to take pictures and identify the license plate numbers of vehicles. At the entrance of the parking lot, after the identification terminal takes pictures and identifies the license plate number of the vehicle, the vehicle can be released; at the exit of the parking lot, after the identification terminal takes pictures and identifies the license plate number of the vehicle, a payment order is generated, and the vehicle can only pass after paying the payment order.
[0085] In this embodiment, the identification terminal includes a license plate recognition module, an LCD display module, a voice broadcast module, and a gate control module; the working states include the working state and the non-working state. The working terminal refers to the identification terminal in the working state, and the identification terminal in the non-working state is a rest terminal.
[0086] S103. Based on the preset target identification terminal at the entrance / exit of the parking lot, switch the wired network state to a wireless network state, and use the target identification terminal as the central networking node of the local area network, so that the target identification terminal broadcasts the network private address in the local area network and is received by the working terminals.
[0087] The target identification terminal refers to an identification terminal with a wireless module. The wireless module can be a 4G communication module, a 5G communication module, etc. If the wired network state is a network disconnection state, the wired network state can be switched to a wireless network state based on the wireless module built in the target identification terminal. In a specific implementation, the network topology of the local area network in the wireless network state is a star topology. The star topology includes a central networking node and multiple sub-nodes, and the multiple nodes are connected to the central networking node in a point-to-point manner.
[0088] In this embodiment, if the Internet is disconnected, the target identification terminal automatically switches the wired gateway to a wireless gateway through the dual-network hot standby function. For example, a 4G gateway or a 5G gateway, etc.
[0089] After using the target recognition terminal as the central networking node of the local area network, the target recognition terminal broadcasts the network private address, i.e., the local area network IP address, in the local area network and declares itself as the central networking node in the local area network.
[0090] S104. Obtain the recognition materials recognized and stored by the working terminal for incoming / outgoing vehicles, and transmit the recognition materials to the target recognition terminal through the local area network.
[0091] The recognition materials refer to vehicle capture pictures, license plate numbers, etc. In specific implementation, if the entrance is offline, at this time, the recognition terminal only needs to take a picture of the license plate number and recognize the vehicle information, and then send the recognition materials, i.e., the vehicle information, to the target recognition terminal; if the exit is offline, at this time, the recognition terminal needs to take a picture of the vehicle and recognize the vehicle information, and send the recognition materials to the target recognition terminal. The vehicle information in this embodiment refers to license plate information, vehicle capture images, etc.
[0092] S105. After the target recognition terminal receives the recognition materials, based on the target recognition terminal, send the recognition materials to the preset parking lot platform, so that the parking lot platform generates a control instruction based on the recognition materials.
[0093] The current execution entity obtains the recognition materials through the working terminal, and sends the recognition materials to the target recognition terminal through the wired local area network. The parking lot platform issues an authentication instruction, i.e., a control instruction, to the target recognition terminal, and the target recognition terminal then forwards the authentication instruction, i.e., the control instruction, to the working terminal through the wired local area network.
[0094] S106. Based on the target recognition terminal, obtain the control instruction, and send the control instruction to the working terminal through the local area network, so that the working terminal executes the control instruction.
[0095] After the parking lot platform generates the control instruction, it immediately sends the control instruction to the target recognition terminal. At this time, the control instruction can be obtained through the target recognition terminal, and the control instruction is sent to the working terminal through the local area network, so that the working terminal makes a passage judgment based on the control instruction. As can be seen from step S105, the control instruction includes release, release after payment, and prohibited passage. If the control instruction is release, the working terminal immediately releases the vehicle at this time; if the control instruction is release after payment, the payment QR code is displayed on the LCD display module of the working terminal at this time, and the voice playback module issues a voice prompt. Only after the user pays can the vehicle be released; if the control instruction is prohibited passage, the gate control module controls the gate not to open and prohibits the vehicle from passing.
[0096] The implementation principle of this embodiment is as follows: when the wired network status is offline, the wired network status is switched to the wireless network status, and the target recognition terminal is used as the central networking node of the local area network. The target recognition terminal broadcasts the network private address in the local area network and is received by the working terminal. That is, the parking lot platform will not disconnect the network connection with the target recognition terminal, and can receive the recognition materials through the wireless network and generate control instructions for the recognition materials. The working terminal can then make a passage judgment based on the control instructions without manual input of information, effectively improving the passage efficiency of the parking lot.
[0097] After Figure 1 in the step S104 of the embodiment shown, if the target recognition terminal receives multiple recognition materials at the same time, to ensure the normal operation of the parking lot at this time, the reception priority can be set so that the target recognition terminal receives the recognition materials based on the reception priority. Specifically, it is described in detail through Figure 2 the implementation manner shown.
[0098] Referring to Figure 2 , after obtaining the recognition materials recognized and stored by the working terminal and transmitting the recognition materials to the target recognition terminal through the local area network, the following steps are included:
[0099] S201. Obtain the number of materials of the recognition materials received by the target recognition terminal at the receiving moment.
[0100] The target recognition terminal receives multiple recognition materials sent by multiple working terminals at the same time, but multiple working terminals may send recognition materials at different times. If the target recognition terminal receives 5 recognition materials at time A, the number of materials of the recognition materials is 5.
[0101] S202. Take the receiving moment corresponding to the number of materials greater than the preset quantity threshold as the burst moment, and take the working terminal corresponding to the recognition material as the burst working terminal.
[0102] The burst moment refers to the moment when the number of materials received by the target recognition terminal is greater than the quantity threshold, and the working terminals corresponding to the multiple recognition materials received by the target recognition terminal are taken as the burst working terminals. It should be noted that the moments when the burst working terminals send the recognition materials may be different. It should be noted that all the working terminals corresponding to the multiple recognition materials received by the target recognition terminal are called burst working terminals.
[0103] S203. Obtain the data block length of the recognition materials sent by each burst working terminal.
[0104] The data block length refers to the length of the data transmitted or stored in the computer, and the unit is bit.
[0105] S204. Obtain the bandwidth of the local area network.
[0106] Bandwidth refers to the maximum data rate that the network can pass through. In this embodiment, the bandwidth of the wired local area network depends on the types of network interfaces of the switch and the router.
[0107] S205. Calculate the transmission delay of the burst working terminal based on the bandwidth and the data block length.
[0108] The transmission delay refers to the time consumed by the working terminal when sending the recognition material, that is, from the moment when the first bit of the data block of the recognition material starts to be sent to the time when the last bit of the data block is sent. Transmission delay = data block length / bandwidth. For example, if the data block length is 10 7 bit and the bandwidth is 100 Mbps, that is, 100 MB / s, then the transmission delay = 10 7 / 10 8 = 0.1 s.
[0109] S206. Obtain the transmission distance between each burst working terminal and the target recognition terminal.
[0110] The information of the burst working terminal and the target recognition terminal is transmitted through the transmission medium, then the transmission distance refers to the length of the transmission medium. In this embodiment, the target recognition terminal and the burst working terminal are connected by wire, then the length of the transmission medium refers to the length of the wire.
[0111] S207. Calculate the propagation delay of the burst working terminal based on the preset information transmission rate and the transmission distance.
[0112] The propagation delay refers to the time spent by the recognition material in propagating through the transmission medium, that is, from the moment when the target recognition terminal sends the recognition material to the time when the target recognition terminal receives the recognition material, the total elapsed time. Propagation delay = transmission distance / information transmission rate. For example, if the transmission distance is 20000 meters and the information transmission rate is 2×10 8 m / s, then the propagation delay = 20000 / 2×10 8 = 10 -4 s.
[0113] S208. Determine the reception priority of the recognition material for the target recognition terminal based on the transmission delay and the propagation delay, so that the target recognition terminal receives the recognition material based on the reception priority.
[0114] According to the transmission delay and the propagation delay, the time for the recognition material to be transmitted from the burst working terminal to the target recognition terminal can be obtained, which is the sum of the transmission time and the propagation delay. According to the transmission time and the propagation delay, the moment when the burst working terminal transmits the recognition material can be obtained. In this embodiment, according to the moment when the burst working terminal transmits the recognition material, the reception priority of the recognition material can be determined, that is, the earlier the burst working terminal transmits the recognition material, the higher the priority.
[0115] For the parking lot toll management method based on dual-network hot standby provided by this embodiment, when the target recognition terminal receives recognition materials sent by multiple working terminals at the same time, the reception priority of the recognition materials by the target recognition terminal is determined through the transmission delay and the propagation delay. After determining the reception priority of the recognition materials, the priority of the working terminal receiving the control instruction can be determined, thereby ensuring the normal operation of the working terminals at the entrances and exits of the parking lot, and thus facilitating the effective improvement of the traffic efficiency of the parking lot.
[0116] In Figure 2 After step S203 of the shown embodiment, if the data block length of the recognition material is large, it will affect the transmission delay. Therefore, the recognition material can be compressed and then transmitted to reduce the transmission delay. Specifically, it is described in detail through Figure 3 the shown embodiment.
[0117] Referring to Figure 3 , after obtaining the data block lengths of the recognition materials sent by each burst working terminal, the following steps are included:
[0118] S301. Based on a preset data compression algorithm, compress the data block lengths greater than the preset data length threshold, and obtain the target data block lengths.
[0119] Data compression refers to a technical method that reduces the data volume without losing information to reduce the storage space and improve the transmission, storage, and processing efficiency. It is used to reduce the data volume during the data transmission or transfer process. The data compression algorithm is used to compress the data block lengths of the recognition materials.
[0120] The data compression algorithm can be the PLE algorithm, Huffman algorithm, Rice algorithm, etc. This embodiment does not limit this.
[0121] S302. Judge whether the ratio of the target data block length to the data block length is less than the preset ratio threshold.
[0122] If the ratio of the target data block length to the data block length is less than the ratio threshold, it indicates that the compressed data is quite different from the uncompressed data, indicating that the compression of the target data block length fails.
[0123] S303. If it is less than the ratio threshold, determine that the compression of the target data block length fails, and recompress the data block length until the data block length is successfully compressed.
[0124] If the compression of the target data block length fails, the data block length is recompressed based on the data compression algorithm until the data block length is successfully compressed. It should be noted that in specific implementations, if the compression fails after exceeding the preset number threshold of compression times, at this time, the data compression algorithm can be replaced or the data block length can be compressed manually through compression software.
[0125] If the ratio of the target data block length to the data block length is greater than or equal to the ratio threshold, no action is taken.
[0126] In the parking lot toll management method based on dual-network hot standby provided by this embodiment, since the transmission delay is related to the data block length, compressing the data block length is beneficial to reducing the transmission delay, shortening the time for the working terminal to receive the control instruction, and thus effectively improving the passing efficiency of the parking lot.
[0127] In Figure 2 In step S208 of the embodiment shown, when the transmission delay and the propagation delay are known, the receiving priority of the target recognition terminal for the recognition material can be determined through the terminal priority. Specifically, it is described in detail through Figure 4 the embodiment shown.
[0128] Referring to Figure 4 , based on the transmission delay and the propagation delay, determining the receiving priority of the target recognition terminal for the recognition material includes the following steps:
[0129] S401. Calculate the transmission delay based on the transmission delay and the propagation delay.
[0130] The transmission delay refers to the time required for the burst working terminal to transmit the recognition material to the target recognition terminal, that is, the transmission delay = transmission delay + propagation delay. Based on steps S205 and S207, for example, if the transmission delay is 0.1 s and the propagation delay is 10 -4 s, then the transmission delay = 0.1 s + 10 -4 s = 0.1001 s.
[0131] S402. Obtain the terminal priority of each burst working terminal.
[0132] In this embodiment, all recognition terminals in the parking lot are preset with terminal priorities, that is, each burst working terminal is preset with a terminal priority. Therefore, the recognition material sent by the burst working terminal with a higher priority will be preferentially received by the target recognition terminal.
[0133] S403. Determine the receiving priority of the target recognition terminal for the recognition material based on the transmission delay and the terminal priority.
[0134] In this embodiment, the receiving priority of the target recognition terminal for the recognition material is jointly determined by the transmission delay and the terminal priority.
[0135] In the first embodiment, based on a preset intermediate delay, the transmission delay is divided into a first transmission delay and a second transmission delay. For example, if the intermediate delay is set to 0.1005 seconds, the transmission delay less than the intermediate delay is taken as the first transmission delay, and the transmission delay not less than the intermediate delay is taken as the second transmission delay. If the transmission delay is 0.2 seconds, since 0.2 seconds is greater than the intermediate delay, 0.2 seconds is the second transmission delay; similarly, based on the intermediate priority, the terminal priority is divided into a high priority and a low priority. The priority less than or equal to the intermediate priority is taken as the low priority, and the priority not less than the intermediate priority is taken as the high priority. For example, if there are a total of four priorities and the intermediate priority is the third priority, then the first priority and the second priority are high priorities, and the third priority and the fourth priority are low priorities. If the priority is the second priority, then the second priority is a high priority. The receiving priority of the target recognition terminal for the recognition material determined based on the transmission delay and the terminal priority is shown in the following table:
[0136] Transmission delay Terminal priority Receiving priority First transmission delay Lower priority Fourth receiving priority Second transmission delay Higher priority First receiving priority First transmission delay Higher priority Third receiving priority Second transmission delay Lower priority Second receiving priority
[0137] In the second embodiment, the receiving priority of the target recognition terminal for the recognition material is obtained by substituting the transmission delay and the terminal priority into a preset priority calculation formula.
[0138] For the parking lot toll management method based on dual-network hot standby provided in this embodiment, the receiving priority of the target recognition terminal for the recognition material is determined by the transmission delay and the terminal priority, effectively ensuring the normal operation of the working terminals at the entrance and exit of the parking lot, and thus facilitating the effective improvement of the traffic efficiency of the parking lot.
[0139] In Figure 4 In step S403 of the embodiment shown, the receiving priority of the target recognition terminal for the recognition material is obtained by substituting the transmission delay and the terminal priority into a preset priority calculation formula. Specifically, it is described in detail through Figure 5 the embodiment shown.
[0140] Referring to Figure 5 , based on the transmission delay and the terminal priority, determining the receiving priority of the target recognition terminal for the recognition material includes the following steps:
[0141] S501. Obtain the delay coefficient corresponding to the transmission delay based on a preset coefficient database.
[0142] The coefficient database stores the transmission delay and the delay coefficient corresponding to the transmission delay. Different transmission delays correspond to different delay coefficients. The delay coefficient is used to balance the large difference in transmission delays, thereby ensuring the accuracy of calculating the reception priority based on the transmission delay.
[0143] S502. Multiply the transmission delay by the delay coefficient to obtain a first result.
[0144] For example, if the transmission delay is 0.2 seconds and the delay coefficient is 0.5, the first result is 0.1.
[0145] S503. Add the first result to the terminal priority to obtain a second result.
[0146] If the terminal priority is 2, i.e., the second priority, the second result is 0.1 + 2 = 2.1.
[0147] S504. Based on a preset range database, obtain the result range in which the second result is located, and obtain the result coefficient corresponding to the result range based on the range database.
[0148] The range database stores the result range of the second result and the result coefficient corresponding to the result range. If the result range is from 1.8 to 2.5 and the result coefficient is 0.3, then if the second result is 2.1, it is within this result range and the result coefficient corresponding to the result range is 0.3. The result coefficient is used to optimize the second result.
[0149] S505. Substitute the transmission delay, the delay coefficient, the terminal priority, and the result coefficient into a preset priority calculation formula to obtain the reception priority of the target recognition terminal for the recognition material.
[0150] The priority calculation formula is as follows:
[0151]
[0152] Where Y is the reception priority, k is the delay coefficient, A is the transmission delay, B is the terminal priority, and δ is the result coefficient.
[0153] Based on steps S502 to S504, when kA + B is 2.1 and δ is 0.3, Y = 2.1 / 0.3 = 7. In this embodiment, the larger the value of Y, the higher the reception priority of the target recognition terminal for the recognition material.
[0154] For the parking lot toll management method based on dual-network hot standby provided by this embodiment, the reception priority of the target terminal for the recognition material is obtained from the priority calculation formula. According to this priority calculation formula, it is convenient to determine the priority of the working terminal at the parking lot entrance and exit to receive the control instruction, thereby effectively ensuring the normal operation of the parking lot and effectively improving the passing efficiency of the parking lot.
[0155] After Figure 1 step S106 of the embodiment shown, if the target recognition terminal runs for too long, the target recognition terminal can be replaced to reduce the probability of the target recognition terminal malfunctioning. Specifically, it is described in detail through Figure 6 the embodiment shown.
[0156] Referring to Figure 6 , after obtaining the control instruction based on the target recognition terminal and sending the control instruction to the working terminal through the local area network, the following steps are included:
[0157] S601: Take the reception moment corresponding to the material quantity not greater than the preset quantity threshold as the non-outbreak moment, and at the non-outbreak moment, obtain the running duration of the target recognition terminal.
[0158] If the material quantity received by the target recognition terminal is not greater than the quantity threshold, it is determined that this is the non-outbreak moment. At this time, the recognition materials can be received only according to one of the transmission delay or the terminal priority. At the non-outbreak moment, that is, obtain the running duration of the target recognition terminal.
[0159] S602: Determine whether the running duration is greater than the preset duration threshold.
[0160] If the running duration is greater than the duration threshold, it indicates that the target recognition terminal runs for too long.
[0161] S603: If it is greater than the duration threshold, use the preset standby recognition terminal as the target recognition terminal.
[0162] If the target recognition terminal runs for too long, then use the standby recognition terminal as the target recognition terminal. At this time, the original target recognition terminal only serves as a recognition terminal. It should be noted that the standby recognition terminal is a recognition terminal with a wireless module.
[0163] If the running duration is not greater than the duration threshold, no action is taken.
[0164] For the parking lot toll management method based on dual-network hot standby provided by this embodiment, when the running duration of the target recognition terminal is greater than the duration threshold, the standby recognition terminal is used as the target recognition terminal, reducing the probability of the target recognition terminal malfunctioning due to running for too long, effectively ensuring the normal operation of the target recognition terminal, and thus effectively ensuring the operation of the parking lot.
[0165] After Figure 4 step S401 of the embodiment shown, since there may be errors in the transmission delay, that is, there are influencing factors, it is necessary to calculate the interference coefficient to facilitate understanding the influence of the influencing factors on the transmission delay. Specifically, it is described in detail through Figure 7 the embodiment shown.
[0166] Reference Figure 7 , after calculating the transmission delay based on the sending delay and the propagation delay, the following steps are included:
[0167] S701. Obtain the influencing factors that affect the transmission delay.
[0168] In this embodiment, the influencing factors include the number of interference signal sources within the preset range of each identification terminal, the local cache space of each identification terminal, and the running time of each identification terminal, etc. The influencing factors need to be investigated and input by the staff.
[0169] S702. Based on the preset transmission delay calculation formula, construct a mathematical model, and perform stochastic simulation on the mathematical model to obtain the simulation results.
[0170] The transmission delay calculation formula is: T = B / M + S / V, where T is the transmission delay, B is the data block length, M is the bandwidth, S is the transmission distance, and V is the information transmission rate.
[0171] After constructing the mathematical model based on the transmission delay calculation formula, that is, performing stochastic simulation on the mathematical model based on the stochastic simulation algorithm, the simulation results are discrete data. Stochastic simulation refers to imitating the operation process of various actual systems on a computer through a computer program, and understanding the behavior or characteristics of the system changing with time through calculation.
[0172] S703. Optimize the simulation results based on the preset optimization algorithm to obtain the optimization function.
[0173] The optimization algorithm is used to optimize the simulation results. Specifically, first fit the offline data of the simulation results, and finally obtain the optimization function. It should be noted that the optimization function is a curve with influencing factors, which is different from the function curve of the transmission delay calculation formula.
[0174] S704. Based on the optimization function and the transmission delay calculation formula, obtain the interference coefficient of the influencing factor on the transmission delay.
[0175] In this embodiment, since the transmission distance increases as the transmission delay increases in the transmission delay calculation formula, under the influence of the influencing factor, the obtained optimization function still has the transmission distance increasing as the transmission delay increases, but the transmission distance at the initial moment (0 moment) of the optimization function is different from the initial transmission distance of the transmission delay calculation formula. Therefore, in this embodiment, the increased transmission distance at the 0 moment of the optimization function is the interference coefficient.
[0176] In the parking lot toll management method based on dual-network hot standby provided by this embodiment, since the influencing factor may interfere with the transmission delay, obtaining the interference coefficient through the optimization function and the transmission delay calculation formula is beneficial to intuitively see the interference of the influencing factor on the transmission delay.
[0177] In Figure 7 In step S704 of the illustrated embodiment, after obtaining the interference coefficient, the receiving priority needs to be adjusted to obtain the final priority. Specifically, it will be described in detail through Figure 8 the illustrated embodiment.
[0178] Referring to Figure 8 , after obtaining the interference coefficient of the influence factor on the transmission delay, the following steps are included:
[0179] S801. Based on the interference coefficient, adjust the receiving priority to obtain the final priority, so that the target recognition terminal receives the recognition material based on the final priority.
[0180] In this embodiment, by multiplying the interference coefficient by the receiving priority, the final priority is obtained to adjust the receiving priority.
[0181] S802. Send the transmission delay corresponding to the recognition material to the vehicle terminal of the in / out vehicle corresponding to the recognition material.
[0182] Send the transmission delay to the vehicle terminal to prompt the user's waiting time, so as to improve the user experience.
[0183] The parking lot charging management method based on dual-network hot standby provided by this embodiment, after knowing the interference coefficient, further effectively ensures the normal reception of control instructions by the working terminals in the parking lot by adjusting the receiving priority, and thus effectively ensures the operation of the parking lot.
[0184] This application embodiment also discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program. Among them, when the computer program is executed by a processor, the parking lot charging management method based on dual-network hot standby in the above embodiment is adopted.
[0185] Among them, the computer program can be stored in a computer-readable medium. The computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some middleware form, etc. The computer-readable medium includes any entity or device, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the computer-readable medium includes but is not limited to the above components.
[0186] Among them, through this computer-readable storage medium, the parking lot toll management method based on dual-network hot standby in the above embodiments is stored in the computer-readable storage medium, and is loaded and executed on the processor to facilitate the storage and application of the above method.
[0187] The above are all preferred embodiments of this application. The protection scope of this application is not limited accordingly. Therefore, all equivalent changes made according to the structure, shape, and principle of this application should be covered within the protection scope of this application.
Claims
1. A parking lot toll management method based on dual-network hot standby, characterized in that, Including: Obtain the wired network status of the local area network of the parking lot; The wired network status includes a network disconnection status and a network connection status; If the wired network status is the network disconnection status, obtain the working status of all identification terminals at the entrance / exit of the parking lot, and obtain the working terminals based on the working status; Based on the preset target identification terminal at the entrance / exit of the parking lot, switch the wired network status to a wireless network status, and use the target identification terminal as the central networking node of the local area network, so that the target identification terminal broadcasts a network private address in the local area network and is received by the working terminals; Obtain the identification materials identified and stored by the working terminals for incoming / outgoing vehicles, and transmit the identification materials to the target identification terminal through the local area network; Obtain the number of pieces of the identification materials received by the target identification terminal at the receiving moment; Use the receiving moment corresponding to the number of pieces of the materials greater than a preset quantity threshold as the burst moment, and use the working terminal corresponding to the identification materials as the burst working terminal; Obtain the data block length of the identification materials sent by each of the burst working terminals; Obtain the bandwidth of the local area network; Based on the bandwidth and the data block length, calculate the transmission delay of the burst working terminal; Obtain the transmission distance between each of the burst working terminals and the target identification terminal; Based on a preset information transmission rate and the transmission distance, calculate the propagation delay of the burst working terminal; Based on the transmission delay and the propagation delay, determine the reception priority of the target identification terminal for the identification materials, so that the target identification terminal receives the identification materials based on the reception priority; After the target identification terminal receives the identification materials, based on the target identification terminal, send the identification materials to a preset parking lot platform, so that the parking lot platform generates a control instruction based on the identification materials; Based on the target identification terminal, obtain the control instruction, and send the control instruction to the working terminal through the local area network, so that the working terminal executes the control instruction.
2. The parking lot toll management method based on dual-network hot standby according to claim 1, characterized in that, After obtaining the data block length of the identification materials sent by each of the burst working terminals, including: Based on a preset data compression algorithm, compress the data block length greater than a preset data length threshold, and obtain a target data block length; Judge whether the ratio of the target data block length to the data block length is less than a preset ratio threshold; If it is less than the ratio threshold, determine that the compression of the target data block length fails, and re-compress the data block length until the data block length is successfully compressed.
3. The parking lot toll management method based on dual-network hot standby according to claim 1, characterized in that The determining the reception priority of the target identification terminal for the identification materials based on the transmission delay and the propagation delay includes: Based on the transmission delay and the propagation delay, calculate the transmission delay; Obtain the terminal priority of each of the burst working terminals; Based on the transmission delay and the terminal priority, determine the reception priority of the target identification terminal for the identification materials.
4. The parking lot toll management method based on dual-network hot standby according to claim 3, wherein, Determining the receiving priority of the target recognition terminal for the recognition material based on the transmission delay and the terminal priority includes: Obtaining the delay coefficient corresponding to the transmission delay based on a preset coefficient database; Multiplying the transmission delay by the delay coefficient to obtain a first result; Adding the first result to the terminal priority to obtain a second result; Based on a preset range database, obtaining the result range in which the second result is located, and obtaining the result coefficient corresponding to the result range based on the range database; Substituting the transmission delay, the delay coefficient, the terminal priority, and the result coefficient into a preset priority calculation formula to obtain the receiving priority of the target recognition terminal for the recognition material; The priority calculation formula is as follows: Wherein, Y is the receiving priority, k is the delay coefficient, A is the transmission delay, B is the terminal priority, and δ is the result coefficient.
5. A parking lot toll management method based on dual-network hot standby according to claim 3, characterized in that, After calculating the transmission delay based on the sending delay and the propagation delay, it includes: Obtaining an influencing factor that affects the transmission delay; Based on a preset transmission delay calculation formula, constructing a mathematical model and performing stochastic simulation on the mathematical model to obtain a simulation result; Optimizing the simulation result based on a preset optimization algorithm to obtain an optimization function; Based on the optimization function and the transmission delay calculation formula, obtaining the interference coefficient of the influencing factor on the transmission delay.
6. The parking lot toll management method based on dual-network hot standby according to claim 5, characterized in that, After obtaining the interference coefficient of the influencing factor on the transmission delay, it includes: Adjusting the receiving priority based on the interference coefficient to obtain a final priority, so that the target recognition terminal receives the recognition material based on the final priority; Sending the transmission delay corresponding to the recognition material to the vehicle terminal of the in / out vehicle corresponding to the recognition material.
7. A parking lot toll management method based on dual-network hot standby according to claim 6, characterized in that, Adjusting the receiving priority based on the interference coefficient to obtain a final priority includes: Multiplying the interference coefficient by the receiving priority to obtain the final priority.
8. A computer-readable storage medium storing a computer program therein, characterized in that, When the computer program is loaded and executed by a processor, the method described in any one of claims 1 to 7 is adopted.
Citation Information
Patent Citations
Emergency access method and system for parking lot system fault, mobile terminal and medium
CN114299751A
Internet parking management system and operation method thereof
CN104766477A
Parking fee on-line payment method, device and system of parking lot under no network environment
CN107730634A