CN109615890A - Traffic lights switching method and system based on block chain - Google Patents

Traffic lights switching method and system based on block chain Download PDF

Info

Publication number
CN109615890A
CN109615890A CN201811644681.XA CN201811644681A CN109615890A CN 109615890 A CN109615890 A CN 109615890A CN 201811644681 A CN201811644681 A CN 201811644681A CN 109615890 A CN109615890 A CN 109615890A
Authority
CN
China
Prior art keywords
information
traffic lights
traffic
collecting device
information collecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201811644681.XA
Other languages
Chinese (zh)
Inventor
周文棋
洪亮
张艳菊
卢亦斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Lang run innovation intellectual property operation Co.,Ltd.
Original Assignee
Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chain Technology Co Ltd filed Critical Chain Technology Co Ltd
Priority to CN201811644681.XA priority Critical patent/CN109615890A/en
Publication of CN109615890A publication Critical patent/CN109615890A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • G08G1/08Controlling traffic signals according to detected number or speed of vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a kind of traffic lights switching method, system and computer readable storage mediums based on block chain, this method comprises: receiving the application for registration comprising its identification information that information collecting device and traffic lights are sent;The application for registration is audited, the block chain network is added in the information collecting device for meeting preset condition and traffic lights;Receive in block chain network each information collecting device node to traffic lights associated with it send its acquire traffic flow information and traffic statistics request after, with the associated traffic lights of the information collecting device based on the traffic flow information, the signal lamp switching command for being calculated according to preset algorithm contract and storing the block chain network, so that the traffic lights execute the signal lamp switching command.The present invention improves the execution efficiency of intelligent transportation system, enhances the safety of intelligent transportation system.

Description

