Traffic control method and device for one-way road with multiple intersections, electronic equipment and storage medium
By dynamically adjusting the traffic status in multiple intersection roads, the congestion and safety hazards that are prone to crossing roads in mines are solved, and the smooth passage of vehicles and safe operation of roads are achieved.
Patent Information
- Application Number
- CN202411538444.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-14
AI Technical Summary
Multi-intersection roads are prone to congestion and safety hazards in mines, and the existing technology traffic control methods cannot effectively solve this problem.
By setting a certain intersection as a pass state and the other intersections as a pass state, the number of vehicles is detected and the pass state is dynamically adjusted to ensure that the vehicle can pass smoothly and avoid congestion.
It effectively avoids congestion and safety hazards at roads at multiple intersections, ensures the smooth passage of vehicles and the safe operation of the road.
Smart Images

Figure CN119445864A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of traffic control, and in particular to a method, device, electronic equipment and storage medium for traffic control on a multi-intersection road. Background Art
[0002] At present, most underground passages in mines are narrow and have multiple intersections due to various reasons. When vehicles from multiple directions meet at the intersection, they cannot pass normally, causing congestion and posing a great safety hazard.
[0003] In response to this situation, most mines currently use the following two solutions to detect the location of the mobile terminal and communicate with it to achieve the purpose of controlling safe driving:
[0004] (1) Use manual control or install electronic tags on the mine car.
[0005] (2) Adopt narrow road traffic control methods.
[0006] When there are vehicles coming from multiple directions in a multi-intersection section, the above two existing road traffic control methods will have the following defects:
[0007] Manual control solution: When mine vehicles from multiple directions meet at an intersection, they cannot pass each other normally, causing traffic congestion;
[0008] In the narrow road control method, the file-through mode allows a preset number of target vehicles to pass through the section in one direction. If there are always vehicles entering the section from one direction, vehicles at other intersections will have to wait for a long time.
[0009] When the last vehicle in the section leaves the narrow road section, the road traffic devices at all intersections will be placed in a traffic state, which may easily cause vehicles from multiple intersections to rush into the section, posing a safety hazard. Summary of the invention
[0010] The embodiments of the present application provide a traffic control method, device, electronic device and storage medium for a one-way road with multiple intersections, which are used to solve the technical problems of easy congestion and great safety hazards in the existing technology of multiple intersections in underground mines.
[0011] According to one aspect of the present application, a traffic control method for a one-way road at multiple intersections is provided, comprising:
[0012] Set a certain intersection to be in a traffic state, and set the other intersections to be in a prohibited state; wherein the intersection is a section of the other roads connected to the same target one-way road section;
[0013] Detecting the state of a vehicle entering the one-way road section from an intersection currently in a traffic state;
[0014] In response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, the status of vehicles in the waiting area of each intersection is detected at this time, and the next intersection in the passing state and the intersection in the prohibited state are set.
[0015] Further, in response to the number N reaching the predetermined number of vehicles M passing through the intersection, detecting the state of vehicles in the waiting area of each intersection at this time, setting the next intersection in the passing state and the next intersection in the prohibited state, including:
[0016] Detecting that the Mth vehicle enters the one-way road section;
[0017] Detect whether there is a vehicle in the waiting area of the intersection currently in a prohibited state. If so, set the state of the intersection currently in a passable state to a prohibited state; otherwise, set the state of the intersection currently in a passable state to a passable state;
[0018] Detecting that the Mth vehicle leaves the one-way road section;
[0019] Check whether there are any vehicles in the waiting area of the intersection that is currently in a prohibited state. If so, set the state of the intersection where the vehicle first appeared in the waiting area among the intersections currently in a prohibited state to a pass state, and set the remaining intersections to a prohibited state; otherwise, set all intersections to a pass state until the intersection where the vehicle first appeared in the waiting area is set to a pass state, and set the remaining intersections to a prohibited state.
[0020] Furthermore, the detection of the state of a vehicle entering the one-way road section from the intersection currently in a traffic state,
[0021] include:
[0022] Obtaining a first waiting time, where the first waiting time is used to indicate the time occupied by vehicles that are not passing through the intersection that is currently in a passing state;
[0023] Comparing the first waiting time with a preset waiting timeout time, the waiting timeout time indicating an upper limit of the time occupied by vehicles that are not passing through the intersection that is currently in a passing state;
[0024] In response to the waiting time being less than the waiting timeout time, the state of the intersection currently in the passable state is maintained unchanged; otherwise, it is determined whether there is a vehicle in the one-way road section at this time; if so, the intersection currently in the passable state is set to a prohibited state; otherwise, it is detected whether there is a vehicle in the waiting area of the intersection currently in the prohibited state; if so, the intersection currently in the passable state is set to a prohibited state; otherwise, all intersections are set to a passable state until the intersection where the vehicle first appears in the waiting area is set to a passable state, and the remaining intersections are set to a prohibited state.
[0025] Further, obtaining the first waiting time includes:
[0026] Detect whether there is a vehicle entering the traffic section from the time when the intersection currently in traffic starts to the current time;
[0027] If no vehicle is detected entering, the first waiting time is obtained by the difference between the current time and the time when the intersection currently in the traffic state starts to operate;
[0028] If a vehicle is detected to enter, the entry time of the last vehicle among the entering vehicles is obtained, and the first waiting time is obtained by the difference between the current time and the entry time.
[0029] Furthermore, the setting of the next intersection in a traffic state includes:
[0030] Detecting the number M1 of vehicles in the waiting area corresponding to the next intersection in a traffic state at this time;
[0031] Compare the number M1 with the preset theoretical number M2 of traffic at the intersection;
[0032] In response to M1 being less than or equal to M2, the predetermined number of vehicles passing through the intersection M is set to M1; otherwise, the predetermined number of vehicles passing through the intersection M is set to M2.
[0033] Furthermore, the theoretical number of passages M2 is obtained by:
[0034] Obtain the historical daily average number of one-way vehicles N0 of the target one-way road section;
[0035] Obtain the historical daily average number of one-way vehicles N entering the target one-way road section at each intersection k And the average travel time T of each vehicle in the target one-way road section k , subscript k represents the intersection numbered k, where k = 1, 2, 3...m, and m is the total number of intersections;
[0036] The theoretical number of traffic at intersection k Where ε is the proportionality coefficient.
[0037] Furthermore, the range of the target one-way road section is as follows:
[0038] The target one-way road is an interval between two intersections at the upper end of a certain one-way direction along the upper edge.
[0039] A second aspect of the present application provides a traffic control device for a one-way road at multiple intersections, comprising:
[0040] A traffic status setting module is used to set a certain intersection to be in a traffic state and set other intersections to be in a prohibited state; wherein the intersection is a section of the other roads that connects to the same target one-way road section;
[0041] A vehicle entry detection module, used to detect the state of a vehicle entering the one-way road section from an intersection currently in a traffic state;
[0042] The judgment and selection module is used to detect the status of vehicles in the waiting area of each intersection in response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, and set the next intersection in the passing state and the intersection in the prohibited state.
[0043] The third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements a traffic control method for a one-way road at multiple intersections as described in the first aspect of the present application.
[0044] The third aspect of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is run on a computer, the computer executes the traffic control method for a one-way road at multiple intersections as described in the first aspect.
[0045] In the embodiment of the present application, a traffic control method for a one-way road with multiple intersections is adopted, including: setting a certain intersection to be in a passable state, and setting the other intersections to be in a prohibited state; wherein the intersection is a section of the other roads that connects with the same target one-way road section; detecting the state of vehicles entering the one-way road section from the intersection currently in a passable state; in response to the number of vehicles N reaching the predetermined number of vehicles M passing the intersection, detecting the state of vehicles in the waiting area of each intersection at this time, and setting the next intersection in a passable state and the intersection in a prohibited state. The present application solves the technical problems of easy congestion and great safety hazards in narrow multiple intersections. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0047] Figure 1 is a schematic diagram of a one-way road with multiple intersections according to an embodiment of the present application;
[0048] Figure 2 is a flow chart of a traffic control method for a one-way road with multiple intersections according to an embodiment of the present application;
[0049] Figure 3 is a schematic diagram of a traffic control device for a one-way road with multiple intersections according to an embodiment of the present application;
[0050] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0051] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0052] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0053] like Figure 1As shown, a schematic diagram of a one-way road with multiple intersections provided by an embodiment of the present application is a partial schematic diagram of an underground tunnel. The figure illustrates a one-way road or at least a one-way road between the intervals O1 and O2. There are three roads L1, L2, and L3 that intersect with the intervals O1 and O2 to form three intersections. The intersection where each road L1, L2, and L3 connects with the one-way road is used as the intersection where the road enters the one-way road. A distance extending from each intersection to the road is set as a waiting area. There is no restriction on the number of lanes of L1, L2, and L3. The number of lanes on each road can be multiple according to actual conditions. The figure illustrates that the number of lanes of L1 and L2 is 1, and the number of lanes of L2 is 2. There is no specific restriction on the direction of vehicles entering the one-way road from each intersection, but generally, there will be intersections that can be used as exits, and vehicles need to leave the interval from these intersections. Assume that all the intersections in the figure are set as exitable intersections. After entering the one-way road section from any road, the vehicle can leave the section from O1 to O2 or from O2 to O1. The vehicle can leave by passing through 01 or 02 from the O1O2 section, in which case the vehicle takes a shorter time to pass through the section, or leave by entering the remaining roads within 0102. The speed of vehicles traveling in the lane is considered to be uniform within a certain range. Vehicles enter the section from different roads and travel in different directions, so that the time taken by the vehicle to pass through the section is different. For example, if a vehicle enters the section from L1 and leaves the section at 01, the time taken by the vehicle to pass through the section is shorter; if a vehicle enters the section from L1 and leaves the section at 02, the time taken by the vehicle to pass through the section is longer; if a vehicle enters the section from L3 and leaves the section from L2, the time taken by the vehicle to leave the section is shorter than the time taken by the vehicle to leave the section from 01, but longer than the time taken by the vehicle to leave the section from O2.
[0054] Since only one vehicle can travel in the above-mentioned section, and if multiple intersections are not under unified control, it is easy for multiple vehicles to enter the section at the same time. Since the driving direction of each vehicle is not fixed, it is very easy to make it impossible to drive in the section. Since the alley is relatively narrow as a whole, once a traffic jam occurs, the evacuation of the fleet is extremely difficult, and further safety hazards are likely to occur.
[0055] Therefore, an embodiment of the present application provides a control system for a one-way road at multiple intersections, including:
[0056] The first signal collection system is arranged at each intersection, and is used to collect the status of vehicles in the waiting area, including the time when the vehicle enters the waiting area, the number of vehicles in the waiting area, etc. The first signal collection system has a variety of specific implementation forms, including but not limited to radar, camera, ground sensor coil, etc., single or combined forms.
[0057] The second signal acquisition system is arranged on the one-way road section, and is used to collect the status of vehicles in the one-way road section, including the time when the vehicle enters the section and the time when the vehicle leaves the section. The first signal acquisition system has various specific implementation forms, including but not limited to radar, camera, ground sensor coil, etc., in single or combined form.
[0058] The signal control system is electrically connected to the first signal acquisition system, the second signal acquisition system and the traffic indication devices arranged at each intersection, and is used to perform calculations based on the signals provided by the first signal acquisition system and the second signal acquisition system and to control the traffic indication devices to indicate the traffic status of the corresponding intersection based on the calculation results.
[0059] Based on the above control system, an embodiment of the present invention provides a traffic control method for a one-way road at multiple intersections, comprising the following steps:
[0060] Step S101, setting a certain intersection to be in a traffic state, and setting other intersections to be in a prohibited state; wherein the intersection is a section of the other roads connected to the same target one-way road section.
[0061] Due to the characteristics of the target one-way road section, only one vehicle can pass through at a time. By setting only one intersection to be open to traffic at a time, even if vehicles from the same intersection have different driving directions, they will not cause traffic jams in the section because they have a queue order when entering the section.
[0062] The range of the target one-way road section is as follows: the section between two intersections at the upper end of a certain one-way direction of the target one-way road. Figure 1 As shown, it is between O1O2.
[0063] Step S102: Detect the status of a vehicle entering the one-way road section from the intersection that is currently in a traffic state.
[0064] Step S103, in response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, detecting the status of vehicles in the waiting area of each intersection at this time, and setting the next intersection in the passing state and the intersection in the prohibited state.
[0065] The core concept of the embodiment of the present invention is to set the number of vehicles M to pass at the intersection based on the current traffic state. If the number of vehicles entering the section from the intersection reaches the preset value M, it is considered that the current intersection has sufficient traffic volume, and other intersections should be considered for passage to avoid long waiting times at other intersections. The above embodiment can alternately allow different intersections to achieve traffic status, and there will be no long waiting times at a certain intersection, thus solving the risk of traffic jams in one-way road sections.
[0066] In some preferred embodiments, in response to the number N reaching the predetermined number M of vehicles passing through the intersection, detecting the state of vehicles in the waiting area of each intersection at this time, and setting the next intersection in the passing state and the intersection in the prohibited state include:
[0067] Step S1031: Detect that the Mth vehicle enters the one-way road section. Since the predetermined number of vehicles passing through the intersection is M, this means that the intersection has actually released a preset number of vehicles in the current round of traffic, and it should be considered to switch to other intersections for traffic.
[0068] Step S1032, detect whether there are vehicles in the waiting area of the intersection currently in the forbidden state, if yes, set the state of the intersection currently in the pass state to the forbidden state; otherwise, set the state of the intersection currently in the pass state to the pass state. When there are vehicles waiting at the intersection in the forbidden state, other intersections should be set as the pass intersections for the next round, so the intersection currently in the pass state needs to be set as a forbidden state, but at this time, since the Mth vehicle may still be driving in the said interval, there may be more than one intersection with waiting vehicles, so in order to prevent traffic jams, temporarily do not set which specific intersection is in the pass state. If there are no vehicles in the waiting area of the intersection in the forbidden state, then the intersection in the current pass state is still kept in the pass state, but according to the road driving requirements, the M+1th vehicle needs to wait for the Mth vehicle to completely leave the said interval before entering the interval, so at this time, even if there is an M+1th vehicle, it needs to wait.
[0069] Step S1033: Detecting that the Mth vehicle leaves the one-way road section. Between the time when the Mth vehicle enters the section and leaves the section, the waiting vehicles at each intersection may change, so it is necessary to confirm the status of each intersection when leaving the section again.
[0070] Step S1034, check whether there is a vehicle in the waiting area of the intersection that is currently in a prohibited state. If so, set the state of the intersection where the vehicle first appeared in the waiting area among the intersections currently in a prohibited state to a pass state, and set the remaining intersections to a prohibited state; otherwise, set all intersections to a pass state until the intersection where the vehicle first appeared in the waiting area is set to a pass state, and set the remaining intersections to a prohibited state.
[0071] If in step S1032, the intersection in the current traffic state is set to a prohibited state, then all intersections in step S1034 are in a prohibited state. At this time, the next traffic intersection is set based on the earliest intersection with waiting vehicles as a traffic state to avoid vehicles at this intersection having to wait for too long.
[0072] If in step S1032, the intersection in the current passable state still remains in the passable state, then during the period from when the Mth vehicle enters the interval to when it leaves the interval, vehicles may be waiting at the intersections that were originally in the forbidden state, and vehicles may also be waiting at the intersections that are currently in the passable state. At this time, it should be prioritized to determine whether there are waiting vehicles at the intersections that are currently in the forbidden state. If there are no waiting vehicles, all intersections are set to pass. In this case, if the intersection in the previous passable state has the M+1th vehicle waiting during the period from when the Mth vehicle enters the interval to when it leaves the interval, then this intersection will become the intersection where the vehicle waiting in the waiting area appears first among all intersections, and this intersection is set to pass, and the rest of the intersections are set to be forbidden. However, if the intersection in the previous round of traffic status does not have the M+1th vehicle during the period from the time the Mth vehicle enters the interval to the time it leaves the interval, then after all intersections are set to the traffic status, they need to wait for the earliest vehicle to appear in the waiting area. After this sign event occurs, only one of the current intersections will be in the traffic status, and the rest will be in the prohibited status.
[0073] In order to avoid various factors causing the intersection currently in traffic to be closed for a long time, resulting in the number of vehicles entering the section in the above embodiment always failing to reach the predetermined number of vehicles M passing through the intersection, in some preferred embodiments, the state of the vehicle entering the one-way road section from the intersection currently in traffic includes:
[0074] Step S1021, obtaining a first waiting time, which is used to indicate the time occupied by vehicles that are not passing through the intersection that is currently in a traffic state. In an ideal state, a normally traffic-free intersection is when the previous vehicle leaves the interval and the next vehicle enters the interval. If the interval between the previous and next vehicles is too long or even no vehicle enters the interval at all, time will be wasted. The solution of this application allows a certain amount of time waste, but not too much, so it is necessary to monitor the above-mentioned first waiting time.
[0075] Step S1022: compare the first waiting time with a preset waiting timeout time, wherein the waiting timeout time indicates an upper limit of the time occupied by vehicles that are not passing through the intersection that is currently in a passing state.
[0076] For example, the upper limit of the time occupied by the non-passing vehicles should be set to the time consumed by M / 2 vehicles to pass completely. If the first waiting time reaches the above time, it is considered that the intersection is currently in an abnormal traffic state and switching the traffic intersection should be considered.
[0077] Step S1023, in response to the waiting time being less than the waiting timeout, the state of the intersection currently in the passable state is maintained unchanged, otherwise, it is determined whether there is a vehicle in the one-way road section at this time, if yes, the intersection currently in the passable state is set to a prohibited state; otherwise, it is detected whether there is a vehicle in the waiting area of the intersection currently in the prohibited state, if yes, the intersection currently in the passable state is set to a prohibited state, otherwise, all intersections are set to a passable state until the intersection where the vehicle first appears in the waiting area is set to a passable state, and the remaining intersections are set to a prohibited state. In this way, the remaining intersections with waiting vehicles can be given priority to avoid affecting other intersections due to the failure of this intersection to pass.
[0078] In some preferred embodiments, obtaining the first waiting time includes:
[0079] Step S10211, detecting whether there is a vehicle entering the traffic road section from the time when the intersection currently in traffic starts to the current time;
[0080] Step S10212: If no vehicle entry is detected, the first waiting time is obtained by the difference between the current time and the start time of the intersection that is currently in a traffic state; if a vehicle entry is detected, the entry time of the last vehicle among the entering vehicles is obtained, and the first waiting time is obtained by the difference between the current time and the entry time.
[0081] For different intersections, due to the positional relationship between the intersection and the one-way road section, the design of the vehicle route, the number of lanes at the intersection, etc., the number of vehicles entering the one-way road section per unit time at different intersections is different. Therefore, in order to be able to more intelligently adapt to the above situation when passing through the intersection, in some preferred embodiments, the setting of the next intersection in a passable state includes:
[0082] Step S1035, detecting the number M1 of vehicles in the waiting area corresponding to the next intersection in a traffic state at this time;
[0083] Step S1036, comparing the number M1 with a preset theoretical number of vehicles passing through the intersection M2;
[0084] Step S1037: In response to M1 being less than or equal to M2, the predetermined number of vehicles passing through the intersection M is set to M1; otherwise, the predetermined number of vehicles passing through the intersection M is set to M2.
[0085] Through the above method, the scheduled number of passing vehicles M at each intersection is dynamically changed, so that the scheduled number of passing vehicles M at each intersection can be dynamically adjusted when it is selected as the next passing state. When M1 is less than or equal to M2, it means that there are fewer vehicles waiting at the current intersection, so allowing fewer vehicles to pass can meet the traffic demand. When M1 is larger, M2 is used as the upper limit because other intersections need to be taken into consideration.
[0086] The theoretical number of traffic M2 at each intersection is also different. For example, for an intersection with a large number of traffic per day, the number of traffic at each time should be relatively large. In addition, since the time intervals occupied by vehicles with different routes are different, the number of traffic at each time can be relatively large for intersections where vehicles with shorter occupancy times are located. Therefore, based on the above situation, in some preferred embodiments, the theoretical number of traffic M2 is obtained by the following method:
[0087] Step S10361, obtaining the historical daily average number N0 of one-way vehicles in the target one-way road section;
[0088] Step S10362: Obtain the historical daily average number of one-way vehicles N entering the target one-way road section at each intersection k And the average travel time T of each vehicle in the target one-way road section k , subscript k represents the intersection numbered k, where k = 1, 2, 3...m, and m is the total number of intersections;
[0089] The theoretical number of traffic at intersection k Where ε is the proportionality coefficient.
[0090] The above calculation of the theoretical number of passes M2 fully considers the historical number of vehicles at each intersection and the travel time within the interval, and finally adopts the proportional coefficient ε and rounds it off to obtain the value. The larger the proportional coefficient ε, the more vehicles can pass through the intersection corresponding to each round of traffic. This will result in a longer time corresponding to traversing all intersections once. However, it is not appropriate if the proportional coefficient ε is too small, which will lead to frequent switching of intersections. Therefore, the proportional coefficient ε should be adjusted appropriately according to the operating conditions.
[0091] Furthermore, the determination of M2 in this embodiment and the average driving time T of each vehicle in the target one-way road section are used. k , it can be calculated that in the above embodiment, the upper limit of the time occupied by the non-passing vehicles should be the time consumed by M / 2 vehicles to pass completely, which is M2T k / 2.
[0092] The embodiment of the present invention also provides a traffic control device for a one-way road at multiple intersections, such as Figure 3 As shown, including:
[0093] A traffic status setting module is used to set a certain intersection to be in a traffic state and set other intersections to be in a prohibited state; wherein the intersection is a section of the other roads that connects to the same target one-way road section;
[0094] A vehicle entry detection module, used to detect the state of a vehicle entering the one-way road section from an intersection currently in a traffic state;
[0095] The judgment and selection module is used to detect the status of vehicles in the waiting area of each intersection in response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, and set the next intersection in the passing state and the intersection in the prohibited state.
[0096] The above embodiment is based on the predetermined number of vehicles M at the intersection in the current traffic state. If the number of vehicles entering the section from the intersection reaches the preset value M, it is considered that the current intersection has sufficient traffic volume, and other intersections should be considered for traffic to avoid long waiting times at other intersections. The above embodiment can alternately allow different intersections to achieve traffic status, and there will be no long waiting times at a certain intersection, thus solving the risk of traffic jams in one-way road sections.
[0097] It should be noted that, although several modules or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules described above can be embodied in one unit. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.
[0098] Based on the same inventive concept as the embodiments of the above-mentioned invention, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements a traffic control method for a one-way road at multiple intersections as described in the above-mentioned embodiments of the present invention.
[0099] In one embodiment, the electronic device may be a server. In this embodiment, the structure of the electronic device may be as follows: Figure 4 As shown, it includes a memory 2001 , a communication module 2003 and one or more processors 2002 .
[0100] The memory 2001 is used to store computer programs executed by the processor 2002. The memory 2001 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0101] The memory 2001 may be a volatile memory, such as a random-access memory (RAM); the memory 2001 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 2001 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2001 may be a combination of the above memories.
[0102] The processor 2002 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 2002 is used to implement the above-mentioned audio data processing method when calling the computer program stored in the memory 2001 .
[0103] The communication module 2003 is used to communicate with terminal devices and other servers.
[0104] The specific connection medium between the memory 2001, the communication module 2003 and the processor 2002 is not limited in the embodiment of the present application. Figure 4 In the embodiment, the memory 2001 and the processor 2002 are connected via a bus 2004. The bus 2004 is Figure 4 The arrows in the figure are used to describe the connection between other components, which is only for illustrative purposes and is not intended to be limiting. Bus 2004 can be divided into address bus, data bus, control bus, etc. For ease of description, Figure 4 The diagram only uses one arrow, but does not describe only one bus or one type of bus.
[0105] Based on the same inventive concept as the embodiments of the above invention, the embodiments of the present invention also provide a computer-readable storage medium, the computer-readable storage medium is used to store a computer program, when the computer program is run on a computer, the electronic device implements the control method in the above embodiment. The computer-readable storage medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0106] Based on the same inventive concept as the above-mentioned method embodiment, an embodiment of the present invention further provides a computer program product, the computer program product including a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the control method according to various exemplary embodiments of the present application described above in this specification. The program product may adopt any combination of one or more readable media. These computer program commands may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the steps in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
Claims
1. A traffic control method for a one-way road with multiple intersections, characterized in that: Set a certain intersection to be in a traffic state, and set the other intersections to be in a prohibited state; wherein the intersection is a section of the other roads connected to the same target one-way road section; Detecting the state of a vehicle entering the one-way road section from an intersection currently in a traffic state; In response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, the status of vehicles in the waiting area of each intersection is detected at this time, and the next intersection in the passing state and the intersection in the prohibited state are set.
2. The method according to claim 1, characterized in that In response to the number N reaching the predetermined number M of vehicles passing through the intersection, detecting the state of vehicles in the waiting area of each intersection at this time, setting the next intersection in the passing state and the next intersection in the prohibited state, including: Detecting that the Mth vehicle enters the one-way road section; Detect whether there is a vehicle in the waiting area of the intersection currently in a prohibited state. If so, set the state of the intersection currently in a passable state to a prohibited state; otherwise, set the state of the intersection currently in a passable state to a passable state; Detecting that the Mth vehicle leaves the one-way road section; Check whether there are any vehicles in the waiting area of the intersection that is currently in a prohibited state. If so, set the state of the intersection where the vehicle first appeared in the waiting area among the intersections currently in a prohibited state to a pass state, and set the remaining intersections to a prohibited state; otherwise, set all intersections to a pass state until the intersection where the vehicle first appeared in the waiting area is set to a pass state, and set the remaining intersections to a prohibited state.
3. The method according to claim 1, characterized in that: The detecting the state of a vehicle entering the one-way road section from the intersection currently in a traffic state includes: Obtaining a first waiting time, where the first waiting time is used to indicate the time occupied by vehicles that are not passing through the intersection that is currently in a passing state; Comparing the first waiting time with a preset waiting timeout time, the waiting timeout time indicating an upper limit of the time occupied by vehicles that are not passing through the intersection that is currently in a passing state; In response to the waiting time being less than the waiting timeout time, the state of the intersection currently in the passable state is maintained unchanged; otherwise, it is determined whether there is a vehicle in the one-way road section at this time; if so, the intersection currently in the passable state is set to a prohibited state; otherwise, it is detected whether there is a vehicle in the waiting area of the intersection currently in the prohibited state; if so, the intersection currently in the passable state is set to a prohibited state; otherwise, all intersections are set to a passable state until the intersection where the vehicle first appears in the waiting area is set to a passable state, and the remaining intersections are set to a prohibited state.
4. The method according to claim 3, characterized in that The obtaining of the first waiting time comprises: Detect whether there is a vehicle entering the traffic section from the time when the intersection currently in traffic starts to the current time; If no vehicle is detected entering, the first waiting time is obtained by the difference between the current time and the time when the intersection currently in the traffic state starts to operate; If a vehicle is detected to enter, the entry time of the last vehicle among the entering vehicles is obtained, and the first waiting time is obtained by the difference between the current time and the entry time.
5. The method according to claim 1, characterized in that: The step of setting the next intersection in a traffic state includes: Detecting the number M1 of vehicles in the waiting area corresponding to the next intersection in a traffic state at this time; Compare the number M1 with the preset theoretical number M2 of traffic at the intersection; In response to M1 being less than or equal to M2, the predetermined number of vehicles passing through the intersection M is set to M1; otherwise, the predetermined number of vehicles passing through the intersection M is set to M2.
6. The method according to claim 5, characterized in that The theoretical number of passages M2 is obtained by: Obtain the historical daily average number of one-way vehicles N0 of the target one-way road section; Obtain the historical daily average number of one-way vehicles N entering the target one-way road section at each intersection k And the average travel time T of each vehicle in the target one-way road section k , subscript k represents the intersection numbered k, where k = 1, 2, 3...m, and m is the total number of intersections; The theoretical number of traffic at intersection k Where ε is the proportionality coefficient.
7. The method according to claim 5, characterized in that The range of the target one-way road section is as follows: The target one-way road is an interval between two intersections at the upper end of a certain one-way direction along the upper edge.
8. A traffic control device for a one-way road with multiple intersections, characterized in that: include: A traffic status setting module is used to set a certain intersection to be in a traffic state and set other intersections to be in a prohibited state; wherein the intersection is a section of the other roads that connects to the same target one-way road section; A vehicle entry detection module, used to detect the state of a vehicle entering the one-way road section from an intersection currently in a traffic state; The judgment and selection module is used to detect the status of vehicles in the waiting area of each intersection in response to the number of vehicles N reaching the predetermined number of vehicles M passing through the intersection, and set the next intersection in the passing state and the intersection in the prohibited state.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.