| In recent years,with the improvement of the national economy and the quality of life,the number of vehicles in China is increasing,from 120 million in 2012 to 260 million in2019.The environmental pollution caused by the rapid development of automobile industry has become a big problem.Therefore,China has issued China’s Ⅵ vehicle emission standard,which not only puts forward more stringent vehicle emission standards,but also applies the requirements of remote emission management vehicle terminal(remote OBD)to the national standard for the first time.Therefore,the establishment of a remote monitoring system provides technical support for the remote informatization supervision of vehicles by the environmental protection department.This paper proposes an OBD remote monitoring system for diesel vehicles in use,which realizes real-time monitoring and information management of diesel vehicles.The system system mainly includes two parts: on-board OBD terminal and remote monitoring platform.The vehicle terminal is based on the Keil5 development environment,uses C language for development,and uses the Free RTOS operating system to meet the high real-time requirements of the system.The system selects STM32F105RCT6 as the main control chip,obtains vehicle status data and exhaust gas post-processing related data through CAN(Controller Area Network)data acquisition module,collects position information through SIM7600,and finally uploads the data to the remote monitoring platform by TCP/IP protocol.The remote monitoring platform uses B/S architecture,the front end uses VUE +Element UI,and the server uses Spring Boot+Mybatis framework to build.According to the characteristics of different data in the system,a variety of databases are used to improve system performance.Among them,Redis is used as system cache,My SQL is used to store system data,Mongo DB is used to store real-time data,and Elastic Search is used to retrieve historical data.In response to the requirement of realtime refresh of the monitoring page data,the Web Socket protocol is used to push data to the front end.The system can receive,store and display multi-source data,so as to facilitate the supervision of the environmental protection department.Finally,through simulation test and real vehicle test,the functional modules of the data acquisition and remote monitoring platform are verified.The results show that the vehicle data collection is normal.The positioning information is accurate.The information transmission is reliable.The functions of each module of the monitoring platform are normal.The system can realize real-time monitoring and management of vehicles. |