A mountainous one-way road code scanning passing dispatching and retention early warning method and system

CN122990948APending Publication Date: 2026-10-27绵阳市消防救援支队(绵阳市消防救援局)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611100094.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0003]目前对于山区单行道的通行管控主要采用以下方式:第一种是人工值守指挥,即在道路两端安排人员现场疏导,由值守人员判断来车方向并手动指挥单向通行,这种方式人工成本高、夜间无人值守时管控失效、不同值守人员的管控标准不统一;第二种是单车道红绿灯信号系统,即通过在道路两端安装红绿灯交替放行,这种方式仅依靠灯光提示进行约束,没有实体道闸拦截,驾驶员违规抢行、逆行时无法进行物理阻断,安全隐患大,同时红绿灯系统没有扫码授权机制,无法由驾驶员自主发起通行申请,也没有单次通行时长限制,容易出现一个方向车流持续涌入而另一个方向长时间等待的情况;第三种是普通单向道闸或车牌识别闸机,即通过道闸控制单方向通行,这种方式仅支持单向通行控制,无法实现两端互锁,两端设备之间没有联动关系,可能出现双向同时放行导致会车,同时缺少车道全程车辆检测能力,车辆在中途抛锚或道路发生塌方时无法被自动发现,管理人员难以及时获知异常情况

Benefits of technology

1、通过在单行道两端设置同步起落的上部拦截杆和下部拦截杆,形成上下双层物理阻断结构,显著提高逆行和抢行管控的可靠性,小型车辆或底盘较低车辆均无法从闸杆下方穿行;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122990948A_ABST
    Figure CN122990948A_ABST
Patent Text Reader

Abstract

The application discloses a mountainous one-way road code scanning passing dispatching and retention early warning method and system, wherein the method comprises the following steps: any end vehicle initiates one-way passing application through a code scanning module; one end of initiating the one-way passing application is recorded as an application end; a passing timer is started to time the one-way passing time length, when the timing reaches the preset maximum passing time length, new vehicles are prohibited from entering the lane; when the vehicle passing time exceeds the preset retention threshold value and the exit detector does not detect the vehicle driving out, an early warning signal is triggered; after the exit detector detects that all vehicles in the lane drive out, the cloud control host clears the passing occupation mark, the two end intercepting gate rods are reset and lifted, and the two end code scanning modules restore the response state. The application improves the reliability of reverse and rush control, improves the autonomy and control strength of one-way passing dispatching, improves the discovery speed and disposal efficiency of vehicle midcourse failure, and improves the flexibility and overall passing efficiency of two-way passing dispatching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of road traffic control technology, and more specifically, to a method and system for scheduling and warning of traffic congestion on one-way streets in mountainous areas using QR code scanning. Background Technology

[0002] Mountain one-way roads refer to narrow mountain roads in mountainous areas with only one lane, where vehicles going up and down the mountain share the same passage. These roads have many curves and poor visibility, and head-on collisions are very likely to occur when vehicles meet in both directions. Traffic control measures are needed to maintain driving safety.

[0003] Currently, traffic control on one-way streets in mountainous areas mainly adopts the following methods: The first is manual on-duty command, where personnel are stationed at both ends of the road to direct traffic. These personnel determine the direction of oncoming vehicles and manually direct one-way traffic. This method is costly due to labor costs, ineffective at night when unattended, and inconsistent control standards among different personnel. The second method is a single-lane traffic light system, which uses alternating traffic lights at both ends of the road. This method relies solely on light signals for control, lacking physical barriers. Drivers who illegally cross the road or drive against traffic cannot be physically stopped, posing significant safety hazards. Furthermore, the traffic light system lacks... There is a QR code authorization mechanism, which prevents drivers from initiating their own passage applications. There is also no limit on the duration of a single passage, which can easily lead to a situation where traffic flows continuously in one direction while the other direction experiences long waiting times. The third type is a regular one-way barrier gate or license plate recognition gate, which controls one-way passage through the barrier gate. This method only supports one-way passage control and cannot achieve interlocking at both ends. There is no linkage between the devices at both ends, which may result in simultaneous passage in both directions, causing oncoming traffic to meet. At the same time, it lacks the ability to detect vehicles throughout the lane. If a vehicle breaks down or a road collapse occurs, it cannot be automatically detected, and it is difficult for management personnel to be aware of abnormal situations in a timely manner.

[0004] In summary, the existing technology has the following shortcomings: First, it lacks a physical blocking structure with double layers and double gates, relying solely on lights or a single gate for restraint, rendering the control of reverse driving and overtaking ineffective. Second, it lacks a mechanism for scanning codes to seize the right of way, making it impossible for drivers to initiate passage applications independently or to forcibly lock the oncoming scanning function during passage. Third, it lacks a single passage time limit, allowing unrestricted continuous influx of traffic in one direction, resulting in long waiting times for oncoming vehicles. Fourth, it lacks textual prompts in the waiting area, making it difficult for drivers to intuitively understand the reason for waiting and the estimated waiting time, which can easily lead to anxiety or even illegal overtaking. Fifth, it lacks full-lane vehicle detection and overdue warnings, making it impossible to promptly detect and handle vehicle malfunctions. Sixth, there is no hard interlock between the devices at both ends, which may lead to accidents caused by simultaneous two-way passage.

[0005] Therefore, those skilled in the art are dedicated to providing a method and system for scheduling and delay warning of one-way traffic in mountainous areas using QR code scanning, which can effectively solve the above-mentioned technical problems. Summary of the Invention

[0006] According to a first aspect of the embodiments of this specification, a method for scheduling and delay warning of QR code-based passage on one-way streets in mountainous areas is provided, comprising the following steps: In the idle state, the barrier arms at both ends of the one-way street are in the raised state, and the scanning modules at both ends are in the responsive state; When a vehicle at either end initiates a one-way passage application through the scanning module, the end that initiates the one-way passage application is recorded as the applicant end and the other end as the peer end. After the cloud control host determines that there is no current passage occupation, it locks the one-way passage permission of the applicant end, controls the barrier gate of the applicant end to be raised, the barrier gate of the peer end to be lowered, and disables the scanning module of the peer end. The passage timer is started to count the one-way passage time. When the timer reaches the preset maximum passage time, no new vehicles are allowed to enter the lane. The dwell timer is activated to monitor the vehicle's travel time in the lane. When the vehicle's travel time exceeds the preset dwell threshold and the exit detector does not detect the vehicle leaving, a warning signal is triggered. After the exit detector detects that all vehicles have left the lane, the cloud control host clears the passage occupancy mark, the two end interceptor gates reset and lift, and the two end scanning modules return to a responsive state.

[0007] In one possible implementation, after receiving a one-way access request initiated by either scanning module, the cloud control host initiates an arbitration time window for detection. Within the arbitration time window, it checks whether a one-way access request initiated by the other scanning module exists. If only a one-way access request is received within the arbitration time window, the one-way access permission of the requesting module is directly locked. If both ends receive access requests within the arbitration time window, the access arbitration process is initiated, and the cloud control host determines the end that obtains the one-way access permission according to preset arbitration rules.

