[go: up one dir, main page]

CN103593314A - External storage device breakpoint resuming method and device - Google Patents

External storage device breakpoint resuming method and device Download PDF

Info

Publication number
CN103593314A
CN103593314A CN201310583444.8A CN201310583444A CN103593314A CN 103593314 A CN103593314 A CN 103593314A CN 201310583444 A CN201310583444 A CN 201310583444A CN 103593314 A CN103593314 A CN 103593314A
Authority
CN
China
Prior art keywords
external storage
identify label
file
storage device
storage equipment
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
CN201310583444.8A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310583444.8A priority Critical patent/CN103593314A/en
Publication of CN103593314A publication Critical patent/CN103593314A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

本发明公开了一种外接存储设备断点续传的方法及装置,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,判断是否存储有与所述身份标识相对应的未传输完的文件,当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。通过上述方法及装置,能够实现外接存储设备的断点续传。

Figure 201310583444

The present invention discloses a method and device for continuous transmission of an external storage device, which is applied to a smart TV. After determining the external storage device currently inserted into the smart TV, the identity of the external storage device is read to determine whether to store There is an untransmitted file corresponding to the identity, and when the untransmitted file corresponding to the identity is stored, start from the part of the untransmitted file that has been transmitted, and continue to transmit the untransmitted file. part of the transmission. Through the above method and device, it is possible to realize the resumed transmission of the external storage device.

Figure 201310583444

Description

外接存储设备断点续传的方法及装置Method and device for resuming data transfer from external storage device

技术领域technical field

本发明涉及数据传输技术领域,更具体的说,是涉及一种外接存储设备断点续传的方法及装置。The present invention relates to the technical field of data transmission, and more specifically, relates to a method and device for resuming transmission from an external storage device.

背景技术Background technique

断点续传,指的是在数据传输时,可以从已经传输的部分开始继续传输未传输的部分,而没有必要从头开始传输,该功能可以节省数据传输的时间,提高数据传输的速度。Resumable transmission means that during data transmission, you can continue to transmit the untransmitted part from the part that has already been transmitted, and there is no need to start the transmission from the beginning. This function can save the time of data transmission and increase the speed of data transmission.

随着技术的发展,大部分的外接存储设备,如手机、SD卡、U盘及移动硬盘等,因其体积小巧,携带方便等特点越来越得到广泛的应用。With the development of technology, most external storage devices, such as mobile phones, SD cards, U disks and mobile hard disks, are more and more widely used because of their small size and easy portability.

然而,在使用该类外接存储设备进行数据传输的过程中,若由于断电或是数据连接线与智能电视断开等因素致使传输数据的过程中突然断掉,使得数据传输中断。而将外接存储设备重新连接至智能电视后,数据传输要重新开始。However, in the process of using this type of external storage device for data transmission, if the data transmission process is suddenly cut off due to factors such as power failure or disconnection of the data connection line from the smart TV, the data transmission will be interrupted. After reconnecting the external storage device to the smart TV, the data transfer will start again.

综上所述,现有技术中,不存在使外接存储设备断点续传的方法。To sum up, in the prior art, there is no method for resuming transmission from an external storage device.

发明内容Contents of the invention

有鉴于此,本发明提供了一种外接存储设备断点续传的方法及装置,以克服现有技术中不存在使外接存储设备断点续传的方法的问题。In view of this, the present invention provides a method and device for resuming transmission from an external storage device, so as to overcome the problem that there is no method for resuming transmission from an external storage device in the prior art.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种外接存储设备断点续传的方法,应用于智能电视,包括:A method for resuming transmission from an external storage device, applied to a smart TV, comprising:

确定当前插入所述智能电视的外接存储设备;Determine the external storage device currently inserted into the smart TV;

读取所述外接存储设备的身份标识;Read the identity of the external storage device;

判断是否存储有与所述身份标识相对应的未传输完的文件;Judging whether there are untransmitted files corresponding to the identity identifier stored;

当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。When the untransmitted file corresponding to the ID is stored, the untransmitted part continues to be transmitted starting from the part of the untransmitted file that has already been transmitted.

优选的,所述读取所述外接存储设备的身份标识包括:Preferably, reading the identity of the external storage device includes:

调取预先创建的哈希表;Call the pre-created hash table;

当预先创建的哈希表中存储有所述外接存储设备的身份标识时,从所述哈希表中读取所述外接存储设备的身份标识。When the ID of the external storage device is stored in the pre-created hash table, the ID of the external storage device is read from the hash table.

