CN109284092B - Software implementation method of direct current charging pile monitoring system - Google Patents

Software implementation method of direct current charging pile monitoring system Download PDF

Info

Publication number
CN109284092B
CN109284092B CN201811105007.4A CN201811105007A CN109284092B CN 109284092 B CN109284092 B CN 109284092B CN 201811105007 A CN201811105007 A CN 201811105007A CN 109284092 B CN109284092 B CN 109284092B
Authority
CN
China
Prior art keywords
state
charging
state machine
module
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811105007.4A
Other languages
Chinese (zh)
Other versions
CN109284092A (en
Inventor
刘树通
李圣
单冠华
莫文威
薛铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Electrical Engineering & Equipment Group Xinneng Technology Co ltd
Original Assignee
Shandong Electrical Engineering & Equipment Group Xinneng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Electrical Engineering & Equipment Group Xinneng Technology Co ltd filed Critical Shandong Electrical Engineering & Equipment Group Xinneng Technology Co ltd
Priority to CN201811105007.4A priority Critical patent/CN109284092B/en
Publication of CN109284092A publication Critical patent/CN109284092A/en
Application granted granted Critical
Publication of CN109284092B publication Critical patent/CN109284092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The invention relates to a software implementation method of a direct current charging pile monitoring system, which is characterized in that a main state machine is set for the direct current charging pile monitoring system to carry out scheduling, certain complex large working states in the main state machine are nested into small state machines, overtime processing is added to each working state under each small state machine, certain common working states under each large working state are found out to be used as common migration calling states under the main state machine, each working state is migrated according to set migration conditions, when each communication function module is involved in the scheduling process of the main state machine, the main state machine adopts an information interaction mechanism to carry out scheduling, different information interaction marks are set, and a non-blocking receiving and sending processing mode is adopted for the implementation of a bottom layer communication driving module. The invention can meet the real-time requirement of complex logic control and multitask parallel operation, can meet the program real-time requirement when the communication modules are excessive, and has the advantages of easy expansion of the communication function modules, strong program logic readability and easy upgrade and maintenance.

Description

Software implementation method of direct current charging pile monitoring system
Technical Field
The invention relates to the technical field of charging piles, in particular to a software implementation method of a direct current charging pile monitoring system.
Background
At present, direct current charging pile monitoring system software mainly comprises modules such as CAN communication with a BMS, CAN communication with a charging unit, CAN communication with a charging module, 485 communication with an insulation monitoring module, 485 communication with a debugging touch screen, serial port communication with upper computer software, input/output IO control and analog quantity acquisition, and has the defects of more functional modules, complicated communication interaction and more complex logic control. The traditional direct current charging pile monitoring system software implementation mode mainly adopts sequential scheduling, divides each functional module and sequentially executes each functional module. Some optimized traditional software adopts front/background program scheduling, and some emergency tasks are put into interruption for processing, although the requirement of task real-time performance is improved to a certain extent, the functional modules of the two modes are simpler, and the method is more applicable under the condition of low requirement of task real-time performance. When the situations of more monitoring software functional modules, complicated communication interaction and more complex logic control of the direct current charging pile are faced, the traditional software implementation method cannot meet the requirements of complex logic control, reduced program real-time performance and difficult expansion of communication functional modules caused by excessive communication modules; meanwhile, the problems of poor program logic readability, disordered program logic structure and difficulty in upgrading and maintaining the program are caused by too many flag bits.
Therefore, traditional direct current fills electric pile monitored control system can increase developer's the degree of difficulty, simultaneously, along with the continuous upgrading of product, the later stage increases and changes logic control state, when increasing communication function module, traditional direct current fills electric pile monitored control system software and undoubtedly brings the degree of difficulty for developer's software upgrading, maintenance work, leads to logical structure chaotic program more chaotic, need redesign program architecture even, makes product competitiveness worsen simultaneously.
Disclosure of Invention
In order to solve the technical problems, the invention provides a software implementation method of a direct current charging pile monitoring system, which is characterized in that a main state machine is set for the direct current charging pile monitoring system for scheduling, and a large state machine is nested in a small state machine in some complex working states in the main state machine; when the master state machine scheduling relates to each communication function module, an information interaction mechanism is adopted, and different information interaction marks are set; the implementation of the bottom layer communication driving module adopts a non-blocking receiving and transmitting processing mode. The technical scheme adopted by the invention is as follows:
a software implementation method of a direct current charging pile monitoring system comprises the following steps:
step 1, setting a main state machine for a direct current charging pile monitoring system to carry out scheduling, and dividing the main state machine into different working states, namely large working states;
step 2, nesting small state machines for some complex large working states in a main state machine, and adding overtime processing to each working state under each small state machine;
step 3, finding out certain common working states in each large working state as common migration calling states in the main state machine, so that program redundancy can be reduced;
step 4, transferring between each working state according to a set transferring condition, and transferring to another working state;
step 5, when each communication function module is involved in the scheduling process of the main state machine, the main state machine adopts an information interaction mechanism for scheduling, and different information interaction marks are set; the information interaction of the communication function module is finished by the bottom layer communication driving module, and the realization of the bottom layer communication driving module adopts a non-blocking receiving and transmitting processing mode.
Particularly, the data is sent and received in a non-blocking processing mode, so that the parallel operation of multiple communication tasks can be ensured, the expandability of the functional modules of the program is easy to realize, the reduction of the real-time performance of the program caused by excessive communication modules is avoided, and the problem that the communication functional modules are difficult to expand can be effectively solved
Preferably, the specific method for dividing the main state machine into different working states in step 1 is as follows:
under normal conditions, the working state of the main state machine is divided into: s1 standby state, S2 charging gun insertion electric vehicle state detection, S3 waiting for starting charging state, S4 electronic lock closing and detecting whether ready state exists, S5 auxiliary power supply closing state, S6 sending handshake message and waiting vehicle handshake message state, S7 detecting direct current relay closing state, S8 insulation monitoring and waiting for insulation monitoring completion state, S9 sending identification message state, S10 charging parameter configuration state, S11 charging module pre-charging and waiting ready state, S12 charging starting state and fault monitoring state, S13 sending charging stopping command and charging module stopping output state, S14 auxiliary power supply closing state and electronic lock opening state;
under abnormal conditions, the working state of the main state machine is divided into: a Y1 fault stop charging state, a Y2 communication timeout stop state, a Y3 communication interrupt stop state, a Y4 communication fault state at the end of charging.
Preferably, the specific method for nesting small state machines for some complex working states in the main state machine in step 2 is as follows:
the small state machine of the nested insulation monitoring process under the S8 state, the small state machine of the nested pre-charging under the S11 state and the small state machine of the nested charging module output stop under the S13 state.
Preferably, the working state of the small state machine in the insulation monitoring process is divided into: the method comprises the following steps of J1 insulation monitoring circuit opening state, J2 charger DC relay closing state, J3 voltage output state for insulation checking, J4 insulation monitoring state, J5 bleeder circuit switching state, J6 insulation monitoring completion and charger DC relay opening state;
the working state of the small precharge state machine is divided into: the detection state of the voltage at the outer side of the direct-current relay of the P1 charger, the adjustment state of the output voltage of the P2 charger and the adjustment to the pre-charging voltage, and the closing state of the direct-current relay of the P3 charger;
the working state of the small state machine for stopping the output of the charging module is divided into: the O1 charging module is in a shutdown state, the O2 detects that the output current is less than 5A, the direct current output relay is in an off state, and the O3 discharging circuit is in an on state.
Preferably, the predetermined migration conditions of step 4 include:
normal operating state transition conditions of the master state machine: the method comprises the following steps of automatically jumping, inserting a charging gun into a vehicle, starting a charging command, closing an electronic lock and being ready, receiving a vehicle handshake message, closing a direct current relay, completing insulation monitoring, receiving a charging parameter message, receiving a vehicle ready message, pre-charging ready and a charging end command;
abnormal state transition conditions of the master state machine: charging faults are detected, automatic skipping, faults when charging is finished, communication overtime and communication interruption are detected.
According to the working state transition flow, the logic architecture of the whole program can be clearly written in the program. The program is not only convenient to maintain, but also is easy to modify when the logic of the program needs to be modified and expanded later. After the modification is carried out on the basis of the original state migration flow, the logic framework of the program is clearly visible, and a series of problems brought by the follow-up process are avoided. Meanwhile, the problems that the traditional software cannot meet complex logic control, and program logic readability is poor, a program logic structure is disordered, and a program is not easy to upgrade and maintain due to the fact that flag bits are arranged on a traditional software implementation method too much are solved.
Preferably, the specific method for implementing the non-blocking transceiving processing by the bottom layer communication driver in step 5 is as follows:
defining a sending buffer area and a receiving buffer area, setting a reading and writing pointer of the sending buffer area in a pointer mode when the sending buffer area is accessed, loading data to be sent to the sending buffer area through the writing pointer of the sending buffer area, and searching the data to be sent in the sending buffer area through the reading pointer of the sending buffer area; when receiving data, the received data is loaded to the receiving buffer area through the received data write pointer in the interrupt, and then the received data read pointer adopts a state machine processing mode in the main program for processing.
Preferably, the bottom layer communication driver module adopts the following steps of sending data in a non-blocking mode:
s-1, starting a main scheduling process of a main state machine, and filling an upper layer module of the main state machine into a buffer area;
s-2, judging whether the sending buffer area has data or not, and if not, turning to the step S-1; if yes, turning to the next step;
s-3, judging whether the register sending mark is effective, and if not, turning to the step S-1; if yes, turning to the next step;
s-4, sending register data delivery and turning to the step S-1.
Preferably, the steps of the bottom layer communication driver module receiving data in a non-blocking manner are as follows:
a-1, starting a main scheduling process of a main state machine;
a-2, judging whether the buffer area of the receiving register has data, if not, turning to the step A-1; if yes, turning to the next step;
a-3, fetching the message from the receiving register and delivering the buffer area, simultaneously processing the buffer area by an upper layer module of the main state machine, and turning to the step A-1.
Preferably, the information interaction flag in step 5 relates to a charging unit, a dc charging module, an insulation monitoring module, and a touch screen debugging module.
The invention has the beneficial effects that:
1) the method adopts the state machine to determine a main scheduling program, and the working state of the program is represented by state register, so that the real-time requirements of complex logic control and multi-task parallel operation of a direct current charging pile monitoring system can be met;
2) the invention can meet the program real-time requirement when the communication modules in the direct current charging pile monitoring system are excessive, and the communication function modules are easy to expand;
3) the invention has the advantages of strong readability of the program logic, clear program logic structure and easy upgrading and maintenance of the program.
Drawings
Fig. 1 is a functional architecture diagram of a conventional dc charging pile monitoring system;
FIG. 2 is a schematic diagram of operating state transitions in a main state machine;
FIG. 3 is a schematic diagram of the transition of the working state of the insulation monitoring small state machine;
FIG. 4 is a schematic diagram of the operational state transitions of a pre-charge small state machine;
FIG. 5 is a schematic diagram of the transition of the operating state of the charging module output stop small state machine;
FIG. 6 is a schematic diagram of a process in which an underlying communication driver transmits data in a non-blocking manner;
fig. 7 is a schematic diagram of a process of receiving data in a non-blocking manner by an underlying communication driver.
Detailed Description
In order to make the technical scheme and advantages of the invention more clearly understood, the invention is further described in detail below with reference to the accompanying drawings. Fig. 1 is a schematic diagram of a functional architecture of a conventional dc charging pile monitoring system. The direct current charging pile monitoring system mainly comprises CAN communication between a monitoring system and a BMS, CAN communication between the monitoring system and a charging unit, CAN communication between the monitoring system and a charging module, 485 communication between the monitoring system and an insulation monitoring module, 485 communication between the monitoring system and a debugging touch screen, serial port communication between the monitoring system and upper computer software, input/output IO control of the monitoring system and a monitoring system analog quantity acquisition module.
The CAN communication protocol between the monitoring system and the BMS meets GB27930-2015 communication protocol between the non-vehicle-mounted conductive charger and the battery management system of the electric vehicle; the monitoring system and the charging unit CAN communication protocol meet the requirements of a charging control unit and charging controller communication protocol V1.1; the CAN communication protocol of the monitoring system and the charging module meets the communication protocol requirements of the current mainstream charging module manufacturers, such as Huashi, Enkeri, Yingfei and the like; the 485 communication protocol between the monitoring system and the insulation monitoring module meets the communication protocol requirements of the current mainstream insulation monitoring module, such as Shanghai Hui Rui, Shanghai titanium Xin and the like; the monitoring system is communicated with a debugging touch screen through 485, and a diwen touch screen is adopted as hardware to self-define a communication protocol; the monitoring system is communicated with a serial port of upper computer software, and the upper computer software adopts a super terminal and self-defines a communication protocol; the monitoring system input/output IO control comprises at least 16 paths of IO output control, 8 paths of IO input remote signaling acquisition, and queue reading and anti-shake processing are adopted in the remote signaling acquisition; the analog quantity acquisition module of the monitoring system comprises at least one path of CC voltage signal acquisition, one path of direct current high voltage acquisition, one path of direct current acquisition and at least 4 paths of analog quantity temperature acquisition, and the analog quantity voltage acquisition adopts a queue reading mode.
Further, still include: and the FLASH stores a fixed value and parameter function module and is used for setting related parameters of the direct current charging pile. The monitoring system is communicated with the three-phase electric meter 485, and the communication protocol meets DLT645-2007 multifunctional electric meter communication protocol.
A software implementation method of a direct current charging pile monitoring system based on the framework comprises the following steps:
step 1, setting a main state machine for the direct current charging pile monitoring system to carry out scheduling, and dividing the main state machine into different working states, namely large working states. Under normal conditions, the working state of the main state machine is divided into: s1 standby state, S2 charging gun insertion electric vehicle state detection, S3 waiting for starting charging state, S4 closing electronic lock and detecting whether ready state, S5 closing auxiliary power state, S6 sending handshake message and waiting vehicle handshake message state, S7 detecting dc relay closing state, S8 insulation monitoring and waiting for insulation monitoring completion state, S9 sending identification message state, S10 configuring charging parameter state, S11 charging module precharging and waiting ready state, S12 starting charging state and fault monitoring state, S13 sending charge suspension command and charging module stop output state, S14 closing auxiliary power and opening electronic lock state. Under abnormal conditions, the working state of the main state machine is divided into: a Y1 fault stop charging state, a Y2 communication timeout stop state, a Y3 communication interrupt stop state, a Y4 communication fault state at the end of charging.
And 2, nesting small state machines for some complex large working states in the main state machine, and adding timeout processing to each working state under each small state machine. The state of S8 includes a small state machine of the insulation monitoring process, the state of S11 includes a small state machine of pre-charging, and the state of S13 includes a small state machine of the output stop of the charging module.
According to the needs, the working state of the small state machine in the insulation monitoring process is divided into: the system comprises a J1 insulation monitoring circuit opening state, a J2 charger DC relay closing state, a J3 insulation checking voltage output state, a J4 insulation monitoring state, a J5 bleeder circuit input state, a J6 insulation monitoring completion state and a charger DC relay opening state. The working state of the small precharge state machine is divided into: the detection state of the voltage at the outer side of the DC relay of the P1 charger, the adjustment state of the output voltage of the P2 charger to the pre-charging voltage and the closing state of the DC relay of the P3 charger. The working state of the small state machine for stopping the output of the charging module is divided into: the O1 charging module is in a shutdown state, the O2 detects that the output current is less than 5A, the direct current output relay is in an off state, and the O3 discharging circuit is in an on state. And adding proper overtime processing to each working state under each small state machine, so as to avoid the program halt caused by overlong waiting time of the working state. Each working state of the main state machine is provided with a CAN communication program for information interaction with the battery management system, the sending period of each message is 50ms, and the timeout time is set to be 3 s.
And 3, finding out certain common working states in each large working state as common migration calling states in the main state machine. For example, some common operating conditions of Y1-Y4, S13 under abnormal conditions and normal conditions are as follows: the X1 charge module ends the charge state and lists this operating state alone as the common migration call state, which may reduce program redundancy.
And 4, migrating each working state according to the established migration condition, and migrating to another working state. The normal working state transition of the main state machine mainly comprises the following conditions: the method comprises the steps of automatically jumping, inserting a charging gun into a vehicle, starting a charging command, closing an electronic lock and being ready, receiving a vehicle handshake message, closing a direct current relay, completing insulation monitoring, receiving a charging parameter message, receiving a vehicle ready message, pre-charging ready and a charging end command. And each state of the main state machine is migrated to another state according to the different migration conditions, and the whole main state machine is used as a main logic framework of the program. The method also comprises abnormal state transition conditions which mainly comprise the following conditions: charging faults are detected, automatic skipping, faults when charging is finished, communication overtime and communication interruption are detected. The abnormal state transition condition is detected in a single state of the main state machine, so that the program framework has a plurality of branches in the main state machine, and the state transition condition required by each branch is as described above, but no matter in the main state machine or the branch, finally, after the whole charging process is finished, the program framework returns to the standby state of S1 again to wait for the start of the next charging. Fig. 2 is a schematic diagram illustrating the transition of the operating state in the main state machine. As shown in fig. 3, it is a schematic diagram of the operating state transition of the small insulation monitoring state machine in the operating state of S8; as shown in fig. 4, it is a schematic diagram of the operation state transition of the precharge small state machine in the operation state of S11; as shown in fig. 5, the operation state transition diagram of the charging module output stop small state machine in the state of S13 is shown.
And 5, when each communication function module is involved in the scheduling process of the main state machine, the main state machine adopts an information interaction mechanism for scheduling and sets different information interaction marks. The main information interaction mark mainly relates to a charging unit, a direct current charging module, an insulation monitoring module and a touch screen debugging module. For example, when the main state machine interacts, a direct current charging module power on/off flag, a voltage and current flag, and the like are set; when the master state machine is scheduled, the charging module is started and shut down, and when parameters such as voltage, current and the like are set, corresponding zone bits are enabled to be processed. Meanwhile, an insulation monitoring module startup and shutdown mark and an insulation state acquisition mark are set, corresponding mark bits are set when the main state machine is dispatched, and other marks are processed by a background.
The charging unit and the touch screen debugging module also adopt similar processing, and the charging unit is mainly used for setting a charging start ending mark, a telemetering information uploading mark and the like; the touch screen is mainly provided with a startup and shutdown mark, a telemetering remote signaling data uploading mark and the like.
In addition, the charging unit, the direct current charging module, the insulation monitoring module and the touch screen debugging module mainly relate to CAN communication, 485 communication and the like. And the information interaction of the communication modules is finished by being sent to the bottom layer communication driving module. The bottom layer communication driver adopts a non-blocking receiving and transmitting processing mode, defines a transmitting buffer area and a receiving buffer area, adopts a pointer mode when the transmitting buffer area is accessed, and sets a reading and writing pointer of the transmitting buffer area. When data is sent, the data to be sent is loaded to a sending buffer area through a writing pointer of the sending buffer area, the data is sent in a non-blocking sending mode at the bottom layer, and when the data is sent, the data to be sent is searched in the sending buffer area through a reading pointer of the sending buffer area, so that all the data loaded in the sending buffer area are sent out; meanwhile, the real-time property and the easy expansibility of communication are ensured. When receiving data, the received data is loaded to a receiving buffer area through a received data write pointer in an interruption process, and then the received data read pointer is processed in a state machine processing mode in a main program, so that the reliability and the real-time performance of the received data are ensured.
As shown in fig. 6, it is a schematic diagram of a process in which a bottom layer communication driver module sends data in a non-blocking manner, and the data sending steps are as follows:
s-1, starting a main scheduling process of a main state machine, and filling an upper layer module of the main state machine into a buffer area;
s-2, judging whether the sending buffer area has data or not, and if not, turning to the step S-1; if yes, turning to the next step;
s-3, judging whether the register sending mark is effective, and if not, turning to the step S-1; if yes, turning to the next step;
s-4, sending register data delivery and turning to the step S-1.
As shown in fig. 7, it is a schematic diagram of a process of receiving data by a bottom layer communication driver module in a non-blocking manner, where the data receiving steps are as follows:
a-1, starting a main scheduling process of a main state machine;
a-2, judging whether the buffer area of the receiving register has data, if not, turning to the step A-1; if yes, turning to the next step;
a-3, fetching the message from the receiving register and delivering the buffer area, simultaneously processing the buffer area by an upper layer module of the main state machine, and turning to the step A-1.
Here, reception or transmission is cyclically performed as long as there is data.

