CN113867990A - Channel control method of battery detection equipment - Google Patents

Channel control method of battery detection equipment Download PDF

Info

Publication number
CN113867990A
CN113867990A CN202111201680.XA CN202111201680A CN113867990A CN 113867990 A CN113867990 A CN 113867990A CN 202111201680 A CN202111201680 A CN 202111201680A CN 113867990 A CN113867990 A CN 113867990A
Authority
CN
China
Prior art keywords
instruction
channel
parameter
parameters
invalid
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
CN202111201680.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.)
Shenzhen Xinweier Electronics Co Ltd
Original Assignee
Shenzhen Xinweier Electronics 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 Shenzhen Xinweier Electronics Co Ltd filed Critical Shenzhen Xinweier Electronics Co Ltd
Priority to CN202111201680.XA priority Critical patent/CN113867990A/en
Publication of CN113867990A publication Critical patent/CN113867990A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30094Condition code generation, e.g. Carry, Zero flag

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a channel control method of battery detection equipment, a user selects a plurality of executed channels on a Web application program interface, selects an instruction type, generates instruction information and carries out data conversion, the converted data is issued to a channel control system of the battery detection equipment in a Socket connection mode and is analyzed to obtain the instruction information, whether the instruction information is valid is judged, whether the analyzed instruction parameter is valid is judged, the analyzed instruction is valid, the channel of the battery detection equipment executes a corresponding instruction, and the channel control system of the battery detection equipment returns the instruction execution result to the Web application program in the Socket connection mode. The channel control system of the battery detection equipment is developed in a Windows service form, supports automatic restart during starting, and has higher concealment and safety; through a Socket connection mode, the data transmission time is short, and the performance is high; and the instruction is issued through the Web application program, so that the user operation is simple.

Description