优选的,当预先创建的哈希表中未存储有所述外接存储设备的身份标识时,还包括:Preferably, when the identity of the external storage device is not stored in the pre-created hash table, it also includes:

分配与所述外接存储设备相对应的身份标识;Allocating an identity corresponding to the external storage device;

将所述身份标识存储至所述预先创建的哈希表中。The identity is stored in the pre-created hash table.

优选的,当未存储有与所述身份标识相对应的未传输完的文件时,还包括:Preferably, when there is no untransferred file corresponding to the identity identifier stored, it also includes:

当所述外接存储设备与所述智能电视传输文件时,存储所述文件与所述身份标识的对应关系。When the external storage device transmits a file with the smart TV, the correspondence between the file and the identity is stored.

优选的,当存储有与所述身份标识相对应的未传输完的文件时,还包括:Preferably, when the untransmitted file corresponding to the identity is stored, it also includes:

当所述外接存储设备与所述智能电视完成所述文件的传输时,清空已存储的所述文件与所述身份标识的对应关系。When the transfer of the file between the external storage device and the smart TV is completed, the stored correspondence between the file and the ID is cleared.

一种外接存储设备断点续传的装置,应用于智能电视,包括:A device for resuming transmission from an external storage device, which is applied to a smart TV, including:

外接存储设备确定单元,用于确定当前插入所述智能电视的外接存储设备;An external storage device determination unit, configured to determine the external storage device currently inserted into the smart TV;

身份标识读取单元,用于读取所述外接存储设备的身份标识;an identification reading unit, configured to read the identification of the external storage device;

判断单元,用于判断是否存储有与所述身份标识相对应的未传输完的文件;a judging unit, configured to judge whether there is an untransmitted file corresponding to the identity;

断点续传单元,用于当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。The resuming transmission unit is configured to, when the untransmitted file corresponding to the ID is stored, start from the already transmitted part of the untransmitted file and continue to transmit the untransmitted part.

优选的,所述身份标识读取单元包括:Preferably, the identity reading unit includes:

调取子单元,用于调取预先创建的哈希表;Call the subunit, used to call the pre-created hash table;

身份标识读取子单元,用于当预先创建的哈希表中存储有所述外接存储设备的身份标识时,从所述哈希表中读取所述外接存储设备的身份标识。The identity reading subunit is configured to read the identity of the external storage device from the hash table when the identity of the external storage device is stored in the hash table created in advance.

优选的,所述身份标识读取单元包括:Preferably, the identity reading unit includes:

分配子单元,用于分配与所述外接存储设备相对应的身份标识;An allocation subunit, configured to allocate an identity corresponding to the external storage device;

存储子单元,用于将所述身份标识存储至所述预先创建的哈希表中。A storage subunit, configured to store the identity in the pre-created hash table.

优选的,还包括:Preferably, it also includes:

对应关系存储单元,用于当未存储有与所述身份标识相对应的未传输完的文件且当所述外接存储设备与所述智能电视传输文件时,存储所述文件与所述身份标识的对应关系。A correspondence relationship storage unit, configured to store the relationship between the file and the identity when there is no untransmitted file corresponding to the identity and when the external storage device and the smart TV transmit files Correspondence.

优选的,还包括:Preferably, it also includes:

对应关系清空单元,用于当存储有与所述身份标识相对应的未传输完的文件且当所述外接存储设备与所述智能电视完成所述文件的传输时,清空已存储的所述文件与所述身份标识的对应关系。A corresponding relationship clearing unit, configured to clear the stored file when the untransmitted file corresponding to the identity is stored and when the file transfer between the external storage device and the smart TV is completed The corresponding relationship with the identity identifier.

经由上述的技术方案可知,与现有技术相比,本发明公开了一种外接存储设备断点续传的方法及装置,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。通过上述方法及装置,利用传输文件与外接存储设备的身份标识间的对应关系,能够实现外接存储设备的断点续传。It can be seen from the above-mentioned technical solutions that, compared with the prior art, the present invention discloses a method and device for resuming transmission of an external storage device, which is applied to a smart TV. After determining the external storage device currently inserted into the smart TV, Read the ID of the external storage device, and when the untransmitted file corresponding to the ID is stored, start from the part of the untransferred file that has already been transferred, and continue to transfer the untransferred part. Through the above method and device, using the corresponding relationship between the transfer file and the identity mark of the external storage device, it is possible to realize the resumed transmission of the external storage device.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明实施例一公开的一种外接存储设备断点续传的方法具体流程示意图;FIG. 1 is a schematic flowchart of a method for resuming transmission from an external storage device disclosed in Embodiment 1 of the present invention;

