CN106776329A - The adjustment method and commissioning device of energy accumulation current converter - Google Patents

The adjustment method and commissioning device of energy accumulation current converter Download PDF

Info

Publication number
CN106776329A
CN106776329A CN201611208933.5A CN201611208933A CN106776329A CN 106776329 A CN106776329 A CN 106776329A CN 201611208933 A CN201611208933 A CN 201611208933A CN 106776329 A CN106776329 A CN 106776329A
Authority
CN
China
Prior art keywords
parameter
address
controller
current converter
energy accumulation
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
Application number
CN201611208933.5A
Other languages
Chinese (zh)
Other versions
CN106776329B (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.)
Beijing Jinfeng Zero Carbon Energy Co ltd
Original Assignee
Beijing Etechwin Electric 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 Beijing Etechwin Electric Co Ltd filed Critical Beijing Etechwin Electric Co Ltd
Priority to CN201611208933.5A priority Critical patent/CN106776329B/en
Publication of CN106776329A publication Critical patent/CN106776329A/en
Application granted granted Critical
Publication of CN106776329B publication Critical patent/CN106776329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention provides the adjustment method and commissioning device of a kind of energy accumulation current converter, and the adjustment method includes:A the reading instruction for reading the first parameter and the controller that the reading instruction is sent to energy accumulation current converter) are generated in host computer;B) controller receives the reading sent by host computer and instructs, the value of the first parameter according to the address acquisition for reading the first parameter that instruction includes, establishment includes the packet of the value of the address of first parameter and first parameter, and the packet is sent into the host computer;C) host computer receives the packet that the controller sends, and the address according to first parameter determines the title of first parameter, the value of the title of first parameter and first parameter is shown.The adjustment method and commissioning device of energy accumulation current converter of the invention, by host computer to controller in the parameter of program run show and is debugged that the operation sequential of control system will not be produced influence.

Description

