Multi-project multi-device based system burning method and device, equipment and medium

By constructing device port information and matching physical port identifiers, the problem of port identification and binding in the burning mode for multiple projects and multiple devices is solved, thus achieving accuracy and efficiency in system burning.

CN115562684BActive Publication Date: 2026-07-24GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GEER TECH CO LTD
Filing Date
2022-09-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In the smart device burning mode, traditional methods cannot identify and bind ports of multiple projects and multiple devices, resulting in the inability to complete system burning.

Method used

By constructing device port information, including physical port identifiers, adjusting the smart device to burning mode, obtaining burning port information, and matching the physical port identifiers to determine the port number, the system burning process is completed.

Benefits of technology

It enables rapid identification and binding of port numbers for multiple projects and devices in burning mode, ensuring the accuracy and efficiency of system burning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562684B_ABST
    Figure CN115562684B_ABST
Patent Text Reader

Abstract

The application discloses a system burning method and device based on multiple projects and multiple devices, equipment and medium. According to the project to which the multiple smart devices belong and the port information corresponding to the multiple smart devices, the device port information corresponding to each project is constructed. The device port information includes a physical port identifier. All smart devices are adjusted to a burning mode to obtain burning port information of all smart devices in the burning mode. The burning port information includes a physical port identifier and a port number in the burning mode. The burning port information is matched with the device port information, so that the port number corresponding to each smart device in the burning mode under each project can be determined, and quick identification and binding of the port number of each smart device in the burning mode under each project are realized. According to the port number corresponding to each smart device in the burning mode under each project, system burning of all smart devices is completed, and the system burning demand of multiple projects and multiple devices is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, and in particular to a system programming method, apparatus, device, and computer-readable storage medium based on multiple projects and multiple devices. Background Technology

[0002] When a smart device is being flashed with a system, it enters flashing mode, connecting to the flashing device's port. The flashing device refers to the device with the flashing tool deployed on it. In flashing mode, the smart device's system is not loaded, and the flashing tool can only uniquely identify the smart device through its port number for system flashing. For a flashing tool connecting only one smart device, it only needs to obtain the port of the currently uniquely connected smart device for flashing. Alternatively, for multiple smart devices connected to the flashing tool for the same project, it only needs to obtain the ports of all currently connected smart devices and then use the project's flashing tool to flash the same system version to each port.

[0003] However, for multiple smart devices across different projects, since different projects use different programming tools and versions, it's necessary to identify the project each smart device belongs to and then use the appropriate programming tool to program the corresponding system version. Smart devices have corresponding port numbers when connecting to the programming device. These port numbers change depending on the operating mode; therefore, when programming, the tool must use the port that matches the smart device. This requires obtaining the port number corresponding to the device belonging to each project.

[0004] The traditional method for identifying device ports involves using commands provided by the smart device system to obtain the device's serial number (SN). Then, by sequentially querying the root node and corresponding child nodes of the Universal Serial Bus (USB) of the programmed device, the system searches for the port containing the smart device's serial number, thus completing the matching and binding between the smart device and the port. However, when the smart device is in the programming state, the system is not booted, making it impossible to obtain the device's serial number using system-provided commands, thus preventing the successful identification and binding of the smart device with the port.

[0005] It is evident that how to complete the identification and binding of devices and ports in the burning mode is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0006] The purpose of this application is to provide a system programming method, apparatus, device, and computer-readable storage medium based on multiple projects and multiple devices, which can complete the identification and binding of devices and ports in programming mode.

[0007] To address the aforementioned technical problems, this application provides a system programming method based on multiple projects and multiple devices, comprising:

[0008] Based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices, device port information corresponding to each project is constructed; wherein, the device port information includes physical port identifier;

[0009] All the smart devices are switched to burning mode to obtain the burning port information of all the smart devices in burning mode; wherein, the burning port information includes the physical port identifier and the port number in burning mode;

