Electrochemical impedance testing system and method based on WebServer
By building test tools and preset algorithms on the server, the data of the electrochemical impedance test system is automatically uploaded and imported, which solves the limitations of the test system in stand-alone mode, improves data sharing and accuracy, and is suitable for multi-platform environments.
Patent Information
- Application Number
- CN202410749193.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
The existing electrochemical impedance test system is in stand-alone mode and cannot be tested and shared through the Internet. The measurement error is large, and the test data needs to be imported separately.
Design an electrochemical impedance test system based on WebServer. The test tool and preset test algorithm are built through the server. The test device establishes a communication connection with the server to realize automatic uploading and import of data, and analyzes it on the server to support the efficiency of data. Sharing and cross-platform sharing.
It realizes automatic uploading and importing of data, reduces costs, is suitable for test sharing and data synchronization within the local area network, has the advantages of cross-platform and strong practicality, and improves the accuracy and flexibility of testing.
Smart Images

Figure CN118337771B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electrochemical impedance testing, and in particular relates to an electrochemical impedance testing system and method based on WebServer. Background Art
[0002] With the development of the Internet, "Internet + Industry" has become an important direction for the transformation and upgrading of China's manufacturing industry. Under the background of digitalization, intelligence and networking, the deep integration of Internet technology and traditional industries has injected new vitality and impetus into the manufacturing industry, and promoted the transformation of China's manufacturing industry to high-quality development. Electrochemical Impedance Spectroscopy (EIS) is a relatively new electrochemical measurement technology. It has a short history of development, but it has developed rapidly. At present, it has been increasingly used in chemical fields such as lithium batteries, fuel cells, supercapacitors, corrosion and protection. EIS can be used to analyze electrode process dynamics, double layers and diffusion, so as to study the composition of batteries, solid electrolytes, and conductive polymers.
[0003] However, the existing test system still has at least the following problems in practical application:
[0004] 1. The test system is in stand-alone mode, which means that it cannot be tested, obtain data, share data, etc. through the Internet;
[0005] 2. The test method is single and the measurement error is relatively large;
[0006] 3. Test data needs to be imported separately to generate the Nyquist plot. Summary of the invention
[0007] The purpose of the present invention is to provide an electrochemical impedance testing system and method based on WebServer, so as to solve the problems existing in the prior art that the testing system is in stand-alone mode, that is, it is impossible to test, obtain data and share data through the Internet, and the testing method is single, the measurement error is relatively large and the test data needs to be imported separately.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] In a first aspect, the present invention provides an electrochemical impedance testing system based on WebServer, the system comprising:
[0010] A server, wherein a test tool is pre-built in the server, and a preset test algorithm is deployed in the test tool;
[0011] The test device is used to generate a test request instruction and upload the test request instruction to a server so as to establish a communication connection with the server; the test device is also used to: based on the test instruction issued by the server, execute a test task on the object under test to collect test data of the object under test, and upload the collected test data to the server;
[0012] The server is used to: obtain a test request instruction uploaded by a test device, establish a communication connection with the test device based on the test request instruction, and generate a test instruction at the same time; send the test instruction to the test device so that the test device collects test data of the object under test based on the test instruction; obtain the test data uploaded by the test device, call a test tool, analyze the test data with a preset test algorithm, and obtain an analysis result.
[0013] Preferably, the system further comprises: a client, the client is communicatively connected to the server, and the server is further configured to send the analysis result to the client, so that the client can visually display the analysis result.
[0014] Preferably, the test data includes: an excitation signal input to the object under test and a response signal output by the object under test; when the server executes the call to the test tool and analyzes the test data with a preset test algorithm, the server is specifically used to: construct a transfer function based on the excitation signal and the response signal, analyze the transfer function based on a preset test algorithm, obtain the phase difference between the excitation signal and the response signal, calculate the impedance value of the object under test based on the phase difference between the excitation signal and the response signal, and draw an analysis diagram based on the phase difference and the impedance value, the analysis diagram at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, with the phase difference, the impedance value and the analysis diagram as the analysis results.
[0015] Preferably, the testing device comprises:
[0016] Controller;
[0017] A communication module is electrically connected to the controller and is used to establish a communication connection with the server, receive test instructions issued by the server, and upload test data to the server;
[0018] An AC source module, wherein a controlled end of the AC source module is electrically connected to an IO port of a controller, an output end of the AC source module is electrically connected to an input end of a measured object, and the AC source module is used to output an excitation signal;
[0019] An acquisition module, wherein the sampling input end of the acquisition module is electrically connected to the output end of the AC source module and the sampled end of the object under test respectively, and the output end of the acquisition module is electrically connected to the IO port of the controller. The acquisition module is used to acquire the excitation signal output by the AC source module and the response signal output by the object under test.
[0020] In a second aspect, the present invention provides an electrochemical impedance testing method based on WebServer, the testing method is applied to a server of an electrochemical impedance testing system based on WebServer, the system comprising: a testing device, the testing device is communicatively connected to the server, a testing tool is pre-built in the server, a preset testing algorithm is deployed in the testing tool, and the method comprises:
[0021] Obtain the test request instruction uploaded by the test device;
[0022] Establishing a communication connection with the test device based on the test request instruction and generating a test instruction at the same time; sending the test instruction to the test device so that the test device collects test data of the object under test based on the test instruction;
[0023] Obtain test data uploaded by the test device;
[0024] The test tool is called to analyze the test data using a preset test algorithm to obtain the analysis results.
[0025] Preferably, the test data includes: an excitation signal input to the object under test and a response signal output by the object under test; calling a test tool to analyze the test data with a preset test algorithm to obtain an analysis result, including:
[0026] Based on the excitation signal and the response signal, a transfer function is constructed;
[0027] Analyze the transfer function based on the preset test algorithm to obtain the phase difference between the excitation signal and the response signal;
[0028] Calculate the impedance value of the object under test based on the phase difference between the excitation signal and the response signal;
[0029] An analysis diagram is drawn based on the phase difference and the impedance value, wherein the analysis diagram at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, and the phase difference, the impedance value and the analysis diagram are used as analysis results.
[0030] Preferably, the system further comprises: a client, the client being communicatively connected to the server; the method further comprises: sending the analysis result to the client, and visually displaying the analysis result by the client.
[0031] Preferably, an algorithm library is constructed in the server, and a plurality of analysis algorithms are stored in the algorithm library, and the analysis algorithms are a zero-crossing method, an FFT spectrum analysis method and a correlation method.
[0032] Preferably, before generating the test instruction, the method further comprises:
[0033] Generate an algorithm screening instruction, and send the algorithm screening instruction to a test device, so that the test device generates a plurality of levels of sample frequencies according to the algorithm screening instruction, and the test device generates a plurality of excitation sample signals at a plurality of sample frequencies, and when a test object is input with a plurality of excitation sample signals, the test object outputs a plurality of response sample signals;
[0034] Acquire a number of excitation sample signals generated by the test device and a number of response sample signals output by the tested object;
[0035] Calling each analysis algorithm in the algorithm library to analyze a number of excitation sample signals and a number of response sample signals respectively, and obtaining sample analysis results of each analysis algorithm;
[0036] The sample test errors of the sample analysis results of each analysis algorithm are calculated, and the analysis algorithm corresponding to the smallest sample test error is screened out, and the analysis algorithm corresponding to the smallest sample test error is used as the preset test algorithm.
[0037] Preferably, an equivalent circuit of the object under test is deployed in the test tool, and the method further includes:
[0038] Get the type of the object being tested;
[0039] Matching the equivalent circuit of the object under test based on the type of the object under test;
[0040] The test data is used as the parameters of the equivalent circuit of the object under test, and the electrochemical composition and characteristics of the object under test are simulated and analyzed by the equivalent circuit to obtain the simulation analysis results of the object under test.
[0041] Beneficial effects:
[0042] The present invention constructs a test tool on a server. After the test device establishes a communication connection with the server, the test device uploads the test data to the server, thereby realizing automatic uploading and importing of the test data; and the test data is analyzed on the server, so that efficient data sharing can be realized, which saves costs to a certain extent. It is more suitable for test sharing and data synchronization within a local area network, and is suitable for situations where multiple parties within an enterprise need test data; it has the advantages of being cross-platform and highly practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0044] Figure 1 It is a block diagram of an electrochemical impedance testing system based on WebServer provided in one embodiment of the present invention;
[0045] Figure 2 is a partial circuit block diagram of a test device provided by an embodiment of the present invention;
[0046] Figure 3 It is a flow chart of an electrochemical impedance testing method based on WebServer provided in one embodiment of the present invention;
[0047] Figure 4 is an equivalent circuit of a fuel cell provided by one embodiment of the present invention;
[0048] Figure 5 This is an equivalent circuit of a supercapacitor provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0050] Embodiment 1
[0051] Figure 1 is a block diagram of an electrochemical impedance testing system based on WebServer provided by an embodiment of the present invention, such as Figure 1 As shown, this embodiment provides an electrochemical impedance testing system based on WebServer, the system comprising: a server and a testing device. The server of this embodiment is a network server (WebServer), and the testing device can establish a communication connection with the server through the Internet;
[0052] A test tool is pre-built in the server, and a preset test algorithm is deployed in the test tool. The test tool of this embodiment is an electrochemical impedance spectroscopy (EIS) test system deployed on the server;
[0053] The test device is used to generate a test request instruction, upload the test request instruction to the server, so as to establish a communication connection with the server; the test device is also used to: based on the test instruction issued by the server, execute the test task on the object under test to collect test data of the object under test, and upload the collected test data to the server;
[0054] The server is used to: obtain a test request instruction uploaded by a test device, establish a communication connection with the test device based on the test request instruction, and generate a test instruction at the same time; send the test instruction to the test device so that the test device collects test data of the object under test based on the test instruction; obtain the test data uploaded by the test device, call a test tool, analyze the test data with a preset test algorithm, and obtain an analysis result.
[0055] In this embodiment, the present invention constructs a test tool on the server. After the test device establishes a communication connection with the server, the test device uploads the test data to the server to realize automatic uploading and importing of the test data; and the test data is analyzed on the server, which can realize efficient sharing of data, save costs to a certain extent, and is more suitable for test sharing and data synchronization within a local area network, and is suitable for situations where multiple parties within an enterprise need test data; it has the advantages of being cross-platform and highly practical.
[0056] As a further optimization of this embodiment, the system further includes: a client, the client is communicatively connected to the server, and the server is further used to send the analysis result to the client, so that the client can visualize the analysis result.
[0057] The present invention establishes a communication connection between the client and the server, obtains the corresponding analysis results and test data from the server, and realizes data sharing between different platforms. The client of this embodiment can be multiple platforms such as Windows, Linux, and mobile phones.
[0058] As a further optimization of this embodiment, the test data includes: an excitation signal input to the object under test and a response signal output by the object under test; when the server executes the call to the test tool and analyzes the test data with a preset test algorithm, the server is specifically used to: construct a transfer function based on the excitation signal and the response signal, analyze the transfer function based on the preset test algorithm, obtain the phase difference between the excitation signal and the response signal, calculate the impedance value of the object under test based on the phase difference between the excitation signal and the response signal, and draw an analysis graph based on the phase difference and the impedance value, and the analysis graph at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, with the phase difference, the impedance value and the analysis graph as the analysis results.
[0059] In this embodiment, the electrochemical impedance spectroscopy test system deployed on the server is developed based on ".net core", which is an open source, cross-platform, high-performance framework developed by Microsoft for building modern, cloud-based, Internet-connected applications. The electrochemical impedance spectroscopy test system can be used to implement automatic testing, data calculation, data storage, data analysis, data fitting, etc. on the server.
[0060] In this embodiment, the automatic test is: generating a test instruction on the server, the test instruction contains parameter data such as the highest frequency, lowest frequency, measurement amplitude, number of test channels, etc. of the test device, and the test device generates an excitation signal according to the parameter data in the test instruction.
[0061] In this embodiment, the data is calculated as follows: at the same frequency, the excitation signal and the response signal are sinusoidal waves of different amplitudes and phases, and the resistance value of the object being measured is expressed in the form of a complex number (represented by the real part and the imaginary part). Calculating the phase difference between the two signals becomes the key to calculating the real part and the imaginary part, and a test algorithm can be preset to calculate the phase difference.
[0062] In this embodiment, the data is stored as follows: the test data obtained each time is stored in a database constructed by the server in the form of frequency, resistance value, real part, imaginary part, and phase difference.
[0063] In this embodiment, the data analysis is as follows: with the real part as the horizontal axis and the imaginary part as the vertical axis, a Nyquist plot can be drawn; with the frequency as the horizontal axis and the resistance as the vertical axis, a Bode plot can be drawn; with the frequency as the horizontal axis and the phase as the vertical axis, a phase plot can be drawn. Each diagram shows different spectral characteristics, reflecting different characteristics of the measured object from different aspects. The accuracy and ease of use of the data are important bases for the analysis of the electrochemical characteristics of the sample.
[0064] In this embodiment, data fitting is as follows: based on the test data, an equivalent circuit of the object under test can be obtained, and then the internal structure, electrochemical composition and characteristics of the object under test can be analyzed.
[0065] As a further optimization of this embodiment, the test device includes: a controller, a communication module, an AC source module and a collection module;
[0066] The communication module is electrically connected to the controller and is used to establish a communication connection with the server, receive test instructions issued by the server, and upload test data to the server;
[0067] The controlled end of the AC source module is electrically connected to the IO port of the controller, and the output end of the AC source module is electrically connected to the input end of the object under test; after receiving the test instruction, the controller controls the AC source module to output an excitation signal according to the parameter data in the test instruction;
[0068] The sampling input end of the acquisition module is electrically connected to the output end of the AC source module and the sampled end of the object under test respectively, and the output end of the acquisition module is electrically connected to the IO port of the controller. The acquisition module is used to collect the excitation signal output by the AC source module and the response signal output by the object under test.
[0069] In this embodiment, Figure 2 In the test, the objects to be measured include: electrochemical substances and DC loads, the positive electrode of the electrochemical substances is electrically connected to the positive electrode of the DC load, the negative electrode of the electrochemical substances is electrically connected to the negative electrode of the DC load, the positive and negative electrodes (i.e., the output terminals) of the AC source module are respectively connected to the positive and negative electrodes of the electrochemical substances, and the sampling terminal of the acquisition module is connected to the sampled terminal of the electrochemical substances. Among them, the DC load is used to load the electrochemical substances that need to be discharged.
[0070] In this embodiment, the electrochemical substance may be a lithium battery, a fuel cell, a supercapacitor, a corrosion resistant sensor, or other electrochemical substances.
[0071] In this embodiment, a voltage divider circuit may be connected in series with the electrochemical substance and the DC load, and the voltage divider circuit may be adapted to electrochemical substances in different voltage level ranges.
[0072] In this embodiment, the acquisition module uses a high-performance data acquisition chip, and the excitation signal and the response signal are two sinusoidal signals with the same frequency, different amplitudes, and different phases. Through the relevant calculation of frequency, acquisition rate and sampling point, the data points collected each time are kept within one cycle, and the median algorithm is used to filter the interfering data and perform data calculation and analysis.
[0073] In this embodiment, the test tool deployed in the service can support up to 20 test channels.
[0074] Embodiment 2
[0075] Figure 3 is a flow chart of an electrochemical impedance testing method based on WebServer provided in one embodiment of the present invention, such as Figure 3 As shown, this embodiment provides an electrochemical impedance testing method based on WebServer, the testing method is applied to the server of the electrochemical impedance testing system based on WebServer of Embodiment 1, the system comprises: a testing device, the testing device is communicatively connected with the server, the server is pre-built with a testing tool, the testing tool is deployed with a preset testing algorithm, the method comprises:
[0076] Step S10: Obtain the test request instruction uploaded by the test device.
[0077] In this embodiment, when it is necessary to perform a test operation on the object under test, a test request instruction is generated by a test device. The test request instruction includes information such as the identification of the test device, the type of the object under test and the test request. The test device uploads the test request instruction to the server. After receiving the instruction, the server establishes a communication connection with the test device.
[0078] Step S20: establishing a communication connection with the test device based on the test request instruction, and generating a test instruction at the same time; sending the test instruction to the test device, so that the test device collects test data of the object under test based on the test instruction.
[0079] In this embodiment, the test instruction includes parameter data such as the maximum frequency, minimum frequency, measurement amplitude, and number of test channels of the test device. After the test device receives the test instruction, the controller controls the AC source module to output an excitation signal based on the parameter data such as the maximum frequency, minimum frequency, measurement amplitude, and number of test channels.
[0080] Step S30: Acquire the test data uploaded by the test device.
[0081] In this embodiment, the test data includes: an excitation signal input to the object under test and a response signal output by the object under test; the excitation signal is output by the AC source module, and the object under test outputs a corresponding response signal after the excitation signal is input. The test device uploads a set of excitation signals and corresponding response signals for each test as test data to the server.
[0082] Step S40: calling the test tool to analyze the test data with a preset test algorithm to obtain analysis results.
[0083] Specifically, the test tool is called to analyze the test data using a preset test algorithm to obtain analysis results, including:
[0084] Step S401: constructing a transfer function based on the excitation signal and the response signal;
[0085] Step S402: Analyze the transfer function based on a preset test algorithm to obtain a phase difference between the excitation signal and the response signal;
[0086] Step S403: calculating the impedance value of the object under test based on the phase difference between the excitation signal and the response signal;
[0087] Step S404: drawing an analysis diagram based on the phase difference and the impedance value, wherein the analysis diagram at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, and the phase difference, the impedance value and the analysis diagram are used as analysis results.
[0088] In this embodiment, the object to be measured can be regarded as a black box, whose internal structure is unknown. The object to be measured uses an AC source to give an excitation signal on its input side, and a response signal will be obtained on the output side. The excitation signal and the response signal react differently at different frequencies; the relationship function between the excitation signal and the response signal is called a transfer function. The server calculates the impedance modulus, phase difference, real part, imaginary part and other parameters by analyzing the transfer function at different frequencies, and then draws the Nyquist diagram or Bode diagram based on these parameters, providing a strong basis for data fitting and chemical property analysis of the object to be measured.
[0089] In this embodiment, at the same frequency, the excitation signal and the response signal are sinusoidal waves with different amplitudes and phases, and the resistance value of the object to be measured is expressed in the form of a complex number (real and imaginary parts). Calculating the phase difference between the two signals becomes the key to calculating the real and imaginary parts, and a test algorithm can be preset to calculate the phase difference.
[0090] In this embodiment, a Nyquist plot can be drawn with the real part as the horizontal axis and the imaginary part as the vertical axis, a Bode plot can be drawn with the frequency as the horizontal axis and the resistance as the vertical axis, and a phase plot can be drawn with the frequency as the horizontal axis and the phase as the vertical axis. Each diagram shows different spectral characteristics, reflecting different characteristics of the measured object from different aspects. The accuracy and ease of use of the data are important bases for the analysis of the electrochemical characteristics of the sample.
[0091] As a further optimization of this embodiment, an algorithm library is constructed in the server, and a plurality of analysis algorithms are stored in the algorithm library, and the analysis algorithms are a zero-crossing method, an FFT spectrum analysis method and a correlation method.
[0092] The zero-crossing method is to analyze the zero-crossing moments of two signals, find their time difference, and then convert it into a phase difference. Figure 3 As shown, assuming that x(t) is the excitation signal, y(t) is the output signal, and dt is the time difference, the phase difference is equal to the time difference multiplied by the frequency (or divided by the period) to obtain the radian value, and then through conversion, the angular value of the phase difference is obtained.
[0093] Among them, the FFT spectrum analysis method is: FFT (fast Fourier transform) is another way of DFT (Discrete Fourier Transform). Through FFT, the time domain signal is converted into a frequency domain signal to obtain the phase-frequency characteristics of the signal. The principle of FFT is that any periodic function x(t) that is absolutely integrable in a finite interval (t, t+T) has a period of T. Its Fourier technical expansion is as follows.
[0094] ;
[0095] Where n is a positive integer, are the coefficients of the sine function, is the cosine function coefficient, is the angular velocity, is the phase, is a constant term, and its calculation formula is: , is a periodic function with period T.
[0096] At the same time, x(t) can be expressed as:
[0097]
[0098]
[0099]
[0100] It can be seen that the phase difference between the two signals is for:
[0101]
[0102] in, is the phase of the excitation signal at time i, is the phase of the output signal at time i.
[0103] This method performs algorithmic processing on data collection. The amount of data collected each time must be 2 to the power of n before FFT can be used for data analysis. The result of FFT analysis is a signal in the frequency domain, which can directly obtain the real and imaginary parts of the signal, that is, the complex form of the signal.
[0104] Among them, the correlation method is: the cross-correlation function of two signals with the same frequency is as follows:
[0105]
[0106]
[0107] In the actual algorithm, the discrete time expression of the relevant function is:
[0108]
[0109] .
[0110] in, is the cross-correlation function, T is the period, A and B are the waveform amplitudes, is the angular velocity, is the phase, time-shift variable , , For noise.
[0111] In summary, the zero-crossing measurement method is relatively simple and efficient. Although FFT is complex, it has strong anti-interference ability. The correlation method has strong anti-noise ability. During the test process, different test methods and algorithms are selected according to the characteristics and environment of the object under test to improve the accuracy of data calculation.
[0112] As a further optimization of this embodiment, the system further includes: a client, which is communicatively connected to the server; the method further includes: sending the analysis result to the client, and visually displaying the analysis result by the client.
[0113] As a further optimization of this embodiment, an equivalent circuit of the object under test is deployed in the test tool, and the method further includes:
[0114] Step a01: Get the type of the object under test;
[0115] Step a02: matching an equivalent circuit of the object under test based on the type of the object under test;
[0116] Step a03: Using the test data as the parameters of the equivalent circuit of the object under test, the electrochemical composition and characteristics of the object under test are simulated and analyzed by the equivalent circuit to obtain the simulation analysis results of the object under test.
[0117] In this embodiment, the type of the object under test can be separated from the test request instruction. The equivalent circuit of the object under test includes: an equivalent circuit of a lithium battery, an equivalent circuit of a fuel cell, an equivalent circuit of a supercapacitor, etc. Figure 4 and Figure 5 As shown, Figure 4 is the equivalent circuit of the fuel cell, Figure 4 In the figure, Cd is the capacitance d, Rc is the resistance c, and Rm is the resistance m. Figure 5 is the equivalent circuit of the supercapacitor, Figure 5 In the figure, Rc is the capacitance c, Re is the resistance e, Wo is the Weber impedance, and Rs is the resistance s. It should be noted that the equivalent resistance is not unique and needs to be analyzed in combination with the electrochemical substance being measured.
[0118] In this embodiment, based on the test data, an equivalent circuit of the object under test can be derived, and then the internal structure, electrochemical composition and characteristics of the object under test can be analyzed.
[0119] As a further optimization of this embodiment, before generating the test instruction, the method further includes:
[0120] Step b01: Generate an algorithm screening instruction, and send the algorithm screening instruction to a test device, so that the test device generates a number of levels of sample frequencies according to the algorithm screening instruction, and the test device generates a number of excitation sample signals at a number of sample frequencies, and when the object under test is input with a number of excitation sample signals, the object under test outputs a number of response sample signals;
[0121] Step b02: obtaining a number of excitation sample signals generated by the test device and a number of response sample signals output by the tested object;
[0122] Step b03: calling each analysis algorithm in the algorithm library, analyzing a number of excitation sample signals and a number of response sample signals respectively, and obtaining sample analysis results of each analysis algorithm;
[0123] Step b04: Calculate the sample test errors of the sample analysis results of each analysis algorithm, and select the analysis algorithm corresponding to the smallest sample test error, and use the analysis algorithm corresponding to the smallest sample test error as the preset test algorithm.
[0124] In this embodiment, after the test device establishes a communication connection with the server and before conducting a formal test, sample frequencies of 0.01 Hz, 0.03 Hz, and 0.05 Hz are selected respectively, that is, after the AC frequency of the AC source module is fixed, the AC source module outputs three excitation sample signals, and when the object under test is input with a number of excitation sample signals, the object under test outputs a number of response sample signals; three different algorithms are called, each algorithm repeatedly calculates the current impedance value and phase difference 30 times, and the algorithm with the smallest comprehensive evaluation error is selected to enter the formal test (i.e., execute steps S20 to S40).
[0125] The present invention relies on the network to realize the installation of a test system on a server, and the system data can be accessed through the web page to realize efficient data sharing. It saves costs to a certain extent, is more suitable for test sharing and data synchronization within the local area network, and is suitable for situations where multiple parties within the enterprise need test data; it has the advantages of cross-platform and strong practicality.
[0126] The test method of the present invention is rigorous, and different test methods are selected according to different scenarios and tested samples to ensure the accuracy of the data, laying a solid foundation for data analysis and analysis of sample structure and characteristics.
[0127] The invention has the advantages of flexible use, simple configuration and is suitable for users who want to test multiple samples.
[0128] The present invention is software-friendly and can meet different data analysis needs of users, and can export original data for secondary development by users.
[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. An electrochemical impedance testing method based on WebServer, characterized in that: The test method is applied to a server of an electrochemical impedance test system based on a WebServer, the system comprising: a test device, the test device being communicatively connected to the server, the server having a pre-built test tool, the test tool having a preset test algorithm deployed therein, the method comprising: Obtain the test request instruction uploaded by the test device; Establishing a communication connection with the test device based on the test request instruction and generating a test instruction at the same time; sending the test instruction to the test device so that the test device collects test data of the object under test based on the test instruction; Obtain test data uploaded by the test device; Call the test tool to analyze the test data using the preset test algorithm to obtain the analysis results; The test data includes: an excitation signal input to the object under test and a response signal output by the object under test; calling a test tool to analyze the test data with a preset test algorithm to obtain an analysis result, including: Based on the excitation signal and the response signal, a transfer function is constructed; Analyze the transfer function based on the preset test algorithm to obtain the phase difference between the excitation signal and the response signal; Calculate the impedance value of the object under test based on the phase difference between the excitation signal and the response signal; Draw an analysis diagram based on the phase difference and the impedance value, wherein the analysis diagram at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, and the phase difference, the impedance value and the analysis diagram are used as analysis results; The system further comprises: a client, the client being in communication connection with the server; the method further comprises: sending the analysis result to the client, and visually displaying the analysis result by the client; The server is constructed with an algorithm library, wherein the algorithm library stores a plurality of analysis algorithms, wherein the analysis algorithms are a zero-crossing method, an FFT spectrum analysis method and a correlation method; Before generating the test instruction, the method further includes: Generate an algorithm screening instruction, and send the algorithm screening instruction to a test device, so that the test device generates a plurality of levels of sample frequencies according to the algorithm screening instruction, and the test device generates a plurality of excitation sample signals at a plurality of sample frequencies, and when a test object is input with a plurality of excitation sample signals, the test object outputs a plurality of response sample signals; Acquire a number of excitation sample signals generated by the test device and a number of response sample signals output by the tested object; Calling each analysis algorithm in the algorithm library to analyze a number of excitation sample signals and a number of response sample signals respectively, and obtaining sample analysis results of each analysis algorithm; Calculate the sample test error of the sample analysis results of each analysis algorithm, and select the analysis algorithm corresponding to the smallest sample test error, and use the analysis algorithm corresponding to the smallest sample test error as the preset test algorithm; Wherein, the test tool is provided with an equivalent circuit of the object under test, and the method further comprises: Get the type of the object being tested; Matching the equivalent circuit of the object under test based on the type of the object under test; The test data is used as the parameters of the equivalent circuit of the object under test, and the electrochemical composition and characteristics of the object under test are simulated and analyzed by the equivalent circuit to obtain the simulation analysis results of the object under test.
2. A WebServer-based electrochemical impedance testing system, the system is used to implement the WebServer-based electrochemical impedance testing method according to claim 1, characterized in that: The system comprises: A server, wherein a test tool is pre-built in the server, and a preset test algorithm is deployed in the test tool; The test device is used to generate a test request instruction and upload the test request instruction to a server so as to establish a communication connection with the server; the test device is also used to: based on the test instruction issued by the server, execute a test task on the object under test to collect test data of the object under test, and upload the collected test data to the server; The server is used to: obtain a test request instruction uploaded by a test device, establish a communication connection with the test device based on the test request instruction, and generate a test instruction at the same time; send the test instruction to the test device so that the test device collects test data of the object under test based on the test instruction; obtain the test data uploaded by the test device, call a test tool, analyze the test data with a preset test algorithm, and obtain an analysis result.
3. The electrochemical impedance testing system based on WebServer according to claim 2 is characterized in that: The system further includes: a client, the client is communicatively connected to the server, and the server is further configured to send the analysis result to the client so that the client can visualize the analysis result.
4. The electrochemical impedance testing system based on WebServer according to claim 2, characterized in that: The test data includes: an excitation signal input to the object under test and a response signal output by the object under test; when the server executes the call to the test tool and analyzes the test data with a preset test algorithm, the server is specifically used to: construct a transfer function based on the excitation signal and the response signal, analyze the transfer function based on the preset test algorithm, obtain the phase difference between the excitation signal and the response signal, calculate the impedance value of the object under test based on the phase difference between the excitation signal and the response signal, and draw an analysis diagram based on the phase difference and the impedance value, wherein the analysis diagram at least includes: a Nyquist diagram, a Bode diagram and a phase diagram, and the phase difference, the impedance value and the analysis diagram are used as the analysis results.
5. The electrochemical impedance testing system based on WebServer according to claim 2, characterized in that: The testing device comprises: Controller; A communication module is electrically connected to the controller and is used to establish a communication connection with the server, receive test instructions issued by the server, and upload test data to the server; An AC source module, wherein a controlled end of the AC source module is electrically connected to an IO port of a controller, an output end of the AC source module is electrically connected to an input end of a measured object, and the AC source module is used to output an excitation signal; An acquisition module, wherein the sampling input end of the acquisition module is electrically connected to the output end of the AC source module and the sampled end of the object under test respectively, and the output end of the acquisition module is electrically connected to the IO port of the controller. The acquisition module is used to acquire the excitation signal output by the AC source module and the response signal output by the object under test.