The adjustment method and commissioning device of energy accumulation current converter
Technical field
The present invention relates to energy accumulation current converter, more particularly, it is related to the adjustment method of energy accumulation current converter and commissioning device.
Background technology
With the development of science and technology, new energy technology is play more and more important effect, and energy storage technology is in energy Application in origin system is also increasingly paid attention to by people.And energy accumulation current converter in energy storage device as energy management system Core is also increasingly developed, and this just can easily be debugged to energy accumulation current converter in exploitation test phase, and in product life Life cycle internal fault investigation also will conveniently be debugged and propose certain requirement.
The standard debugging method of the controller software debugging of current energy accumulation current converter is combined testing action group (Joint Test Action Group, JTAG), JTAG is a kind of international standard test protocol, generally can be with using jtag interface Easily carry out variable internal memory to check, breakpoint setup, the debugging operations, very powerful debugging method such as single step tracking.
But debugged when energy accumulation current converter runs, generally require and check related algorithm intermediate variable value, peripheral hardware is adopted Sample value and export to the register value of external device.Due to the requirement of real-time of energy accumulation current converter control software, it is impossible in fortune Running software is interrupted during row, the operation sequential that will otherwise upset software and peripheral hardware or the real-time sampling data for missing peripheral hardware. Can be interrupted when target system information is obtained and the artificial debugging of jtag interface needs to use emulator linking objective system, during debugging The operation sequential of software and peripheral hardware.
Therefore, the debud mode of the energy accumulation current converter of prior art can produce influence to the operation sequential of control system.
The content of the invention
It is an object of the invention to provide the adjustment method and commissioning device of a kind of energy accumulation current converter, to solve prior art Debud mode the technical problem of influence can be produced on the operation sequential of control system.
An aspect of of the present present invention provides a kind of adjustment method of the energy accumulation current converter performed in host computer, the debugging side Method includes:A) generation is read the reading instruction of the first parameter and reads the controller that instruction is sent to energy accumulation current converter by described, Wherein, first parameter is in the debugging process for indicating energy accumulation current converter in the control program run in the controller The global variable of the parameter of monitoring, the reading instruction includes the address of first parameter, and the address of first parameter refers to Show first parameter storage address in the controller;B the controller) is received to be sent out in response to the reading instruction The packet for sending, wherein, the packet includes the address of the first parameter and the value of the first parameter;C) according to first parameter Address determine the title of first parameter;D) value of the title of first parameter and first parameter is shown Show.
Alternatively, the adjustment method also includes:E the value of the second parameter is revised as the write instruction of predetermined value for) generation And said write instruction is sent to the controller, wherein, said write instruction includes address and the institute of second parameter State predetermined value, second parameter is for indicating the debugging of energy accumulation current converter in the control program run in the controller The global variable of parameter to be modified in journey, the address of second parameter indicates second parameter in the controller Storage address.
Alternatively, step C) include:Searched for and institute in the distribution list of address by calling regular expression search engine State the corresponding parameter name in address of the first parameter, and the parameter name that will be searched is used as the title of first parameter.
Alternatively, 16 CRCs are also included in the packet.
Alternatively, the host computer is carried out data transmission by following either interface with the controller:Ethernet interface, Controller LAN interface and serial line interface.
Alternatively, the host computer passes through Ethernet interface, via Advanced Reduced Instruction Set processor and the controller Shared RAM space, carries out data transmission with the controller.
Alternatively, in step A) in, the title in response to first parameter is transfused to, and is searched by calling regular expression Index is held up and argument address corresponding with the title of first parameter is searched in the distribution list of address, and the parameter that will be searched Address as first parameter address;In step E) in, the title in response to second parameter is transfused to, by calling Regular expression search engine searches for argument address corresponding with the title of second parameter in the distribution list of address, and will The argument address for searching as second parameter address.
A kind of adjustment method performed in the controller of energy accumulation current converter is provided according to another aspect of the present invention, it is described Adjustment method includes:A) receive the reading sent by host computer to instruct, and the first parameter that instruction includes is read according to described Address acquisition described in the first parameter value, wherein, first parameter is to use in the control program run in the controller The global variable of the parameter monitored in the debugging process for indicating energy accumulation current converter, the address of first parameter indicates described the One parameter storage address in the controller;B) creating includes the value of the address of first parameter and first parameter Packet, and the packet is sent to the host computer.
Alternatively, the adjustment method also includes:C) reception is revised as pre- by the value by the second parameter that host computer sends The write instruction of definite value, and the address of second parameter included according to said write instruction is by the value of second parameter The predetermined value is revised as, wherein, second parameter is for indicating energy storage in the control program run in the controller The global variable of parameter to be modified in the debugging process of current transformer, the address of second parameter indicates second parameter to exist Storage address in controller.
Alternatively, the controller is carried out data transmission by following either interface with the host computer:Ethernet interface, Controller LAN interface and serial line interface.
Alternatively, 16 CRCs are also included in the packet.
A kind of adjustment method of energy accumulation current converter is provided according to another aspect of the present invention, and the adjustment method includes:A) The reading instruction for reading the first parameter and the controller that the reading instruction is sent to energy accumulation current converter are generated in host computer, Wherein, first parameter is in the debugging process for indicating energy accumulation current converter in the control program run in the controller The global variable of the parameter of monitoring, the reading instruction includes the address of the first parameter, and the address of first parameter indicates institute State the first parameter storage address in the controller;B) controller receives the reading sent by host computer and instructs, root According to the value of the first parameter described in the address acquisition for reading the first parameter that instruction includes, establishment includes first parameter Address and first parameter value packet, the packet is sent to the host computer;C) host computer connects The packet that the controller sends is received, the address according to first parameter determines the title of first parameter, will be described The value of the title of the first parameter and first parameter is shown.
Alternatively, the adjustment method also includes:D) generated in host computer and the value of the second parameter is revised as predetermined value Write instruction, and by said write instruction be sent to the controller, wherein, said write instruction include second parameter Address and the predetermined value, second parameter is for indicating energy storage unsteady flow in the control program run in the controller The global variable of parameter to be modified in the debugging process of device, the address of second parameter indicates second parameter described Storage address in controller;E) controller receives the write instruction sent by host computer, and is instructed according to said write The address of the second parameter for including the value of the second parameter is revised as the predetermined value.
A kind of commissioning device of the energy accumulation current converter being arranged in host computer is provided according to another aspect of the present invention, it is described Commissioning device includes:Instruction sending unit is read, generation is read the reading instruction of the first parameter and sends the reading instruction To the controller of energy accumulation current converter, wherein, first parameter is for indicating in the control program run in the controller The global variable of the parameter monitored in the debugging process of energy accumulation current converter, the reading instruction includes the ground of first parameter Location, the address of first parameter indicates first parameter storage address in the controller;Packet receiving unit, The controller is received in response to the packet for reading instruction and sending, wherein, the packet includes the first parameter Address and the value of the first parameter, title determining unit, the address according to first parameter determine the title of first parameter; Display unit, the value of the title of first parameter and first parameter is shown.
Alternatively, the commissioning device also includes:Be revised as the value of the second parameter pre- by write instruction transmitting element, generation Said write instruction is simultaneously sent to the controller by the write instruction of definite value, wherein, said write instruction includes described second The address of parameter and the predetermined value, second parameter are for indicating energy storage in the control program run in the controller The global variable of parameter to be modified in the debugging process of current transformer, the address of second parameter indicates second parameter to exist Storage address in the controller.
Alternatively, title determining unit is searched for and institute by calling regular expression search engine in the distribution list of address State the corresponding parameter name in address of the first parameter, and the parameter name that will be searched is used as the title of first parameter.
Alternatively, the host computer is carried out data transmission by following either interface with the controller:Ethernet interface, Controller LAN interface and serial line interface.
Alternatively, the host computer passes through Ethernet interface, via Advanced Reduced Instruction Set processor and the controller Shared RAM space, carries out data transmission with the controller.
Alternatively, read instruction sending unit to be transfused in response to the title of first parameter, by calling canonical table Argument address corresponding with the title of first parameter is searched in the distribution list of address up to formula search engine, and will be searched Argument address as first parameter address;Write instruction transmitting element is defeated in response to the title of second parameter Enter, ginseng corresponding with the title of second parameter is searched in the distribution list of address by calling regular expression search engine Number addresses, and the argument address that will be searched is used as the address of second parameter.
A kind of commissioning device being arranged in energy accumulation current converter, the commissioning device are provided according to another aspect of the present invention Including:Instruction reception unit is read, the reading sent by host computer is received and is instructed, and instruction includes the is read according to described The value of the first parameter described in the address acquisition of one parameter, wherein, during first parameter is the controller of the energy accumulation current converter It is used for the global variable of the parameter of monitoring in the debugging process for indicate energy accumulation current converter, first ginseng in the control program of operation Several addresses indicates first parameter storage address in the controller;Packet transmitting element, creates described in including The packet of the value of the address of the first parameter and first parameter, and the packet is sent to the host computer.
Alternatively, the commissioning device also includes:Write instruction receiving unit, receives and is joined second by what host computer sent Several values is revised as the write instruction of predetermined value, and second parameter included according to said write instruction address by institute The value for stating the second parameter is revised as the predetermined value, wherein, second parameter is the control program of operation in the controller In for indicating the global variable of parameter to be modified in the debugging process of energy accumulation current converter, the address of second parameter indicates Second parameter storage address in the controller.
Alternatively, the controller is carried out data transmission by following either interface with the host computer:Ethernet interface, Controller LAN interface and serial line interface.
The adjustment method and commissioning device of the energy accumulation current converter of exemplary embodiment of the invention are by host computer In the parameter of program run in controller show to debug, will not be to the operation sequential of control system generation shadow Ring.Additionally, the adjustment method and commissioning device of the energy accumulation current converter of exemplary embodiment of the invention can also be by upper Machine is modified to the value of the parameter of the control program in controller.
The present invention other aspect and/or advantage will be partly illustrated in following description, some is by retouching State and will be apparent, or can be learnt by implementation of the invention.
Brief description of the drawings
By the detailed description for carrying out below in conjunction with the accompanying drawings, above and other objects of the present invention, feature and advantage will Become more fully apparent, wherein:
Fig. 1 is the flow chart of the adjustment method of the energy accumulation current converter for showing exemplary embodiment of the invention;
Fig. 2 is the debugging side of the energy accumulation current converter performed in host computer for showing exemplary embodiment of the invention The flow chart of method;
Fig. 3 is the debugging side performed in the controller of energy accumulation current converter for showing exemplary embodiment of the invention The flow chart of method;
Fig. 4 is that the debugging of the energy accumulation current converter being arranged in host computer for showing exemplary embodiment of the invention sets Standby structured flowchart;
Fig. 5 is that the debugging being arranged in the controller of energy accumulation current converter for showing exemplary embodiment of the invention sets Standby structured flowchart;
Fig. 6 is the form of the packet for showing exemplary embodiment of the invention.
Specific embodiment
Describe embodiments of the invention in detail with reference to the accompanying drawings.
Fig. 1 is the flow chart of the adjustment method for showing energy accumulation current converter according to an exemplary embodiment of the present invention.
Reference picture 1, in step S10, the reading instruction of the first parameter of reading is generated in host computer and instruction hair will be read It is sent to the controller of energy accumulation current converter.First parameter is for indicating energy accumulation current converter in the control program run in controller The global variable of the parameter monitored in debugging process.As an example, the parameter monitored in the debugging process of energy accumulation current converter can be with It is:Electric current of each phase of the voltage of the DC side of energy accumulation current converter, the electric current of DC side or AC etc..
The control program run in the controller of energy accumulation current converter is the program for controlling the operation of energy accumulation current converter.Storage The controller of energy current transformer can be digital signal processor or other controllers.Reading instruction includes the address of the first parameter, The address of the first parameter indicates storage address of first parameter in the controller of energy accumulation current converter.
Here, the reading instruction and the reading that will be generated for reading the first parameter can be periodically automatically generated in host computer Instruction is sent to the controller of energy accumulation current converter, and the first parameter can be preassigned.Here, can be by the ground of specified first parameter Location or title specify the first parameter.In the case of by specifying the first parameter name to specify the first parameter, can be in life Into before reading instruction, the title with the first parameter is searched in the distribution list of address by calling regular expression search engine Corresponding argument address, and the argument address that will be searched is used as the address of the first parameter.Address distribution list is previously stored In host computer.It is appreciated that the address of the first parameter can also be searched for using other ways of search.
The reading instruction of the first parameter is read alternatively, it is also possible to be generated in response to the associative operation of user in host computer And the reading instruction that will be generated is sent to the controller of energy accumulation current converter.First parameter can refer to according to the associative operation of user It is fixed.For example, the first parameter can be specified by receiving the title of the first parameter of user input.Here, may be in response to the first ginseng Several titles are transfused to, and are searched in the distribution list of address and first parameter by calling regular expression search engine The corresponding argument address of title, and the argument address that will be searched is used as the address of the first parameter.It is appreciated that here can be with The address of the first parameter is searched for using other ways of search.
Can be carried out data transmission using various communication modes between host computer and the controller of energy accumulation current converter, for example: Ethernet communication, controller LAN communication and serial communication etc..Correspondingly, between host computer and the controller of energy accumulation current converter Can be carried out data transmission by various communication interfaces, for example:Ethernet interface, controller LAN mouth and serial line interface.
In above-mentioned various communication modes, preferred ethernet communication, this is the speed due to ethernet communication, can be expired The rate request of the Refresh Data of foot controls.Debugging message is transmitted using ethernet interface, debugging system can be accelerated Response speed.In the case of using ethernet communication, can be via senior essence between host computer and the controller of energy accumulation current converter Line number is entered in the controller of simple instruction set processor (ARM) and energy accumulation current converter shared random access memory (RAM) space According to transmission.Particularly, when host computer sends data to the controller of energy accumulation current converter, host computer will by Ethernet interface To Ethernet, Ethernet transfers data to the Ethernet interface of ARM controller to data is activation, and ARM controller again deposits data Shared ram space is stored up, the corresponding module of the controller of energy accumulation current converter is then transferred data to;When energy accumulation current converter When controller sends data to host computer, the controller of energy accumulation current converter stores data into shared ram space, ARM controls Device transmits data to Ethernet by Ethernet interface, and Ethernet transfers data to the Ethernet interface of host computer.
The packet transmitted between host computer and the controller of energy accumulation current converter includes read-write mark, packet length, parameter Address and parameter value.Preferably, the packet for being transmitted between host computer and the controller of energy accumulation current converter may also include various Check code, for example, packet includes 16 CRCs.Check code is calculated by transmitting terminal and determines and be added to data Bao Zhong, when receiving terminal receives packet, can verify, it is to avoid data transfer is wrong according to check code to the packet for receiving The correctness of tune-up data is influenceed by mistake, improves the reliability of debugging.Fig. 6 shows packet according to an exemplary embodiment of the present invention Form.As shown in fig. 6, the packet transmitted between host computer and the controller of energy accumulation current converter includes read-write mark, bag Length, argument address, parameter value and check code, the length of packet is 12 bytes, wherein, the length of read-write mark and packet length Degree is all 1 byte, and the length of argument address and parameter value is all 4 bytes, and the length of check code is 2 bytes.
In step S20, the controller of energy accumulation current converter receives the reading sent by host computer and instructs, and is instructed according to reading The value of the parameter of address acquisition first of the first parameter for including, establishment includes the value of the address of the first parameter and the first parameter Packet, delivers a packet to host computer.Here, the controller of energy accumulation current converter can be according to the address of the first parameter from storage The value of the first parameter is obtained in device.As described above, exemplary embodiment of the invention, may also include 16 and follows in packet Ring redundancy check code.
In step S30, host computer receives the packet that the controller of energy accumulation current converter sends, according to the address of the first parameter Determine the title of the first parameter, the value of the title of the first parameter and the first parameter is shown.Here, can be by calling canonical Expression formula search engine searches for parameter name corresponding with the address of the first parameter in the distribution list of address, and will search Parameter name as the first parameter title.Global variable address distribution list text is searched for using regular expression search engine Part, it is possible to increase search efficiency and the degree of accuracy.It is appreciated that here the first ginseng can also be searched for using other ways of search Several titles.
Here, the title of the first parameter and the value of the first parameter can be shown using various forms in host computer, for example, The title of the first parameter and the value of the first parameter can be shown in the form of chart.
So, commissioning staff can just check the value of parameters in host computer, and according to the value of parameters come right Control program is debugged and the value of parameter is adjusted.
In in accordance with an alternative illustrative embodiment of the present invention, the adjustment method can also be by host computer to energy accumulation current converter Controller in the value of parameter of control program run modify.Specifically, can be generated the second ginseng in host computer Several values is revised as the write instruction of predetermined value, and write instruction is sent to the controller of energy accumulation current converter.Write instruction bag Include address and the predetermined value of the second parameter, the second parameter in the control program run in the controller of energy accumulation current converter for referring to Show the global variable of parameter to be modified in the debugging process of energy accumulation current converter.As an example, the debugging process of energy accumulation current converter The parameter of middle modification can be the proportionality coefficient or certain proportional integrator of certain proportional integrator in above-mentioned control program Integral coefficient etc..
The address of the second parameter indicates storage address of second parameter in the controller of energy accumulation current converter.Afterwards, energy storage The controller of current transformer receives the write instruction sent by host computer, and the second parameter included according to write instruction address The value of the second parameter is revised as predetermined value.
Here, can be generated in response to the associative operation of user in host computer and the value of the second parameter is revised as predetermined value Write instruction and the write instruction of generation is sent to the controller of energy accumulation current converter.Second parameter can be according to the correlation of user Operate to specify.For example, the second parameter can be specified by receiving the title of the second parameter of user input.Here, may be in response to The title of the second parameter is transfused to, and is searched in the distribution list of address and the second parameter by calling regular expression search engine The corresponding argument address of title, and the argument address that will be searched is used as the address of the second parameter.Address distribution list is pre- It is first stored in host computer.It is appreciated that the address of the second parameter can also be searched for using other ways of search here.
Fig. 2 is the debugging side of the energy accumulation current converter performed in host computer for showing exemplary embodiment of the invention The flow chart of method.
Reference picture 2, in step S201, generation is read the reading instruction of the first parameter and will read instruction and is sent to energy storage change Flow the controller of device.First parameter in the control program run in the controller of energy accumulation current converter for indicating energy accumulation current converter Debugging process in monitor parameter global variable, read instruction include the address of the first parameter, the address of the first parameter refers to Show storage address of first parameter in the controller of energy accumulation current converter.
In step S202, the packet that the controller of energy accumulation current converter sends in response to reading instruction is received, wherein, number According to the address for including the first parameter and the value of the first parameter.
In step S203, the address according to the first parameter determines the title of the first parameter.
In step S204, the value of the title of the first parameter and the first parameter is shown.
In accordance with an alternative illustrative embodiment of the present invention, the adjustment method can also include the steps of (not shown):It is raw The controller of energy accumulation current converter is sent into the write instruction that the value of the second parameter is revised as predetermined value and by write instruction, its In, write instruction includes address and the predetermined value of the second parameter, and the second parameter is the control run in the controller of energy accumulation current converter It is used for the global variable of parameter to be modified in the debugging process for indicate energy accumulation current converter in processing procedure sequence, the address of the second parameter refers to Show storage address of second parameter in the controller of energy accumulation current converter.
Fig. 3 is the debugging side performed in the controller of energy accumulation current converter for showing exemplary embodiment of the invention The flow chart of method.
In step S301, receive the reading sent by host computer and instruct, and the first parameter included according to reading instruction The parameter of address acquisition first value, wherein, the first parameter for energy accumulation current converter controller in run control program in use The global variable of the parameter monitored in the debugging process for indicating energy accumulation current converter, the address of the first parameter indicates the first parameter to exist Storage address in the controller of energy accumulation current converter.
In step S302, establishment includes the packet of the value of the address of the first parameter and the first parameter, and packet is sent out It is sent to host computer.
In accordance with an alternative illustrative embodiment of the present invention, the adjustment method can also include the steps of (not shown):Connect Receive the value by the second parameter sent by host computer and be revised as the write instruction of predetermined value, and the included according to write instruction The value of the second parameter is revised as predetermined value by the address of two parameters, wherein, the second parameter is fortune in the controller of energy accumulation current converter It is used for the global variable of parameter to be modified in the debugging process for indicate energy accumulation current converter in capable control program, the second parameter Address indicates storage address of second parameter in energy accumulation current converter.
Fig. 4 is that the debugging of the energy accumulation current converter being arranged in host computer for showing exemplary embodiment of the invention sets Standby structured flowchart.The commissioning device bag of the energy accumulation current converter being arranged in host computer of exemplary embodiment of the invention Include:Read instruction sending unit 401, packet receiving unit 402, title determining unit 403 and display unit 404.
The reading generation of instruction sending unit 401 is read the reading instruction of the first parameter and will read instruction and is sent to energy storage change Flow the controller of device.First parameter be in the control program run in controller for indicating the debugging process of energy accumulation current converter in The global variable of the parameter of monitoring.As an example, the parameter monitored in the debugging process of energy accumulation current converter can be:Energy storage unsteady flow Electric current of each phase of the voltage of the DC side of device, the electric current of DC side or AC etc..Reading instruction includes the first parameter Address, the address of the first parameter indicates storage address of first parameter in the controller of energy accumulation current converter.Energy accumulation current converter The control program run in controller is the program for controlling the operation of energy accumulation current converter.The controller of energy accumulation current converter can be with It is digital signal processor or other controllers.
Read instruction sending unit 401 can periodically automatically generate read the first parameter reading instruction and by generate The controller that instruction is sent to energy accumulation current converter is read, the first parameter can be preassigned.Here, can be by specifying the first parameter Address or title specify the first parameter.In the case of by specifying the first parameter name to specify the first parameter, can Before instruction is read in generation, searched in the distribution list of address and the first parameter by calling regular expression search engine The corresponding argument address of title, and the argument address that will be searched is used as the address of the first parameter.Address distribution list is advance Storage is in host computer.It is appreciated that the address of the first parameter can also be searched for using other ways of search.
In addition, the associative operation that reading instruction sending unit 401 may also respond to user reads the first parameter to generate Reading instruction and the reading instruction that will generate is sent to the controller of energy accumulation current converter.First parameter can be according to the correlation of user Operate to specify.For example, the first parameter can be specified by receiving the title of the first parameter of user input.Here, can respond It is transfused in the title of the first parameter, is searched in the distribution list of address and the first ginseng by calling regular expression search engine The corresponding argument address of several titles, and the argument address that will be searched is used as the address of the first parameter.It is appreciated that here also The address of the first parameter can be searched for using other ways of search.
Can be carried out data transmission using various communication modes between host computer and the controller of energy accumulation current converter, for example: Ethernet communication, controller LAN communication and serial communication etc..Correspondingly, between host computer and the controller of energy accumulation current converter Can be carried out data transmission by various communication interfaces, for example:Ethernet interface, controller LAN mouth and serial line interface.
In above-mentioned various communication modes, preferred ethernet communication, this is the speed due to ethernet communication, can be expired The rate request of the Refresh Data of foot controls.In the case of using ethernet communication, the control of host computer and energy accumulation current converter Can be via the shared random access memory of the controller of Advanced Reduced Instruction Set processor (ARM) and energy accumulation current converter between device processed Device (RAM) space carries out data transmission.Particularly, when host computer sends data to the controller of energy accumulation current converter, on Position machine transmits data to Ethernet by Ethernet interface, and Ethernet transfers data to the Ethernet interface of ARM controller, ARM controller stores data into shared ram space again, then transfer data to energy accumulation current converter controller it is corresponding Module;When the controller of energy accumulation current converter sends data to host computer, the controller of energy accumulation current converter is stored data into altogether The ram space enjoyed, ARM controller transmits data to Ethernet by Ethernet interface, and Ethernet transfers data to upper The Ethernet interface of machine.
The packet transmitted between host computer and the controller of energy accumulation current converter includes read-write mark, packet length, parameter Address and parameter value.Preferably, the packet for being transmitted between host computer and the controller of energy accumulation current converter may also include various Check code, for example, also including 16 CRCs in packet.The check code is calculated by transmitting terminal and determines and be added to In packet, when receiving terminal receives packet, the packet for receiving can be verified according to check code, it is to avoid data are passed The correctness of defeated erroneous effects tune-up data, improves the reliability of debugging.
Packet receiving unit 402 receives the packet that the controller of energy accumulation current converter sends in response to reading instruction, Wherein, packet includes the address of the first parameter and the value of the first parameter.16 CRCs are may also include in packet Code.
Title determining unit 403 determines the title of the first parameter according to the address of the first parameter.As described above, can be by adjusting Parameter name corresponding with the address of the first parameter is searched in the distribution list of address with regular expression search engine, and will be searched The parameter name that rope is arrived as the first parameter title.It is appreciated that can also be searched for using other ways of search here The title of the first parameter.
Display unit 404 is shown the value of the title of the first parameter and the first parameter.
In accordance with an alternative illustrative embodiment of the present invention, the commissioning device may also include write instruction transmitting element (not Show).The value of the second parameter is revised as the write instruction of predetermined value and sends out write instruction by the generation of write instruction transmitting element The controller of energy accumulation current converter is sent to, wherein, write instruction includes address and the predetermined value of the second parameter, and the second parameter is energy storage For parameter to be modified in the debugging process for indicating energy accumulation current converter in the control program run in the controller of current transformer Global variable.As an example, the parameter changed in the debugging process of energy accumulation current converter can be certain in above-mentioned control program The proportionality coefficient of proportional integrator or certain proportional integrator integral coefficient etc.., the address of the second parameter indicates the second parameter Storage address in the controller of energy accumulation current converter.
As described above, can be generated in response to the associative operation of user in host computer the value of the second parameter is revised as it is pre- The write instruction of generation is simultaneously sent to the controller of energy accumulation current converter for the write instruction of definite value.Second parameter can be according to user's Associative operation is specified.For example, the second parameter can be specified by receiving the title of the second parameter of user input.Here, can ring Should be transfused in the title of the second parameter, be searched in the distribution list of address and second by calling regular expression search engine The corresponding argument address of title of parameter, and the argument address that will be searched is used as the address of the second parameter.Address distribution list It is pre-stored in host computer.It is appreciated that the ground of the second parameter can also be searched for using other ways of search here Location.
Fig. 5 is that the debugging being arranged in the controller of energy accumulation current converter for showing exemplary embodiment of the invention sets Standby structured flowchart.The commissioning device bag being arranged in the controller of energy accumulation current converter of exemplary embodiment of the invention Include reading instruction reception unit 501 and packet transmitting element 502.
Read instruction reception unit 501 and receive the reading instruction sent by host computer, and instruct what is included according to reading The value of the parameter of address acquisition first of the first parameter, wherein, the first parameter is the control run in the controller of energy accumulation current converter It is used to indicating the global variable of parameter monitored in the debugging process of energy accumulation current converter in program, the address of the first parameter indicates the Storage address of one parameter in the controller of energy accumulation current converter.
Packet transmitting element 502 is created includes the packet of the value of the address of the first parameter and the first parameter, and by number Host computer is sent to according to bag.As described above, may also include 16 CRCs in packet.
In accordance with an alternative illustrative embodiment of the present invention, the commissioning device may also include write instruction receiving unit (not Show).Write instruction receiving unit receives the write instruction that the value by the second parameter sent by host computer is revised as predetermined value, And the value of the second parameter is revised as predetermined value by the address of the second parameter included according to write instruction, wherein, the second parameter It is to be modified in the debugging process for indicate energy accumulation current converter to be used in the control program of operation in the controller of energy accumulation current converter The global variable of parameter, the address of the second parameter indicates storage address of second parameter in the controller of energy accumulation current converter.
The adjustment method and commissioning device of the energy accumulation current converter of exemplary embodiment of the invention, by host computer In the parameter of program run in controller show to debug, will not be to the operation sequential of control system generation shadow Ring.Additionally, the adjustment method and commissioning device of the energy accumulation current converter of exemplary embodiment of the invention can also be by upper Machine is modified to the value of the parameter of the control program in controller.
Exemplary embodiment of the invention is realized needs the real time data for carrying out to supervise in energy accumulation current converter debugging process Control and changed with quantity of state, use ethernet communication so that system data refreshes or write cycle is less than 100us, satisfaction debugging energy storage The Refresh Data rate requirement of converter control system.And this adjustment method only used the existing hardware of energy accumulation current converter system Equipment and means of communication, it is not necessary to be equipped with other optional equipments (need not increase special debugging emulation hardware device), reduce Debugging system cost.Control System Software runs the requirement that sequential is not interrupted with logic during meeting monitoring simultaneously. The presence of data checking mechanisms it also avoid non-caused by the mistake of data display and down-transmitting data error of transmission in debugging process Expected control.
Moreover, it should be understood that the adjustment method of energy accumulation current converter of the invention can also be realized remembering for computer-readable Computer-readable code on recording medium.Computer readable recording medium storing program for performing is can to store the number that can be read by computer system thereafter According to arbitrary data storage device.The example of computer readable recording medium storing program for performing includes:Read-only storage (ROM), arbitrary access are deposited Reservoir (RAM), CD-ROM, tape, floppy disk, optical data storage devices and carrier wave (such as pass through through wired or wireless transmission path The data transfer of internet).Computer readable recording medium storing program for performing also can be distributed in the computer system of connection network, so that computer Readable code is stored and performed in a distributed manner.Additionally, complete function program of the invention, code and code segment can easily by with The ordinary programmers in related field of the invention explain within the scope of the present invention.
Additionally, the unit in the commissioning device of the energy accumulation current converter of exemplary embodiment of the invention can be complete Realized by hardware, such as field programmable gate array (FPGA) or application specific integrated circuit (ASIC);Can also be by hardware and soft Mode that part is combined is realized;Can also be realized with software mode by computer program completely.
Although the present invention, those skilled in the art are particularly shown and described with reference to its exemplary embodiment It should be understood that in the case where the spirit and scope of the present invention that claim is limited are not departed from, form can be carried out to it With the various changes in details.