[0008] In one possible implementation, during the arbitration process, the cloud control host calculates the priority scores of both ends using the following formula:

[0009] in, For the first Terminal priority scoring, For the first The timestamp of the application submitted via QR code. This is the start time of the arbitration time window. For the first The number of vehicles queuing in the waiting area. For reference vehicle number threshold, For the first The cumulative waiting time on the terminal, For reference, waiting time For the first The preset direction priority score of the end, For time factor weights, For queuing factor weights, For the waiting factor weights, For the direction priority factor weights, and The cloud control host compares the priority scores of the two ends, and the end with the higher priority score obtains one-way passage permission.

[0010] In one possible implementation, the scanning module includes a QR code scanning panel and a communication module. After the vehicle scans the QR code through the scanning panel, the communication module sends the access request to the cloud control host. After locking the one-way access permission of the requesting end, the cloud control host also controls the LED warning screen at the other end to display a waiting prompt message. The waiting prompt message includes an estimated waiting time, and the formula for calculating the estimated waiting time is:

[0011] in, To estimate the waiting time, To preset the maximum passage time, The duration of passage since the one-way access permission was locked until the current moment; The exit detector is an exit inductive loop detector. Entrance radar detectors are also installed at both ends of the one-way street. The entrance radar detectors detect vehicles entering the lane, and the exit inductive loop detectors detect vehicles leaving the lane. The number of vehicles entering the lane is compared with the number of vehicles leaving the lane to determine whether there are still vehicles in the lane. The comparison formula is as follows:

[0012] in, This represents the number of vehicles remaining in the lane. This represents the cumulative number of vehicles detected by the entrance radar detector. The cumulative number of vehicles detected by the exit inductive loop detector; when At that time, it was determined that all vehicles in the lane had left.

[0013] In one possible implementation, the barrier gate includes an upper barrier and a lower barrier that rise and fall synchronously. The upper and lower barrier raise or lower synchronously to close or open the lane. After locking the one-way passage permission of the applicant, the cloud control host also sends a hard interlock signal to the local controller at the other end. After receiving the hard interlock signal, the local controller at the other end blocks all gate raising commands and QR code scanning responses, so that the barrier gate at the other end cannot be raised regardless of manual operation or QR code scanning.

[0014] In one possible implementation, the preset maximum travel time is adaptively determined based on road parameters, and the calculation formula is as follows:

[0015] in, To preset the maximum passage time, The length of a one-way lane. To preset the minimum passing speed, For safety margin coefficient and , Fixed buffer time; During the period before the passage timer reaches the preset maximum passage time, multiple vehicles are allowed to enter the lane consecutively. The formula for calculating the maximum number of vehicles allowed to pass simultaneously in the lane is as follows:

[0016] in, This represents the maximum number of vehicles allowed to pass simultaneously within a lane. The minimum time interval between adjacent vehicles entering the lane. The safety margin length at both ends of the lane. This represents the average vehicle length. To maintain the minimum safe following distance; When the passage timer reaches the preset maximum passage time, new vehicles are prohibited from entering, and the intercepting gate at the opposite end remains in the lowered state until the exit detector detects that all vehicles in the lane have left.

[0017] In one possible implementation, the preset dwell threshold is determined based on road parameters, and the calculation formula is as follows:

[0018] in, To preset the retention threshold, The length of a one-way lane. To preset the average traffic speed, For the safety factor of the stay and , This is the buffer period for the dwell time; After the warning signal is triggered, the alarm level is determined based on the vehicle's dwell time. The formula for calculating the alarm level is as follows:

[0019] in, Alarm level, This refers to the actual time a vehicle spends traveling within the lane. The alarm escalation interval is specified; different alarm levels correspond to different early warning response methods, including controlling the simultaneous activation of the sound and light alarms at both ends, controlling the LED warning screens at both ends to switch to fault prompt text, and pushing fault alarm information to the management backend. The higher the alarm level, the higher the frequency of pushing the fault alarm information.

[0020] In one possible implementation, the method further includes: The maximum passage time for the next round of one-way traffic is dynamically adjusted based on the number of vehicles queuing in both directions of the waiting area. The adjustment formula is as follows:

[0021] in, This will be the maximum passage time for the next round of one-way traffic. Based on the maximum passage time, and These represent the number of vehicles queuing at each of the two waiting areas. This serves as a reference threshold for the number of vehicles. when In this case, the next round of access rights will be preferentially allocated to... The corresponding end is allocated first, otherwise it is allocated first. The corresponding end.

[0022] In one possible implementation, during the passage arbitration process, the cloud control host keeps both ends of the barrier gates in a lowered state and both ends of the scanning modules in a disabled state until the arbitration result is determined. Then, the host controls the barrier gate at the end that has obtained passage permission to be raised while the barrier gate at the other end remains lowered, and the scanning module at the end that has obtained passage permission is restored to its response. If the priority scores at both ends are equal in the passage arbitration process, the cloud control host determines the passage permission based on a preset direction priority rule, which is either priority for the uphill direction or priority for the end with more queues.

[0023] According to a second aspect of the embodiments of this specification, a system for scheduling and monitoring traffic congestion on one-way streets in mountainous areas via QR code scanning is provided, comprising: The QR code access scheduling module is used to maintain the barrier gates at both ends of the one-way road in the raised state and the QR code scanning modules at both ends in the responsive state when the road is idle. When a vehicle at either end initiates a one-way access application through the QR code scanning module, the end that initiates the one-way access application is recorded as the requesting end and the other end is recorded as the receiving end. After the cloud control host determines that there is no current traffic occupation, it locks the one-way access permission of the requesting end, controls the barrier gate at the requesting end to be raised, the barrier gate at the receiving end to be lowered, and disables the QR code scanning module at the receiving end. The passage time limit control module is used to start the passage timer to count the one-way passage time. When the timer reaches the preset maximum passage time, no new vehicles are allowed to enter the lane. The congestion warning and monitoring module is used to activate a congestion timer to monitor the vehicle's travel time within the lane. When the vehicle's travel time exceeds a preset congestion threshold and the exit detector does not detect the vehicle exiting, a warning signal is triggered; and The passage reset module is used to clear the passage occupancy mark through the cloud control host after the exit detector detects that all vehicles have left the lane, control the two end intercepting gates to reset and lift, and restore the two end scanning modules to a responsive state.

