CN113127092A - Custom packaging system and method based on upper computer - Google Patents

Custom packaging system and method based on upper computer Download PDF

Info

Publication number
CN113127092A
CN113127092A CN202110348624.2A CN202110348624A CN113127092A CN 113127092 A CN113127092 A CN 113127092A CN 202110348624 A CN202110348624 A CN 202110348624A CN 113127092 A CN113127092 A CN 113127092A
Authority
CN
China
Prior art keywords
data
command
computer
module
power analyzer
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
CN202110348624.2A
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 Faraday Electric Drive Co ltd
Original Assignee
Shenzhen Faraday Electric Drive 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 Faraday Electric Drive Co ltd filed Critical Shenzhen Faraday Electric Drive Co ltd
Priority to CN202110348624.2A priority Critical patent/CN113127092A/en
Publication of CN113127092A publication Critical patent/CN113127092A/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automatic Analysis And Handling Materials Therefor (AREA)

Abstract

The embodiment of the invention discloses a custom packaging system and a method based on an upper computer, wherein the system consists of a display module, a command execution module, a communication module and a data processing module, wherein the communication module: communicating with the lower computers, sending corresponding data to a certain lower computer, or carrying out a broadcast command, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects; a data processing module: carrying out further processing on the received data and combining high and low data; a display module: displaying various information of the command setting; a command execution module: and automatically executing the flow according to the set command information and the set type. The invention can open the setting of various data by splitting various packaging flows and execute the data after re-packaging, so that a user can customize or adjust the packaging flows to obtain higher flexibility so as to deal with various testing flows and working conditions.

Description

