CN103516709A - USB device data remote access method and system - Google Patents

USB device data remote access method and system Download PDF

Info

Publication number
CN103516709A
CN103516709A CN201210573331.5A CN201210573331A CN103516709A CN 103516709 A CN103516709 A CN 103516709A CN 201210573331 A CN201210573331 A CN 201210573331A CN 103516709 A CN103516709 A CN 103516709A
Authority
CN
China
Prior art keywords
file
usb device
remote access
local
web server
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.)
Granted
Application number
CN201210573331.5A
Other languages
Chinese (zh)
Other versions
CN103516709B (en
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.)
TCL New Technology Huizhou Co Ltd
Original Assignee
TCL Digital Technology Shenzhen 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 TCL Digital Technology Shenzhen Co Ltd filed Critical TCL Digital Technology Shenzhen Co Ltd
Priority to CN201210573331.5A priority Critical patent/CN103516709B/en
Publication of CN103516709A publication Critical patent/CN103516709A/en
Application granted granted Critical
Publication of CN103516709B publication Critical patent/CN103516709B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a USB device data remote access method and system. The method includes the steps that files in a USB device are copied into a local hard disk, file information corresponding to the files is transmitted to a local WEB server, the file information is stored into a local database by the local WEB server, a user can remotely have access to the local WEB server, and therefore remote access of USB device data is achieved. According to the method and system, the user can conveniently have access to the files in the USB device and can share the files with others, and if the files are video files, the user can further freely perform playing operation remotely.

Description