[0010] The programming port information is matched with the device port information to determine the corresponding port number of each smart device under each project in programming mode;

[0011] Based on the port number corresponding to each smart device in the burning mode under each project, the system burning of each smart device is completed.

[0012] Optionally, constructing the device port information corresponding to each project based on the projects to which the multiple smart devices belong and the port information corresponding to the multiple smart devices includes:

[0013] Based on the device identifier of each smart device, obtain the project information corresponding to each smart device;

[0014] Based on the device identifier of each smart device and the corresponding project information, generate a device list for each project;

[0015] Based on the port information of each smart device under each project, the device list corresponding to each project is mapped to the device port information list corresponding to each project.

[0016] Optionally, mapping the device list corresponding to each project to a device port information list corresponding to each project based on the port information of each smart device under each project includes:

[0017] Obtain the port information corresponding to each smart device under each project;

[0018] Determine whether a corresponding target device port information list exists for the target project; wherein, the target project is any one of all projects;

[0019] If a list of target device port information exists for the target project, the physical port identifier from the port information of the target smart device is added to the target device port information list; wherein, the target smart device is any smart device belonging to the target project.

[0020] If there is no corresponding target device port information list for the target project, construct a target device port information list for the target project based on the device list for each project; add the physical port identifier from the port information corresponding to the target smart device to the target device port information list.

[0021] Optionally, matching the programming port information with the device port information to determine the corresponding port number of each smart device under each project in programming mode includes:

[0022] If the programming port information and the device port information have the same target physical port identifier, the project to which the target physical port identifier belongs and the smart device to which it belongs are determined from the device port information;

[0023] The port number corresponding to the target physical port identifier is determined from the programming port information;

[0024] Record the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier.

[0025] Optionally, determining the port number corresponding to the target physical port identifier from the programming port information includes:

[0026] Query the local connection name file recorded in the folder where the target physical port identifier is located from the burning port information;

[0027] The port number recorded in the local connection name file is used as the port number corresponding to the target physical port identifier.

[0028] Optionally, recording the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier includes:

[0029] Determine if the target project has a corresponding list of device programming port numbers;

[0030] If a list of corresponding device programming port numbers exists for the target project, add the port number corresponding to the target smart device to the list of device programming port numbers;

[0031] If there is no corresponding list of device programming port numbers for the target project, construct a list of device programming port numbers for the target project based on the device list for each project; add the port number corresponding to the target smart device to the list of device programming port numbers.

[0032] Optionally, the step of completing the system burning of each smart device according to the corresponding port number of each smart device under each project in the burning mode includes:

[0033] The flashing tool corresponding to the target project is invoked, and the system version corresponding to the target project is flashed to the target smart device through the target port number corresponding to the target smart device; wherein, the target project is any one of all projects, the target smart device is any one of the smart devices belonging to the target project, and the target port number is a port number that has a corresponding relationship with the target project and the target smart device.

[0034] This application also provides a system programming device based on multiple projects and multiple devices, including a construction unit, an adjustment unit, a matching unit, and a programming unit;

[0035] The construction unit is used to construct device port information corresponding to each project based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices; wherein, the device port information includes physical port identifiers;

[0036] The adjustment unit is used to adjust all the smart devices to the burning mode in order to obtain the burning port information of all the smart devices in the burning mode; wherein, the burning port information includes the physical port identifier and the port number in the burning mode;

[0037] The matching unit is used to match the programming port information with the device port information to determine the corresponding port number of each smart device under each project in programming mode;

[0038] The programming unit is used to complete the system programming of each smart device according to the port number corresponding to each smart device in the programming mode under each project.

[0039] Optionally, the construction unit includes an acquisition subunit, a generation subunit, and a mapping subunit;

[0040] The acquisition subunit is used to acquire the project information corresponding to each of the smart devices based on the device identifier of each smart device.

[0041] The generation subunit is used to generate a device list corresponding to each project based on the device identifier of each smart device and the corresponding project information.