Custom packaging system and method based on upper computer
Technical Field
The invention relates to the technical field of new energy automobiles, in particular to a custom packaging system and method based on an upper computer.
Background
In the field of new energy automobiles, after a traditional industrial control upper computer, such as an upper computer of an aging test, executes the aging test on a machine, at the moment, a switching motor needs to measure efficiency map, and each link of the flow needs to be replaced by the upper computer or manually executed manually.
The upper computer in the industrial control industry generally encapsulates the implementation flows of certain processes, a user can issue an executed instruction only by simple operation, the upper computer generally automatically executes the process flows, judges whether the process is normally executed or which step the process is executed according to various information fed back by the lower computer, and feeds back the result to a display interface, so that the user can know the current execution progress to decide the next operation.
Because the processes are packaged, the user has little intervention on the processes, and the flexibility is poor, so that a plurality of processes can be packaged to meet various working conditions if different lower computers are connected or different motors are used by the lower computers, and when some tests are generally performed or problems are eliminated, only a certain link in the process flow is likely to be executed, and all the processes are not required to be executed.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a custom packaging system and method based on an upper computer so as to be capable of dealing with various testing processes and working conditions.
In order to solve the above technical problems, an embodiment of the present invention provides a custom packaging system based on an upper computer, which comprises a display module, a command execution module, a communication module, and a data processing module,
a communication module: communicating with the lower computers, sending corresponding data to a certain lower computer, or carrying out a broadcast command, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects;
a data processing module: the received data is further processed, high-low data is combined, and the data is filled into an interface of a display module and a cache opened according to an object for subsequent operation;
a display module: displaying various information of the command setting;
a command execution module: and automatically executing the flow according to the set command information and the set type.
Correspondingly, the embodiment of the invention also provides a custom packaging method based on the upper computer, which comprises the following steps:
a: creating corresponding objects according to the number of the lower computers;
b: setting command related information according to the man-machine interaction operation of a user;
c: judging whether the user confirms execution, and starting to execute the flow according to the set information after receiving an execution command input by the user;
d: and interacting with the lower computer, issuing an executed command, and controlling the lower computer to execute the command.
Further, step D comprises the sub-steps of:
d1: the upper computer writes a torque value initial value into the lower computer;
d2: the upper computer waits for timing;
d3: timing to reach the motor rotating speed stabilization time;
d4: the upper computer sends a channel data reading request of the power analyzer;
d5: the upper computer waits for and receives the data of the power analyzer;
d6: successfully reading the data by the power analyzer, and storing the data into an object of a lower computer;
d7: timing to reach the write-in interval time and finishing reading the power analyzer;
d8: the upper computer writes a torque value into the lower computer;
d9: repeating the substeps D2-D8;
d10: timing to reach the motor rotating speed stabilization time;
d11: the upper computer sends a channel data reading request of the power analyzer;
d12: the upper computer waits for and receives the data of the power analyzer;
d13: successfully reading the data by the power analyzer, and storing the data into an object of a lower computer;
d14: setting whether to directly stop or execute a process of descending from the end value to the initial value according to the command;
d15: the upper computer sends a halt instruction to the lower computer;
d16: and after the flow is executed, selecting a corresponding path according to the data storage operation of the user, and storing the data.
The invention has the beneficial effects that: the invention can open the setting of various data by splitting various packaging flows and execute the data after re-packaging, so that a user can customize or adjust the packaging flows to obtain higher flexibility so as to deal with various testing flows and working conditions.
Drawings
Fig. 1 is a schematic structural diagram of a custom packaging system based on an upper computer according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a custom packaging method based on an upper computer according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of the operation of an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict, and the present invention is further described in detail with reference to the drawings and specific embodiments.
If directional indications (such as up, down, left, right, front, and rear … …) are provided in the embodiment of the present invention, the directional indications are only used to explain the relative position relationship between the components, the movement, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only used for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Referring to fig. 1 and 3, the custom packaging system based on the upper computer according to the embodiment of the present invention is composed of a display module, a command execution module, a communication module, and a data processing module.
A communication module: the system is responsible for communicating with the lower computers, sending corresponding data to a certain lower computer or carrying out broadcast commands, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects.
A data processing module: and carrying out further processing on the received data, combining high-level data and low-level data, and filling the data into an interface of the display module and a cache opened according to the object for subsequent storage and other operations.
A display module: various information of command setting and the like are displayed.
A command execution module: and automatically executing the flow according to the set command information and the set type.
A user firstly defines the sending interval of a command, a writing initial value, a writing end value, the increasing/decreasing change amplitude of the writing value, the change type of the command and the like through a setting interface related to the command, then the execution of the command is started, and the upper computer can automatically execute the flow. Because various data related to the command can be set manually, the processes are endowed with flexibility to a certain extent, various executing information to be packaged originally is separated to be set by a user, and the set information is assembled to form a new packaging process. The operation steps are more command-related settings than those of the ordinary upper computer, but have the same characteristics of simple operation as the ordinary upper computer and the flexibility and variability which the ordinary upper computer does not have.
In the customized packaging system based on the upper computer, the types of the commands can be continuously updated and increased, and various working conditions can be met as long as the types are enriched, so that the universal effect is achieved.
Referring to fig. 2 to 3, the custom packaging method based on the upper computer in the embodiment of the invention includes steps a to D.
A: and creating corresponding objects according to the number of the lower computers.
B: and setting command related information according to the man-machine interaction operation of the user. And setting relevant information (assuming that the type of the command is external characteristic verification) by a user on a command setting interface, wherein the information comprises setting a torque writing interval, writing a torque value into a starting value, writing a torque value into an ending value, writing a torque value into an increasing amplitude value every time, and reading power analyzer data.
C: and judging whether the user confirms execution, and starting to execute the flow according to the set information after receiving an execution command input by the user.
D: and interacting with the lower computer, issuing an executed command, and controlling the lower computer to execute the command.
Further, step D comprises the sub-steps of:
d1: the upper computer writes a torque value initial value into the lower computer;
d2: the upper computer waits for timing;
d3: timing to reach the motor rotating speed stabilization time;
d4: the upper computer sends a channel data reading request of the power analyzer;
d5: the upper computer waits for and receives the data of the power analyzer;
d6: successfully reading the data by the power analyzer, and storing the data into an object of a lower computer;
d7: timing to reach the write-in interval time and finishing reading the power analyzer;
d8: the upper computer writes a torque value (the torque value is a value after the corresponding amplitude is increased) into the lower computer;
d9: repeating the substeps D2-D8;
d10: finally, the upper computer writes a torque value into the lower computer, the torque value is a termination value, the upper computer waits for timing, and the timing reaches the motor rotating speed stable time;
d11: the upper computer sends a channel data reading request of the power analyzer;
d12: the upper computer waits for and receives the data of the power analyzer;
d13: successfully reading the data by the power analyzer, and storing the data into an object of a lower computer;
d14: setting whether to stop directly or to execute a flow from an end value down to a start value (assuming setting to stop) according to the command;
d15: the upper computer sends a halt instruction to the lower computer;
d16: and after the flow is executed, selecting a corresponding path according to the data storage operation of the user, and storing the data.
The invention can select the type of the motor efficiency map in the command middle class after replacing the motor, and after setting the relevant command parameter, the executive command is issued, the machine can automatically execute the flow for measuring the motor efficiency map, after the measurement is finished, the external characteristic of the motor is supposed to be measured, at the moment, the external characteristic of the motor is selected in the command type, after the relevant parameter of the command is set, the executive command is issued, the machine can automatically execute the flow of the external characteristic, or at the moment, a certain working condition is verified, only a part of the flow of a certain process needs to be executed, after a part of the flow of a certain process is directly selected in the command type, the parameter is set, and the command is issued.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (3)

