CN109388599A - Data copying method between a kind of different USB devices for television system - Google Patents

Data copying method between a kind of different USB devices for television system Download PDF

Info

Publication number
CN109388599A
CN109388599A CN201811095671.5A CN201811095671A CN109388599A CN 109388599 A CN109388599 A CN 109388599A CN 201811095671 A CN201811095671 A CN 201811095671A CN 109388599 A CN109388599 A CN 109388599A
Authority
CN
China
Prior art keywords
file
copy
copied
folder
usb
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
CN201811095671.5A
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 SMART-CORE S&T Co Ltd
Original Assignee
SHENZHEN SMART-CORE S&T 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 SMART-CORE S&T Co Ltd filed Critical SHENZHEN SMART-CORE S&T Co Ltd
Priority to CN201811095671.5A priority Critical patent/CN109388599A/en
Publication of CN109388599A publication Critical patent/CN109388599A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms

Abstract

The invention discloses data copying methods between a kind of different USB devices for television system comprising: copy step records current USB port number, obtains file or folder information to be copied;Step is copied, perhaps file data or folder data piecemeal write-in memory are switched the channel USB later, record current paste-side USB port number traversal duplication file data by folder data, and record the folder content that current traversal replicates;Gluing steps generate corresponding destination folder under the destination path of paste-side USB, and from data are obtained in memory, simultaneously block-by-block is written in the destination folder.Copy function between the perfect two-way USB of the present invention, for bigger file, the design method of copy is simple, ingenious, preferably realizes file, file copy between two-way USB, operating process is more convenient, and then meets market and user demand.

Description