Claims (22)

1. it is a kind of in host computer perform energy accumulation current converter adjustment method, it is characterised in that the adjustment method includes:
A) generation is read the reading instruction of the first parameter and reads the controller that instruction is sent to energy accumulation current converter by described, its In, first parameter is for being supervised in the debugging process for indicating energy accumulation current converter in the control program run in the controller The global variable of the parameter of control, the reading instruction includes the address of first parameter, and the address of first parameter indicates First parameter storage address in the controller;
B the controller) is received in response to the packet for reading instruction and sending, wherein, the packet includes first The address of parameter and the value of the first parameter;
C) address according to first parameter determines the title of first parameter;
D) value of the title of first parameter and first parameter is shown.
2. adjustment method according to claim 1, it is characterised in that the adjustment method also includes:
The value of the second parameter is revised as the write instruction of predetermined value and instructs said write to be sent to the control by E) generation Device, wherein, said write instruction includes the address of second parameter and the predetermined value, and second parameter is the control It is described for the global variable of parameter to be modified in the debugging process for indicating energy accumulation current converter in the control program run in device The address of the second parameter indicates second parameter storage address in the controller.
3. adjustment method according to claim 1, it is characterised in that step C) include:Searched by calling regular expression Index is held up and parameter name corresponding with the address of first parameter is searched in the distribution list of address, and the parameter that will be searched Name is referred to as the title of first parameter.
4. adjustment method according to claim 1, it is characterised in that also include 16 cyclic redundancy schools in the packet Test code.
5. adjustment method according to claim 1 and 2, it is characterised in that the host computer by following either interface with The controller carries out data transmission:Ethernet interface, controller LAN interface and serial line interface.
6. adjustment method according to claim 5, it is characterised in that the host computer by Ethernet interface, via height The RAM space that level compacting instruction set processor is shared with the controller, data biography is carried out with the controller It is defeated.
7. adjustment method according to claim 2, it is characterised in that in step A) in, in response to first parameter Title is transfused to, and the title with first parameter is searched in the distribution list of address by calling regular expression search engine Corresponding argument address, and the argument address that will be searched is used as the address of first parameter;
In step E) in, the title in response to second parameter is transfused to, by calling regular expression search engine on ground Search for argument address corresponding with the title of second parameter in the distribution list of location, and the argument address that will be searched is used as institute State the address of the second parameter.
8. it is a kind of in the controller of energy accumulation current converter perform adjustment method, it is characterised in that the adjustment method includes:
A the reading sent by host computer) is received to instruct, and according to the address acquisition for reading the first parameter that instruction includes The value of first parameter, wherein, first parameter is for indicating energy storage in the control program run in the controller The global variable of the parameter monitored in the debugging process of current transformer, the address of first parameter indicates first parameter in institute State the storage address in controller;
B) creating includes the packet of the value of the address of first parameter and first parameter, and the packet is sent To the host computer.
9. adjustment method according to claim 8, it is characterised in that also include:
C) receive the value by the second parameter sent by host computer and be revised as the write instruction of predetermined value, and referred to according to said write The value of second parameter is revised as the predetermined value by the address of second parameter that order includes, wherein, described second Parameter is for parameter to be modified in the debugging process for indicating energy accumulation current converter in the control program run in the controller Global variable, the address of second parameter indicates second parameter storage address in the controller.
10. adjustment method according to claim 8 or claim 9, it is characterised in that the controller by following either interface with The host computer carries out data transmission:Ethernet interface, controller LAN interface and serial line interface.
11. adjustment methods according to claim 8, it is characterised in that also include 16 cyclic redundancies in the packet Check code.
12. a kind of adjustment methods of energy accumulation current converter, it is characterised in that the adjustment method includes:
A) generated in host computer and read reading instruction and the reading instruction being sent to energy accumulation current converter for the first parameter Controller, wherein, first parameter is for indicating the tune of energy accumulation current converter in the control program run in the controller The global variable of the parameter monitored during examination, the reading instruction includes the address of the first parameter, the ground of first parameter Location indicates first parameter storage address in the controller;
B) controller receives the reading sent by host computer and instructs, the first parameter included according to the reading instruction The value of the first parameter described in address acquisition, establishment includes the data of the value of the address of first parameter and first parameter Bag, the host computer is sent to by the packet;
C) host computer receives the packet that the controller sends, and the address according to first parameter determines described first The title of parameter, the value of the title of first parameter and first parameter is shown.
13. adjustment methods according to claim 12, it is characterised in that also include:
D the write instruction that the value of the second parameter is revised as predetermined value) is generated in host computer, and said write is instructed into transmission To the controller, wherein, said write instruction includes the address of second parameter and the predetermined value, second parameter To be used for the complete of parameter to be modified in the debugging process for indicate energy accumulation current converter in the control program of operation in the controller Office's variable, the address of second parameter indicates second parameter storage address in the controller;
E) controller receives the write instruction sent by host computer, and the second parameter included according to said write instruction Address the value of the second parameter is revised as the predetermined value.
14. a kind of commissioning devices of the energy accumulation current converter being arranged in host computer, it is characterised in that the commissioning device includes:
Instruction sending unit is read, generation is read the reading instruction of the first parameter and the reading instruction is sent into energy storage unsteady flow The controller of device, wherein, first parameter is for indicating energy accumulation current converter in the control program run in the controller Debugging process in the global variable of parameter that monitors, reading instruction includes the address of first parameter, described first The address of parameter indicates first parameter storage address in the controller;
Packet receiving unit, receives the controller in response to the packet for reading instruction and sending, wherein, the number According to the address for including the first parameter and the value of the first parameter,
Title determining unit, the address according to first parameter determines the title of first parameter;
Display unit, the value of the title of first parameter and first parameter is shown.
15. commissioning devices according to claim 14, it is characterised in that the commissioning device also includes:
The value of the second parameter is revised as the write instruction of predetermined value and instructs said write by write instruction transmitting element, generation The controller is sent to, wherein, said write instruction includes the address of second parameter and the predetermined value, described second Parameter is for parameter to be modified in the debugging process for indicating energy accumulation current converter in the control program run in the controller Global variable, the address of second parameter indicates second parameter storage address in the controller.
16. commissioning devices according to claim 14, it is characterised in that title determining unit is by calling regular expression Search engine searches for parameter name corresponding with the address of first parameter, and the ginseng that will be searched in the distribution list of address Several titles for being referred to as first parameter.
17. commissioning device according to claims 14 or 15, it is characterised in that the host computer passes through following either interface Carry out data transmission with the controller:Ethernet interface, controller LAN interface and serial line interface.
18. commissioning devices according to claim 17, it is characterised in that the host computer passes through Ethernet interface, via Random access memory (RAM) space that Advanced Reduced Instruction Set processor is shared with the controller, enters with the controller Row data transfer.
19. commissioning devices according to claim 14, it is characterised in that read instruction sending unit in response to described first The title of parameter is transfused to, and is searched in the distribution list of address and first parameter by calling regular expression search engine The corresponding argument address of title, and the argument address that will be searched is used as the address of first parameter;
Write instruction transmitting element is transfused in response to the title of second parameter, by calling regular expression search engine Argument address corresponding with the title of second parameter is searched in the distribution list of address, and the argument address that will be searched is made It is the address of second parameter.
20. a kind of commissioning devices being arranged in energy accumulation current converter, it is characterised in that the commissioning device includes:
Instruction reception unit is read, the reading sent by host computer is received and is instructed, and instruction includes the is read according to described The value of the first parameter described in the address acquisition of one parameter, wherein, during first parameter is the controller of the energy accumulation current converter It is used for the global variable of the parameter of monitoring in the debugging process for indicate energy accumulation current converter, first ginseng in the control program of operation Several addresses indicates first parameter storage address in the controller;
Packet transmitting element, establishment includes the packet of the value of the address of first parameter and first parameter, and will The packet is sent to the host computer.
21. commissioning devices according to claim 20, it is characterised in that also include:
Write instruction receiving unit, receives the write instruction that the value by the second parameter sent by host computer is revised as predetermined value, And the value of second parameter is revised as described making a reservation for by the address of second parameter included according to said write instruction Value, wherein, second parameter is for indicating the debugging of energy accumulation current converter in the control program run in the controller The global variable of parameter to be modified in journey, the address of second parameter indicates second parameter storage in the controller Address.
22. commissioning device according to claim 20 or 21, it is characterised in that the controller passes through following either interface Carry out data transmission with the host computer:Ethernet interface, controller LAN interface and serial line interface.
CN201611208933.5A 2016-12-23 2016-12-23 The adjustment method and commissioning device of energy accumulation current converter Active CN106776329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611208933.5A CN106776329B (en) 2016-12-23 2016-12-23 The adjustment method and commissioning device of energy accumulation current converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611208933.5A CN106776329B (en) 2016-12-23 2016-12-23 The adjustment method and commissioning device of energy accumulation current converter