[0042] The mapping subunit is used to map the device list corresponding to each project to a device port information list corresponding to each project based on the port information of each smart device under each project.

[0043] Optionally, the mapping subunit is used to obtain port information corresponding to each smart device under each project;

[0044] Determine whether a corresponding target device port information list exists for the target project; wherein, the target project is any one of all projects;

[0045] If a list of target device port information exists for the target project, the physical port identifier from the port information of the target smart device is added to the target device port information list; wherein, the target smart device is any smart device belonging to the target project.

[0046] If there is no corresponding target device port information list for the target project, construct a target device port information list for the target project based on the device list for each project; add the physical port identifier from the port information corresponding to the target smart device to the target device port information list.

[0047] Optionally, the matching unit includes a first determining subunit, a second determining subunit, and a recording subunit;

[0048] The first determining subunit is used to determine, when the burning port information and the device port information have the same target physical port identifier, the item to which the target physical port identifier belongs and the smart device to which it belongs from the device port information;

[0049] The second determining subunit is used to determine the port number corresponding to the target physical port identifier from the programming port information;

[0050] The recording subunit is used to record the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier.

[0051] Optionally, the second determining subunit is used to query the local connection name file recorded in the folder where the target physical port identifier is located from the burning port information;

[0052] The port number recorded in the local connection name file is used as the port number corresponding to the target physical port identifier.

[0053] Optionally, the recording subunit is used to determine whether the target project has a corresponding list of device programming port numbers;

[0054] If a list of corresponding device programming port numbers exists for the target project, add the port number corresponding to the target smart device to the list of device programming port numbers;

[0055] If there is no corresponding list of device programming port numbers for the target project, construct a list of device programming port numbers for the target project based on the device list for each project; add the port number corresponding to the target smart device to the list of device programming port numbers.

[0056] Optionally, the burning unit is used to call the burning tool corresponding to the target project, and burn the system version corresponding to the target project to the target smart device through the target port number corresponding to the target smart device; wherein, the target project is any one of all projects, the target smart device is any one of the smart devices belonging to the target project, and the target port number is a port number that has a corresponding relationship with the target project and the target smart device.

[0057] This application also provides an electronic device, including:

[0058] Memory, used to store computer programs;

[0059] A processor is used to execute the computer program to implement the steps of the system burning method based on multiple projects and multiple devices as described above.

[0060] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described system burning method based on multiple projects and multiple devices.

[0061] As can be seen from the above technical solution, device port information for each project is constructed based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices. The device port information includes the physical port identifier, which remains fixed regardless of whether it is in burning mode or other modes. All smart devices are adjusted to burning mode to obtain the burning port information for all smart devices in burning mode; this burning port information includes the physical port identifier and the port number in burning mode. The burning device can only identify the port number occupied by the smart device in burning mode. Due to the large number of smart devices, the burning device cannot distinguish the correspondence between each smart device and the port number. Considering that the physical port identifier corresponding to the smart device is fixed, the burning port information can be matched with the device port information to determine the corresponding port number for each smart device in burning mode under each project. Based on the corresponding port number of each smart device in burning mode under each project, the burning tool and system version matched for each project can be called, and the corresponding system version can be burned to the smart devices under that project through the port corresponding to each smart device, thereby completing the system burning for all smart devices. In this technical solution, smart devices are pre-divided according to their respective projects, and device port information corresponding to each project is constructed. In the burning mode, the physical port identifier contained in the device port information is matched with the physical port identifier contained in the burning port information to quickly identify and bind the port number corresponding to each smart device under each project in the burning mode, thereby completing the system burning of multiple projects and multiple devices. Attached Figure Description

[0062] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0063] Figure 1 A flowchart illustrating a system programming method based on multiple projects and multiple devices provided in this application embodiment;

[0064] Figure 2 This is a schematic diagram illustrating a device list, a device port information list, and a device programming port number list provided in an embodiment of this application.