Channel control method of battery detection equipment
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of battery testing, in particular to a channel control method of battery detection equipment.
[ background of the invention ]
With the wide application of the Web technology and the development of new energy batteries, the battery core test data volume is larger and larger, and the requirements on data interaction and real-time performance are higher and higher. The user needs to control all the battery detection devices uniformly through a Web interface, create a work order, issue related instructions such as start, stop, continue, pause and the like in real time, and the battery detection devices respond in real time.
[ summary of the invention ]
The invention aims to solve the technical problems and provides a novel channel control method of battery detection equipment, which is based on the Windows service of BTS battery detection equipment, is connected with a Web server through a Scoket, issues an instruction, analyzes the instruction, judges the instruction, sends the instruction to the BTS battery detection equipment to execute the instruction, and returns the instruction execution result to a Web application program.
The invention is realized by the following technical scheme:
a channel control method of a battery detection device comprises the following steps:
s1: a user selects a plurality of executed channels on a Web application program interface, selects an instruction type, generates instruction information, performs data conversion, and transmits the converted data to a channel control system of the battery detection equipment in a Socket connection mode;
s2: when a channel control system of the battery detection equipment receives data issued by a Web application program, analyzing the data and acquiring instruction information;
s3: after obtaining the instruction information according to the parsed data in step S2, determining whether the instruction information is valid, and determining whether the parsed instruction parameter is valid, and if the instruction is invalid, directly skipping step S4;
s4: if the command analyzed in the step S3 is valid, the channel of the battery detection device executes the corresponding command;
s5: the channel control system of the battery detection equipment responds to the instruction processing result of the Web application program, the instruction execution result is returned to the Web application program in a Socket connection mode, if the instruction is invalid in the step S3, the invalid reason is returned, and if the instruction is valid, the instruction in the step S4 is executed, and the result is returned successfully;
s6: the result of successful execution of the instruction in step S5 is returned, and the flow ends.
As a further scheme of the invention: the instruction types include, but are not limited to, a configuration instruction, a start instruction, a pause instruction, a continue instruction, a stop instruction, and set instruction parameters.
As a further scheme of the invention: the configuration instruction stores configuration information for the channel; the starting instruction corresponds to a channel for starting test, the test scheme loads a process step flow file according to the information of the previous configuration instruction, and the test bar code loads a battery bar code according to the information of the previous configuration instruction; the pause instruction corresponds to a channel pause test; the continuation instruction corresponds to a channel to continue testing; and stopping testing of the channel corresponding to the stop instruction.
As a further scheme of the invention: the configuration instruction parameters include but are not limited to instruction message ID, instruction type, channel number, process step flow path, battery bar code, BMS signal; the pause instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the continue instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the stop instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number.
As a further scheme of the invention: the data transformation includes, but is not limited to, the transformation of instructional information into Json strings, where Json (Json object Notation) is a lightweight data exchange format that stores and represents data in a completely programming language independent text format based on a subset of ECMAScript (JS specification by the european computer association), a compact and clear hierarchy making Json an ideal data exchange language.
As a further scheme of the invention: and judging whether the instruction information is valid or not, analyzing the data of the instruction information according to the data issued by the Web application program received by a channel control system of the battery detection equipment, acquiring the data of the instruction information, identifying whether the data of the channel in the battery detection equipment corresponds or not, judging whether the instruction information is invalid if the data does not correspond, and judging whether the instruction information is valid if the data corresponds.
As a further scheme of the invention: judging whether the instruction parameters are valid or not, identifying according to the analyzed instruction types, identifying whether the parameter data of the instruction types are valid or not, and if the parameter data are invalid, the instruction parameters are invalid; if the parameter data is valid, the instruction parameter is valid.
As a further scheme of the invention: the judgment instruction parameters include but are not limited to a judgment configuration instruction parameter, a judgment starting instruction parameter, a judgment pause instruction parameter, a judgment continuing instruction parameter and a judgment stopping instruction parameter;
the judgment configuration instruction parameters are as follows: judging whether the channel number exists or not, and if not, invalidating the configuration instruction parameters; judging whether the process flow path is valid or not, and if the process flow path is invalid, the configuration instruction parameter is invalid; whether the process step parameters analyzed according to the process step flow path are correct or not is judged, and if the process step parameters are incorrect, the configuration instruction parameters are invalid; whether the step parameters contain BMS signals or not, and if not, the configuration instruction parameters are invalid; whether the number of the battery bar codes is equal to the number of the channels or not is judged, and if not, the configuration instruction parameters are invalid;
the judgment of the starting instruction parameters is as follows: judging whether the channel number exists or not, and if not, invalidating the starting instruction parameter; judging whether the channel is in an operating state or a pause state, if so, executing the starting instruction, and the starting instruction parameter is invalid;
the judgment of the pause instruction parameters is as follows: judging whether the channel number exists or not, and if not, the pause instruction parameter is invalid; judging whether the channel is in a pause state or a 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;
the judgment continuation instruction parameter is as follows: judging whether the channel number exists or not, and if not, invalidating the continuous instruction parameter; judging whether the channel is in an operating state or a completion state, if so, executing the continuing instruction, and invalidating the parameter of the continuing instruction;
the judgment stop instruction parameter is as follows: judging whether the channel number exists or not, and if not, stopping the instruction parameters to be invalid; and judging whether the channel is in a finished state, if so, executing the stop instruction, and invalidating the parameters of the stop instruction.
Compared with the prior art, the invention has the beneficial effects that:
(1) the channel control system of the battery detection equipment is developed in a Windows service form, compared with an EXE application program, the Windows service supports automatic restart during starting, has no visual operation interface, has higher concealment and safety, and effectively prevents a user from randomly changing configuration and closing software;
(2) the Socket connection mode is a relatively common connection mode, the cost is relatively low, the transmission data is byte-level, the transmission data can be self-defined, the data transmission time is short, the performance is high, even encryption can be performed, and the data safety is high;
(3) the Web application program issues the instruction, the user operation is simple, the channels of thousands of battery detection devices can be controlled only by logging in a Web interface in a browser, and the specific operation of BTS detection system software and the specific instruction transmission protocol do not need to be known deeply.
[ description of the drawings ]
FIG. 1 is a schematic diagram of a channel control method of a battery inspection apparatus according to the present invention;
FIG. 2 is a flow chart of a channel control method of the battery detection device according to the present invention;
[ detailed description ] embodiments
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein the technical solutions in the embodiments of the present invention are clearly and completely described, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort belong to the protection scope of the present invention; in addition, the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Embodiment as shown in fig. 1 and fig. 2, a channel control method of a battery detection device includes the following steps:
s1: a user selects a plurality of executed channels on a Web application program interface, selects an instruction type, generates instruction information, performs data conversion, and transmits the converted data to a channel control system of the battery detection equipment in a Socket connection mode;
s2: when a channel control system of the battery detection equipment receives data issued by a Web application program, analyzing the data and acquiring instruction information;
s3: after obtaining the instruction information according to the parsed data in step S2, determining whether the instruction information is valid, and determining whether the parsed instruction parameter is valid, and if the instruction is invalid, directly skipping step S4;
s4: if the command analyzed in the step S3 is valid, the channel of the battery detection device executes the corresponding command;
s5: the channel control system of the battery detection equipment responds to the instruction processing result of the Web application program, the instruction execution result is returned to the Web application program in a Socket connection mode, if the instruction is invalid in the step S3, the invalid reason is returned, and if the instruction is valid, the instruction in the step S4 is executed, and the result is returned successfully;
s6: the result of successful execution of the instruction in step S5 is returned, and the flow ends.
As a preferable scheme of the invention: the instruction types include, but are not limited to, a configuration instruction, a start instruction, a pause instruction, a continue instruction, a stop instruction, and set instruction parameters.
As a preferable scheme of the invention: the configuration instruction stores configuration information for the channel; the starting instruction corresponds to a channel for starting test, the test scheme loads a process step flow file according to the information of the previous configuration instruction, and the test bar code loads a battery bar code according to the information of the previous configuration instruction; the pause instruction corresponds to a channel pause test; the continuation instruction corresponds to a channel to continue testing; and stopping testing of the channel corresponding to the stop instruction.
As a preferable scheme of the invention: the configuration instruction parameters include but are not limited to instruction message ID, instruction type, channel number, process step flow path, battery bar code, BMS signal; the pause instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the continue instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the stop instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number.
As a preferable scheme of the invention: the data transformation includes, but is not limited to, the transformation of instructional information into Json strings, where Json (Json object Notation) is a lightweight data exchange format that stores and represents data in a completely programming language independent text format based on a subset of ECMAScript (JS specification by the european computer association), a compact and clear hierarchy making Json an ideal data exchange language.
As a preferable scheme of the invention: and judging whether the instruction information is valid or not, analyzing the data of the instruction information according to the data issued by the Web application program received by a channel control system of the battery detection equipment, acquiring the data of the instruction information, identifying whether the data of the channel in the battery detection equipment corresponds or not, judging whether the instruction information is invalid if the data does not correspond, and judging whether the instruction information is valid if the data corresponds.
As a preferable scheme of the invention: judging whether the instruction parameters are valid or not, identifying according to the analyzed instruction types, identifying whether the parameter data of the instruction types are valid or not, and if the parameter data are invalid, the instruction parameters are invalid; if the parameter data is valid, the instruction parameter is valid.
As a preferable scheme of the invention: the judgment instruction parameters include but are not limited to a judgment configuration instruction parameter, a judgment starting instruction parameter, a judgment pause instruction parameter, a judgment continuing instruction parameter and a judgment stopping instruction parameter;
the judgment configuration instruction parameters are as follows: judging whether the channel number exists or not, and if not, invalidating the configuration instruction parameters; judging whether the process flow path is valid or not, and if the process flow path is invalid, the configuration instruction parameter is invalid; whether the process step parameters analyzed according to the process step flow path are correct or not is judged, and if the process step parameters are incorrect, the configuration instruction parameters are invalid; whether the step parameters contain BMS signals or not, and if not, the configuration instruction parameters are invalid; whether the number of the battery bar codes is equal to the number of the channels or not is judged, and if not, the configuration instruction parameters are invalid;
the judgment of the starting instruction parameters is as follows: judging whether the channel number exists or not, and if not, invalidating the starting instruction parameter; judging whether the channel is in an operating state or a pause state, if so, executing the starting instruction, and the starting instruction parameter is invalid;
the judgment of the pause instruction parameters is as follows: judging whether the channel number exists or not, and if not, the pause instruction parameter is invalid; judging whether the channel is in a pause state or a 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;
the judgment continuation instruction parameter is as follows: judging whether the channel number exists or not, and if not, invalidating the continuous instruction parameter; judging whether the channel is in an operating state or a completion state, if so, executing the continuing instruction, and invalidating the parameter of the continuing instruction;
the judgment stop instruction parameter is as follows: judging whether the channel number exists or not, and if not, stopping the instruction parameters to be invalid; and judging whether the channel is in a finished state, if so, executing the stop instruction, and invalidating the parameters of the stop instruction.
Appropriate changes and modifications to the embodiments described above will become apparent to those skilled in the art from the disclosure and teachings of the foregoing description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (8)

