| In recent years,embedded technology has been continuously applied to the field of electronic vehicles.Although the overall R&D level of China’s automobiles has been rising and the reliability of vehicle performance has been increasing,the development level of automobile instruments still lags behind the development level of complete vehicles,showing he characteristics of large data error,delayed response,rough interface,messy space and single information.With the rapid development of automotive electronics technology,Chinese residents’ car ownership has exceeded 200 million bottlenecks.Vehicles are no longer pure transportation,but intelligent vehicles that are visual,comfortable,safe and environmentally friendly,it requires the virtual meter system to display rich in-vehicle information.In order to ensure vehicle safety and prevent accidents such as battery explosion,it is necessary to collect vehicle operation information for long-term monitoring on the server,and to find hidden danger sources in time.Due to the limited storage and computing power of the vehicle,to address the deficiencies of the instrumentation system and provide data for online fault diagnosis,this paper designs a virtual instrument cluster system with remote monitoring function applied to pure electric vehicles.The TFT-LCD screen for automotive displays a series of parameters of vehicle operation,including vehicle mileage data,fault information,speed,power and status information,etc.,using modern graphics processing technology to render the LCD interface,providing drivers with simple,intuitive,comprehensive and accurate Driving information makes the cab space more comfortable.The vehicle terminal system is divided into an information display node and a network communication node.They share information based on the car CAN bus but are functionally independent,and together form a data acquisition end of the car network sensing layer.When a node fails,the other still works.The information display node has functions of data acquisition,data processing,LCD display,etc.,and sends IPC data frames to the CAN network;the network communication nodes collect data from the CAN network and package them according to the GB-T 32960 standard format,and then send them to the enterprise monitoring server through the 4G module.The information display node adopts LPC1766 as the main control chip,MT310E16 s as the(FPGA)core board is responsible for driving the TFT-LCD;the network communication node adopts LPC1758 as the main control chip,SIM7600 ce as the 4G module,and the open source operating system μC/OS-II realizes multitasking management.The vehicle terminal software includes five modules: data acquisition,data processing,data display,data storage and wireless data transmission;realizes CAN interrupt processing function,timing interrupt,analog information update function,LCD interface display function,4G transmission task,TCP connection task,GPS receiving task and other functions,to achieve real-time display data of the vehicle to the LCD screen,wireless data upload function.For the real-time data transmission of vehicles,the amount of data is large,storage is limited,power consumption and other issues,this paper improves the data compression method based on dynamic Huffman algorithm combined with real-time data characteristics of automobiles.The improved algorithm has better compression effect than the dynamic Huffman algorithm,which effectively improves the compression ratio by 20%,reduces the real-time data length of the vehicle,and saves the power consumption of the transmitter.After the actual vehicle test,the system can meet the requirements of real-time and reliability of the system,and the function is stable. |