CN111427593A - CSBUG bottom layer flashing method based on serial port communication - Google Patents

CSBUG bottom layer flashing method based on serial port communication Download PDF

Info

Publication number
CN111427593A
CN111427593A CN202010211032.1A CN202010211032A CN111427593A CN 111427593 A CN111427593 A CN 111427593A CN 202010211032 A CN202010211032 A CN 202010211032A CN 111427593 A CN111427593 A CN 111427593A
Authority
CN
China
Prior art keywords
instruction
flashing
configuration
file
csbug
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
Application number
CN202010211032.1A
Other languages
Chinese (zh)
Other versions
CN111427593B (en
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.)
Sichuan Zhonghe Intelligent Control Technology Co ltd
Original Assignee
Sichuan Zhonghe Intelligent Control Technology 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 Sichuan Zhonghe Intelligent Control Technology Co ltd filed Critical Sichuan Zhonghe Intelligent Control Technology Co ltd
Priority to CN202010211032.1A priority Critical patent/CN111427593B/en
Publication of CN111427593A publication Critical patent/CN111427593A/en
Application granted granted Critical
Publication of CN111427593B publication Critical patent/CN111427593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a CSBUG bottom layer flashing method based on serial port communication, which comprises the following steps: and configuring the flashing instruction files respectively corresponding to the modules under the same access address. Respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to the corresponding flashing instruction file under the access address, namely the flashing instruction file corresponding to the corresponding module. The machine-refreshing terminal repeatedly executes the following steps aiming at each instruction configuration under the triggering condition: and according to the flashing instruction file linked with the instruction configuration, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration. After one-time configuration, the invention can continuously brush a plurality of modules without modification after reconfiguration, and the efficiency is improved in proportion to the number of the modules. Meanwhile, the flashing instruction is automatically acquired, so that human errors are avoided.

Description