Data copying method between a kind of different USB devices for television system
Technical field
The present invention relates to data copy sides between television system more particularly to a kind of different USB devices for television system Method.
Background technique
In the prior art, v59 chip is widely used in TV scheme, V59 support simulated television NTSC, PAL, SCAM, with And multichannel CVBS, HDMI and VGA input, while supporting the USB audio and video playing function of multi-format, v59 is with its integrated level height, function Can be powerful, low-cost advantage is used by many television manufacturers.For the market of some specific regions, TV is needed to support two-way USB, at the same two-way USB can mutually copied files, file, and V59XUS can just support two-way USB screen play.But Since the V59 two-way USB supported cannot be recognized simultaneously, the copy of two-way USB, therefore can only be by memory with regard to more troublesome The duplication of one fritter, one fritter, therefore for bigger file designs a kind of method that can replicate big file block just very It is important.Traditional V59 cannot be copied before two-way USB, can not copied files folder, but be commonly encountered client propose it is practical Property demand such as can a key by the root of the file copy in some file to another way USB, therefore utilize V59 Realize that file, the file of two-way USB are mutually copied with actual meaning.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, it is convenient, achievable to provide a kind of operation The method that file and file copy mutually between no operating system TV scheme difference USB highway device.
In order to solve the above technical problems, the present invention adopts the following technical scheme that.
Data copying method between a kind of different USB devices for television system comprising: copy step, record are current USB port number obtains file or folder information to be copied;Copy step, traversal duplication file data or file File data or folder data piecemeal are written memory, switch the channel USB later, record the end current paste-side USB by data Slogan, and record the folder content of current traversal duplication;Gluing steps are generated under the destination path of paste-side USB and are corresponded to Destination folder, be written in the destination folder from data and block-by-block is obtained in memory.
Preferably, the copy step comprises the following processes: step S10, and record works as the front end USB slogan;Step S11, is obtained Take the current sequence number for selecting file or file;Step S12 obtains file or file to be copied according to sequence number Information;Step S13 judges chosen type, if file, then records and needs the file information copied and terminate to replicate, if It is file, thens follow the steps S14;Step S14 obtains file or text therein according to sequence number into folder content Part presss from both sides information;Step S15 judges that chosen type then repeats step S14 if file, if file, then holds Row step S16;Step S16, record need the file information copied;Step S17, sequence number subtract 1, and judge, if sequence number is non- 0, then step S14 is repeated, if Serial No. 0, terminates to replicate.
Preferably, in the copy step, system judges whether preset time inner port can connect USB device, if connection Upper USB device in connection, terminates to copy step into copy or sticking state if.
Preferably, in the copy step, under the destination path of file to be copied and file, check what needs copied File path generates corresponding file under destination path, according to the filename to be replicated, whether checks the file to be replicated In the presence of if it does not exist, then a newly-built file, then opens this document, write data in this document from memory.
Preferably, in the copy step, system judges whether to have copied current file, if not copied, continues Copy, if having copied, judges whether All Files have all copied, and continues under copy if without all having copied One file terminates to copy step if all copy is completed.
Between different USB devices disclosed by the invention for television system in data copying method, based on copy step, copy Shellfish step and gluing steps, the copy function between perfect two-way USB, for bigger file, the design of copy Method is simple, ingenious, preferably realizes file, file copy between two-way USB, operating process is more convenient, practical In, the function of a variety of customized demands can also be developed by copy method according to the present invention, and then meet market and user's need It asks.
Detailed description of the invention
Fig. 1 is the flow chart of copy step.
Fig. 2 is the flow chart for copying transition handoff procedure.
Specific embodiment
The present invention is described in more detail with reference to the accompanying drawings and examples.
The invention discloses data copying methods between a kind of different USB devices for television system comprising:
Copy step records current USB port number, obtains file or folder information to be copied;
Copy step, traversal duplication file data perhaps folder data by file data or folder data piecemeal Memory is written, switches the channel USB later, records current paste-side USB port number, and records the file mesh of current traversal duplication Record;
Gluing steps generate corresponding destination folder under the destination path of paste-side USB, data are obtained from memory And block-by-block is written in the destination folder.
Copy function in the above method, based on copy step, copy step and gluing steps, between perfect two-way USB Can, for bigger file, the design method of copy is simple, ingenious, preferably realizes the text between two-way USB Part, file copy, operating process is more convenient, in practical application, can also develop a variety of visitors by copy method according to the present invention The function of inhibition and generation demand, and then meet market and user demand.
In operating process, the channel USB1 is initially entered, USB flash disk is inserted into, enters the interface of browsing file, by remote control right and left key Mobile cursor is chosen on the file to be replicated, and presses yellow key and starts to replicate, channel is then switched to USB2.
Fig. 1 is please referred to as a preferred method, and the copy step comprises the following processes:
Step S10, record work as the front end USB slogan;
Step S11 obtains the current sequence number for selecting file or file;
Step S12 obtains file or folder information to be copied according to sequence number;
Step S13 judges chosen type, if file, then records and needs the file information copied and terminate to replicate, If file thens follow the steps S14;
Step S14 obtains file therein or folder information according to sequence number into folder content;
Step S15 judges that chosen type then repeats step S14 if file, if file, then executes Step S16;
Step S16, record need the file information copied;
Step S17, sequence number subtract 1, and judge, if sequence number is non-zero, repeat step S14, if Serial No. 0, Terminate duplication.
In the preferred embodiment of copy step, a structural body variable array is first defined, is needed again to store The file information of system.Meanwhile increasing BOOLEAN bIsEmptyDir and specially treated is done for empty folder, file is answered System, which only needs to create in another access of USB, presses filename new folder, therefore non-null is pressed from both sides, and file is not It needs to go to handle by the information of a file, and for empty folder, then it needs to go to deposit by the form of a file by file Store up information.During executing copy step, a file has been traversed every time, when file coefficient is equal to 1, has been judged at this time Current type is file, and is just to revert in higher level's catalogue into this file.
As a preferred method, in the copy step, system judges whether preset time inner port can connect USB and set It is standby, if connecting upper USB device, into copy or sticking state, in connection, terminate to copy step if.The copy In step, under the destination path of file to be copied and file, the file path for needing to copy is checked, it is raw under destination path At corresponding file, according to the filename to be replicated, checks that the file to be replicated whether there is, if it does not exist, then create one A file, then opens this document, writes data in this document from memory.In the copy step, system judges whether to work as Preceding document has copied, if not copied, continues to copy, if having copied, judges whether All Files have all copied, Continue to copy next file if without all having copied, if all copy is completed, terminates to copy step.
In the preferred embodiment of copy step, since the process of copy is long, it is impossible in a Main Loop All processes are run through, therefore are provided with a duplication state switching, referring to figure 2., copy transition switching figure is shown in attached drawing two, respectively The main actions of state illustrate:
COPY_PAST_STATE_INIT: copy starts, and initializes, records current paste-side USB port number, record is worked as The folder content of preceding duplication is directly entered next state PARE_INIT after the completion;
COPY_PAST_STATE_PARE_INIT: every to start to initialize before copying each file, setting is currently duplication State enters next state SWTICH_PORT after the completion;
COPY_PAST_STATE_SWTICH_PORT: it determines to switch to Copy's or past according to bCopyFlag mark Time point is arranged, into next state CONNECT in USB port;
COPY_PAST_STATE_CONNECT: judge the time point being arranged from SWTICH_PORT state whithin a period of time Whether USB device can be connected, not connect and enter transition FINISH, state COPY_ is switched to according to bCopyFlag in connection FILE or PAST_FILE;
COPY_PAST_STATE_COPY_FILE: establishing a FileBrowser, and the file copied is needed according to record File entry in information opens file, and then a certain section of either this document of this document is read in memory, closes BCopyFlag flag bit Past is arranged, into next state SWTICH_PORT in FileBrowser;
COPY_PAST_STATE_PAST_FILE: switching to first under the destination path of duplication file and file, and checking needs The path for the file to be copied generates relevant file under destination path, and according to the filename to be replicated, inspection will be answered The file of system whether there is, and if creating a file without if, then open this document, writes data from memory the inside and wants this article In part.Subsequently into next state CHECK;
COPY_PAST_STATE_CHECK: judge whether to copy a file according to u32ReadLen and U32CopyLen Shellfish is complete, if a file has not copied, the state SWTICH_PORT of referring directly to continues to replicate, if a file is Through having copied, then judge whether all to have copied All Files according to u8CopyFileIdx.Enter if not copied State PARE_INIT copies next file, if copy has been completed, enters state FINISH;
COPY_PAST_STATE_FINISH: the reduction of all variables is entered into NextState IDLE;
COPY_PAST_STATE_IDLE: dummy status.
In the preferred embodiment of gluing steps, paste process concrete methods of realizing is as follows: switching to the target of stickup first Position u16DesPath, then will detect the path of Copy Info, and the path of Copy Info is stored in mst_FileInfo In [u8CopyFileIdx] .u16FileDirectoryPath variable, path storage shaped like 111 222 333, by setting Calculating method, first taking-up folder name 111, detecting 111 files under current directory whether there is, if there is no then generating one A entitled 111 file, then into this document folder in, then according to this operation detection 222,333, enter specified path After establish a filebrowser, then from memory be written the file to be replicated, finally turn off filebrowser.
Data copying method between different USB devices disclosed by the invention for television system is adopted during duplication With recursive call, the information of All Files in one file of traversal record, in practical application, no operation lesser for memory System on Chip/SoC, copying big file can be using the method for one piece of block duplication.Compared to existing technologies, the present invention is preferably perfect Copy function between two-way USB, for bigger file, the design method of copy is simple, ingenious, preferably in fact File, the file copy between two-way USB are showed, operating process is more convenient.
The above is preferred embodiments of the present invention, is not intended to restrict the invention, all in technology model of the invention Interior done modification, equivalent replacement or improvement etc. are enclosed, should be included in the range of of the invention protect.