A kind of USB device data remote access method and system
Technical field
The present invention relates to data remote access technical field, relate in particular to a kind of USB device data remote access method and system.
Background technology
USB is English Universal Serial BUS(USB) abbreviation, it is a kind of external bus standard, for being connected and communication of standard computer and external equipment, is applied in the interfacing in PC field.Along with computer and various USB device are come into huge numbers of families, people often adopt the USB device of USB flash disk and so on to carry out backup file, if and the file in USB device need to be offered to long-distance user, generally file need to be sent to long-distance user by sending the mode of mail, or by long-distance user, download use in first file being uploaded onto the server, this mode shares that speed is slow, weak effect, inconvenience, and user cannot directly carry out remote access, and this can not meet user's information sharing demand far away.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of USB device data remote access method and system, being intended to solve existing USB device data cannot remote access, inconvenient shared problem.
Technical scheme of the present invention is as follows:
A data remote access method, wherein, comprises step:
A, by the file copy in USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
B, local WEB server by described file information storage in local data base;
Local WEB server described in C, remote access, to realize the remote access of described USB device data.
Described USB device data remote access method, wherein, described steps A specifically comprises:
A1, obtain the drive of this USB device;
A2, by the file copy in USB device corresponding to described drive to local hard drive;
A3, fileinfo corresponding to described file is sent to local WEB server.
Described USB device data remote access method, wherein, described steps A 2 specifically comprises:
Whether the file of A21, judgement copy is video file, proceeds to steps A 22 when being, otherwise execution step A3;
A22, when the file of copy is while being video file, whether judge in described video file containing the information that is useful on real-time streams transmission, when being, execution step A3; When no, in described video file, insert information, and perform step A3.
Described USB device data remote access method, wherein, described fileinfo comprises size, date created and the file type of file.
Described USB device data remote access method, wherein, described step C specifically comprises:
C1, authentication are also logined described local WEB server;
C2, read the fileinfo in local data base;
C3, according to described fileinfo, carry out corresponding operation.
Described USB device data remote access method, wherein, described video file is MPEG4 video file.
A data remote access system, wherein, comprising:
File copy module, for by the file copy of USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
Memory module, for by described file information storage to local data base;
Access modules, for local WEB server described in remote access, to realize the remote access of described USB device data.
Described USB device data remote access system, wherein, described file copy module comprises:
Drive acquiring unit, for obtaining the drive of this USB device;
File copy unit, for by the file copy of USB device corresponding to described drive to local hard drive;
Information passing unit, for being sent to local WEB server by fileinfo corresponding to described file.
Described USB device data remote access system, wherein, described file copy unit comprises:
Video file judgment sub-unit, for judging whether the file of copy is video file;
Whether information judgment sub-unit, while being video file for the file when copy, judge in described video file containing the information that is useful on real-time streams transmission;
Delivery unit, for when described video file is containing the information that is useful on real-time streams transmission, is sent to local WEB server by fileinfo corresponding to described file;
Information intron unit for when described video file is not containing the information that is useful on real-time streams transmission, inserts information in described video file.
Described USB device data remote access system, wherein, described access modules comprises:
Authentication unit, for authentication and login described local WEB server;
Reading unit, for reading the fileinfo of local data base;
Performance element, for carrying out corresponding operation according to described fileinfo.
Beneficial effect: the present invention by by the file copy in USB device to local hard drive, and fileinfo corresponding to the file of copy is sent to local WEB server, by local WEB server by the file information storage of file in local data base; The fileinfo that user can show by the local WEB server of browser remote access and browse, the operation such as deletion.The present invention has facilitated that user is long-range to conduct interviews to the file in USB device, and shares, if video file, user can also be in long-range play operation of carrying out freely.
Accompanying drawing explanation
Fig. 1 is the flow chart of USB device data remote access method of the present invention preferred embodiment.
Fig. 2 is the particular flow sheet of step S101 in method shown in Fig. 1.
Fig. 3 is the particular flow sheet of step S202 in method shown in Fig. 2.
Fig. 4 is the particular flow sheet of step S103 in method shown in Fig. 1.
Fig. 5 is the structured flowchart of USB device data remote access system of the present invention preferred embodiment.
Fig. 6 is the structured flowchart of file copy module in system shown in Figure 5.
Fig. 7 is the structured flowchart of file copy cell in module shown in Fig. 6.
Fig. 8 is the structured flowchart of access modules in system shown in Figure 5.
Embodiment
The invention provides a kind of USB device data remote access method and system, for making object of the present invention, technical scheme and effect clearer, clear and definite, below the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of USB device data remote access method of the present invention preferred embodiment, and as shown in the figure, it comprises step:
S101, by the file copy in USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
S102, local WEB server by described file information storage in local data base;
Local WEB server described in S103, remote access, to realize the remote access of described USB device data.
In step S101, first be whether mobile terminal detection USB device is inserted, when USB device being detected and be inserted into mobile terminal, one by one by the file copy in this USB device in local hard drive, the complete file of every copy, and fileinfo corresponding to described file is sent to local WEB server.
Specifically, as shown in Figure 2, step S101 can specifically be refined as:
S201, obtain the drive of this USB device; First when the insertion of USB device being detected, obtain the drive of the USB device of insertion, for the USB device that can be moveable magnetic disc by Windows system identification, Windows system is converted into after moveable magnetic disc, can produce one and drive corresponding to this moveable magnetic disc, then this drive of automatic acquisition; And if this USB device is the digital camera that for example adopts usb data line to connect, mobile phone etc. equipment, Windows system can be converted to this USB device USB flash disk, then obtains the drive of this USB device.
S202, by the file copy in USB device corresponding to described drive to local hard drive; This step is to copy one by one the file in USB device corresponding to the drive obtaining to local hard drive, so that the whole file tree of USB device is copied under certain catalogue of local hard drive.
S203, fileinfo corresponding to described file is sent to local WEB server.This step is after complete each file of every copy, and the interface that calls local WEB server by http protocol passes to local WEB server by fileinfo corresponding to each file.Fileinfo wherein refers to the size, date created, file type of file etc. information.
The present invention also carries out special processing for video file, so that long-distance user not only can carry out the common data of browsing or delete to video file, can also carry out real-time play operation, below in conjunction with accompanying drawing, this process is elaborated.
As shown in Figure 3, step S202 can specifically be refined as following steps:
Whether the file of S301, judgement copy is video file, proceeds to step S302 when being, otherwise execution step S203;
S302, whether judge in described video file containing the information that is useful on real-time streams transmission, when no, execution step S303; When being, perform step S203;
S303, in described video file, insert information, and perform step S203; In described video file, containing the information that is useful on real-time streams transmission, perform step S203;
S304, execution step S203.
First the file that judgement is copied to local hard drive is video file, if not video file, just without carrying out, this document is carried out to other operation, directly proceeds to abovementioned steps S203 after completing copy; If video file judges in this video file whether containing being useful on real-time streams, transmit the information (Hint information) of (RTSP, Real Time Streaming Protocol), thereby determine whether in this video file, insert information.Because being fluidized, general similar MPEG4 video file do not support RTSP streaming media playing, so need to increase such Hint information, make video file can implement flow transmission, thereby make long-range user can directly drag the operations such as broadcasting, thereby user can be play at the long-range object time point of dragging to, and do not need the video content before buffer memory this of some object time, shorten cache-time, reduced the times to be played such as user.
If contained information in video file, can directly perform step S203 and carry out ensuing operation.And if in video file, there is no information, in this video file, insert such information, so that this video file can carry out according to RTSP agreement the broadcasting of real-time streams.
In step S102, USB device in USB device is copied to local disk and the fileinfo of each file is delivered to after local WEB server, local WEB server can be by these file information storage in local data base, to offer user's accessing operation.
Step S103 is the accessing operation step that receives user, is first the respective page that user opens local WEB server, and local WEB server is shown to user by the fileinfo in local data base, then respond user's operation, specifically, as shown in Figure 4, it comprises step:
S401, authentication are also logined described local WEB server; First, user opens the respective page of local WEB service by browser, and verify by certain verification mode, the mode of checking can be to verify by user name and password, and user can sign in to described local WEB server by inputting correct user name and password.
S402, read the fileinfo in local data base; After being verified, before local WEB server can show, pass to the fileinfo in local data base, comprise the fileinfo of each file in USB device.
S403, according to described fileinfo, carry out corresponding operation.User can be by local WEB server page interface to the file in USB device browse, the operation such as deletion, if file is video file simultaneously, can also play, owing to having inserted in advance Hint information in video file, so user can carry out drag-and-drop operation long-range, thus more convenient user's operation.
Based on said method, the present invention also provides a kind of USB device data remote access system, and as shown in Figure 5, Fig. 5 is the structured flowchart of USB device data remote access system of the present invention preferred embodiment, and this system comprises:
File copy module 100, for by the file copy of USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
Memory module 200, for by described file information storage to local data base;
Access modules 300, for local WEB server described in remote access, to realize the remote access of described USB device data.
Further, as shown in Figure 6, Fig. 6 is the structured flowchart of file copy module in system shown in Figure 5, and described file copy module 100 comprises:
Drive acquiring unit 110, for obtaining the drive of this USB device;
File copy unit 120, for by the file copy of USB device corresponding to described drive to local hard drive;
Information passing unit 130, for being sent to local WEB server by fileinfo corresponding to described file.
Further, as shown in Figure 7, Fig. 7 is the structured flowchart of file copy cell in module shown in Fig. 6, and described file copy unit 120 comprises:
Video file judgment sub-unit 121, for judging whether the file of copy is video file;
Whether information judgment sub-unit 122, while being video file for the file when copy, judge in described video file containing the information that is useful on real-time streams transmission;
Delivery unit 123, for when described video file is containing the information that is useful on real-time streams transmission, is sent to local WEB server by fileinfo corresponding to described file;
Information intron unit 124 for when described video file is not containing the information that is useful on real-time streams transmission, inserts information in described video file;
Further, as shown in Figure 8, Fig. 8 is the structured flowchart of access modules in system shown in Figure 5, and described access modules 300 comprises:
Authentication unit 310, for authentication and login described local WEB server;
Reading unit 320, for reading the fileinfo of local data base;
Performance element 330, for carrying out corresponding operation according to described fileinfo.About ins and outs existing detailed description in detail in method above of above-mentioned each modular unit, therefore repeat no more.
In sum, the present invention by by the file copy in USB device to local hard drive, and fileinfo corresponding to the file of copy is sent to local WEB server, by local WEB server by the file information storage of file in local data base; The fileinfo that user can show by the local WEB server of browser remote access and browse, the operation such as deletion.The present invention has facilitated that user is long-range to conduct interviews to the file in USB device, and shares, if video file, user can also be in long-range play operation of carrying out freely.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (10)