图2为本发明实施例二公开的另一种外接存储设备断点续传的方法具体流程示意图;FIG. 2 is a schematic flowchart of another method for resuming transmission from an external storage device disclosed in Embodiment 2 of the present invention;

图3为本发明实施例三公开的另一种外接存储设备断点续传的方法具体流程示意图;FIG. 3 is a schematic flowchart of another method for resuming transmission from an external storage device disclosed in Embodiment 3 of the present invention;

图4为本发明实施例四公开的一种外接存储设备断点续传的装置具体结构示意图;FIG. 4 is a schematic structural diagram of a device for resuming transmission from an external storage device disclosed in Embodiment 4 of the present invention;

图5为本发明实施例五公开的另一种外接存储设备断点续传的装置具体结构示意图。FIG. 5 is a schematic structural diagram of another device for resuming transmission from an external storage device disclosed in Embodiment 5 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

由背景技术可知,现有技术中不存在使外接存储设备断点续传的方法。It can be seen from the background art that there is no method for resuming the transmission from the external storage device in the prior art.

为此,本发明公开了一种外接存储设备断点续传的方法及装置,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,判断是否存储有与所述身份标识相对应的未传输完的文件,当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。通过上述方法及装置,能够实现外接存储设备的断点续传。To this end, the present invention discloses a method and device for continuous transmission of an external storage device, which is applied to a smart TV, and after determining the external storage device currently inserted into the smart TV, reads the identity of the external storage device, judging whether an untransmitted file corresponding to the identity is stored, and when an untransmitted file corresponding to the identity is stored, starting from the part of the untransmitted file that has been transmitted, Continue to transfer the untransferred portion. Through the above method and device, it is possible to realize the resumed transmission of the external storage device.

有关于上述外接存储设备断点续传的方法的具体流程以及上述外接存储设备断点续传的装置的具体结构将通过以下实施例进行详细描述。The specific flow of the method for resumed uploading from an external storage device and the specific structure of the apparatus for resumed uploading from an external storage device will be described in detail through the following embodiments.

实施例一Embodiment one

请参阅附图1,为本发明实施例一公开的一种外接存储设备断点续传的方法,该方法应用于智能电视,这里所说的智能电视包括电脑、电视或笔记本电脑,但不限于上述几种,该外接存储设备断点续传的方法包含以下步骤:Please refer to accompanying drawing 1, it is a method for resuming transmission of an external storage device disclosed in Embodiment 1 of the present invention. This method is applied to smart TVs. The smart TVs mentioned here include computers, TVs or notebook computers, but are not limited to For the above mentioned methods, the method for resuming uploading from the external storage device includes the following steps:

S101:确定当前插入所述智能电视的外接存储设备。S101: Determine an external storage device currently inserted into the smart TV.

这里所说的外接存储设备可以是U盘、手机、移动硬盘或存储卡等,但是不限于上述几种。The external storage device mentioned here may be a USB flash drive, a mobile phone, a mobile hard disk or a memory card, etc., but is not limited to the above-mentioned types.

S102:读取所述外接存储设备的身份标识。S102: Read the identity of the external storage device.

所述当前待标识的外接存储设备的身份标识可以为外接存储设备出厂时为其分配的编码,也可以按照预设规则为其设定一个唯一码作为其身份标识,比如:设备类型+存储空间大小+随机数。该身份标识一旦确定,不会更改。The identity of the external storage device to be identified can be the code assigned to the external storage device when it leaves the factory, or a unique code can be set for it according to preset rules as its identity, such as: device type + storage space size + random number. Once the identity is determined, it will not change.

S103:判断是否存储有与所述身份标识相对应的未传输完的文件。S103: Determine whether there is an untransferred file corresponding to the identity identifier stored.

