Energy Storage Charging Pile Management Based on Internet of Things Technology for Electric Vehicles

: The traditional charging pile management system usually only focuses on the basic charging function, which has problems such as single system function, poor user experience, and inconvenient management. In this paper, the battery energy storage technology is applied to the traditional EV (electric vehicle) charging piles to build a new EV charging pile with integrated charging, discharging, and storage; Multisim software is used to build an EV charging model in order to simulate the charge control guidance module. On this basis, combined with the research of new technologies such as the Internet of Things, cloud computing, embedded systems, mobile Internet, and big data, new design and construction methods of the energy storage charging pile management system for EV are explored. Moreover, K-Means clustering analysis method is used to analyze the charging habit. The functions such as energy storage, user management, equipment management, transaction management, and big data analysis can be implemented in this system. The simulation results of this paper show that: (1) Enough output power can be provided to meet the design and use requirements of the energy-storage charging pile; (2) the control guidance circuit can meet the requirements of the charging pile; (3) during the switching process of charging pile connection state, the voltage state changes smoothly. It can provide a new method and technical path for the design of electric vehicle charging pile management system, which can effectively reduce the system’s operation and maintenance costs and provide more friendly and convenient charging services.


Introduction
The European Union has officially announced that it will ban the sale of fuel vehicles in the EU from 2035 [1], as the energy crisis and environmental pollution are becoming increasingly prominent around the world.Due to the advantages of zero emission, zero pollution, high energy utilization rate and low noise, electric vehicles are of great significance in realizing energy security, energy conservation and emission reduction, and carbon peak-to-carbon neutrality strategy, etc., which has attracted extensive global attention [2][3][4][5][6].The charging pile (as shown in Figure 1) is equivalent to a fuel tanker for a fuel car, which can provide power supply for an electric car.Charging piles are mainly installed in shopping malls, shopping centers, residential parking lots, downstairs units and charging and changing stations, which can provide charging services for electric vehicles of different types and voltage levels.
In recent years, with the rapid development of the EV market, accelerating the construction of charging infrastructure has become a top priority [7][8][9][10][11][12][13][14][15].In January 2022, Development and Reform Commission of the People's Republic of China proposed to invest in new infrastructure such as charging piles in advance [16].With the acceleration of the construction of charging piles and the expansion of construction scale, traditional charging piles in urban centers and other places with concentrated human traffic are faced with problems such as limited distribution capacity, loss of distribution network, voltage drop and shortage of charging parking spaces.Besides the problems such as single function, poor user experience and low utilization rate of the management system are increasingly prominent.In 2018, the "Guiding Opinions on Improving the Adjustment Capability of Power System" issued by the National Development and Reform Commission and the Energy Administration clearly pointed out that it was necessary to improve the intelligent level of EV charging infrastructure, and improve the level of charging service by building an intelligent service system for charging piles [17].In recent years, with the rapid development of the EV market, accelerating the construction of charging infrastructure has become a top priority [7][8][9][10][11][12][13][14][15].In January 2022, Development and Reform Commission of the People's Republic of China proposed to invest in new infrastructure such as charging piles in advance [16].With the acceleration of the construction of charging piles and the expansion of construction scale, traditional charging piles in urban centers and other places with concentrated human traffic are faced with problems such as limited distribution capacity, loss of distribution network, voltage drop and shortage of charging parking spaces.Besides the problems such as single function, poor user experience and low utilization rate of the management system are increasingly prominent.In 2018, the "Guiding Opinions on Improving the Adjustment Capability of Power System" issued by the National Development and Reform Commission and the Energy Administration clearly pointed out that it was necessary to improve the intelligent level of EV charging infrastructure, and improve the level of charging service by building an intelligent service system for charging piles [17].
At present, the research on electric vehicle charging infrastructure mainly focus on the charging piles.The research on modeling design of charging pile were as follows: Pro/E (Professional Engineer), CAD (Computer Aided Design), and 3Ds max software were used to complete the modeling design of a new type of charging pile [18]; modeling design of curved surface shell coated with nano paint and modeling design of square surface shell coated with traditional paint were conducted [19].The research on the application test of charging pile were as follows: According to the application requirements of mobile charging piles, CATIA (Computer-Aided Three-Dimensional Interactive Application) software was used to model the structure, of which strength and reliability were analyzed under four load conditions [20]; a simulation testing platform for charging pile control system based on semi-physical simulation technology was developed [21].The research on charging technology were as follows: A combination of diagnosis methodologies applied on large-size pouch Libs from a dismantled first-generation Nissan Leaf retired battery pack was presented, cycled with different accelerated ageing cycling procedures [22]; a charging method using multi-stage constant current was proposed and the charging time, charging capacity, and temperature increase in the battery were optimized by multi-objective particle swarm optimization algorithm [23]; the MPPT (Maximum Power Point) algorithm was applied to the charging control system and the voltage energy consumption of the charging circuit was precisely controlled [24].
The research on the application of blockchain technology were as follows: A research on the sharing platform strategy of electric vehicle charging piles based on blockchain was At present, the research on electric vehicle charging infrastructure mainly focus on the charging piles.The research on modeling design of charging pile were as follows: Pro/E (Professional Engineer), CAD (Computer Aided Design), and 3Ds max software were used to complete the modeling design of a new type of charging pile [18]; modeling design of curved surface shell coated with nano paint and modeling design of square surface shell coated with traditional paint were conducted [19].The research on the application test of charging pile were as follows: According to the application requirements of mobile charging piles, CATIA (Computer-Aided Three-Dimensional Interactive Application) software was used to model the structure, of which strength and reliability were analyzed under four load conditions [20]; a simulation testing platform for charging pile control system based on semi-physical simulation technology was developed [21].The research on charging technology were as follows: A combination of diagnosis methodologies applied on largesize pouch Libs from a dismantled first-generation Nissan Leaf retired battery pack was presented, cycled with different accelerated ageing cycling procedures [22]; a charging method using multi-stage constant current was proposed and the charging time, charging capacity, and temperature increase in the battery were optimized by multi-objective particle swarm optimization algorithm [23]; the MPPT (Maximum Power Point) algorithm was applied to the charging control system and the voltage energy consumption of the charging circuit was precisely controlled [24].
The research on the application of blockchain technology were as follows: A research on the sharing platform strategy of electric vehicle charging piles based on blockchain was proposed [25]; an energy blockchain-based secure PCP (Private Charging Pile) sharing scheme for PCP sharing networks was proposed [26].The research on residential and public charging management were as follows: The waiting time optimization as a fuzzy integer linear programming problem was formulated, a novel heuristic fuzzy inference system-based algorithm that resolves the objective function was proposed, and the waiting time of EVs at public was minimized [27]; based on fuzzy data fusion concerning the economic and power layers, a two-layer decentralized charging approach was presented for optimizing the charging cost of residential electric vehicles [28].The research on battery recycling technology were as follows: An integrated vehicle identification number (VIN) code, the standard of combining battery code and tracking code were proposed and applied to a case study [29]; in order to systematically explain the pretreatment process, leaching process, chemical purification process, and industrial applications, the study [30] conducted a comprehensive review on existing methods, key issues, and technical challenges in the field of SLIBs recycling.However, the above research have not involved the server design of the charging pile management platform.The functions that users inquire about the appointment of charging pile through App and recharge their account with mobile phone have not been developed, nor the function of charging pile equipment management by using the current cloud computing and big data technology.
The Internet of Things realizes the digitization of the physical world.Based on internet architecture, and combined with communication technology and sensing technology, it can realize real-time network sharing of item information.Because energy storage technology has the functions of shaving peaks and filling valleys, smoothing loads, and improving power grid characteristics, it can effectively solve the above difficulties faced by traditional charging piles [31].
In view of the above situation, in the Section 2 of this paper, energy storage technology is applied to the design of a new type charging pile that integrates charging, discharging, and storage.Based on current functional and performance requirements analysis, combined with the research on new technologies such as the Internet of Things [32][33][34][35], cloud computing [36,37], embedded systems [38], mobile Internet and big data, some new design and construction methods of the energy storage charging pile management system for EV are explored in the Sections 3 and 4, so as to make it have a certain commercial value and provide an effective way for charging pile infrastructure construction and new smart city construction.

