Search

CN-121996628-A - Portable device and method for supporting automatic upgrading and log collection of off-PC (personal computer)

CN121996628ACN 121996628 ACN121996628 ACN 121996628ACN-121996628-A

Abstract

The invention discloses a portable device and a method for supporting automatic upgrading and log collection of a PC (personal computer) and relates to the technical field of production line tool maintenance. The device comprises a core circuit board and a mobile storage unit, wherein the mobile storage unit is used for storing a designated file, the designated file is one of an upgrade file and a log collection configuration file, the core circuit board performs dual-function trigger judgment by acquiring a file name in the mobile storage unit, enters an upgrade mode when the file name is the name of the upgrade file, upgrades a tool by using the upgrade file in the mobile storage unit, enters a log collection mode when the file name is the name of the log collection configuration file, and collects the log of the tool into the mobile storage unit. The portable device can meet the requirement of automatically completing program upgrading or log collecting of the whole production line tool, reduce the dependence on professionals and effectively improve the working efficiency of the production line.

Inventors

  • ZHANG JUAN
  • HUANG JIACHEN
  • ZHOU HANZHANG
  • MA XUEHUAI

Assignees

  • 福建星网视易信息系统有限公司

Dates

Publication Date
20260508
Application Date
20251226

Claims (10)

  1. 1. The portable device supporting automatic upgrade and log collection of the off-PC is characterized by comprising a core circuit board and a mobile storage unit: The mobile storage unit is detachably connected with the core circuit board through a first interface and is used for storing a designated file, and the designated file is one of an upgrade file and a log collection configuration file; The core circuit board is connected with the tool through a second interface, the core circuit board performs dual-function triggering judgment by acquiring the file name in the mobile storage unit, the core circuit board enters an upgrading mode when the file name is the name of an upgrading file, the tool is upgraded by utilizing the upgrading file in the mobile storage unit, and the core circuit board enters a log collection mode when the file name is the name of a log collection configuration file, and logs of the tool are collected in the mobile storage unit.
  2. 2. The device of claim 1, wherein the upgrade mode comprises setting a first interface for connecting the core circuit board and the mobile storage unit as a Host mode, identifying and verifying an upgrade file in the mobile storage unit, and transmitting upgrade data to the tool through a second interface after verification is passed.
  3. 3. The apparatus of claim 1, wherein the log collection mode specifically includes setting a first interface of the core circuit board connected to the mobile storage unit to a Host mode and maintaining the first interface, placing data received by the second interface into the ring queue through a first thread, reading data from the ring queue through a second thread, and generating a log file according to the log collection configuration file until the log transmission is completed or the mobile storage unit is disconnected from the main control unit.
  4. 4. The apparatus of claim 1, wherein the core circuit board is powered through a port of the fixture.
  5. 5. The apparatus of claim 1, wherein the core circuit board comprises: A main control unit; the communication unit is connected with the main control unit and connected with the tool through a second interface and is used for realizing data interaction between the main control unit and the tool; and the storage unit is connected with the main control unit and used for storing read-write data of the mobile storage unit.
  6. 6. The apparatus of claim 1 or 5, wherein the core circuit board further comprises a status indication unit for indicating whether the main control unit is connected to the mobile storage unit, whether the mobile storage unit is mounted successfully, whether data transmission is in progress, and whether data transmission is ended.
  7. 7. A method for supporting automatic upgrade and log collection off a PC, comprising providing an apparatus as claimed in any one of claims 1 to 6, said method comprising: the automatic upgrading process comprises the steps of writing an upgrading file in a mobile storage unit, connecting the mobile storage unit with a core circuit board, and connecting the core circuit board with a target upgrading tool, after the core circuit board is electrified, obtaining the file name in the mobile storage unit as the name of the upgrading file, entering an upgrading mode, and upgrading the tool by utilizing the upgrading file in the mobile storage unit; The automatic log collection process comprises the steps of writing a log collection configuration file into a mobile storage unit, connecting the mobile storage unit with a core circuit board, connecting the core circuit board with a target upgrading tool, and after the core circuit board is electrified, obtaining the name of the file in the mobile storage unit as the name of the log collection configuration file, entering a log collection mode, and collecting the log of the tool into the mobile storage unit.
  8. 8. The method of claim 7, wherein the log collection configuration file comprises a log storage path and a log file segment size, wherein in the automatic log collection process, the log of the tool is segmented according to the log file segment size and stored in the log storage path of the mobile storage unit, and a complete log file is automatically generated after the log collection is completed.
  9. 9. The method of claim 7 or 8, wherein the log collection profile further comprises a set baud rate, and the communication unit communicates with the tool at the set baud rate.
  10. 10. The method of claim 7, wherein the automatic upgrade process further comprises disconnecting the core circuit board from the tooling after the current tooling upgrade is completed and connecting the core circuit board to the next target upgrade tooling to execute the automatic upgrade again, and the automatic log collection process further comprises disconnecting the core circuit board from the tooling after the current tooling log collection is completed and connecting the core circuit board to the next target upgrade tooling to execute the automatic log collection again.