需要说明的是,从外接存储设备与智能电视传输文件开始,到传输结束,智能电视都会存储该文件与外接存储设备的身份标识的对应关系。这里所说的传输文件开始,可以是刚开始文件传输,也可以是在外接存储设备与智能电视重新连接之后继续文件传输,相应的,这里所说的是传输结束,可以是文件传输完成,也可以是由于外接存储设备与智能电视断开连接而导致文件传输中断。It should be noted that, from the beginning of file transmission between the external storage device and the smart TV, the smart TV will store the corresponding relationship between the file and the ID of the external storage device until the end of the transmission. The start of file transfer mentioned here can be the beginning of file transfer, or the continuation of file transfer after the external storage device is reconnected to the smart TV. It could be that the file transfer was interrupted due to the disconnection of the external storage device from the Smart TV.

S104:当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。S104: When the untransmitted file corresponding to the ID is stored, continue to transmit the untransmitted part starting from the already transmitted part of the untransmitted file.

综上所述,本实施例公开了一种外接存储设备断点续传的方法,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,判断是否存储有与所述身份标识相对应的未传输完的文件,当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。通过上述方法,能够实现外接存储设备的断点续传。To sum up, this embodiment discloses a method for resuming transmission from an external storage device, which is applied to a smart TV. After determining the external storage device currently inserted into the smart TV, read the identity of the external storage device , judging whether there is an untransmitted file corresponding to the ID is stored, and when an untransmitted file corresponding to the ID is stored, start from the part of the untransmitted file that has been transferred , continue to transfer the untransferred part. Through the above method, the resumed transmission of the external storage device can be realized.

在上述本发明公开的实施例的基础上,本发明还公开了其他外接存储设备断点续传的方法,下面将通过以下实施例进行详细说明。On the basis of the above disclosed embodiments of the present invention, the present invention also discloses other methods for resumed transmission of external storage devices, which will be described in detail through the following embodiments.

实施例二Embodiment two

请参阅附图2,为本发明实施例二公开的另一种外接存储设备断点续传的方法,该方法应用于智能电视,这里所说的智能电视包括电脑、电视或笔记本电脑,但不限于上述几种,该外接存储设备断点续传的方法包含以下步骤:Please refer to accompanying drawing 2, which is another method for resuming transmission from an external storage device disclosed in Embodiment 2 of the present invention. This method is applied to a smart TV. Limited to the above-mentioned types, the method for resuming uploading from an external storage device includes the following steps:

S201:确定当前插入所述智能电视的外接存储设备。S201: Determine an external storage device currently inserted into the smart TV.

S202:读取所述外接存储设备的身份标识。S202: Read the identity of the external storage device.

需要说明的是,读取所述外接存储设备的身份标识包括:调取预先创建的哈希表;当预先创建的哈希表中存储有所述外接存储设备的身份标识时,从所述哈希表中读取所述外接存储设备的身份标识。当预先创建的哈希表中未存储有所述外接存储设备的身份标识时,还包括:分配与所述外接存储设备相对应的身份标识;将所述身份标识存储至所述预先创建的哈希表中。It should be noted that reading the identity of the external storage device includes: calling a pre-created hash table; when the identity of the external storage device is stored in the pre-created hash table, Read the identity of the external storage device from the table. When the identity of the external storage device is not stored in the pre-created hash table, it also includes: assigning an identity corresponding to the external storage device; storing the identity in the pre-created hash Greek table.

S203:判断是否存储有与所述身份标识相对应的未下载完的文件,当存储有与所述身份标识相对应的未下载完的文件时,执行步骤S204,当未存储有与所述身份标识相对应的未下载完的文件时,执行步骤S205。S203: Judging whether there is an undownloaded file corresponding to the identity, if there is an undownloaded file corresponding to the identity, execute step S204, and if there is no undownloaded file corresponding to the identity When the corresponding undownloaded file is identified, step S205 is performed.

S204:从所述未下载完的文件已经下载的部分开始,继续下载未下载的部分。S204: Starting from the downloaded part of the undownloaded file, continue to download the undownloaded part.

需要说明的是,这里所述的未下载完的文件指的是外接存储设备从智能电视下载的文件。It should be noted that the undownloaded files mentioned here refer to the files downloaded from the smart TV by the external storage device.

S205:当所述外接存储设备从所述智能电视下载文件时,存储所述文件与所述身份标识的对应关系。S205: When the external storage device downloads a file from the smart TV, store the correspondence between the file and the identity.

