CN116781690A - File transmission method, device, equipment and storage medium - Google Patents

File transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN116781690A
CN116781690A CN202310922574.3A CN202310922574A CN116781690A CN 116781690 A CN116781690 A CN 116781690A CN 202310922574 A CN202310922574 A CN 202310922574A CN 116781690 A CN116781690 A CN 116781690A
Authority
CN
China
Prior art keywords
file
terminal
upgraded
information
host
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.)
Pending
Application number
CN202310922574.3A
Other languages
Chinese (zh)
Inventor
邓刚
马聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Changfeng Imaging Equipment Co ltd
Original Assignee
Shenzhen Changfeng Imaging Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Changfeng Imaging Equipment Co ltd filed Critical Shenzhen Changfeng Imaging Equipment Co ltd
Priority to CN202310922574.3A priority Critical patent/CN116781690A/en
Publication of CN116781690A publication Critical patent/CN116781690A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file transmission method, a file transmission device, file transmission equipment and a storage medium. The method is applied to a host of an upgrade system and comprises the steps of determining a terminal to be upgraded from terminals pre-paired with a current host; establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded; according to file request information from a terminal to be upgraded, performing dicing processing on a target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded; and transmitting the at least one cut file to the terminal to be upgraded one by one according to the request information of the terminal to be upgraded for the at least one cut file one by one. The technical scheme of the invention improves the transmission efficiency and the transmission stability of the wireless equipment software upgrade file.

Description