Publications (2)

Publication Number Publication Date
CN106776329A true CN106776329A (en) 2017-05-31
CN106776329B CN106776329B (en) 2019-06-18

Family

ID=58919229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611208933.5A Active CN106776329B (en) 2016-12-23 2016-12-23 The adjustment method and commissioning device of energy accumulation current converter

Country Status (1)

Country Link
CN (1) CN106776329B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844385A (en) * 2017-11-08 2018-03-27 北京潘达互娱科技有限公司 A kind of variable read-write method and device based on shared drive
CN109672509A (en) * 2019-01-18 2019-04-23 北京工业大学 Communication means and communication system in shield machine cabin
CN110297148A (en) * 2019-08-05 2019-10-01 江苏凌创电气自动化股份有限公司 A kind of test macro for PCS energy storage
CN111025057A (en) * 2019-12-06 2020-04-17 平高集团有限公司 Energy storage PCS test platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040008050A1 (en) * 1998-11-13 2004-01-15 Mehdi Hatamian Dynamic register with IDDQ testing capability
CN203365573U (en) * 2013-06-28 2013-12-25 张双全 Electric power parameter monitoring device for intelligent electrical network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040008050A1 (en) * 1998-11-13 2004-01-15 Mehdi Hatamian Dynamic register with IDDQ testing capability
CN203365573U (en) * 2013-06-28 2013-12-25 张双全 Electric power parameter monitoring device for intelligent electrical network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844385A (en) * 2017-11-08 2018-03-27 北京潘达互娱科技有限公司 A kind of variable read-write method and device based on shared drive
CN107844385B (en) * 2017-11-08 2021-04-23 北京龙之心科技有限公司 Variable read-write method and device based on shared memory
CN109672509A (en) * 2019-01-18 2019-04-23 北京工业大学 Communication means and communication system in shield machine cabin
CN110297148A (en) * 2019-08-05 2019-10-01 江苏凌创电气自动化股份有限公司 A kind of test macro for PCS energy storage
CN111025057A (en) * 2019-12-06 2020-04-17 平高集团有限公司 Energy storage PCS test platform

