CN109284092A - A kind of software implementation method of direct-current charging post monitoring system - Google Patents
A kind of software implementation method of direct-current charging post monitoring system Download PDFInfo
- Publication number
- CN109284092A CN109284092A CN201811105007.4A CN201811105007A CN109284092A CN 109284092 A CN109284092 A CN 109284092A CN 201811105007 A CN201811105007 A CN 201811105007A CN 109284092 A CN109284092 A CN 109284092A
- Authority
- CN
- China
- Prior art keywords
- state
- state machine
- working condition
- module
- monitoring system
- 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.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 80
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 claims abstract description 72
- 230000008569 process Effects 0.000 claims abstract description 20
- 230000007704 transition Effects 0.000 claims abstract description 14
- 238000013508 migration Methods 0.000 claims abstract description 9
- 230000005012 migration Effects 0.000 claims abstract description 9
- 230000007246 mechanism Effects 0.000 claims abstract description 5
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000000903 blocking effect Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 7
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 230000007257 malfunction Effects 0.000 claims description 3
- 239000000725 suspension Substances 0.000 claims description 3
- 238000009413 insulation Methods 0.000 claims description 2
- 230000005611 electricity Effects 0.000 claims 3
- 238000012423 maintenance Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 230000003993 interaction Effects 0.000 description 5
- 230000000739 chaotic effect Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000017105 transposition Effects 0.000 description 2
- RTAQQCXQSZGOHL-UHFFFAOYSA-N Titanium Chemical compound [Ti] RTAQQCXQSZGOHL-UHFFFAOYSA-N 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 229910052719 titanium Inorganic materials 0.000 description 1
- 239000010936 titanium Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- General Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The present invention relates to a kind of software implementation methods of direct-current charging post monitoring system, a host state machine is set for direct-current charging post monitoring system to be scheduled, the nested small state machine of the big working condition for the certain complexity being main state in machine, timeout treatment is added in each working condition under each small state machine, the working condition for finding out certain general character under each big working condition calls state as the public migration under host state machine, it is migrated between each working condition according to set transition condition, when being related to each communication function module in host state machine scheduling process, information exchange mechanism is taken in host state machine scheduling, set different information exchange marks, non- obstruction transmitting-receiving process mode is taken in the realization of bottom communication drive module.The present invention can meet the requirement of real-time of complex logic control and multi-task parallel operation, can meet communication module it is excessive when real-time performance of the program requirement, communication function module easily extends, and programmed logic readability is strong, easy upgrade maintenance.
Description
Technical field
The present invention relates to charging pile technical fields, more specifically to a kind of software of direct-current charging post monitoring system
Implementation method.
Background technique
Currently, direct-current charging post monitor system software mainly include CAN communication between BMS, it is logical with Charging Detail Record unit CAN
News communicate with charging module CAN communication, with 485 communications of insulating monitoring module, with the 485 of debugging touch screen, are soft with host computer
The modules such as serial communication, input and output IO control, the analog acquisition of part, functional module is more, communicates many and diverse, the logic control of interaction
It makes more complicated.Traditional DC charging pile monitoring system software realization mode mainly takes sequential scheduling, by each functional module
It is divided, sequentially executes each functional module.Some optimized traditional softwares then take front/rear program tune
Certain emergency tasks are put into interruption and handle by degree, although improving the requirement of task real-time to a certain extent,
Be both modes functional module it is fairly simple, under conditions of task requirement of real-time is not high relatively be applicable in.When in face of direct current
When the situation that the monitoring software functional module of charging pile is more, communication interaction is many and diverse, logic control is more complicated, traditional software is real
Existing method causes real-time performance of the program decline, communication function module not when being unable to satisfy complex logic control and excessive communication module
The demand easily extended;Simultaneously because setting flag bit is excessive, programmed logic readable poor, program logic structure confusion, journey are caused
Sequence is not easy the problem of upgrade maintenance.
Therefore, Traditional DC charging pile monitoring system will increase the difficulty of developer, meanwhile, with the continuous liter of product
Grade, when the later period increases with changing logic control state, increasing communication function module, traditional direct-current charging post monitor system software
Difficulty undoubtedly is brought to the software upgrading of developer, maintenance work, causes the program of logical construction confusion more chaotic, even
It needs to redesign program architecture, while product competitiveness being made to be deteriorated.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of software implementation method of direct-current charging post monitoring system, it is
Direct-current charging post monitoring system sets a host state machine and is scheduled, and certain complex work states in host state machine are taken
The mode of the small state machine of big nesting state machine;When host state machine scheduling is related to each communication function module, information exchange is taken
The different information exchange mark of mechanism, setting;Non- obstruction transmitting-receiving process mode is taken in the realization of bottom communication drive module.This hair
Technical solution used by bright is as follows:
A kind of software implementation method of direct-current charging post monitoring system, comprising the following steps:
Step 1 is scheduled for direct-current charging post monitoring system one host state machine of setting, and host state machine is divided into difference
Working condition, referred to as big working condition;
The nested small state machine of step 2, the big working condition for the certain complexity being main state in machine, under each small state machine
Timeout treatment is added in each working condition;
Step 3 is found out the working conditions of certain general character under each big working condition and is moved as public under host state machine
Transposition state can reduce program redundancy;
It is migrated between step 4, each working condition according to set transition condition, moves to another working condition;
When being related to each communication function module in step 5, host state machine scheduling process, information is taken in host state machine scheduling
Interaction mechanism sets different information exchange marks;It is complete that the information exchange of communication function module gives bottom communication drive module
At non-obstruction transmitting-receiving process mode is taken in the realization of bottom communication drive module.
Particularly, data send and receive the processing mode for taking non-obstruction, therefore can guarantee more communication tasks
Parallel operation, the scalability of the functional module of program easy to accomplish, avoid communication module it is excessive when cause real-time performance of the program
Decline, can effectively solve the problems, such as that communication function module is not easy to extend
Preferably, host state machine is divided into different working conditions described in step 1 the specific method is as follows:
Under normal operation, as needed, the working condition of host state machine is divided into: S1 standby mode, S2 charging gun are inserted
Enter the charged state to be launched such as electronic vehicle attitude detection, S3, S4 closure electronic lock and detects whether that ready state, S5 closure are auxiliary
It helps power supply status, S6 to send handshake message and waits vehicle handshake message state, S7 detection DC relay closed state, S8 exhausted
Edge monitors and waits insulating monitoring completion status, S9 to send identification message status, S10 configuration charge parameter state, S11 charging mould
Block is pre-charged and waits ready state, S12 to start to charge state and malfunction monitoring state, S13 transmission suspension charge command and fill
Electric module stops output state, S14 closes accessory power supply and opens electronics lock status;
Under non-normal condition, the working condition of host state machine is divided into: Y1 failure stops charged state, Y2 communication time-out
Communication failure state at the end of halted state, Y3 communicating interrupt halted state, Y4 charging.
Preferably, the specific side of the nested small state machine of the certain complex work states being main state described in step 2 in machine
Method is as follows:
The nested small state machine of insulating monitoring process under S8 state, it is nested under S11 state to be pre-charged small state machine, S13 state
Lower nesting charging module output stops small state machine.
Preferably, the working condition of the small state machine of insulating monitoring process is divided into: J1 insulating monitoring circuit open state, J2
Charger DC relay closed state, J3 insulating check voltage output state, J4 insulating monitoring state, J5 leadage circuit investment
State, J6 insulating monitoring is completed and charger DC relay off-state;
The working condition for being pre-charged small state machine is divided into: voltage detecting state on the outside of P1 charger DC relay, P2
Charger output voltage adjustment state is adjusted to pre-charge voltage, P3 charger DC relay closed state;
The working condition that charging module output stops small state machine is divided into: O1 charging module off-mode, O2 detection are defeated
Electric current is less than 5A, direct current output relay off-state out, and O3 leadage circuit puts into state.
Preferably, set transition condition described in step 4 includes:
The normal working condition transition condition of host state machine: it jumps automatically, charging gun insertion vehicle, starting charging life
Enable, be closed electronic lock and it is ready, receive vehicle handshake message, DC relay closure, insulating monitoring complete, receive charge parameter
Message receives the ready message of vehicle, is pre-charged ready, charging end order;
The improper state transition condition of host state machine: it detects charge fault, jumps automatically, terminates event when charging
Barrier, communication time-out, communicating interrupt.
Process is migrated according to working condition, the logical architecture of entire program can be write out in program with being apparent.Program
When not only maintaining easily, but also needing to modify with extension after programmed logic, also easily modify.As long as being moved in original state
After modifying on the basis of advection journey, the logical framework of program is high-visible, avoids subsequent bring a series of problems.Together
When solve traditional software and be unable to satisfy complex logic control, journey caused by setting flag bit is excessive in traditional software implementation method
The problem of sequence logic is readable poor, program logic structure is chaotic, program is not easy upgrade maintenance.
Preferably, the driving of bottom communication described in step 5, which is realized, takes the non-specific method for blocking transmitting-receiving process mode such as
Under:
Definition sends and receives buffer area, sends the mode that pointer is taken when the access of buffer area, and setting sends buffer area and reads
Write pointer is loaded into transmission buffer area by sending buffer area write pointer data to be sent, reads to refer to by sending buffer area
Data to be sent are found in needle to transmission buffer area;When receiving data, receives data and write in interruption by receiving data
Pointer is loaded into reception buffer area, is then taken at state machine tupe by receiving data read pointer in main program
Reason.
Preferably, the step of bottom communication drive module takes non-blocking fashion to send data is as follows:
S-1, the master scheduling process for starting host state machine, while the upper layer module of host state machine fills in buffer area;
S-2, judge to send whether buffer area there are data, if it is not, going to step S-1;If so, turning in next step;
S-3, judge whether register transmission mark is effective, if it is not, going to step S-1;If so, turning in next step;
S-4, transmitter register data delivery, and go to step S-1.
Preferably, the step of bottom communication drive module takes non-blocking fashion to receive data is as follows:
A-1, the master scheduling process for starting host state machine;
A-2, judge whether receiving register buffer area there are data, if it is not, going to step A-1;If so, turning in next step;
A-3, the upper layer module processing buffer area for taking message from receiving register and delivering buffer area while host state machine,
And go to step A-1.
Preferably, information exchange mark described in step 5 is related to Charging Detail Record unit, DC charging module, insulating monitoring module
And touch screen debugging module.
Beneficial effects of the present invention:
1) adoption status machine of the present invention determines a master scheduler, with Status register come the working condition of representation program,
It can satisfy the requirement of real-time of the control of direct-current charging post monitoring system complex logic and multi-task parallel operation;
2) present invention can meet the requirement of real-time performance of the program when communication module is excessive in direct-current charging post monitoring system, and
Communication function module easily extends;
3) programmed logic of the invention is readable by force, program logic structure is clear, the easy upgrade maintenance of program.
Detailed description of the invention
Fig. 1 is the function structure schematic diagram of existing direct-current charging post monitoring system;
Fig. 2 is the working condition migration schematic diagram under host state machine;
Fig. 3 is the working condition migration schematic diagram of the small state machine of insulating monitoring;
Fig. 4 is the working condition migration schematic diagram for being pre-charged small state machine;
Fig. 5 is the working condition migration schematic diagram that charging module output stops small state machine;
Fig. 6 is the schematic diagram that non-blocking fashion transmission data procedures are taken in bottom communication driving;
Fig. 7 is the schematic diagram that non-blocking fashion reception data procedures are taken in bottom communication driving.
Specific embodiment
It is clear in order to be more clear technical solution of the present invention and advantage, with reference to the accompanying drawing, to the present invention carry out into
One step is described in detail.It is the function structure schematic diagram of existing direct-current charging post monitoring system shown in Fig. 1.Direct-current charging post prison
Control system mainly include CAN communication, monitoring system and Charging Detail Record unit CAN communication between monitoring system and BMS, monitoring system with
Charging module CAN communication, 485 communications of monitoring system and insulating monitoring module, monitoring system are led to the 485 of debugging touch screen
News, the serial communication of monitoring system and upper computer software, monitoring system input and output IO control, monitoring system analog acquisition mould
Block.
CAN communication agreement between the monitoring system and BMS meets GB27930-2015 " the off-board conduction of electric car
Communications protocol between formula charger and battery management system ";The monitoring system and Charging Detail Record unit CAN communication agreement meet
The requirement of " charging control unit and charge controller communications protocol V1.1 ";The monitoring system and charging module CAN communication are assisted
View meets the communications protocol requirement of current mainstream charging module producer, such as Huawei, the source Ying Kerui, Ying Fei etc.;The monitoring system
The communications protocol that system meets current mainstream insulating monitoring module with 485 communications protocol with insulating monitoring module requires, such as on
Hai Huirui, Shanghai titanium sunrise etc.;485 communications of the monitoring system and debugging touch screen, hardware uses enlightening text touch screen, customized
Communications protocol;The serial communication of the monitoring system and upper computer software, upper computer software use hyper terminal, customized communication
Agreement;The monitoring system input and output IO control, comprising at least 16 road IO output control, 8 road IO input state-signal collection, remote signalling
Take queue reading and stabilization processing;The monitoring system analogue collection module includes at least CC voltage signal all the way
Acquisition, DC high voltage acquires all the way, and DC current acquires all the way, at least 4 tunnel analog quantity temperature acquisitions, analog quantity voltage acquisition
Take queue reading manner.
Further, further includes: FLASH stores definite value and parameter function module, sets for direct-current charging post relevant parameter
It sets.485 communications of monitoring system and three-phase kilowatt-hour meter, communications protocol meet DLT645-2007 " multifunction electric meter communications protocol ".
A kind of software implementation method of the direct-current charging post monitoring system based on above-mentioned framework, comprising the following steps:
Step 1 is scheduled for direct-current charging post monitoring system one host state machine of setting, and host state machine is divided into difference
Working condition, referred to as big working condition.Under normal operation, as needed, the working condition of host state machine is divided into: S1 is waited for
The charged state to be launched such as machine state, S2 charging gun insertion electronic vehicle attitude detection, S3, S4 closure electronic lock simultaneously detect whether
Ready state, S5 closure accessory power supply state, S6 send handshake message and wait vehicle handshake message state, S7 detection direct current after
Electric appliance closed state, S8 insulating monitoring simultaneously wait insulating monitoring completion status, S9 to send identification message status, S10 configuration charging
Parameter state, S11 charging module are pre-charged and wait ready state, S12 to start to charge state and malfunction monitoring state, S13 hair
Suspension charge command and charging module is sent to stop output state, S14 closes accessory power supply and opens electronics lock status.Improper
Under the conditions of, the working condition of host state machine is divided into: Y1 failure stops charged state, Y2 communicates overtime halted state, Y3 communication
Communication failure state at the end of interruption halted state, Y4 charging.
The nested small state machine of step 2, the big working condition for the certain complexity being main state in machine, under each small state machine
Timeout treatment is added in each working condition.Wherein, again include the small state machine of insulating monitoring process under S8 state, wrapped under S11 state
Containing small state machine is pre-charged, include the small state machine of charging module output stopping under S13 state.
As needed, the working condition of the small state machine of insulating monitoring process is divided into: J1 insulating monitoring circuit open state,
J2 charger DC relay closed state, J3 insulating check voltage output state, J4 insulating monitoring state, J5 leadage circuit are thrown
Enter state, J6 insulating monitoring is completed and charger DC relay off-state.The working condition for being pre-charged small state machine is divided into:
Voltage detecting state on the outside of P1 charger DC relay, P2 charger output voltage adjustment state are adjusted to pre-charge voltage,
P3 charger DC relay closed state.The working condition that charging module output stops small state machine is divided into: O1 charging mould
Block off-mode, O2 detection output electric current are less than 5A, direct current output relay off-state, and O3 leadage circuit puts into state.Each
Suitable timeout treatment is added in each working condition under small state machine, this working condition is avoided to draw because waiting time always is too long
The program risen crashes.Each working condition under host state machine has the CAN communication program with battery management system information exchange,
The sending cycle of each message is set to 3s in 50ms, time-out time.
Step 3 is found out the working conditions of certain general character under each big working condition and is moved as public under host state machine
Transposition state.For example, the working condition of certain general character of Y1-Y4, S13 is as follows: X1 under non-normal condition and under normal condition
Charging module terminates charged state, this working condition is individually listed and calls state as public migration, it is superfluous to can reduce program
It is remaining.
It is migrated between step 4, each working condition according to set transition condition, moves to another working condition.
The normal working condition migration of host state machine mainly includes following condition: being jumped automatically, charging gun insertion vehicle, starting
Charge command, closure electronic lock and it is ready, receive vehicle handshake message, DC relay closure, insulating monitoring complete, receive and fill
Electrical parameter message receives the ready message of vehicle, is pre-charged ready, charging end order.Each state root of host state machine
Upper different transition condition moves to another state, the whole main logic framework as program accordingly.Wherein further include it is non-just
Normal state transition condition, mainly include it is several under it is several: detect charge fault, jump automatically, terminates charge when failure, communicate
Time-out, communicating interrupt.Improper state transition condition is detected under the individual state of host state machine, such program architecture
It will appear many branches in host state machine, state transition condition needed for each branch is as described above, still, either in master
Inside state machine or branch, finally, after entire charging process, S1 standby mode can be all come back to, is waited next time
Charging beginning.As shown in Fig. 2, being the working condition migration schematic diagram under host state machine.As shown in figure 3, being S8 work shape
The working condition of the small state machine of insulating monitoring under state migrates schematic diagram;As shown in figure 4, being the precharge under S11 working condition
The working condition of small state machine migrates schematic diagram;As shown in figure 5, being the small state machine of charging module output stopping under S13 state
Working condition migrate schematic diagram.
When being related to each communication function module in step 5, host state machine scheduling process, information is taken in host state machine scheduling
Interaction mechanism sets different information exchange marks.Main information exchange mark relates generally to Charging Detail Record unit, DC charging mould
Block, insulating monitoring module and touch screen debugging module.For example, DC charging module switch machine is arranged when host state machine interaction
Mark, voltage and current mark etc.;When host state machine is dispatched, it is related to charging module switching on and shutting down, when the parameters such as voltage and current are set, phase
The enabled processing of the flag bit answered.Insulating monitoring module switch machine mark is set simultaneously, state of insulation obtains mark, major state
When machine is dispatched, its corresponding flag bit is set, other transfer to background process.
Charging Detail Record unit also takes similar processing with touch screen debugging module, and starting, which is mainly arranged, in Charging Detail Record unit terminates charging
The information such as mark, telemetering upload mark etc.;Switching on and shutting down mark is mainly arranged in touch screen, remote measure and communication data upload mark etc..
In addition, Charging Detail Record unit, DC charging module, insulating monitoring module and touch screen debugging module are mainly concerned with
CAN communication, 485 communications etc..The information exchange of these communication modules gives the completion of bottom communication drive module.Bottom communication driving
Non- obstruction transmitting-receiving process mode is taken in realization, and definition sends and receives buffer area, sends the side that pointer is taken when the access of buffer area
Formula, setting send buffer area read-write pointer.When sending data, it is loaded by sending buffer area write pointer data to be sent
Buffer area is sent, the non-obstruction sending mode of bottom is sent, and when transmission, is sought in buffer area read pointer to transmission buffer area by sending
Data to be sent are looked for, guarantee that being each loaded into the data sent inside buffer area all sends;Meanwhile guaranteeing communication
Real-time and expansibility.When receiving data, receives data and delayed in interruption by receiving data write pointer and being loaded into receive
Area is deposited, then takes state machine tupe to be handled in main program by receiving data read pointer, guarantees that reception data can
By property and real-time.
As shown in fig. 6, being the schematic diagram that bottom communication drive module takes non-blocking fashion transmission data procedures, data hair
Send that steps are as follows:
S-1, the master scheduling process for starting host state machine, while the upper layer module of host state machine fills in buffer area;
S-2, judge to send whether buffer area there are data, if it is not, going to step S-1;If so, turning in next step;
S-3, judge whether register transmission mark is effective, if it is not, going to step S-1;If so, turning in next step;
S-4, transmitter register data delivery, and go to step S-1.
As shown in fig. 7, being the schematic diagram that bottom communication drive module takes non-blocking fashion reception data procedures, data are connect
Steps are as follows for receipts:
A-1, the master scheduling process for starting host state machine;
A-2, judge whether receiving register buffer area there are data, if it is not, going to step A-1;If so, turning in next step;
A-3, the upper layer module processing buffer area for taking message from receiving register and delivering buffer area while host state machine,
And go to step A-1.
Herein, circulation is received or is sent always as long as having data.
Claims (9)
1. a kind of software implementation method of direct-current charging post monitoring system, which comprises the following steps:
Step 1 is scheduled for direct-current charging post monitoring system one host state machine of setting, and host state machine is divided into different works
Make state, referred to as big working condition;
The nested small state machine of step 2, the big working condition for the certain complexity being main state in machine, it is each under each small state machine
Timeout treatment is added in working condition;
Step 3 finds out the working condition of certain general character under each big working condition as the public migration tune under host state machine
Use state;
It is migrated between step 4, each working condition according to set transition condition, moves to another working condition;
When being related to each communication function module in step 5, host state machine scheduling process, information exchange is taken in host state machine scheduling
Mechanism sets different information exchange marks;The information exchange of communication function module gives the completion of bottom communication drive module, bottom
Non- obstruction transmitting-receiving process mode is taken in the realization of layer communication driving module.
2. a kind of software implementation method of direct-current charging post monitoring system according to claim 1, which is characterized in that step
Host state machine is divided into different working conditions described in 1, and the specific method is as follows:
Under normal operation, as needed, the working condition of host state machine is divided into: S1 standby mode, S2 charging gun insertion electricity
The charged state to be launched such as electrical automobile state-detection, S3, S4 closure electronic lock simultaneously detect whether ready state, S5 closure auxiliary electricity
Source state, S6 send handshake message and wait vehicle handshake message state, S7 detection DC relay closed state, S8 insulation prison
Survey and wait insulating monitoring completion status, S9 to send identification message status, S10 configuration charge parameter state, S11 charging module pre-
It charges and ready state, S12 is waited to start to charge state and malfunction monitoring state, S13 transmission suspension charge command and charging mould
Block stops output state, S14 closes accessory power supply and opens electronics lock status;
Under non-normal condition, the working condition of host state machine is divided into: Y1 failure stops charged state, Y2 communication time-out stops
Communication failure state at the end of state, Y3 communicating interrupt halted state, Y4 charging.
3. a kind of software implementation method of direct-current charging post monitoring system according to claim 2, which is characterized in that step
The specific method is as follows for the nested small state machine of the big working condition for the certain complexity being main state in machine described in 2:
The nested small state machine of insulating monitoring process under S8 state, it is nested under S11 state to be pre-charged small state machine, it is embedding under S13 state
It covers charging module output and stops small state machine.
4. a kind of software implementation method of direct-current charging post monitoring system according to claim 3, which is characterized in that will be exhausted
The working condition of the small state machine of edge monitoring process is divided into: J1 insulating monitoring circuit open state, J2 charger DC relay closure
State, J3 insulating check voltage output state, J4 insulating monitoring state, J5 leadage circuit put into state, and J6 insulating monitoring is complete
At and charger DC relay off-state;
The working condition for being pre-charged small state machine is divided into: voltage detecting state on the outside of P1 charger DC relay, P2 charging
Machine output voltage adjustment state is adjusted to pre-charge voltage, P3 charger DC relay closed state;
The working condition that charging module output stops small state machine is divided into: O1 charging module off-mode, O2 detection output electricity
Stream is less than 5A, direct current output relay off-state, and O3 leadage circuit puts into state.
5. a kind of software implementation method of direct-current charging post monitoring system according to claim 1, which is characterized in that step
Set transition condition described in 4 includes:
The normal working condition transition condition of host state machine: it jumps, charging gun insertion vehicle, starting charge command, close automatically
Close electronic lock and it is ready, receive vehicle handshake message, DC relay closure, insulating monitoring complete, receive charge parameter message,
It receives the ready message of vehicle, be pre-charged ready, charging end order;
The improper state transition condition of host state machine: it detects charge fault, jumps automatically, terminate failure when charging, is logical
News time-out, communicating interrupt.
6. a kind of software implementation method of direct-current charging post monitoring system according to claim 1-5, feature
It is, non-obstruction transmitting-receiving process mode is taken in the realization of bottom communication drive module described in step 5, and the specific method is as follows:
Definition sends and receives buffer area, sends the mode that pointer is taken when the access of buffer area, and setting sends buffer area read-write and refers to
Needle, by send buffer area write pointer data to be sent be loaded into send buffer area, by send buffer area read pointer to
It sends and finds data to be sent in buffer area;When receiving data, data are received in interruption by receiving data write pointer
It is loaded into reception buffer area, then takes state machine tupe to be handled in main program by receiving data read pointer.
7. a kind of software implementation method of direct-current charging post monitoring system according to claim 6, which is characterized in that bottom
The step of communication driving module takes non-blocking fashion to send data is as follows:
S-1, the master scheduling process for starting host state machine, while the upper layer module of host state machine fills in buffer area;
S-2, judge to send whether buffer area there are data, if it is not, going to step S-1;If so, turning in next step;
S-3, judge whether register transmission mark is effective, if it is not, going to step S-1;If so, turning in next step;
S-4, transmitter register data delivery, and go to step S-1.
8. a kind of software implementation method of direct-current charging post monitoring system according to claim 6, which is characterized in that bottom
The step of communication driving module takes non-blocking fashion to receive data is as follows:
A-1, the master scheduling process for starting host state machine;
A-2, judge whether receiving register buffer area there are data, if it is not, going to step A-1;If so, turning in next step;
A-3, the upper layer module processing buffer area for taking message from receiving register and delivering buffer area while host state machine, and turn
Step A-1.
9. a kind of software implementation method of direct-current charging post monitoring system according to claim 7 or 8, which is characterized in that
Information exchange mark described in step 5 is related to Charging Detail Record unit, DC charging module, insulating monitoring module and touch screen debugging mould
Block.
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 true CN109284092A (en) | 2019-01-29 |
CN109284092B 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) |
Cited By (6)
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 |
CN111654100A (en) * | 2020-04-13 | 2020-09-11 | 上海紫通信息科技有限公司 | Remote signaling anti-shake scanning method |
CN111722032A (en) * | 2020-05-19 | 2020-09-29 | 航天科工防御技术研究试验中心 | Quick pile filling simulation device and system for HIL test |
CN112306889A (en) * | 2020-11-23 | 2021-02-02 | 国网北京市电力公司 | Charging pile testing method and device, storage medium and processor |
CN115257419A (en) * | 2022-08-26 | 2022-11-01 | 阿维塔科技(重庆)有限公司 | Charging method and device and electric vehicle |
CN116170356A (en) * | 2023-02-22 | 2023-05-26 | 华中科技大学 | Communication compliance testing method and system for electric vehicle charging |
Citations (5)
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 |
US20100106332A1 (en) * | 2008-09-29 | 2010-04-29 | Battelle Memorial Institute | Using bi-directional communications in a market-based resource allocation system |
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 |
-
2018
- 2018-09-20 CN CN201811105007.4A patent/CN109284092B/en active Active
Patent Citations (5)
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 |
US20100106332A1 (en) * | 2008-09-29 | 2010-04-29 | Battelle Memorial Institute | Using bi-directional communications in a market-based resource allocation system |
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)
Title |
---|
ZHANG XIAOD、SUN YUNLIAN、YU JUNWEI等: "The method of charging piles planning in parking lot", 《2016 IEEE INTERNATIONAL CONFERENCE ON POWER SYSTEM TECHNOLOGY (POWERCON)》 * |
唐玉建、陈河、高金鹏等: "一种面向互联网的交流充电桩的设计", 《电气技术》 * |
Cited By (10)
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 |
CN111654100A (en) * | 2020-04-13 | 2020-09-11 | 上海紫通信息科技有限公司 | Remote signaling anti-shake scanning method |
CN111654100B (en) * | 2020-04-13 | 2023-05-16 | 上海紫通信息科技有限公司 | Remote signaling anti-shake scanning method |
CN111722032A (en) * | 2020-05-19 | 2020-09-29 | 航天科工防御技术研究试验中心 | Quick pile filling simulation device and system for HIL test |
CN111722032B (en) * | 2020-05-19 | 2023-08-15 | 航天科工防御技术研究试验中心 | Quick-filling pile simulation device and system for HIL test |
CN112306889A (en) * | 2020-11-23 | 2021-02-02 | 国网北京市电力公司 | Charging pile testing method and device, storage medium and processor |
CN112306889B (en) * | 2020-11-23 | 2023-10-20 | 国网北京市电力公司 | Method and device for testing charging pile, storage medium and processor |
CN115257419A (en) * | 2022-08-26 | 2022-11-01 | 阿维塔科技(重庆)有限公司 | Charging method and device and electric vehicle |
CN116170356A (en) * | 2023-02-22 | 2023-05-26 | 华中科技大学 | Communication compliance testing method and system for electric vehicle charging |
CN116170356B (en) * | 2023-02-22 | 2024-07-09 | 华中科技大学 | Communication compliance testing method and system for electric vehicle charging |
Also Published As
Publication number | Publication date |
---|---|
CN109284092B (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109284092A (en) | A kind of software implementation method of direct-current charging post monitoring system | |
US8266457B2 (en) | Data processing device and method for switching states thereof | |
CN103384863B (en) | Virtual machine controls device and virtual computer control method | |
CN108804255A (en) | Charging pile remote failure processing method and terminal device | |
CN102035960B (en) | Power saving processing apparatus, power saving processing method and image forming apparatus | |
CN102967846A (en) | Fault self-checking method for intelligent ammeter | |
CN102214154A (en) | USB (Universal Serial Bus)-based communication module and communication method for alternating current servo driver | |
CN111752543B (en) | Intelligent electric automobile charging system and method based on android system architecture | |
CN103619653A (en) | Electrical power supply control system, electrical power supply control device, and electrical power supply control method | |
CN109787892A (en) | General hybrid vehicle gateway controller | |
CN108859759A (en) | Electric vehicle instrument system and its dispatching method | |
CN112087052A (en) | Intelligent power distribution terminal | |
CN1246751C (en) | Computer system with power management and its method | |
CN115384310A (en) | Charging method and device applied to vehicle, electronic equipment and storage medium | |
CN105577052B (en) | A kind of stepper motor non-jitter driving control system based on FPGA and the control method based on the system | |
CN106335394A (en) | Integral direct current charging pile for electric bus and intelligent charging method thereof | |
CN103344273A (en) | Full electric vehicle motor driver measurement and control system and measurement and control method thereof | |
CN110401585A (en) | It can the interrupt serial bus means of communication, system and medium | |
CN113138335B (en) | Method and system for detecting Bluetooth circuit breaker | |
CN210927210U (en) | Emergency power supply system based on echelon power storage battery | |
CN211166516U (en) | Intelligent charging cabinet control system of electric bicycle | |
CN203191749U (en) | Auxiliary control system for magnetic suspension and energy storage flywheel | |
CN107103657A (en) | A kind of environmental sanitation vehicles working condition collector and acquisition method | |
CN110048465A (en) | A kind of separating brake processing method, device and generating set | |
CN205959037U (en) | Fill electric pile human -computer interaction system |
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 |