File transmission method, device, equipment and storage medium
Technical Field
The present invention relates to the field of file transfer technologies, and in particular, to a file transfer method, apparatus, device, and storage medium.
Background
In audio devices, software upgrades of wireless devices are typically performed through upgrade files, i.e., the host transmits the upgrade files to the audio terminal, and the audio terminal receives the upgrade files to perform the software upgrades.
In the prior art, file transmission can only be carried out in a single-to-single mode, so that the file transmission efficiency is low, and the host directly sends the file, so that the transmission stability is low.
Disclosure of Invention
The invention provides a file transmission method, a file transmission device, file transmission equipment and a storage medium, which are used for improving the transmission efficiency and the transmission stability of a software upgrade file of wireless equipment.
According to an aspect of the present invention, there is provided a file transfer method applied to a host of an upgrade system, the method comprising:
determining a terminal to be upgraded from terminals pre-paired with a current host;
establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded;
according to the file request information from the terminal to be upgraded, performing dicing processing on the target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded;
and transmitting the at least one cut file to the terminal to be upgraded one by one according to the request information of the terminal to be upgraded for the at least one cut file one by one.
According to another aspect of the present invention, there is provided a file transfer apparatus configured to a host of an upgrade system, the apparatus comprising:
the terminal to be upgraded determining module is used for determining the terminal to be upgraded from all terminals pre-paired with the current host;
the file transmission mode establishing module is used for establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded;
the block cutting feedback information sending module is used for carrying out block cutting processing on the target upgrading file according to the file request information from the terminal to be upgraded to obtain at least one block cutting file, and sending the block cutting feedback information to the terminal to be upgraded;
and the dicing file transmission module is used for transmitting the at least one dicing file to the terminal to be upgraded one by one according to the information of the terminal to be upgraded on the at least one dicing file one by one.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the file transfer method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a file transfer method according to any embodiment of the present invention.
According to the technical scheme, the terminal to be upgraded is determined from the terminals pre-paired with the current host; establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded; according to file request information from a terminal to be upgraded, performing dicing processing on a target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded; according to the method, the device and the system, the problem that the file transmission efficiency is low and the transmission stability is low due to the fact that the software upgrading file transmission of the wireless device in the prior art can only be single-to-single transmission and the host directly transmits the whole upgrading file is solved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a flowchart of a method for transmitting files according to a first embodiment of the present invention;
fig. 1b is a schematic diagram of a specific application of a file transfer method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a file transfer device according to a third embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device implementing a file transfer method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1a is a flowchart of a file transfer method according to an embodiment of the present invention, where the method may be applied to a case of transferring an upgrade file between a terminal device and a host, and the method may be performed by a file transfer device, where the file transfer device may be implemented in hardware and/or software, and the file transfer device may be configured in the host or a server implementing a host function. As shown in fig. 1a, the method comprises:
s110, determining the terminal to be upgraded from the terminals pre-paired with the current host.
In an application scenario of this embodiment, a host may be pre-paired with a plurality of terminal devices, for example, one host is paired with a plurality of wireless devices such as headphones, microphones, and speakers. The terminal device with the software upgrading requirement, that is, the terminal device with the requirement of upgrading file transmission with the current host, can be used as the terminal to be upgraded in the embodiment, and the terminal to be upgraded and the host paired with the terminal to be upgraded can form an upgrading system.
When the terminal to be upgraded has software to be upgraded, the upgrade file of the software can be obtained from the matched host. The number of terminals and hosts to be upgraded may be one or more. The current host may refer to a host of the plurality of hosts that is needed for the current upgrade process.
In an alternative embodiment, determining the terminal to be upgraded from the terminals pre-paired with the current host may include: acquiring an upgrade trigger request; determining a target pre-pairing terminal for sending an upgrade trigger request as a terminal to be upgraded; or determining the appointed pre-paired terminal in the upgrade trigger request as the terminal to be upgraded.
The upgrade triggering request may be a request sent by a user to operate a terminal to be upgraded to the host, or an instruction sent by the user to operate the host to the host. The target pre-paired terminal may refer to a terminal having a software upgrade requirement among all terminals pre-paired with the current host. The designated pre-paired terminal may refer to, for example, a terminal having a software upgrade requirement selected by a user from among all pre-paired terminals on a host operation interface. For example, currently the host is pre-paired with three wireless devices, a headset, a microphone, and a speaker. If the user operates the microphone to send an upgrade trigger request to the current host, the microphone is the target pre-pairing terminal at the moment; if the user operates the current host, the user designates upgrading operation on the earphone, and the current host obtains an upgrading trigger request from the local at the moment, and the earphone is the designated pre-pairing terminal.
In this embodiment, if the upgrade trigger request comes from the terminal to be upgraded, the current host may receive and parse the upgrade trigger request, so that the pre-paired terminal that sends the upgrade trigger request may be determined as the terminal to be upgraded; if the upgrade trigger request is issued by the user operating host, the current host may determine the terminal to be upgraded according to the pre-paired terminal specified in the local instruction.
S120, establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded.
The mutual identification information may refer to information for allowing the current host and the terminal to be upgraded to mutually identify. The mutual acknowledgement information may include a first acknowledgement information sent by the current host to the terminal to be upgraded, and a second acknowledgement information fed back to the current host after the terminal to be upgraded receives the first acknowledgement information. Alternatively, the current host may send the first acknowledgement information to the terminal to be upgraded at a preset frequency, which may be, for example, once a second.
The mutual identification information may include a product identification code PID, a provider identification code VID, a host ID, and a terminal ID to be upgraded. The PID and the VID can be used for distinguishing the transmission of a single host to a multi-standby upgrade terminal and the transmission of a multi-host to a multi-standby upgrade terminal. In the same network, files can be mutually transmitted as long as the PID and the VID are different, so that the communication of many to many is realized. The conventional protocol has no concept of PID and VID, so that only single-to-single file transfer can be realized in the same network.
In this embodiment, the current host may establish a file transfer mode with the terminal to be upgraded according to mutual acknowledgement information with the terminal to be upgraded, that is, establish a file transfer mode between the host and the terminal.
In an alternative embodiment, establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual acknowledgement information between the current host and the terminal to be upgraded may include: the method comprises the steps of sending first confirmation information to a terminal to be upgraded so as to indicate that a current host agrees to transmit a file to the terminal to be upgraded; the first confirmation information comprises PID, VID, current host identity ID information and terminal identity ID information to be upgraded; receiving second confirmation information fed back by the terminal to be upgraded aiming at the first confirmation information so as to establish a file transmission mode between the host and the terminal to be upgraded; the second confirmation information comprises PID, VID, terminal ID to be upgraded and current host ID.
For example, when a single host transmits to multiple terminals to be upgraded, the first acknowledgement information sent by the host may include PID, VID, host ID, first terminal ID to be upgraded, second terminal ID to be upgraded, … …, and nth terminal ID to be upgraded; the second confirmation information fed back by the first terminal to be upgraded comprises PID, VID, host ID, the first terminal to be upgraded and the like, the second confirmation information of the second terminal to be upgraded comprises PID, VID, host ID, the second terminal to be upgraded and the like, and the second confirmation information fed back by the other terminals to be upgraded can be obtained in the same way.
When the multi-host transmits the multi-standby upgrading terminal, each host is sequentially used as the current host. The first confirmation information of the first host may include PID, VID, first host ID, corresponding terminal ID to be upgraded, etc.; the second host first acknowledgement information may include PID, VID, second host ID, corresponding terminal ID to be upgraded, etc. The first acknowledgement information of the remaining hosts is available as described above.
The second confirmation information of the first terminal to be upgraded can comprise PID, VID, corresponding host ID, the first terminal ID to be upgraded and the like; the second confirmation information of the second terminal to be upgraded may include PID, VID, corresponding host ID, second terminal to be upgraded ID, etc.; the second confirmation information of the rest of the terminals to be upgraded is obtained in the same way as the above.
S130, according to file request information from the terminal to be upgraded, performing dicing processing on the target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded.
In an optional embodiment, according to file request information from a terminal to be upgraded, performing a dicing process on a target upgrade file to obtain at least one diced file, and sending dicing feedback information to the terminal to be upgraded, which may include: receiving file request information from a terminal to be upgraded, and analyzing the file request information to obtain request file description information; cutting the target upgrading file according to the request file description information to obtain at least one cut file; and sending the dicing feedback information to the terminal to be upgraded to indicate that the current host prepares the dicing file.
The file request information may be information for requesting the target upgrade file, which is sent by the terminal to be upgraded to the current host after the current host and the terminal to be upgraded are both ready. The file request information may include request file description information such as name information, file size information, total cut size, and cut size information of the target upgrade file. The name information is used for determining the identity of the target upgrade file; the chunk size information may be configured by the user or default values (e.g., 500 bytes) may be set, and the file size information and chunk size information may be used to determine the total chunk size, e.g., file size/chunk size +1. The dicing file may refer to a file obtained after dicing the target upgrade file. The dicing feedback information may be used to inform the terminal to be upgraded that the target upgrade file is diced, i.e. the diced file is ready. Optionally, the dicing feedback information may further include verification information and a file transfer command.
In this embodiment, after a file transmission mode is established between a current host and a terminal to be upgraded, the terminal to be upgraded sends file request information to the current host, so that the current host knows the identity of a target upgrade file and the dicing processing mode of the target upgrade file, and the current host obtains at least one dicing file after processing the target upgrade file, and sends dicing feedback information to the terminal to be upgraded.
And S140, transmitting the at least one cut file to the terminal to be upgraded one by one according to the information of the terminal to be upgraded on the at least one cut file.
The request-by-request information may refer to that the terminal to be upgraded requests the diced file from the current host computer in a single request, i.e. one request after another. Specifically, the request manner of requesting information one by one may include sequential request, differential request, and the like, which is not limited in this embodiment.
In this embodiment, the terminal to be upgraded requests one of the dicing packages, and the host sends one until the complete partial dicing file is sent.
In an alternative embodiment, according to the information of the terminal to be upgraded requesting the at least one diced file one by one, the method for transmitting the at least one diced file to the terminal to be upgraded one by one may include: after the verification information is successfully verified, receiving current block cutting file request information sent by a terminal to be upgraded according to a file transmission command; transmitting the current dicing file to a terminal to be upgraded according to the current dicing file request information; and when the at least one diced file is not completely transmitted, returning to execute the operation of receiving the current diced file request information sent by the terminal to be upgraded according to the file transmission command until the at least one diced file is completely transmitted.
After the current host completes the dicing operation on the target upgrading file and makes the terminal to be upgraded know, the terminal to be upgraded can request a diced file from the current host according to a set request mode (such as sequence request and difference sequence request), and the current host transmits a diced file according to the request; further, the terminal to be upgraded requests the next cut file to the current host, and the current host transmits the next cut file according to the request; and the same is repeated until the cut file of the target upgrading file is completely transmitted.
This has the advantage that file transfer rate and stability can be improved.
The technical scheme of the embodiment of the invention is applied to a host of an upgrading system, and the terminal to be upgraded is determined from all terminals pre-paired with the current host; establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded; according to file request information from a terminal to be upgraded, performing dicing processing on a target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded; according to the method, the device and the system, the problem that the file transmission efficiency is low and the transmission stability is low due to the fact that the software upgrading file transmission of the wireless device in the prior art can only be single-to-single transmission and the host directly transmits the whole upgrading file is solved.
Optionally, on the basis of the above technical solution, the current host may further check whether the transmission of at least one dicing file is successful; if the transmission is successful, prompting that the transmission is successful; if the transmission fails, prompting the transmission failure and sending host verification information to the terminal to be upgraded.
In order to enable those skilled in the art to better understand the file transfer method of the present embodiment, fig. 1b provides a schematic diagram of a specific application of the file transfer method.
Registering actions of a user into a host and a terminal to be upgraded; the starting host and the terminal to be upgraded wait for a user to initiate an upgrade file downloading request (equivalent to an upgrade triggering request); a user initiates an upgrade file downloading request through a host or a terminal to be upgraded; after receiving the downloading request, the host sends first confirmation information to the terminal to be upgraded at a preset frequency; the terminal to be upgraded sends second confirmation information to the host to answer the host, and the host and the terminal to be upgraded enter a file transmission mode; the terminal to be upgraded sends request information (equivalent to file request information) comprising file name, file size, total cut block amount and cut block size to the host; after receiving the request information, the host machine performs dicing processing on the upgrade file and sends response information (equivalent to dicing feedback information) to the terminal to be upgraded; after receiving the dicing feedback information, the terminal to be upgraded requests a dicing file from the host; the host sends a dicing file, and the terminal to be upgraded continuously requests the next dicing file; after all the dicing files are sent, the host compares the size of the sent files with the total amount of the dicing, and judges whether the target upgrading file is successfully transmitted or not; if the transmission fails, prompting the failure and returning the host verification information to the terminal; if the transmission is successful, prompting that the transmission is successful; updating the transmission state of the target upgrade file.
Example two
Fig. 2 is a schematic structural diagram of a file transfer device according to a third embodiment of the present invention. As shown in fig. 2, the apparatus includes: the terminal to be upgraded comprises a terminal determining module 210, a file transmission mode establishing module 220, a dicing feedback information sending module 230 and a dicing file transmission module 240. Wherein:
a terminal to be upgraded determining module 210, configured to determine a terminal to be upgraded from terminals pre-paired with the current host;
a file transmission mode establishing module 220, configured to establish a file transmission mode between the current host and the terminal to be upgraded according to mutual acknowledgement information between the current host and the terminal to be upgraded;
the dicing feedback information sending module 230 is configured to perform dicing processing on a target upgrade file according to file request information from the terminal to be upgraded to obtain at least one dicing file, and send the dicing feedback information to the terminal to be upgraded;
and the dicing file transmitting module 240 is configured to transmit the at least one dicing file to the terminal to be upgraded one by one according to the request information of the terminal to be upgraded for the at least one dicing file one by one.
The technical scheme of the embodiment of the invention is applied to a host of an upgrading system, and the terminal to be upgraded is determined from all terminals pre-paired with the current host; establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded; according to file request information from a terminal to be upgraded, performing dicing processing on a target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded; according to the method, the device and the system, the problem that the file transmission efficiency is low and the transmission stability is low due to the fact that the software upgrading file transmission of the wireless device in the prior art can only be single-to-single transmission and the host directly transmits the whole upgrading file is solved.
Optionally, the terminal determining module 210 to be upgraded may specifically be configured to:
acquiring an upgrade trigger request;
determining a target pre-paired terminal sending the upgrading triggering request as the terminal to be upgraded; or alternatively
And determining the appointed pre-paired terminal in the upgrading triggering request as the terminal to be upgraded.
Optionally, the mutual confirmation information includes a product identification code PID and a provider identification code VID;
the file transfer mode creation module 220 may specifically be configured to:
sending first confirmation information to the terminal to be upgraded so as to indicate that the current host agrees to transmit a file to the terminal to be upgraded; the first confirmation information comprises PID, VID, the current host identity ID information and the terminal identity ID information to be upgraded;
receiving second confirmation information fed back by the terminal to be upgraded aiming at the first confirmation information so as to establish a file transmission mode between the host and the terminal to be upgraded; the second confirmation information comprises PID, VID, the terminal ID to be upgraded and the current host ID.
Optionally, the dicing feedback information sending module 230 may specifically be configured to:
receiving file request information from the terminal to be upgraded, and analyzing the file request information to obtain request file description information; the request file description information comprises name information, file size information, total cutting amount and cutting size information of a target upgrading file;
cutting the target upgrading file according to the request file description information to obtain at least one cut file;
and sending the dicing feedback information to the terminal to be upgraded to indicate that the current host prepares the dicing file.
Optionally, the dicing feedback information includes verification information and a file transfer command;
the dicing file transmitting module 240 may specifically be configured to:
after the verification information is successfully verified, receiving current dicing file request information sent by the terminal to be upgraded according to the file transmission command;
transmitting the current dicing file to the terminal to be upgraded according to the current dicing file request information;
and when the at least one diced file is not completely transmitted, returning to execute the operation of receiving the current diced file request information sent by the terminal to be upgraded according to the file transmission command until the at least one diced file is completely transmitted.
Optionally, the file transmission device may further include a transmission result prompting module, configured to:
checking whether all the at least one diced file is successfully transmitted;
if the transmission is successful, prompting that the transmission is successful;
if the transmission fails, prompting the transmission failure and sending host verification information to the terminal to be upgraded.
Optionally, the number of the current hosts is one or more; the number of the terminals to be upgraded is one or more;
the request mode of requesting information one by one comprises a sequential request and a differential sequential request.
The file transmission device provided by the embodiment of the invention can execute the file transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 shows a schematic diagram of an electronic device 300 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers and various forms of mobile devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 300 includes at least one processor 301, and a memory communicatively connected to the at least one processor 301, such as a Read Only Memory (ROM) 302, a Random Access Memory (RAM) 303, etc., in which the memory stores computer programs executable by the at least one processor, and the processor 301 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 302 or the computer programs loaded from the storage unit 308 into the Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 may also be stored. The processor 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Various components in the electronic device 300 are connected to the I/O interface 305, including: an input unit 306 such as a keyboard, a mouse, etc.; an output unit 307 such as various types of displays, speakers, and the like; a storage unit 308 such as a magnetic disk, an optical disk, or the like; and a communication unit 309 such as a network card, modem, wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Processor 301 can be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 301 performs the various methods and processes described above, such as a file transfer method.
In some embodiments, the file transfer method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 300 via the ROM 302 and/or the communication unit 309. When the computer program is loaded into RAM 303 and executed by processor 301, one or more steps of the file transfer method described above may be performed. Alternatively, in other embodiments, the processor 301 may be configured to perform the file transfer method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A file transfer method applied to a host of an upgrade system, comprising:
determining a terminal to be upgraded from terminals pre-paired with a current host;
establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded;
according to the file request information from the terminal to be upgraded, performing dicing processing on the target upgrading file to obtain at least one dicing file, and sending dicing feedback information to the terminal to be upgraded;
and transmitting the at least one cut file to the terminal to be upgraded one by one according to the request information of the terminal to be upgraded for the at least one cut file one by one.
2. The method of claim 1, wherein determining the terminal to be upgraded from among terminals pre-paired with the current host comprises:
acquiring an upgrade trigger request;
determining a target pre-paired terminal sending the upgrading triggering request as the terminal to be upgraded; or alternatively
And determining the appointed pre-paired terminal in the upgrading triggering request as the terminal to be upgraded.
3. The method of claim 1, wherein the mutual identification information includes a product identification PID and a vendor identification VID;
according to the mutual confirmation information between the current host and the terminal to be upgraded, establishing a file transmission mode between the current host and the terminal to be upgraded, comprising:
sending first confirmation information to the terminal to be upgraded so as to indicate that the current host agrees to transmit a file to the terminal to be upgraded; the first confirmation information comprises PID, VID, the current host identity ID information and the terminal identity ID information to be upgraded;
receiving second confirmation information fed back by the terminal to be upgraded aiming at the first confirmation information so as to establish a file transmission mode between the host and the terminal to be upgraded; the second confirmation information comprises PID, VID, the terminal ID to be upgraded and the current host ID.
4. The method of claim 1, wherein the step of performing a dicing process on the target upgrade file according to the file request information from the terminal to be upgraded to obtain at least one diced file, and transmitting dicing feedback information to the terminal to be upgraded comprises:
receiving file request information from the terminal to be upgraded, and analyzing the file request information to obtain request file description information; the request file description information comprises name information, file size information, total cutting amount and cutting size information of a target upgrading file;
cutting the target upgrading file according to the request file description information to obtain at least one cut file;
and sending the dicing feedback information to the terminal to be upgraded to indicate that the current host prepares the dicing file.
5. The method of claim 4, wherein the chunk feedback information comprises verification information and file transfer commands;
according to the request information of the terminal to be upgraded for the at least one cut file, the at least one cut file is transmitted to the terminal to be upgraded one by one, and the method comprises the following steps:
after the verification information is successfully verified, receiving current dicing file request information sent by the terminal to be upgraded according to the file transmission command;
transmitting the current dicing file to the terminal to be upgraded according to the current dicing file request information;
and when the at least one diced file is not completely transmitted, returning to execute the operation of receiving the current diced file request information sent by the terminal to be upgraded according to the file transmission command until the at least one diced file is completely transmitted.
6. The method as recited in claim 5, further comprising:
checking whether all the at least one diced file is successfully transmitted;
if the transmission is successful, prompting that the transmission is successful;
if the transmission fails, prompting the transmission failure and sending host verification information to the terminal to be upgraded.
7. The method of claim 1, wherein the current number of hosts is one or more; the number of the terminals to be upgraded is one or more;
the request mode of requesting information one by one comprises a sequential request and a differential sequential request.
8. A file transfer device configured in a host of an upgrade system, comprising:
the terminal to be upgraded determining module is used for determining the terminal to be upgraded from all terminals pre-paired with the current host;
the file transmission mode establishing module is used for establishing a file transmission mode between the current host and the terminal to be upgraded according to mutual confirmation information between the current host and the terminal to be upgraded; the block cutting feedback information sending module is used for carrying out block cutting processing on the target upgrading file according to the file request information from the terminal to be upgraded to obtain at least one block cutting file, and sending the block cutting feedback information to the terminal to be upgraded;
and the dicing file transmission module is used for transmitting the at least one dicing file to the terminal to be upgraded one by one according to the information of the terminal to be upgraded on the at least one dicing file one by one.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a file transfer method according to any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform a file transfer method according to any one of claims 1-7.
CN202310922574.3A 2023-07-25 2023-07-25 File transmission method, device, equipment and storage medium Pending CN116781690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922574.3A CN116781690A (en) 2023-07-25 2023-07-25 File transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922574.3A CN116781690A (en) 2023-07-25 2023-07-25 File transmission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116781690A true CN116781690A (en) 2023-09-19