Traffic lights switching method and system based on block chain
Technical field
The present invention relates to field of intelligent transportation technology, and in particular to a kind of traffic lights switching side based on block chain Method, system and computer readable storage medium.
Background technique
In recent years, increasing with home vehicle, road traffic is more and more crowded.Especially in the morning of a tier 2 cities Evening peak period, traffic jam are got worse.The case where in order to alleviate traffic congestion, other than policy guide, many cities Have begun tentative intelligent transportation system (Intelligent Transportation System, ITS).
Intelligent transportation system is the developing direction of future transportation system, it is to pass advanced information technology, data communication Transferring technology, Electronic transducer technology, control technology and computer technology etc. are effectively integrated into entire ground traffic control management system System and establish a kind of in a wide range of, comprehensive playing a role, real-time, accurately and efficiently composite communications transport management system System.
Current intelligent transportation system is mainly collected Traffic Information by the various kinds of sensors being arranged on road, is passed The information of collection is passed through transmission of network to centralized server, after server is analyzed, with existing traffic lights strategy by sensor It is compared, prioritization scheme is sent to traffic lights and is executed.Existing intelligent transportation system is generally by central control system, cresset Controller, video camera, remote sensor and communication network are constituted.Remote sensor and video camera detect wagon flow/stream of people, and rely on Data back central control system, central control system will issue each cresset controller and instruct by wireless or optical fiber wire transmission (i.e. traffic lights switching command) switches cresset.Since wagon flow/stream of people information collection, analysis, traffic lights switching command are dependent on In central control system, therefore the prior art has following defects that
Information collection, analysis are carried out using centralized server, then carries out traffic lights scheduling, needs to take a long time, And the centralized server that places one's entire reliance upon, it has higher requirements to the stability of server and surrounding enviroment;In information collection, order During execution, signal is easy to be tampered, and there are signals to kidnap risk, causes traffic disturbance.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State traffic lights switching method, system and the computer readable storage medium based on block chain of problem.
According to an aspect of the invention, there is provided a kind of traffic lights switching method based on block chain, the side Method includes:
Receive the application for registration comprising its identification information that information collecting device and traffic lights are sent;
The application for registration is audited, the block is added in the information collecting device for meeting preset condition and traffic lights Chain network;
It receives each information collecting device node in block chain network and to traffic lights associated with it sends its acquisition Traffic flow information and traffic statistics request after, with the associated traffic lights of the information collecting device be based on the traffic Flow information, the signal lamp switching command for being calculated according to preset algorithm contract and storing the block chain network, so that institute It states traffic lights and executes the signal lamp switching command.
Optionally, the identification information include one of coordinate information, street information, number information, area information or It is a variety of.
Optionally, each information collecting device node is sent to traffic lights associated with it in the block chain network Traffic flow information is to use the traffic flow information after the private key signature of the information collecting device.
Optionally, the described and associated traffic lights of the information collecting device are to possess and the information collecting device The matched public key of private key traffic lights, the public key is used to be verified the traffic flow information of the private key signature.
Optionally, the method also includes:
According to the identification information, information collecting device and traffic lights are associated according to preset rules.
Optionally, the preset condition be database in be stored with the consistent traffic lights of the identification information or Information collecting device archives;
The preset rules are adopted for identification information part is consistent or whole is consistent or meets the information of preset relation Collection equipment and traffic lights are associated.
Optionally, the method also includes:
To each information collecting device that the block chain network is added provide unique private key and with the private key it is matched Public key, so that the information collecting device sends the public key to traffic lights associated with it.
Optionally, the method also includes:
Activation command is received, the activation command carries activation object identity, and the activation object identity includes coordinate letter One of breath, street information, number information, area information are a variety of;
According to the activation command, information collecting device corresponding to the activation object identity and traffic lights are cut Dynamic traffic lamp mode is shifted to, the dynamic traffic lamp mode is the traffic flow information acquired according to the information collecting device The mode that the traffic lights are switched over.
Optionally, the information collecting device is camera and/or sensor.
According to another aspect of the present invention, a kind of traffic lights switching method based on block chain, the side are provided Method includes:
Each information collecting device node in block chain network acquires traffic flow information;
The information collecting device sends its traffic flow information and flow for acquiring to traffic lights associated with it Statistics request, so as to the traffic flow information is based on the associated traffic lights of the information collecting device, according to default Algorithm contract calculate signal lamp switching command, and the signal lamp switching command is executed, wherein the signal lamp switching command Store the block chain network.
Optionally, the information collecting device sends its magnitude of traffic flow letter acquired to traffic lights associated with it Breath, comprising:
The private key of the information collecting device reception pipe platform granting and with the matched public key of the private key;
The information collecting device sends the public key to traffic lights associated with it;
The information collecting device is using the private key of the information collecting device to the collected traffic flow information label Name, is sent to traffic lights associated with it for the traffic flow information after signature;So that the traffic lights use institute It states public key verifications and passes through the traffic flow information of the private key signature.
According to another aspect of the invention, a kind of traffic lights switching method based on block chain, the side are provided Method includes:
Traffic lights receive the traffic flow information that information collecting device associated with it is sent and traffic statistics request;
Traffic lights are based on the traffic flow information, calculate signal lamp switching command according to preset algorithm contract, And the signal lamp switching command is executed, wherein the signal lamp switching command is stored to the block chain network.
Optionally, the method also includes:
The traffic lights receive the private with the information collecting device that information collecting device associated with it is sent The matched public key of key;
The traffic lights are based on the traffic flow information, calculate signal lamp switching life according to preset algorithm contract It enables, comprising:
The traffic lights verify the traffic flow information by the private key signature with the public key;
If being verified, the traffic lights are based on the traffic flow information, are calculated according to preset algorithm contract Signal lamp switching command.
According to another aspect of the present invention, a kind of traffic lights switching system based on block chain, the system are provided System is applied to block chain network, and the system comprises management platform, information collecting device and traffic lights;Wherein,
The management platform includes: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is as above that the executable instruction executes the processor The corresponding operation of traffic lights switching method based on block chain;
The information collecting device is for acquiring traffic flow information, by the collected traffic flow information and flow Statistics request is sent to traffic lights associated with it;
The traffic lights are used to receive traffic flow information and flow that information collecting device associated with it is sent Statistics request, is based on the traffic flow information, signal lamp switching command is calculated according to preset algorithm contract, by the signal Lamp switching command is stored to the block chain network, executes the signal lamp switching command.
According to another aspect of the invention, a kind of computer readable storage medium is provided, is stored in the storage medium There is an at least executable instruction, the executable instruction makes processor execute the traffic lights as described above based on block chain The corresponding operation of switching method.
Block chain network is added in information collecting device and traffic lights by the scheme provided according to the present invention, the present invention, By the point-to- point communication of information collecting device traffic lights associated there, during signal lamp switching command needs not move through Heart server reduces the waiting time that traffic lights execute signal switching, and improve intelligent transportation system executes effect Rate reduces intelligent transportation system paralysis risk;Further, since the equal cochain storage of all signal lamp switching commands, signal is not It is easily tampered, enhances the safety of intelligent transportation system.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The logical construction that Fig. 1 shows the traffic lights switching system provided in an embodiment of the present invention based on block chain is shown It is intended to;
Fig. 2 shows the structural representations of the traffic lights switching system provided in an embodiment of the present invention based on block chain Figure;
Fig. 3 shows the workflow of the traffic lights switching system provided in an embodiment of the present invention based on block chain Figure;
Fig. 4 shows the intelligent transportation fortune of the traffic lights switching system provided in an embodiment of the present invention based on block chain Row flow chart;
Fig. 5 shows a kind of process of traffic lights switching method based on block chain provided in an embodiment of the present invention Figure;
Fig. 6 shows another traffic lights switching method based on block chain provided according to embodiments of the present invention Flow chart;
Fig. 7 shows the process of another traffic lights switching method based on block chain provided in an embodiment of the present invention Figure.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Of the invention and system is based on block chain technology, is also referred to as distributed account book technology, is a kind of interconnection netting index According to library technology, its main feature is that it is decentralization, open and clear, allow everyone to each may participate in data-base recording.It is relevant to block chain Basic conception includes:
Trade (Transaction): once-through operation leads to the primary change of account book state, such as one record of addition;
Block (Block): the transaction and state outcome occurred in record a period of time, is to the primary of current account book state Common recognition;
Chain (Chain): it is connected in series by block one by one according to order of occurrence, is the log recording of entire state change.
As shown in Figure 1, being the logic knot of the traffic lights switching system provided in an embodiment of the present invention based on block chain Structure schematic diagram.The embodiment of the present invention is based on alliance's chain, by building a traffic alliance chain, participates in traffic flow information acquisition Each information collecting device (such as vehicle flowrate camera, flow of the people camera etc.) and traffic lights are added traffic as node and join Alliance's chain.A block chain intelligent transportation system is constructed on this basis, includes a management platform in system, and management platform has each Node identity information registration and management, such as add, modification, delete traffic lights;Activation disables one or more traffic letters Signal lamp;Addition modification, is deleted, binding, unbundlings information collecting device;Intelligent contract administration can be added, modify, deleting behaviour Make.Each information collecting device and traffic signals light node in the intelligent transportation system login account on management platform, bind phase Associate device etc..Information collecting device stores the traffic flow information cochain of acquisition, and initiates traffic statistics transaction, ties up with it It after fixed traffic lights are verified the transaction, execute algorithm contract and generates signal lamp switching command, and carry out corresponding red Green light handover operation.
The system is divided into block link layer, contract layer, application layer and physical layer.Wherein block link layer is the embodiment of the present invention Middle established traffic alliance chain.Contract layer includes that registration contract, binding contract, algorithm contract and corresponding intelligent contract are compiled Device is translated, contract layer for executing the request from node automatically.Application layer includes information collecting device management, traffic signals fluorescent tube Reason and contract administration.Physical layer includes information collecting device and traffic lights, and the signal for executing traffic lights switches.
As shown in Fig. 2, the structure for the traffic lights switching system provided in an embodiment of the present invention based on block chain is shown It is intended to.The system 200 is applied to block chain network, including management platform 21, information collecting device 22 and traffic lights 23.Pipe Platform 21 can be server, and management platform 21 includes: processor, memory, communication interface and communication bus, processor, Memory and communication interface complete mutual communication by communication bus.Memory is used to store an at least executable instruction, Executable instruction makes processor execute the traffic lights switching side based on block chain for being applied to management platform as described below The corresponding operation of method.
Information collecting device 22 asks collected traffic flow information and traffic statistics for acquiring traffic flow information It asks and is sent to traffic lights 23 associated with it.The information collecting device 22 can be camera, sensor etc. can collecting vehicle The equipment of stream information and people information.Information collecting device 22 be smart machine, have processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus.Memory is for storing extremely A few executable instruction, executable instruction make processor execute it is as described below be applied to information collecting device based on block chain The corresponding operation of traffic lights switching method.
Traffic lights 23 are used to receive traffic flow information and flow that information collecting device 22 associated with it is sent Statistics request, is based on traffic flow information, calculates signal lamp switching command according to preset algorithm contract, signal lamp is switched and is ordered It enables storage arrive block chain network, executes signal lamp switching command.Traffic lights are smart machine, have processor, memory, Communication interface and communication bus, processor, memory and communication interface complete mutual communication by communication bus.Memory For storing an at least executable instruction, executable instruction makes processor execute the base applied to traffic lights as described below In the corresponding operation of traffic lights switching method of block chain.
Below to traffic lights switching method performed by traffic lights switching system provided in an embodiment of the present invention It is described in detail, as shown in Figure 3 and Figure 4, Fig. 3 is the traffic lights switching provided in an embodiment of the present invention based on block chain The work flow diagram of system, Fig. 4 are the intelligence of the traffic lights switching system provided in an embodiment of the present invention based on block chain Traffic circulation flow chart.The workflow of system includes:
Step 301: information collecting device and traffic lights sent to management platform include its identification information registration Shen Please.
Wherein, identification information includes one of coordinate information, street information, number information, area information or a variety of.
Step 302: management platform audits application for registration, will meet the information collecting device and traffic lights of preset condition Block chain network is added.
Wherein, preset condition can be to be stored in database and adopt with the consistent traffic lights of identification information or information Collect equipment files.Management platform is used and is controlled by traffic control department, and traffic control department is responsible for launching, installs above-mentioned information collecting device And traffic lights, each mounted information collecting device and traffic lights can be stored in the database of the system background In.After receiving application for registration, if being stored with the archives of the information collecting device or traffic lights in database, illustrate The information collecting device or traffic lights are the conjunction rule equipment launched, installed by traffic control department, can be given in block chain Registration.
Through the above steps, traffic lights lead to the information such as coordinate information, street information, number information, area information Cross registration contract write-in traffic alliance chain.Information collecting device is by coordinate information, street information, number information, area information etc. Traffic alliance chain is written by registration contract in information.User of the content of registration contract comprising transmission application for registration (such as adopt by information Collection equipment or traffic lights) its identification information need to be provided, the user's (such as management platform) for auditing application for registration need to be according to default Condition audits application for registration, and after each side completes respective promise, registration contract is reached, and traffic lights and information collecting device are real Registration on present traffic alliance chain.
Step 303: management platform according to identification information, according to preset rules by information collecting device and traffic lights into Row association.
Wherein, preset rules are adopted for identification information part is consistent or whole is consistent or meets the information of preset relation Collection equipment and traffic lights are associated.Specifically, a traffic lights can be associated with multiple information collecting devices, or One information collecting device can be associated with multiple traffic lights.For example, being mounted with several letters near a traffic lights Breath acquisition equipment, these information collecting devices traffic flow information collected may be incorporated for the letter for calculating traffic lights Signal lamp switching command, such a traffic lights and several information collecting devices, typically be provided with part it is consistent or All consistent identification informations, such as its street information are identical, the consistent (volume of such as certain traffic lights in number information part Number be 001-1, the number of certain information collecting device is 001-2, has common main number information 001, illustrates that the two set Standby number information is corresponding), area information is identical, and (such as certain information collecting device and certain traffic lights belong to A1 Region) or respective identification information between meet certain specific preset relation, such as the number of certain traffic lights is 001-1, the number of certain information collecting device are 001-2, and it is identical to meet main number information between the two number informations, are met pre- If relationship, therefore the two equipment can be associated.The coordinate information of such as certain traffic lights is N35 ° 11 ' of north latitude again 48.41 " E110 ° 43 ' 36.44 of east longitudes ", the coordinate information of certain information collecting device are N35 ° 11 ' 50.41 " E110 ° of east longitude of north latitude 43 ' 37.44 ", latitude information difference meets default pass less than 10 ", longitude information difference is again smaller than 10 " between the two coordinate informations System, therefore the two equipment can be associated.
Above-mentioned association process is substantially exactly by binding contract for the traffic signals of information collecting device and region Lamp completes the process of binding.The content of binding contract includes that need to mention to user bound (such as information collecting device and traffic lights) For its identification information, the user's (such as management platform) for executing binding need to judge the mark letter of information collecting device and traffic lights Whether part unanimously or all unanimously or meets preset relation to breath, binds two equipment if meeting, each side is complete After respective promise, binding contract is reached, and traffic lights and information collecting device realize the binding on traffic alliance chain.
Step 304: management platform to each information collecting device that block chain network is added provide unique private key and with this The matched public key of private key.
Step 305: information collecting device sends public key to traffic lights associated with it.Each addition traffic alliance chain Information collecting device will obtain management platform granting unique private and with the matched public key of the private key, correspondingly, and its Associated traffic lights by obtain information collecting device granting with the matched public key of the private key.Information collecting device is using private The traffic flow information signature that key acquires it, the traffic lights only associated with it for possessing the public key to match just may be used To be verified to this traffic flow information.If dereferenced traffic lights, public key can not be verified other private key The traffic flow information of signature.
In some embodiments, management platform can be adopted after information collecting device and traffic lights binding to information Collection equipment sends the IP address of traffic lights associated with it, facilitates point between follow-up acquisition equipment and traffic lights Point to-point communication.After information collecting device receives public key, which can be sent to traffic lights by the IP address.
Step 306: management platform receives activation command.
Wherein, activation command is the order for activating the intelligent transportation system to enter dynamic traffic lamp mode, and activation command can Section sending at a fixed time by manually issuing, can also be set as by system, such as issues and swash in rush hour morning and evening section Life enables.Specifically, dynamic traffic lamp mode is the traffic flow information that is acquired according to information collecting device to traffic lights The mode switched over.Activation command carries activation object identity, and activation object identity includes coordinate information, street information, volume One of number information, area information are a variety of.In this way, management platform is known which traffic lights and letter needed to activate Breath acquisition equipment or traffic lights and information collecting device in which region.
Step 307: management platform is according to activation command, by information collecting device and traffic corresponding to activation object identity Signal lamp switches to dynamic traffic lamp mode.
By activating dynamic traffic lamp mode in intelligent transportation system, make the transportation network of corresponding region by fixing duration Traffic lights switches to dynamic traffic lamp mode.Under fixed duration traffic lights mode, information collecting device and traffic lights Intelligent object does not work, and traffic lights execute its conventional function.Under dynamic traffic lamp mode, information collecting device and The intelligent object of traffic lights works, and realizes the function of intelligent transportation system.
Step 308: each information collecting device node in block chain network acquires traffic flow information.
Under dynamic traffic lamp mode, information collecting device acquires traffic flow information.Traffic flow information includes wagon flow Information and/or people information.
Step 309: information collecting device to traffic lights associated with it send its acquire traffic flow information and Traffic statistics request.
Under dynamic traffic lamp mode, information collecting device acquire one section of set time traffic flow information after, to The point-to-point initiation traffic statistics transaction of traffic lights associated with it.Point-to-point mode can be to be sent by IP address.
Step 310: receiving traffic flow information with the associated traffic lights of the information collecting device and traffic statistics are asked It asks.
Step 311: traffic lights carry out the traffic flow information using the public key of its information collecting device possessed Verifying.
The public key that the private key of each information collecting device and traffic lights associated with it possess be it is matched, closed with it The traffic flow information good authentication that public key sends it can be used in the traffic lights of connection.It can be used for testing in this way Whether the card received information of traffic lights is information that information collecting device associated with it is sent.If signal is robbed by other people Hold, also as dereferenced side send information, then verifying can't pass, traffic lights will not be further processed the information, Improve the safety of system.
Step 312: after being verified, traffic lights are based on traffic flow information, are calculated according to preset algorithm contract Signal lamp switching command.
Algorithm contract has been pre-stored in block chain network.Signal lamp switching command category is calculated according to traffic flow information In the technology of comparative maturity, there are many calculations, such as Chinese invention patent Publication No. in the prior art A kind of " traffic light control device precisely detected based on vehicle flowrate " of CN107705587A, Chinese invention patent Publication No. " the intelligent traffic light traffic control system " of CN105427633A, " the one of Chinese invention patent Publication No. CN108510763A Kind method for controlling traffic signal lights and system ".The embodiment of the present invention repeats no more.
It is understood that the vehicle for needing to extend the direction is green when the vehicle flowrate in certain some direction of road is larger The duration of modulating signal, or reduce the duration of the vehicle red signal of the direction.Correspondingly, people's row at signal lamp setting crossing Pedestrian's traffic lights on road should also adjust accordingly setting.When the flow of the people in certain some direction of road is larger, need to extend The duration of pedestrian's green light signals of the direction, or reduce the duration of pedestrian's red signal of the direction.Correspondingly, the signal lamp The vehicle traffic lights being arranged on the lane at crossing should also adjust accordingly setting.Therefore, the embodiment of the present invention is no longer to the algorithm The particular content of contract is described in detail.
If verifying does not pass through, without doing any processing to the traffic flow information.
Step 313: traffic lights store signal lamp switching command to block chain network.
In the embodiment of the present invention, all signal lamp switching commands are required to cochain storage, and such signal is not easy to be tampered, Enhance the safety of intelligent transportation system.It is understood that all nodes in the traffic alliance chain, can all receive the letter Signal lamp switching command, only other all devices (including other traffic signals lamp apparatus) in addition to the traffic signals lamp apparatus The order will not be responded and be handled.
Step 314: traffic lights execute signal lamp switching command.
After traffic lights calculate signal lamp switching command according to preset algorithm contract, then the order is executed, carried out Corresponding traffic lights handover operation.
It is understood that the sequence present invention of step 313 and step 314 is not construed as limiting, step 313 can be first carried out, Perhaps step 314 or the synchronous execution of the two are first carried out.
Block chain network is added in information collecting device and traffic lights by the embodiment of the present invention, passes through information collecting device The point-to- point communication of traffic lights associated there, signal lamp switching command need not move through centralized server, reduce Traffic lights execute the waiting time of signal switching, improve the execution efficiency of intelligent transportation system, reduce intelligent friendship Way system paralysis risk;Further, since the equal cochain storage of all signal lamp switching commands, signal are not easy to be tampered, enhance The safety of intelligent transportation system.
The traffic lights switching method based on block chain for being applied to each node in system is described respectively below.
As shown in figure 5, being a kind of stream of the traffic lights switching method based on block chain provided in an embodiment of the present invention Cheng Tu, this method are applied to management platform, include the following steps:
Step 501: receiving the application for registration comprising its identification information that information collecting device and traffic lights are sent.
Wherein, identification information includes one of coordinate information, street information, number information, area information or a variety of.
Step 502: block is added in the information collecting device for meeting preset condition and traffic lights by audit application for registration Chain network.
Wherein, preset condition is to be stored with to set with the consistent traffic lights of identification information or information collection in database Standby archives.
Step 503: receiving each information collecting device node in block chain network and sent out to traffic lights associated with it After the traffic flow information for giving it to acquire and traffic statistics request, it is based on handing over the associated traffic lights of the information collecting device Through-current capacity information, the signal lamp switching command for being calculated according to preset algorithm contract and storing block chain network, wherein traffic Signal lamp executes signal lamp switching command.
In other embodiments, this method further include:
Step A: according to identification information, information collecting device and traffic lights are associated according to preset rules.In advance If rule is by identification information part is consistent or all consistent or information collecting device that meet preset relation and traffic are believed Signal lamp is associated.
Traffic flow information includes car flow information and/or people information, each information collecting device node in block chain network The traffic flow information sent to traffic lights associated with it is to use the friendship after the private key signature of the information collecting device Through-current capacity information.It is to possess and the matched public key of the private key of information collecting device with the associated traffic lights of information collecting device Traffic lights, public key is used to be verified the traffic flow information of private key signature.Therefore, in some embodiments, the party Method further include:
Step B: to each information collecting device that block chain network is added provide unique private key and with the private key it is matched Public key, so that information collecting device sends public key to traffic lights associated with it.
In other embodiments, belonging to the management platform applied by method in intelligent transportation system, which can be with It is constantly in intelligent mode, namely is in dynamic traffic lamp mode.Alternatively, the system may include two or more modes, example Such as fixed duration traffic lights mode and dynamic traffic lamp mode.Then this method at this time further include:
Step C1: receiving activation command, and activation command carries activation object identity, and activation object identity includes coordinate letter One of breath, street information, number information, area information are a variety of.
Step C2: according to activation command, information collecting device corresponding to activation object identity and traffic lights are cut Dynamic traffic lamp mode is shifted to, dynamic traffic lamp mode is that the traffic flow information acquired according to information collecting device believes traffic The mode that signal lamp switches over.
The specific implementation process of the above method and in the work of the aforementioned traffic lights switching system based on block chain It is described in detail in process, specifically refers to the description of previous embodiment, details are not described herein again.
As shown in fig. 6, for another traffic lights switching method based on block chain provided in an embodiment of the present invention Flow chart, this method are applied to information collecting device, include the following steps:
Step 601: each information collecting device node in block chain network acquires traffic flow information.
Step 602: information collecting device to traffic lights associated with it send its acquire traffic flow information and Traffic statistics request, so as to traffic flow information is based on the associated traffic lights of information collecting device, according to preset calculation Method contract calculates signal lamp switching command, and executes signal lamp switching command, wherein signal lamp switching command storage to block chain Network.
Specifically, information collecting device sends its traffic flow information acquired, packet to traffic lights associated with it It includes:
Step D1: the private key of information collecting device reception pipe platform granting and with the matched public key of the private key.
Step D2: information collecting device sends public key to traffic lights associated with it.
Step D3: information collecting device is using the private key of the information collecting device to collected traffic flow information label Name, is sent to traffic lights associated with it for the traffic flow information after signature;So that traffic lights are tested using public key Card passes through the traffic flow information of the private key signature.
The specific implementation process of the above method and in the work of the aforementioned traffic lights switching system based on block chain It is described in detail in process, specifically refers to the description of previous embodiment, details are not described herein again.
As shown in fig. 7, for another traffic lights switching method based on block chain provided in an embodiment of the present invention Flow chart, this method are applied to traffic lights, include the following steps:
Step 701: traffic lights receive the traffic flow information and flow that information collecting device associated with it is sent Statistics request.
Step 702: traffic lights are based on traffic flow information, calculate signal lamp switching life according to preset algorithm contract It enables, and executes signal lamp switching command, wherein signal lamp switching command storage to block chain network.
Specifically, in some embodiments, the method also includes:
Step 703: traffic lights receive the private with information collecting device that information collecting device associated with it is sent The matched public key of key.
In some embodiments, step 702 further comprises:
Step 702a: traffic lights are verified with public key to by the traffic flow information of the private key signature.
Step 702b: if being verified, traffic lights are based on traffic flow information, are calculated according to preset algorithm contract Signal lamp switching command.
The specific implementation process of the above method and in the work of the aforementioned traffic lights switching system based on block chain It is described in detail in process, specifically refers to the description of previous embodiment, details are not described herein again.
The embodiment of the invention also provides a kind of computer readable storage medium, being stored at least one in the storage medium can It executes instruction, it is corresponding that executable instruction makes processor execute the traffic lights switching method based on block chain as described above Operation.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) are some in big data traction equipment according to an embodiment of the present invention to realize Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (14)