Claims (5)

1. data copying method between a kind of different USB devices for television system characterized by comprising
Copy step records current USB port number, obtains file or folder information to be copied;
Step is copied, perhaps file data or folder data piecemeal are written folder data traversal duplication file data Memory switches the channel USB later, records current paste-side USB port number, and records the folder content of current traversal duplication;
Gluing steps generate corresponding destination folder under the destination path of paste-side USB, from memory obtain data and by Block is written in the destination folder.
2. as described in claim 1 for data copying method between the different USB devices of television system, which is characterized in that institute Copy step is stated to comprise the following processes:
Step S10, record work as the front end USB slogan;
Step S11 obtains the current sequence number for selecting file or file;
Step S12 obtains file or folder information to be copied according to sequence number;
Step S13 judges chosen type, if file, then records and needs the file information copied and terminate to replicate, if File thens follow the steps S14;
Step S14 obtains file therein or folder information according to sequence number into folder content;
Step S15 judges that chosen type then repeats step S14 if file, if file, thens follow the steps S16;
Step S16, record need the file information copied;
Step S17, sequence number subtract 1, and judge, if sequence number is non-zero, repeat step S14, if Serial No. 0, terminates Duplication.
3. as described in claim 1 for data copying method between the different USB devices of television system, which is characterized in that institute It states in copy step, system judges whether preset time inner port can connect USB device, if upper USB device is connected, into copy Or sticking state, in connection, terminate to copy step if.
4. as described in claim 1 for data copying method between the different USB devices of television system, which is characterized in that institute It states in copy step, under the destination path of file to be copied and file, the file path for needing to copy is checked, on target road Corresponding file is generated under diameter, according to the filename to be replicated, checks that the file to be replicated whether there is, if it does not exist, then A file is created, this document is then opened, is write data in this document from memory.
5. as described in claim 1 for data copying method between the different USB devices of television system, which is characterized in that institute It states in copy step, system judges whether to have copied current file, if not copied, continues to copy, if having copied, Then judge whether All Files have all copied, continue to copy next file if without all having copied, if all Copy is completed, then terminates to copy step.
CN201811095671.5A 2018-09-19 2018-09-19 Data copying method between a kind of different USB devices for television system Pending CN109388599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811095671.5A CN109388599A (en) 2018-09-19 2018-09-19 Data copying method between a kind of different USB devices for television system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811095671.5A CN109388599A (en) 2018-09-19 2018-09-19 Data copying method between a kind of different USB devices for television system