[0065] Figure 3 A schematic diagram of a system programming device based on multiple projects and multiple devices provided in this application embodiment;

[0066] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0067] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0068] The terms “comprising” and “having” in the specification, claims, and accompanying drawings of this application, and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0069] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0070] Next, we will describe in detail a system programming method based on multiple projects and multiple devices provided in the embodiments of this application. Figure 1 A flowchart of a system programming method based on multiple projects and multiple devices provided in this application embodiment is included. The method includes:

[0071] S101: Based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices, construct the device port information corresponding to each project.

[0072] When a smart device enters the programming mode for system programming, it needs to obtain the port of the programming device as a unique device identifier. In practical applications, different ports can be distinguished by their port numbers, but the port numbers will change depending on the operating mode. For example, the physical port A of the programming device may have the port number COM1 before entering programming mode, but the port number may change to COM17 after entering programming mode.

[0073] After a smart device enters the burning mode, its system is not started. At this time, the burning device cannot use the commands provided by the system to distinguish different smart devices, and therefore cannot determine the corresponding port number of each smart device in the burning mode.

[0074] Physical port identifiers are fixed information and do not change with variations in device operating modes. Furthermore, different projects require different programming tools and system versions. Therefore, in this embodiment, before the smart device enters programming mode, the smart device can be categorized based on its project, thereby allowing for the collection of device port information for each smart device within each project. This device port information includes the physical port identifier.

[0075] In practice, the project information corresponding to each smart device can be obtained based on the device identifier of each smart device.

[0076] The device identifier for a smart device can be a serial number (SN). Taking an Android device as an example, the device serial number can be obtained using the system command "adb devices". After obtaining the serial number, the system command "adb -s SN shell getprop|grep ro.build.product" can be used to retrieve the Android device's project information.

[0077] In practical applications, different strings of numbers or letters can be used as project information to distinguish different projects.

[0078] After obtaining the project information corresponding to each smart device, a device list corresponding to each project can be generated based on the device identifier of each smart device and the corresponding project information.

[0079] In the specific implementation, after obtaining the project information to which the device belongs, the device identifier is added to the device list of the project; if the project does not have a corresponding device list, a device list belonging to the project is created, and the device identifiers of the smart devices belonging to the project are added to the newly created device list.

[0080] Each project has its own corresponding device list. Taking a project as an example, there can be multiple smart devices belonging to that project, and the device list for that project can record the device identifiers of each smart device belonging to that project.

[0081] To achieve matching between smart devices and port numbers in the burning mode, before entering the burning mode, the device list corresponding to each project can be mapped to the device port information list corresponding to each project based on the port information of each smart device under each project.

[0082] The device port information list is generated in the same way for each project. Taking any one of the projects, i.e. the target project, as an example, the device port information list corresponding to the target project can be called the target device port information list.

[0083] After obtaining the port information of each smart device under the target project, it can be determined whether the target project has a corresponding list of target device port information.

[0084] If a list of target device port information exists for the target project, the physical port identifier from the port information of the target smart device can be added to the target device port information list; where the target smart device is any smart device belonging to the target project.

[0085] If there is no corresponding target device port information list for the target project, a target device port information list for the target project can be constructed based on the device list for each project; the physical port identifier from the port information of the target smart device can then be added to the target device port information list.

[0086] In this embodiment, the physical port identifier can be the value of the LocationInformation attribute in the port information. The value of the LocationInformation attribute is used to indicate the physical port.

[0087] S102: Adjust all smart devices to burning mode to obtain the burning port information of all smart devices in burning mode.

[0088] The programming port information may include the physical port identifier and the port number in programming mode.

[0089] The port number is information generated by the programming device itself. The port number is not fixed; for the same physical port, the corresponding port number will change in different operating modes.

[0090] After a smart device enters the burning mode, the burning device can obtain the port information of all smart devices in the burning mode. This port information records the physical port occupied by the smart device and the port number in the burning mode.