Design of Energy Storage Charging Pile Equipment
The main function of the control device of the energy storage charging pile is to facilitate the user to charge the electric vehicle and to charge the energy storage battery as far as possible when the electricity price is at the valley period.In this section, the energy storage charging pile device is designed as a whole.Then the charging and discharging modes in peak and valley periods are studied and proposed.Finally, the charge control guidance module is simulated.

Overall Design
In order to provide users with personalized charging services, this paper plans to design a user experience friendly charging pile device based on "Internet+" with the help of 5G Internet of Things, embedded, cloud computing, GIS (Geographic Information System), and other technologies.This device wirelessly sends the collected charging pile status information, vehicle battery pack information, charging parameters information and driving conditions information (speed, road slope, road roughness, etc.) to the 5G base station through the 5G mMTC module, and then the base station forwards the information to the cloud platform management system through the core network.According to the charging mode selected by the user, it can control the charging power supply switch intelligently.The battery pack data of the vehicle are collected in real time during the charging process and sent to the cloud service platform, which is convenient for the server to analyze big data, unified management, and reduce the operation and maintenance cost of the system.Energy storage charging pile equipment is mainly responsible for the interaction with users, cloud service platform, electric vehicle management system, and other modules, as shown in Figure 2.
In the energy storage charging pile equipment, the software part is the core module to realize the related functions of the charging pile.Due to the advantages of the Android system [39], such as beautiful and generous interface, good user experience, easy and efficient development, powerful multimedia capabilities, and targeted advertising can be played in idle time or during the charging process to bring additional benefits, the operating system of the energy storage charging pile equipment is planned to use the Android system.For Android system, energy storage charging pile equipment adopts S5P4418 solution in hardware which manufactured by Shenzhen Youjian Hengtian Technology Co., Ltd., Shenzhen, China.
Processes 2023, 11, x FOR PEER REVIEW 4 of 16 the system.Energy storage charging pile equipment is mainly responsible for the interaction with users, cloud service platform, electric vehicle management system, and other modules, as shown in Figure 2. In the energy storage charging pile equipment, the software part is the core module to realize the related functions of the charging pile.Due to the advantages of the Android system [39], such as beautiful and generous interface, good user experience, easy and efficient development, powerful multimedia capabilities, and targeted advertising can be played in idle time or during the charging process to bring additional benefits, the operating system of the energy storage charging pile equipment is planned to use the Android system.For Android system, energy storage charging pile equipment adopts S5P4418 solution in hardware which manufactured by Shenzhen Youjian Hengtian Technology Co., LTD, Shenzhen, China.
In this paper, a high-performance energy storage battery is added on the basis of the traditional charging pile.Based on this, a new design scheme of the energy storage charging pile system is proposed [40][41][42].The main design specifications are shown in Table 1.Although the production cost of lithium battery is high, it has more superior energy storage, charging performance, safety, stability, environmental protection, and other properties [29,30], so lithium metal is selected as the battery material in this design.Figure 3 shows the system structure diagram.The new energy storage charging pile system for EV is mainly composed of two parts: a power regulation system [43] and a In this paper, a high-performance energy storage battery is added on the basis of the traditional charging pile.Based on this, a new design scheme of the energy storage charging pile system is proposed [40][41][42].The main design specifications are shown in Table 1.Although the production cost of lithium battery is high, it has more superior energy storage, charging performance, safety, stability, environmental protection, and other properties [29,30], so lithium metal is selected as the battery material in this design.Figure 3 shows the system structure diagram.The new energy storage charging pile system for EV is mainly composed of two parts: a power regulation system [43] and a charge and discharge control system.The power regulation system is the energy transmission link between the power grid, the energy storage battery pack, and the battery pack of the EV.Through the PWM (Pulse Width Modulation) rectifier, the bidirectional transmission of electric energy is realized between the AC grid and the DC bus.DSPTMS320F28335, which manufactured by Texas Instruments, Dallas, TX, USA, is used as the core of charge and discharge control system, mainly including sampling system, drive system, humancomputer interaction system, protection unit, PWM unit, metering unit, power management unit, battery balance unit, switch control unit, etc.The sampling system is used for current and voltage sampling.By comparing with the set value, the three-phase PWM rectifier and DC/DC converter are controlled to ensure the stable operation of the system.When the power grid requires feedback energy from charging pile energy storage system or an EV needs to be charged, the battery SOC is estimated to determine whether the margin of the energy storage system can support the operation.Because the charging pile needs to switch the circuit in time after adding the energy storage function, a switch control unit is added.
DSPTMS320F28335, which manufactured by Texas Instruments, Dallas, TX, USA, is used as the core of charge and discharge control system, mainly including sampling system, drive system, human-computer interaction system, protection unit, PWM unit, metering unit, power management unit, battery balance unit, switch control unit, etc.The sampling system is used for current and voltage sampling.By comparing with the set value, the three-phase PWM rectifier and DC/DC converter are controlled to ensure the stable operation of the system.When the power grid requires feedback energy from charging pile energy storage system or an EV needs to be charged, the battery SOC is estimated to determine whether the margin of the energy storage system can support the operation.Because the charging pile needs to switch the circuit in time after adding the energy storage function, a switch control unit is added.

