| In recent years,radio frequency identification technology has developed rapidly.Because it has the advantages of recognition accuracy not affected by weather and other factors,comprehensive identification information,and fast recognition speed,it is widely used in the field of transportation,and has formed automotive electronic identification.Install automotive electronic identification tags on motor vehicles,and install automotive electronic identification equipment above the roads at the collection points to achieve vehicle data collection.There are hundreds or even thousands of automotive electronic identification devices that need to be installed in a city.It is impractical to manage these devices directly by upper-level applications,and it is not conducive to system expansion.Therefore,a middleware system is needed to complete the management,data processing of hundreds of devices,and provide a unified information service for applications.According to the application requirements of automotive electronic identification,this thesis designs a middleware system for automotive electronic identification to realize the functions of equipment management,status monitoring,data processing and information services.The main work and contributions of this thesis include:(1)Design of middleware architecture based on microservices.The logical architecture of the middleware system is designed in layers,and the system is divided into an access management layer,a data management layer,and an information service layer.At the same time,the external interface of the system is described in detail.In order to improve the scalability and portability of the system and facilitate later maintenance,the system physical architecture uses a microservice architecture.According to the logical architecture design,the entire system is divided into seven types of microservices: registration service,messaging service,message processing service,basic service,complex event processing service,event detection service,and equipment management service.The functions and external interfaces of each microservice are designed.(2)Concurrent solution design of automotive electronic middleware.Several concurrent solutions are analyzed.According to the project situation,a high-performance,easy-to-expand,and stable solution is selected to solve the concurrency problem ofhundreds of devices accessing and transmitting data at the same time.(3)Design of data processing algorithm for automotive electronic identification middleware.Aiming at the problems of missed and redundant reads in the reading equipment,several commonly used algorithms for deduplication and missed read completion are analyzed,and the redundancy filtering algorithm based on Hash Table is improved,which significantly reduces the memory consumption of redundant processing;A missed reading completion algorithm based on probability allocation is proposed to supplement missed reading data.Aiming at complex events such as overspeed detection and congestion detection,this thesis proposes Hash Table-based overspeed detection algorithm and congestion detection algorithm,which can detect vehicle speeding,station and road congestion.(4)Implementation of automotive electronic identification system.Use Spring Boot +Spring Cloud technology to build the system microservice architecture,use Rabbit MQ to transfer data between microservices;use netty technology to manage hundreds of reading devices;use My SQL + Mongo DB to store device information and tag data;use Redis database Cache system common data;Finally,a prototype system of automotive electronic identification middleware is implemented to facilitate user management of equipment.Based on the actual project,this thesis designs the logical architecture and physical architecture of automotive electronic identification middleware.Several de-redundancy and miss-read completion algorithms were studied,and the redundancy filtering algorithm based on Hash Table was improved,which significantly reduced the memory consumption when processing redundant data;a missed read completion algorithm based on probability allocation was proposed to supplement the leak Read the data.The overspeed detection algorithm and congestion detection algorithm based on Hash Table are proposed to quickly detect the overspeed situation,the congestion situation of stations,road sections.Finally,a prototype system of automotive electronic identification middleware was implemented to manage reading equipment.The research work done in the thesis i is beneficial to the popularization of automotive electronic Identification and promotes the industrialization of automotive electronic Identification. |