[0024] As described above, the present invention provides a method and system for scheduling and providing early warning of traffic congestion on one-way streets in mountainous areas using QR code scanning, which has the following beneficial effects: 1. By installing upper and lower barrier bars that rise and fall synchronously at both ends of the one-way road, a double-layer physical blocking structure is formed, significantly improving the reliability of controlling wrong-way driving and overtaking. Small vehicles or vehicles with low chassis cannot pass under the barrier bars; 2. Drivers can initiate one-way passage requests independently via a QR code scanning module. The cloud control host locks the passage permission of the requesting driver while disabling the QR code scanning module of the other driver, thereby forcibly locking the right of passage to the other driver and improving the autonomy and control of one-way passage scheduling. 3. The arbitration time window is used to detect whether both parties initiate a passage application simultaneously. When both parties initiate the application within the arbitration time window, the passage arbitration process is initiated. Priority scores are calculated based on timestamps, queue lengths, cumulative waiting times, and direction priority scores to reasonably determine the allocation of passage rights, thereby improving the fairness and security of scheduling in scenarios where both parties apply simultaneously. 4. A passage timer is used to time the one-way passage duration, and no new vehicles are allowed to enter after the preset maximum passage duration is reached. This effectively prevents unlimited influx of vehicles in one direction and improves the balance of two-way traffic efficiency. 5. Displaying waiting information, including estimated waiting time, on the LED warning screen at the other end allows drivers in the waiting area to intuitively understand the reason for the wait and the estimated waiting time, improving the transparency of traffic information during the waiting period and alleviating anxiety; 6. Vehicles are detected throughout the lane using entrance radar detectors and exit inductive loop detectors. The status of vehicles in the lane is determined by comparing the number of vehicles entering the lane with the number of vehicles exiting the lane. When the vehicle travel time exceeds the congestion threshold and no vehicle is detected leaving the lane, a warning signal is triggered. The alarm level and response method are upgraded according to the congestion duration to improve the speed of detecting and handling vehicle malfunctions during the journey. 7. By sending a hard interlock signal from the cloud-based control host to the local controller at the other end, all gate lifting commands and QR code scanning responses are blocked at the other end. Regardless of manual operation or QR code scanning, it is impossible to control the gate at the other end to lift, thereby improving the reliability of the two-way interlock and physically eliminating the possibility of accidents caused by simultaneous two-way passage. 8. By dynamically adjusting the maximum passage time for the next round of one-way traffic based on the number of vehicles queuing in both directions, the side with a larger queue receives a longer passage time and priority right of way, thereby improving the flexibility of two-way traffic scheduling and overall traffic efficiency; 9. By keeping both ends of the gate closed and both scanning modules disabled during the arbitration process, the gate and scanning response of the end with access permission are only opened after the arbitration result is determined. This improves the security redundancy in scenarios where both ends apply at the same time. In addition, when the priority scores are equal, the preset direction priority rule is used as a fallback to ensure that the arbitration process always has a clear result. Attached Figure Description

[0025] Figure 1 This is a flowchart of a method for scheduling and delay warning of one-way traffic in mountainous areas using QR code scanning, provided in one embodiment of this specification.

[0026] Figure 2 This is a schematic block diagram of a one-way traffic control and congestion warning system for mountainous areas, provided in one embodiment of this specification.

[0027] Figure 3This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0028] The present invention will be further described below with reference to the accompanying drawings and embodiments: In the description of this invention, it should be noted that the terms "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0029] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "setting," and "connection" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0030] This specification provides a method for scheduling and delay warning of one-way traffic via QR code scanning in mountainous areas. This specification also relates to a system for scheduling and delay warning of one-way traffic via QR code scanning in mountainous areas, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0031] See Figure 1 , Figure 1 A flowchart of a method for scheduling and delay warning of one-way traffic in mountainous areas using QR code scanning, according to an embodiment of this specification, is shown, which specifically includes the following steps.

[0032] S101, In the idle state, the barrier arms at both ends of the one-way street are in the raised state, and the scanning modules at both ends are in the responsive state.

[0033] In this embodiment or other embodiments, the idle state refers to the state in which no vehicles are passing through the lane and no passage permission is occupied. At this time, both ends of the intercepting gate are in the raised position to allow vehicles to pass freely, and both ends of the scanning module are in the responsive state to receive passage requests from vehicles at either end.

[0034] S102, any vehicle initiates a one-way passage application through the scanning module. The end that initiates the one-way passage application is recorded as the applicant end and the other end as the peer end. After the cloud control host determines that there is no current passage occupation, it locks the one-way passage permission of the applicant end, controls the barrier gate of the applicant end to be raised, the barrier gate of the peer end to be lowered, and disables the scanning module of the peer end.

[0035] In this embodiment or other embodiments, after a vehicle arrives at any end control unit, the driver initiates a passage application by scanning a QR code on the scanning panel with their mobile phone. The communication module sends the passage application to the cloud control host for judgment. When the cloud control host determines that the current lane is not occupied, it locks the one-way passage permission of the application end and controls the blocking gate of the application end to rise to allow the vehicle to enter. At the same time, it controls the blocking gate of the other end to fall to physically block the opposite passage and disables the scanning module of the other end so that it cannot respond to new passage applications, thereby realizing the exclusive allocation of one-way passage permission.

[0036] S103, start the passage timer to count the one-way passage time. When the timer reaches the preset maximum passage time, no new vehicles are allowed to enter the lane.

[0037] In this embodiment or other embodiments, the passage timer starts counting from the moment the access permission of the application terminal is locked. The preset maximum passage time can be set according to the road length and the speed of the vehicles. For example, it can be set to 5 minutes, 3 minutes, or 8 minutes. No specific value is limited here. When the timer reaches the preset maximum passage time, the scanning module of the application terminal is disabled, the blocking gate is lowered, and new vehicles are prohibited from entering the lane. However, vehicles that are already passing through the lane can continue to exit.

[0038] S104, start the dwell timer to monitor the vehicle's travel time in the lane. When the vehicle's travel time exceeds the preset dwell threshold and the exit detector does not detect the vehicle leaving, trigger the warning signal.

[0039] In this embodiment or other embodiments, the dwell timer starts timing from the moment the first vehicle enters the lane. The preset dwell threshold is set according to the road length and average traffic speed. For example, for a 3km mountain road, the dwell threshold can be set to 3 minutes, 4 minutes, or 2 minutes. No specific value is limited here. When the travel time recorded by the dwell timer exceeds the preset dwell threshold and the exit detector still does not detect a vehicle exit signal, it indicates that there may be abnormal situations such as vehicle breakdown, road collapse, or equipment failure in the lane. At this time, a warning signal is triggered to notify the management personnel to handle the situation.

[0040] S105, after the exit detector detects that all vehicles have left the lane, the cloud control host clears the passage occupancy mark, the two end intercepting gates are reset and raised, and the two end scanning modules return to a responsive state.

[0041] In this embodiment or other embodiments, the exit detector monitors the number of vehicles leaving the lane in real time. When it is detected that all vehicles in the lane have left, the cloud control host clears the current passage occupancy mark, the two blocking gates at both ends are simultaneously reset to the raised state, the two scanning modules at both ends are simultaneously restored to the responsive state, and the lane is restored to the idle state to wait for the next round of passage application.

[0042] Therefore, this embodiment can achieve safe scheduling of two-way traffic on mountain one-way streets through the coordinated cooperation of scanning module to initiate passage application, cloud control host to determine and lock, intercept gate interlock control, passage time limit and lingering monitoring and early warning, thereby effectively avoiding collision accidents between oncoming vehicles.