Claims (9)

1. A software implementation method of a direct current charging pile monitoring system is characterized by comprising the following steps:
step 1, setting a main state machine for a direct current charging pile monitoring system to carry out scheduling, and dividing the main state machine into different working states, namely large working states;
step 2, nesting small state machines for some complex large working states in a main state machine, and adding overtime processing to each working state under each small state machine;
step 3, finding out the common working state under each large working state as the common migration calling state under the main state machine;
step 4, transferring between each working state according to a set transferring condition, and transferring to another working state;
step 5, when each communication function module is involved in the scheduling process of the main state machine, the main state machine adopts an information interaction mechanism for scheduling, and different information interaction marks are set; the information interaction of the communication function module is finished by the bottom layer communication driving module, and the realization of the bottom layer communication driving module adopts a non-blocking receiving and transmitting processing mode.
2. The software implementation method of the direct-current charging pile monitoring system according to claim 1, wherein the specific method for dividing the master state machine into different working states in step 1 is as follows:
under normal conditions, the working state of the main state machine is divided into: s1 standby state, S2 charging gun insertion electric vehicle state detection, S3 waiting for starting charging state, S4 electronic lock closing and detecting whether ready state exists, S5 auxiliary power supply closing state, S6 sending handshake message and waiting vehicle handshake message state, S7 detecting direct current relay closing state, S8 insulation monitoring and waiting for insulation monitoring completion state, S9 sending identification message state, S10 charging parameter configuration state, S11 charging module pre-charging and waiting ready state, S12 charging starting state and fault monitoring state, S13 sending charging stopping command and charging module stopping output state, S14 auxiliary power supply closing state and electronic lock opening state;
under abnormal conditions, the working state of the main state machine is divided into: a Y1 fault stop charging state, a Y2 communication timeout stop state, a Y3 communication interrupt stop state, a Y4 communication fault state at the end of charging.
3. The software implementation method of the dc charging pile monitoring system according to claim 2, wherein the specific method for nesting the small state machines for some complex large operating states in the main state machine in step 2 is as follows:
the small state machine of the nested insulation monitoring process under the S8 state, the small state machine of the nested pre-charging under the S11 state and the small state machine of the nested charging module output stop under the S13 state.
4. The software implementation method of the direct-current charging pile monitoring system according to claim 3, wherein the working state of the small state machine in the insulation monitoring process is divided into: the method comprises the following steps of J1 insulation monitoring circuit opening state, J2 charger DC relay closing state, J3 voltage output state for insulation checking, J4 insulation monitoring state, J5 bleeder circuit switching state, J6 insulation monitoring completion and charger DC relay opening state;
the working state of the small precharge state machine is divided into: the detection state of the voltage at the outer side of the direct-current relay of the P1 charger, the adjustment state of the output voltage of the P2 charger and the adjustment to the pre-charging voltage, and the closing state of the direct-current relay of the P3 charger;
the working state of the small state machine for stopping the output of the charging module is divided into: the O1 charging module is in a shutdown state, the O2 detects that the output current is less than 5A, the direct current output relay is in an off state, and the O3 discharging circuit is in an on state.
5. The software implementation method of the dc charging pile monitoring system according to claim 1, wherein the predetermined migration condition in step 4 includes:
normal operating state transition conditions of the master state machine: the method comprises the following steps of automatically jumping, inserting a charging gun into a vehicle, starting a charging command, closing an electronic lock and being ready, receiving a vehicle handshake message, closing a direct current relay, completing insulation monitoring, receiving a charging parameter message, receiving a vehicle ready message, pre-charging ready and a charging end command;
abnormal state transition conditions of the master state machine: charging faults are detected, automatic skipping, faults when charging is finished, communication overtime and communication interruption are detected.
6. The software implementation method of the direct current charging pile monitoring system according to any one of claims 1 to 5, wherein the implementation of the bottom layer communication driver module in step 5 adopts a non-blocking transceiving processing mode as follows:
defining a sending buffer area and a receiving buffer area, setting a reading and writing pointer of the sending buffer area in a pointer mode when the sending buffer area is accessed, loading data to be sent to the sending buffer area through the writing pointer of the sending buffer area, and searching the data to be sent in the sending buffer area through the reading pointer of the sending buffer area; when receiving data, the received data is loaded to the receiving buffer area through the received data write pointer in the interrupt, and then the received data read pointer adopts a state machine processing mode in the main program for processing.
7. The software implementation method of the direct current charging pile monitoring system according to claim 6, wherein the step of sending data by the bottom layer communication driving module in a non-blocking manner is as follows:
s-1, starting a main scheduling process of a main state machine, and filling an upper layer module of the main state machine into a buffer area;
s-2, judging whether the sending buffer area has data or not, and if not, turning to the step S-1; if yes, turning to the next step;
s-3, judging whether the register sending mark is effective, and if not, turning to the step S-1; if yes, turning to the next step;
s-4, sending register data delivery and turning to the step S-1.
8. The software implementation method of the direct current charging pile monitoring system according to claim 6, wherein the step of receiving data by the bottom layer communication driver module in a non-blocking manner is as follows:
a-1, starting a main scheduling process of a main state machine;
a-2, judging whether the buffer area of the receiving register has data, if not, turning to the step A-1; if yes, turning to the next step;
a-3, fetching the message from the receiving register and delivering the buffer area, simultaneously processing the buffer area by an upper layer module of the main state machine, and turning to the step A-1.
9. The software implementation method of the dc charging pile monitoring system according to claim 7 or 8, wherein the information interaction flag in step 5 relates to a charging unit, a dc charging module, an insulation monitoring module, and a touch screen debugging module.
CN201811105007.4A 2018-09-20 2018-09-20 Software implementation method of direct current charging pile monitoring system Active CN109284092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811105007.4A CN109284092B (en) 2018-09-20 2018-09-20 Software implementation method of direct current charging pile monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811105007.4A CN109284092B (en) 2018-09-20 2018-09-20 Software implementation method of direct current charging pile monitoring system