[0091] S103: Match the programming port information with the device port information to determine the corresponding port number of each smart device in programming mode under each project.

[0092] Because the smart device's system is not started in burning mode, the burning device cannot identify the smart device's identity through command interaction, which makes it impossible for the burning device to determine the corresponding port number of each smart device.

[0093] Considering that both the programming port information and the device port information record the physical port identifier, and the physical port identifier is a fixed and unchanging piece of information, in this embodiment of the application, the programming port information and the device port information can be matched based on the physical port identifier.

[0094] In practice, it can be determined whether the burned port information and the device port information have the same target physical port identifier.

[0095] If the burning port information and the device port information have the same target physical port identifier, it means that the port number corresponding to the target physical port identifier in the burning port information has a corresponding relationship with the project and the smart device to which the target physical port belongs in the device port information.

[0096] Therefore, when the programming port information and the device port information have the same target physical port identifier, the project and smart device to which the target physical port identifier belongs can be determined from the device port information; and the port number corresponding to the target physical port identifier can be determined from the programming port information. In this embodiment, the local connection name file recorded in the folder where the target physical port identifier is located can be queried from the programming port information; and the port number recorded in the local connection name file can be used as the port number corresponding to the target physical port identifier.

[0097] In practical applications, the local connection name file can be a "FriendlyName" file, and the port number can be obtained from the value of the FriendlyName attribute, such as COM17.

[0098] After determining the port number of the same target physical port identifier in the burning mode, as well as the project and smart device to which the target physical port identifier belongs, the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier can be recorded.

[0099] S104: Based on the port number of each smart device in the burning mode under each project, complete the system burning of each smart device.

[0100] Each project has its own compatible flashing tool and system version. The flashing method for each smart device within each project is the same. Taking any project (the target project) as an example, any smart device belonging to the target project can be referred to as the target smart device. The port number corresponding to the target smart device in flashing mode is called the target port number.

[0101] In practical applications, the corresponding flashing tool for the target project can be called to flash the system version corresponding to the target project to the target smart device through the target port number corresponding to the target smart device.

[0102] In this embodiment of the application, the correspondence between the project, the smart device, and the port number in the burning mode can be recorded in the form of a list of device burning port numbers.

[0103] In practical applications, it can be determined whether a corresponding list of device programming port numbers exists for the target project.

[0104] If a corresponding list of device programming port numbers exists for the target project, the port number corresponding to the target smart device can be directly added to the device programming port number list. If a corresponding list of device programming port numbers does not exist for the target project, a device programming port number list for the target project is constructed based on the device list for each project; then, the port number corresponding to the target smart device is added to the device programming port number list.

[0105] For example, the value of the "LocationInformation" attribute in the programming port information can be matched with the value of the "LocationInformation" attribute in the device port information. Assuming the value of the "LocationInformation" attribute in the programming port information is equal to the value of the "LocationInformation" attribute of device A1 under item A in the "Device Port Information List," the port number, such as COM17, can be obtained from the value of the "FriendlyName" attribute in the same folder as "LocationInformation" in the programming port information. This value is then added to the position corresponding to device A1 in the device programming port number list for item A. If there is no device programming port number list for item A, a list of device programming port numbers belonging to that item is created, and the port number is added to the position corresponding to device A1 in the device programming port number list for item A.

[0106] Figure 2 This is a schematic diagram illustrating a device list, a device port information list, and a device programming port number list provided in an embodiment of this application. Figure 2 The leftmost list is the device list, the middle list is the device port information list, and the rightmost list is the device programming port number list. Figure 2 The device list contains a list of devices corresponding to each project, and each device list records the device identifiers of all devices belonging to the same project. The device port information list contains a list of device port information corresponding to each project, and each device port information list records the physical port identifiers of all devices belonging to the same project. The device programming port number list contains a list of device port numbers for each project's smart devices in programming mode. In other words, the device port number list in programming mode records the port numbers corresponding to each smart device in programming mode.