1. a USB device data remote access method, is characterized in that, comprises step:
A, by the file copy in USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
B, local WEB server by described file information storage in local data base;
Local WEB server described in C, remote access, to realize the remote access of described USB device data.
2. USB device data remote access method according to claim 1, is characterized in that, described steps A specifically comprises:
A1, obtain the drive of this USB device;
A2, by the file copy in USB device corresponding to described drive to local hard drive;
A3, fileinfo corresponding to described file is sent to local WEB server.
3. USB device data remote access method according to claim 2, is characterized in that, described steps A 2 specifically comprises:
Whether the file of A21, judgement copy is video file, proceeds to steps A 22 when being, otherwise execution step A3;
A22, when the file of copy is while being video file, whether judge in described video file containing the information that is useful on real-time streams transmission, when being, execution step A3; When no, in described video file, insert information, and perform step A3.
4. USB device data remote access method according to claim 1, is characterized in that, described fileinfo comprises size, date created and the file type of file.
5. USB device data remote access method according to claim 1, is characterized in that, described step C specifically comprises:
C1, authentication are also logined described local WEB server;
C2, read the fileinfo in local data base;
C3, according to described fileinfo, carry out corresponding operation.
6. USB device data remote access method according to claim 3, is characterized in that, described video file is MPEG4 video file.
7. a USB device data remote access system, is characterized in that, comprising:
File copy module, for by the file copy of USB device to local hard drive, and fileinfo corresponding to described file is sent to local WEB server;
Memory module, for by described file information storage to local data base;
Access modules, for local WEB server described in remote access, to realize the remote access of described USB device data.
8. USB device data remote access system according to claim 7, is characterized in that, described file copy module comprises:
Drive acquiring unit, for obtaining the drive of this USB device;
File copy unit, for by the file copy of USB device corresponding to described drive to local hard drive;
Information passing unit, for being sent to local WEB server by fileinfo corresponding to described file.
9. USB device data remote access system according to claim 8, is characterized in that, described file copy unit comprises:
Video file judgment sub-unit, for judging whether the file of copy is video file;
Whether information judgment sub-unit, while being video file for the file when copy, judge in described video file containing the information that is useful on real-time streams transmission;
Delivery unit, for when described video file is containing the information that is useful on real-time streams transmission, is sent to local WEB server by fileinfo corresponding to described file;
Information intron unit for when described video file is not containing the information that is useful on real-time streams transmission, inserts information in described video file.
10. USB device data remote access system according to claim 7, is characterized in that, described access modules comprises:
Authentication unit, for authentication and login described local WEB server;
Reading unit, for reading the fileinfo of local data base;
Performance element, for carrying out corresponding operation according to described fileinfo.
CN201210573331.5A 2012-12-26 2012-12-26 USB device data remote access method and system Expired - Fee Related CN103516709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210573331.5A CN103516709B (en) 2012-12-26 2012-12-26 USB device data remote access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210573331.5A CN103516709B (en) 2012-12-26 2012-12-26 USB device data remote access method and system

