A signal machine illegal module detection method, device and readable storage medium
By checking the consistency of the overall coding of each module of the traffic signal controller, it is ensured that legitimate modules perform traffic signal control, thus solving the safety hazards caused by illegal modules in the traffic signal controller and improving operational efficiency and management convenience.
Patent Information
- Application Number
- CN202310729380.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2043-06-16
AI Technical Summary
The existing traffic signal controllers lack verification of the legality of their internal equipment, and illegal equipment may pose a threat to traffic safety control.
By reading the startup configuration parameters of each module of the traffic signal controller, obtaining the overall machine code, judging the consistency of the modules, recording faults and reporting them to the platform, it is ensured that only the legitimate modules in the traffic signal controller execute traffic signal control.
It improves the operational efficiency and safety of traffic signals, avoids the impact of unauthorized modules on traffic signals, and simplifies module management and maintenance processes.
Smart Images

Figure CN116631213B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of signal controller detection and control technology, and in particular to a method, apparatus and readable storage medium for detecting illegal modules in a signal controller. Background Technology
[0002] Traffic signal controllers are a crucial component of traffic signal control at intersections. Their safety is directly related to road traffic safety. Currently, traffic signal controllers generally consist of multiple modules. Existing traffic signal controllers lack verification of the legality of their internal equipment. Illegal equipment can pose significant risks to traffic safety control and endanger safe travel. Summary of the Invention
[0003] Based on the technical problems existing in the background technology, the present invention proposes a method, device and readable storage medium for detecting illegal modules of traffic signal controllers. It can detect the legality of internal devices, and when an illegal internal device is detected, it reports to the platform and performs corresponding operations according to the attributes of the device to determine the traffic signal safety control at the intersection.
[0004] The present invention proposes a method for detecting illegal modules in a signal controller, comprising the following steps:
[0005] S1: Read the startup configuration parameters of each module in the signal after power-on. The startup configuration parameters include whether the signal starts normally when some modules are not running after power-on.
[0006] S2: Obtain the types and numbers of each module that enables the signal system to operate normally based on the startup configuration parameters and intersection channelization;
[0007] S3: The control module of the signal controller issues a whole machine code query command to collect the whole machine codes of each module in the signal controller;
[0008] S4: Determine whether the consistency of each module in the signal controller is greater than a preset threshold. If it is greater than the threshold, proceed to step S5; if it is not greater than the threshold, proceed to step S6.
[0009] S5: Each module in the signal controller is active, and traffic signal control is executed based on each module;
[0010] S6: Record the fault and report it.
[0011] Furthermore, step S4 specifically includes:
[0012] S41; Based on the overall machine code of each module in the signal controller, determine whether the number of the main control module is the original code. If yes, proceed to step S42; otherwise, proceed to step S43.
[0013] S42: Determine whether the overall coding of each module is more consistent than the preset threshold and is the original coding. If yes, proceed to step S44; otherwise, proceed to step S45.
[0014] S43: Determine whether the complete machine code of each module is consistent with the complete machine code of the main control module. If yes, proceed to step S46; otherwise, proceed to step S47.
[0015] S44: The main control module and other modules carrying the original code are encoded synchronously for the whole machine;
[0016] S45: Record fault logs and report to the platform for repair, and block CAN nodes of modules other than the effective modules;
[0017] S46: All modules required for the signal controller to be powered on are present. Proceed to step S48.
[0018] S47: Determine whether the invalid module is not among the modules required for the signal controller to start. If yes, proceed to step S48; otherwise, proceed to step S45.
[0019] S48: Record the fault log and report it to the platform, block the CAN nodes of other modules besides the effective modules, and proceed to step S49;
[0020] S49: Traffic signal controllers perform traffic signal control.
[0021] Furthermore, the overall machine code is based on the same configuration given to each module in the signal controller at once via the CAN bus. The overall machine code includes the production date and model number, and the overall machine code of each signal controller is unique.
[0022] Furthermore, each module includes a control module, a lamp driver module, a yellow flashing module, and a backplane module. The control module, lamp driver module, and yellow flashing module are all plugged into the backplane module and are powered, communicated, and have their module addresses provided through the backplane module, respectively.
[0023] The control module is used to control the intersection signals;
[0024] The lamp driver module is used to receive instructions from the control module to control the on / off state of traffic lights;
[0025] The yellow flashing module is used to independently control the yellow flashing of the intersection signal in the event of a serious malfunction of the signal controller or a failure of the control module to work properly.
[0026] Furthermore, the control module includes a main control module and a secondary control module that serves as a backup for the main control module. The secondary control module is used to act as the main control module to control the intersection signals when the main control module is lost or malfunctions.
[0027] Furthermore, in step S2, the intersection channelization of the traffic signal controller configures the correspondence between the actual traffic lights and light groups at the intersection based on the intersection conditions. The required light group number for the current intersection is obtained through intersection channelization, and the required number of light driver modules and their addresses are calculated using the light group number. The correspondence between traffic lights and light groups is as follows:
[0028] Each light driver module on the traffic signal controller controls 4 groups of lights and 12 lights corresponding to the 4 groups of red, yellow and green traffic lights;
[0029] The lamp driver module outputs 4 IO signals as address signals. The backplane module connects the 4 IO signals to high and low levels according to the position of the lamp driver module. The address of the lamp driver module is from 0 to 15.
[0030] The lamp driver module determines the lamp group number module address as (i*4+(1~4)) based on the location of the inserted backplane module, where i is the lamp driver module address.
[0031] A signal controller illegal module detection device includes a reading unit, an acquisition unit, a distribution and collection unit, a judgment unit, a signal execution unit, and a recording and reporting unit;
[0032] The reading unit is used to read the startup configuration parameters of each module in the signal after power-on. The startup configuration parameters include whether the signal starts normally when some modules are not running after power-on.
[0033] The acquisition unit is used to acquire the types and numbers of each module that enables the signal system to operate normally, based on the startup configuration parameters and intersection channelization.
[0034] The issuing and collecting unit is used by the control module of the signal machine to issue a whole machine code query command and collect the whole machine codes of each module in the signal machine;
[0035] The judgment unit determines whether the consistency of each module in the signal controller is greater than a preset threshold. If it is greater than the threshold, it enters the signal execution unit; if it is not greater than the threshold, it enters the recording and reporting unit.
[0036] Each module in the signal execution unit signal controller is effective, and traffic signal control is performed based on each module.
[0037] The recording and reporting unit records the fault and reports it.
[0038] A computer-readable storage medium storing a plurality of classification programs, the plurality of classification programs being invoked by a processor and executing the signal ignition illegal module detection method as described above.
[0039] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0040] The advantages of the illegal module detection method, device, and readable storage medium provided by this invention are as follows: The method, device, and readable storage medium, based on the original signal controller, add detection of the illegality of the signal controller equipment. This prevents modules from affecting traffic signal safety at intersections due to inconsistent hardware or software versions, and also prevents other illegal devices from accessing and infringing on the traffic safety control of the signal controller. The control module only receives data from modules with valid whole-machine codes, reducing data processing, improving operating efficiency, and enhancing real-time processing capabilities. Furthermore, the flashed whole-machine code will not be lost during upgrades, improving the convenience and security of whole-machine code usage. Specifically, each signal controller has a unique whole-machine code, facilitating signal controller module management and tracing the origin of each module. It also features original factory whole-machine code synchronization, eliminating the need for manual flashing of whole-machine codes when replacing modules, thus facilitating equipment repair and replacement and improving maintenance efficiency. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the structure of the present invention;
[0042] Figure 2 It is the main module for signal control in traffic signal controllers;
[0043] Figure 3 This is a flowchart illustrating the illegal module detection method. Detailed Implementation
[0044] The technical solution of the present invention will now be described in detail through specific embodiments. Many specific details are set forth in the following description to provide a thorough understanding of the invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of the invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0045] The traffic signal controller mainly consists of a control module, a light driver module, and a flashing yellow module. The main control module includes a primary control module and a secondary control module as a backup. The primary control module is responsible for running various traffic signal control algorithms and signal control. The secondary control module, as a backup, takes over the intersection signal control when the primary control module is lost or malfunctions. The light driver module's main function is to receive light group control information from the primary or secondary control module and control the traffic lights' on / off state through the drive circuit. The independent flashing yellow module enables independent flashing yellow signals at the intersection in case of a serious signal malfunction or when both the primary and secondary control modules are malfunctioning. All modules are plugged into the backplane module, which provides power and communication, and also provides the board address to the driver board. The illegal module detection process for the traffic signal controller is explained in detail below.
[0046] like Figure 1 As shown, the present invention proposes a method for detecting illegal modules in a signal controller, comprising the following steps:
[0047] S1: The signal control module reads the startup configuration parameters of each module in the signal after power-on. The startup configuration parameters include whether the signal starts normally when some modules are not running after power-on.
[0048] Each signal module has a unique factory-issue serial number (QI) before assembly. Specifically, after the signal is installed, the production software uses the Ethernet bus, main control module, and CAN bus to flash a unique 20-byte QI onto each module. This QI includes the production date and model number. Each signal module has a unique QI. The QI flashed onto each module will not be lost during software upgrades.
[0049] S2: The signal control module obtains the types and numbers of each module that enables the signal to operate normally based on the startup configuration parameters and intersection channelization;
[0050] Traffic signal channelization configures the correspondence between actual traffic lights and light groups at the intersection based on the intersection conditions. It obtains the required light group numbers for the current intersection through channelization, and then calculates the required number of driver modules and their addresses based on these numbers. The correspondence between traffic lights and light groups is as follows:
[0051] (a1) Each light driver module on the signal controller controls 4 groups of lights and 12 lights corresponding to the 4 groups of red, yellow and green traffic lights;
[0052] (a2) The lamp driver module outputs 4 IO signals as the address signals of the lamp driver module. The backplane module connects the 4 IO signals to high and low levels according to the position of the lamp driver module. The address of the lamp driver module is from 0 to 15.
[0053] (a3) The lamp driver module determines the module address of the lamp group number based on the location of the backplane module to which it is inserted, which is (i*4+(1~4)), where i is the lamp driver module address.
[0054] If the address of the light driver module is 0, the light group numbers controlled by this module are 1 to 4; if the address is 1, the light group numbers controlled by this module are 5 to 8; if the address is 2, the light group numbers controlled by this module are 9 to 12; if the address is 3, the light group numbers controlled by this module are 13 to 16; if the address is 4, the light group numbers controlled by this module are 17 to 20; and if the address is 5, the light group numbers controlled by this module are 21 to 24. Intersection channelization of the traffic signal controller configures the correspondence between the actual traffic lights and light groups at the intersection based on the actual conditions. Through intersection channelization, the required light group numbers for the current intersection can be obtained, and the required number of light driver modules and their board numbers can be calculated from the light group numbers.
[0055] S3: The control module of the signal controller issues a whole machine code query command to collect the whole machine codes of each module in the signal controller;
[0056] The signal controller's main control module sends out a whole-machine code query command via the CAN bus, collecting the whole-machine codes of each module of the signal controller within 3 seconds.
[0057] S4: The signal controller control module determines whether the consistency of each module in the signal controller is greater than a preset threshold. If it is greater than the threshold, proceed to step S5; if it is not greater than the threshold, proceed to step S6.
[0058] S5: Each module in the signal controller is active, and traffic signal control is executed based on each module;
[0059] S6: Record the fault and report it.
[0060] Through steps S1 to S6, the signal controller can detect the legitimacy of internal devices. When an illegal internal device is detected, it will report to the platform and perform corresponding operations based on the device's attributes to determine the traffic signal safety control at the intersection.
[0061] Specifically, S4 to S6 include S41 to S49 as follows:
[0062] S41; Based on the overall machine code of each module in the signal controller, determine whether the number of the main control module is the original code. If yes, proceed to step S42; otherwise, proceed to step S43.
[0063] S42: Determine whether the overall coding of each module is more consistent than the preset threshold and is the original coding. If yes, proceed to step S44; otherwise, proceed to step S45.
[0064] S43: Determine whether the complete machine code of each module is consistent with the complete machine code of the main control module. If yes, proceed to step S46; otherwise, proceed to step S47.
[0065] S44: The main control module and other modules carrying the original code are encoded synchronously for the whole machine;
[0066] S45: Record fault logs and report to the platform for repair, and block CAN nodes of modules other than the effective modules;
[0067] S46: All modules required for the signal controller to be powered on are present. Proceed to step S48.
[0068] S47: Determine whether the invalid module is not among the modules required for the signal controller to start. If yes, proceed to step S48; otherwise, proceed to step S45.
[0069] S48: Record the fault log and report it to the platform, block the CAN nodes of other modules besides the effective modules, and proceed to step S49;
[0070] S49: Traffic signal controllers perform traffic signal control.
[0071] Through steps S1 to S6, the illegality detection of signal controller equipment is added to the original signal controller, so as to avoid the impact of inconsistent hardware or software versions of modules on the traffic signal safety of intersections, and at the same time, to prevent other illegal devices from accessing and infringing on the traffic safety control of the signal controller.
[0072] Furthermore, the control module only receives data from modules with valid whole-machine codes, reducing data processing, improving operational efficiency, and enhancing real-time processing capabilities. Simultaneously, the flashed whole-machine code will not be lost during upgrades, improving the convenience and security of whole-machine code usage. It is worth noting that each signal controller has a unique whole-machine code, facilitating signal controller module management and tracing the origin of each module; it also features original factory whole-machine code synchronization, eliminating the need for manually flashing whole-machine codes when replacing modules, thus simplifying equipment repair and replacement and improving maintenance efficiency.
[0073] Working process: After the signal controller is installed, the production software will print a uniform 20-byte whole machine code on each module of the signal controller.
[0074] When the traffic signal is powered on, the main control module reads the startup configuration parameters of each module. Based on the intersection channelization configuration, the main control module calculates the required module numbers and quantities. It then obtains the types and numbers of all modules that can operate normally. Next, the main control module sends a whole-module code query command via the CAN bus, collecting the whole-module codes of each module within 3 seconds. If the main control module's whole-module code is not the original manufacturer's code, it compares the collected whole-module codes with the main control module's code. If the codes match, the module is valid; otherwise, it is invalid. If a module is invalid, it is logged, and information from devices other than valid devices is blocked from being received in the CAN bus to prevent invalid device information from affecting the operation of the traffic signal. If the invalid module is not in the list of modules that can operate normally, the traffic signal continues to operate normally and performs traffic signal control. If the module is operating normally, a fault log is uploaded to the module awaiting repair.
[0075] If the main control module's serial number is the original manufacturer's serial number, and if the collected serial numbers of devices are identical or more than a certain number are identical, and other serial numbers are the original serial numbers, then the main control module synchronizes the original serial number devices to the original serial number. Next, it determines whether the existing modules meet the requirements for normal operation of the signal controller. If they do, traffic signal control is executed; otherwise, a fault log is recorded and uploaded to the platform for repair.
[0076] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for detecting illegal modules in a signal controller, characterized in that, Includes the following steps: S1: Read the startup configuration parameters of each module in the signal after power-on. The startup configuration parameters include whether the signal starts normally when some modules are not running after power-on. S2: Obtain the types and numbers of each module that enables the signal system to operate normally based on the startup configuration parameters and intersection channelization; S3: The control module of the signal controller issues a whole machine code query command to collect the whole machine codes of each module in the signal controller; S4: Determine whether the consistency of each module in the signal controller is greater than a preset threshold. If it is greater than the threshold, proceed to step S5; if it is not greater than the threshold, proceed to step S6. S5: Each module in the signal controller is active, and traffic signal control is executed based on each module; S6: Record the fault and report it; Step S4 specifically includes: S41; Based on the overall machine code of each module in the signal controller, determine whether the number of the main control module is the original code. If yes, proceed to step S42; otherwise, proceed to step S43. S42: Determine whether the overall coding of each module is more consistent than the preset threshold and is the original coding. If yes, proceed to step S44; otherwise, proceed to step S45. S43: Determine whether the complete machine code of each module is consistent with the complete machine code of the main control module. If yes, proceed to step S46; otherwise, proceed to step S47. S44: The main control module and other modules carrying the original code are encoded synchronously for the whole machine; S45: Record fault logs and report to the platform for repair, and block CAN nodes of modules other than the effective modules; S46: All modules required for the signal controller to be powered on are present. Proceed to step S48. S47: Determine whether the invalid module is not among the modules required for the signal controller to start. If yes, proceed to step S48; otherwise, proceed to step S45. S48: Record the fault log and report it to the platform, block the CAN nodes of other modules besides the effective modules, and proceed to step S49; S49: Traffic signal controllers perform traffic signal control.
2. The method for detecting illegal modules in a signal controller according to claim 1, characterized in that, The complete machine code is based on the same configuration given to each module in the signal controller at once via the CAN bus. The complete machine code includes the production date and model number, and the complete machine code of each signal controller is unique.
3. The method for detecting illegal modules in a signal controller according to claim 1, characterized in that, Each module includes a control module, a lamp driver module, a yellow flashing module, and a backplane module. The control module, lamp driver module, and yellow flashing module are all plugged into the backplane module and are powered, communicated, and have their module addresses provided through the backplane module, respectively. The control module is used to control the intersection signals; The lamp driver module is used to receive instructions from the control module to control the on / off state of traffic lights; The yellow flashing module is used to independently control the yellow flashing of the intersection signal in the event of a serious malfunction of the signal controller or a failure of the control module to work properly.
4. The method for detecting illegal modules in a signal controller according to claim 3, characterized in that, The control module includes a main control module and a secondary control module that serves as a backup for the main control module. The secondary control module is used to act as the main control module to control the intersection signals when the main control module is lost or malfunctions.
5. The method for detecting illegal modules in a signal controller according to claim 3, characterized in that, In step S2, the intersection channelization of the traffic signal controller configures the correspondence between the actual traffic lights and light groups at the intersection based on the intersection conditions. The required light group number for the current intersection is obtained through intersection channelization, and the required number of light driver modules and their addresses are calculated using the light group number. The correspondence between traffic lights and light groups is as follows: Each light driver module on the traffic signal controller controls 4 groups of lights and 12 lights corresponding to the 4 groups of red, yellow and green traffic lights; The lamp driver module outputs 4 IO signals as address signals. The backplane module connects the 4 IO signals to high and low levels according to the position of the lamp driver module. The address of the lamp driver module is from 0 to 15. The lamp driver module determines the module address of the lamp group number based on the location of the backplane module it is inserted into. , This is the address of the lamp driver module.
6. A signal controller illegal module detection device, characterized in that, It includes a reading unit, an acquisition unit, a distribution and collection unit, a judgment unit, a signal execution unit, and a record reporting unit; The reading unit is used to read the startup configuration parameters of each module in the signal after power-on. The startup configuration parameters include whether the signal starts normally when some modules are not running after power-on. The acquisition unit is used to acquire the types and numbers of each module that enables the signal system to operate normally, based on the startup configuration parameters and intersection channelization. The issuing and collecting unit is used by the control module of the signal machine to issue a whole machine code query command and collect the whole machine codes of each module in the signal machine; The judgment unit determines whether the consistency of each module in the signal controller is greater than a preset threshold. If it is greater than the threshold, it enters the signal execution unit; if it is not greater than the threshold, it enters the recording and reporting unit. Each module in the signal execution unit signal controller is effective, and traffic signal control is performed based on each module. The recording and reporting unit records and reports the fault; Specifically, the judgment unit is used for: S41; Based on the overall machine code of each module in the signal controller, determine whether the number of the main control module is the original code. If yes, proceed to step S42; otherwise, proceed to step S43. S42: Determine whether the overall coding of each module is more consistent than the preset threshold and is the original coding. If yes, proceed to step S44; otherwise, proceed to step S45. S43: Determine whether the complete machine code of each module is consistent with the complete machine code of the main control module. If yes, proceed to step S46; otherwise, proceed to step S47. S44: The main control module and other modules carrying the original code are encoded synchronously for the whole machine; S45: Record fault logs and report to the platform for repair, and block CAN nodes of modules other than the effective modules; S46: All modules required for the signal controller to be powered on are present. Proceed to step S48. S47: Determine whether the invalid module is not among the modules required for the signal controller to start. If yes, proceed to step S48; otherwise, proceed to step S45. S48: Record the fault log and report it to the platform, block the CAN nodes of other modules besides the effective modules, and proceed to step S49; S49: Traffic signal controllers perform traffic signal control.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of classification programs, which are used by a processor to execute the signal controller illegal module detection method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Equipment information management method, device and system
CN113468189A