CN115766681B - Program downloading method, device, medium and equipment - Google Patents
Program downloading method, device, medium and equipment Download PDFInfo
- Publication number
- CN115766681B CN115766681B CN202211505782.5A CN202211505782A CN115766681B CN 115766681 B CN115766681 B CN 115766681B CN 202211505782 A CN202211505782 A CN 202211505782A CN 115766681 B CN115766681 B CN 115766681B
- Authority
- CN
- China
- Prior art keywords
- file
- target
- program
- server
- downloading
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 claims description 29
- 238000012360 testing method Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000012546 transfer Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 description 1
- 102000006822 Agouti Signaling Protein Human genes 0.000 description 1
- 108010072151 Agouti Signaling Protein Proteins 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The application provides a program downloading method, a program downloading device, a program downloading medium and program downloading equipment, and relates to the field of computers. The method comprises the steps that target equipment acquires a download configuration file of the target equipment from a server; obtaining a file identification of the target program file from the downloaded configuration file according to the downloaded configuration file; and downloading the target program file from the server to the local according to the file identification of the target program file. In this way, the server records the file identification of the target program file in the download configuration file provided for the target device, so that the target device only needs to download the target program file corresponding to the file identification from the server according to the file identification in the download configuration file, and therefore, the download configuration file provides the target device with the indication information required by downloading the program file, thereby improving the efficiency of program downloading.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a program downloading method, apparatus, medium and device.
Background
With the diversification of market demands, the method of filling software programs through a programmer during mass production of equipment has a plurality of flexibility limits. After the image file is filled, if simple adjustment is needed, the image is needed to be made again, and the whole production process is repeated.
Accordingly, in the related art, a program file to be downloaded is stored in a server, and the program file is automatically downloaded to a local place from the server by a device side. However, this method requires that the device end knows the identification information of the program file in advance, which results in that if the identification information of the program file changes, the service logic of the device end for downloading the program file needs to be adaptively modified, so that the program downloading efficiency needs to be further improved.
Disclosure of Invention
In order to overcome at least one of the disadvantages in the prior art, the present application provides a program downloading method, apparatus, medium and device, for efficiently downloading a program file, including:
In a first aspect, the present application provides a program downloading method, applied to a target device, the method comprising:
acquiring a download configuration file of the target device from a server;
acquiring a file identifier of a target program file from the download configuration file according to the download configuration file;
And downloading the target program file from the server to the local according to the file identification of the target program file.
In a second aspect, the present application provides a program downloading apparatus applied to a target device, the apparatus comprising:
the configuration acquisition module is used for acquiring the download configuration file of the target equipment from a server;
the identification acquisition module is used for acquiring a file identification of the target program file from the download configuration file according to the download configuration file;
and the program downloading module is used for downloading the target program file from the server to the local according to the file identification of the target program file.
In a third aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the program downloading method.
In a fourth aspect, the present application provides a target device, the target device comprising a processor and a memory, the memory storing a computer program, the computer program implementing the program downloading method when executed by the processor.
Compared with the prior art, the application has the following beneficial effects:
In the program downloading method, device, medium and equipment provided by the application, the target equipment acquires the downloading configuration file of the target equipment from the server; obtaining a file identification of the target program file from the downloaded configuration file according to the downloaded configuration file; and downloading the target program file from the server to the local according to the file identification of the target program file. In this way, the server records the file identification of the target program file in the download configuration file provided for the target device, so that the target device only needs to download the target program file corresponding to the file identification from the server according to the file identification in the download configuration file, and therefore, the download configuration file provides the target device with the indication information required by downloading the program file, thereby improving the efficiency of program downloading.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a program downloading principle by using a server according to an embodiment of the present application;
Fig. 2 is a flow chart of a program downloading method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a relationship between a path configuration file and a plurality of devices according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a relationship between a download configuration file and a program file according to an embodiment of the present application;
Fig. 5 is a schematic diagram of a mapping principle of a test PC according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a program downloading device according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a target device according to an embodiment of the present application.
Icon: 101-configuring an acquisition module; 102-an identification acquisition module; 103-a program download module; 201-a memory; 202-a processor; 203-a communication unit; 204-system bus.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Based on the above statement, this embodiment takes into account the limitation of flexibility in the way the programmer fills the software program when the device is mass-produced. For example, if a simple adjustment is needed, the mirror image needs to be made again, like the completion of the filling of the file, resulting in the need to go through the whole production process again. For another example, when the image file is burnt, the soldered chip needs to be removed to complete the recording operation again, which brings great inconvenience to fault maintenance.
Therefore, the automatic downloading of the program can be realized after the welding is finished, the method has the positive effect of improving the efficiency for the scene of mass production, and the time and the labor are saved during maintenance. In this regard, in the related art, a program file to be downloaded is stored in a server, and the program file is automatically downloaded from the server to the local by a device. However, this method requires that the device end knows the identification information of the program file in advance, which results in that if the identification information of the program file changes, the service logic of the device end for downloading the program file needs to be adaptively modified.
Illustratively, as shown in fig. 1, the server is communicatively connected to a plurality of devices for downloading program files through ethernet ports extended by the switch, and the program files to be downloaded are stored on the server, so that each device can directly download the program files from the server. When a program file is named as a 'Hello-APP' in an initial version, a device in communication connection with a server sends a request to the server after each start to inquire whether the Hello-APP has an update, and if so, the latest version of the program is downloaded from the server. However, in some cases, the name of the program file may be changed, for example, from "Hello-APP" to "Hello-plus", which means that the service logic of the device end for downloading the program file needs to be adjusted accordingly, so that after the device is started, a request is sent to the server to ask whether the Hello-plus has an update.
It should be noted that the above prior art solutions have all the drawbacks that the inventors have obtained after practice and careful study, and thus the discovery process of the above problems and the solutions to the problems that the embodiments of the present application hereinafter propose should not be construed as what the inventors have made in the inventive process of the present application, but should not be construed as what is known to those skilled in the art.
In view of this, the present embodiment provides a program downloading method applied to a target device, for improving the program downloading efficiency. Wherein the target device is in communication connection with the server. The server may be a single server or a server group. The server farm may be centralized or distributed (e.g., the servers may be distributed systems). In some embodiments, the server may be local or remote to the user terminal. In some embodiments, the server may be implemented on a cloud platform; by way of example only, cloud platforms may include private clouds, public clouds, hybrid clouds, community clouds (Community clouds), distributed clouds, inter-clouds (Inter-clouds), multi-clouds (Multi-clouds), and so forth.
The steps of the method are described in detail below in conjunction with fig. 2. It should be understood that the operations of the flow diagrams may be performed out of order and that steps that have no logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure. As shown in fig. 2, the method includes:
S101, acquiring a download configuration file of the target device from a server.
The server may store program download configuration files and program files of various devices, so that program download services may be provided for the various devices, and the target device in this embodiment may be any one of the various devices.
In order to facilitate management of the respective program files and download configuration files of the various devices, separate folders may be provided for the various devices, for storing the respective program files and download configuration files of the various devices, and path configuration files may be provided for the various folders, for recording a correspondence between device identifiers of each device and storage paths corresponding to the download configuration files.
In an optional implementation manner provided in this embodiment, a primary directory and a plurality of secondary directories are included in a target storage path of a server, where the plurality of secondary directories are subdirectories of the primary directory; the path configuration file is stored in a primary catalog; the plurality of secondary directories are respectively used for storing download configuration files and program files of different devices.
Thus, a specific embodiment of step S101 includes:
s101-1, obtaining a path configuration file from a server.
S101-2, inquiring the path configuration file according to the device identification of the target device, and obtaining the storage path of the download configuration file of the target device.
S101-3, obtaining the download configuration file of the target device from the server according to the storage path of the download configuration file of the target device.
Illustratively, a communication connection may be established between the target device and the server through a file transfer Protocol (TRIVIAL FILE TRANSFER Protocol, TFTP or FILETRANSFER PROTOCOL, FTP), and a path profile may be obtained from the server through the file transfer Protocol and a download profile of the target device may be obtained based on the path profile. As shown in fig. 3, it is assumed that the models of various devices are "VG7000", "M1980", respectively, and that the server takes the storage path "E: \" as the target storage path, the E disc as the primary directory, and creates a folder named "VG7000" and a folder named "M1980" under the primary directory as the secondary directory, and then creates a path profile named "VerPath _ bootinfo" for both folders, and stores in the primary directory.
The folders "VG7000" and "M1980" are used for storing the program files and the download configuration files of the devices of the corresponding model, respectively, that is, the program files and the download configuration files of the same device are located in the same storage path in the server. And recording the corresponding relation between the device identification of each device and the storage path of the corresponding program downloading configuration file in the path configuration file.
For example, for a target device of model "M1980", the contents recorded in the path profile named "VerPath _ bootinfo" are:
“NVGSpaceM1980(0x2d12):M1980\nss_ootinfo_M1980.txt”
Wherein, "NVGSPACEM1980 (0 x2d 12)" represents the complete device identification of the type of device, and "M1980\ nss _ ootinfo _m1980" represents the folder name where the corresponding download profile is located and the file identification of the download profile.
As shown in fig. 4, when the model of the target device is "M1980", the name of the download configuration file of the target device is "nss _ ootinfo _m1980" which stores the path as "E: \m1980" from the path configuration file according to the device identification of the target device; then, jump to "E: \M1980" by file transfer protocol, and obtain the download configuration file "nss _ ootinfo _M1980.Txt" of the target device therein according to the name "nss _ ootinfo _M 1980".
Based on the above description of the program download configuration file, with continued reference to fig. 2, the method further includes:
S102, downloading the configuration file according to the program, and obtaining the file identification of the target program file from the configuration file.
It should be understood herein that the target device may include a plurality of program files, and the target program file is any one of the plurality of program files; in addition, since all of the plurality of program files need not be downloaded at the same time, the download configuration file of the target device records the correspondence between the program type of the program file and the file identifier of the program file in the format of a key value pair, and in this case, the specific embodiment of step S102 includes:
S102-1, reading the target key value pair from the program download configuration file.
S102-2, if the value in the target key value pair is not null, determining the value in the target key value pair as the file identification of the target program file.
Illustratively, continuing to take the file in folder "M1980" shown in FIG. 4 as an example, assume that the download configuration file "nss _ ootinfo _M1980.Txt" for the target device of the signal is:
“mode-select:normal
isneedautoupdate:no
iosname:M1980-9-2.1.1.6(R).pck
webname:webrom-m1980-001R001C00B153.rom
bootloadername:
bootiosname:
devname:devInfo_vp21 vl.7
ethiosname:m1980-g-2.1.1.6(R).pck
startup:backup_default_startup
updatetime:2022-8-7#03:25”
If the read target key value pair is ' iosname:M1980-9-2.1.1.6 (R). Pck ', the key ' in the target key value pair is ' iosname ', and the ' value ' in the target key value pair is ' M1980-9-2.1.1.6 (R). Pck '. At this time, the information in the target key pair indicates that the program type of the target program file "M1980-9-2.1.1.6 (R). Pck" is an operating system.
Similarly, if the read target key value pair is "bootloadername:", the "key" in the target key value pair is "bootloadername", and the "value" in the target key value pair is null, which means that the bootlaoder type program does not need to be downloaded.
Therefore, for the target device with the model of 'M1980', when the target device needs to be instructed to download a program file of a certain type, a user only needs to add a key value pair of the program file in the download configuration file of the target device according to the format; similarly, when the target device is not required to be instructed to download a certain type of program file, the "value" in the key value pair corresponding to the program file is deleted from the download configuration file of the target device. Therefore, when the file identification of the program file changes, only the adaptation is needed in the download configuration file, but the business logic of the download program file at the side of the target device does not need to be adapted,
S103, downloading the target program file from the server to the local according to the file identification of the target program file.
In this way, the file identification of the target program file to be downloaded is recorded in the download configuration file of the target device provided in the server, so that the target device only needs to download the target program file corresponding to the file identification from the server according to the file identification in the download configuration file, and therefore the download configuration file provides the target device with the indication information required by downloading the program file, and the program downloading efficiency is improved.
In addition, in the embodiment, in consideration of the need of avoiding the excessive influence on the user during the program downloading, the use experience of the user is improved, and the downloading configuration file of the target device also records the program downloading control information. At this time, the target device downloads the target program file from the server to the local under the constraint of the download control information according to the file identification of the target program file.
Illustratively, continuing with the example described in the download configuration file named "nss _ ootinfo _m1980.Txt" in the above embodiment, one piece of control information is "mode-select: normal" that instructs the target device to take the normal model for download. In the normal mode, if the program file corresponding to the server is already filled in the target device, the program file is not downloaded again for coverage.
In the research process, it is also found that when the target device is tested, the program downloading environment and the device testing environment are often located at different positions respectively, so that a tester needs to download the latest program file for the target device under the program downloading environment; then, the target device running the latest program file is transferred to the test environment for testing, so that the test efficiency is seriously reduced when the test environment and the download environment are respectively located at different positions.
In view of this, the target device is communicatively coupled to the server via the test device, which maps the target storage path on the server to local so that the target device accesses the server via the test device.
Illustratively, as shown in fig. 5, assuming that the test device is a test PC, the test PC maps a path profile under a target storage path on a server, a download profile of each device, and a program file to the local via a file transfer protocol. Therefore, any target device can download the program file through the test PC and perform functional test on the target device through the test PC only by establishing a link based on a file transfer protocol with the test PC in the test environment.
Based on the same inventive concept as the program downloading method, the present embodiment also provides a program downloading apparatus applied to a target device, and the target device is communicatively connected to a server. The program downloading device comprises at least one software functional module which can be stored in a memory in a software form or solidified in an Operating System (OS) of the target equipment. The processor in the target device is configured to execute the executable modules stored in the memory. For example, a software function module included in the program downloading apparatus, a computer program, and the like. Referring to fig. 6, functionally divided, the program downloading apparatus may include:
the configuration acquisition module 101 is configured to acquire a download configuration file of the target device from the server.
In the present embodiment, the configuration acquisition module 101 is used to implement step S101 in fig. 2, and a detailed description of the configuration acquisition module 101 may be referred to as a detailed description of step S101.
The identifier obtaining module 102 is configured to obtain, from the downloaded configuration file, a file identifier of the target program file.
In the present embodiment, the identifier acquisition module 102 is used to implement step S102 in fig. 2, and the detailed description of the identifier acquisition module 102 may be referred to as the detailed description of step S102.
The program downloading module 103 is configured to download the target program file from the server to the local according to the file identifier of the target program file.
In the present embodiment, the program download module 103 is used to implement step S103 in fig. 2, and a detailed description of the program download module 103 can be found in the detailed description of step S103.
In addition, it should be noted that, since the same inventive concept is provided as the program downloading method, the above configuration obtaining module 101, the identification obtaining module 102, and the program downloading module 103 may also end up implementing other steps or sub-steps of the method. In this regard, the description of this embodiment is omitted.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
It should also be appreciated that the above embodiments, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application.
Accordingly, the present embodiment also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the program downloading method provided by the present embodiment. The computer readable storage medium may be any of various media capable of storing program codes, such as a usb (universal serial bus), a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk.
Referring to fig. 7, the present embodiment further provides a target device, which includes a processor 202 and a memory 201. The processor 202 and the memory 201 may communicate via a system bus 204. The memory 201 stores a computer program, and the processor reads and executes the computer program corresponding to the above embodiment in the memory 201, thereby realizing the program downloading method provided in the present embodiment.
With continued reference to fig. 7, the target device further comprises a communication unit 203. The memory 201, the processor 202, and the communication unit 203 are directly or indirectly connected to each other through a system bus 204 to realize data transmission or interaction.
The memory 201 may be an information recording device based on any electronic, magnetic, optical or other physical principle for recording execution instructions, data, etc. In some embodiments, the memory 201 may be, but is not limited to, volatile memory, non-volatile memory, storage drives, and the like.
In some embodiments, the volatile memory may be a random access memory (Random Access Memory, RAM); in some embodiments, the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), flash Memory, or the like; in some embodiments, the storage drive may be a magnetic disk drive, a solid state disk, any type of storage disk (e.g., optical disk, DVD, etc.), or a similar storage medium, or a combination thereof, etc.
The communication unit 203 is used for transmitting and receiving data through a network. In some embodiments, the network may include a wired network, a wireless network, a fiber optic network, a telecommunications network, an intranet, the internet, a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), a wireless local area network (Wireless Local Area Networks, WLAN), a metropolitan area network (Metropolitan Area Network, MAN), a wide area network (Wide Area Network, WAN), a public switched telephone network (Public Switched Telephone Network, PSTN), a bluetooth network, a ZigBee network, a near field Communication (NEAR FIELD Communication, NFC) network, or the like, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the service request processing system may connect to the network to exchange data and/or information.
The processor 202 may be an integrated circuit chip with signal processing capabilities and may include one or more processing cores (e.g., a single-core processor or a multi-core processor). By way of example only, the Processor may include a central processing unit (Central Processing Unit, CPU), application SPECIFIC INTEGRATED Circuit (ASIC), special purpose instruction set Processor (Application Specific Instruction-set Processor, ASIP), graphics processing unit (Graphics Processing Unit, GPU), physical processing unit (Physics Processing Unit, PPU), digital signal Processor (DIGITAL SIGNAL Processor, DSP), field programmable gate array (Field Programmable GATE ARRAY, FPGA), programmable logic device (Programmable Logic Device, PLD), controller, microcontroller unit, reduced instruction set computer (Reduced Instruction Set Computing, RISC), microprocessor, or the like, or any combination thereof.
It should be understood that the apparatus and method disclosed in the above embodiments may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is merely illustrative of various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the scope of the present application, and the application is intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (9)
1. A program downloading method, applied to a target device, the method comprising:
Obtaining a download configuration file of the target device from a server, wherein the download configuration file records the corresponding relation between the program type of the program file and the file identification of the program file in a key value pair format;
reading a target key value pair from the download configuration file;
if the value in the target key value pair is not null, determining the value in the target key value pair as a file identifier of a target program file;
And downloading the target program file from the server to the local according to the file identification of the target program file, wherein the target program file and the downloading configuration file are positioned on the same storage path in the server.
2. The program downloading method according to claim 1, wherein the target device is any one of a plurality of devices, the server stores path configuration files and download configuration files of the plurality of devices, and the path configuration files record correspondence between device identifiers of each device and storage paths of the corresponding download configuration files;
The obtaining, from the server, the download configuration file of the target device includes:
acquiring the path configuration file from the server;
Inquiring the path configuration file according to the equipment identifier of the target equipment to obtain a storage path of the download configuration file of the target equipment;
and obtaining the download configuration file of the target equipment from the server according to the storage path of the download configuration file of the target equipment.
3. The program downloading method as claimed in claim 2, wherein the target storage path of the server includes a primary directory and a plurality of secondary directories, wherein the plurality of secondary directories are subdirectories of the primary directory;
the path configuration file is stored in the primary catalog;
the plurality of secondary directories are respectively used for storing download configuration files and program files of different devices.
4. The program downloading method as claimed in claim 2, wherein the target device is communicatively connected to the server through a test device;
The test device maps a target storage path on a server to a local location such that the target device accesses the target storage path of the server through the test device.
5. The program downloading method as claimed in claim 4, wherein the test device is a test service device of the target device, for testing a preset function of the target device.
6. The program downloading method as claimed in claim 1, wherein the download configuration file further records download control information;
the downloading the target program file from the server to the local according to the file identification of the target program file comprises the following steps:
And downloading the target program file from the server to the local under the constraint of the downloading control information according to the file identification of the target program file.
7. A program downloading apparatus, applied to a target device, comprising:
A configuration acquisition module, configured to acquire a download configuration file of the target device from a server, where the download configuration file records a correspondence between a program type of a program file and a file identifier of the program file in a format of a key value pair;
The identification acquisition module is used for reading the target key value pair from the download configuration file;
If the value in the target key value pair is not null, determining the value in the target key value pair as the file identification of the target program file, and acquiring the file identification of the target program file from the file identification of the target program file according to the download configuration file;
And the program downloading module is used for downloading the target program file from the server to the local according to the file identification of the target program file, and the target program file and the downloading configuration file are positioned in the same storage path in the server.
8. 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 program downloading method according to any one of claims 1-6.
9. A target device, characterized in that the target device comprises a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the program downloading method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211505782.5A CN115766681B (en) | 2022-11-28 | 2022-11-28 | Program downloading method, device, medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211505782.5A CN115766681B (en) | 2022-11-28 | 2022-11-28 | Program downloading method, device, medium and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115766681A CN115766681A (en) | 2023-03-07 |
CN115766681B true CN115766681B (en) | 2024-08-23 |
Family
ID=85339670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211505782.5A Active CN115766681B (en) | 2022-11-28 | 2022-11-28 | Program downloading method, device, medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115766681B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809960A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | A kind of file uploads and method for down loading, device, equipment, system and storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8146128B2 (en) * | 2005-01-26 | 2012-03-27 | Panasonic Corporation | Download execution apparatus |
CN103034512B (en) * | 2012-11-28 | 2016-10-05 | 北京奇虎科技有限公司 | The method and apparatus of more new procedures |
EP3726868B1 (en) * | 2016-03-03 | 2021-09-22 | Huawei Technologies Co., Ltd. | Profile download method and system, and related device |
CN108108181B (en) * | 2017-12-14 | 2022-03-01 | 深圳市雷鸟网络传媒有限公司 | Function updating method and device of application program and computer readable storage medium |
CN108551487B (en) * | 2018-04-26 | 2021-02-09 | Oppo广东移动通信有限公司 | Application deployment method, device, server and storage medium of PaaS platform |
CN108874427B (en) * | 2018-06-28 | 2022-08-16 | 武汉斗鱼网络科技有限公司 | Updating progress obtaining method and device and readable storage medium |
CN109062601A (en) * | 2018-08-15 | 2018-12-21 | 张家港康得新光电材料有限公司 | MES system client-side program update method, device, equipment and medium |
CN109600740B (en) * | 2018-12-21 | 2023-01-10 | 西安良方企业信息咨询有限公司 | File downloading method and device and computer readable storage medium |
CN110275723A (en) * | 2019-06-25 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Obtain method, apparatus, electronic equipment and the readable medium of resource |
CN115344534A (en) * | 2021-05-14 | 2022-11-15 | 腾讯科技(深圳)有限公司 | File downloading method and device, computer equipment and storage medium |
CN114546436A (en) * | 2021-12-20 | 2022-05-27 | 北京达佳互联信息技术有限公司 | Micro front-end service updating method and device, electronic equipment and storage medium |
-
2022
- 2022-11-28 CN CN202211505782.5A patent/CN115766681B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809960A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | A kind of file uploads and method for down loading, device, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115766681A (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107682202B (en) | Network equipment management method and device | |
CN110493028A (en) | A kind of clustered deploy(ment) method, system, device and computer readable storage medium | |
CN110740188B (en) | Mirror image file uploading method, device, equipment and computer readable storage medium | |
US20150154211A1 (en) | File storage service system and method for the same | |
CN107870771A (en) | Application builds and upgrade method and system | |
EP3182281A1 (en) | Method for transferring a new version of a software program to at least one electric meter via a communication network | |
CN115766681B (en) | Program downloading method, device, medium and equipment | |
CN104699499A (en) | Heterogeneous terminal software upgrading method | |
CN111935267A (en) | Industrial 5G rapid networking method and system | |
CN109446825B (en) | Method and device for expanding access control authority | |
CN111064798B (en) | Node network access method, device, client node and storage medium | |
CN113923208A (en) | Processing method for downloading mass drive test data | |
CN113535202A (en) | Charging pile upgrading method and device and charging pile system | |
CN111625449A (en) | File filtering rule testing method, device, equipment and readable storage medium | |
CN112000425A (en) | Image management system based on IDV mode | |
CN112750181B (en) | Graphics processing method and device, storage medium and electronic equipment | |
EP3785464B1 (en) | Method for associating a new collection node in a distributed wireless network | |
CN112312420B (en) | Method and device for processing and configuring minimization of drive test, terminal and network side equipment | |
JP5469834B2 (en) | Terminal management system | |
CN113836234A (en) | Method, system, equipment and storage medium for synchronizing offline operation data | |
CN113010589B (en) | Data conversion method, system, storage medium and server | |
CN111654337A (en) | Information processing method, terminal and computer readable storage medium | |
CN110677474A (en) | Equipment adding method, device, equipment and storage medium | |
CN112748937A (en) | Method and device for updating eUICC operating system | |
CN116170345B (en) | Automatic flow testing method, equipment and medium |
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 |