CN112799693A - Burning method of collector and controller, upper computer and storage medium - Google Patents
Burning method of collector and controller, upper computer and storage medium Download PDFInfo
- Publication number
- CN112799693A CN112799693A CN202110374618.4A CN202110374618A CN112799693A CN 112799693 A CN112799693 A CN 112799693A CN 202110374618 A CN202110374618 A CN 202110374618A CN 112799693 A CN112799693 A CN 112799693A
- Authority
- CN
- China
- Prior art keywords
- collector
- controller
- burning
- port
- program
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Programmable Controllers (AREA)
Abstract
The invention relates to the field of mainboard burning, in particular to a burning method of a collector and a controller, an upper computer and a storage medium. The method comprises the steps of receiving a configuration file imported by a user; the configuration file comprises a first parameter and a second parameter, and information of the first program and information of the second program; in response to the starting burning operation of a user, burning a first program to a collector through a first CAN port, and burning a second program to a controller through a COM port; the collector and the controller are electrified again for the first time, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port; and re-electrifying the collector and the controller again, reading the first configuration parameter of the collector and the second configuration parameter of the controller, and obtaining a comparison result. According to the embodiment, one-key parallel automatic burning of the collector and the controller is realized, and manpower and equipment resources are saved.
Description
Technical Field
The invention relates to the field of mainboard burning, in particular to a burning method of a collector and a controller, an upper computer and a storage medium.
Background
Currently, when a program is burned into a collector and a controller in a device, a universal tool, UniFlash or microsoft, is generally purchased for burning. However, the above-described tool has the following problems:
the operation interface of the universal tool UniFlash is complex, the number of steps is large, and the conditions of high training cost, much waste of operation time, operation errors and the like are indirectly caused. In addition to the above problems, microsoft has the problem of complex functions and no fool-proof and error-proof solution for the interface.
On the other hand, after the burning is finished, the test is needed, namely, repeated burning operation is carried out on the other equipment, and burning results of the two equipment are compared manually, so that a large amount of manpower and equipment resources are wasted.
In view of the above, the present invention is particularly proposed.
Disclosure of Invention
The embodiment of the invention provides a burning method of a collector and a controller, an upper computer and a storage medium, which realize one-key parallel automatic burning of the collector and the controller, avoid operation errors and save manpower and equipment resources.
In a first aspect, the present invention provides a burning method for a collector and a controller, which is applied to an upper computer, the upper computer is connected with an electronic device, the electronic device is integrated with the collector and the controller, and the method includes:
receiving a configuration file imported by a user; the configuration file comprises a first parameter to be written into the collector, a second parameter to be written into the controller, information of a first program to be burnt into the collector and information of a second program to be burnt into the controller;
responding to the starting burning operation of a user, burning the first program to a collector through a first Controller Area Network (CAN) port according to the information of the first program, and burning the second program to a controller through a serial communication port (COM) port according to the information of the second program; the collector and the controller are electrified again for the first time, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port; and re-electrifying the collector and the controller again, reading the first configuration parameter of the collector and the second configuration parameter of the controller, and respectively comparing the first configuration parameter and the second configuration parameter with the first configuration parameter and the second configuration parameter to obtain a comparison result.
In a second aspect, the present invention provides an upper computer, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the burning method of the collector and the controller according to any embodiment.
In a third aspect, the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to execute the burning method of the collector and the controller according to any embodiment
Compared with the prior art, the invention has the beneficial effects that:
in the embodiment, 2 burning tools respectively suitable for the collector and the controller in the prior art are combined into 1, so that the parallel burning of the COM port and the CAN port is realized. The whole process can complete the whole burning, parameter configuration and comparison operations only by importing the configuration file and executing the burning starting operation, so that the effects of one-click type, simple operation and time saving are achieved, and the operation errors of a user are avoided. After the program is burned, a power-on operation (i.e. powering off and then powering on) is performed to ensure that the program is burned successfully (because if the program is not burned successfully, the parameter written after the program is powered on again will report an error). And re-electrifying after the parameters are written in to ensure that the first configuration parameters and the second configuration parameters which are actually written in the collector and the controller are read, and then comparing with the first parameters and the second parameters respectively to obtain a comparison result. Therefore, in the embodiment, when the inspection is performed, the first configuration parameter and the second configuration parameter which are actually written in the collector and the controller are read by storing the first parameter and the second parameter, and are automatically compared, so that the automation of the inspection is realized, the inspection can be performed on the same equipment, the participation of other equipment is not needed, and the manpower and equipment resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a burning method for a collector and a controller according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an upper computer and an electronic device provided in an embodiment of the present invention;
FIG. 3 is a diagram of a structure of an upper computer, a power control module and an electronic device according to an embodiment of the invention;
FIG. 4 is a timing diagram of a burning process of the controller according to an embodiment of the present invention;
fig. 5 is a timing diagram of a burning process of the collector according to the embodiment of the present invention;
fig. 6 is a burning flowchart of a collector according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an upper computer according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Fig. 1 is a flowchart of a burning method for a collector and a controller according to an embodiment of the present invention, which is suitable for the case of program burning and parameter configuration for the collector and the controller. The embodiment provides a new burning tool and is integrated in an upper computer. The acquisition device and the controller connected with the upper computer are automatically and parallelly burnt by operating the burning tool.
Fig. 2 is a schematic structural diagram of an upper computer and an electronic device provided in the embodiment of the present invention. The collector and the controller are integrated in the electronic equipment and are connected with the upper computer through the electronic equipment. Specifically, the collector is connected to a first Controller Area Network (CAN) Port of the upper computer, and the Controller is connected to a serial Communication Port (COM) Port and a second CAN Port of the upper computer. The first CAN port is a 250k transmission rate for communicating with the collector and the second CAN port is a 500k transmission rate for communicating with the controller.
Preferably, considering that some upper computers do not have a CAN port and a COM port, a Universal Serial Bus (USB) port-to-CAN port drive and a USB port-to-COM port drive are implemented under a windows system of the upper computer. The CAN port communication and the COM port communication of the windows system are mutually independent in driving, so that the characteristic CAN be applied to transmit the program and the parameter to be burned to the communication interface corresponding to the lower computer in parallel, and data communication CAN be realized under the parallel condition without mutual interference.
With reference to fig. 1 and 2, the method implemented by the tool comprises the following steps:
s110, receiving a configuration file imported by a user; the configuration file comprises a first parameter to be written into the collector, a second parameter to be written into the controller, information of a first program to be burnt into the collector and information of a second program to be burnt into the controller.
The import of the corresponding configuration files is realized by selecting the import (collector and controller) configuration files, the import of the upper board (collector) configuration files or the import of the lower board (controller) configuration files in the configuration items.
The configuration file is pre-written with the information and configuration parameters of the burning program. Specifically, the information of the first program/the second program includes a file storage path, a burning segment number, and the like of the first program/the second program.
S120, in response to the starting of the burning operation of a user, burning the first program to a collector through a first CAN port according to the information of the first program, and burning the second program to a controller through a COM port according to the information of the second program; the collector and the controller are electrified again for the first time, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port; and re-electrifying the collector and the controller again, reading the first configuration parameter of the collector and the second configuration parameter of the controller, and respectively comparing the first configuration parameter and the second configuration parameter with the first configuration parameter and the second configuration parameter to obtain a comparison result.
It should be noted that, because the COM port is only used for the controller programming program, and the configuration parameters are used for communicating the programs of the controller and the collector, both the programs are communicated through the CAN port. The burning program is communicated with the Bootloader program, and the Bootloader program of the collector is communicated by using a CAN (controller area network) port because the collector does not have a COM (component object model) port, and the Bootloader program of the controller is communicated by using the COM port because the controller is provided with the COM port. Certainly, the COM port communication speed is faster than the CAN port communication speed, and the program for the controller is also larger than the program for the collector, so that the COM port communication speed is one of the reasons for selecting the COM port burning program.
When a user needs to burn, the user triggers the burning tool, and the burning tool can automatically and sequentially execute the program burning, parameter configuration and comparison operations of the collector and the controller. In the embodiment, 2 burning tools respectively suitable for the collector and the controller in the prior art are combined into 1, so that the parallel burning of the COM port and the CAN port is realized. The whole process can complete the whole burning, parameter configuration and comparison operations only by importing the configuration file and executing the burning starting operation, so that the effects of one-click type, simple operation and time saving are achieved, and the operation errors of a user are avoided. After the program is burned, a power-on operation (i.e. powering off and then powering on) is performed to ensure that the program is burned successfully (because if the program is not burned successfully, the parameter written after the program is powered on again will report an error). And re-electrifying after the parameters are written in to ensure that the first configuration parameters and the second configuration parameters which are actually written in the collector and the controller are read, and then comparing with the first parameters and the second parameters respectively to obtain a comparison result. Therefore, in the embodiment, when the inspection is performed, the first configuration parameter and the second configuration parameter which are actually written in the collector and the controller are read by storing the first parameter and the second parameter, and are automatically compared, so that the automation of the inspection is realized, the inspection can be performed on the same equipment, the participation of other equipment is not needed, and the manpower and equipment resources are saved.
Each link realized by the burning tool is described in detail below.
1) The burning operation comprises the following four steps.
The first step is as follows: and responding to the starting burning operation of a user, electrifying the collector and the controller, and starting the first CAN port and the COM port.
Fig. 3 is a structural diagram of an upper computer, a power control module, and an electronic device according to an embodiment of the present invention, and compared with a manual power-on operation in the prior art, in this embodiment, a power control module is configured between the electronic device and the upper computer, and the power control module sends an instruction to the power control module to indirectly control power on and power off of the electronic device, and disconnection of signal communication between a CAN port and a COM port is performed.
Optionally, the power control module comprises a single chip microcomputer, and a first relay and a second relay which are connected with the single chip microcomputer, the first relay controls on-off of a circuit between the power supply and the electronic equipment, and the second relay controls on-off of signal communication between the electronic equipment and the upper computer. In this step, the upper computer sends an instruction 0x11 to the single chip microcomputer to enable the single chip microcomputer to control the first relay and the second relay to be closed, so that the collector and the controller are powered on, and the first CAN port and the COM port are opened. The embodiment sends the instruction to the power control module through the upper computer, and the seamless and efficient automatic control switch is realized.
It is worth to be noted that the burning tool also provides a function of autonomously controlling the power control module, the collector and the controller are powered on by clicking the power control item in the menu bar and selecting 'power connection | | | serial port connection → program burning', and the first CAN port and the COM port are opened.
The second step is that: requesting a burning identifier from the collector through the first CAN port through a CAN burning thread; requesting a burning identifier from the controller through a COM burning thread via a COM port; the burning identification is generated by the collector and the controller in response to the triggering operation of a user.
The third step: after receiving the burning mark sent by the collector, burning the first program to the collector through the first CAN port according to the information of the first program; and after receiving the burning identification sent by the controller, burning the second program to the controller through the COM port according to the information of the second program.
The fourth step: and receiving a burning completion identifier sent by the collector and receiving a burning completion identifier sent by the controller.
The C # language operating environment can be used for establishing independent and parallel threads: CAN programming thread and COM programming thread. The CAN burning thread CAN be communicated with the first CAN port, and the COM burning thread CAN be communicated with the COM port, so that parallel data communication without mutual interference is realized on a program level.
Fig. 4 is a timing diagram of a burning process of the controller according to an embodiment of the present invention. With reference to fig. 4, after the electronic device is powered on, the user selects a burning option on the interface of the controller, so as to trigger the controller to generate a burning identifier. The controller sends the burning identification to a Windows serial port driver (namely, the USB port is converted into a COM port driver), and the Windows serial port driver sends the burning identification to a COM burning thread. And after analyzing the burning identification by the COM burning thread, acquiring a second program according to the information of the second program, sending the second program to the Windows serial port driver, and sending the second program to the controller by the Windows serial port driver so as to enable the controller to execute burning. And then, the controller sends the burning completion identifier to the Windows serial port driver, the Windows serial port driver sends the burning completion identifier to the COM burning thread, and the COM burning thread analyzes the identifier and then completes burning. And displaying the burning completion identifier on the second configuration page to prompt the user.
Fig. 5 is a timing diagram of a burning process of a collector provided in the embodiment of the present invention, fig. 6 is a burning flowchart of the collector provided in the embodiment of the present invention, and with reference to fig. 6 and fig. 5, after the electronic device is powered on, a user selects a burning option on an interface of the collector, so as to trigger the collector to generate a burning identifier. The collector sends the burning identification to the drive of the USB interface to the CAN interface, and the drive of the USB interface to the CAN interface sends the burning identification to the CAN burning thread. After the CAN burning thread analyzes the burning identification, the burning instruction is sent to the collector through the drive of the USB interface to the CAN interface. After receiving the response of the collector, the CAN burning thread packs an initial data packet according to the STX identifier of the Ymodem protocol, performs Cyclic Redundancy Check (CRC) Check, then transmits the initial data packet to the collector by the drive of the USB interface to the CAN interface, and the collector burns and transmits a burning completion identifier to the CAN burning thread after finishing burning. And then the CAN burning thread continues to pack the burning data packet according to the STX identifier of the Ymodem protocol, and after CRC (cyclic redundancy check) is carried out on the burning data packet, the burning data packet is transmitted to the collector through the drive of the USB interface to the CAN interface, and the collector carries out burning and transmits a burning completion identifier to the CAN burning thread after the burning is completed. And then the CAN burning thread continues to pack the data packet according to the STX identifier of the Ymodem protocol, and after CRC is carried out, the data packet is transmitted to the collector through the drive of the USB interface to the CAN interface, and the collector carries out burning and transmits a burning completion identifier to the CAN burning thread after the burning is completed. And after the CAN burning thread receives the burning completion identifier, judging that the burning is really completed and then displaying the burning completion on the page, and otherwise, returning to the operation of packaging the burning data packet until all programs are burnt.
In this embodiment, 2 burning tools respectively applicable to the collector and the controller in the prior art are combined into 1, so that the Ymodem communication protocol of the COM port and the CAN port communication protocol are burned in parallel. And a feedback mechanism is added in the upper computer, for example, a finishing identifier is automatically fed back after each operation in the sequence diagram and the flow chart is finished, and the upper computer automatically performs the next operation after receiving the finishing identifier. The program is processed according to the flow, and the flow can be executed in a standardized manner and efficiently.
2) The parameter configuration operation includes the following two steps.
The first step is as follows: and after receiving the burning completion identifier sent by the collector and the burning completion identifier sent by the controller, carrying out initial power-on again on the collector and the controller.
With reference to fig. 3, sending a power-down and signal-off command 0x00 to the power control module to control the power-down of the collector and the controller and to turn off the signal communication between the first CAN port and the COM port; and sending a power-on and signal-on command 0x11 to a power control module to control the collector and the controller to be powered on and start the signal communication of the first CAN port and the second CAN port. For details, reference is made to the description of the above embodiments, which are not repeated herein.
It should be noted that the burning tool also provides the function of autonomously controlling the power control module. The power-off of the collector and the controller is realized by clicking a power control item in a menu bar and selecting 'power off | | serial port off → power off', and the first CAN port and the COM port are in signal communication and cut off.
The second step is that: and writing the first parameter into the collector through the first CAN port, and writing the second parameter into the controller through the second CAN port.
After the burning is finished, the equipment needs to be restarted, and then a parameter configuration process is started. Here it needs to be determined whether the device is powered on. Because the collector and the controller of the equipment can inquire the version information of the current lower computer program after being started, a timer is arranged in the upper computer to time and set time (the set time is determined according to the starting time of the collector and the controller, for example, 3 s). After the set time length is started after the first power-on again, the device may be started up, and at an interval of 100ms, the version information of the burned program is polled from the collector and the controller through the first CAN port and the second CAN port. If the latest version information (i.e. the version information of the program that was burned last time) is read, the program can be started after the program is burned successfully, and the configuration process can be entered. Then, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port.
3) The comparison operation comprises the following two steps:
the first step is as follows: and powering on the collector and the controller again.
With reference to fig. 3, sending a power-down and signal-off command 0x00 to the power control module to control the power-down of the collector and the controller and to turn off the signal communication of the first CAN port and the COM port; and sending a power-on and signal-on command 0x10 to the power control module to control the collector and the controller to be powered on and start the signal communication of the first CAN port and the second CAN port, wherein the signal communication of the COM port is disconnected.
It is worth to be noted that the burning tool also provides a function of autonomously controlling the power control module, the collector and the controller are powered on by clicking the power control item in the menu bar and selecting 'power on | | serial port disconnection → configuration checking', and the first CAN port and the second CAN port are opened.
The second step is that: and reading the first configuration parameter of the collector and the second configuration parameter of the controller, and comparing the first configuration parameter and the second configuration parameter with the first configuration parameter and the second configuration parameter respectively to obtain a comparison result.
And reading a first configuration parameter of the collector through the opened first CAN port, and reading a second configuration parameter of the controller through the opened second CAN port.
Optionally, when the first configuration parameter and the second configuration parameter are read, the electronic device needs to communicate with the electronic device, and the electronic device needs to operate for a certain time, so that sufficient waiting time is set, and the configuration parameters of the device are read in a polling manner for comparison.
In the above embodiment and the following embodiments, the upper computer is in communication connection with the cloud platform server so as to automatically upload information to the cloud platform server. Optionally, the configuration file further includes a network address on the cloud platform server.
In an optional implementation manner, after the comparison with the first parameter and the second parameter respectively is performed to obtain a comparison result, if the comparison result is qualified, the ID (Identity document) of the electronic device, the integrated circuit card identification code, the first program, the second program, the device type, and the device model information are uploaded to the network address on the cloud platform server.
In another optional implementation manner, after the comparison result is obtained by comparing the tracking data with the first parameter and the second parameter respectively, and after the electronic device is configured in a vehicle, the electronic device uploads the tracking data to a network address on the cloud platform server. The tracking data includes attribute information of the vehicle, alarm data, driving data, and the like.
And realizing the autonomous configuration of the network address by selecting the platform server in the configuration item.
According to the embodiment, the device information can be automatically uploaded to the cloud platform server through the upper computer, and manual operation of a user is not needed. The network address is also used as an uploading address of the tracking data, so that the network address and the equipment information are automatically stored in the same network address, and reading and monitoring are facilitated.
The user can operate on the two configuration pages, so that the whole process of burning, parameter configuration, comparison, information uploading, storage and printing of the collector and the controller is automatically completed.
First, a configuration file is imported, a first parameter and a second parameter are displayed in a configuration standard information area of a first configuration page, specifically, an IP (Internet Protocol ) address, a port number and a brake mode are written into an upper board (i.e., a collector) configuration standard information area, and a system parameter standard, a vehicle speed parameter standard, an ABS (antilock brake system) parameter standard, a steering parameter standard and a brake parameter standard are written into a lower board (i.e., a controller) configuration standard information area. Optionally, the network address (IP), the port number, and the braking mode may also be obtained by scanning a barcode/two-dimensional code attached to the electronic device.
In addition, the configuration file also comprises program standard information and upper plate fuel-saving configuration standard information, and the program standard information and the upper plate fuel-saving configuration standard information are written into the position corresponding to the first configuration page by importing the configuration file.
And importing the configuration file to display the information of the first program and the information of the second program in a burning area of a second configuration page. Specifically, the file storage path and the segment number of the first program are written into an upper board (i.e., a collector) burning area, and the file storage path and the COM port number, the baud rate, the frame ID, the burning size, and the file size of the second program are written into a lower board (i.e., a controller) burning area.
And then, the user clicks an opening device control of the program burning console on the second configuration page, and the upper computer responds to the operation of the user on the program burning console of the second configuration page, and executes burning, initial re-electrification, writing-in of the first parameter and the second parameter, re-electrification, reading of the first configuration parameter and the second configuration parameter and comparison of the first configuration parameter and the second configuration parameter. And displaying the comparison result in the parameter configuration console area. And in the process of burning the first program and the second program, displaying the burning progress in the burning area (comprising the upper board burning area and the lower board burning area).
And then, displaying the first configuration parameter and the second configuration parameter in a configuration area of the second configuration page. Specifically, the IP address, the port number, and the braking mode are written in the upper panel information configuration area, and are written in the lower panel configuration area with respect to system parameter setting, vehicle speed setting, ABS setting, steering setting, and braking setting.
In addition, the upper computer also reads the oil saving information configuration of the collector, compares the information with the upper plate oil saving configuration standard information and displays the comparison result.
Then, a recording file is generated and stored, and the first program and the second program are printed. Optionally, in response to the user operating the data saving console of the second configuration page, a record file is generated and stored in the local folder. And responding to the operation of the user on the printing console of the second configuration page, and printing the first program and the second program.
The burning, parameter configuration and operation console adjustment of the collector and the controller are displayed in 1 page, so that the operation and monitoring of a user are facilitated.
In the operation process, the key link uses a special background character mark, so that the state of the key link is convenient to observe, and meanwhile, after the key link is finished in the operation process, the qualified or unqualified mark of the key link is generated, so that the state is convenient to check. And simultaneously setting a current operation state display area and a state display area of the result after the whole operation is finished.
Each region on the second configuration page is independently operable. The UI layout is arranged from left to right, from top to bottom and according to the operation steps according to the reading habit of people, so that a user can watch the area condition of the system in operation, and the condition that the position cannot be found due to the operation error or the operation error of the system is prevented.
The two pages designed by the upper computer solve the problem of asynchronism of burning and detection. The first parameter and the second parameter are placed in the first configuration page because the first parameter and the second parameter are set as standard parameters and cannot be changed during operation, and the placing in the first configuration page can prevent accidents caused by modification during operation.
Fig. 7 is a schematic structural diagram of an upper computer according to an embodiment of the present invention, as shown in fig. 7, the upper computer includes a processor 110, a memory 111, an input device 112, and an output device 113; the number of the processors 110 in the upper computer can be one or more, and one processor 110 is taken as an example in fig. 7; the processor 110, the memory 111, the input device 112, and the output device 113 in the upper computer may be connected by a bus or other means, and fig. 7 illustrates an example of connection by a bus.
The memory 111 is used as a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the burning method of the collector and the controller in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the upper computer by running software programs, instructions and modules stored in the memory 111, that is, the burning method of the collector and the controller is realized.
The memory 111 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 111 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 111 may further include memory located remotely from the processor 110, which may be connected to an upper computer via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 112 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the host computer. The output device 113 may include a display device such as a display screen.
The embodiment of the invention also provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used for executing a burning method of a collector and a controller when being executed by a computer processor, the method is applied to an upper computer, the upper computer is connected with electronic equipment, the electronic equipment is integrated with the collector and the controller, and the method comprises the following steps:
receiving a configuration file imported by a user; the configuration file comprises a first parameter to be written into the collector, a second parameter to be written into the controller, information of a first program to be burnt into the collector and information of a second program to be burnt into the controller;
responding to the starting burning operation of a user, burning the first program to a collector through a first CAN port according to the information of the first program, and burning the second program to a controller through a COM port according to the information of the second program; the collector and the controller are electrified again for the first time, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port; and re-electrifying the collector and the controller again, reading the first configuration parameter of the collector and the second configuration parameter of the controller, and respectively comparing the first configuration parameter and the second configuration parameter with the first configuration parameter and the second configuration parameter to obtain a comparison result.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the burning method of the collector and the controller provided in any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention.
Claims (10)
1. A burning method of a collector and a controller is applied to an upper computer, the upper computer is connected with electronic equipment, the electronic equipment is integrated with the collector and the controller, and the method comprises the following steps:
receiving a configuration file imported by a user; the configuration file comprises a first parameter to be written into the collector, a second parameter to be written into the controller, information of a first program to be burnt into the collector and information of a second program to be burnt into the controller;
responding to the starting burning operation of a user, burning the first program to a collector through a first CAN port according to the information of the first program, and burning the second program to a controller through a COM port according to the information of the second program; the collector and the controller are electrified again for the first time, the first parameter is written into the collector through the first CAN port, and the second parameter is written into the controller through the second CAN port; and re-electrifying the collector and the controller again, reading the first configuration parameter of the collector and the second configuration parameter of the controller, and respectively comparing the first configuration parameter and the second configuration parameter with the first configuration parameter and the second configuration parameter to obtain a comparison result.
2. The method according to claim 1, wherein the programming the first program to the collector through the first CAN port according to the information of the first program and programming the second program to the controller through the COM port according to the information of the second program in response to the user starting the programming operation comprises:
responding to the starting burning operation of a user, electrifying the collector and the controller, and starting the first CAN port and the COM port;
requesting a burning identifier from the collector through the first CAN port through a CAN burning thread; requesting a burning identifier from the controller through a COM burning thread via a COM port;
after receiving the burning mark sent by the collector, burning the first program to the collector through the first CAN port according to the information of the first program; and the number of the first and second groups,
after receiving a burning identifier sent by the controller, burning the second program to the controller through the COM port according to the information of the second program;
the burning identification is generated by the collector and the controller in response to the triggering operation of a user.
3. The method of claim 1, wherein the initial re-powering up of the collector and controller comprises:
and after receiving the burning completion identifier sent by the collector and the burning completion identifier sent by the controller, carrying out initial power-on again on the collector and the controller.
4. The method according to any one of claims 1-3, wherein a power control module is configured between the electronic device and the upper computer;
the initial re-power-up of the collector and the controller comprises:
sending a power-off and signal turn-off instruction to the power control module to control the collector and the controller to be powered off and turn off the signal communication of the first CAN port and the COM port;
sending a power-on and signal-on instruction to the power control module to control the collector and the controller to be powered on and start signal communication of the first CAN port and the second CAN port;
the re-powering on the collector and the controller again comprises:
sending a power-off and signal turn-off instruction to the power control module to control the collector and the controller to be powered off and turn off the signal communication of the first CAN port and the second CAN port;
sending a power-on and signal-on instruction to the power control module to control the collector and the controller to be powered on and start signal communication of the first CAN port and the second CAN port;
the reading of the first configuration parameter of the collector and the second configuration parameter of the controller includes:
and reading a first configuration parameter of the collector through the opened first CAN port, and reading a second configuration parameter of the controller through the opened second CAN port.
5. The method according to claim 4, wherein the first CAN port, the second CAN port and the COM port are respectively obtained by driver conversion through a Universal Serial Bus (USB) port.
6. The method of claim 1, wherein writing the first parameter to the collector via the first CAN port and the second parameter to the controller via the COM port comprises:
polling the version information of the burnt program to the collector and the controller after the time length is set from the initial power-on again;
if the latest version information is read, writing the first parameter into the collector through the first CAN port, and writing the second parameter into the controller through the second CAN port;
and the set time length is determined according to the starting time lengths of the collector and the controller.
7. The method of claim 1, wherein the configuration file further comprises a network address on a cloud platform server;
after the comparison with the first parameter and the second parameter respectively is performed to obtain a comparison result, the method further comprises the following steps:
if the comparison result is qualified, uploading the identifier of the electronic equipment, the integrated circuit card identification code, the first program, the second program, the equipment type and the equipment model information to a network address on the cloud platform server; and/or the presence of a gas in the gas,
after the electronic device is configured in a vehicle, the electronic device uploads tracking data to a network address on the cloud platform server.
8. The method of claim 1, further comprising, after receiving the configuration file imported by the user:
displaying the first parameter and the second parameter in a configuration standard information area of a first configuration page, and displaying the information of the first program and the information of the second program in a burning area of a second configuration page;
in the process of burning the first program and the second program, displaying the burning progress in the burning area;
the starting burning operation responding to the user comprises the following steps:
responding to the operation of the user on the program burning console of the second configuration page;
after the comparing with the first parameter and the second parameter respectively to obtain a comparison result, the method further comprises:
displaying the first configuration parameter and the second configuration parameter in a configuration area of the second configuration page;
displaying the comparison result in a parameter configuration console area of the second configuration page;
generating and storing a record file;
and printing the first program and the second program.
9. A host computer, comprising:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the burning method of the collector and the controller according to any one of claims 1-8.
10. A storage medium containing computer-executable instructions for performing the method of burning the collector and controller of any of claims 1-8 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374618.4A CN112799693B (en) | 2021-04-08 | 2021-04-08 | Burning method of collector and controller, upper computer and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374618.4A CN112799693B (en) | 2021-04-08 | 2021-04-08 | Burning method of collector and controller, upper computer and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112799693A true CN112799693A (en) | 2021-05-14 |
CN112799693B CN112799693B (en) | 2021-07-09 |
Family
ID=75816442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110374618.4A Active CN112799693B (en) | 2021-04-08 | 2021-04-08 | Burning method of collector and controller, upper computer and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112799693B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443074A (en) * | 2022-01-23 | 2022-05-06 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for remotely burning firmware |
CN115237437A (en) * | 2022-09-23 | 2022-10-25 | 万向钱潮股份公司 | Vehicle brake controller burning method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161709A1 (en) * | 2005-01-20 | 2006-07-20 | Dot Hill Systems Corporation | Safe message transfers on PCI-Express link from RAID controller to receiver-programmable window of partner RAID controller CPU memory |
CN103606329A (en) * | 2013-11-29 | 2014-02-26 | 金华职业技术学院 | Traffic light practical training system with result diagnosing function |
CN104216746A (en) * | 2014-08-30 | 2014-12-17 | 中国科学院长春光学精密机械与物理研究所 | Real-time monitoring and calibrating method for ground on-line programming of on-board equipment DSP (digital signal processor) program |
-
2021
- 2021-04-08 CN CN202110374618.4A patent/CN112799693B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060161709A1 (en) * | 2005-01-20 | 2006-07-20 | Dot Hill Systems Corporation | Safe message transfers on PCI-Express link from RAID controller to receiver-programmable window of partner RAID controller CPU memory |
CN103606329A (en) * | 2013-11-29 | 2014-02-26 | 金华职业技术学院 | Traffic light practical training system with result diagnosing function |
CN104216746A (en) * | 2014-08-30 | 2014-12-17 | 中国科学院长春光学精密机械与物理研究所 | Real-time monitoring and calibrating method for ground on-line programming of on-board equipment DSP (digital signal processor) program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443074A (en) * | 2022-01-23 | 2022-05-06 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for remotely burning firmware |
CN115237437A (en) * | 2022-09-23 | 2022-10-25 | 万向钱潮股份公司 | Vehicle brake controller burning method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112799693B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112799693B (en) | Burning method of collector and controller, upper computer and storage medium | |
CN104647756B (en) | The control system of 3D printer | |
US20180286146A1 (en) | Communication method, device, and system for vehicle remote diagnosis | |
CN108337120A (en) | A kind of remote upgrade method of internet-of-things terminal equipment | |
US20140236997A1 (en) | Controller, information processing apparatus, and recording medium | |
CN109361579B (en) | Intelligent equipment control method, system and storage medium | |
CN111132060A (en) | Internet of things-based hardware automatic test tool and test method | |
CN113341921A (en) | Automobile controller function testing method and system | |
CN114172756A (en) | Version upgrading method and system for intelligent equipment electronic control firmware | |
CN111427602A (en) | Method for upgrading firmware on line of intelligent platform management controller of VPX case | |
CN116419184A (en) | Processing method for vehicle remote wake-up and computer readable storage medium | |
CN112783708B (en) | DTU hardware testing method, terminal and computer readable storage medium | |
CN115827358A (en) | Automatic test system, method and device for PFR function and storage medium | |
CN104914764B (en) | Remote experimental system | |
CN111090770A (en) | Data information acquisition method, device and system and household appliance | |
WO2020257983A1 (en) | Pairing processing system, apparatus and method for master and slave modules | |
CN117850400A (en) | Dormancy awakening detection system and test platform for vehicle electronic parts | |
CN116684489A (en) | Remote test method, system, device and storage medium | |
CN110650190A (en) | Environmental condition automatic control switch system | |
CN116015561A (en) | Data reissue method, device, equipment and storage medium | |
CN114520749A (en) | Modbus data monitoring method and system based on cloud platform deployment object model | |
CN114691486A (en) | Program debugging method and device and computer equipment | |
CN108199918B (en) | Method and system for testing washing machine | |
CN112738830A (en) | Test program using method and device, storage medium and computer equipment | |
CN219372603U (en) | V2X terminal engineering is precious |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |