With the shortage of energy and the continuous development of automotive technology, electric vehicles are gradually gaining popularity. The energy of electric vehicles mainly comes from the power grid, and its large-scale use is inseparable from the support of the power system. However, electric vehicles consume power quickly, have short driving ranges, and frequently charge, and there are plenty of problems such as disorder and randomness in charging, which is not conducive to rational planning of the power grid. Optimizing the charging problem of electric vehicles can not only save power resources but also bring huge economic benefits to operators of charging stations. In this paper, the CAN bus communication protocol, combined with GPS positioning, LabVIEW monitoring, GPRS transmitting and other technical means, can realize the information exchange of the "vehicle-charging device-distribution network". The charging data of the electric vehicle can be obtained in real-time by means of near-end acquisition and remote transmission. In view of the many problems existing in the current V2G(Vehicle to Grid) technology, this paper uses CAN communication to propose the corresponding solution, which saves the operating cost of the charging station. Such technology has high research value and practicability and provides a solution to the problem of data sources in current grid optimization.