Publications (2)

Publication Number Publication Date
CN109284092A CN109284092A (en) 2019-01-29
CN109284092B true CN109284092B (en) 2021-06-11

Family

ID=65181278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811105007.4A Active CN109284092B (en) 2018-09-20 2018-09-20 Software implementation method of direct current charging pile monitoring system

Country Status (1)

Country Link
CN (1) CN109284092B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110154803A (en) * 2019-04-09 2019-08-23 浙江腾亿新能源科技有限公司 Direct-current charging post control device a kind of succinct and that compatibility is high
CN111654100B (en) * 2020-04-13 2023-05-16 上海紫通信息科技有限公司 Remote signaling anti-shake scanning method
CN111722032B (en) * 2020-05-19 2023-08-15 航天科工防御技术研究试验中心 Quick-filling pile simulation device and system for HIL test
CN112306889B (en) * 2020-11-23 2023-10-20 国网北京市电力公司 Method and device for testing charging pile, storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399754A (en) * 1999-08-20 2003-02-26 电子资讯系统有限公司 Structure and method of modeling integrated business and information technology frameworks and architecture in support of business
CN104516768A (en) * 2013-09-26 2015-04-15 英特尔公司 Live migration of virtualized systems
CN107665112A (en) * 2017-09-29 2018-02-06 北京紫优能源科技有限公司 A kind of configuration method and device of Electric control flow
CN107813721A (en) * 2017-10-30 2018-03-20 电子科技大学 Industrial AGV intelligent charging systems

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8639392B2 (en) * 2008-09-29 2014-01-28 Battelle Memorial Institute Electric power grid control using a market-based resource allocation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399754A (en) * 1999-08-20 2003-02-26 电子资讯系统有限公司 Structure and method of modeling integrated business and information technology frameworks and architecture in support of business
CN104516768A (en) * 2013-09-26 2015-04-15 英特尔公司 Live migration of virtualized systems
CN107665112A (en) * 2017-09-29 2018-02-06 北京紫优能源科技有限公司 A kind of configuration method and device of Electric control flow
CN107813721A (en) * 2017-10-30 2018-03-20 电子科技大学 Industrial AGV intelligent charging systems

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
The method of charging piles planning in parking lot;Zhang Xiaod、Sun Yunlian、Yu Junwei等;《2016 IEEE International Conference on Power System Technology (POWERCON)》;20161124;全文 *
一种面向互联网的交流充电桩的设计;唐玉建、陈河、高金鹏等;《电气技术》;20180831;全文 *

