Channel control method for battery testing equipment
By developing Windows services in battery detection equipment and using Socket connection to interact with the Web server, efficient control of the battery detection equipment channel is achieved, and the problem of difficult real-time and data interaction requirements in the prior art is solved, and the performance and efficiency of device control are improved.
Patent Information
- Application Number
- CN202111201680.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-10-15
AI Technical Summary
The prior art is difficult to realize efficient channel control of battery detection devices, especially when the Web interface uniformly controls multiple devices, the requirements of real-time and data interaction are difficult to meet.
By developing Windows services in the battery detection device, and connecting with the web server through Socket, issuing instructions, parsing instructions, judging the validity of instructions, and sending instructions to the device for execution, and finally returning the execution result to the web application.
It realizes efficient control of thousands of battery detection device channels, improves real-time and data interaction performance, and ensures effective execution of instructions and accurate return of results.
Smart Images

Figure CN113867990B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of battery testing, and in particular to a channel control method for battery testing equipment. [Background technology]
[0002] With the widespread application of Web technology and the development of new energy batteries, the amount of battery cell test data is increasing, which makes the interactive and real-time requirements of data higher and higher. Users need to control various battery testing equipment in a unified manner through the Web interface, create work orders and issue relevant instructions such as start, stop, continue, and pause in real time, and the battery testing equipment responds in real time. [Summary of the invention]
[0003] The purpose of the present invention is to solve the shortcomings of the above technical problems and provide a new channel control method for battery detection equipment. Based on the Windows service of the BTS battery detection equipment, it is connected to the Web server through Scoket, issues instructions, parses instructions, judges instructions, sends them to the BTS battery detection equipment to execute instructions, and returns the instruction execution results to the Web application.
[0004] The present invention is achieved through the following technical solutions:
[0005] A channel control method for a battery testing device comprises the following steps:
[0006] S1: The user selects several channels to be executed in the Web application interface, selects the instruction type, generates instruction information and performs data conversion, and sends the converted data to the channel control system of the battery testing device through a Socket connection;
[0007] S2: When the channel control system of the battery testing device receives the data sent by the Web application, it parses the data and obtains the instruction information;
[0008] S3: after obtaining the instruction information according to the parsed data in step S2, determine whether the instruction information is valid, and determine whether the parsed instruction parameters are valid. If the instruction is invalid, directly skip step S4;
[0009] S4: If the instruction parsed in step S3 is valid, the channel of the battery testing device executes the corresponding instruction;
[0010] S5: The channel control system of the battery testing device responds to the command processing result of the Web application, and returns the command execution result to the Web application through the Socket connection. If the command is invalid in step S3, the invalid reason is returned. If the command is valid, the command is executed successfully in step S4 and the result is returned.
[0011] S6: Return the successful execution result of the instruction in step S5, and the process ends.
[0012] As a further solution of the present invention: the instruction types include but are not limited to configuration instructions, start instructions, pause instructions, continue instructions, stop instructions, and setting instruction parameters.
[0013] As a further solution of the present invention: the configuration instruction saves the configuration information of the channel; the start instruction performs a startup test on the corresponding channel, the test plan loads the process file according to the information of the previous configuration instruction, and the test barcode loads the battery barcode according to the information of the previous configuration instruction; the pause instruction pauses the test of the corresponding channel; the continue instruction continues the test of the corresponding channel; and the stop instruction stops the test of the corresponding channel.
[0014] As a further solution of the present invention: the configuration instruction parameters include but are not limited to instruction message ID, instruction type, channel number, work step process path, battery barcode, and BMS signal; the pause instruction parameters include but are not limited to instruction message ID, instruction type, and channel number; the continue instruction parameters include but are not limited to instruction message ID, instruction type, and channel number; the stop instruction parameters include but are not limited to instruction message ID, instruction type, and channel number.
[0015] As a further solution of the present invention: the data conversion includes but is not limited to converting instruction information into Json string, wherein JSON (JavaScript Object Notation, JS object notation) is a lightweight data exchange format, which is based on a subset of ECMAScript (JS specification developed by the European Computer Association) and uses a text format that is completely independent of the programming language to store and represent data. The concise and clear hierarchical structure makes JSON an ideal data exchange language.
[0016] As a further solution of the present invention: the determination of whether the instruction information is valid is based on the channel control system of the battery detection device receiving the data sent by the Web application, parsing the data of the instruction information, obtaining the data of the instruction information to identify whether the data of the channel in the battery detection device corresponds. If the data does not correspond, the instruction information is determined to be invalid; if the data corresponds, the instruction information is determined to be valid.
[0017] As a further solution of the present invention: the determination of whether the instruction parameters are valid is performed based on the parsed instruction type, and whether the parameter data of the instruction type is valid is identified; if the parameter data is invalid, the instruction parameters are invalid; if the parameter data is valid, the instruction parameters are valid.
[0018] As a further solution of the present invention: the judgment instruction parameters include but are not limited to judgment configuration instruction parameters, judgment start instruction parameters, judgment pause instruction parameters, judgment continue instruction parameters, and judgment stop instruction parameters;
[0019] The configuration instruction parameter is determined as follows: whether the channel number exists, if not, the configuration instruction parameter is invalid; whether the process path is valid, if not, the configuration instruction parameter is invalid; whether the process parameters parsed according to the process path are correct, if not, the configuration instruction parameter is invalid; whether the process parameters contain BMS signals, if not, the configuration instruction parameter is invalid; whether the number of battery barcodes is equal to the number of channels, if not, the configuration instruction parameter is invalid;
[0020] Determine the start command parameters: determine whether the channel number exists, if not, the start command parameters are invalid; determine whether the channel is in a running state or a paused state, if the channel is in a running state or a paused state, the start command cannot be executed, and the start command parameters are invalid;
[0021] Determine the pause instruction parameters: determine whether the channel number exists, if not, the pause instruction parameters are invalid; determine whether the channel is in a pause state or a completed state, if the channel is in a pause state or a completed state, the pause instruction cannot be executed, and the pause instruction parameters are invalid;
[0022] Determine the parameters of the continue instruction: determine whether the channel number exists, if not, the continue instruction parameter is invalid; determine whether the channel is in the running state or the completed state, if the channel is in the running state or the completed state, the continue instruction cannot be executed, and the continue instruction parameter is invalid;
[0023] The determination of the stop instruction parameters: determining whether the channel number exists, if not, the stop instruction parameters are invalid; determining whether the channel is in a completed state, if the channel is in a completed state, the stop instruction cannot be executed, and the stop instruction parameters are invalid.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] (1) The channel control system of the battery testing equipment is developed in the form of Windows services. Compared with EXE applications, Windows services support automatic restart at startup and have no visual operation interface. They are more concealed and secure, and effectively prevent users from changing configurations and shutting down software at will.
[0026] (2) Socket connection is a common connection method with relatively low cost, byte-level data transmission, customizable data transmission, short data transmission time, high performance, and even encryption, which ensures strong data security.
[0027] (3) Instructions are issued through a Web application, which is easy for users to operate. They only need to log in to the Web interface in a browser to control the channels of thousands of battery testing devices. There is no need to have an in-depth understanding of the specific operations of the BTS testing system software or the specific command transmission protocol.
Brief Description of the Drawings
[0028] Figure 1 A schematic diagram of a channel control method for a battery testing device according to the present invention;
[0029] Figure 2 A schematic flow chart of a channel control method for a battery testing device according to the present invention; [Specific implementation method]
[0030] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods, and the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention; in addition, the embodiments in this application and the features in the embodiments can be combined with each other without conflict.
[0031] Implementation example Figure 1 , Figure 2 As shown, a channel control method for a battery detection device includes the following steps:
[0032] S1: The user selects several channels to be executed in the Web application interface, selects the instruction type, generates instruction information and performs data conversion, and sends the converted data to the channel control system of the battery testing device through a Socket connection;
[0033] S2: When the channel control system of the battery testing device receives the data sent by the Web application, it parses the data and obtains the instruction information;
[0034] S3: after obtaining the instruction information according to the parsed data in step S2, determine whether the instruction information is valid, and determine whether the parsed instruction parameters are valid. If the instruction is invalid, directly skip step S4;
[0035] S4: If the instruction parsed in step S3 is valid, the channel of the battery testing device executes the corresponding instruction;
[0036] S5: The channel control system of the battery testing device responds to the command processing result of the Web application, and returns the command execution result to the Web application through the Socket connection. If the command is invalid in step S3, the invalid reason is returned. If the command is valid, the command is executed successfully in step S4 and the result is returned.
[0037] S6: Return the successful execution result of the instruction in step S5, and the process ends.
[0038] As a preferred solution of the present invention: the instruction types include but are not limited to configuration instructions, start instructions, pause instructions, continue instructions, stop instructions, and setting instruction parameters.
[0039] As a preferred solution of the present invention: the configuration instruction saves the configuration information of the channel; the start instruction performs a start test on the corresponding channel, the test plan loads the process file according to the information of the previous configuration instruction, and the test barcode loads the battery barcode according to the information of the previous configuration instruction; the pause instruction pauses the test of the corresponding channel; the continue instruction continues the test of the corresponding channel; and the stop instruction stops the test of the corresponding channel.
[0040] As a preferred solution of the present invention: the configuration instruction parameters include but are not limited to instruction message ID, instruction type, channel number, work step process path, battery barcode, and BMS signal; the pause instruction parameters include but are not limited to instruction message ID, instruction type, and channel number; the continue instruction parameters include but are not limited to instruction message ID, instruction type, and channel number; the stop instruction parameters include but are not limited to instruction message ID, instruction type, and channel number.
[0041] As a preferred solution of the present invention: the data conversion includes but is not limited to the conversion of instruction information into Json string, wherein JSON (JavaScript Object Notation) is a lightweight data exchange format, which is based on a subset of ECMAScript (JS specification developed by the European Computer Association) and uses a text format that is completely independent of the programming language to store and represent data. The concise and clear hierarchical structure makes JSON an ideal data exchange language.
[0042] As a preferred solution of the present invention: the determination of whether the instruction information is valid is based on the channel control system of the battery detection device receiving the data sent by the Web application, parsing the data of the instruction information, obtaining the data of the instruction information to identify whether the data of the channel in the battery detection device corresponds. If the data does not correspond, the instruction information is judged to be invalid; if the data corresponds, the instruction information is judged to be valid.
[0043] As a preferred solution of the present invention: the determination of whether the instruction parameters are valid is performed based on the parsed instruction type, and whether the parameter data of the instruction type is valid is identified; if the parameter data is invalid, the instruction parameters are invalid; if the parameter data is valid, the instruction parameters are valid.
[0044] As a preferred solution of the present invention: the judgment instruction parameters include but are not limited to judgment configuration instruction parameters, judgment start instruction parameters, judgment pause instruction parameters, judgment continue instruction parameters, and judgment stop instruction parameters;
[0045] The configuration instruction parameter is determined as follows: whether the channel number exists, if not, the configuration instruction parameter is invalid; whether the process path is valid, if not, the configuration instruction parameter is invalid; whether the process parameters parsed according to the process path are correct, if not, the configuration instruction parameter is invalid; whether the process parameters contain BMS signals, if not, the configuration instruction parameter is invalid; whether the number of battery barcodes is equal to the number of channels, if not, the configuration instruction parameter is invalid;
[0046] Determine the start command parameters: determine whether the channel number exists, if not, the start command parameters are invalid; determine whether the channel is in a running state or a paused state, if the channel is in a running state or a paused state, the start command cannot be executed, and the start command parameters are invalid;
[0047] Determine the pause instruction parameters: determine whether the channel number exists, if not, the pause instruction parameters are invalid; determine whether the channel is in a pause state or a completed state, if the channel is in a pause state or a completed state, the pause instruction cannot be executed, and the pause instruction parameters are invalid;
[0048] Determine the parameters of the continue instruction: determine whether the channel number exists, if not, the continue instruction parameter is invalid; determine whether the channel is in the running state or the completed state, if the channel is in the running state or the completed state, the continue instruction cannot be executed, and the continue instruction parameter is invalid;
[0049] The determination of the stop instruction parameters: determining whether the channel number exists, if not, the stop instruction parameters are invalid; determining whether the channel is in a completed state, if the channel is in a completed state, the stop instruction cannot be executed, and the stop instruction parameters are invalid.
[0050] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make appropriate changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the present invention should also fall within the scope of protection of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the present invention.
Claims
1. A channel control method for a battery testing device, characterized in that: The steps include: S1: The user selects several channels to be executed in the Web application interface, selects the instruction type, generates instruction information and performs data conversion, and sends the converted data to the channel control system of the battery testing device through a Socket connection; S2: When the channel control system of the battery testing device receives the data sent by the Web application, it parses the data and obtains the instruction information; S3: after obtaining the instruction information according to the parsed data in step S2, determine whether the instruction information is valid, and determine whether the parsed instruction parameters are valid. If the instruction is invalid, directly skip step S4; S4: If the instruction parsed in step S3 is valid, the channel of the battery detection device executes the corresponding instruction; S5: The channel control system of the battery testing device responds to the command processing result of the Web application, and returns the command execution result to the Web application through the Socket connection. If the command is invalid in step S3, the invalid reason is returned. If the command is valid, the command is executed successfully in step S4 and the result is returned. S6: Return the result of successful execution of the instruction in step S5, and the process ends; the instruction types include configuration instructions, start instructions, pause instructions, continue instructions and stop instructions, and set instruction parameters; the configuration instruction parameters include instruction message ID, instruction type, channel number, work step process path, battery barcode and BMS signal; the pause instruction parameters include instruction message ID, instruction type and channel number; the continue instruction parameters include instruction message ID, instruction type and channel number; the stop instruction parameters include instruction message ID, instruction type and channel number; the judgment of whether the instruction information is valid, then after the channel control system of the battery detection device receives the data sent by the Web application, and parses the data of the instruction information, the data of the instruction information is obtained to identify whether the data of the channel in the battery detection device corresponds, if the data does not correspond, then the instruction information is judged to be invalid, if the data corresponds, then the instruction information is judged to be valid; the judgment of whether the instruction parameter is valid, then the instruction type is identified according to the parsed instruction type, and the parameter data of the instruction type is identified to be valid, if the parameter data is invalid, the instruction parameter is invalid; If the parameter data is valid, the instruction parameters are valid.
2. The channel control method of the battery testing device according to claim 1, characterized in that: The configuration instruction saves the configuration information of the channel selected by the user in the Web application interface; the startup instruction starts the test of the channel selected by the user in the Web application interface, the test plan loads the process file according to the information of the previous configuration instruction, and the test barcode loads the battery barcode according to the information of the previous configuration instruction; The pause instruction pauses the test on the channel selected by the user in the Web application interface; the continue instruction continues the test on the channel selected by the user in the Web application interface; the stop instruction stops the test on the channel selected by the user in the Web application interface.
3. The channel control method of the battery testing device according to claim 1, characterized in that: The data conversion includes converting the instruction information into a Json string.
4. The channel control method of the battery testing device according to claim 1, characterized in that: The judgment instruction parameters include judgment configuration instruction parameters, judgment start instruction parameters, judgment pause instruction parameters, judgment continue instruction parameters, and judgment stop instruction parameters; the judgment configuration instruction parameters: judge whether the channel number exists, if not, the configuration instruction parameter is invalid; judge whether the process path is valid, if not, the configuration instruction parameter is invalid; Whether the working step parameters parsed according to the working step process path are correct, if not, the configuration instruction parameters are invalid; whether the working step parameters contain BMS signals, if not, the configuration instruction parameters are invalid; whether the number of battery barcodes is equal to the number of channels, if not, the configuration instruction parameters are invalid; the judgment of the start instruction parameters: judging whether the channel number exists, if not, the start instruction parameters are invalid; judging whether the channel is in the running state or the paused state, if the channel is in the running state or the paused state, the start instruction cannot be executed, and the start instruction parameters are invalid; the judgment of the pause instruction parameters: judging whether the channel number exists, if not, the pause instruction parameters The number is invalid; judging whether the channel is in the pause state or the completion state, if the channel is in the pause state or the completion state, the pause instruction cannot be executed, and the pause instruction parameter is invalid; judging the continue instruction parameter: judging whether the channel number exists, if not, the continue instruction parameter is invalid; judging whether the channel is in the running state or the completion state, if the channel is in the running state or the completion state, the continue instruction cannot be executed, and the continue instruction parameter is invalid; judging the stop instruction parameter: judging whether the channel number exists, if not, the stop instruction parameter is invalid; judging whether the channel is in the completion state, if the channel is in the completion state, the stop instruction cannot be executed, and the stop instruction parameter is invalid.
Citation Information
Patent Citations
Nuclear power plant DCS controller state access system and method
CN107450512A
Water and fertilizer integrated watering control method and device and electronic equipment
CN109156229A