CSBUG bottom layer flashing method based on serial port communication
Technical Field
The invention relates to the field of embedded development, in particular to a CSBUG bottom layer flashing method based on serial port communication.
Background
The brushing process of the conventional brushing tool is roughly as follows:
for each standby module, the following operations are executed:
1. and copying the ccte-related software to the C:/temp/directory, and if no temp exists, creating the ccte-related software.
2. Copy Tftp to C:/catalog.
3. And building a hardware environment.
4. The IP of the computer is changed to CCTE 1&3IP address 192.168.15.241 and CCTE 2IP address 192.168.16.241.
5. And opening the super terminal.
6. Select EBOOT to ME location (if flash other programs please select to votato atp location) and press reset key. (the description related to ME flash appears at the interface of the super terminal at this time)
7. Turning on Tftp should now show the same IP value as IP. The file path is selected to the folder of the ME under temp.
8. The contents of csd _ lcme _ ccte _1.TXT under the ME folder are copied and pasted to the super terminal. Such as majtftp csd _ lcme _ ccte.abs 192.168.15.241491886 to the super terminal.
9. And observing whether the Tftp and the super terminal have a file transmission progress bar or not, and if so, waiting until CSBUG > appears, and the ME succeeds in rewriting.
The steps of swiping the vot module, ato module, me module are similar. Therefore, similar to the same work of establishing a link, copying a command, selecting a catalogue, pasting a command and the like, the work needs to be carried out for 4 times respectively, the repetitive work is more, and the machine refreshing efficiency is low. The flow of each manual operation is complex, and is greatly influenced by human factors, so that errors are easy to occur.
Disclosure of Invention
The invention aims to: aiming at the problems, the CSBUG bottom layer flashing method based on serial port communication is provided, so that each subsequent module is continuously and automatically flashed after one-time configuration through USB to multiple serial ports, the original complex repetitive work is omitted, and the flashing efficiency is improved.
The technical scheme adopted by the invention is as follows:
a CSBUG bottom layer flashing method based on serial port communication is used for continuously flashing a plurality of modules, and the method adopts a data transmission line for converting USB to multiple serial ports to respectively connect each module to be flashed to a flashing terminal and comprises the following processes:
configuring each flashing instruction file respectively corresponding to each module under the same access address;
respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to a corresponding flashing instruction file under the access address;
the machine-refreshing terminal repeatedly executes the following steps aiming at each instruction configuration under the triggering condition:
and according to the flashing instruction file linked with the instruction configuration, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration.
According to the method, after one-time configuration, the instruction configuration and the port configuration can be stored, repeated configuration is not needed in the subsequent flashing process, so that repeated work is saved, and flashing efficiency is greatly improved. In addition, the method is used for directly reading the instruction in the file, is not influenced by human, and cannot make mistakes.
Further, the method for configuring the linked flashing instruction file according to the instruction and acquiring the corresponding flashing instruction comprises the following steps: and setting the flashing terminal as an FTP server, and initiating a request to the flashing terminal based on instruction configuration by using an FTP transmission protocol so as to download a corresponding flashing instruction file and obtain a flashing instruction in the flashing instruction file.
Furthermore, at least one version of the flashing instruction file corresponding to each module exists; the configuring the linked flashing instruction file according to the instruction, and the obtaining of the corresponding flashing instruction is as follows: and configuring the linked flashing instruction file of the corresponding version according to the instruction to obtain the corresponding flashing instruction.
Further, the flashing instruction files corresponding to the modules are mutually related through the same version information.
Further, the same version information is the same version identifier.
Further, the instruction configuration includes configuration of version information, and the obtaining of the corresponding flashing instruction according to the flashing instruction file of the corresponding version linked by the instruction configuration is as follows: and according to the version information in the instruction configuration, acquiring a corresponding flashing instruction file under the corresponding version, and acquiring a flashing instruction in the flashing instruction file.
Further, the flashing terminal, under the trigger, for each instruction configuration, repeatedly executes the steps of: and the flashing terminal configures the executed steps for each instruction in the order of the instruction configuration under the triggering.
Further, after the flashing instruction is obtained, the flashing instruction is also displayed.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. after one-time configuration, the invention can continuously brush a plurality of modules, and realizes the improvement in direct proportion to the number of the modules in terms of efficiency.
2. After one-time configuration, the modules in the same batch can be continuously refreshed without configuration in the subsequent refreshing process.
3. In the traditional method, after one module is refreshed, another module is replaced, the interface can be plugged and pulled for many times, and the interface is easy to loosen to cause poor contact. According to the invention, before the machine is refreshed, all the modules are simultaneously connected with the machine refreshing terminal, and the modules are not plugged in and out in the machine refreshing process, so that the success rate of the machine refreshing is greatly improved.
4. The invention directly obtains the flashing instruction in the file without considering input (typing or copying), thereby avoiding the occurrence of human operation errors.
Drawings
The invention will now be described, by way of example, with reference to the accompanying drawings, in which:
fig. 1 is an operational interface of a brushtool.
Detailed Description
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification (including any accompanying claims, abstract) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Example one
The embodiment discloses a serial port communication-based CSBUG bottom layer flashing method, which is used for continuously flashing a plurality of modules, and the flashing method adopts a data transmission line for converting USB (universal serial bus) to multiple serial ports to respectively connect each module to be flashed to a flashing terminal, and comprises the following processes:
and configuring the flashing instruction files respectively corresponding to the modules under the same access address.
Respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to the corresponding flashing instruction file under the access address, namely the flashing instruction file corresponding to the corresponding module.
The machine-refreshing terminal repeatedly executes the following steps aiming at each instruction configuration under the triggering condition:
and according to the flashing instruction file linked with the instruction configuration, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration.
For example, there are 4 modules to be flashed and the data transmission line includes at least 4 serial ports. The method comprises the following steps:
4 groups of flash instruction files corresponding to 4 modules are configured under the same access address.
And respectively configuring a port aiming at 4 modules, and simultaneously and respectively configuring instructions, wherein the instruction configurations and the ports are in one-to-one correspondence, and each instruction configuration is respectively connected to a corresponding flashing instruction file under an access address.
Under the trigger (such as receiving a flashing instruction), starting from a first instruction configuration to a fourth instruction configuration, repeatedly executing the following steps:
and configuring the connected flashing instruction file according to the instruction, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with the associated port. Taking the kth instruction configuration associated with the kth port as an example, the flush instruction corresponding to the first instruction configuration is written into the module connected to the first port, and so on.
For example, the instruction configuration includes the configuration of a CCTE ATP CSBUG, a CCTE ME CSBUG, a CCTE VOT CSBUG and a CCTE CP L CSBUG, wherein the instruction configuration of the CCTE ATP CSBUG is associated with port 1 and corresponds to an ATP module, the instruction configuration of the CCTE ME CSBUG is associated with port 2 and corresponds to an ME module, the instruction configuration of the CCTE VOT CSBUG is associated with port 3 and corresponds to a VOT module, and the instruction configuration of the CCTE CP L CSBUG is associated with port 4 and corresponds to a CP L module.
The method for acquiring the corresponding flashing instruction file from the link can be realized by adopting an FTP (file transfer protocol). The access address of the computer is used as an FTP server, a command is sent by using a serial port based on instruction configuration, and an application is initiated for the FTP server, so that a corresponding file (namely a computer-refreshing instruction file) is downloaded.
Through the method, on one hand, the modules can be continuously refreshed directly after one-time configuration, a configuration flow does not need to be executed for each module, the workload is greatly reduced, and the refreshing efficiency is improved. After the instruction configuration and the port configuration are completed, in the subsequent flashing process, the modules in the same batch can be directly flashed without modifying any information or reconfiguring the serial port, the port or the flashing instruction. Meanwhile, the method does not need to manually input the flashing instruction, and avoids the occurrence of human errors.
Example two
The embodiment discloses a serial port communication-based CSBUG bottom layer flashing method, which is used for automatically flashing a plurality of modules in sequence, the flashing method adopts a data transmission line for converting USB (universal serial bus) to multiple serial ports to connect each module to be flashed to a flashing terminal respectively, and the method comprises the following processes:
and configuring each flashing instruction file corresponding to each module under the same access address, wherein at least one version of the flashing instruction file exists corresponding to each module. And the flashing instruction files belonging to the same flashing version are related through the same version information. For example, independent subfolders can be constructed for each version of the flush instruction file, or flush instruction files corresponding to the same flush version carry the same version identifier (e.g., the file name contains the same version number).
Respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; and each instruction configuration is respectively linked to the corresponding flashing instruction file under the access address.
Under the triggering, the following steps are repeatedly executed for each instruction configuration in sequence of the instruction configuration:
and acquiring a flashing instruction file of a corresponding version under the corresponding link according to the instruction configuration, then acquiring a flashing instruction in the flashing instruction file, and sending the flashing instruction to a module connected with a port associated with the instruction configuration. For example, in the method for distinguishing versions by using version information, when the instruction configuration is performed, the version information of the flashing is configured, and after the triggering, according to the version information configured in the instruction configuration, the flashing instruction file of the corresponding version in the flashing instruction file corresponding to the link is acquired, the flashing instruction in the flashing instruction file is acquired, and then the module connected to the associated port is flashed.
For example, as shown in fig. 1, the operating interface of the flush tool is shown, 1 is an instruction configuration area, 2 is a port configuration area, the instruction configuration includes the configuration (i.e., instruction configuration) of the version of the CSBUG (i.e., version information) and the configuration (i.e., instruction configuration) of the CCTE ATP CSBUG, CCTE MECSBUG, CCTE VOT CSBUG and CCTE CP L CSBUG, wherein the instruction configuration of the CCTE ATP CSBUG is associated with port 1 (port number 15 in the drawing) and corresponds to an ATP module, the instruction configuration of the CCTE ME CSBUG is associated with port 2 and corresponds to an ME module (i.e., port configuration), the instruction configuration of the CCTE vol CSBUG is associated with port 3 and corresponds to a VOT module, the instruction configuration of the CCTE CP L CSBUG is associated with port 4 and corresponds to CP L module, after triggering, the instruction configuration of the version of the CSBUG (e.g — CCTE _ CSBUG _ 2_ CSBUG) is executed according to the configuration file (e _ map _ 1.g _17_ B0), and the link configuration file is executed, and the link instruction configuration file is obtained from the version map data file (e _ flush).
EXAMPLE III
The embodiment discloses a serial port communication-based CSBUG bottom layer flashing method, which is used for automatically flashing a plurality of modules in sequence, the flashing method adopts a data transmission line for converting USB (universal serial bus) to multiple serial ports to connect each module to be flashed to a flashing terminal respectively, and the method comprises the following processes:
and configuring each flashing instruction file corresponding to each module under the same access address.
Respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to the corresponding flashing instruction file under the access address, namely the flashing instruction file corresponding to the corresponding module.
Under trigger, for each instruction configuration, executing the following steps in a loop:
and according to the flashing instruction file linked with the instruction configuration, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration.
Example four
The embodiment discloses a serial port communication-based CSBUG bottom layer flashing method, which is used for automatically flashing a plurality of modules in sequence, the flashing method adopts a data transmission line for converting USB (universal serial bus) to multiple serial ports to connect each module to be flashed to a flashing terminal respectively, and the method comprises the following processes:
and configuring each flashing instruction file corresponding to each module under the same access address.
Respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to the corresponding flashing instruction file under the access address, namely the flashing instruction file corresponding to the corresponding module.
Under the trigger, for each instruction configuration, repeatedly executing the following steps:
and according to the flashing instruction file linked with the instruction configuration, acquiring and displaying a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed.

