CN111739385A - Traffic signal control experiment teaching device based on B/S framework - Google Patents
Traffic signal control experiment teaching device based on B/S framework Download PDFInfo
- Publication number
- CN111739385A CN111739385A CN202010590060.9A CN202010590060A CN111739385A CN 111739385 A CN111739385 A CN 111739385A CN 202010590060 A CN202010590060 A CN 202010590060A CN 111739385 A CN111739385 A CN 111739385A
- Authority
- CN
- China
- Prior art keywords
- module
- framework
- server
- equipment
- lamp
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B19/00—Teaching not covered by other main groups of this subclass
- G09B19/14—Traffic procedures, e.g. traffic regulations
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention discloses a traffic signal control teaching device based on a B/S framework, which comprises terminal equipment, a B/S framework, a server framework, communication equipment and signal lamp equipment, wherein the B/S framework is carried on the terminal equipment; the B/S framework adopts a standard protocol to carry out data transmission; the B/S architecture comprises a man-machine interaction layer and a data interface layer; the man-machine interaction layer is used for checking the real-time light state of the traffic signal light and comprises a parameter setting module and a control module; the data interface layer is used for connecting the B/S framework and the server framework; the server framework comprises a working server and a backup server; the server framework is used for lamp state control and data storage functions; the backup server comprises a server program backup module, a user information backup module, a program data backup module and a program working log backup module; the working server is connected with the signal lamp equipment through communication equipment; and the signal lamp equipment feeds back the traffic light state and the countdown state of the traffic intersection in real time.
Description
Technical Field
The invention relates to the technical field of traffic signal control, in particular to a traffic signal control experiment teaching device based on a B/S framework.
Background
At present, along with rapid economic development and acceleration of urbanization process, the quantity of automobiles in China is continuously increased, and the traffic jam phenomenon caused by the continuous increase is the most serious. How to solve traffic jam is very important, under the existing road traffic condition, a traffic police can implement traffic light control and management according to the field situation, select the optimal signal timing scheme, and fully play the traffic capacity of the existing road, because even in the same road section, the traffic flow on and off duty has larger difference, and a constant traffic control mode cannot be used. How to realize safe and efficient traffic of road traffic becomes the most needed problem to be solved by the traffic department.
The traffic signal control experiment teaching device used for the simulation sand table aims to enable traffic professionals at school students to visually know the composition of traffic signal control, what the working principle is, how to learn the control and management of traffic signals and the like. At present, most of traffic signal control experiment platforms of colleges and universities adopt a C/S-based architecture. As disclosed in chinese patent publication No.: CN 104834776A, published application date: 2015.08.12, discloses a traffic vehicle modeling simulation system and method in microscopic traffic simulation. The C/S (Client/Server) architecture, i.e., Client and Server architecture, is implemented by distributing tasks to the Client side and the Server side.
In practical applications, both client and server sides require specific software support and different versions of software need to be developed for different operating systems. In addition, the product is very fast to update, the subsequent maintenance cost of the software is high, the efficiency is low, and the method is difficult to adapt to simultaneous use of a plurality of terminal networking users.
Disclosure of Invention
The invention provides a traffic signal control teaching device based on a B/S framework, aiming at solving the problems of high later maintenance cost and low efficiency of the existing traffic signal control teaching device developed based on the C/S framework, and the traffic signal control teaching device based on the B/S framework can reduce the cost and workload of system maintenance and upgrading and reduce the overall cost of users.
In order to achieve the purpose of the invention, the technical scheme is as follows: a traffic signal control teaching device based on a B/S framework comprises a terminal device, a B/S framework loaded on the terminal device, a server framework, a communication device and a signal lamp device;
the B/S framework adopts a standard protocol to carry out data transmission; the B/S architecture comprises a man-machine interaction layer and a data interface layer;
the man-machine interaction layer is used for checking the real-time light state of the traffic signal light and comprises a parameter setting module and a control module;
the data interface layer is used for connecting the B/S framework and the server framework;
the server framework comprises a working server and a backup server; the server framework is used for lamp state control and data storage functions;
the work server comprises a user authority management module, a signal machine terminal communication module, a traffic light group real-time information feedback module, a countdown real-time information feedback module, a user scheme execution module, an intersection information management module and a traffic light group simulation data processing module;
the backup server comprises a server program backup module, a user information backup module, a program data backup module and a program working log backup module;
the working server is connected with the signal lamp equipment through communication equipment;
and the signal lamp equipment feeds back the traffic light state and the countdown state of the traffic intersection in real time.
Preferably, the B/S framework adopts HTML5/Java for front-end webpage development.
Further, the front-end web page comprises intersection setting, parameter setting and real-time light states;
the intersection setting comprises an intersection name, an equipment type, a communication mode, an intersection type and a lamp group type;
the parameter setting comprises a phase scheme, a time period file, and special date and time calibration;
the real-time state is used for displaying the traffic light state of the current intersection.
Still further, the front-end webpage still include the manual control module, the manual control module include that the full red of special light state, yellow flash and emulation phase place scheme, can control signal lamp equipment to carry out including the full red of light state, several kinds of special light state instructions of yellow flash through the manual control module, and the emulation of execution scheme.
And furthermore, the server framework is compiled by adopting a MySQL database.
And further, the working server and the communication equipment communicate in a UDP communication mode.
Still further, the terminal device is an electronic device capable of performing browser operation, and specifically includes a smart phone, an ipad, and a computer.
Preferably, the communication device is a non-screen traffic signal controller.
Furthermore, the traffic signal controller comprises a main control chip, a driving module, a network module, a reset circuit, a clock circuit, a power module, a ZigBee module, a USB module and an SD card slot;
the clock circuit is electrically connected with the main control chip and is used for counting down;
the main control chip is in communication connection with the communication equipment through the network module;
the main control chip is electrically connected with the signal lamp equipment through the driving module;
the reset circuit is connected with the main control chip and is used for restoring the circuit to an initial state;
the SD card slot is connected with the main control chip and used for expanding data storage;
the power supply module provides a required working power supply for the main control chip;
the ZigBee module is connected with the main chip and is used for wireless communication connection;
the USB module is connected with the main chip and used for data transmission.
Still further, the signal lamp equipment comprises a red lamp, a green lamp and a yellow lamp;
the red light, the green light and the yellow light are all connected with the main control chip through the driving module.
The invention has the following beneficial effects:
1. the invention is developed based on a B/S framework, the B/S framework is established on a wide area network, is oriented to different user groups and dispersed regions, does not need a special network hardware environment, and can check the real-time light state of the road traffic simulation sand table signal lamp or execute a simulation phase scheme in real time only by an operating system and a browser. The method adopts a standard communication protocol, and has the characteristics of strong adaptability, convenient operation, strong sharing property, easy compatibility and easy expansion.
2. The invention is developed based on the B/S framework, only needs to aim at the management of the server, and all the clients are only browsers without any maintenance, thereby greatly simplifying the computer load of the clients, reducing the cost and workload of system maintenance and upgrading, and reducing the total cost of users.
3. The real-time road traffic condition can be checked through the terminal equipment, teaching interaction is improved, classroom learning and practical application are closely related, and interest of students in design and development of a traffic signal control system is stimulated.
Drawings
Fig. 1 is a block diagram showing a traffic signal control device according to embodiment 1.
Fig. 2 is a schematic structural diagram of the server architecture described in embodiment 1.
Fig. 3 is a circuit connection block diagram of the communication apparatus described in embodiment 1.
In the figure, 1-terminal equipment, 2-work server, 3-backup server, 4-communication equipment and 5-signal lamp equipment.
Detailed Description
The invention is described in detail below with reference to the drawings and the detailed description.
Example 1
As shown in fig. 1, a traffic signal control teaching apparatus based on a B/S architecture includes a terminal device, a B/S architecture mounted on the terminal device, a server architecture, a communication device and a signal lamp device;
the B/S framework adopts a standard protocol to carry out data transmission; the B/S architecture comprises a man-machine interaction layer and a data interface layer;
the man-machine interaction layer is used for checking the real-time light state of the traffic signal light and comprises a parameter setting module and a control module;
the data interface layer is used for connecting the B/S framework and the server framework; as shown in fig. 2, the server architecture includes a work server and a backup server; the server framework is used for lamp state control and data storage functions;
the work server comprises a user authority management module, a signal machine terminal communication module, a traffic light group real-time information feedback module, a countdown real-time information feedback module, a user scheme execution module, an intersection information management module and a traffic light group simulation data processing module;
the user authority management module is used for managing user login and user identity.
And the annunciator terminal communication module is used for being in communication connection with communication equipment and transmitting related data information.
And the traffic light group real-time information feedback module is used for displaying the working state of the signal light equipment.
And the countdown real-time information feedback module is used for displaying countdown information.
And the user scheme execution module is used for issuing execution information and transmitting the execution information to the signal lamp equipment through the communication equipment for execution.
And the intersection information management module is used for displaying the information condition of each intersection.
The traffic light set simulation data processing module is used for processing simulation data of received traffic light signals.
The backup server comprises a server program backup module, a user information backup module, a program data backup module and a program working log backup module;
the backup server is mainly used for backing up data, so that data loss in the working server is prevented, and when the data in the working server is lost, a user can directly obtain the data from the backup server.
The working server is connected with the signal lamp equipment through communication equipment;
and the signal lamp equipment feeds back the traffic light state and the countdown state of the traffic intersection in real time.
In a specific embodiment, the B/S framework adopts HTML5/Java to develop a front-end web page, and the front-end web page comprises intersection setting, parameter setting and real-time light states;
the intersection setting comprises an intersection name, an equipment type, a communication mode, an intersection type and a lamp group type; and the intersection information management module is used for managing;
the parameter setting comprises a phase scheme, a time period file, and special date and time calibration;
the real-time state displays the current intersection traffic light state through a countdown real-time information feedback module and a traffic light group real-time information feedback module in the working server.
Students can enter the background of the teaching system through logging in a webpage, and can set relevant parameters through intersection setting, parameter setting, real-time light states and the like and learn.
The front-end webpage further comprises a manual control module, the manual control module comprises a special lamp state full-red and yellow flashing and simulation phase scheme, and the manual control module can control the signal lamp equipment to execute a plurality of special lamp state instructions including the lamp state full-red and yellow flashing and simulate the execution scheme.
The students can realize intersection configuration by using a www browser through the terminal equipment, realize the function of naming intersections in a certain road and distinguish other intersections. Meanwhile, names of the east, west, south and north directions can be edited. According to the situation of the real road intersection, the function of simulating the real intersection form by selecting the corresponding intersection picture is realized. There are 7 crossing shape choices, respectively: an intersection; t type north-south; t type _ north-south; t-type _ east-west-south; t type _ east-west-north; type I north-south; type I _ east. The lamp group mode display method comprises the steps of selecting according to different intersection forms, realizing corresponding lamp group mode display functions, selecting 17 lamp group modes, and respectively selecting three groups of arrow lamps, five lamps of left and right straight arrows, three lamps of left arrows, three lamps of straight arrows, three lamps of right arrows, a left arrow full lamp, three left arrow lamps, three straight arrow lamps, three right arrow lamps, a right arrow full lamp, four lamps of left straight arrows, four lamps of left and right arrows, four lamps of right and right arrows, three lamps of full screens, left and right arrow lamps, left straight arrow lamps and right arrow lamps.
The phase scheme editing can be realized through the terminal equipment, and the method has the functions of selecting one scheme in the current list to perform the operations of scheme simulation, scheme modification, scheme deletion, elimination of all the schemes and the like; when the time interval file is edited, the time interval file is selected to perform the functions of newly adding time, modifying time intervals and deleting time intervals. In the time period file interface, the saved time period files can be seen, and one time period file icon is clicked to enter the specific time period information; when editing the special date, the date and time are set for a certain day in the year (such as 1 month and 1 day, legal holiday and the like), the date of each time interval is modified and deleted, and the file configuration operation condition of each time interval from Monday to Sunday can be seen. And when the calibration time is edited, the network time of the calibration communication equipment is synchronously updated.
In a specific embodiment, the server framework is compiled by using a MySQL database; the MySQL database adopted by the embodiment has the following advantages: 1. the method can be written by C and C + +, and various compilers are used for testing, so that the portability of the source code is ensured. 2. And various operating systems such as AIX, FreeBSD, HP-UX, Linux, Mac OS, NovellNet, OpenBSD, OS/2Wrap, Solaris, Windows and the like are supported. 3. APIs may be provided for a variety of programming languages, including C, C + +, Python, Java, Perl, PHP, Eiffel, Ruby, and Tcl, among others. 4. And multithreading is supported, and CPU resources are fully utilized. 5. The optimized SQL query algorithm effectively improves the query speed.
And the working server and the communication equipment communicate in a UDP communication mode. The UDP is a short for user data gram Protocol, a Chinese name is a user datagram Protocol, and is a connectionless transport layer Protocol in an Open System Interconnection (OSI) reference model, which provides a transaction-oriented simple unreliable information transfer service, and IETF RFC 768 is a formal specification of UDP. Although the UDP communication packet does not have a reliability guarantee, a sequence guarantee, a flow control field, and the like, the reliability is poor. However, because the UDP protocol has fewer control options, the delay is small during data transmission, the data transmission efficiency is high, and the UDP protocol is suitable for an application program with low reliability requirement or an application program capable of ensuring reliability.
In a specific embodiment, the terminal device is an electronic device capable of performing browser operation, and specifically includes a smart phone, an ipad, and a computer.
In one specific embodiment, as shown in fig. 3, the communication device is a screenless traffic signal controller. The traffic signal controller comprises a main control chip, a driving module, a network module, a reset circuit, a clock circuit, a power module, a ZigBee module, a USB module and an SD card slot;
the clock circuit is electrically connected with the main control chip and is used for counting down;
the main control chip is in communication connection with the communication equipment through the network module;
the main control chip is electrically connected with the signal lamp equipment through the driving module;
the reset circuit is connected with the main control chip and is used for restoring the circuit to an initial state;
the SD card slot is connected with the main control chip and used for expanding data storage;
the power supply module provides a required working power supply for the main control chip;
the ZigBee module is connected with the main chip and is used for wireless communication connection;
the USB module is connected with the main chip and used for data transmission.
In a specific embodiment, the signal lamp equipment comprises a red lamp, a green lamp and a yellow lamp;
the red light, the green light and the yellow light are all connected with the main control chip through the driving module.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.
Claims (10)
1. The utility model provides a traffic signal control teaching device based on B/S framework which characterized in that: the system comprises terminal equipment, a B/S framework, a server framework, communication equipment and signal lamp equipment, wherein the B/S framework is carried on the terminal equipment;
the B/S framework adopts a standard protocol to carry out data transmission; the B/S architecture comprises a man-machine interaction layer and a data interface layer;
the man-machine interaction layer is used for checking the real-time light state of the traffic signal light and comprises a parameter setting module and a control module;
the data interface layer is used for connecting the B/S framework and the server framework;
the server framework comprises a working server and a backup server; the server framework is used for lamp state control and data storage functions;
the work server comprises a user authority management module, a signal machine terminal communication module, a traffic light group real-time information feedback module, a countdown real-time information feedback module, a user scheme execution module, an intersection information management module and a traffic light group simulation data processing module;
the backup server comprises a server program backup module, a user information backup module, a program data backup module and a program working log backup module;
the working server is connected with the signal lamp equipment through communication equipment;
and the signal lamp equipment feeds back the traffic light state and the countdown state of the traffic intersection in real time.
2. The B/S architecture based traffic signal control teaching device of claim 1 wherein: the B/S framework adopts HTML5/Java to carry out front-end webpage development.
3. The B/S architecture based traffic signal control teaching device of claim 2 wherein: the front-end web page comprises intersection setting, parameter setting and real-time lamp states;
the intersection setting comprises an intersection name, an equipment type, a communication mode, an intersection type and a lamp group type;
the parameter setting comprises a phase scheme, a time period file, and special date and time calibration;
the real-time state is used for displaying the traffic light state of the current intersection.
4. The B/S architecture based traffic signal control teaching device of claim 3 wherein: the front-end webpage further comprises a manual control module, the manual control module comprises a special lamp state full-red and yellow flashing and simulation phase scheme, and the manual control module can control the signal lamp equipment to execute a plurality of special lamp state instructions including the lamp state full-red and yellow flashing and simulate the execution scheme.
5. The B/S architecture based traffic signal control teaching device of claim 4 wherein: the server framework is compiled by adopting a MySQL database.
6. The B/S architecture based traffic signal control teaching device of claim 5 wherein: and the working server and the communication equipment communicate in a UDP communication mode.
7. The B/S architecture based traffic signal control teaching device of claim 6 wherein: the terminal equipment is electronic equipment capable of operating a browser, and specifically comprises a smart phone, an ipad and a computer.
8. The B/S architecture based traffic signal control teaching device of claim 1 wherein: the communication equipment is a non-screen traffic signal controller.
9. The B/S architecture based traffic signal control teaching device of claim 8 wherein: the traffic signal controller comprises a main control chip, a driving module, a network module, a reset circuit, a clock circuit, a power module, a ZigBee module, a USB module and an SD card slot;
the clock circuit is electrically connected with the main control chip and is used for counting down;
the main control chip is in communication connection with the communication equipment through the network module;
the main control chip is electrically connected with the signal lamp equipment through the driving module;
the reset circuit is connected with the main control chip and is used for restoring the circuit to an initial state;
the SD card slot is connected with the main control chip and used for expanding data storage;
the power supply module provides a required working power supply for the main control chip;
the ZigBee module is connected with the main chip and is used for wireless communication connection;
the USB module is connected with the main chip and used for data transmission.
10. The B/S architecture based traffic signal control teaching device of claim 9 wherein: the signal lamp equipment comprises a red lamp, a green lamp and a yellow lamp;
the red light, the green light and the yellow light are all connected with the main control chip through the driving module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010590060.9A CN111739385A (en) | 2020-06-24 | 2020-06-24 | Traffic signal control experiment teaching device based on B/S framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010590060.9A CN111739385A (en) | 2020-06-24 | 2020-06-24 | Traffic signal control experiment teaching device based on B/S framework |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111739385A true CN111739385A (en) | 2020-10-02 |
Family
ID=72650994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010590060.9A Pending CN111739385A (en) | 2020-06-24 | 2020-06-24 | Traffic signal control experiment teaching device based on B/S framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111739385A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113301443A (en) * | 2021-05-28 | 2021-08-24 | 广州飞达音响股份有限公司 | Film processor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819961A (en) * | 2012-08-27 | 2012-12-12 | 南京工程学院 | Traffic signal real-time transmission system on basis of wireless mobile communication network |
CN103442055A (en) * | 2013-08-26 | 2013-12-11 | 国电南瑞科技股份有限公司 | Train real-time monitoring system based on B/S architecture |
CN104181929A (en) * | 2014-08-27 | 2014-12-03 | 中国兵器工业计算机应用技术研究所 | Control system used for controlling unmanned aerial vehicle under B/S framework |
CN208873342U (en) * | 2018-06-15 | 2019-05-17 | 广州运星科技有限公司 | A kind of experiment device for teaching of traffic signals |
CN110310533A (en) * | 2019-04-01 | 2019-10-08 | 北方工业大学 | Demonstration system and method for urban road traffic control and experiment |
CN110610614A (en) * | 2019-09-18 | 2019-12-24 | 四川华控智能交通设施工程有限公司 | Intelligent signal control machine and control method thereof |
-
2020
- 2020-06-24 CN CN202010590060.9A patent/CN111739385A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102819961A (en) * | 2012-08-27 | 2012-12-12 | 南京工程学院 | Traffic signal real-time transmission system on basis of wireless mobile communication network |
CN103442055A (en) * | 2013-08-26 | 2013-12-11 | 国电南瑞科技股份有限公司 | Train real-time monitoring system based on B/S architecture |
CN104181929A (en) * | 2014-08-27 | 2014-12-03 | 中国兵器工业计算机应用技术研究所 | Control system used for controlling unmanned aerial vehicle under B/S framework |
CN208873342U (en) * | 2018-06-15 | 2019-05-17 | 广州运星科技有限公司 | A kind of experiment device for teaching of traffic signals |
CN110310533A (en) * | 2019-04-01 | 2019-10-08 | 北方工业大学 | Demonstration system and method for urban road traffic control and experiment |
CN110610614A (en) * | 2019-09-18 | 2019-12-24 | 四川华控智能交通设施工程有限公司 | Intelligent signal control machine and control method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113301443A (en) * | 2021-05-28 | 2021-08-24 | 广州飞达音响股份有限公司 | Film processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107728491B (en) | V2X car networking is at ring simulation system | |
CN102779056B (en) | Remote hardware method for updating program and system | |
CN106530155A (en) | College teaching affair management system | |
CN104123859A (en) | Mobile learning platform based on Android system | |
CN109032573A (en) | A kind of hardware programming system and method | |
CN105023207A (en) | Teacher layout family operation system and method | |
CN111739385A (en) | Traffic signal control experiment teaching device based on B/S framework | |
CN110102059B (en) | Method and device for generating route point information, processor and terminal | |
CN113821900A (en) | Internet of vehicles analog simulation test system and method | |
CN115268964A (en) | Data reinjection method and system, electronic device and readable storage medium | |
CN108959220A (en) | Templating data input management method and device | |
CN111209318B (en) | Geographic position data analysis method and device, electronic equipment and storage medium | |
CN105635272A (en) | Server, student end, teacher end, and coursework processing method and system | |
CN106875765A (en) | A kind of electronic classroom implementation method and device based on VDI | |
CN101370031B (en) | Satellite network simulation platform construction method based on open-source fire wall and mobile proxy technology | |
CN105373898A (en) | Online course platform student course selection and management method and system | |
CN109961380A (en) | A kind of information processing method applied to public administration teaching | |
CN211044600U (en) | Programming education system for pupils | |
CN103023732A (en) | Information security laboratory device | |
CN108833454B (en) | Teaching Internet of things training system and method | |
CN113395306A (en) | FPGA experimental system combining remote virtual and real | |
CN110807718A (en) | Finite-state-machine-based post-session work flow management method in online teaching platform | |
CN204945768U (en) | Attend class information management system in a kind of classroom based on ZigBee | |
CN109388576A (en) | A kind of artificial debugging tool based on AGDI interface | |
Wang et al. | Intelligent Light Control System Based on Zigbee |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201002 |
|
RJ01 | Rejection of invention patent application after publication |