Charge and Discharge Modes
There are four charging modes available for users to choose from: charging by time, charging by amount, automatic charging, and charging by appointment.When charging by time, first the charging cutoff time should be set, the current smart meter value needs to be read, and the charging control module should be opened for charging.When the time is up, the smart meter value is read again to calculate the amount of electricity consumed by the user which is sent to the cloud service platform.Then the server calculates the consumption amount according to the current electricity price and the electricity consumption received and deducts the account.After that, the bill is returned to the charging pile while the charging end notification is pushed to the mobile client.Finally, the charging pile will display the user's bill on the screen after receiving it.When charging by amount, first the user selects the amount of charge.At this time, the charging pile requests the current user's account balance from the server.If the balance is insufficient, the reason for the charging failure will be prompted.Otherwise, the charging pile requests the latest electricity price from the server and calculates the corresponding rechargeable quantity.Then, the ammeter value is obtained from the smart meter and the value at the end of charging is calculated before charging.The latest value is read from the smart meter every second during the charging process.If the value reaches the charging cutoff value, the charging will be stopped, the cost will be deducted from the cloud, and the user's bill will

Charge and Discharge Modes
There are four charging modes available for users to choose from: charging by time, charging by amount, automatic charging, and charging by appointment.When charging by time, first the charging cutoff time should be set, the current smart meter value needs to be read, and the charging control module should be opened for charging.When the time is up, the smart meter value is read again to calculate the amount of electricity consumed by the user which is sent to the cloud service platform.Then the server calculates the consumption amount according to the current electricity price and the electricity consumption received and deducts the account.After that, the bill is returned to the charging pile while the charging end notification is pushed to the mobile client.Finally, the charging pile will display the user's bill on the screen after receiving it.When charging by amount, first the user selects the amount of charge.At this time, the charging pile requests the current user's account balance from the server.If the balance is insufficient, the reason for the charging failure will be prompted.Otherwise, the charging pile requests the latest electricity price from the server and calculates the corresponding rechargeable quantity.Then, the ammeter value is obtained from the smart meter and the value at the end of charging is calculated before charging.The latest value is read from the smart meter every second during the charging process.If the value reaches the charging cutoff value, the charging will be stopped, the cost will be deducted from the cloud, and the user's bill will be obtained and displayed.Finally, the server pushes a message indicating the end of charging to the user.
The charging and discharging mode during the peak and valley period is shown in Figure 4.When there is a charging demand and the charging demand Pc is greater than the mains capacity Pm, the mains energy storage is combined to supply power.When the charging demand is not greater than the mains capacity, then judge whether it is the electricity price valley period, if it is, it will be powered by the mains, otherwise, it will be powered by the energy storage battery.When there is no charging demand and it is in the valley period, the energy storage battery will be charged, and the charging pile will be on standby during the peak period.
the mains capacity Pm, the mains energy storage is combined to supply power.When charging demand is not greater than the mains capacity, then judge whether it is the e tricity price valley period, if it is, it will be powered by the mains, otherwise, it wi powered by the energy storage battery.When there is no charging demand and it is in valley period, the energy storage battery will be charged, and the charging pile will b standby during the peak period.