[0107] As can be seen from the above technical solution, device port information for each project is constructed based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices. The device port information includes the physical port identifier, which remains fixed regardless of whether it is in burning mode or other modes. All smart devices are adjusted to burning mode to obtain the burning port information for all smart devices in burning mode; this burning port information includes the physical port identifier and the port number in burning mode. The burning device can only identify the port number occupied by the smart device in burning mode. Due to the large number of smart devices, the burning device cannot distinguish the correspondence between each smart device and the port number. Considering that the physical port identifier corresponding to the smart device is fixed, the burning port information can be matched with the device port information to determine the corresponding port number for each smart device in burning mode under each project. Based on the corresponding port number of each smart device in burning mode under each project, the burning tool and system version matched for each project can be called, and the corresponding system version can be burned to the smart devices under that project through the port corresponding to each smart device, thereby completing the system burning for all smart devices. In this technical solution, smart devices are pre-divided according to their respective projects, and device port information corresponding to each project is constructed. In the burning mode, the physical port identifier contained in the device port information is matched with the physical port identifier contained in the burning port information to quickly identify and bind the port number corresponding to each smart device under each project in the burning mode, thereby completing the system burning of multiple projects and multiple devices.

[0108] Figure 3 A schematic diagram of a system programming device based on multiple projects and multiple devices provided in this application embodiment includes a construction unit 31, an adjustment unit 32, a matching unit 33, and a programming unit 34;

[0109] The construction unit 31 is used to construct the device port information corresponding to each project based on the project to which multiple smart devices belong and the port information corresponding to the multiple smart devices; wherein, the device port information includes the physical port identifier;

[0110] The adjustment unit 32 is used to adjust all smart devices to the burning mode in order to obtain the burning port information of all smart devices in the burning mode; wherein, the burning port information includes the physical port identifier and the port number in the burning mode.

[0111] The matching unit 33 is used to match the burning port information with the device port information to determine the corresponding port number of each smart device in the burning mode under each project.

[0112] The programming unit 34 is used to complete the system programming of each smart device according to the corresponding port number of each smart device in the programming mode under each project.

[0113] Optionally, the building unit includes obtaining sub-units, generating sub-units, and mapping sub-units;

[0114] The acquisition sub-unit is used to obtain the project information corresponding to each smart device based on the device identifier of each smart device.

[0115] The generation sub-unit is used to generate a list of devices for each project based on the device identifier of each smart device and the corresponding project information.

[0116] The mapping subunit is used to map the device list corresponding to each project to a device port information list corresponding to each project, based on the port information of each smart device under each project.

[0117] Optionally, the mapping subunit is used to obtain the port information corresponding to each smart device under each project;

[0118] Determine if the target project exists in the list of target device port information; where the target project can be any one of the projects.

[0119] If a list of target device port information exists for the target project, add the physical port identifier from the port information of the target smart device to the target device port information list; where the target smart device is any smart device belonging to the target project.

[0120] If there is no corresponding target device port information list for the target project, construct a target device port information list for the target project based on the device list for each project; add the physical port identifier from the port information of the target smart device to the target device port information list.

[0121] Optionally, the matching unit includes a first determining subunit, a second determining subunit, and a recording subunit;

[0122] The first determining subunit is used to determine the item to which the target physical port identifier belongs and the smart device to which it belongs from the device port information when the burned port information and the device port information have the same target physical port identifier.

[0123] The second determining subunit is used to determine the port number corresponding to the target physical port identifier from the burned port information;

[0124] The recording subunit is used to record the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier.

[0125] Optionally, the second determining subunit is used to query the local connection name file recorded in the folder where the target physical port identifier is located from the burning port information;

[0126] Use the port number recorded in the local connection name file as the port number corresponding to the target physical port identifier.

[0127] Optionally, the recording subunit is used to determine whether the target project has a corresponding list of device programming port numbers;

[0128] If a list of corresponding device programming port numbers exists for the target project, add the port number corresponding to the target smart device to the list of device programming port numbers;