1.一种基于上位机的自定义封装系统,其特征在于,由显示模块、命令执行模块、通讯模块、数据处理模块组成,其中,1. a self-defined packaging system based on host computer, is characterized in that, is made up of display module, command execution module, communication module, data processing module, wherein, 通讯模块:与下位机进行通讯,发送对应的数据至某台下位机,或进行广播命令,并接受所有下位机的数据,根据下位机的ID将数据进行划分并保存至对应的对象内;Communication module: communicate with the lower computer, send the corresponding data to a certain lower computer, or perform broadcast commands, and accept the data of all the lower computers, divide the data according to the ID of the lower computer and save it to the corresponding object; 数据处理模块:将已接收的数据进行进一步的处理,将高低位数据进行合并,并将数据填充至显示模块的接口和根据对象开辟的缓存里以供后续操作使用;Data processing module: further process the received data, combine the high and low data, and fill the data into the interface of the display module and the cache developed according to the object for subsequent operations; 显示模块:显示命令设置的各种信息;Display module: display various information set by the command; 命令执行模块:根据设置好的命令信息和种类,自动执行流程。Command execution module: Automatically execute the process according to the set command information and type. 2.一种基于上位机的自定义封装方法,其特征在于,包括步骤:2. a self-defined encapsulation method based on host computer, is characterized in that, comprises the steps: A:根据下位机的个数创建相应的对象;A: Create corresponding objects according to the number of lower computers; B:根据用户的人机交互操作设置命令相关信息;B: Set command-related information according to the user's human-computer interaction operation; C:判断用户是否确认执行,在收到用户输入执行命令后,根据设置好的信息开始执行流程;C: Determine whether the user confirms the execution, and after receiving the execution command input by the user, start the execution process according to the set information; D:与下位机进行交互,下发执行的命令,控制下位机执行命令。D: Interact with the lower computer, issue the command to execute, and control the lower computer to execute the command. 3.如权利要求2所述的基于上位机的自定义封装方法,其特征在于,步骤D包括子步骤:3. the self-defined encapsulation method based on host computer as claimed in claim 2, is characterized in that, step D comprises sub-step: D1:上位机对下位机写入转矩值起始值;D1: The upper computer writes the initial torque value to the lower computer; D2:上位机等待计时;D2: The host computer waits for timing; D3:计时到达电机转速稳定时间;D3: Time to reach motor speed stabilization time; D4:上位机发送功率分析仪通道数据读取请求;D4: The host computer sends a power analyzer channel data read request; D5:上位机等待并接受功率分析仪数据;D5: The host computer waits and accepts the data of the power analyzer; D6:功率分析仪数据读取成功,并将数据保存至下位机的对象内;D6: The data of the power analyzer is successfully read, and the data is saved to the object of the lower computer; D7:计时到达写入间隔时间且读取功率分析仪完毕;D7: The timing reaches the writing interval time and the reading power analyzer is completed; D8:上位机对下位机写入转矩值;D8: The upper computer writes the torque value to the lower computer; D9:重复子步骤D2~ D8;D9: Repeat sub-steps D2~D8; D10:计时到达电机转速稳定时间;D10: Time to reach motor speed stabilization time; D11:上位机发送功率分析仪通道数据读取请求;D11: The host computer sends a power analyzer channel data read request; D12:上位机等待并接受功率分析仪数据;D12: The host computer waits and accepts the data of the power analyzer; D13:功率分析仪数据读取成功,并将数据保存至下位机的对象内;D13: The power analyzer data is read successfully, and the data is saved to the object of the lower computer; D14:根据命令设置是否直接停机或者执行从终止值下降到起始值的流程;D14: Set whether to stop directly or execute the process from the end value to the start value according to the command; D15:上位机对下位机发送停机指令;D15: The upper computer sends a stop command to the lower computer; D16:流程执行完毕,根据用户的保存数据操作,选择相应的路径,保存数据。D16: After the process is executed, according to the user's operation of saving data, select the corresponding path to save the data.
CN202110348624.2A 2021-03-31 2021-03-31 Custom packaging system and method based on upper computer Pending CN113127092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110348624.2A CN113127092A (en) 2021-03-31 2021-03-31 Custom packaging system and method based on upper computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110348624.2A CN113127092A (en) 2021-03-31 2021-03-31 Custom packaging system and method based on upper computer