综上所述,本实施例公开了一种外接存储设备断点续传的方法,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,当存储有与所述身份标识相对应的未下载完的文件时,从所述未下载完的文件已经下载的部分开始,继续下载未下载的部分。通过上述方法,能够实现外接存储设备的下载断点续传。To sum up, this embodiment discloses a method for resuming transmission from an external storage device, which is applied to a smart TV. After determining the external storage device currently inserted into the smart TV, read the identity of the external storage device , when the undownloaded file corresponding to the ID is stored, continue to download the undownloaded part starting from the downloaded part of the undownloaded file. By means of the above method, it is possible to realize the resumed downloading of the external storage device.

实施例三Embodiment Three

请参阅附图3,为本发明实施例三公开的另一种外接存储设备断点续传的方法,该方法应用于智能电视,这里所说的智能电视包括电脑、电视或笔记本电脑,但不限于上述几种,该外接存储设备断点续传的方法包含以下步骤:Please refer to accompanying drawing 3, which is another method for resuming transmission of an external storage device disclosed in Embodiment 3 of the present invention. This method is applied to a smart TV. Limited to the above-mentioned types, the method for resuming uploading from an external storage device includes the following steps:

S301:确定当前插入所述智能电视的外接存储设备。S301: Determine an external storage device currently inserted into the smart TV.

S302:读取所述外接存储设备的身份标识。S302: Read the identity of the external storage device.

需要说明的是,读取所述外接存储设备的身份标识包括:调取预先创建的哈希表;当预先创建的哈希表中存储有所述外接存储设备的身份标识时,从所述哈希表中读取所述外接存储设备的身份标识。当预先创建的哈希表中未存储有所述外接存储设备的身份标识时,还包括:分配与所述外接存储设备相对应的身份标识;将所述身份标识存储至所述预先创建的哈希表中。It should be noted that reading the identity of the external storage device includes: calling a pre-created hash table; when the identity of the external storage device is stored in the pre-created hash table, Read the identity of the external storage device from the table. When the identity of the external storage device is not stored in the pre-created hash table, it also includes: assigning an identity corresponding to the external storage device; storing the identity in the pre-created hash Greek table.

S303:判断是否存储有与所述身份标识相对应的未上传完的文件,当存储有与所述身份标识相对应的未上传完的文件时,执行步骤S304,当未存储有与所述身份标识相对应的未上传完的文件时,执行步骤S305。S303: Judging whether there is an unuploaded file corresponding to the identity identifier stored, and when an unuploaded file corresponding to the identity identifier is stored, perform step S304, and when there is no unuploaded file corresponding to the identity identifier stored When the corresponding unuploaded file is identified, step S305 is performed.

S304:从所述未上传完的文件已经上传的部分开始,继续上传未上传的部分。S304: Starting from the uploaded part of the unuploaded file, continue to upload the unuploaded part.

需要说明的是,这里所述的未上传完的文件指的是从外接存储设备向智能电视上传的文件。It should be noted that the unuploaded files mentioned here refer to the files uploaded from the external storage device to the smart TV.

S305:当外接存储设备向智能电视上传文件时,存储所述文件与所述身份标识的对应关系。S305: When the external storage device uploads a file to the smart TV, store the correspondence between the file and the identity.

综上所述,本实施例公开了一种外接存储设备断点续传的方法,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,当存储有与所述身份标识相对应的未上传完的文件时,从所述未上传完的文件已经上传的部分开始,继续上传未上传的部分。通过上述方法,能够实现外接存储设备的上传断点续传。To sum up, this embodiment discloses a method for resuming transmission from an external storage device, which is applied to a smart TV. After determining the external storage device currently inserted into the smart TV, read the identity of the external storage device , when the unuploaded file corresponding to the identity identifier is stored, continue to upload the unuploaded part starting from the part of the unuploaded file that has already been uploaded. Through the above method, it is possible to realize the resumed uploading of the external storage device.

需要说明的是,当未存储有与所述身份标识相对应的未传输完的文件时,还包括:当所述外接存储设备与所述智能电视传输文件时,存储所述文件与所述身份标识的对应关系。这里的传输包括下载和上传。当存储有与所述身份标识相对应的未传输完的文件时,还包括:当所述外接存储设备与所述智能电视完成所述文件的传输时,清空已存储的所述文件与所述身份标识的对应关系。It should be noted that when there is no untransferred file corresponding to the identity identifier stored, it also includes: when the external storage device and the smart TV transmit files, storing the file and the identity ID correspondence. The transmission here includes downloading and uploading. When there is an untransmitted file corresponding to the identity mark stored, it also includes: when the external storage device and the smart TV complete the transfer of the file, clearing the stored file and the Correspondence between identities.