Simulation of Charge Control Guidance Module
Control guidance signal is used for communication between charging pile and v cle charger, and the output control guidance signal of charging pile is mainly PWM sig The control guidance module determines the action time sequence during the connec of the charging pile and realizes the on-off of the high-voltage power supply circui cording to the peak value of the control guidance signal.The detection point is locate the side circuit of the power supply control device.The charging pile determines whe the power supply interface is fully connected with the charging pile by detecting the v age of the detection point.Multisim software was used to build an EV charging mo and the process of output and detection of control guidance signal were simulated verified.In the simulation, the output current of the charging pile was set as 16 A, output frequency was 1000 Hz, and the corresponding PWM signal duty ratio was 24 Figure 5 shows the output curve of PWM signal.As can be seen from this figure duty cycle meets the pre-set requirements, the response time is short and the output cu is smooth.Therefore, it can provide enough output power to meet the design and requirements of the energy-storage charging pile.

Simulation of Charge Control Guidance Module
Control guidance signal is used for communication between charging pile and vehicle charger, and the output control guidance signal of charging pile is mainly PWM signal.The control guidance module determines the action time sequence during the connection of the charging pile and realizes the on-off of the high-voltage power supply circuit according to the peak value of the control guidance signal.The detection point is located in the side circuit of the power supply control device.The charging pile determines whether the power supply interface is fully connected with the charging pile by detecting the voltage of the detection point.Multisim software was used to build an EV charging model, and the process of output and detection of control guidance signal were simulated and verified.In the simulation, the output current of the charging pile was set as 16 A, the output frequency was 1000 Hz, and the corresponding PWM signal duty ratio was 24%.
Figure 5 shows the output curve of PWM signal.As can be seen from this figure, the duty cycle meets the pre-set requirements, the response time is short and the output curve is smooth.Therefore, it can provide enough output power to meet the design and use requirements of the energy-storage charging pile.
Figure 6 shows the change curve of the control guidance signal at the detection point of the power supply end.When the charging pile is not completely connected to the electric vehicle, the voltage signal at the detection point is DC 12 V.When the charging pile is fully connected to the electric vehicle, due to the voltage division of the resistance in the vehicle control device, the DC signal drops to 9 V and the relay at the power supply end switches to the PWM signal end.At this time, the forward peak of PWM signal detected at the detection point is 9 V.When the vehicle control device receives PWM signal, the peak voltage at the detection point is 6 V.When a charging completion signal is detected at the vehicle control device, the peak voltage at the detection point returns to 9 V.The voltage at the detection point returns to the initial DC state of 12 V after pulling out the charging gun.The output of CP signal is stable in the voltage switching process.The simulation results show that the control guidance circuit can meet the requirements of the charging pile.Figure 6 shows the change curve of the control guidance signal at the dete of the power supply end.When the charging pile is not completely connected tric vehicle, the voltage signal at the detection point is DC 12 V.When the char fully connected to the electric vehicle, due to the voltage division of the resis vehicle control device, the DC signal drops to 9 V and the relay at the power switches to the PWM signal end.At this time, the forward peak of PWM sign at the detection point is 9 V.When the vehicle control device receives PWM peak voltage at the detection point is 6 V.When a charging completion signal at the vehicle control device, the peak voltage at the detection point returns voltage at the detection point returns to the initial DC state of 12 V after pull charging gun.The output of CP signal is stable in the voltage switching proce ulation results show that the control guidance circuit can meet the requirem charging pile.Figure 6 shows the change curve of the control guidance signal at the detec of the power supply end.When the charging pile is not completely connected t tric vehicle, the voltage signal at the detection point is DC 12 V.When the charg fully connected to the electric vehicle, due to the voltage division of the resista vehicle control device, the DC signal drops to 9 V and the relay at the power s switches to the PWM signal end.At this time, the forward peak of PWM signa at the detection point is 9 V.When the vehicle control device receives PWM peak voltage at the detection point is 6 V.When a charging completion signal i at the vehicle control device, the peak voltage at the detection point returns t voltage at the detection point returns to the initial DC state of 12 V after pulli charging gun.The output of CP signal is stable in the voltage switching process ulation results show that the control guidance circuit can meet the requireme charging pile.