Publications (1)

Publication Number Publication Date
CN109388599A true CN109388599A (en) 2019-02-26

Family

ID=65418845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811095671.5A Pending CN109388599A (en) 2018-09-19 2018-09-19 Data copying method between a kind of different USB devices for television system

Country Status (1)

Country Link
CN (1) CN109388599A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951476A (en) * 2010-10-19 2011-01-19 冠捷显示科技(厦门)有限公司 Method fro storing USB (Universal Serial Bus) copyfile by using television with USB interface
CN102118493A (en) * 2010-11-26 2011-07-06 深圳市杰特电信控股有限公司 Smart phone with master device and slave device and application method thereof
CN102609642A (en) * 2012-01-09 2012-07-25 中标软件有限公司 Clipboard control method and clipboard control system
CN108174268A (en) * 2017-12-27 2018-06-15 深圳Tcl数字技术有限公司 Data copying method, equipment, system and readable storage medium storing program for executing based on TV

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951476A (en) * 2010-10-19 2011-01-19 冠捷显示科技(厦门)有限公司 Method fro storing USB (Universal Serial Bus) copyfile by using television with USB interface
CN102118493A (en) * 2010-11-26 2011-07-06 深圳市杰特电信控股有限公司 Smart phone with master device and slave device and application method thereof
CN102609642A (en) * 2012-01-09 2012-07-25 中标软件有限公司 Clipboard control method and clipboard control system
CN108174268A (en) * 2017-12-27 2018-06-15 深圳Tcl数字技术有限公司 Data copying method, equipment, system and readable storage medium storing program for executing based on TV

Similar Documents

Publication Publication Date Title
TWI328801B (en)
CN1754225B (en) Playback device, recording method and playback method
JP4182994B2 (en) Data processing system, information processing apparatus and information processing method, recording / reproducing apparatus, and computer program
US7804505B2 (en) Information processing apparatus and associated method of prioritizing content for playback
CN101583928B (en) Reproducing apparatus and method
CN101652992B (en) Image picking-up device and image picking-up system
CN100458770C (en) Content copying apparatus
EP0803873B1 (en) Editing control apparatus and editing control method
CN1144216C (en) Recording medium recorded with data structure and recording / reproducing method and equipment
TWI259454B (en) Information playback apparatus and information playback method
JP2004173227A (en) Device and method for editing digital video
JP5113655B2 (en) Electronic photo album
EP1684512A1 (en) File recording apparatus and video effect editing method
CN109388599A (en) Data copying method between a kind of different USB devices for television system
TWI261185B (en) Storage medium storing application data providing programming function, and apparatus and method for reproducing the application
CN108595133A (en) A kind of picture-in-picture display methods and system
US20060280488A1 (en) Reproduction apparatus
JP3858310B2 (en) Source file editing device
JP3937438B2 (en) Disc recording / playback device
CN101896975A (en) Method and apparatus for reproducing data
CN101447206B (en) Information recording apparatus, information recording system, and information recording method
JP2006018020A (en) Electronic photograph album
US20080310817A1 (en) Information Recording Apparatus, Information Recording Program, Recording Medium Recording Information Recording Program, Recording Medium, Information Recording Method, Information Reproducing Apparatus, Information Reproducing Method, Information Reproducing Program, and Recording Medium Recording Information Reproducing Program
JP4420987B2 (en) Image editing device
CN105141777A (en) Method and apparatus for carrying out sound recording based on volume keys under standby mode

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190226

RJ01 Rejection of invention patent application after publication