# US 2021/0334083 A1 · Method and Apparatus for Upgrading Firmware of Transfer Device on Mobile Carrier, and Non-Transitory Storage Medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334083 A1
- Document ID: US20210334083A1
- Status: Published application
- Kind: A1
- Application number: 17/226,117
- Filed: 2021-04-09
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: Beijing xiaoma zhixing technology co.LTD
- Applicants: Beijing xiaoma zhixing technology co.LTD
- Inventors: Shilei CHANG; Bin HAN; Lintao LI; Chunlong ZHANG; Yufan HENG; Dong WANG
- Web page: https://patentgrep.com/patent/US20210334083A1

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided are a method and apparatus for upgrading firmware of a transfer device on a mobile carrier and a non-transitory storage medium. The method includes that: according to present version information of a firmware package of a transfer device and a firmware package version file including update version information, whether the firmware package in the transfer device is able to be upgraded is determined; in a case that it is, determined that the transfer device is able to be upgraded, whether the update version information matches with the present version information is determined; and in a case that the update version information does not match with the present version information, the firmware package in the transfer device is upgraded.

## Claims

### Claim 1

A method for upgrading firmware of a transfer device on a mobile carrier, comprising:
according to present version information of a firmware package of the transfer device and a firmware package version file comprising update version information, determining whether the firmware package in the transfer device is able to be upgraded, the transfer device being, configured to transfer sensor data on the mobile carrier, and the transfer device being further configured to provide a network port for the mobile carrier;
in a case of determining that the transfer device is able to be upgraded, determining whether the update version information matches with the present version information; and
in a case that the update version information does not match with the present version information, upgrading the firmware package in the transfer device.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein according to the present version information of the firmware package of the transfer device and the firmware package version file comprising the update version information, determining whether the firmware package in the transfer device is able to be upgraded comprises:
acquiring the present version information of the firmware package of the transfer device;
determining whether the present version information meets a first predetermined condition;
in a case of determining that the present version information meets the first predetermined condition, acquiring the firmware package version file comprising the update version information, the update version information being version information of an update firmware package, and the update firmware package being a firmware package to be obtained after updating the firmware package and to be applied in the transfer device;
determining whether the update firmware package and the firmware package version file exist;
in a case that the update firmware package and the firmware package version file exist, acquiring a serial number of the mobile carrier, the transfer device being mounted on the mobile carrier;
determining whether the serial number of the mobile carrier meets a second predetermined condition; and
in a case that the serial number of the mobile carrier meets the second predetermined condition, determining that the transfer device is able to be upgraded.

### Claim 3 (depends on 2)

The method as claimed in claim 2, wherein determining whether the serial number of the mobile carrier meets the second predetermined condition comprises:
determining whether a database has a serial number same as the serial number of the mobile carrier, the database being at least configured to store a serial number of each mobile carrier;
in a case that the database has the serial number same as the serial number of the mobile carrier, determining that the serial number of the mobile carrier meets the second predetermined condition; and
in a case that the serial number of the mobile carrier is not the same as the serial number in the database, determining that the serial number of the mobile carrier does not meet the second predetermined condition.

### Claim 4 (depends on 2)

The method as claimed in claim 2, before acquiring the firmware package version file comprising the update version information, further comprising:
acquiring the update firmware package, the update firmware package comprising updated firmware and a version information file corresponding to the update firmware, and the version information file comprising the version information of the update firmware package;
updating the version information of the update firmware package to an initial firmware package version file to obtain an updated firmware package version file, the updated firmware package version file comprising firmware package version information corresponding to a plurality of the transfer devices, and the firmware package version information at least comprising a firmware version number; and
storing the update firmware package and the updated firmware package version file to a storage device, the storage device being located on the mobile carrier.

### Claim 5 (depends on 1)

