CN116183995A - Current acquisition method, system, current acquisition device and storage medium - Google Patents

Current acquisition method, system, current acquisition device and storage medium Download PDF

Info

Publication number
CN116183995A
CN116183995A CN202211619732.XA CN202211619732A CN116183995A CN 116183995 A CN116183995 A CN 116183995A CN 202211619732 A CN202211619732 A CN 202211619732A CN 116183995 A CN116183995 A CN 116183995A
Authority
CN
China
Prior art keywords
current
product
acquisition
data
tested
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
Application number
CN202211619732.XA
Other languages
Chinese (zh)
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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN202211619732.XA priority Critical patent/CN116183995A/en
Publication of CN116183995A publication Critical patent/CN116183995A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention provides a current collection method, a system, a current collection device and a storage medium, wherein the method comprises the following steps: initializing a current acquisition equipment end; setting acquisition parameters; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested; connecting a target database; and based on the current state of the product to be detected, collecting current data of the product to be detected according to the collection parameters, and writing the current data into the target database to complete collection and storage of the current of the product to be detected. The invention can realize continuous long-time high-speed acquisition of the working current and the static current of the product, store data and can be used for making a data report.

Description

Current acquisition method, system, current acquisition device and storage medium
Technical Field
The invention relates to the field of current testing, in particular to a current collection method, a system, current collection equipment and a storage medium.
Background
Electric vehicles are a new direction of development of future vehicles, wherein a power management technology is an important component of a core technology of the electric vehicles, and in the power management technology of the electric vehicles, acquisition of current data is an essential operation. The reliability of current data acquisition and calculation can directly influence the accuracy of the residual electric quantity of the battery and the driving safety of the electric automobile.
The current test is an important test item for product test, basically a necessary test item for product test, and the following technical problems exist in the prior art: 1. the current flow acquisition software cannot adapt to the change of the measuring range of the acquisition instrument, and difficulties exist when process data of which the continuous working state can change are required; 2. the accuracy of the current acquisition equipment is not high enough, and the sampling rate is not fast enough; 3. millions of levels of storage functionality are lacking.
Disclosure of Invention
Accordingly, the present invention is directed to a current collecting method, system, current collecting device and storage medium, which can continuously collect working current and quiescent current of a product at a high speed for a long time, store data, and use the stored data for making a data report.
The invention provides a current collection method, which comprises the following steps:
s1: initializing a current acquisition equipment end.
S2: setting acquisition parameters; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested.
S3: and connecting the target database.
S4: and based on the current state of the product to be detected, collecting current data of the product to be detected according to the collection parameters, and writing the current data into the target database to complete collection and storage of the current of the product to be detected.
Preferably, the test information includes at least: test unit number, product model number and product number;
the current range covers the A level and the mu A level;
the sampling time length is less than or equal to M hours;
the sampling rate is less than or equal to NkHz.
Preferably, an upper computer developed through Labview graphic programming language runs the current collection program.
Preferably, the current acquisition equipment uses NI-USB4065, and the current measurement below 3.5A is satisfied, and the precision and the sampling rate both satisfy the requirements.
Preferably, M is 12 and N is 1.
The upper computer is developed by using Labview graphic programming language, and after the program is run, the USB-4065 equipment is initialized through a communication protocol of the current acquisition equipment end; after initialization, an experimenter inputs product test information and sets sampling rate, after configuration is finished, a start key is pressed, testing is started, when the working state of a product changes, the acquired precision meets the requirement by selecting a range corresponding to an upper computer, acquired data is stored through an ACCESS, a 1-minute data table is generated every hour, the data table can be named by time, the experiment is finished, and the data acquisition and storage are stopped by clicking.
In the technical scheme, the range of the current acquisition equipment needs to be covered with the A level and the mu A level, so that the precision is high, and the sampling rate is high; the current acquisition software needs to contain the change of the measuring range of the acquisition instrument, and the sampling rate reaches 1KHz and can be set downwards; the test software needs to have a big data storage function; the test software can automatically generate a data report; the continuous long-time high-speed collection of the working current and the static current of the product is realized, the data is stored, and the stored data can be used for making a data report.
Further, the step S3 specifically includes:
s31: if the program runs for the first time, a new database is created as a target database and connected, and S33 is entered; otherwise, S32 is entered.
S32: judging whether the current equipment to be tested has a target database according to the product number, if so, connecting the existing target database, otherwise, creating a new database as the target database and connecting the new database.
S33: a data table is created in the connected target database.
According to the technical scheme, aiming at the collected data with the sampling rate of 1kHz and the sampling time of 12 hours and tens of millions, each product number corresponds to one target database, so that the task of updating the data table becomes simple and orderly, the speed and efficiency of data table synchronization among the databases can be improved, and the data table synchronization safety and reliability are ensured.
Further, the step S4 specifically includes:
s41: and acquiring current data according to the acquisition parameters, and writing the acquired current data into the data table.
S42: if the current state of the product to be tested changes, switching the current range corresponding to the current range, and entering S43; the working state of the product to be tested at least comprises a working state and a static state; the current state of the product to be tested is a working state or a static state, and if the current state is switched to the working state, the current range is adjusted to be a level A; if the current state is switched to a static state, the current range is adjusted to be a mu A level;
s43: and judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, otherwise, returning to S41.
According to the technical scheme, the A-level working current A level can be continuously collected, and when the working current is switched to the mu A-level quiescent current, the current data in the whole process can be collected continuously.
As another preferred aspect, the present invention also provides a current collection system, the system at least comprising:
the current acquisition equipment is used for responding to the control instruction of the upper computer, acquiring current data of the product to be detected based on the current state of the product to be detected according to the acquisition parameters of the upper computer, writing the current data into a target database, and completing acquisition and storage of the current of the product to be detected.
Preferably, the upper computer can be developed through Labview graphic programming language.
The upper computer is provided with an ACESS database, the ACESS database is used for creating a target database, and the target database is used for storing the current data.
The host computer still includes:
the first judging module is used for judging whether the current state of the product to be tested changes, and if the current state of the product to be tested changes, the first judging module sends a corresponding instruction to control the current acquisition equipment to switch a corresponding current range;
and the second judging module is used for judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, and if not, continuing to acquire the current data.
Preferably, the current collection device supports at least one of the target databases, each of the target databases being associated with a product number of a product to be tested.
Preferably, the current collection device at least includes:
the acquisition module is used for receiving a control instruction sent by the upper computer, acquiring current data of the product to be detected according to acquisition parameters, and feeding the current data back to a target database of the upper computer for storage; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested;
the first communication module is used for being connected with the upper computer through USB.
And the second communication module is used for connecting the product to be tested through FAKRA or HSD.
Preferably, the acquisition module is an MCU; the first communication module is a USB communication device; the second communication module is a TWI protocol communication device.
As another preferable aspect, the present invention further provides a current collecting device, where the current collecting device is configured to collect current data of the product to be tested, so as to implement collection and storage of current; the current collecting device is a current collecting device in the system as described above.
As another preferred aspect, the present invention also provides a storage medium located in any control unit, the storage medium comprising a computer program executable by a processor for performing the acquisition method as described above.
Compared with the prior art, the beneficial effect of this scheme lies in:
the invention realizes continuous long-time high-speed acquisition of the working current and the static current of the product, for example, the sampling rate is 1kHz for 12 continuous hours; the measuring range of the current acquisition equipment needs to be covered with the A level and the mu A level, so that the accuracy is high, and the sampling rate is fast; the invention has the data acquisition capability of tens of millions, and ensures that each product number corresponds to one target database, so that the task of updating the data table becomes simple and orderly, the speed and efficiency of data table synchronization among the databases can be improved, the safety and reliability of data table synchronization are ensured, and the stored data can be used for making a data report.
Drawings
Fig. 1 is a flow chart of a current collection method according to the present invention.
Fig. 2 is a schematic diagram of a current collection system according to the present invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. The drawings illustrate preferred embodiments of the invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.
Referring to fig. 1, in a preferred embodiment, the present invention provides a current collection method, which includes:
s1: initializing a current acquisition equipment end.
S2: setting acquisition parameters; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested.
S3: and connecting the target database.
S4: and based on the current state of the product to be detected, collecting current data of the product to be detected according to the collection parameters, and writing the current data into the target database to complete collection and storage of the current of the product to be detected.
Preferably, the test information includes at least: test unit number, product model number and product number;
the current range covers the A level and the mu A level;
the sampling time length is less than or equal to M hours;
the sampling rate is less than or equal to NkHz.
Preferably, an upper computer developed through Labview graphic programming language runs the current collection program.
Preferably, the current acquisition equipment uses NI-USB4065, and the current measurement below 3.5A is satisfied, and the precision and the sampling rate both satisfy the requirements.
Preferably, M is 12 and N is 1.
The upper computer is developed by using Labview graphic programming language, and after the program is run, the USB-4065 equipment is initialized through a communication protocol of the current acquisition equipment end; after initialization, an experimenter inputs product test information and sets sampling rate, after configuration is finished, a start key is pressed, testing is started, when the working state of a product changes, the acquired precision meets the requirement by selecting a range corresponding to an upper computer, acquired data is stored through an ACCESS, a 1-minute data table is generated every hour, the data table can be named by time, the experiment is finished, and the data acquisition and storage are stopped by clicking.
In the technical scheme, the range of the current acquisition equipment needs to be covered with the A level and the mu A level, so that the precision is high, and the sampling rate is high; the current acquisition software needs to contain the change of the measuring range of the acquisition instrument, and the sampling rate reaches 1KHz and can be set downwards; the test software needs to have a big data storage function; the test software can automatically generate a data report; the continuous long-time high-speed collection of the working current and the static current of the product is realized, the data is stored, and the stored data can be used for making a data report.
Further, the step S3 specifically includes:
s31: if the program runs for the first time, a new database is created as a target database and connected, and S33 is entered; otherwise, S32 is entered.
S32: judging whether the current equipment to be tested has a target database according to the product number, if so, connecting the existing target database, otherwise, creating a new database as the target database and connecting the new database.
S33: a data table is created in the connected target database.
According to the technical scheme, aiming at the collected data with the sampling rate of 1kHz and the sampling time of 12 hours and tens of millions, each product number corresponds to one target database, so that the task of updating the data table becomes simple and orderly, the speed and efficiency of data table synchronization among the databases can be improved, and the data table synchronization safety and reliability are ensured.
Further, the step S4 specifically includes:
s41: and acquiring current data according to the acquisition parameters, and writing the acquired current data into the data table.
S42: if the current state of the product to be tested changes, switching the current range corresponding to the current range, and entering S43; the working state of the product to be tested at least comprises a working state and a static state; the current state of the product to be tested is a working state or a static state, and if the current state is switched to the working state, the current range is adjusted to be a level A; if the current state is switched to a static state, the current range is adjusted to be a mu A level;
s43: and judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, otherwise, returning to S41.
According to the technical scheme, the A-level working current A level can be continuously collected, and when the working current is switched to the mu A-level quiescent current, the current data in the whole process can be collected continuously.
Referring to fig. 2, as another preferred embodiment, the present invention further provides a current collection system, which at least includes:
the current acquisition equipment is used for responding to the control instruction of the upper computer, acquiring current data of the product to be detected based on the current state of the product to be detected according to the acquisition parameters of the upper computer, writing the current data into a target database, and completing acquisition and storage of the current of the product to be detected.
Preferably, the upper computer can be developed through Labview graphic programming language.
The upper computer is provided with an ACESS database, the ACESS database is used for creating a target database, and the target database is used for storing the current data.
The host computer still includes:
the first judging module is used for judging whether the current state of the product to be tested changes, and if the current state of the product to be tested changes, the first judging module sends a corresponding instruction to control the current acquisition equipment to switch a corresponding current range;
and the second judging module is used for judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, and if not, continuing to acquire the current data.
Preferably, the current collection device supports at least one of the target databases, each of the target databases being associated with a product number of a product to be tested.
Preferably, the current collection device at least includes:
the acquisition module is used for receiving a control instruction sent by the upper computer, acquiring current data of the product to be detected according to acquisition parameters, and feeding the current data back to a target database of the upper computer for storage; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested.
The first communication module is used for being connected with the upper computer through USB.
And the second communication module is used for connecting the product to be tested through FAKRA or HSD.
Preferably, the acquisition module is an MCU; the first communication module is a USB communication device; the second communication module is a TWI protocol communication device.
As another preferable aspect, the present invention further provides a current collecting device, where the current collecting device is configured to collect current data of the product to be tested, so as to implement collection and storage of current; the current collecting device is a current collecting device in the system as described above.
As another preferred aspect, the present invention also provides a storage medium located in any control unit, the storage medium comprising a computer program executable by a processor for performing the acquisition method as described above.
Compared with the prior art, the beneficial effect of this scheme lies in:
the invention realizes continuous long-time high-speed acquisition of the working current and the static current of the product, for example, the sampling rate is 1kHz for 12 continuous hours; the measuring range of the current acquisition equipment needs to be covered with the A level and the mu A level, so that the accuracy is high, and the sampling rate is fast; the invention has the data acquisition capability of tens of millions, and ensures that each product number corresponds to one target database, so that the task of updating the data table becomes simple and orderly, the speed and efficiency of data table synchronization among the databases can be improved, the safety and reliability of data table synchronization are ensured, and the stored data can be used for making a data report.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the above illustrative embodiments are merely illustrative and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various system and method embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some of the modules according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as a system program (e.g., a computer program and a computer program product) for executing a part or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
In the several embodiments provided in this application, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of functionality is merely a logical division of functionality, and there may be additional divisions of actual implementation, e.g., multiple tools or components may be combined or integrated into another system, or some features may be omitted, or not performed.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
While the invention has been described in conjunction with the specific embodiments above, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, all such alternatives, modifications, and variations are included within the spirit and scope of the following claims.