[0043] According to the above description, in an exemplary embodiment, after the cloud control host receives a one-way access request initiated by any end scanning module, it initiates an arbitration time window for detection. Within the arbitration time window, it checks whether there is a one-way access request initiated by the other end scanning module. If only a one-way access request is received within the arbitration time window, the one-way access permission of the requesting end is directly locked. If both ends receive access requests within the arbitration time window, the access arbitration process is entered, and the cloud control host determines the end that obtains the one-way access permission according to preset arbitration rules.

[0044] In this embodiment or other embodiments, the duration of the arbitration time window can be set according to the communication delay and system response speed. For example, it can be set to 500 milliseconds, 1 second, or 2 seconds. No specific value is limited here. When vehicles at both ends initiate passage applications at the same time within the arbitration time window, the passage permission is determined through the passage arbitration process to avoid the risk of passing each other due to simultaneous release of both ends.

[0045] According to the above description, in an exemplary embodiment, during the arbitration process, the cloud control host calculates the priority scores of both ends using the following formula: ,in, For the first Priority score of the end, used to measure the priority of the first end The overall priority of the terminal obtaining access permissions; For the first The timestamp of the application submitted via QR code. This is the start time of the arbitration time window. This measure assesses the impact of application time on priority; the earlier the application, the higher the score. For the first The number of vehicles queuing in the waiting area. For reference vehicle number threshold, This measure assesses the impact of the number of vehicles in a queue on priority; the longer the queue, the higher the score. For the first The cumulative waiting time on the terminal, For reference, waiting time This measure assesses the impact of historical waiting times on priority; the longer the wait, the higher the score. For the first The preset direction priority score of the terminal is used to measure the impact of the direction priority strategy on the allocation of access rights; For time factor weights, For queuing factor weights, For the waiting factor weights, For the direction priority factor weights, and .

[0046] In this embodiment or other embodiments, each weight factor can be set according to the control requirements of different scenarios. For example, it can be set to... , , , You can also set , , , You can also set , , , No specific numerical limit is specified here; the cloud control host compares the priority scores of the two ends, and the end with the higher priority score obtains one-way passage permission.

[0047] Therefore, by using a multi-factor weighted priority scoring mechanism, arbitration can be conducted by comprehensively considering multiple dimensions such as application time, queue size, waiting time, and direction priority when both ends apply for passage at the same time, thereby achieving a fair and reasonable allocation of passage rights.

[0048] According to the above description, in an exemplary embodiment, the scanning module includes a QR code scanning panel and a communication module. After the vehicle scans the QR code through the scanning panel, the communication module sends the access request to the cloud control host. After locking the one-way access permission of the requesting end, the cloud control host also controls the LED warning screen at the other end to display a waiting prompt message. The waiting prompt message includes an estimated waiting time, and the formula for calculating the estimated waiting time is: ,in, To estimate waiting time, this is used to inform drivers in the waiting area at the other end of the line how much longer they need to wait. To preset the maximum passage time, This represents the duration of passage since the one-way access permission was locked until the current moment.

[0049] In this embodiment or other embodiments, the LED warning screen is installed at a fixed position in the waiting area and can switch between displaying idle status prompts, waiting time prompts, and fault alarm text. For example, when idle, it displays "Lane is empty, scan code to pass," when the lane is occupied, it displays "Vehicle above, please wait 2-3 minutes," and when there is a fault, it displays "Vehicles are stuck in the lane, please check road conditions." The exit detector is an exit inductive loop detector, and entrance radar detectors are also installed at both ends of the one-way street. The entrance radar detector is used to detect vehicles entering the lane, and the exit inductive loop detector is used to detect vehicles leaving the lane. The number of vehicles entering the lane is compared with the number of vehicles leaving the lane to determine whether there are still vehicles in the lane. The comparison formula is: ,in, This represents the number of vehicles remaining in the lane. This represents the cumulative number of vehicles detected by the entrance radar detector. The cumulative number of vehicles detected by the exit inductive loop detector; when At that time, it was determined that all vehicles in the lane had left.

[0050] In this embodiment or other embodiments, the entrance radar detector uses millimeter-wave radar, which is suitable for low-visibility environments such as rain, snow, and fog. The exit inductive loop detector is buried under the road surface at the lane exit. The two work together to achieve accurate detection of the vehicle entry and exit status in the lane.

[0051] Therefore, by displaying the estimated waiting time in real time on the LED warning screen, drivers in the waiting area can intuitively understand the waiting status, reducing anxiety and illegal behavior such as breaking through the barrier. By using dual detection of the entrance radar detector and the exit ground loop detector, as well as comparing the number of vehicles, it is possible to accurately determine whether there are still vehicles in the lane, thereby ensuring the accurate timing of the release of passage rights.

[0052] According to the above description, in an exemplary embodiment, the barrier gate includes an upper barrier gate and a lower barrier gate that rise and fall synchronously. The upper barrier gate and the lower barrier gate rise or fall synchronously to close or open the lane. After locking the one-way passage permission of the applicant, the cloud control host also sends a hard interlock signal to the local controller at the other end. After receiving the hard interlock signal, the local controller at the other end blocks all gate raising commands and QR code scanning responses, so that the barrier gate at the other end cannot be raised regardless of manual operation or QR code scanning.

[0053] In this embodiment or other embodiments, the upper and lower barrier bars are equipped with DC brushless drive motors and obstacle detection and rebound anti-collision modules. The simultaneous raising and lowering of the upper and lower bars can completely close the lane, preventing small vehicles from passing under the barrier bars. The hard interlock signal is sent from the cloud control host to the local controller at the other end via wired or wireless means. After receiving the hard interlock signal, the local controller at the other end blocks all barrier raising commands and code scanning responses at the hardware logic level. No matter whether it is manual operation or code scanning, the barrier bar at the other end cannot be raised, thereby preventing simultaneous two-way passage from both physical and logical levels.

[0054] Therefore, it can be seen that the complete physical closure of the lane can be achieved through the double-layer synchronous interception structure of the upper and lower interception bars; through the hard interlock mechanism, it can be ensured from the hardware logic level that the other end cannot be allowed to pass while one end occupies the right of passage, thereby completely eliminating the risk of vehicles meeting on a single-lane mountain road.

[0055] According to the above description, in an exemplary embodiment, the preset maximum travel time is adaptively determined based on road parameters, and the calculation formula is as follows: ,in, The preset maximum passage time is used to limit the maximum time window for a single one-way passage; The length of a one-way lane. To preset the minimum passing speed, This indicates the theoretical travel time required to pass through the lane at the minimum operating speed; For safety margin coefficient and It is used to provide a safety margin based on the theoretical travel time; A fixed buffer time is used to compensate for the extra time spent on vehicle starting and deceleration.

[0056] In this embodiment or other embodiments, It can be set according to the density of road curves and the slope, for example, it can be set to... You can also set You can also set ; It can be set based on actual traffic experience, for example, it can be set to... Seconds can also be set. Seconds can also be set Seconds, no specific numerical limit is specified here.