1. a kind of traffic lights switching method based on block chain, which is characterized in that the described method includes:
Receive the application for registration comprising its identification information that information collecting device and traffic lights are sent;
The application for registration is audited, the block link network is added in the information collecting device for meeting preset condition and traffic lights Network;
Receive the friendship that each information collecting device node in block chain network sends its acquisition to traffic lights associated with it After through-current capacity information and traffic statistics request, the magnitude of traffic flow is based on the associated traffic lights of the information collecting device Information, the signal lamp switching command for being calculated according to preset algorithm contract and storing the block chain network, so that the friendship Ventilating signal lamp executes the signal lamp switching command.
2. the method as described in claim 1, which is characterized in that the identification information includes coordinate information, street information, number One of information, area information are a variety of.
3. the method as described in claim 1, which is characterized in that in the block chain network each information collecting device node to The traffic flow information that associated traffic lights are sent is to use the traffic flow after the private key signature of the information collecting device Measure information.
4. method as claimed in claim 3, which is characterized in that the described and associated traffic lights of the information collecting device To possess the traffic lights with the matched public key of the private key of the information collecting device, the public key is described for being verified The traffic flow information of private key signature.
5. method according to any of claims 1-4, which is characterized in that the method also includes:
According to the identification information, information collecting device and traffic lights are associated according to preset rules.
6. method as claimed in claim 5, which is characterized in that the preset condition is to be stored with and the mark in database Know the consistent traffic lights of information or information collecting device archives;
The preset rules set for identification information part is consistent or whole is consistent or meets the information collection of preset relation Standby and traffic lights are associated.
7. method according to any of claims 1-4, which is characterized in that the method also includes:
To each information collecting device that the block chain network is added provide unique private key and with the matched public key of the private key, So that the information collecting device sends the public key to traffic lights associated with it.
8. the method as described in claim 1, which is characterized in that the method also includes:
Activation command is received, the activation command carries activation object identity, and the activation object identity includes coordinate information, street One of road information, number information, area information are a variety of;
According to the activation command, information collecting device corresponding to the activation object identity and traffic lights are switched to Dynamic traffic lamp mode, the dynamic traffic lamp mode are the traffic flow information that is acquired according to the information collecting device to institute State the mode that traffic lights switch over.
9. a kind of traffic lights switching method based on block chain, which is characterized in that the described method includes: in block chain network Each information collecting device node acquire traffic flow information;
The information collecting device sends the traffic flow information and traffic statistics that it is acquired to traffic lights associated with it Request, so as to the traffic flow information is based on the associated traffic lights of the information collecting device, according to preset calculation Method contract calculates signal lamp switching command, and executes the signal lamp switching command, wherein the signal lamp switching command stores To the block chain network.
10. method as claimed in claim 9, which is characterized in that the information collecting device is to traffic signals associated with it Lamp sends the traffic flow information of its acquisition, comprising:
The private key of the information collecting device reception pipe platform granting and with the matched public key of the private key;
The information collecting device sends the public key to traffic lights associated with it;
The information collecting device signs to the collected traffic flow information using the private key of the information collecting device, will Traffic flow information after signature is sent to traffic lights associated with it;So that the traffic lights use the public key It is verified the traffic flow information of the private key signature.
11. a kind of traffic lights switching method based on block chain, which is characterized in that the described method includes:
Traffic lights receive the traffic flow information that information collecting device associated with it is sent and traffic statistics request;
The traffic lights are based on the traffic flow information, calculate signal lamp switching command according to preset algorithm contract, And the signal lamp switching command is executed, wherein the signal lamp switching command is stored to the block chain network.
12. method as claimed in claim 11, which is characterized in that the method also includes:
The traffic lights receive the private key with the information collecting device that information collecting device associated with it is sent The public key matched;
The traffic lights are based on the traffic flow information, calculate signal lamp switching command according to preset algorithm contract, Include:
The traffic lights verify the traffic flow information by the private key signature with the public key;
If being verified, the traffic lights are based on the traffic flow information, calculate signal according to preset algorithm contract Lamp switching command.
13. a kind of traffic lights switching system based on block chain, which is characterized in that the system is applied to block link network Network, the system comprises management platform, information collecting device and traffic lights;Wherein,
The management platform includes: processor, memory, communication interface and communication bus, the processor, the memory and The communication interface completes mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of traffic lights switching method described in any one of 1-8 based on block chain;
The information collecting device is for acquiring traffic flow information, by the collected traffic flow information and traffic statistics Request is sent to traffic lights associated with it;
The traffic lights are used to receive the traffic flow information and traffic statistics that information collecting device associated with it is sent Request is based on the traffic flow information, calculates signal lamp switching command according to preset algorithm contract, the signal lamp is cut Order storage is changed to the block chain network, executes the signal lamp switching command.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one executable finger in the storage medium It enables, the executable instruction makes processor execute such as the traffic signals of any of claims 1-8 based on block chain The corresponding operation of lamp switching method;The traffic lights based on block chain as described in claim 9 or 10 are either executed to cut Change the corresponding operation of method;Either execute the traffic lights switching method pair of the block chain as described in claim 11 or 12 The operation answered.
CN201811644681.XA 2018-12-29 2018-12-29 Traffic lights switching method and system based on block chain Withdrawn CN109615890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811644681.XA CN109615890A (en) 2018-12-29 2018-12-29 Traffic lights switching method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811644681.XA CN109615890A (en) 2018-12-29 2018-12-29 Traffic lights switching method and system based on block chain

