A traffic signal control method and device based on blockchain technology
Patent Information
- Application Number
- CN202211648688.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2042-12-21
AI Technical Summary
(1)交通信号控制平台维护所有交通信号控制方案版本,存在单点故障问题
本发明提供一种基于区块链技术的交通信号控制方法及装置,通过交通信号控制平台将交通信号机编号和交通信号控制方案打包后传送给第一区块链sidecar模块,并由第一区块链sidecar模块向交通信号机广播包消息;第二区块链sidecar模块接收第一区块链sidecar模块广播过来的包消息,验证并将包消息存储至区块链;对交通信号控制平台打包的通信号机编号和交通信号控制方案进行拆包,并将拆包的交通信号机编号和交通信号控制方案传送给交通信号机;交通信号机根据拆包的交通信号机编号,判断拆包的交通信号控制方案是否需要执行,若是,则交通信号机执行拆包的交通信号控制方案;若否,则交通信号机不执行拆包的交通信号控制方案。本发明提供的基于区块链技术的交通信号控制方法及装置,通过区块链将交通信号机接入交通信号控制平台进行统一的交通信号控制方案管理,采用去中心化分布式记账方式,系统中各个节点同时参与数据变动记录,每个节点都保留一份相同且完整的账本,单个节点被摧毁不会影响整个账本及记录的完整性,提高了交通信号控制方案的安全性;将交通信号控制方案经验证并永久存储至区块链,生成按照时间先后顺序标记且难以可篡改的数据记录,既能保证数据的可追溯性,又能减少不同时间点不同节点数据不一致的情况;采用基于协商一致的规范和协议,使各参与方达到高度自治,可进行自由安全的数据传输同步,保证整个系统的交通信号控制方案的版本一致性。
Smart Images