Requirements Analysis and Overall System Architecture
In this section, the functional and performance requirements of th charging pile management system are analyzed, respectively.Then, on overall design of the charging pile management system, the architecture further studied and designed.

Analysis of System Functional Requirements
User requirements: support users to find and reserve the charging p relevant positioning and navigation information; provide a variety of cha payment methods for users to choose.
Management requirements: support remote operations such as add activating, and unlocking charging pile equipment; support general use in, log out of the system, and query and modify user information; suppo users to perform remote operation, maintenance and control related equipment, as well as manage general users.
Operational requirements: through data monitoring and mining, a and valley time of electricity consumption in different regions, user cha ure occurrence, etc.; count user consumption, advertising value-added, e various benefits.
Through the above analysis of the functional requirements, the o structure of the energy storage charging pile management system is c modules such as charging pile equipment, equipment management, us transaction management, big data analysis, and background managem Table 2.

Requirements Analysis and Overall System Architecture
In this section, the functional and performance requirements of the energy storage charging pile management system are analyzed, respectively.Then, on the basis of the overall design of the charging pile management system, the architecture of this system is further studied and designed.

Analysis of System Functional Requirements
User requirements: support users to find and reserve the charging piles, and provide relevant positioning and navigation information; provide a variety of charging modes and payment methods for users to choose.
Management requirements: support remote operations such as adding, deleting, deactivating, and unlocking charging pile equipment; support general users to register, log in, log out of the system, and query and modify user information; support administrator users to perform remote operation, maintenance and control related to charging pile equipment, as well as manage general users.
Operational requirements: through data monitoring and mining, analyze the peak and valley time of electricity consumption in different regions, user charging habits, failure occurrence, etc.; count user consumption, advertising value-added, etc., and calculate various benefits.
Through the above analysis of the functional requirements, the overall functional structure of the energy storage charging pile management system is constructed from modules such as charging pile equipment, equipment management, user management, transaction management, big data analysis, and background management, as shown in Table 2.