Publications (1)

Publication Number Publication Date
CN109615890A true CN109615890A (en) 2019-04-12

Family

ID=66015947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811644681.XA Withdrawn CN109615890A (en) 2018-12-29 2018-12-29 Traffic lights switching method and system based on block chain

Country Status (1)

Country Link
CN (1) CN109615890A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276964A (en) * 2019-05-27 2019-09-24 八维通科技有限公司 A method of intelligence adjusts the traffic lights time
CN110796855A (en) * 2019-09-18 2020-02-14 吴明贵 Regional traffic dispersion system based on Internet of things and block chain
CN111311932A (en) * 2020-03-02 2020-06-19 哈尔滨工程大学 Intelligent traffic light timing method based on vehicle networking block chain
CN111414425A (en) * 2020-03-25 2020-07-14 武汉纵横智慧城市股份有限公司 Traffic signal updating method, equipment, storage medium and device based on block chain
CN114399900A (en) * 2021-12-31 2022-04-26 黑龙江工程学院 Smart city traffic management system and method based on remote sensing technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074119A (en) * 2011-03-11 2011-05-25 安徽科力信息产业有限责任公司 Geomagnetic detection-based self-organizing intelligent signal control method
EP3300051A1 (en) * 2016-09-26 2018-03-28 Kyland Technology Co., Ltd. Method and equipment for processing information in intelligent traffic cloud control system
CN108064440A (en) * 2017-05-25 2018-05-22 深圳前海达闼云端智能科技有限公司 FIDO authentication method, device and system based on block chain
CN108667618A (en) * 2018-05-10 2018-10-16 阿里巴巴集团控股有限公司 Data processing method, device, server and the system of block chain member management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074119A (en) * 2011-03-11 2011-05-25 安徽科力信息产业有限责任公司 Geomagnetic detection-based self-organizing intelligent signal control method
EP3300051A1 (en) * 2016-09-26 2018-03-28 Kyland Technology Co., Ltd. Method and equipment for processing information in intelligent traffic cloud control system
CN108064440A (en) * 2017-05-25 2018-05-22 深圳前海达闼云端智能科技有限公司 FIDO authentication method, device and system based on block chain
CN108667618A (en) * 2018-05-10 2018-10-16 阿里巴巴集团控股有限公司 Data processing method, device, server and the system of block chain member management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何宗耀: "《新型智慧城市建设现状技术与研究》", 31 August 2018, 北京邮电大学出版社 *
腾讯网: "《以智能交通红绿灯为例,深入浅出地说明雾计算与区块链的结合应用》", 《腾讯网》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276964A (en) * 2019-05-27 2019-09-24 八维通科技有限公司 A method of intelligence adjusts the traffic lights time
CN110276964B (en) * 2019-05-27 2020-11-13 八维通科技有限公司 Method for intelligently adjusting time of traffic light
CN110796855A (en) * 2019-09-18 2020-02-14 吴明贵 Regional traffic dispersion system based on Internet of things and block chain
CN111311932A (en) * 2020-03-02 2020-06-19 哈尔滨工程大学 Intelligent traffic light timing method based on vehicle networking block chain
CN111414425A (en) * 2020-03-25 2020-07-14 武汉纵横智慧城市股份有限公司 Traffic signal updating method, equipment, storage medium and device based on block chain
CN111414425B (en) * 2020-03-25 2023-03-14 武汉纵横智慧城市股份有限公司 Traffic signal updating method, equipment, storage medium and device based on block chain
CN114399900A (en) * 2021-12-31 2022-04-26 黑龙江工程学院 Smart city traffic management system and method based on remote sensing technology