[0057] During the period before the passage timer reaches the preset maximum passage time, multiple vehicles are allowed to enter the lane consecutively. The formula for calculating the maximum number of vehicles allowed to pass simultaneously in the lane is as follows: ,in, This represents the maximum number of vehicles allowed to pass simultaneously within a lane, used to constrain vehicle capacity within the lane from both temporal and spatial dimensions. The minimum time interval between adjacent vehicles entering the lane. This indicates the number of vehicles that can be accommodated at the minimum time interval within the maximum passage time. The safety margin length at both ends of the lane. This represents the average vehicle length. To maintain the minimum safe following distance, This indicates the number of vehicles that can be accommodated based on the space's capacity.

[0058] In this embodiment or other embodiments, The time can be set according to the vehicle's acceleration characteristics; for example, it can be set to 5 seconds, 8 seconds, or 10 seconds. It can be set to 50 meters or 80 meters; It can be set to 5 meters or 6 meters; It can be set to 20 meters or 30 meters, and no specific value is limited here; when the passage timer reaches the preset maximum passage time, new vehicles are prohibited from entering, and the intercepting gate at the opposite end remains in the lowered state until the exit detector detects that all vehicles in the lane have left.

[0059] Therefore, by adaptively determining the maximum travel time and the maximum number of vehicles based on road parameters, lane capacity can be fully utilized while ensuring traffic safety, and long waiting times in opposite directions caused by unlimited one-way traffic flow can be avoided.

[0060] According to the above description, in an exemplary embodiment, the preset dwell threshold is determined based on road parameters, and the calculation formula is as follows: ,in, A preset dwell threshold is used to determine whether a vehicle is abnormally dwelling in the lane; The length of a one-way lane. To preset the average traffic speed, This indicates the normal travel time required to pass through a lane at the average speed. For the safety factor of the stay and It is used to provide a margin of error for judgment based on normal passage time to avoid false alarms; This is a buffer period used to compensate for the impact of fluctuations in traffic speed.

[0061] In this embodiment or other embodiments, It can be set according to road conditions and safety requirements, for example, it can be set to... You can also set You can also set ; It can be set to 30 seconds or 60 seconds; no specific value is specified here.

[0062] After the warning signal is triggered, the alarm level is determined based on the vehicle's dwell time. The formula for calculating the alarm level is as follows: ,in, Alarm levels are used to measure the severity of vehicle congestion and correspond to different warning response methods; This refers to the actual time a vehicle spends traveling within the lane. To preset the retention threshold, Set the alarm escalation interval.

[0063] In this embodiment or other embodiments, It can be set to 1 minute, 2 minutes, or 3 minutes; no specific numerical limit is imposed here. Different alarm levels correspond to different early warning response methods, including controlling the simultaneous activation of the sound and light alarms at both ends, controlling the LED warning screens at both ends to switch to fault prompt text, and pushing fault alarm information to the management backend. The higher the alarm level, the higher the frequency of pushing the fault alarm information. For example, a level 1 alarm is pushed once every 5 minutes, a level 2 alarm is pushed once every 3 minutes, and a level 3 or higher alarm is pushed once every 1 minute.

[0064] Therefore, by adaptively determining the dwell threshold based on road parameters and issuing graded alarms, abnormal situations such as vehicle breakdowns and road collapses can be accurately identified, and different levels of early warning measures can be taken according to the severity, thereby ensuring that abnormal situations are detected and dealt with in a timely manner.

[0065] According to the above description, in an exemplary embodiment, the method further includes: The maximum passage time for the next round of one-way traffic is dynamically adjusted based on the number of vehicles queuing in both directions of the waiting area. The adjustment formula is as follows: ,in, This is the maximum passage time for the next round of one-way passage, used to dynamically adjust the passage window based on the difference in two-way queuing. Based on the maximum passage time, and These represent the number of vehicles queuing at each of the two waiting areas. For reference vehicle number threshold, This is used to measure the impact of bidirectional queuing imbalance on transit time adjustment.

[0066] In this embodiment or other embodiments, It can be set to 5 vehicles, 10 vehicles, or 8 vehicles; there is no specific numerical limit here. In this case, the next round of access rights will be preferentially allocated to... The corresponding end is allocated first, otherwise it is allocated first. The corresponding end.

[0067] Therefore, by dynamically adjusting the passage time based on the difference in the number of queues in both directions, the system can automatically favor the side with longer queues when the traffic flow in both directions is uneven, thereby avoiding long waiting times for one side and achieving a balance in the efficiency of two-way traffic.

[0068] According to the above description, in an exemplary embodiment, during the passage arbitration process, the cloud control host controls both ends of the intercepting gate to remain in a lowered state and both ends of the scanning module to be disabled until the arbitration result is determined. Then, the host controls the intercepting gate at the end that has obtained passage permission to be raised while the intercepting gate at the other end remains lowered, and the scanning module at the end that has obtained passage permission is restored to its response. If the priority scores at both ends are equal in the passage arbitration process, the cloud control host determines the passage permission ownership according to a preset direction priority rule, wherein the preset direction priority rule is priority for uphill direction or priority for the end with more queues.

[0069] In this embodiment or other embodiments, both ends of the intercepting gate remain in the lowered state during the arbitration period, that is, neither end is allowed to pass before the arbitration result is issued, thereby ensuring that there is no safety hazard of simultaneous two-way passage due to arbitration delay; when the priority scores of both ends are equal, priority can be given to the uphill direction according to the actual road conditions (because it is more difficult for uphill vehicles to start, so their waiting time should be reduced), or priority can be given to the end with more queues, without specific limitations here.

[0070] Therefore, by using a safety net mechanism that prevents both sides from passing during arbitration, the risk of simultaneous passage in both directions can be physically eliminated during the arbitration delay; and by using a pre-defined direction priority rule in the event of a tie, the passage authority can still be determined when the scores are equal, thus avoiding a fruitless arbitration.

[0071] In summary, this invention provides a method for scheduling and monitoring traffic congestion on one-way streets in mountainous areas using QR code scanning. First, in an idle state, the barrier gates at both ends are kept raised and the QR code scanning module is responsive. Then, the QR code scanning module receives passage requests, and the cloud-based control host locks the one-way passage permission, controlling the raising of the barrier gate at the requesting end, the lowering of the barrier gate at the receiving end, and disabling QR code scanning. Simultaneously, a passage timer is activated to limit the maximum passage duration, and a congestion timer is activated to monitor abnormal congestion. Finally, after all vehicles have passed, the occupancy marker is cleared, restoring the idle state. Therefore, this method, through QR code scanning to seize passage rights and the interlocking mechanism at the receiving end, can achieve safe scheduling of two-way traffic on one-way streets in mountainous areas, effectively avoiding collisions between oncoming vehicles. Furthermore, this method, through passage time limits and congestion warning mechanisms, can prevent one-way road occupancy for extended periods and promptly detect abnormal situations. Additionally, this method, through an arbitration mechanism allowing simultaneous QR code scanning at both ends, can fairly and reasonably allocate passage permissions when both ends simultaneously apply for passage, avoiding simultaneous two-way passage. Moreover, this method, by dynamically adjusting the passage duration, can automatically optimize traffic efficiency when two-way traffic flow is uneven. Example 1