Claims (10)

1. A method of current collection, comprising:
s1: initializing a current acquisition equipment end;
s2: setting acquisition parameters; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested;
s3: connecting a target database;
s4: and based on the current state of the product to be detected, collecting current data of the product to be detected according to the collection parameters, and writing the current data into the target database to complete collection and storage of the current of the product to be detected.
2. The method of claim 1, wherein,
the test information at least comprises: test unit number, product model number and product number;
the current range covers the A level and the mu A level;
the sampling time length is less than or equal to M hours;
the sampling rate is less than or equal to NkHz.
3. The current collection method according to claim 2, wherein the step S3 specifically includes:
s31: if the program runs for the first time, a new database is created as a target database and connected, and S33 is entered; otherwise, enter S32;
s32: judging whether the current equipment to be tested has a target database according to the product number, if so, connecting the existing target database, otherwise, creating a new database as the target database and connecting the new database;
s33: a data table is created in the connected target database.
4. The current collection method according to claim 3, wherein the step S4 specifically comprises:
s41: collecting current data according to the collection parameters, and writing the collected current data into the data table;
s42: if the current state of the product to be tested changes, switching the current range corresponding to the current range, and entering S43;
the working state of the product to be tested at least comprises a working state and a static state;
the current state of the product to be tested is a working state or a static state, and if the current state is switched to the working state, the current range is adjusted to be a level A; if the current state is switched to a static state, the current range is adjusted to be a mu A level;
s43: and judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, otherwise, returning to S41.
5. A system employing the current collection method of any one of claims 1-4, said system comprising at least:
the current acquisition equipment is respectively in communication connection with the upper computer and the equipment to be tested;
the current acquisition equipment is used for responding to the control instruction of the upper computer, acquiring current data of the product to be detected based on the current state of the product to be detected according to the acquisition parameters of the upper computer, writing the current data into a target database, and completing acquisition and storage of the current of the product to be detected.
6. The system of claim 5, wherein the host computer is developed via Labview graphical programming language;
the upper computer is provided with an ACESS database, the ACESS database is used for creating a target database, and the target database is used for storing the current data;
the host computer still includes:
the first judging module is used for judging whether the current state of the product to be tested changes, and if the current state of the product to be tested changes, the first judging module sends a corresponding instruction to control the current acquisition equipment to switch a corresponding current range;
and the second judging module is used for judging whether the current acquisition time reaches the acquisition duration, if so, completing acquisition and storage of the current of the product to be detected, and if not, continuing to acquire the current data.
7. The system of claim 6, wherein said current collection device supports at least one of said target databases, each of said target databases being associated with a product number of a product under test.
8. The system of claim 7, wherein the current collection device comprises at least:
the acquisition module is used for receiving a control instruction sent by the upper computer, acquiring current data of the product to be detected according to acquisition parameters, and feeding the current data back to a target database of the upper computer for storage; the acquisition parameters at least comprise: test information, current range and resolution, sampling duration and sampling rate of the product to be tested;
the first communication module is used for connecting the upper computer through a USB;
and the second communication module is used for connecting the product to be tested through FAKRA or HSD.
9. The current acquisition equipment is characterized by being used for acquiring current data of the product to be detected so as to realize acquisition and storage of current; the current collecting device is a current collecting device in a system according to any of claims 5-8.
10. A storage medium, located in any control unit, comprising a computer program executable by a processor for performing the acquisition method according to any one of claims 1-4.
CN202211619732.XA 2022-12-16 2022-12-16 Current acquisition method, system, current acquisition device and storage medium Pending CN116183995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211619732.XA CN116183995A (en) 2022-12-16 2022-12-16 Current acquisition method, system, current acquisition device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211619732.XA CN116183995A (en) 2022-12-16 2022-12-16 Current acquisition method, system, current acquisition device and storage medium