Also Published As

Publication number Publication date
CN106776329B (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN106776329B (en) The adjustment method and commissioning device of energy accumulation current converter
CN103812726B (en) Automated testing method and device for data communication equipment
CN107341098A (en) Software performance testing method, platform, equipment and storage medium
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN104866465A (en) Sensitive text detection method and device
CN109213675A (en) Software analysis platform
CN106209515B (en) Automatic test system for access network equipment
CN110083541B (en) Game test method, game test device, computer storage medium and electronic equipment
WO2017000424A1 (en) Protocol detection method and apparatus
US8291388B2 (en) System, method and program for executing a debugger
CN106294094A (en) The method of testing of game server, client, server and system
CN108415857B (en) Universal processing method for serial port data
CN104796240A (en) Fuzz testing system for stateful network protocol
JP2011227902A (en) Systems and methods for synchronization of external control system with fieldbus devices
CN104836713A (en) Measurement and calibration method for vehicle electronic controller, device and system
CN102594618A (en) Method and device for realizing storage device test of storage area network (SAN)
CN109714221A (en) The determination method, apparatus and system of network packet
CN109445837A (en) A kind of dissemination method and equipment of application program
WO2021120544A1 (en) Method and apparatus for debugging device
CN103544095A (en) Server program monitoring method and system of server program
CN104978262A (en) Terminal test method and terminal test device
CN106027674A (en) Technology architecture of "Internet & smart manufacturing"
CN111104139A (en) Firmware upgrading method, device, equipment and storage medium
CN113572726A (en) Multi-mode network control-data plane consistency verification method and device
CN106961361A (en) From detection/processing method, apparatus and 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230423

Address after: Building 1, No. 8 Boxing 1st Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing, 100176 (Yizhuang Cluster, High end Industrial Zone, Beijing Pilot Free Trade Zone)

Patentee after: Beijing Jinfeng Zero Carbon Energy Co.,Ltd.

Address before: 100176 No. 8 Boxing Road, Daxing District, Beijing Economic and Technological Development Zone

Patentee before: BEIJING ETECHWIN ELECTRIC Co.,Ltd.