[0072] In one embodiment of the present invention, an application scenario of a 3km single-line winding mountain road in a mountainous area is provided. The road is divided into an entrance at the top of the mountain and an exit at the bottom of the mountain. A control unit is installed at each end and is connected to a cloud control host via 4G wireless connection.

[0073] In this application scenario, each control unit includes a double-layer barrier gate mechanism, a QR code scanning module, an LED warning screen, a vehicle detection component, a local controller, an audible and visual alarm, and a power supply unit. The double-layer barrier gate mechanism is equipped with a synchronously raising and lowering upper and lower intercepting bars, and features a DC brushless drive motor and an obstacle detection and rebound anti-collision module. The QR code scanning module includes a QR code scanning panel and a 4G communication module. The vehicle detection component includes an entrance radar detector and an exit inductive loop detector. The power supply unit adopts a combination of mains power and solar backup power, suitable for mountainous areas with no stable power supply.

[0074] The specific traffic scheduling process for this application scenario is as follows: Vehicles descending from the mountaintop scan a QR code, the gate at the foot of the mountain lowers and disables the QR code scanning module, and the LED warning screen in the waiting area at the foot of the mountain displays "Vehicles above, please wait 2-3 minutes." Descending vehicles can pass continuously for 5 minutes; after all vehicles have exited the exit at the foot of the mountain within 3 minutes, the gate automatically raises. Two-way traffic resumes; if a vehicle has not left the mountain within 4 minutes of entering, the equipment will sound an alarm and send a fault reminder to the background; if there are still vehicles that have not descended the mountain within 5 minutes, no new vehicles will be allowed to enter the mountain, and the lane will be switched back after it is cleared.

[0075] In this embodiment, a maximum passage time is preset. Set to 5 minutes, preset retention threshold According to the formula Calculation, where rice, km / h , seconds, calculated Minutes; Maximum number of vehicles allowed to pass simultaneously in a lane According to the formula, take Second, Second, rice, rice, rice, meters, calculated Vehicles. Example 2

[0076] In another embodiment of the present invention, an application scenario is provided for a short-distance single-line cliffside road in a scenic area.

[0077] The difference between this application scenario and Example 1 is that the road length is shorter, the traffic parameters are adjusted accordingly, the delay warning threshold is shortened to 1.5 minutes, the maximum passage time is set to 3 minutes, which is suitable for short-distance scenic area lanes and shortens the waiting time for tourists.

[0078] In this embodiment, a maximum passage time is preset. Set to 3 minutes, preset retention threshold Calculated according to the formula, where rice, km / h , seconds, calculated Minutes; Maximum number of vehicles allowed to pass simultaneously in a lane According to the formula, take Second, Second, rice, rice, rice, meters, calculated Vehicles.

[0079] Table 1 shows a comparison of parameter configurations for different application scenarios.

[0080] Table 1 Parameter Configuration for Different Application Scenarios

[0081] Comparative Example 1 To verify the beneficial effects of the technical solution of the present invention, the solution of Embodiment 1 of the present invention was compared with the existing traffic light signal control solution. The test scenario was the same 3km winding mountain road, and the test period was 7 consecutive days. The test results are shown in Table 2.

[0082] Table 2 Comparison of Traffic Scheduling Effects

[0083] Therefore, compared with the existing traffic light signal control scheme, this invention reduces the number of passing accidents and wrong-way traffic to zero through physical interception and interlocking mechanisms, reduces the average waiting time by 62% through the QR code time limit mechanism, reduces the time for mid-journey fault detection by 88% through the delay warning mechanism, and achieves unattended operation around the clock.

[0084] The following is in conjunction with the appendix Figure 2 The following describes an embodiment of the system provided by the present invention. See also Figure 2 , Figure 2 The diagram shows a schematic block diagram of a one-way traffic scheduling and congestion warning system for mountainous areas provided by an embodiment of the present invention.

[0085] In another exemplary embodiment of the present invention, a system for scheduling and delay warning of one-way traffic via QR code scanning in mountainous areas is also provided, comprising: The QR code access scheduling module is used to maintain the barrier gates at both ends of the one-way street in the raised state and the QR code scanning modules at both ends in the responsive state when the vehicle at either end initiates a one-way passage application through the QR code scanning module. The end that initiates the one-way passage application is recorded as the requesting end and the other end is recorded as the receiving end. After the cloud control host determines that there is no current passage occupation, it locks the one-way passage permission of the requesting end, controls the barrier gate at the requesting end to be raised, the barrier gate at the receiving end to be lowered, and disables the QR code scanning module at the receiving end.

[0086] In this embodiment or other embodiments, the QR code access scheduling module is also used to initiate an arbitration time window for detection after receiving a one-way access request initiated by either end of the QR code scanning module. If only a one-way access request is received within the arbitration time window, the one-way access permission of the requesting end is directly locked. If both ends receive access requests within the arbitration time window, the access arbitration process is entered to determine the end that obtains the one-way access permission according to the preset arbitration rules. In the access arbitration process, the QR code access scheduling module calculates the priority scores of both ends through the cloud control host and compares the scores of both ends to determine the ownership of the access permission.

[0087] The passage time limit control module is used to start the passage timer to count the one-way passage time. When the timer reaches the preset maximum passage time, new vehicles are prohibited from entering the lane.

[0088] In this embodiment or other embodiments, the passage time limit control module is also used to adaptively determine the preset maximum passage time based on road parameters, and to allow multiple vehicles to enter the lane continuously during the period when the passage timer has not reached the preset maximum passage time, and to calculate the maximum number of vehicles allowed to pass through the lane at the same time based on the dual constraints of time and space.

[0089] The congestion warning monitoring module is used to start a congestion timer to monitor the time a vehicle spends in the lane. When the vehicle's travel time exceeds a preset congestion threshold and the exit detector does not detect the vehicle leaving, a warning signal is triggered.

[0090] In this embodiment or other embodiments, the vehicle congestion warning monitoring module is also used to adaptively determine a preset congestion threshold based on road parameters, and after triggering a warning signal, determine the alarm level based on the vehicle congestion duration and execute different levels of warning responses accordingly.

[0091] The passage reset module is used to clear the passage occupancy mark through the cloud control host after the exit detector detects that all vehicles have left the lane, control the two end intercepting gates to reset and lift, and restore the two end scanning modules to a responsive state.

[0092] In this embodiment or other embodiments, the passage reset module is also used to determine whether there are still vehicles in the lane based on the comparison result of the cumulative number of vehicles entering the lane detected by the entrance radar detector and the cumulative number of vehicles leaving the lane detected by the exit inductive loop detector. When the comparison result is zero, it is determined that all vehicles in the lane have left and the passage occupancy mark is cleared.