[0129] If there is no corresponding list of device programming port numbers for the target project, construct a list of device programming port numbers for the target project based on the device list for each project; add the port number corresponding to the target smart device to the list of device programming port numbers.

[0130] Optionally, the programming unit is used to call the programming tool corresponding to the target project, and program the system version corresponding to the target project to the target smart device through the target port number corresponding to the target smart device; wherein, the target project is any one of all projects, the target smart device is any one of the smart devices belonging to the target project, and the target port number is a port number that has a corresponding relationship with the target project and the target smart device.

[0131] Figure 3 For a description of the features in the corresponding embodiments, please refer to Figure 1 The relevant descriptions of the corresponding embodiments will not be repeated here.

[0132] As can be seen from the above technical solution, device port information for each project is constructed based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices. The device port information includes the physical port identifier, which remains fixed regardless of whether it is in burning mode or other modes. All smart devices are adjusted to burning mode to obtain the burning port information for all smart devices in burning mode; this burning port information includes the physical port identifier and the port number in burning mode. The burning device can only identify the port number occupied by the smart device in burning mode. Due to the large number of smart devices, the burning device cannot distinguish the correspondence between each smart device and the port number. Considering that the physical port identifier corresponding to the smart device is fixed, the burning port information can be matched with the device port information to determine the corresponding port number for each smart device in burning mode under each project. Based on the corresponding port number of each smart device in burning mode under each project, the burning tool and system version matched for each project can be called, and the corresponding system version can be burned to the smart devices under that project through the port corresponding to each smart device, thereby completing the system burning for all smart devices. In this technical solution, smart devices are pre-divided according to their respective projects, and device port information corresponding to each project is constructed. In the burning mode, the physical port identifier contained in the device port information is matched with the physical port identifier contained in the burning port information to quickly identify and bind the port number corresponding to each smart device under each project in the burning mode, thereby completing the system burning of multiple projects and multiple devices.

[0133] Figure 4 A structural diagram of an electronic device provided in an embodiment of this application, such as... Figure 4 As shown, the electronic device includes: a memory 20 for storing computer programs;

[0134] The processor 21 is used to execute computer programs to implement the steps of the system burning method based on multiple projects and multiple devices as described in the above embodiments.

[0135] The electronic devices provided in this embodiment may include, but are not limited to, smartphones, tablets, laptops, or desktop computers.

[0136] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0137] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, can implement the relevant steps of the system burning method based on multiple projects and multiple devices disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary storage or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, device port information corresponding to each project.

[0138] In some embodiments, the electronic device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0139] Those skilled in the art will understand that Figure 4 The structures shown do not constitute a limitation on electronic devices and may include more or fewer components than those shown.

[0140] It is understood that if the system burning method based on multiple projects and multiple devices in the above embodiments is implemented in the form of software functional units and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes: USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, and other media capable of storing program code.

[0141] Based on this, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described system burning method based on multiple projects and multiple devices.

[0142] The foregoing has provided a detailed description of a system programming method, apparatus, device, and computer-readable storage medium based on multiple projects and multiple devices, as provided in the embodiments of this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0143] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0144] The foregoing has provided a detailed description of a system programming method, apparatus, device, and computer-readable storage medium based on multiple projects and multiple devices provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of the invention. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of the invention, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A system programming method based on multiple projects and multiple devices, characterized in that, include: Based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices, device port information corresponding to each project is constructed; wherein, the device port information includes a physical port identifier; the physical port identifier is the value of the location information attribute in the port information, which is fixed information and does not change due to changes in the device's working mode; All the smart devices are switched to burning mode to obtain the burning port information of all the smart devices in burning mode; wherein, the burning port information includes the physical port identifier and the port number in burning mode; The programming port information is matched with the device port information to determine the corresponding port number of each smart device under each project in programming mode; Based on the port number corresponding to each smart device in the burning mode under each project, the system burning of each smart device is completed.