上述本发明公开的实施例中详细描述了方法,对于本发明的方法可采用多种形式的装置实现,因此本发明还公开了一种装置,下面给出具体的实施例进行详细说明。The method is described in detail in the above disclosed embodiments of the present invention. The method of the present invention can be realized by using various forms of devices. Therefore, the present invention also discloses a device, which will be described in detail in the following specific embodiments.

实施例四Embodiment Four

请参阅附图4,为本发明实施例四公开的一种外接存储设备断点续传的装置,该装置应用于智能电视,这里所说的智能电视包括电脑、电视或笔记本电脑,但不限于上述几种,该外接存储设备断点续传的装置包含以下单元:Please refer to accompanying drawing 4, which is a device for resuming transmission of an external storage device disclosed in Embodiment 4 of the present invention. The device is applied to a smart TV. For the above-mentioned types, the device for resuming transmission from an external storage device includes the following units:

外接存储设备确定单元10,用于确定当前插入所述智能电视的外接存储设备。The external storage device determination unit 10 is configured to determine the external storage device currently inserted into the smart TV.

身份标识读取单元11,用于读取所述外接存储设备的身份标识。The identification reading unit 11 is configured to read the identification of the external storage device.

判断单元12,用于判断是否存储有与所述身份标识相对应的未传输完的文件。The judging unit 12 is configured to judge whether there is an untransmitted file corresponding to the identity identifier stored.

断点续传单元13,用于当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。The resuming transmission unit 13 is configured to, when the untransmitted file corresponding to the ID is stored, start from the already transmitted part of the untransmitted file and continue to transmit the untransmitted part.

需要说明的是,有关于上述各个单元的功能实现请参见方法实施例中的相关描述,本实施例不再赘述。It should be noted that, for the implementation of the functions of each of the above units, please refer to the relevant description in the method embodiment, which will not be repeated in this embodiment.

实施例五Embodiment five

请参阅附图5,为本发明实施例五公开的另一种外接存储设备断点续传的装置,该装置应用于智能电视,这里所说的智能电视包括电脑、电视或笔记本电脑,但不限于上述几种,该外接存储设备断点续传的装置包含以下单元:Please refer to accompanying drawing 5, which is another device for resuming transmission from an external storage device disclosed in Embodiment 5 of the present invention. This device is applied to a smart TV. Limited to the above-mentioned types, the device for resuming uploading from an external storage device includes the following units:

外接存储设备确定单元20,用于确定当前插入所述智能电视的外接存储设备。The external storage device determining unit 20 is configured to determine the external storage device currently inserted into the smart TV.

身份标识读取单元21,用于读取所述外接存储设备的身份标识。The identification reading unit 21 is configured to read the identification of the external storage device.

需要说明的是,所述身份标识读取单元包括:调取子单元,用于调取预先创建的哈希表;身份标识读取子单元,用于当预先创建的哈希表中存储有所述外接存储设备的身份标识时,从所述哈希表中读取所述外接存储设备的身份标识。分配子单元,用于分配与所述外接存储设备相对应的身份标识;存储子单元,用于将所述身份标识存储至所述预先创建的哈希表中。It should be noted that the identity reading unit includes: a calling subunit, used to call a pre-created hash table; an identity reading subunit, used when the pre-created hash table stores When the identity of the external storage device is mentioned, the identity of the external storage device is read from the hash table. An allocating subunit, configured to allocate an identity corresponding to the external storage device; a storage subunit, configured to store the identity in the pre-created hash table.

判断单元22,用于判断是否存储有与所述身份标识相对应的未传输完的文件。The judging unit 22 is configured to judge whether there is an untransmitted file corresponding to the identity identifier stored.

继续下载子单元23,用于当存储有与所述身份标识相对应的未下载完的文件时,从所述未下载完的文件已下载的部分开始,继续下载未下载的部分。The download continuation subunit 23 is configured to continue downloading the undownloaded part starting from the downloaded part of the undownloaded file when the undownloaded file corresponding to the ID is stored.

继续上传子单元24,用于当存储有与所述身份标识相对应的未上传完的文件时,从所述未上传完的文件已上传的部分开始,继续上传未上传的部分。The continuing uploading subunit 24 is configured to continue uploading the unuploaded part starting from the uploaded part of the unuploaded file when the unuploaded file corresponding to the ID is stored.