[0093] In summary, this invention provides a system for scheduling and monitoring traffic flow in mountainous one-way streets using QR code scanning. The system uses a QR code scanning scheduling module to lock and interlock access permissions, a access time limit control module to limit the duration of one-way traffic, an access flow monitoring module to automatically detect and alert on abnormal access, and an access reset module to automatically release access permissions and restore the system's status. All modules work together to achieve safe and intelligent scheduling of two-way traffic on mountainous one-way streets.

[0094] The above is an illustrative scheme of a one-way traffic control and congestion warning system for mountainous areas using QR code scanning, according to this embodiment. It should be noted that the technical solution of this system and the aforementioned method for one-way traffic control and congestion warning for mountainous areas share the same concept. Details not described in detail in the technical solution of this system can be found in the description of the technical solution of the aforementioned method.

[0095] The optimal working principle of this invention is as follows: The entire system is divided into three main parts: the upper uphill control unit, the lower downhill control unit, and the cloud control host. Each control unit includes a double-layer barrier gate mechanism (the upper and lower interceptor bars rise and fall synchronously, equipped with a DC brushless drive motor and an obstacle detection and rebound anti-collision module), a barcode scanning module (QR code scanning panel and 4G communication module), an LED warning screen (switchable between idle prompts, waiting time prompts, and fault alarm text), vehicle detection components (entrance radar detector and exit ground loop detector), a local controller, an audible and visual alarm, and a power supply unit (mains power plus solar backup power). The cloud control host enables data communication between the two devices, timing calculations, fault data storage, remote viewing in the background, and customization of time parameters. In the idle state, both upper and lower gates at both ends are raised, the lane is fully open, and the LED warning screen displays "Lane clear, scan code to pass." Both ends of the scanning module can normally recognize vehicle scanning applications. When a vehicle scans the code at either end, the cloud control host determines that there is no occupation and locks the passage permission. The gate at the requesting end is raised to allow entry, while the gate at the other end is lowered to physically block the vehicle and the scanning module is forcibly disabled. The LED screen in the waiting area at the other end displays "Vehicle above, please wait 2-3 minutes." The cloud control host starts a 5-minute timer. Multiple vehicles are allowed to enter continuously within the 5-minute countdown. If the countdown is less than 5 minutes, newly added vehicles at the back end will not have permission to scan the code and can only wait for their turn. The exit inductive loop detector continuously detects vehicles leaving the lane. When the last vehicle passes the exit detector, the cloud control host immediately clears the passage occupation mark, and both gates at both ends are raised simultaneously to restore the two-way scan-scanning idle state. If a vehicle remains in the lane after the 5-minute countdown ends, the system keeps the gate closed at the other end and prohibits new vehicles from entering. Once all vehicles in the lane have left, the system automatically releases the passage permission. Before all vehicles have left, the waiting screen at the other end continues to display a waiting prompt. The system has a preset threshold for the standard passage time on mountain roads. The timer starts from the moment the first vehicle scans the code to obtain the right of way. If the timer exceeds the preset threshold and the exit detector still has not detected a vehicle leaving, the sound and light alarms at both ends will be activated simultaneously. The LED screen will switch to the fault text "Vehicles stuck in the lane, please check the road conditions". The cloud backend will push a fault SMS or platform alarm to remind the management personnel that there is a vehicle breakdown, landslide, or equipment failure on the road. After the management personnel have dealt with the situation on-site, the system will manually reset the alarm or automatically cancel the alarm after all vehicles have left. When one end occupies passage rights, the other end controller receives a locking signal, and the scanning module and gate lifting command are all blocked. The gate cannot be lifted regardless of manual operation or scanning, thus preventing simultaneous entry of vehicles in both directions from the hardware logic. The default waiting prompt text is "There is a vehicle above, please wait for 2-3 minutes" and can be modified. The default maximum continuous passage time in one direction is 5 minutes and can be adjusted within the range of 1-10 minutes. The timeout threshold for mid-way delay warning can be customized according to the length of the mountain road. The gate lifting speed and anti-collision resistance are adjustable. The solar power sleep strategy is adapted to wild mountainous areas.

[0096] Figure 3 A structural block diagram of a computing device 400 according to one embodiment of this specification is shown. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and a database 450 is used to store data.

[0097] The computing device 400 also includes an access device 440, which enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 440 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface.

[0098] In one embodiment of this specification, the aforementioned components of the computing device 400 and Figure 3 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 3 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0099] The computing device 400 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 400 can also be a mobile or stationary server.

[0100] The processor 420 executes the following computer-executable instructions, which, when executed by the processor, implement the steps of the above-described method for scheduling and preventing congestion on one-way streets in mountainous areas using QR code scanning. The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above-described method for scheduling and preventing congestion on one-way streets in mountainous areas belong to the same concept. Details not described in detail in the technical solution of the computing device can be found in the description of the technical solution of the above-described method for scheduling and preventing congestion on one-way streets in mountainous areas.

[0101] An embodiment of this specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-described method for scheduling and warning of traffic congestion on one-way streets in mountainous areas using QR code scanning.

[0102] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solution of the above-mentioned method for scheduling and delaying traffic on one-way streets in mountainous areas by scanning codes. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-mentioned method for scheduling and delaying traffic on one-way streets in mountainous areas by scanning codes.

[0103] An embodiment of this specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is instructed to perform the steps of the above-described method for scheduling and warning of traffic congestion on one-way streets in mountainous areas by scanning QR codes.

[0104] The above is an illustrative scheme of a computer program according to this embodiment. It should be noted that the technical solution of this computer program belongs to the same concept as the technical solution of the above-mentioned method for scheduling and warning of traffic congestion on one-way streets in mountainous areas by scanning QR codes. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the above-mentioned method for scheduling and warning of traffic congestion on one-way streets in mountainous areas by scanning QR codes.

[0105] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0106] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0107] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.

[0108] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0109] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A method for scheduling and delay warning of QR code-based passage on one-way streets in mountainous areas, characterized in that, Includes the following steps: In the idle state, the barrier arms at both ends of the one-way street are in the raised state, and the scanning modules at both ends are in the responsive state; When a vehicle at either end initiates a one-way passage application through the scanning module, the end that initiates the one-way passage application is recorded as the applicant end and the other end as the peer end. After the cloud control host determines that there is no current passage occupation, it locks the one-way passage permission of the applicant end, controls the barrier gate of the applicant end to be raised, the barrier gate of the peer end to be lowered, and disables the scanning module of the peer end. The passage timer is started to count the one-way passage time. When the timer reaches the preset maximum passage time, no new vehicles are allowed to enter the lane. The dwell timer is activated to monitor the vehicle's travel time in the lane. When the vehicle's travel time exceeds the preset dwell threshold and the exit detector does not detect the vehicle leaving, a warning signal is triggered. After the exit detector detects that all vehicles have left the lane, the cloud control host clears the passage occupancy mark, the two end interceptor gates reset and lift, and the two end scanning modules return to a responsive state.