Similar Documents

Publication Publication Date Title
CN109615890A (en) Traffic lights switching method and system based on block chain
CN106441305B (en) Paths planning method and device of the interior across floor
CN103475707B (en) General Internet of Things support system
CN105897523B (en) A kind of cut-in method, equipment and system
CN105208132A (en) Intelligent terminal cloud management system
CN110991817B (en) Route planning method and device and server
CN108536121A (en) Method for building up, device and the vehicle communication interface VCI of logical channel
CN108710681A (en) File acquisition method, device, equipment and storage medium
CN109191268A (en) Parking stall rent method, device and electronic equipment based on block chain
WO2022095813A1 (en) Service data processing method, device, and readable storage medium
CN107945512B (en) Traffic accident handling method and system
Hasan et al. Smart parking model based on internet of things (IoT) and TensorFlow
CN105279800A (en) Identity card ticket checking method and system
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN109284801A (en) State identification method, device, electronic equipment and the storage medium of traffic light
CN113947923A (en) Traffic signal control system, method, electronic device and storage medium
CN109741601A (en) Congestion administering method, device, equipment and storage medium based on block chain
CN108766026B (en) Parking navigation method and system based on block chain technology
CN107590997A (en) A kind of traffic monitoring method and device based on Internet of Things
CN105530106B (en) Cancellation method based on eUICC and eUICC remote management platforms
CN106878990B (en) A kind of information-pushing method and device
CN102523236A (en) Method and equipment for establishing dynamic connection
CN109558220A (en) A kind of management method and equipment of fault car
CN110209739A (en) A kind of cooperative system, method, apparatus, electronic equipment and storage medium
CN110147759A (en) Target identification method, system, target identification management method and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210121

Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd.

Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing.

Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190412