Analysis of System Performance Requirements
Reliability is the basic requirement to ensure the normal operation of the whole energy storage charging pile management system.At the end of energy storage charging pile equipment, the Android system based on Linux is adopted, which has been successfully running on billions of devices without interruption and has good reliability.At the wireless transmission end, compared with GPRS, 5G mMTC has a wider network coverage and 20 dBm gain of signal enhancement, which can more effectively support the communication requirements of the device end and the platform end, especially in underground parking lots and charging pile applications in remote areas.On the cloud service platform, a host and a standby server can be configured for load balancing.Once the host crashes, the standby server can immediately replace the host to provide services.Databases are also equipped with multiple primary and secondary servers.Once data are lost in one database, it can be retrieved from other databases.
For the cloud service platform, there are thousands of charging pile devices and mobile phone clients sending data to the server at any time, so the cloud service platform must be designed to be highly concurrent.For massive mobile end users, this design uses Nginx to realize the load balancing of Web server [44,45].For massive charging pile equipment, this design adopts EMQ push server to achieve high concurrency of push server through cluster mode, and a single point can reach 1.3 million concurrency.
For charging pile equipment, expansibility includes hardware function expansion and software function module expansion.This design uses the X4418 development board as the hardware, which has a number of USB, I2C, SPI, UART, and other interfaces, in order to achieve the expansion of hardware functions.In terms of software, Android system is adopted.Due to the abundant development materials of Android and the powerful development environment Android Studio can be provided by Google, it is easy to realize the software function expansion of the entire Android application.For the server, the continuous increase of service function requirements will lead to the continuous increase of URL interface of the system.Therefore, it is necessary to design reasonable and standard URL interface.
The security of the system mainly involves the uploading of charging pile information, electric vehicle information, user information and other data.In this design, the password data are transmitted after MD5 encryption and hexadecimal encryption.At the same time, different levels of URL interface are used for different uploaded contents.For data requests with high security requirements, security verification is required through the Spring MVC interceptor [46].
The system abstracts the background business logic function of the server side into Web Service that conforms to the Restful standard [47,48].Other developers can easily add designed charging pile equipment by themselves to the existing charging pile system by using related interface services, and use the services provided by the system to manage the corresponding equipment conveniently.
Due to the urgency of transaction processing of energy storage charging pile equipment, the processing time of the system should reach a millisecond level.

Overall Design of the System
The energy storage charging pile management system for EV is divided into three modules: energy storage charging pile equipment, cloud service platform, and mobile client.The overall design of the system is shown in Figure 8.On the one hand, the energy storage charging pile interacts with the battery management system through the CAN bus to manage the whole process of charging.On the other hand, it connects to the cloud service platform through the Internet of Things, and reports its operating status data (such as charging voltage, current, temperature, humidity, etc.) and EV information, battery information, user information, and driving conditions to the cloud service platform in real time.At the same time, it is maintained and managed remotely by the cloud service platform, such as reservation and suspension of service, etc.The user's charging electricity bill is accurately measured, and the transaction data are sent to the cloud service platform for deduction.In addition, new profit models are explored, such as precise advertising on energy storage charging piles, to obtain value-added income.
add designed charging pile equipment by themselves to the existing chargin by using related interface services, and use the services provided by the syst the corresponding equipment conveniently.
Due to the urgency of transaction processing of energy storage chargin ment, the processing time of the system should reach a millisecond level.

Overall Design of the System
The energy storage charging pile management system for EV is divid modules: energy storage charging pile equipment, cloud service platform, a ent.The overall design of the system is shown in Figure 8.On the one han storage charging pile interacts with the battery management system through to manage the whole process of charging.On the other hand, it connects to vice platform through the Internet of Things, and reports its operating stat as charging voltage, current, temperature, humidity, etc.,) and EV inform information, user information, and driving conditions to the cloud service p time.At the same time, it is maintained and managed remotely by the cloud form, such as reservation and suspension of service, etc.The user's charging is accurately measured, and the transaction data are sent to the cloud servic deduction.In addition, new profit models are explored, such as precise a energy storage charging piles, to obtain value-added income.