Publications (1)

Publication Number Publication Date
CN116183995A true CN116183995A (en) 2023-05-30

Family

ID=86445218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211619732.XA Pending CN116183995A (en) 2022-12-16 2022-12-16 Current acquisition method, system, current acquisition device and storage medium

Country Status (1)

Country Link
CN (1) CN116183995A (en)

Similar Documents

Publication Publication Date Title
JP7268077B2 (en) Automatic driving test data storage method and device, electronic device, storage medium, and computer program
CN109599153B (en) Medical data tracking method and device, storage medium and electronic equipment
CN109976314B (en) Method and system for inquiring fault code maintenance case
CN103246602A (en) Code coverage rate confirming method, code coverage rate confirming system, code coverage rate detecting method and code coverage rate detecting system
CN102098101B (en) Crest searching method and system
CN102798833B (en) Automatic test system and method for diagnosis instrument
US20140188860A1 (en) Method and device for searching and displaying scattered logs
CN112231274B (en) Log summarizing method and device, electronic equipment and storage medium
CN110866205B (en) Method and apparatus for storing information
CN105302730A (en) Calculation model detection method, testing server and service platform
CN103198071A (en) Data report generation method and device adopting same
CN116183995A (en) Current acquisition method, system, current acquisition device and storage medium
CN109634973A (en) NC Machining Process collecting method, device and equipment
CN105051701A (en) Selection of redundant storage configuration based on available memory space
CN112985867A (en) Steering engine test method, device, equipment and storage medium
CN110955709B (en) Data processing method and device and electronic equipment
CN114550466B (en) Parking space state detection method and device and electronic equipment
CN113886259A (en) Non-flow popup automatic processing method and system for bank counter system and electronic device
CN115220404A (en) Intelligent diagnosis method, device, equipment and storage medium for processing equipment
CN110940237B (en) Universal missile testing device and method
CN112634489A (en) Vehicle state determination method, device and system based on mobile terminal
CN112182073A (en) Electric power measurement data display method and system
CN111562974A (en) Method, device and equipment for acquiring offline data and storage medium
CN111429597B (en) Voice card punching method and device and storage medium
CN116541442B (en) New energy automobile log analysis method and device

Legal Events

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