对应关系存储单元25,用于当未存储有与所述身份标识相对应的未传输完的文件且当所述外接存储设备与所述智能电视传输文件时,存储所述文件与所述身份标识的对应关系。The correspondence storage unit 25 is used to store the file and the identity when there is no untransmitted file corresponding to the identity and when the external storage device and the smart TV transmit files corresponding relationship.

对应关系清空单元26,用于当存储有与所述身份标识相对应的未传输完的文件且当所述外接存储设备与所述智能电视完成所述文件的传输时,清空已存储的所述文件与所述身份标识的对应关系。The corresponding relationship clearing unit 26 is used to clear the stored files when the untransmitted file corresponding to the identity is stored and when the external storage device and the smart TV complete the file transfer. The corresponding relationship between the file and the identity identifier.

需要说明的是,有关于上述各个单元的功能实现请参见方法实施例中的相关描述,本实施例不再赘述。It should be noted that, for the implementation of the functions of each of the above units, please refer to the relevant description in the method embodiment, which will not be repeated in this embodiment.

综上所述:本发明公开了一种外接存储设备断点续传的方法及装置,应用于智能电视,在确定当前插入上述智能电视的外接存储设备之后,读取所述外接存储设备的身份标识,判断是否存储有与所述身份标识相对应的未传输完的文件,当存储有与所述身份标识相对应的未传输完的文件时,从所述未传输完的文件已经传输的部分开始,继续传输未传输的部分。通过上述方法及装置,能够实现外接存储设备的断点续传。To sum up: the present invention discloses a method and device for resuming transmission from an external storage device, which is applied to a smart TV, and reads the identity of the external storage device after determining the external storage device currently inserted into the smart TV. identification, judging whether there is an untransmitted file corresponding to the identity identifier stored, and when an untransmitted file corresponding to the identity identifier is stored, the part that has been transferred from the untransmitted file Start, continue to transfer the untransferred part. Through the above method and device, it is possible to realize the resumed transmission of the external storage device.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. a method for external storage equipment breakpoint transmission, is applied to intelligent television, it is characterized in that, comprising:
Determine the external storage equipment of the described intelligent television of current insertion;
Read the identify label of described external storage equipment;
Judge whether to store the file that do not transfer corresponding with described identify label;
When storing the file that do not transfer corresponding with described identify label, the part of having transmitted from the described file not transferring, continue the not part of transmission of transmission.
2. method according to claim 1, is characterized in that, described in read described external storage equipment identify label comprise:
Transfer the Hash table being pre-created;
While storing the identify label of described external storage equipment in the Hash table being pre-created, from described Hash table, read the identify label of described external storage equipment.
3. method according to claim 2, is characterized in that, while not storing the identify label of described external storage equipment in the Hash table being pre-created, also comprises:
Distribute the identify label corresponding with described external storage equipment;
In the Hash table being pre-created described in described identify label is stored to.
4. according to the method described in claim 1~3 any one, it is characterized in that, when not storing the file that do not transfer corresponding with described identify label, also comprise:
When described external storage equipment and described intelligent television transfer files, store the corresponding relation of described file and described identify label.
5. according to the method described in claim 1~3 any one, it is characterized in that, when storing the file that do not transfer corresponding with described identify label, also comprise:
When described external storage equipment and described intelligent television complete the transmission of described file, empty the described file stored and the corresponding relation of described identify label.
6. a device for external storage equipment breakpoint transmission, is applied to intelligent television, it is characterized in that, comprising:
External storage equipment determining unit, for determining the external storage equipment of the described intelligent television of current insertion;
Identify label reading unit, for reading the identify label of described external storage equipment;
Judging unit, for judging whether to store the file that do not transfer corresponding with described identify label;
Breakpoint transmission unit, for when storing the file that do not transfer corresponding with described identify label, the part of having transmitted, continues the not part of transmission of transmission from the described file not transferring.
7. device according to claim 6, is characterized in that, described identify label reading unit comprises:
Transfer subelement, for transferring the Hash table being pre-created;
Subelement is read in identify label, while storing the identify label of described external storage equipment for the Hash table when being pre-created, reads the identify label of described external storage equipment from described Hash table.
8. device according to claim 7, is characterized in that, described identify label reading unit comprises:
Distribute subelement, for distributing the identify label corresponding with described external storage equipment;
Storing sub-units, for the Hash table being pre-created described in described identify label is stored to.
9. according to the device described in claim 6~8 any one, it is characterized in that, also comprise:
Correspondence relation storage, for when not storing the file that do not transfer corresponding with described identify label and during when described external storage equipment and described intelligent television transfer files, storing the corresponding relation of described file and described identify label.
10. according to the device described in claim 6~8 any one, it is characterized in that, also comprise:
Corresponding relation empties unit, for when storing the file that do not transfer corresponding with described identify label and when described external storage equipment and described intelligent television complete the transmission of described file, empty the described file stored and the corresponding relation of described identify label.
CN201310583444.8A 2013-11-19 2013-11-19 External storage device breakpoint resuming method and device Pending CN103593314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310583444.8A CN103593314A (en) 2013-11-19 2013-11-19 External storage device breakpoint resuming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310583444.8A CN103593314A (en) 2013-11-19 2013-11-19 External storage device breakpoint resuming method and device