Claims (8)

1. A CSBUG bottom layer flashing method based on serial port communication is used for continuously flashing a plurality of modules and is characterized in that a data transmission line for converting USB (universal serial bus) to multiple serial ports is adopted to respectively connect each module to be flashed to a flashing terminal, and the method comprises the following processes:
configuring each flashing instruction file respectively corresponding to each module under the same access address;
respectively carrying out port configuration and instruction configuration aiming at each module, wherein the instruction configuration and the port configuration corresponding to the same module are mutually associated; each instruction configuration is respectively linked to a corresponding flashing instruction file under the access address;
the machine-refreshing terminal repeatedly executes the following steps aiming at each instruction configuration under the triggering condition:
and according to the flashing instruction file linked with the instruction configuration, acquiring a corresponding flashing instruction, and sending the flashing instruction to a module connected with a port associated with the instruction configuration.
2. The serial port communication-based CSBUG bottom layer flashing method of claim 1, wherein the method for configuring the linked flashing instruction file according to the instruction and acquiring the corresponding flashing instruction comprises the following steps: and setting the flashing terminal as an FTP server, and initiating a request to the flashing terminal based on instruction configuration by using an FTP transmission protocol so as to download a corresponding flashing instruction file and obtain a flashing instruction in the flashing instruction file.
3. The serial port communication-based CSBUG bottom layer flashing method as claimed in claim 1, wherein at least one version of the flashing instruction file corresponding to each module exists; the configuring the linked flashing instruction file according to the instruction, and the obtaining of the corresponding flashing instruction is as follows: and configuring the linked flashing instruction file of the corresponding version according to the instruction to obtain the corresponding flashing instruction.
4. The serial port communication-based CSBUG underlying flashing method of claim 3, wherein the flashing instruction files corresponding to the modules are related to each other through the same version information.
5. The serial port communication-based CSBUG underlying flashing method of claim 4, wherein the same version information is the same version identification.
6. The serial port communication-based CSBUG bottom layer flashing method of claim 4, wherein the instruction configuration comprises configuration of version information, the flashing instruction file of the corresponding version linked according to the instruction configuration, and the obtaining of the corresponding flashing instruction is: and according to the version information in the instruction configuration, acquiring a corresponding flashing instruction file under the corresponding version, and acquiring a flashing instruction in the flashing instruction file.
7. The serial port communication-based CSBUG bottom layer flashing method as claimed in claim 1, wherein the flashing terminal is triggered to repeatedly execute the steps of each instruction configuration: and the flashing terminal configures the executed steps for each instruction in the order of the instruction configuration under the triggering.
8. The serial port communication-based CSBUG bottom layer flashing method as claimed in any one of claims 1 to 7, wherein the flashing instruction is also displayed after the flashing instruction is obtained.
CN202010211032.1A 2020-03-24 2020-03-24 CSBUG bottom layer flashing method based on serial port communication Active CN111427593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010211032.1A CN111427593B (en) 2020-03-24 2020-03-24 CSBUG bottom layer flashing method based on serial port communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010211032.1A CN111427593B (en) 2020-03-24 2020-03-24 CSBUG bottom layer flashing method based on serial port communication