Figure CN116436924B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the transportation industry and the field of intelligent connected vehicle technology, and in particular discloses a traffic signal control method and device based on blockchain technology. Background Technology
[0002] With the rapid development of road traffic, the continuous improvement of urbanization, and the expansion of urban scale in my country, the demand for traffic signal control systems in traffic management is showing an increasing trend. In particular, in recent years, local governments and road traffic management departments have actively adopted various advanced technological means to improve the level of urban road traffic management and increased investment in various road traffic infrastructure and important road traffic management equipment.
[0003] Traffic signal control systems connect networked traffic lights to a platform for unified management via standard or proprietary protocols. The system monitors the real-time status of the traffic lights and allows users to manually intervene in the traffic lights and issue timing plans based on real-time traffic conditions to ensure traffic safety and improve traffic efficiency at intersections.
[0004] Traffic signal control systems offer a wide range of special scenario control features, such as single-point adaptive control, special task control, bus priority control, variable lane control, green wave speed guidance, green wave bands, and area control.
[0005] Traffic signal control systems combine sensor data to diagnose signal operation problems at intersections, arterial roads, and areas, and automatically optimize solutions. Through flexible automatic division of time periods and areas, they improve traffic efficiency across multiple temporal and spatial dimensions.
[0006] Traffic signal control systems utilize technologies such as big data and AI (Artificial Intelligence) to accurately calculate evaluation indicators across multiple scenarios, times, and spaces, based on front-end sensing data, thereby constructing a comprehensive and refined evaluation system for signal schemes.
[0007] The traffic signal control system employs a centralized control design, with the traffic signal control platform at the center and traffic signal controllers as nodes. The traffic signal control platform and the traffic signal controllers communicate via a network. Due to the inherent characteristics of its working principle, some drawbacks are unavoidable: (1) The traffic signal control platform maintains all traffic signal control scheme versions, which has a single point of failure problem.
[0008] (2) Due to reasons such as network instability, there are problems such as incomplete traffic signal control schemes and damaged version libraries when the traffic signal control platform and traffic signal controller work together.
[0009] (3) The traffic signal control scheme can be configured on the traffic signal control platform, and the traffic signal control scheme of the traffic signal controller can be upgraded on-site. It is difficult to guarantee the consistency of the versions of the traffic signal control scheme between the traffic signal control platform and the traffic signal controller.
[0010] Therefore, the aforementioned defects in existing traffic signal control systems are technical problems that urgently need to be solved. Summary of the Invention
[0011] This invention provides a traffic signal control method and device based on blockchain technology, aiming to solve the above-mentioned defects in existing traffic signal control systems.
[0012] One aspect of this invention relates to a traffic signal control method based on blockchain technology, applied in a traffic signal control system. The traffic signal control system includes a traffic signal control platform, a traffic signal controller, a first blockchain sidecar module, and a second blockchain sidecar module. The traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controller corresponds to the second blockchain sidecar module. The traffic signal control method based on blockchain technology includes the following steps: The traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and sends them to the first blockchain sidecar module, which then broadcasts the package message to the traffic signal controller. The second blockchain sidecar module receives the packet message broadcast from the first blockchain sidecar module, verifies it, and stores the packet message in the blockchain; it unpacks the traffic signal controller number and traffic signal control scheme packaged by the traffic signal control platform, and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller; Based on the traffic signal controller number after unpacking, the traffic signal controller determines whether the unpacked traffic signal control plan needs to be executed. If yes, the traffic signal controller executes the unpacked traffic signal control plan; otherwise, the traffic signal controller does not execute the unpacked traffic signal control plan.
[0013] Furthermore, before the step of the traffic signal control platform packaging the traffic signal controller number and traffic signal control scheme and transmitting them to the first blockchain sidecar module, and the first blockchain sidecar module broadcasting the packet message to the traffic signal controller, the following steps are also included: Assign a unique traffic signal number to each traffic signal.
[0014] Furthermore, before the step of the traffic signal control platform packaging the traffic signal controller number and traffic signal control scheme and transmitting them to the first blockchain sidecar module, and the first blockchain sidecar module broadcasting the packet message to the traffic signal controller, the following steps are also included: Traffic signal control platforms or traffic signal controllers generate traffic signal control schemes.
[0015] Furthermore, the traffic signal controller determines whether the unpacked traffic signal control plan needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control plan; otherwise, the traffic signal controller does not execute the unpacked traffic signal control plan. The steps include: The traffic signal controller determines whether the number of the traffic signal controller being unpacked is equal to its own assigned number. If they are equal, the traffic signal controller executes the traffic signal control scheme for the unpacked signal.
[0016] Furthermore, the traffic signal controller determines whether the unpacked traffic signal control plan needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control plan; otherwise, the traffic signal controller does not execute the unpacked traffic signal control plan. The steps include: The traffic signal controller determines whether the number of the unpacked traffic signal controller is equal to its own assigned number. If they are not equal, the traffic signal controller will not execute the unpacked traffic signal control scheme.
[0017] Another aspect of the present invention relates to a traffic signal control device based on blockchain technology, applied in a traffic signal control system. The traffic signal control system includes a traffic signal control platform, a traffic signal controller, a first blockchain sidecar module, and a second blockchain sidecar module. The traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controller corresponds to the second blockchain sidecar module. The traffic signal control device based on blockchain technology includes: The packaging module is used to package the traffic signal controller number and traffic signal control scheme using the traffic signal control platform and then transmit them to the first blockchain sidecar module, which in turn broadcasts the package message to the traffic signal controller. The unpacking module is used to receive packet messages broadcast from the first blockchain sidecar module using the second blockchain sidecar module, verify them, and store the packet messages in the blockchain; it unpacks the traffic signal controller numbers and traffic signal control schemes packaged by the traffic signal control platform, and transmits the unpacked traffic signal controller numbers and traffic signal control schemes to the traffic signal controllers; The judgment module is used to determine whether the traffic signal control scheme to be unpacked needs to be executed based on the traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control scheme; otherwise, the traffic signal controller does not execute the unpacked traffic signal control scheme.
[0018] Furthermore, traffic signal control devices based on blockchain technology also include: The allocation module is used to assign a unique traffic signal number to each traffic signal controller.
[0019] Furthermore, traffic signal control devices based on blockchain technology also include: The generation module is used to generate traffic signal control schemes using a traffic signal control platform or traffic signal controller.
[0020] Furthermore, the judgment module includes: The first judgment unit is used to determine whether the number of the traffic signal that has been unpacked is equal to the number assigned to it. If they are equal, the traffic signal will execute the traffic signal control scheme of the unpacked unit.
[0021] Furthermore, the judgment module includes: The second judgment unit is used to determine whether the number of the traffic signal that has been unpacked is equal to the number assigned to it. If they are not equal, the traffic signal will not execute the traffic signal control scheme that has been unpacked.
[0022] The beneficial effects achieved by this invention are as follows: This invention provides a traffic signal control method and apparatus based on blockchain technology. The method involves a traffic signal control platform packaging traffic signal controller numbers and traffic signal control schemes, transmitting these packages to a first blockchain sidecar module, which then broadcasts the package messages to the traffic signal controllers. A second blockchain sidecar module receives the broadcast package messages from the first module, verifies them, and stores them on the blockchain. The method also involves unpacking the packaged traffic signal controller numbers and traffic signal control schemes from the traffic signal control platform and transmitting the unpacked traffic signal controller numbers and traffic signal control schemes to the traffic signal controllers. The traffic signal controllers determine whether the unpacked traffic signal control schemes need to be executed based on the unpacked traffic signal controller numbers. If so, the traffic signal controller executes the unpacked traffic signal control schemes; otherwise, the traffic signal controller does not execute the unpacked traffic signal control schemes. The traffic signal control method and device based on blockchain technology provided by this invention connects traffic signal controllers to a traffic signal control platform for unified management of traffic signal control schemes via blockchain. Employing a decentralized distributed ledger approach, all nodes in the system participate simultaneously in recording data changes. Each node maintains an identical and complete ledger; the destruction of a single node does not affect the integrity of the entire ledger and records, thus improving the security of the traffic signal control scheme. The verified traffic signal control scheme is permanently stored on the blockchain, generating chronologically marked and tamper-proof data records. This ensures data traceability and reduces inconsistencies between different nodes at different times. By adopting consensus-based standards and protocols, all participating parties achieve a high degree of autonomy, enabling free and secure data transmission and synchronization, ensuring version consistency of the traffic signal control scheme throughout the system. Attached Figure Description
[0023] Figure 1 This is a flowchart illustrating the first embodiment of a traffic signal control method based on blockchain technology proposed in this invention. Figure 2 This is a functional block diagram of an embodiment of the traffic signal control system of the present invention; Figure 3 This is a block structure diagram of the blockchain in this invention; Figure 4 This is a flowchart illustrating a second embodiment of a traffic signal control method based on blockchain technology proposed in this invention. Figure 5 This is a functional block diagram of a first embodiment of a traffic signal control device based on blockchain technology proposed in this invention; Figure 6 This is a functional block diagram of a second embodiment of a traffic signal control device based on blockchain technology proposed in this invention; Figure 7 for Figure 5 The diagram shows a functional module schematic of one embodiment of the judgment module.
[0024] Explanation of icon numbers: 10. Packaging module; 20. Unpacking module; 30. Judgment module; 40. Allocation module; 50. Generation module; 31. First judgment unit; 32. Second judgment unit. Detailed Implementation
[0025] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0026] like Figures 1 to 3 As shown, the first embodiment of this invention proposes a traffic signal control method based on blockchain technology, applied in a traffic signal control system. The traffic signal control system includes a traffic signal control platform, traffic signal controllers, a first blockchain sidecar module, and a second blockchain sidecar module. The traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controller corresponds to the second blockchain sidecar module. The blockchain in the traffic signal control system is essentially a decentralized database, a chain composed of small blockchains recording various information. It represents a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. (The blockchain is described in the original text.) Figure 3 As shown, it contains two parts: (1) Block header: records the metadata of the current block; (2) Block body: actual data.
[0027] The sidecar pattern in traffic signal control systems deploys application components into separate processes or containers to provide isolation and encapsulation. Traffic signal control systems are a decomposition pattern that also allows applications to be implemented with heterogeneous components and technologies. Sidecar services are attached to the main application and provide the application with the features they support. Sidecar services also have the same lifecycle as the main application, being created and decommissioned along with it.
[0028] The traffic signal control system uses a private blockchain network, which is a decentralized peer-to-peer network. The traffic signal control platform manages the network, controlling who is allowed to participate, executing consensus protocols, and maintaining the shared ledger.
[0029] The traffic signal control system stores the traffic signal control scheme in the blockchain sidecar module. The traffic signal control platform and the signal controller work together through SDK / API (Software Development Kit / Application Program Interface), network interface, file system and blockchain sidecar module.
[0030] The blockchain sidecar module decouples the storage layer and the business layer, reduces redundancy in traffic signal control applications, and allows for the expansion of new functions into traffic signal control applications without changing the original applications.
[0031] The blockchain sidecar module's responsibilities in the data plane include handling communication between module services and performing functions such as service discovery, load balancing, traffic management, and health checks. In the control plane, the blockchain sidecar module's responsibilities include managing and configuring sidecar agents to enforce policies and collecting telemetry data.
[0032] In this embodiment, the traffic signal control method based on blockchain technology includes the following steps: In step S100, the traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and sends them to the first blockchain sidecar module, which then broadcasts the package message to the traffic signal controller.
[0033] The traffic signal control platform packages the signal controller number and traffic signal control scheme and transmits them to the corresponding first blockchain sidecar module. The first blockchain sidecar module of the traffic signal control platform then broadcasts the package message to the traffic signal controller.
[0034] Step S200: The second blockchain sidecar module receives the packet message broadcast from the first blockchain sidecar module, verifies it, and stores the packet message in the blockchain; it unpacks the traffic signal controller number and traffic signal control scheme packaged by the traffic signal control platform, and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller.
[0035] The second blockchain sidecar module corresponding to the traffic signal controller receives the packet message, verifies it, and stores the packet message on the blockchain; it then unpacks the packet and transmits the traffic signal controller number and traffic signal control scheme to the traffic signal controller.
[0036] Step S300: The traffic signal controller determines whether the unpacked traffic signal control plan needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control plan; otherwise, the traffic signal controller does not execute the unpacked traffic signal control plan.
[0037] The traffic signal controller determines whether its own assigned number is equal to its own. If they are equal, the traffic signal controller executes the traffic signal control plan; otherwise, it does not execute the traffic signal control plan.
[0038] Further, please see Figures 1 to 4 The traffic signal control method based on blockchain technology provided in this embodiment further includes the following steps before step S100: Step S100A: Assign a unique traffic signal number to the traffic signal controller.
[0039] Traffic signal control systems assign unique traffic signal numbers to each signal controller. These numbers are unique. Traffic signal controllers are a crucial component of modern urban traffic systems, primarily used for the control and management of traffic signals on urban roads. A traffic signal controller consists of six functional module boards: a main LCD display, a CPU board, a control board, a light driver board with optocoupler isolation, a switching power supply, and a push-button board, as well as a power distribution board and terminal blocks.
[0040] Preferably, see Figures 1 to 4 The traffic signal control method based on blockchain technology provided in this embodiment further includes the following steps before step S100: Step S100B: The traffic signal control platform or traffic signal controller generates a traffic signal control scheme.
[0041] Traffic signal control platforms or traffic signal controllers generate traffic signal control schemes. These schemes are a crucial component of urban traffic control and management, providing systematic and coordinated control of urban intersections. They alleviate traffic pressure in congested areas, optimize traffic flow distribution across the city, reduce or eliminate bottlenecks, and improve road capacity and service levels. Traffic signal control schemes are categorized into point control, line control, and area control. Point control involves each intersection's traffic signal operating independently based on its own traffic conditions, without any connection to adjacent intersections; this is called single-intersection traffic control or single-point signal control. Line control connects the traffic signals of several consecutive intersections on a main road in a specific way, designing a coordinated timing scheme for each intersection. The traffic lights at each intersection operate according to this coordinated scheme, preventing vehicles from frequently encountering red lights when passing through these intersections; this is called main road signal linkage control, also known as "green wave" signal control. Area control, which coordinates and controls all signalized intersections in a certain area, is called a regional traffic signal control system.
[0042] Preferably, please see Figures 1 to 4 The traffic signal control method based on blockchain technology provided in this embodiment includes step S300: Step S310: The traffic signal controller determines whether the number of the unpacked traffic signal controller is equal to its own assigned number. If they are equal, the traffic signal controller executes the unpacked traffic signal control scheme.
[0043] The traffic signal controller determines whether its own number is equal to the number it was assigned. If they are equal, the traffic signal controller executes the traffic signal control plan.
[0044] Step S320: The traffic signal controller determines whether the number of the unpacked traffic signal controller is equal to its own assigned number. If not, the traffic signal controller does not execute the unpacked traffic signal control scheme.
[0045] The traffic signal controller determines whether its own number is equal to the number it was assigned. If they are not equal, the traffic signal controller will not execute the traffic signal control plan.
[0046] The traffic signal control method based on blockchain technology provided in this embodiment, compared with the prior art, involves the traffic signal control platform packaging the traffic signal controller number and traffic signal control scheme and transmitting them to the first blockchain sidecar module, which then broadcasts the package message to the traffic signal controller. The second blockchain sidecar module receives the package message broadcast by the first blockchain sidecar module, verifies it, and stores the package message on the blockchain. The traffic signal control platform then unpacks the packaged traffic signal controller number and traffic signal control scheme and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller. Based on the unpacked traffic signal controller number, the traffic signal controller determines whether the unpacked traffic signal control scheme needs to be executed. If yes, the traffic signal controller executes the unpacked traffic signal control scheme; otherwise, the traffic signal controller does not execute the unpacked traffic signal control scheme. The traffic signal control method based on blockchain technology provided in this embodiment connects traffic signal controllers to a traffic signal control platform for unified management of traffic signal control schemes. It adopts a decentralized distributed ledger approach, where all nodes in the system participate simultaneously in recording data changes. Each node maintains an identical and complete ledger; the destruction of a single node does not affect the integrity of the entire ledger and records, thus improving the security of the traffic signal control scheme. The verified traffic signal control scheme is permanently stored on the blockchain, generating chronologically marked and tamper-proof data records. This ensures data traceability and reduces inconsistencies between different nodes at different times. The use of consensus-based standards and protocols enables a high degree of autonomy among participating parties, allowing for free and secure data transmission and synchronization, ensuring version consistency of the traffic signal control scheme across the entire system.
[0047] like Figure 5 As shown, Figure 5This is a functional block diagram of a first embodiment of a traffic signal control device based on blockchain technology proposed in this invention. In this embodiment, the traffic signal control device based on blockchain technology is applied in a traffic signal control system. The traffic signal control system includes a traffic signal control platform, traffic signal controllers, a first blockchain sidecar module, and a second blockchain sidecar module. The traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controllers correspond to the second blockchain sidecar module. The device is characterized by including a packaging module 10, an unpacking module 20, and a judgment module 30. The packaging module 10 is used to package the traffic signal controller number and the traffic signal control scheme using the traffic signal control platform and then transmit the data. The packet message is sent to the first blockchain sidecar module, which then broadcasts it to the traffic signal controller. The unpacking module 20 receives the packet message broadcast from the first blockchain sidecar module using the second blockchain sidecar module, verifies it, and stores the packet message on the blockchain. It then unpacks the traffic signal controller number and traffic signal control scheme packaged by the traffic signal control platform and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller. The judgment module 30 uses the traffic signal controller to determine whether the unpacked traffic signal control scheme needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control scheme; otherwise, the traffic signal controller does not execute the unpacked traffic signal control scheme.
[0048] In the packaging module 10, the traffic signal control platform packages the signal controller number and traffic signal control scheme and transmits them to the corresponding first blockchain sidecar module. The first blockchain sidecar module of the traffic signal control platform then broadcasts the package message to the traffic signal controller.
[0049] In the unpacking module 20, the second blockchain sidecar module corresponding to the traffic signal controller receives the packet message, verifies it, and stores the packet message on the blockchain; the unpacking module transmits the traffic signal controller number and traffic signal control scheme to the traffic signal controller.
[0050] In the judgment module 30, the traffic signal controller determines whether its traffic signal controller number is equal to its assigned number. If they are equal, the traffic signal controller executes the traffic signal control plan; otherwise, the traffic signal controller does not execute the traffic signal control plan.
[0051] Further, please see Figure 6 , Figure 6This is a functional block diagram of a second embodiment of a traffic signal control device based on blockchain technology proposed in this invention. Building upon the first embodiment, the blockchain-based traffic signal control device further includes an allocation module 40 and a generation module 50. The allocation module 40 is used to assign a unique traffic signal controller number to each traffic signal controller. The generation module 50 is used to generate a traffic signal control scheme using a traffic signal control platform or traffic signal controllers.
[0052] In the allocation module 40, the traffic signal control system assigns a unique traffic signal number to each traffic signal controller. These traffic signal numbers are unique. Traffic signal controllers are an important component of modern urban traffic systems, primarily used for the control and management of traffic signals on urban roads. A traffic signal controller consists of six functional module plug-in boards: a main LCD display, a CPU board, a control board, a light group driver board with optocoupler isolation, a switching power supply, and a button board, as well as a power distribution board and terminal blocks.
[0053] In generation module 50, the traffic signal control platform or traffic signal controller generates a traffic signal control scheme. The traffic signal control scheme is a crucial component of urban traffic management and control. It involves the systematic and coordinated control of urban intersections, alleviating traffic pressure in congested areas, rationalizing traffic flow distribution across the city, reducing or eliminating bottlenecks, and improving road capacity and service levels. Traffic signal control schemes are categorized into point control, line control, and area control. Point control involves each intersection's traffic signal operating independently according to its own traffic conditions, without any connection to the control signals of neighboring intersections; this is called single-intersection traffic control or single-point signal control. Line control connects the traffic signals of several consecutive intersections on a main road in a specific way, designing a coordinated timing scheme for each intersection. The traffic lights at each intersection operate in conjunction with this coordinated scheme, preventing vehicles from frequently encountering red lights when passing through these intersections; this is called main road signal linkage control, also known as "green wave" signal control. Area control, which coordinates and controls all signalized intersections in a certain area, is called a regional traffic signal control system.
[0054] Further, please see Figure 7 , Figure 7 for Figure 5The diagram illustrates the functional modules of one embodiment of the judgment module. In this embodiment, the judgment module 30 includes a first judgment unit 31 and a second judgment unit 32. The first judgment unit 31 is used to determine whether the number of the traffic signal controller being unpacked is equal to its own assigned number. If they are equal, the traffic signal controller executes the unpacked traffic signal control scheme. The second judgment unit 32 is used to determine whether the number of the traffic signal controller being unpacked is equal to its own assigned number. If they are not equal, the traffic signal controller does not execute the unpacked traffic signal control scheme.
[0055] In the first judgment unit 31, the traffic signal controller determines whether the traffic signal controller number is equal to the number assigned to it. If they are equal, the traffic signal controller executes the traffic signal control scheme.
[0056] In the second judgment unit 32, the traffic signal controller determines whether the traffic signal controller number is equal to the number assigned to it. If they are not equal, the traffic signal controller does not execute the traffic signal control scheme.
[0057] The traffic signal control system based on blockchain technology provided in this embodiment, compared with the prior art, employs a packaging module 10, an unpacking module 20, and a judgment module 30. The traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and transmits them to the first blockchain sidecar module, which then broadcasts the package message to the traffic signal controller. The second blockchain sidecar module receives the package message broadcast by the first blockchain sidecar module, verifies it, and stores the package message on the blockchain. The system unpacks the traffic signal controller number and traffic signal control scheme packaged by the traffic signal control platform and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller. The traffic signal controller determines whether the unpacked traffic signal control scheme needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control scheme; otherwise, the traffic signal controller does not execute the unpacked traffic signal control scheme. The traffic signal control system based on blockchain technology provided in this embodiment connects traffic signal controllers to a traffic signal control platform for unified management of traffic signal control schemes. It adopts a decentralized distributed ledger approach, where all nodes in the system participate simultaneously in recording data changes. Each node maintains an identical and complete ledger; the destruction of a single node does not affect the integrity of the entire ledger and records, thus improving the security of the traffic signal control scheme. The verified traffic signal control scheme is permanently stored on the blockchain, generating chronologically marked and tamper-proof data records. This ensures data traceability and reduces inconsistencies between different nodes at different times. The system employs consensus-based standards and protocols, enabling high autonomy among participating parties and allowing for free and secure data transmission and synchronization, ensuring version consistency of the traffic signal control scheme across the entire system.
[0058] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if these modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include these modifications and modifications.
Claims
1. A traffic signal control method based on blockchain technology, applied in a traffic signal control system, wherein the traffic signal control system includes a traffic signal control platform, a traffic signal controller, a first blockchain sidecar module, and a second blockchain sidecar module, wherein the traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controller corresponds to the second blockchain sidecar module, characterized in that, The traffic signal control method based on blockchain technology includes the following steps: The traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and sends them to the first blockchain sidecar module, which then broadcasts the package message to the traffic signal controller. The second blockchain sidecar module receives the packet message broadcast from the first blockchain sidecar module, verifies it, and stores the packet message in the blockchain; it unpacks the traffic signal controller number and traffic signal control scheme packaged by the traffic signal control platform, and transmits the unpacked traffic signal controller number and traffic signal control scheme to the traffic signal controller; The traffic signal controller determines whether the unpacked traffic signal control plan needs to be executed based on the unpacked traffic signal controller number. If yes, the traffic signal controller executes the unpacked traffic signal control plan; otherwise, the traffic signal controller does not execute the unpacked traffic signal control plan.
2. The traffic signal control method based on blockchain technology as described in claim 1, characterized in that, Before the step where the traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and transmits them to the first blockchain sidecar module, and the first blockchain sidecar module broadcasts the packet message to the traffic signal controller, the following steps are also included: Assign a unique traffic signal number to each traffic signal.
3. The traffic signal control method based on blockchain technology as described in claim 1, characterized in that, Before the step where the traffic signal control platform packages the traffic signal controller number and traffic signal control scheme and transmits them to the first blockchain sidecar module, and the first blockchain sidecar module broadcasts the packet message to the traffic signal controller, the following steps are also included: Traffic signal control platforms or traffic signal controllers generate traffic signal control schemes.
4. The traffic signal control method based on blockchain technology as described in claim 2, characterized in that, The traffic signal controller determines whether the traffic signal control scheme to be unpacked needs to be executed based on the unpacked traffic signal controller number. If so, the traffic signal controller executes the unpacked traffic signal control scheme. If not, the steps for the traffic signal controller not to execute the unpacked traffic signal control scheme include: The traffic signal controller determines whether the number of the traffic signal controller to be unpacked is equal to its own assigned number. If they are equal, the traffic signal controller executes the unpacked traffic signal control scheme.
5. The traffic signal control method based on blockchain technology as described in claim 4, characterized in that, The traffic signal controller determines whether the traffic signal control scheme to be unpacked needs to be executed based on the unpacked traffic signal controller number. If so, the traffic signal controller executes the unpacked traffic signal control scheme. If not, the steps for the traffic signal controller not to execute the unpacked traffic signal control scheme include: The traffic signal controller determines whether the number of the unpacked traffic signal controller is equal to its own assigned number. If they are not equal, the traffic signal controller does not execute the unpacked traffic signal control scheme.
6. A traffic signal control device based on blockchain technology, applied in a traffic signal control system, the traffic signal control system comprising a traffic signal control platform, a traffic signal controller, a first blockchain sidecar module, and a second blockchain sidecar module, wherein the traffic signal control platform corresponds to the first blockchain sidecar module, and the traffic signal controller corresponds to the second blockchain sidecar module, characterized in that, The traffic signal control device based on blockchain technology includes: The packaging module (10) is used to package the traffic signal controller number and traffic signal control scheme using the traffic signal control platform and transmit them to the first blockchain sidecar module, and the first blockchain sidecar module broadcasts the package message to the traffic signal controller. The unpacking module (20) is used to receive the packet message broadcast by the first blockchain sidecar module using the second blockchain sidecar module, verify and store the packet message in the blockchain; unpack the traffic signal machine number and traffic signal control scheme packaged by the traffic signal control platform, and transmit the unpacked traffic signal machine number and traffic signal control scheme to the traffic signal machine; The judgment module (30) is used to determine whether the traffic signal control scheme to be unpacked needs to be executed based on the traffic signal number of the unpacked traffic signal controller. If yes, the traffic signal controller executes the unpacked traffic signal control scheme; if no, the traffic signal controller does not execute the unpacked traffic signal control scheme.
7. The traffic signal control device based on blockchain technology as described in claim 6, characterized in that, The traffic signal control device based on blockchain technology also includes: The allocation module (40) is used to assign a unique traffic signal number to the traffic signal controller.
8. The traffic signal control device based on blockchain technology as described in claim 6, characterized in that, The traffic signal control device based on blockchain technology also includes: The generation module (50) is used to generate a traffic signal control scheme using a traffic signal control platform or a traffic signal controller.
9. The traffic signal control device based on blockchain technology as described in claim 7, characterized in that, The judgment module (30) includes: The first judgment unit (31) is used to determine whether the number of the traffic signal that has been unpacked is equal to the number assigned to it. If it is equal, the traffic signal will execute the traffic signal control scheme of the unpacked unit.
10. The traffic signal control device based on blockchain technology as described in claim 9, characterized in that, The judgment module (30) includes: The second judgment unit (32) is used to determine whether the number of the unpacked traffic signal is equal to the number assigned to itself. If it is not equal, the traffic signal will not execute the unpacked traffic signal control scheme.
Citation Information
Patent Citations
Credible log recording method and system based on blockchain
CN110572281A
Rapid management system for distributed network equipment information and business logic relationship between equipment
CN113783742A