Publications (2)

Publication Number Publication Date
CN103516709A true CN103516709A (en) 2014-01-15
CN103516709B CN103516709B (en) 2017-02-08

Family

ID=49898753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210573331.5A Expired - Fee Related CN103516709B (en) 2012-12-26 2012-12-26 USB device data remote access method and system

Country Status (1)

Country Link
CN (1) CN103516709B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967366A (en) * 2017-12-22 2018-04-27 深圳Tcl新技术有限公司 File management method, USB flash disk and computer-readable recording medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6289378B1 (en) * 1998-10-20 2001-09-11 Triactive Technologies, L.L.C. Web browser remote computer management system
CN101741901A (en) * 2009-12-21 2010-06-16 青岛海信宽带多媒体技术有限公司 Method and device for realizing remote access to UPnP/DLNA device
CN102164152A (en) * 2010-02-23 2011-08-24 浙江省公众信息产业有限公司 Method and system for remotely processing files
US20120151002A1 (en) * 2010-12-10 2012-06-14 D-Link Corporation System and method for file access and sharing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6289378B1 (en) * 1998-10-20 2001-09-11 Triactive Technologies, L.L.C. Web browser remote computer management system
CN101741901A (en) * 2009-12-21 2010-06-16 青岛海信宽带多媒体技术有限公司 Method and device for realizing remote access to UPnP/DLNA device
CN102164152A (en) * 2010-02-23 2011-08-24 浙江省公众信息产业有限公司 Method and system for remotely processing files
US20120151002A1 (en) * 2010-12-10 2012-06-14 D-Link Corporation System and method for file access and sharing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967366A (en) * 2017-12-22 2018-04-27 深圳Tcl新技术有限公司 File management method, USB flash disk and computer-readable recording medium
CN107967366B (en) * 2017-12-22 2022-03-01 深圳Tcl新技术有限公司 File management method, U disk and computer readable storage medium