The method as claimed in claim 1, wherein the storage device of the transfer device comprises a guidance system region, a backup system region, an application system region, a version information region, an upgrade successful mark information region and an upgrade failed mark information region,
upgrading the firmware package in the transfer device comprises:
determining, by a guidance system in the guidance system region, a start-up system for upgrading the firmware package;
starting upgrade of the firmware package according to the start-up system;
updating system variables to a corresponding system state of the start-up system;
determining whether each file for upgrading the firmware package exists;
in a case that each file exists, checking a check value of each file;
determining whether each file passes through check according to each check value; and
in a case of determining that each file passes through the check, first erasing upgrade successful mark information in the upgrade successful mark information region, and then erasing data in the application system region and data in the version information region.

### Claim 6 (depends on 5)

The method as claimed in claim 5, wherein after in the case of determining that each file passes through the check, first erasing the upgrade successful mark information in the upgrade successful mark information region, and then erasing the data in the application system region and the data in the version information region, upgrading the firmware package in the transfer device further comprises:
storing each file to the application system region;
reading back each file stored to the application system region, and checking each file read and each file stored to the application system region;
in a case that each file read and each file stored to the application system region pass through check, storing the version information to the version information region;
reading back the version information stored to the version information region, and checking the version information; and
in a case that the version information region pass through check, upgrading the upgrade successful mark information in the upgrade successful mark information region.

### Claim 7 (depends on 5)

The method as claimed in claim 5, wherein determining, by the guidance system in the guidance system region, the start-up system for upgrading, the firmware package comprises:
in a case that information read by the guidance system is the upgrade successful mark information, determining, by the guidance system, an application system as the start-up system, the application system being provided in the application system region; and
in a case that information read by the guidance system is upgrade failed mark information, determining, by the guidance system, a backup system as the start-up system, the backup system being provided in the backup system region.

### Claim 8 (depends on 7)

The method as claimed in claim 7, wherein after determining the application system as the start-up system, updating the system variables to the corresponding system state of the start-up system comprises:
updating the system variables to a system state of the application system.

### Claim 9 (depends on 7)

The method as claimed in claim 7, wherein after determining the backup system as the start-up system, updating the system variables to the corresponding system state of the start-up system comprises:
updating the system variables to a system state of the backup system.

### Claim 10 (depends on 5)

The method as claimed in claim 5, wherein the backup system region is configured to store a system of a basic version.

### Claim 11 (depends on 5)

The method as claimed in claim 5, wherein the application system region is configured to store a system for upgrade.

### Claim 12 (depends on 5)

The method as claimed in claim 5, wherein the firmware package further comprises Central Processing Unit (CPU) firmware, Field Programmable Gate Array (FPGA) firmware, and an Application (APP) program, and the version information file comprises version information of the CPU firmware, version information of the FPGA firmware and version information of the APP program.

### Claim 13

An apparatus for upgrading firmware of a transfer device on a mobile carrier, comprising:
a first determination component, configured to determine, according to present version information of a firmware package of a transfer device and a firmware package version file comprising update version information, whether the firmware package in the transfer device is able to be upgraded, the transfer device being configured to transfer sensor data on the mobile carrier, and the transfer device being further configured to provide a network port for the mobile carrier;
a second determination component, configured to determine, in a case of determining that the transfer device is able to be upgraded, whether the update version information matches with the present version information; and
an upgrade component, configured to upgrade, in a case that the update version information does not match with the present version information, the firmware package in the transfer device.

### Claim 14 (depends on 1)

A non-transitory storage medium, comprising a stored program, wherein the program executes the method of claim 1.

### Claim 15 (depends on 6)

The method as claimed in claim 6, wherein the backup system region is configured to store a system of a basic version.

### Claim 16 (depends on 7)

The method as claimed in claim 7, wherein the backup system region is configured to store a system of a basic version.

### Claim 17 (depends on 8)

The method as claimed in claim 8, wherein the backup system region is configured to store a system of a basic version.

### Claim 18 (depends on 9)

The method as claimed in claim 9, wherein the backup system region is configured to store a system of a basic version.

### Claim 19 (depends on 6)

The method as claimed in claim 6, wherein the application system region is configured to store a system for upgrade.

### Claim 20 (depends on 7)

The method as claimed in claim 7, wherein the application system region is configured to store a system for upgrade.