1. A channel control method of a battery detection device is characterized by comprising the following steps:
s1: a user selects a plurality of executed channels on a Web application program interface, selects an instruction type, generates instruction information, performs data conversion, and transmits the converted data to a channel control system of the battery detection equipment in a Socket connection mode;
s2: when a channel control system of the battery detection equipment receives data issued by a Web application program, analyzing the data and acquiring instruction information;
s3: after obtaining the instruction information according to the parsed data in step S2, determining whether the instruction information is valid, and determining whether the parsed instruction parameter is valid, and if the instruction is invalid, directly skipping step S4;
s4: if the command analyzed in the step S3 is valid, the channel of the battery detection device executes the corresponding command;
s5: the channel control system of the battery detection equipment responds to the instruction processing result of the Web application program, the instruction execution result is returned to the Web application program in a Socket connection mode, if the instruction is invalid in the step S3, the invalid reason is returned, and if the instruction is valid, the instruction in the step S4 is executed, and the result is returned successfully;
s6: the result of successful execution of the instruction in step S5 is returned, and the flow ends.
2. The channel control method of a battery inspection apparatus according to claim 1, characterized in that: the instruction types include, but are not limited to, a configuration instruction, a start instruction, a pause instruction, a continue instruction, a stop instruction, and set instruction parameters.
3. The channel control method of a battery inspection apparatus according to claim 2, characterized in that: the configuration instruction stores configuration information for the channel; the starting instruction corresponds to a channel for starting test, the test scheme loads a process step flow file according to the information of the previous configuration instruction, and the test bar code loads a battery bar code according to the information of the previous configuration instruction; the pause instruction corresponds to a channel pause test; the continuation instruction corresponds to a channel to continue testing; and stopping testing of the channel corresponding to the stop instruction.
4. The channel control method of a battery inspection apparatus according to claim 2, characterized in that: the configuration instruction parameters include but are not limited to instruction message ID, instruction type, channel number, process step flow path, battery bar code, BMS signal; the pause instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the continue instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number; the stop instruction parameters include, but are not limited to, instruction message ID, instruction type, channel number.
5. The channel control method of a battery inspection apparatus according to claim 1, characterized in that: the data conversion includes, but is not limited to, conversion of instruction information into a Json string.
6. The channel control method of a battery inspection apparatus according to claim 1, characterized in that: and judging whether the instruction information is valid or not, analyzing the data of the instruction information according to the data issued by the Web application program received by a channel control system of the battery detection equipment, acquiring the data of the instruction information, identifying whether the data of the channel in the battery detection equipment corresponds or not, judging whether the instruction information is invalid if the data does not correspond, and judging whether the instruction information is valid if the data corresponds.
7. The channel control method of a battery inspection apparatus according to claim 1, characterized in that: judging whether the instruction parameters are valid or not, identifying according to the analyzed instruction types, identifying whether the parameter data of the instruction types are valid or not, and if the parameter data are invalid, the instruction parameters are invalid; if the parameter data is valid, the instruction parameter is valid.
8. The channel control method of a battery inspection apparatus according to claim 7, characterized in that: the judgment instruction parameters include but are not limited to a judgment configuration instruction parameter, a judgment starting instruction parameter, a judgment pause instruction parameter, a judgment continuing instruction parameter and a judgment stopping instruction parameter;
the judgment configuration instruction parameters are as follows: judging whether the channel number exists or not, and if not, invalidating the configuration instruction parameters; judging whether the process flow path is valid or not, and if the process flow path is invalid, the configuration instruction parameter is invalid; whether the process step parameters analyzed according to the process step flow path are correct or not is judged, and if the process step parameters are incorrect, the configuration instruction parameters are invalid; whether the step parameters contain BMS signals or not, and if not, the configuration instruction parameters are invalid; whether the number of the battery bar codes is equal to the number of the channels or not is judged, and if not, the configuration instruction parameters are invalid;
the judgment of the starting instruction parameters is as follows: judging whether the channel number exists or not, and if not, invalidating the starting instruction parameter; judging whether the channel is in an operating state or a pause state, if so, executing the starting instruction, and the starting instruction parameter is invalid;
the judgment of the pause instruction parameters is as follows: judging whether the channel number exists or not, and if not, the pause instruction parameter is invalid; judging whether the channel is in a pause state or a 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;
the judgment continuation instruction parameter is as follows: judging whether the channel number exists or not, and if not, invalidating the continuous instruction parameter; judging whether the channel is in an operating state or a completion state, if so, executing the continuing instruction, and invalidating the parameter of the continuing instruction;
the judgment stop instruction parameter is as follows: judging whether the channel number exists or not, and if not, stopping the instruction parameters to be invalid; and judging whether the channel is in a finished state, if so, executing the stop instruction, and invalidating the parameters of the stop instruction.
CN202111201680.XA 2021-10-15 2021-10-15 Channel control method of battery detection equipment Pending CN113867990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111201680.XA CN113867990A (en) 2021-10-15 2021-10-15 Channel control method of battery detection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111201680.XA CN113867990A (en) 2021-10-15 2021-10-15 Channel control method of battery detection equipment