Also Published As

Publication number Publication date
CN109284092A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109284092B (en) Software implementation method of direct current charging pile monitoring system
CN102387280B (en) Image forming apparatus, system-on-chip (SOC) unit, and driving method thereof
US9170832B2 (en) Virtual machine control apparatus and virtual machine control method
CN101464819A (en) Hardware driven processor state storage prior to entering a low power mode
CN101171574B (en) Controller, mobile terminal apparatus, and integrated circuit
CN102035960A (en) Power saving processing apparatus, power saving processing method and image forming apparatus
CN113626280A (en) Cluster state control method and device, electronic equipment and readable storage medium
CN104090788B (en) A kind of On-board software configuration and operation method and system based on load
CN103309792A (en) Method and system for controlling log information
CN101295255B (en) Firmware updating system and method
CN103176937A (en) Control system and relay apparatus
CN103873516A (en) HA method and system for improving usage rate of physical servers in cloud computing resource pool
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN112596371A (en) Control card switching method and device, electronic equipment and storage medium
CN112148527A (en) Server power-off method, device and system
CN111290557A (en) Method and system for controlling power-on time sequence of GPU (graphics processing Unit) based on OAM (operation administration and maintenance) specification
CN109407648A (en) Troubleshooting methodology, system and computer readable storage medium in power up
US7003681B2 (en) Programmable logic controller with an auxiliary processing unit
CN101196847A (en) Method for automatic maintenance of CPU program memory and hardware cell structure
CN109558179A (en) Program code on-line loaded method, program code online upgrading method and system
CN108897248A (en) A kind of self―tuning control and mobile robot
CN112732311A (en) BMS program hot updating method, system and medium for large energy storage system
CN107291505A (en) A kind of method and device of controller system memory upgrading
CN104657304B (en) Electronic control unit
US6370651B1 (en) Synchronizing user commands to a microcontroller in a memory device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant