CN111025166A - Debugger for battery detection system - Google Patents
Debugger for battery detection system Download PDFInfo
- Publication number
- CN111025166A CN111025166A CN201911376534.3A CN201911376534A CN111025166A CN 111025166 A CN111025166 A CN 111025166A CN 201911376534 A CN201911376534 A CN 201911376534A CN 111025166 A CN111025166 A CN 111025166A
- Authority
- CN
- China
- Prior art keywords
- battery detection
- script program
- virtual machine
- debugger
- virtual
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/385—Arrangements for measuring battery or accumulator variables
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/367—Software therefor, e.g. for battery testing using modelling or look-up tables
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a debugger for a battery detection system, which is upper computer software developed at a PC (personal computer) end, and is used for tracking the actual running condition of a script program in battery detection equipment, and the debugger comprises a network communication module, an interface display module and an operation module, and has the beneficial effects that: the running condition of the script program in the battery detection equipment is tracked through the debugger, the running and the stopping of the script program are controlled, and the running result of each step is checked, so that the error of the script program is positioned, the time, the labor and the material resources for checking the script program are greatly reduced, the test period is shortened, the compiling complexity of the script program is reduced, and the test development is facilitated.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of battery detection, in particular to a debugger for a battery detection system.
[ background of the invention ]
With the continuous development of science and technology, the power electronics industry develops particularly rapidly, and various electronic products for civil use, industrial use, medical use and the like enter the daily life of people. Because portable electronic products are more convenient to carry and use, the portable electronic products are more popular, and the portable power source is an indispensable part of portable electronic products. And the power battery, which is a power source of new energy automobiles and electric vehicles and is developed rapidly at present, has the advantages of high energy, high power, high energy density, long service life, safety, reliability and the like, and the development of the power battery directly determines the development prospect of new energy automobiles and the like. The method is more flexible, meets multifunctional testing requirements greatly, but the script program compiling process is relatively more complex and is easy to make mistakes. Due to the complexity of script program writing, it still cannot be guaranteed that the script program is written in hundreds of percent correct or meets the requirements after manual inspection, multiple times of test verification are often needed, the problem of the script program is analyzed according to the test result, but sometimes, the error is not positioned according to the test result, the running of the script program needs to be analyzed step by step, a large amount of time, manpower and material resources are consumed, and the test period is prolonged.
[ summary of the invention ]
The invention aims to solve the problems that when a complicated battery detection system script program is compiled, errors occur, the position of the errors cannot be quickly positioned, and the running of the script program needs to be gradually analyzed, so that a large amount of time, manpower and material resources are consumed, and the test period is prolonged.
The invention is realized by the following technical scheme:
a debugger for a battery detection system is upper computer software developed at a PC (personal computer) end and used for tracking the actual running condition of a script program in a virtual machine of battery detection equipment, and comprises a network communication module, an interface display module and an operation module;
the network communication module is a channel for the interaction of commands and data between other modules in the debugger and the virtual machine of the battery detection equipment, and the compiled script program is sent to the virtual machine of the battery detection equipment through the network communication module;
the interface display module displays a source script program and a compiled script program, receives a virtual register list and a virtual memory in the virtual machine of the battery detection equipment from the network communication module, displays a virtual register list value and a virtual memory variable value, can modify the memory variable value, and sends a modification instruction to the virtual machine of the battery detection equipment through the network communication module;
the operation module provides operation function buttons for controlling the script program to run in the virtual machine of the battery detection equipment in one step, run at full speed, stop, add breakpoints and reset, and sends a control instruction to the virtual machine of the battery detection equipment through the network communication module.
Furthermore, the script program is a test flow file compiled by the upper computer, and the test flow file can be directly issued to the virtual machine of the battery detection equipment to run after being compiled by the upper computer, so as to control the virtual machine of the battery detection equipment to perform battery test.
Further, the virtual machine of the battery detection device comprises a virtual processor, a virtual register list and a virtual memory, and is used for loading, decoding and executing the compiled script program.
Furthermore, the virtual register list value and the virtual memory value displayed by the interface display module can reflect the running condition of the script program in the virtual machine of the battery detection device.
The invention has the beneficial effects that:
(1) the running condition of the script program in the virtual machine of the battery detection equipment is tracked through the debugger, the running and the stopping of the script program are controlled, and the running result of each step is checked, so that the position of the script program error is positioned, the time, the labor and the material resources for checking the script program are greatly reduced, the test period is shortened, the compiling complexity of the script program is reduced, and the test development is facilitated;
(2) the debugger directly communicates with the virtual machine of the battery detection equipment through the network communication module, data interaction is carried out, only the network cable is needed to be connected with the PC end, extra tools are not needed, the script program can be debugged, and the debugger is more convenient to use.
[ description of the drawings ]
FIG. 1 is a schematic diagram of a debugger for a battery detection system according to the present invention;
reference numerals: 1. a debugger; 11. a network communication module; 12. an interface display module; 120. a source script program; 121. compiling the script program; 122. a virtual register list value; 123. a virtual memory variable value; 124. modifying the memory variable value; 13. an operation module; 130. single step operation; 131. running at full speed; 132. stopping; 133. adding a breakpoint; 134. resetting; 2. a battery detection device virtual machine; 21. a virtual processor; 22. a virtual register list; 23. and (5) virtual memory.
[ detailed description ] embodiments
The invention is further described with reference to the accompanying drawings and the detailed description:
as shown in fig. 1, a debugger for a battery detection system, where the debugger 1 is upper computer software developed at a PC, the debugger 1 is used to track actual running conditions of a script program in a battery detection device, and the debugger 1 includes a network communication module 11, an interface display module 12, and an operation module 13;
the network communication module 11 is a channel for performing command and data interaction between other modules in the debugger 1 and the battery detection device virtual machine 2, and the compiled script program 121 is sent to the battery detection device virtual machine 2 through the network communication module 11;
the interface display module 12 displays the source script program 120 and the compiled script program 121, receives the virtual register list 22 and the virtual memory 23 in the battery detection device virtual machine 2 from the network communication module 11, displays the virtual register list value 122 and the virtual memory variable value 123, can modify 124 the memory variable value, and sends a modification instruction to the battery detection device virtual machine 2 through the network communication module 11;
the operation module 13 provides operation function buttons for controlling the script program to run 130, run 131 at full speed, stop 132, add a breakpoint 133, and reset 134 in the virtual machine 2 of the battery detection device, and sends a control instruction to the virtual machine 2 of the battery detection device through the network communication module 11.
Preferably, the script program is a test flow file compiled by the upper computer, and the test flow file can be directly issued to the virtual machine 2 of the battery detection device to run after being compiled by the upper computer, so as to control the virtual machine 2 of the battery detection device to perform the battery test.
Preferably, the virtual machine 2 of the battery detection device includes a virtual processor 21, a virtual register list 22, and a virtual memory 23, and loads, decodes, and executes the compiled script program 121.
Preferably, the virtual register list value 122 and the virtual memory variable value 123 displayed by the interface display module 12 may reflect the running condition of the script program in the battery detection device virtual machine 2.
Appropriate changes and modifications to the embodiments described above will become apparent to those skilled in the art from the disclosure and teachings of the foregoing description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.
Claims (4)
1. A debugger for a battery detection system, the debugger being upper computer software developed at a PC side, characterized in that: the debugger is used for tracking the actual running condition of the script program in the virtual machine of the battery detection equipment, and comprises a network communication module, an interface display module and an operation module;
the network communication module is a channel for the interaction of commands and data between other modules in the debugger and the virtual machine of the battery detection equipment, and the compiled script program is sent to the virtual machine of the battery detection equipment through the network communication module;
the interface display module displays a source script program and a compiled script program, receives a virtual register list and a virtual memory in the virtual machine of the battery detection equipment from the network communication module, displays a virtual register list value and a virtual memory variable value, can modify the memory variable value, and sends a modification instruction to the virtual machine of the battery detection equipment through the network communication module;
the operation module provides operation function buttons for controlling the script program to run in the virtual machine of the battery detection equipment in one step, run at full speed, stop, add breakpoints and reset, and sends a control instruction to the virtual machine of the battery detection equipment through the network communication module.
2. The debugger for battery detection system according to claim 1, wherein: the script program is a test flow file compiled by the upper computer, and can be directly issued to the virtual machine of the battery detection equipment to run after being compiled by the upper computer, so as to control the virtual machine of the battery detection equipment to carry out battery test.
3. The debugger for battery detection system according to claim 1, wherein: the virtual machine of the battery detection equipment comprises a virtual processor, a virtual register list and a virtual memory, and is used for loading, decoding and executing a compiled script program.
4. The debugger for battery detection system according to claim 1, wherein: the virtual register list value and the virtual memory value displayed by the interface display module can reflect the running condition of the script program in the virtual machine of the battery detection equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911376534.3A CN111025166A (en) | 2019-12-27 | 2019-12-27 | Debugger for battery detection system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911376534.3A CN111025166A (en) | 2019-12-27 | 2019-12-27 | Debugger for battery detection system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111025166A true CN111025166A (en) | 2020-04-17 |
Family
ID=70194557
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911376534.3A Pending CN111025166A (en) | 2019-12-27 | 2019-12-27 | Debugger for battery detection system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111025166A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114019285A (en) * | 2021-11-05 | 2022-02-08 | 深圳市新威尔电子有限公司 | Open circuit detection method of battery detection equipment |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1645339A (en) * | 2005-01-31 | 2005-07-27 | 浙江大学 | Debugging method for applied programm in simulator of embedded system |
| CN103593292A (en) * | 2013-11-19 | 2014-02-19 | 北京深思数盾科技有限公司 | System and method for program debugging |
| CN104321660A (en) * | 2012-05-23 | 2015-01-28 | 株式会社Lg化学 | System and method for generating diagnostic test files associated with a battery pack |
| CN106560797A (en) * | 2016-08-24 | 2017-04-12 | 北京安天电子设备有限公司 | Debugger-based unit testing system and method |
| CN108628734A (en) * | 2017-03-21 | 2018-10-09 | 中兴通讯股份有限公司 | A kind of function program adjustment method and terminal |
| CN108664380A (en) * | 2017-03-30 | 2018-10-16 | 中国航空工业集团公司西安航空计算技术研究所 | Software debugging system and adjustment method after a kind of execution shown with performance |
| CN108845269A (en) * | 2018-07-09 | 2018-11-20 | 北京车和家信息技术有限公司 | Battery testing method and battery test system |
| CN109213680A (en) * | 2018-08-28 | 2019-01-15 | 康烁 | Automated testing method based on embedded system simulation device |
-
2019
- 2019-12-27 CN CN201911376534.3A patent/CN111025166A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1645339A (en) * | 2005-01-31 | 2005-07-27 | 浙江大学 | Debugging method for applied programm in simulator of embedded system |
| CN104321660A (en) * | 2012-05-23 | 2015-01-28 | 株式会社Lg化学 | System and method for generating diagnostic test files associated with a battery pack |
| CN103593292A (en) * | 2013-11-19 | 2014-02-19 | 北京深思数盾科技有限公司 | System and method for program debugging |
| CN106560797A (en) * | 2016-08-24 | 2017-04-12 | 北京安天电子设备有限公司 | Debugger-based unit testing system and method |
| CN108628734A (en) * | 2017-03-21 | 2018-10-09 | 中兴通讯股份有限公司 | A kind of function program adjustment method and terminal |
| CN108664380A (en) * | 2017-03-30 | 2018-10-16 | 中国航空工业集团公司西安航空计算技术研究所 | Software debugging system and adjustment method after a kind of execution shown with performance |
| CN108845269A (en) * | 2018-07-09 | 2018-11-20 | 北京车和家信息技术有限公司 | Battery testing method and battery test system |
| CN109213680A (en) * | 2018-08-28 | 2019-01-15 | 康烁 | Automated testing method based on embedded system simulation device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114019285A (en) * | 2021-11-05 | 2022-02-08 | 深圳市新威尔电子有限公司 | Open circuit detection method of battery detection equipment |
| CN114019285B (en) * | 2021-11-05 | 2024-06-11 | 深圳市新威尔电子有限公司 | Open circuit detection method for battery detection equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113961453B (en) | Aviation airborne software full digital simulation test system | |
| CN104407980B (en) | Mobile solution automatic test device and method | |
| CN103984612B (en) | A method of unattended stress testing based on HPL tools | |
| US9852038B2 (en) | Debugging system and debugging method of multi-core processor | |
| CN110907882B (en) | A testing method and system for virtualization of electric energy meters | |
| CN102522128A (en) | Method and system for testing configuration logic design of DCS (Distributed Control System) of nuclear power station | |
| US9117018B2 (en) | Method of debugging software and corresponding computer program product | |
| CN101853203B (en) | Online test system for embedded software | |
| CN104699523B (en) | For the adjustment method and system of the application program that hardware platform is developed | |
| CN108427640A (en) | A method of debugging driver under User space | |
| CN117787155A (en) | Chip testability code dynamic simulation test system and test method | |
| CN106445803A (en) | Security-critical embedded software target code coverage analysis method | |
| CN104199770B (en) | A kind of automated testing method of mobile phone music APK | |
| CN111025166A (en) | Debugger for battery detection system | |
| CN109144849B (en) | Embedded software debugging method | |
| CN102707943A (en) | A Realization Method of Remote Control Automation Tool | |
| CN111044925A (en) | Simulator for battery detection system | |
| CN205844891U (en) | A kind of motor driven algorithm debugging system of electrical automobile driver | |
| CN108614516A (en) | A kind of virtual PLC analogue system and method | |
| JP5212508B2 (en) | Debug device | |
| CN1979422A (en) | Simulation device and method for obtaining application code execution rate | |
| CN110955605A (en) | Method for verifying single step dynamic execution by CPU | |
| CN105446882B (en) | The method of testing of family expenses and similar applications electrical equipment software evaluation Black-box Testing system | |
| CN102567187B (en) | A kind of method utilizing C++test to perform SCADE tested object | |
| JP2803090B2 (en) | MPU simulation method and MPU simulator |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200417 |
|
| WD01 | Invention patent application deemed withdrawn after publication |