| As the basic energy supplement for electric vehicles,the operating status of the charging pile directly affects the development of electric vehicles.In order to realize the centralized management of discretely distributed charging piles,the charging pile management system has become the mainstream of construction.Now software failure is the main factor affecting the operation of charging piles.However,many charging pile management systems lack software management functions.They can’t provide software running process,identify software fault,reproduce the fault process,or realize software monitoring and maintenance,thus affecting the normal use of charging pile.In order to solve the above problems,the main research is the technology of charging pile software monitoring and maintenance.First,according to the design requirements of reliability,versatility,functional diversity and economics,an overall solution is proposed.The composition,including local acquisition modules,server module and communication module,and function,including log querying,software fault warning,remote viewing and code online upgrading,are designed.Secondly,the monitoring data collection method of the charging pile operation software is designed.According to the data flow and control flow,and the software and hardware architecture of the embedded charging pile,communication events,level events,variable events,function operations,etc.are selected as the software status monitoring objects.The monitoring content of each object is analyzed.Combined with the program log,a "dual area" storage method is proposed to reduce the impact of the software status monitoring code segment on the original program.STM32 timer is used to design the recording and storage of time data.Thirdly,the remote maintenance method of the charging pile is designed to realize the functions of log query,software failure early warning,remote viewing,and online code upgrade.Among them,the log query function enables viewing of the software status.The software fault early warning function realizes the autonomous reporting of faults and the recurrence of fault processes.It is designed based on the control flow model and abstract interpretation model.The remote viewing function enables viewing of other software information not involved in the program log.The code online upgrade function realizes the remote update of the software,which is based on the IAP principle design.According to the response communication mode between the local charging station and the host computer module,the transmission process of the maintenance data and the CAN communication protocol are designed.Finally,the host computer module of the charging pile management system is designed.Based on the QT platform and MVC design pattern,the host computer software is developed.The host computer interface is designed.A database is built through requirements analysis,conceptual structure design and data table design.The test on the host computer shows that the software monitoring and remote maintenance of the charging pile are realized.This task has realized the monitoring and remote maintenance of the operating software of charging pile,which facilitates software optimization and software fault resolution,simplifies the maintenance process,saves human resources,and improves software operation and maintenance efficiency. |