Publications (1)

Publication Number Publication Date
CN103593314A true CN103593314A (en) 2014-02-19

Family

ID=50083465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310583444.8A Pending CN103593314A (en) 2013-11-19 2013-11-19 External storage device breakpoint resuming method and device

Country Status (1)

Country Link
CN (1) CN103593314A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955660A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Method and device for file transmission, and intelligent terminal thereof
CN112667169A (en) * 2020-12-31 2021-04-16 沈阳中钞信达金融设备有限公司 Intelligent storage and uploading system of financial equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184587A1 (en) * 2002-03-19 2006-08-17 Federwisch Michael L System and method for checkpointing and restarting an asynchronous transfer of data between a source and destination snapshot
CN1940922A (en) * 2005-09-30 2007-04-04 腾讯科技(深圳)有限公司 Method and system for improving information search speed
CN101546321A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Breakpoint continuous transmission method of mobile storage equipment
CN102170424A (en) * 2010-12-13 2011-08-31 沈晖 Mobile medium safety protection system based on three-level security architecture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184587A1 (en) * 2002-03-19 2006-08-17 Federwisch Michael L System and method for checkpointing and restarting an asynchronous transfer of data between a source and destination snapshot
CN1940922A (en) * 2005-09-30 2007-04-04 腾讯科技(深圳)有限公司 Method and system for improving information search speed
CN101546321A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Breakpoint continuous transmission method of mobile storage equipment
CN102170424A (en) * 2010-12-13 2011-08-31 沈晖 Mobile medium safety protection system based on three-level security architecture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955660A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Method and device for file transmission, and intelligent terminal thereof
CN112667169A (en) * 2020-12-31 2021-04-16 沈阳中钞信达金融设备有限公司 Intelligent storage and uploading system of financial equipment

Similar Documents

Publication Publication Date Title
CN109729386B (en) A kind of video file start broadcasting method, system and electronic equipment and storage medium
CN107431688B (en) Data transmission method, device, processor and mobile terminal
CN103699338B (en) A kind of method and apparatus downloading data
CN102891890A (en) Interaction method and related equipment and system among terminals
WO2017096771A1 (en) Method and device for storage control of application cache data
CN103346896A (en) Method and system for quick data transmission
CN103823726A (en) SIM (subscriber identity module) card data backup method and terminal
CN107968848B (en) A method, terminal device and storage medium for obtaining IP address
CN102202132B (en) Method, system and equipment for initializing networking equipment
CN104765705A (en) Method and device for reading data stored by turned-off mobile terminal and mobile terminal
CN104021052A (en) Method and device for carrying out data recovery during data transferring between wireless terminals
CN104580376A (en) Method, device and system for constructing connection between terminals in local area network
WO2009084791A1 (en) Method of and apparatus for downloading data
CN104780206A (en) A data sharing method and device
CN101799785A (en) Messaging device, information processing method and program
CN106027632A (en) Data transmission method and device
CN103593314A (en) External storage device breakpoint resuming method and device
CN111031117A (en) Multimedia file downloading method and related device
CN112395040A (en) Memory data transmission method, system and server
WO2016058188A1 (en) Software upgrading method and apparatus applied to terminal and terminal
CN106453663B (en) Improved storage expansion method and device based on cloud service
CN106470114A (en) A kind of collocation method of OTA AKU and device
CN106911751A (en) File acquisition method, device and system
WO2016023276A1 (en) Data processing method and device for storage card
CN103593310A (en) Method and device for identifying external storage equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140219