Publications (1)

Publication Number Publication Date
CN113127092A true CN113127092A (en) 2021-07-16

Family

ID=76775431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110348624.2A Pending CN113127092A (en) 2021-03-31 2021-03-31 Custom packaging system and method based on upper computer

Country Status (1)

Country Link
CN (1) CN113127092A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141807A (en) * 2011-04-22 2011-08-03 柳州五菱汽车有限责任公司 Upper computer, lower computer, monitoring system and method
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system capable of configuring communication protocol
CN102750241A (en) * 2012-06-13 2012-10-24 中国科学院声学研究所 Method and system for communication between upper computer and lower computer
CN105573303A (en) * 2016-02-01 2016-05-11 奇瑞汽车股份有限公司 Automatic test system for electric vehicle motor control system rack
US20190377699A1 (en) * 2017-04-13 2019-12-12 Chin-Hui LIANG Analog industrial control systems anti-detection architecture and method
CN111649945A (en) * 2020-06-11 2020-09-11 重庆理工大学 Hybrid power total success rate and flow coupling efficiency test system and method
CN112311641A (en) * 2020-12-30 2021-02-02 深圳市法拉第电驱动有限公司 CAN communication-based communication method and system for upper computer and lower computer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system capable of configuring communication protocol
CN102141807A (en) * 2011-04-22 2011-08-03 柳州五菱汽车有限责任公司 Upper computer, lower computer, monitoring system and method
CN102750241A (en) * 2012-06-13 2012-10-24 中国科学院声学研究所 Method and system for communication between upper computer and lower computer
CN105573303A (en) * 2016-02-01 2016-05-11 奇瑞汽车股份有限公司 Automatic test system for electric vehicle motor control system rack
US20190377699A1 (en) * 2017-04-13 2019-12-12 Chin-Hui LIANG Analog industrial control systems anti-detection architecture and method
CN111649945A (en) * 2020-06-11 2020-09-11 重庆理工大学 Hybrid power total success rate and flow coupling efficiency test system and method
CN112311641A (en) * 2020-12-30 2021-02-02 深圳市法拉第电驱动有限公司 CAN communication-based communication method and system for upper computer and lower computer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李大寨: "机器人综合实验教程", 31 May 2020, 机械工业出版社, pages: 11 - 12 *

Similar Documents

Publication Publication Date Title
EP0308805B1 (en) Full-screen input/output application program interface
CN100458977C (en) Apparatus and method for adaptive controlling flash storage interface reading and writing speed
US9355059B2 (en) Automating user's operations
US11803396B2 (en) Intelligent automation of UI interactions
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN106775855B (en) Eclipse-based flash programming method, plug-in and system
CN103135011A (en) Test module generation apparatus, test procedure generation apparatus, generation method, and test apparatus
CN108823847B (en) Color changing method, device, equipment and system of embroidery machine
CN112486377A (en) Text editing method and device and electronic equipment
TW202443312A (en) Process control method, host computer, controller, and system of semiconductor equipment
CN113127092A (en) Custom packaging system and method based on upper computer
CN107562710B (en) Chart processing device and method
CN103135049A (en) Test pattern generation device, test program generation device, generation method, and test device
CN1517859A (en) Graphical interface development method of application program
CN108198582B (en) NAND Flash control method and device and SSD
CN107608612A (en) Alignment display method of handwriting, electronic device and readable storage medium
CN116756064A (en) NVMe controller simulation model, method, equipment and storage medium
CN108363375B (en) Method and system for realizing automatic test of motor controller
CN113374721B (en) Fan test control system and method thereof
JP5204343B1 (en) Test system and program
CN101937361A (en) Method and device for constructing and managing a simulation subsystem
CN114610557A (en) Method and device for testing equipment driving unit
CN113110315A (en) Upper computer system for dynamically loading control based on WPF and control method thereof
CN102033740A (en) Application program connection module, method and computer system thereof
CN113468050A (en) Canvas-based testing method and device, computer equipment and storage medium

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