2. The system programming method based on multiple projects and multiple devices according to claim 1, characterized in that, The process of constructing device port information corresponding to each project based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices includes: Based on the device identifier of each smart device, obtain the project information corresponding to each smart device; Based on the device identifier of each smart device and the corresponding project information, generate a device list for each project; Based on the port information of each smart device under each project, the device list corresponding to each project is mapped to the device port information list corresponding to each project.

3. The system programming method based on multiple projects and multiple devices according to claim 2, characterized in that, The process of mapping the device list corresponding to each project to a device port information list corresponding to each project based on the port information of each smart device under each project includes: Obtain the port information corresponding to each smart device under each project; Determine whether a corresponding target device port information list exists for the target project; wherein, the target project is any one of all projects; If a list of target device port information exists for the target project, the physical port identifier from the port information of the target smart device is added to the target device port information list; wherein, the target smart device is any smart device belonging to the target project. If there is no corresponding target device port information list for the target project, construct a target device port information list for the target project based on the device list for each project; add the physical port identifier from the port information corresponding to the target smart device to the target device port information list.

4. The system programming method based on multiple projects and multiple devices according to claim 3, characterized in that, The step of matching the programming port information with the device port information to determine the corresponding port number of each smart device under each project in programming mode includes: If the programming port information and the device port information have the same target physical port identifier, the project to which the target physical port identifier belongs and the smart device to which it belongs are determined from the device port information; The port number corresponding to the target physical port identifier is determined from the programming port information; Record the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier.

5. The system programming method based on multiple projects and multiple devices according to claim 4, characterized in that, The step of determining the port number corresponding to the target physical port identifier from the programming port information includes: Query the local connection name file recorded in the folder where the target physical port identifier is located from the burning port information; The port number recorded in the local connection name file is used as the port number corresponding to the target physical port identifier.

6. The system programming method based on multiple projects and multiple devices according to claim 4, characterized in that, The record includes the correspondence between the project to which the target physical port identifier belongs, the smart device to which it belongs, and the port number corresponding to the target physical port identifier. Determine if the target project has a corresponding list of device programming port numbers; If a list of corresponding device programming port numbers exists for the target project, add the port number corresponding to the target smart device to the list of device programming port numbers; If there is no corresponding list of device programming port numbers for the target project, construct a list of device programming port numbers for the target project based on the device list for each project; add the port number corresponding to the target smart device to the list of device programming port numbers.

7. The system programming method based on multiple projects and multiple devices according to any one of claims 1 to 6, characterized in that, The step of completing the system burning of each smart device according to its corresponding port number in the burning mode under each project includes: The flashing tool corresponding to the target project is invoked, and the system version corresponding to the target project is flashed to the target smart device through the target port number corresponding to the target smart device; wherein, the target project is any one of all projects, the target smart device is any one of the smart devices belonging to the target project, and the target port number is a port number that has a corresponding relationship with the target project and the target smart device.

8. A system programming device based on multiple projects and multiple devices, characterized in that, It includes a building unit, an adjustment unit, a matching unit, and a programming unit; The construction unit is used to construct device port information corresponding to each project based on the projects to which multiple smart devices belong and the port information corresponding to the multiple smart devices; wherein, the device port information includes a physical port identifier; the physical port identifier is the value of the location information attribute in the port information, which is fixed information and does not change due to changes in the device's working mode; The adjustment unit is used to adjust all the smart devices to the burning mode in order to obtain the burning port information of all the smart devices in the burning mode; wherein, the burning port information includes the physical port identifier and the port number in the burning mode; The matching unit is used to match the programming port information with the device port information to determine the corresponding port number of each smart device under each project in programming mode; The programming unit is used to complete the system programming of each smart device according to the port number corresponding to each smart device in the programming mode under each project.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the system programming method based on multiple projects and multiple devices as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the system burning method based on multiple projects and multiple devices as described in any one of claims 1 to 7.