Also Published As

Publication number Publication date
CN103516709B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN101350001B (en) Data sharing and transfer systems and methods
US9161238B2 (en) Mobile device monitoring and testing
US20090063694A1 (en) Multimedia Access Device, Multimedia Playing System Comprising the Multimedia Access Device, and Multimedia Data Playing Method
CN103389969A (en) Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN103401902A (en) Portable cloud storage system and method
CN103051690B (en) In a kind of local area network (LAN), on-vehicle host plays system and the implementation method of mobile phone music
CN103491648A (en) Communication method and system based on WIFI
GB2534444A (en) Aggregate service with file sharing
CN103324892A (en) File display method and device of Android system
CN105872602A (en) Advertisement data obtaining method, device and related system
CN107562372B (en) Electronic equipment, data management method thereof and computer readable storage medium
CN101505395A (en) System and method for sharing data of digital television receiving terminal
CN107396033A (en) Video conferencing system and method
TW201401201A (en) Pushing message system for multiple system platforms
CN101997743A (en) Method for sharing file information
CN104331407A (en) Multimedia file information recommending method and multimedia file information recommending device
CN104753979A (en) Method, server, terminal and system for displaying website information
CN103685303A (en) Method and system for processing connection content delivery network
CN103516709A (en) USB device data remote access method and system
CN103049403A (en) Method for communication between embedded terminal device and cell phone
CN103135953A (en) Electronic device and multi-panel interface display method
CN204998461U (en) On -vehicle audio player and system with wireless data interconnection function
WO2008081121A3 (en) Communication method and device
CN102780729B (en) The method providing far-end to access and communicator thereof
CN101001455A (en) Method and system for radio terminal wire accessing interconnected network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171113

Address after: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. 19 district

Patentee after: TCL New Technology (Huizhou) Co., Ltd.

Address before: 518067 Guangdong city of Shenzhen province Nanshan District Shekou Industrial Road No. 5 Building 1 Lushi Arts crafts emporium E district two building 201

Patentee before: TCL Digital Technology (Shenzhen) Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170208

Termination date: 20201226