Family

ID=88011626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922574.3A Pending CN116781690A (en) 2023-07-25 2023-07-25 File transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116781690A (en)

Similar Documents

Publication Publication Date Title
CN112654020B (en) Method, device, equipment and storage medium for establishing wireless connection
CN113568884B (en) File management method and device, electronic equipment and storage medium
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
US20170163479A1 (en) Method, Device and System of Renewing Terminal Configuration In a Memcached System
US8732694B2 (en) Method and system for performing services in server and client of client/server architecture
CN113438355A (en) Communication method, device, equipment and storage medium based on cloud mobile phone
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN107277163B (en) Equipment remote mapping method and device
CN113791792A (en) Application calling information acquisition method and device and storage medium
EP4080915B1 (en) Connection method and apparatus, electronic device, storage medium and program product
CN114338477B (en) Communication link monitoring method, device, equipment and storage medium
CN113420275B (en) Data connection processing method, related device and computer program product
CN116781690A (en) File transmission method, device, equipment and storage medium
CN114172998B (en) File transmission method and device, electronic equipment and storage medium
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN113763646A (en) Device control method, device, electronic device and computer readable medium
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
CN113014656B (en) Private cloud information synchronization method and device
CN111092916A (en) File uploading method and device, electronic equipment and medium
US8601106B2 (en) Remote command execution over a network
CN113315833B (en) File transfer mode processing method and device

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