2. The method for scheduling and delay warning of one-way traffic in mountainous areas using QR code scanning as described in claim 1, characterized in that, After receiving a one-way access request initiated by any scanning module, the cloud control host initiates an arbitration time window for detection. Within the arbitration time window, it checks whether a one-way access request initiated by the scanning module of the other end exists. If only a one-way access request is received within the arbitration time window, the one-way access permission of the requesting end is directly locked. If both ends receive a passage application within the arbitration time window, the passage arbitration process begins, and the cloud control host determines the end that obtains one-way passage permission according to the preset arbitration rules.

3. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 2, characterized in that, In the aforementioned arbitration process, the cloud control host calculates the priority scores of both ends using the following formula: ; in, For the first Terminal priority scoring, For the first The timestamp of the application submitted via QR code. This is the start time of the arbitration time window. For the first The number of vehicles queuing in the waiting area. For reference vehicle number threshold, For the first The cumulative waiting time on the terminal, For reference, waiting time For the first The preset direction priority score of the end, For time factor weights, For queuing factor weights, For the waiting factor weights, For the direction priority factor weights, and The cloud control host compares the priority scores of the two ends, and the end with the higher priority score obtains one-way passage permission.

4. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 1, characterized in that, The scanning module includes a QR code scanning panel and a communication module. After the vehicle scans the QR code through the scanning panel, the communication module sends the passage request to the cloud control host. After locking the one-way passage permission of the requesting end, the cloud control host also controls the LED warning screen at the other end to display a waiting prompt message. The waiting prompt message includes an estimated waiting time, and the formula for calculating the estimated waiting time is: ; in, To estimate the waiting time, To preset the maximum passage time, The duration of passage since the one-way access permission was locked until the current moment; The exit detector is an exit inductive loop detector. Entrance radar detectors are also installed at both ends of the one-way street. The entrance radar detectors detect vehicles entering the lane, and the exit inductive loop detectors detect vehicles leaving the lane. The number of vehicles entering the lane is compared with the number of vehicles leaving the lane to determine whether there are still vehicles in the lane. The comparison formula is as follows: ; in, This represents the number of vehicles remaining in the lane. This represents the cumulative number of vehicles detected by the entrance radar detector. The cumulative number of vehicles detected by the exit inductive loop detector; when At that time, it was determined that all vehicles in the lane had left.

5. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 1, characterized in that, The barrier gate includes an upper barrier and a lower barrier that rise and fall synchronously. The upper barrier and the lower barrier rise or fall synchronously to close or open the lane. After locking the one-way passage permission of the applicant, the cloud control host also sends a hard interlock signal to the local controller at the other end. After receiving the hard interlock signal, the local controller at the other end blocks all gate raising commands and QR code scanning responses, so that the barrier gate at the other end cannot be raised regardless of manual operation or QR code scanning.

6. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 1, characterized in that, The preset maximum travel time is adaptively determined based on road parameters, and the calculation formula is as follows: ; in, To preset the maximum passage time, The length of a one-way lane. To preset the minimum passing speed, For safety margin coefficient and , Fixed buffer time; During the period before the passage timer reaches the preset maximum passage time, multiple vehicles are allowed to enter the lane consecutively. The formula for calculating the maximum number of vehicles allowed to pass simultaneously in the lane is as follows: ; in, This represents the maximum number of vehicles allowed to pass simultaneously within a lane. The minimum time interval between adjacent vehicles entering the lane. The safety margin length at both ends of the lane. This represents the average vehicle length. To maintain the minimum safe following distance; When the passage timer reaches the preset maximum passage time, new vehicles are prohibited from entering, and the intercepting gate at the opposite end remains in the lowered state until the exit detector detects that all vehicles in the lane have left.

7. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 1, characterized in that, The preset dwell threshold is determined based on road parameters, and the calculation formula is as follows: ; in, To preset the retention threshold, The length of a one-way lane. To preset the average traffic speed, For the safety factor of the stay and , This is the buffer period for the dwell time; After the warning signal is triggered, the alarm level is determined based on the vehicle's dwell time. The formula for calculating the alarm level is as follows: ; in, Alarm level, This refers to the actual time a vehicle spends traveling within the lane. The alarm escalation interval is specified; different alarm levels correspond to different early warning response methods, including controlling the simultaneous activation of the sound and light alarms at both ends, controlling the LED warning screens at both ends to switch to fault prompt text, and pushing fault alarm information to the management backend. The higher the alarm level, the higher the frequency of pushing the fault alarm information.

8. The method for scheduling and delay warning of one-way traffic using QR code scanning in mountainous areas according to claim 1, characterized in that, The method further includes: The maximum passage time for the next round of one-way traffic is dynamically adjusted based on the number of vehicles queuing in both directions of the waiting area. The adjustment formula is as follows: ; in, This will be the maximum passage time for the next round of one-way traffic. Based on the maximum passage time, and These represent the number of vehicles queuing at each of the two waiting areas. This serves as a reference threshold for the number of vehicles. when In this case, the next round of access rights will be preferentially allocated to... The corresponding end is allocated first, otherwise it is allocated first. The corresponding end.

9. The method for scheduling and delay warning of one-way traffic in mountainous areas using QR code scanning as described in claim 2, characterized in that, During the arbitration process, the cloud control host keeps both blocking gates down and both scanning modules disabled until the arbitration result is determined. Then, it controls the blocking gate on the side that has obtained access to be raised while keeping the blocking gate on the other side down, and restores the scanning module response on the side that has obtained access to be activated. If the priority scores at both ends of the passage arbitration process are equal, the cloud control host determines the passage permission according to the preset direction priority rule, which is to give priority to the uphill direction or the end with more queues.

10. A system for scheduling and monitoring traffic congestion warning for one-way streets in mountainous areas using QR code scanning, characterized in that, The system includes: The QR code access scheduling module is used to maintain the barrier gates at both ends of the one-way road in the raised state and the QR code scanning modules at both ends in the responsive state when the road is idle. When a vehicle at either end initiates a one-way access application through the QR code scanning module, the end that initiates the one-way access application is recorded as the requesting end and the other end is recorded as the receiving end. After the cloud control host determines that there is no current traffic occupation, it locks the one-way access permission of the requesting end, controls the barrier gate at the requesting end to be raised, the barrier gate at the receiving end to be lowered, and disables the QR code scanning module at the receiving end. The passage time limit control module is used to start the passage timer to count the one-way passage time. When the timer reaches the preset maximum passage time, no new vehicles are allowed to enter the lane. The congestion warning and monitoring module is used to activate a congestion timer to monitor the vehicle's travel time within the lane. When the vehicle's travel time exceeds a preset congestion threshold and the exit detector does not detect the vehicle exiting, a warning signal is triggered; and The passage reset module is used to clear the passage occupancy mark through the cloud control host after the exit detector detects that all vehicles have left the lane, control the two end intercepting gates to reset and lift, and restore the two end scanning modules to a responsive state.