System Architecture Design
Based on the Internet of Things technology, the energy storage charg agement system is designed as a three-layer structure, and its system a shown in Figure 9.The perception layer is energy storage charging pile eq data collected by the charging pile mainly include the ambient temperature a GPS information of the location of the charging pile, charging voltage and information, vehicle battery information, and driving conditions [49].The is the Internet, the mobile Internet, and the Internet of Things.The applicati cloud service platform that needs to be implemented, and the correspond include device management and control, user management, transaction ma der management, and big data analysis, etc.

System Architecture Design
Based on the Internet of Things technology, the energy storage charging pile management system is designed as a three-layer structure, and its system architecture is shown in Figure 9.The perception layer is energy storage charging pile equipment.The data collected by the charging pile mainly include the ambient temperature and humidity, GPS information of the location of the charging pile, charging voltage and current, user information, vehicle battery information, and driving conditions [49].The network layer is the Internet, the mobile Internet, and the Internet of Things.The application layer is the cloud service platform that needs to be implemented, and the corresponding functions include device management and control, user management, transaction management, order management, and big data analysis, etc.

Cloud Service Platform Design
In this section, the overall framework of the cloud service platform is designed and given, then the system database is designed in detail and the charging habit is analyzed.

Overall Design
The cloud service platform consists of cloud server, mobile terminal, and Web client.The cloud server is responsible for parsing the messages sent by the energy storage charging pile devices, completing data cleaning, processing, and storage, and transmitting them to the mobile and Web clients to be called.The user can control the energy storage charging pile device through the mobile terminal and the Web client, and the instructions are sent to the energy storage charging pile device via the NB network.
The cloud server provides services for three types of clients.The first entrance is for energy storage charging pile equipment; through this entrance, charging pile equipment can submit user transaction data and its operation data, and at the same time receive lock, reservation, and other commands from the server.The second entrance is for the mobile client of the mobile phone; the mobile client can perform operations such as registration, login, account recharge, query of nearby charging piles, and charging pile reservation through this entrance.The third entrance is for the background administrator; after logging in, the administrator can view the operation of all current charging pile devices, manage charging piles, publish electricity prices, manage users, and view transaction data.
Combined with cloud computing technology, the infrastructure contained in the system is abstracted into a cloud service platform (PaaS service) to provide an operating environment for the application layer of the system.Each module of the application layer can provide external services through the HTTP protocol.The cloud service platform intends to use cloud services from Tencent Cloud's, mainly constructed with domain-driven design (DDD), micro-service architecture, big data platform, MySQL database (specifically, framework technologies such as Spring, Spring Cloud and MyBatis) [50,51].Moreover, the embedded Tomcat is used as a Web server, and EMQ is used as a push server, which has perfect functions, large concurrency, and good stability.

Cloud Service Platform Design
In this section, the overall framework of the cloud service platform is designed and given, then the system database is designed in detail and the charging habit is analyzed.

Overall Design
The cloud service platform consists of cloud server, mobile terminal, and Web client.The cloud server is responsible for parsing the messages sent by the energy storage charging pile devices, completing data cleaning, processing, and storage, and transmitting them to the mobile and Web clients to be called.The user can control the energy storage charging pile device through the mobile terminal and the Web client, and the instructions are sent to the energy storage charging pile device via the NB network.
The cloud server provides services for three types of clients.The first entrance is for energy storage charging pile equipment; through this entrance, charging pile equipment can submit user transaction data and its operation data, and at the same time receive lock, reservation, and other commands from the server.The second entrance is for the mobile client of the mobile phone; the mobile client can perform operations such as registration, login, account recharge, query of nearby charging piles, and charging pile reservation through this entrance.The third entrance is for the background administrator; after logging in, the administrator can view the operation of all current charging pile devices, manage charging piles, publish electricity prices, manage users, and view transaction data.
Combined with cloud computing technology, the infrastructure contained in the system is abstracted into a cloud service platform (PaaS service) to provide an operating environment for the application layer of the system.Each module of the application layer can provide external services through the HTTP protocol.The cloud service platform intends to use cloud services from Tencent Cloud's, mainly constructed with domain-driven design (DDD), micro-service architecture, big data platform, MySQL database (specifically, framework technologies such as Spring, Spring Cloud and MyBatis) [50,51].Moreover, the embedded Tomcat is used as a Web server, and EMQ is used as a push server, which has perfect functions, large concurrency, and good stability.
On the one hand, for security reasons, firewalls need to be set up to block some attacks.Due to a large number of energy storage charging pile devices and mobile clients to access the cloud service platform, considering high concurrency, Nginx is proposed to allocate the received requests to appropriate App (application) servers to achieve load balancing.Each App server runs the same Web application to share client requests and improve the stability of the cloud service platform.On the other hand, the App server needs load balancing to access the database server.Considering the large number of read and write requests to the database, the number of read requests is much greater than the number of write requests, so multiple database servers are required.One database server host is used for writing, and the remaining database slaves are kept in sync with the master database and are used for reading.The data to be processed will be imported to the Hadoop HDFS for big data processing.