Publications (1)

Publication Number Publication Date
CN113867990A true CN113867990A (en) 2021-12-31

Family

ID=78999660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111201680.XA Pending CN113867990A (en) 2021-10-15 2021-10-15 Channel control method of battery detection equipment

Country Status (1)

Country Link
CN (1) CN113867990A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991088A (en) * 2023-07-24 2023-11-03 北京三维天地科技股份有限公司 Remote control method for detecting new energy battery

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991088A (en) * 2023-07-24 2023-11-03 北京三维天地科技股份有限公司 Remote control method for detecting new energy battery

Similar Documents

Publication Publication Date Title
CN100514307C (en) Test cost-sensitive system failure position finding method and its device
CN114077742B (en) Intelligent software vulnerability mining method and device
CN113867990A (en) Channel control method of battery detection equipment
CN106855844B (en) Performance test method and system
WO2021047184A1 (en) System failure analysis and processing method and apparatus, storage medium, and electronic device
CN112506757A (en) Automatic test method, system, computer device and medium thereof
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN113064618B (en) System and method for simulating new energy vehicle conformance detection
CN114238127A (en) Interface test method, device, equipment and storage medium
CN114500345A (en) Fuzzy test and diagnosis system based on custom protocol configuration
KR100758850B1 (en) Appaturus and method for test using test script in mobile communication system
US20120246636A1 (en) Method and arrangement for installing and configuring a computer system
US20050203717A1 (en) Automated testing system, method and program product using testing map
CN117215551A (en) LLM-based low-code application development method and system
CN111737933A (en) SOC prototype verification method, system, equipment and medium
CN111917692A (en) Fuzzy test method, device, equipment and computer readable storage medium
CN116306479A (en) UVM-based Ethernet PHY universal verification platform and verification method
CN113645052B (en) Firmware debugging method and related equipment
CN105243015B (en) Method and system for automatically testing software
CN113934619A (en) Sound source testing method, system and storage medium based on Robot Framework testing Framework
CN112445195A (en) Function test method and device for vehicle controller
CN106789260B (en) System and method for high availability drilling of network devices
CN112486479A (en) Data acquisition method and device
CN110377463A (en) Interface test method, device, terminal and computer readable storage medium
JP2008134684A (en) Apparatus and program for verifying information communication 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