Publications (2)

Publication Number Publication Date
CN111427593A true CN111427593A (en) 2020-07-17
CN111427593B CN111427593B (en) 2023-04-18

Family

ID=71555666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010211032.1A Active CN111427593B (en) 2020-03-24 2020-03-24 CSBUG bottom layer flashing method based on serial port communication

Country Status (1)

Country Link
CN (1) CN111427593B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369514A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 System refreshing method and system applicable to mobile terminals of different models
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device
WO2016029524A1 (en) * 2014-08-28 2016-03-03 北京兆易创新科技股份有限公司 Network storage device for use in flash memory and processing method therefor
CN106897631A (en) * 2017-02-03 2017-06-27 广东欧珀移动通信有限公司 Data processing method, apparatus and system
CN108271150A (en) * 2018-01-31 2018-07-10 深圳邦狮信息技术有限公司 Support while more mobile phones carried out the method and system of brush machine or data dump
CN109710292A (en) * 2018-12-28 2019-05-03 Tcl移动通信科技(宁波)有限公司 Mobile terminal brush machine controls processing method, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369514A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 System refreshing method and system applicable to mobile terminals of different models
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device
WO2016029524A1 (en) * 2014-08-28 2016-03-03 北京兆易创新科技股份有限公司 Network storage device for use in flash memory and processing method therefor
CN106897631A (en) * 2017-02-03 2017-06-27 广东欧珀移动通信有限公司 Data processing method, apparatus and system
CN108271150A (en) * 2018-01-31 2018-07-10 深圳邦狮信息技术有限公司 Support while more mobile phones carried out the method and system of brush machine or data dump
CN109710292A (en) * 2018-12-28 2019-05-03 Tcl移动通信科技(宁波)有限公司 Mobile terminal brush machine controls processing method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111427593B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US6493770B1 (en) System for reconfiguring a peripheral device by downloading information from a host and electronically simulating a physical disconnection and reconnection to reconfigure the device
US6581157B1 (en) System and method for detecting and updating non-volatile memory on an electronic adapter board installed in a computing system
US20110119358A1 (en) Systems and methods for operating networked computer systems
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
CN106201563A (en) The method and apparatus that the collocation method of start-up parameter and device, mainboard start
US11169820B1 (en) Managing an operating system to set up a computer association tool
CN107148623A (en) PCIE device and function and the Dynamic link library of main frame array
US20060129788A1 (en) System and method for initially configuring and booting a device using a device identifier
JPWO2017072828A1 (en) Method and computer system for supporting debugging
CN111427593B (en) CSBUG bottom layer flashing method based on serial port communication
CN104158709A (en) Optical module identification method and port extender
US20210311747A1 (en) Server with system setting data synchronization function
CN110888656B (en) Multifunctional programming device and programming method
US20220147040A1 (en) Electronic Control Device and Method for Setting Control Data
CN108536458A (en) A kind of FPGA online upgradings method, apparatus, equipment and storage medium
CN111209125A (en) Multi-process command line implementation method
US6792610B2 (en) Attaching a device driver to multiple logical devices of one physical device
US7051093B1 (en) QNX operation system network auto configuration
US20030225942A1 (en) System and method for delivering FPGA programming
CN113448632B (en) Redfish resource information calling method, device, equipment and storage medium
CN113114784B (en) Multifunctional computer data storage and migration device and method
CN115048124A (en) Method, system, terminal and storage medium for batch refreshing of server firmware
CN118069182A (en) Method, system and device for parallel upgrade of embedded multi-board multi-program
JPH0934771A (en) Subfile transfer system for distributed system
JP2000339245A (en) Terminal device for network

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