System Database Design
The database table of the user management module is shown in Table 3, which mainly includes detailed personal information of users.The equipment database table of the equipment management module is shown in Table 4, which mainly contains the detailed information of charging pile equipment.The order database table of the order management module is shown in Table 5, which mainly contains the detailed information of the order content.

Analysis of Charging Habits
K-Means clustering analysis method is used to analyze the charging cycle and centralized charging period of users of different ages and genders.The K-Means algorithm is a distance-based non-hierarchical clustering algorithm.On the basis of the minimum error function, the data is divided into a predetermined class number K. Then the distance is adopted as the similarity evaluation index.That is, the closer the distance between two objects, the greater the similarity.The similarity between samples is measured by Euclidean distance.
The objective function is as follows: where K is the number of clusters, E is the ith cluster, x is the object sample, and e i is the clustering center of cluster E i .The algorithm process is as follows: (1) K objects are randomly selected from N sample data as clustering centers.
(2) The distances between each sample and each cluster center are calculated, respectively, and the objects are assigned to the nearest cluster.(3) After all objects are allocated, the centers of K clusters are recalculated.(4) Compared with the K clustering centers obtained by the previous calculation, if the clustering centers change, go to (2); otherwise, go to (5). ( 5) When the center of mass no longer changes, the clustering results are obtained.

Conclusions and Discussions
First, a new energy storage charging pile device with optimized charge-discharge characteristics is designed while the simulation of charge control guidance module is conducted in this paper.Second, the Internet of Things technology is innovatively applied to the design of electric vehicle charging pile management system, and the demand analysis and overall architecture analysis of this system are carried out.Finally, a new cloud service platform is designed and the method of habitual analysis of user charging is proposed.
The simulation results in this paper show that: (1) Enough output power can be provided to meet the design and use requirements of the energy-storage charging pile; (2) the control guidance circuit can meet the requirements of the charging pile; (3) during the switching process of charging pile connection state, the voltage state changes smoothly.Functions such as energy storage, user management, equipment management, transaction management, and big data analysis can be realized on this system.This new design scheme has important application value in urban commercial complexes, parking lots, and other places with limited distribution capacity and can provide an effective way and technical reference for the large-scale construction of charging piles.
In addition, some suggestions for future research are as follows: (1) The hardware and software structure of the storage charging pile device and the functional modules of the cloud service platform should be further designed in detail.(2) For charging pile equipment, video monitoring module can be added to monitor and record user operations and surrounding environment.(3) It is better to conduct cost-benefit analysis and study data related to the mains grid and its ability to withstand the power requirements in detail.(4) In order to give users a better experience and increase the operating income, the service provided by the map service provider can be used to display the charging pile on the map, and the navigation route can be given for the selected charging pile.

Figure 2 .
Figure 2. Interaction diagram of energy storage charging pile equipment.

Figure 2 .
Figure 2. Interaction diagram of energy storage charging pile equipment.

Figure 4 .
Figure 4. Charge and discharge mode during peak and valley period.

Figure 4 .
Figure 4. Charge and discharge mode during peak and valley period.

Figure 7
Figure 7 shows the peak voltage change curve collected after voltage division at the detection point in a charging cycle.During the charging process, PWM signals are converted into relatively gentle DC signals.During the switching process of charging pile connection state, the voltage state changes smoothly.

Figure 7
Figure 7 shows the peak voltage change curve collected after voltag detection point in a charging cycle.During the charging process, PWM verted into relatively gentle DC signals.During the switching process connection state, the voltage state changes smoothly.

Figure 7 .
Figure 7. peak voltage change curve at detection point.

Figure 7 .
Figure 7. Peak voltage change curve at detection point.

Figure 9 .
Figure 9. Architecture of charging pile management system.

Figure 9 .
Figure 9. Architecture of charging pile management system.

Table 1 .
The design specifications of the system.

Table 1 .
The design specifications of the system.

Table 2 .
Overall functional structure of the system.

Table 3 .
User database table design.

Table 4 .
Device database table design.

Table 5 .
Order database table design.