Description

Portable device and method for supporting automatic upgrading and log collection of off-PC (personal computer) Technical Field The invention relates to the technical field of production line tool maintenance, in particular to a portable device and a method for supporting automatic upgrading and log collection of a PC (personal computer) machine. Background The production test tool program upgrading and the work log collecting mode of the traditional production line are finished by a PC, the operation process is operated by a special engineer, programming software, terminal tools and drivers are additionally installed, parameters such as baud rate and configuration ports are also required to be set, and the preparation cost in the early stage is increased. Meanwhile, production line tools are distributed at each test station, the number of the production line tools is large, the production process cannot stop the line or is difficult to move the tools to a fixed position, the operation scene is limited, and a PC (personal computer) machine and repeated configuration software and tools are required to be arranged at each test station. In addition, the production line environment is complex, and the abnormality of the PC machine can also cause upgrading or log collection interruption. In the prior art, two sets of independent 'PC+software+drive' combinations are needed for upgrading and collecting logs of a production test tool, and the production test tool has the advantages of redundancy of equipment, high cost, complex operation and low efficiency, and cannot adapt to the actual demands of production lines. Even if the similar schemes such as USB flash disk upgrade exist, only a single function (such as upgrade) is supported, additional manual parameter setting is needed, the operation is still complicated, and more importantly, the problem that log collection depends on PC is not solved, and the complete maintenance scene of the production line cannot be covered. Disclosure of Invention The invention aims to solve the technical problem of providing a portable device and a method for supporting automatic upgrade and log collection which are separated from a PC, so that tool program upgrade and log collection are free from dependence on PC equipment, and the requirements of automatic program upgrade or log collection of a whole production line tool can be met by only adopting a core circuit board and a mobile storage unit to form the portable device, thereby reducing dependence on professionals and effectively improving the working efficiency of the production line. In a first aspect, the present invention provides a portable device supporting automatic upgrade and log collection off a PC, comprising a core circuit board and a mobile storage unit: The mobile storage unit is detachably connected with the core circuit board through a first interface and is used for storing a designated file, and the designated file is one of an upgrade file and a log collection configuration file; The core circuit board is connected with the tool through a second interface, the core circuit board performs dual-function triggering judgment by acquiring the file name in the mobile storage unit, the core circuit board enters an upgrading mode when the file name is the name of an upgrading file, the tool is upgraded by utilizing the upgrading file in the mobile storage unit, and the core circuit board enters a log collection mode when the file name is the name of a log collection configuration file, and logs of the tool are collected in the mobile storage unit. The upgrading mode specifically comprises the steps of setting a first interface for connecting the core circuit board and the mobile storage unit as a Host mode, identifying and verifying an upgrading file in the mobile storage unit, and transmitting upgrading data to the tool through a second interface after verification is passed. The log collection mode specifically comprises the steps of setting a first interface of the core circuit board connected with the mobile storage unit to be in a Host mode and keeping the first interface, putting data received by a second interface into a ring queue through a first thread, reading the data from the ring queue through a second thread, and generating a log file according to a log collection configuration file until log transmission is finished or the mobile storage unit is disconnected from the main control unit. Further, the core circuit board is powered through a port of the tooling. Further, the core circuit board includes: A main control unit; the communication unit is connected with the main control unit and connected with the tool through a second interface and is used for realizing data interaction between the main control unit and the tool; and the storage unit is connected with the main control unit and used for storing read-write data of the mobile storage unit. Further, the core circuit board further includes a status