CN101520792A - Method and system for automatically mounting and recognizing system file - Google Patents

Method and system for automatically mounting and recognizing system file Download PDF

Info

Publication number
CN101520792A
CN101520792A CN200810241649A CN200810241649A CN101520792A CN 101520792 A CN101520792 A CN 101520792A CN 200810241649 A CN200810241649 A CN 200810241649A CN 200810241649 A CN200810241649 A CN 200810241649A CN 101520792 A CN101520792 A CN 101520792A
Authority
CN
China
Prior art keywords
hot plug
application layer
memory device
kernel
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.)
Granted
Application number
CN200810241649A
Other languages
Chinese (zh)
Other versions
CN101520792B (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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN2008102416497A priority Critical patent/CN101520792B/en
Publication of CN101520792A publication Critical patent/CN101520792A/en
Application granted granted Critical
Publication of CN101520792B publication Critical patent/CN101520792B/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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for automatically mounting and recognizing a system file. The system comprises a kernel and an application layer, wherein the kernel generates virtual USB hot plug synchronizing equipment; the virtual USB hot plug synchronizing equipment processes the course communication of the kernel and the application layer and reports hot plug events to the application layer in real time; hook functions of the hot plug events are implanted into related functions driven by a USB, and the hook functions of the hot plug events write the hot plug events into a buffer memory of the virtual USB hot plug synchronizing equipment in real time and send polling synchronizing signals; and when the polling synchronizing signals are changed, the application layer reads contents of the hot plug events and sends equipment loading or unloading messages and mounting points to a main application program through a hot plug detecting course, and the main application program mounts and accesses storage equipment. The method and the system improve the utilization rate of external hot plug storage equipment, such as a U disk and the like and strengthen the compatibility of IPTV.

Description

The method and the system thereof of a kind of automatic carry and recognition system file
Technical field
The present invention relates to handle in IPTV set-top box and the Web TV method and system of external memory device, relate in particular to the method and the system thereof of a kind of automatic carry and recognition system file.
Background technology
At present, at IPTV (Internet Protocol Television: all require it to support the automatic detection and the automatic carry of external hot plug storage equipment such as USB flash disk during IPTV) set-top box and Web TV are used usually, user daemon process) etc. (User-Mode Daemon: the configuration of USB device autotest is complicated and do not make accurate recognition at the multiple file system of USB interface carry because the Udev of current popular, be very easy to cause the failure of the automatic carries of external hot plug storage equipment such as USB flash disk or problems such as mess code occur, especially can not well external hot plug storage equipment such as USB flash disk and IPTV primary application program be merged in the prior art, lack the synchronization mechanism of itself and IPTV primary application program.This shows that prior art awaits further developing.
Summary of the invention
The present invention provides the method and the system thereof of a kind of automatic carry and recognition system file for solving above-mentioned defective of the prior art, the virtual unit that forms by kernel is optimized external hot plug storage equipment such as USB flash disks, so that external hot plug storage equipment such as USB flash disk and IPTV primary application program merge, set up the synchronization mechanism of external hot plug storage equipment such as USB flash disk and IPTV primary application program, improve the utilization factor of external hot plug storage equipment such as USB flash disk, strengthen the compatibility of IPTV.
For solving the problems of the technologies described above, the present invention program comprises:
The method of a kind of automatic carry and recognition system file, it may further comprise the steps:
A, interior karyogenesis one virtual USB hot plug synchronizer, described virtual USB hot plug synchronizer are handled the process communication of kernel and application layer and are reported the hot plug incident to described application layer in real time;
B, implant hot plug incident Hook Function in the related function that USB drives, described hot plug incident Hook Function is written to the hot plug incident in the buffer memory of described virtual USB hot plug synchronizer in real time and sends the poll synchronizing signal;
C, when described poll synchronizing signal changes, described application layer read the hot plug event content and by the hot plug detection procedure to primary application program transmitting apparatus load or unload message and mount point, described master answers program according to described device loads or unload message and mount point carry and accessing storage device.
Described method, wherein, described step C also comprises:
C1, described application layer are opened memory device according to the hot plug event content and are obtained the type of system file in the memory device, and described application layer is according to each subregion in the type selecting correlation parameter carry memory device of described system file.
Described method, wherein, described hot plug event content comprises the type of HUB port, memory device, the device number and the production firm of memory device.
Described method, wherein, application layer described in the described step C1 number is opened memory device according to memory device and is obtained the type of system file in the memory device.
Described method, wherein, the related function among the described step B disconnects or contiguous function for adding driver function and USB.
Described method wherein, also comprises between described step B and the described step C: client layer is monitored the situation of change of described poll synchronizing signal by choice function, and the situation of change of described poll synchronizing signal is sent to described application layer.
Described method, wherein, application layer described in the described step C1 is judged the type of system file in the described memory device by the first five 112 byte information that reads memory device.
The system of described method, comprise kernel and application layer, described kernel is connected with described application layer communication, and wherein, described kernel is used to generate to be handled described kernel and described application layer process communication and report the virtual USB hot plug synchronizer of hot plug incident in real time to described application layer; The primary application program that described application layer is used for reading the hot plug event content and above-mentioned information is sent to described kernel.
The invention provides the method and the system thereof of a kind of automatic carry and recognition system file, karyogenesis virtual USB hot plug synchronizer in utilizing, make external hot plug storage equipment such as USB flash disk and IPTV primary application program merge, improved the utilization factor of external hot plug storage equipment such as USB flash disk, and set up the synchronization mechanism of external hot plug storage equipment such as USB flash disk and IPTV primary application program, further strengthened the compatibility of IPTV.
Description of drawings
Fig. 1 is the conveying flow synoptic diagram of external hot plug storage equipment hot plug incident such as USB flash disk among the present invention;
Fig. 2 be among the present invention in the application layer people plug the treatment scheme synoptic diagram that detects thread.
Embodiment
Below with reference to accompanying drawing, comparatively detailed explanation is carried out in each preferred embodiment of the present invention.
The method and the system thereof of a kind of automatic carry provided by the invention and recognition system file, karyogenesis virtual USB hot plug synchronizer in utilizing, make external hot plug storage equipment such as USB flash disk and the IPTV primary application program to merge, set up the synchronization mechanism of external hot plug storage equipment such as USB flash disk and IPTV primary application program.Method of the present invention mainly may further comprise the steps:
A, interior karyogenesis one virtual USB hot plug synchronizer, described virtual USB hot plug synchronizer are handled the process communication of kernel and application layer and are reported the hot plug incident to described application layer in real time;
B, related function that USB drives for example device_add promptly add driver function and usb_disconnect be USB disconnect or contiguous function in implantation hot plug incident Hook Function, described hot plug incident Hook Function is written to the hot plug incident in the buffer memory of described virtual USB hot plug synchronizer in real time and sends the poll signal is the poll synchronizing signal;
C, client layer are opened hot plug synchronizers such as USB flash disk and are that choice function is monitored described poll signal by the select function; The value of supposing described select function is 0, then when the rreturn value of described select function greater than 0 the time, be that described poll signal changes, described client layer sends to described application layer with the situation of change of described poll signal, this moment, described application layer read the hot plug event content by the read function, it comprises information such as the device number of type, memory device of HUB port, memory device and production firm
D, described application layer hot plug detection procedure are opened the hot plug synchronizer according to the device number of hot plug synchronizers such as USB flash disk, equipment such as USB flash disk, portable hard drive for example, and the first five 112 byte in the fetch equipment, obtain the type of current system file then according to the partition table in the hot plug synchronizer and partition information, and select each subregion of this hot plug synchronizer of parameter carry of striving for;
E, described application layer hot plug detection procedure be to described primary application program transmitting apparatus load or unload message and mount point, and described primary application program is realized visit to hot plug synchronizers such as USB flash disks according to described transmitting apparatus load or unload message and mount point.Make external hot plug storage equipment such as USB flash disk and IPTV primary application program merge by method of the present invention, improved the utilization factor of external hot plug storage equipment such as USB flash disk.
In order better to realize above-mentioned effect, the present invention also provides a kind of system that realizes automatic carry and recognition system file, described system comprises kernel, application layer, described kernel is connected with described application layer communication, wherein, described kernel is used to generate described kernel of processing and described application layer process communication and reports the virtual USB hot plug synchronizer of hot plug incident in real time to described application layer; The primary application program that described application layer is used for reading the hot plug event content and above-mentioned information is sent to described kernel.Hence one can see that, and the present invention has also set up the synchronization mechanism of external hot plug storage equipment such as USB flash disk and IPTV primary application program, has further strengthened the compatibility of IPTV, has satisfied user's demand greatly.
In order better to set forth the present invention, the conveying flow and two ones of the application layer Equipment Inspection thread process flow processs that earlier the present invention are decomposed into the hot plug incident describe.Shown in Figure 1, being the conveying flow of hot plug incident, it mainly may further comprise the steps:
Step 101: when the hot plug incident took place, memory device drives to be implanted Hook Function in the buffer memory of virtual USB hot plug synchronizer management, and sends the poll synchronizing signal;
Step 102: described poll signal sent in the hot plug virtual unit and the hot plug that described poll synchronizing signal sends to application layer is detected in the thread;
Step 103: described application layer hot plug detects thread and receives described poll synchronizing signal and carry out respective handling according to described poll synchronizing signal.
The application layer equipment hot swap detects the thread treatment scheme, as shown in Figure 2, mainly may further comprise the steps:
Step 201: the choice function of client layer is waited for the hot plug synchronous event;
Step 202: read synchronous hot plug incident and obtain the insertion of this hot plug synchronous event or extract information;
Step 203: read and treat carry hot plug synchronizer partition table, and this hot plug synchronizer partition table is analyzed;
Step 204: the system file in the carry hot plug synchronizer;
Step 205: the success of the notice that gives out information IPTV main frame hot plug synchronizer carry, then the IPTV main frame can extract this hot plug synchronizer canned data arbitrarily.As from the foregoing, the present invention has improved the utilization factor of external hot plug storage equipment such as USB flash disk, has strengthened the compatibility of IPTV.
In sum, the method and the system thereof of a kind of automatic carry provided by the invention and recognition system file, karyogenesis virtual USB hot plug synchronizer in utilizing, and the program of application layer and client layer carried out scientific and reasonable improvement, make external hot plug storage equipment such as USB flash disk and IPTV primary application program merge, improved the utilization factor of external hot plug storage equipment such as USB flash disk, and set up the synchronization mechanism of external hot plug storage equipment such as USB flash disk and IPTV primary application program, further strengthened the compatibility of IPTV, having satisfied user's demand greatly, is the very big progress of prior art.
Should be understood that; above-mentioned description at preferred embodiment is comparatively detailed; can not therefore think restriction to the utility model scope of patent protection; those of ordinary skill in the art is under enlightenment of the present utility model; do not breaking away under the scope situation that the utility model claim protected; can also make various deformation such as replacement, simple combination, these all fall within the protection domain of the present utility model, and the scope of asking for protection of the present utility model should be as the criterion with claims.

Claims (8)

1, the method for a kind of automatic carry and recognition system file, it may further comprise the steps:
A, interior karyogenesis one virtual USB hot plug synchronizer, described virtual USB hot plug synchronizer are handled the process communication of kernel and application layer and are reported the hot plug incident to described application layer in real time;
B, implant hot plug incident Hook Function in the related function that USB drives, described hot plug incident Hook Function is written to the hot plug incident in the buffer memory of described virtual USB hot plug synchronizer in real time and sends the poll synchronizing signal;
C, when described poll synchronizing signal changes, described application layer read the hot plug event content and by the hot plug detection procedure to primary application program transmitting apparatus load or unload message and mount point, described master answers program according to described device loads or unload message and mount point carry and accessing storage device.
2, method according to claim 1 is characterized in that, described step C also comprises:
C1, described application layer are opened memory device according to the hot plug event content and are obtained the type of system file in the memory device, and described application layer is according to each subregion in the type selecting correlation parameter carry memory device of described system file.
3, method according to claim 1 and 2 is characterized in that, described hot plug event content comprises the type of HUB port, memory device, the device number and the production firm of memory device.
4, method according to claim 3 is characterized in that, application layer described in the described step C1 number is opened memory device according to memory device and obtained the type of system file in the memory device.
5, method according to claim 1 is characterized in that, the related function among the described step B disconnects or contiguous function for adding driver function and USB.
6, method according to claim 1, it is characterized in that, also comprise between described step B and the described step C: client layer is monitored the situation of change of described poll synchronizing signal by choice function, and the situation of change of described poll synchronizing signal is sent to described application layer.
7, method according to claim 2 is characterized in that, application layer described in the described step C1 is judged the type of system file in the described memory device by the first five 112 byte information that reads memory device.
8, a kind of system of method according to claim 1 that realizes, comprise kernel and application layer, described kernel is connected with described application layer communication, it is characterized in that described kernel is used to generate to be handled described kernel and described application layer process communication and report the virtual USB hot plug synchronizer of hot plug incident in real time to described application layer; The primary application program that described application layer is used for reading the hot plug event content and above-mentioned information is sent to described kernel.
CN2008102416497A 2008-12-17 2008-12-17 Method and system for automatically mounting and recognizing system file Expired - Fee Related CN101520792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102416497A CN101520792B (en) 2008-12-17 2008-12-17 Method and system for automatically mounting and recognizing system file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102416497A CN101520792B (en) 2008-12-17 2008-12-17 Method and system for automatically mounting and recognizing system file

Publications (2)

Publication Number Publication Date
CN101520792A true CN101520792A (en) 2009-09-02
CN101520792B CN101520792B (en) 2013-04-17

Family

ID=41081383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102416497A Expired - Fee Related CN101520792B (en) 2008-12-17 2008-12-17 Method and system for automatically mounting and recognizing system file

Country Status (1)

Country Link
CN (1) CN101520792B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102264000A (en) * 2011-07-29 2011-11-30 深圳创维-Rgb电子有限公司 Implementation method and device of TV Karaoke function entry, and TV set
CN102436425A (en) * 2011-10-21 2012-05-02 珠海全志科技股份有限公司 Hot drawing method for removable storage device and implementation device
CN102695095A (en) * 2012-05-28 2012-09-26 中山大学 Set-top-box-based USB multimedia automatic playing method and USB detection method
CN102724351A (en) * 2011-03-31 2012-10-10 比亚迪股份有限公司 Mobile terminal and management method of mobile terminal to external interposer attachment
CN103049327A (en) * 2011-10-14 2013-04-17 深圳市同洲电子股份有限公司 Method and device for mounting many storage devices on android system
US20140040242A1 (en) * 2012-08-01 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device based on android system for tracking imported file
WO2014019479A1 (en) * 2012-08-01 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device based on android system for tracking imported file
CN103677650A (en) * 2012-09-12 2014-03-26 北京百度网讯科技有限公司 Drive letter drifting preventing and treating method and device
CN104317759A (en) * 2014-10-15 2015-01-28 国云科技股份有限公司 Method for supporting hot plugging of virtual machine USB (universal serial bus) storage equipment
WO2016061978A1 (en) * 2014-10-23 2016-04-28 中兴通讯股份有限公司 Mobile storage mounting method and device
CN105808299A (en) * 2016-03-09 2016-07-27 深圳Tcl数字技术有限公司 External device automatic mounting and informing control method and system
CN106406928A (en) * 2016-08-24 2017-02-15 北京奇艺世纪科技有限公司 Software hot-plugging/unplugging method and system
CN107831534A (en) * 2017-12-15 2018-03-23 合肥国为电子有限公司 Untethered memory-type seismic detector data acquisition device and method based on USB flash disk interaction
CN109254935A (en) * 2018-08-17 2019-01-22 青岛海信电器股份有限公司 The recognition methods of smart television external storage equipment type and device
CN109828793A (en) * 2019-01-28 2019-05-31 山东超越数控电子股份有限公司 USB management-control method and system based on domestic operating system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR0010799A (en) * 1999-05-21 2002-06-11 Gen Instrument Corp Programming interface for television set-top box software system
US7177971B2 (en) * 2001-08-24 2007-02-13 Intel Corporation General input/output architecture, protocol and related methods to provide isochronous channels
JP4284499B2 (en) * 2003-03-07 2009-06-24 ソニー株式会社 Device management method and device management system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724351A (en) * 2011-03-31 2012-10-10 比亚迪股份有限公司 Mobile terminal and management method of mobile terminal to external interposer attachment
CN102724351B (en) * 2011-03-31 2015-05-13 比亚迪股份有限公司 Mobile terminal and management method of mobile terminal to external interposer attachment
CN102264000B (en) * 2011-07-29 2013-05-08 深圳创维-Rgb电子有限公司 Implementation method and device of TV Karaoke function entry, and TV set
CN102264000A (en) * 2011-07-29 2011-11-30 深圳创维-Rgb电子有限公司 Implementation method and device of TV Karaoke function entry, and TV set
CN103049327A (en) * 2011-10-14 2013-04-17 深圳市同洲电子股份有限公司 Method and device for mounting many storage devices on android system
CN102436425B (en) * 2011-10-21 2015-04-22 珠海全志科技股份有限公司 Hot drawing method for removable storage device and implementation device
CN102436425A (en) * 2011-10-21 2012-05-02 珠海全志科技股份有限公司 Hot drawing method for removable storage device and implementation device
CN102695095A (en) * 2012-05-28 2012-09-26 中山大学 Set-top-box-based USB multimedia automatic playing method and USB detection method
US9195664B2 (en) * 2012-08-01 2015-11-24 Tencent Technology (Shenzhen) Company Limited Method and device based on android system for tracking imported file
WO2014019479A1 (en) * 2012-08-01 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device based on android system for tracking imported file
US20140040242A1 (en) * 2012-08-01 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device based on android system for tracking imported file
CN103677650B (en) * 2012-09-12 2017-02-08 北京百度网讯科技有限公司 Drive letter drifting preventing and treating method and device
CN103677650A (en) * 2012-09-12 2014-03-26 北京百度网讯科技有限公司 Drive letter drifting preventing and treating method and device
CN104317759A (en) * 2014-10-15 2015-01-28 国云科技股份有限公司 Method for supporting hot plugging of virtual machine USB (universal serial bus) storage equipment
WO2016061978A1 (en) * 2014-10-23 2016-04-28 中兴通讯股份有限公司 Mobile storage mounting method and device
CN105589657A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Method and device for realizing mounting of mobile storage
CN105808299A (en) * 2016-03-09 2016-07-27 深圳Tcl数字技术有限公司 External device automatic mounting and informing control method and system
WO2017152526A1 (en) * 2016-03-09 2017-09-14 深圳Tcl数字技术有限公司 External device automatic mounting and notification control method and system
CN105808299B (en) * 2016-03-09 2018-07-03 深圳Tcl数字技术有限公司 The control method and system of the automatic carry of external equipment and notice
CN106406928A (en) * 2016-08-24 2017-02-15 北京奇艺世纪科技有限公司 Software hot-plugging/unplugging method and system
CN106406928B (en) * 2016-08-24 2019-08-09 北京奇艺世纪科技有限公司 A kind of software hot-plug method and system
CN107831534A (en) * 2017-12-15 2018-03-23 合肥国为电子有限公司 Untethered memory-type seismic detector data acquisition device and method based on USB flash disk interaction
CN109254935A (en) * 2018-08-17 2019-01-22 青岛海信电器股份有限公司 The recognition methods of smart television external storage equipment type and device
CN109828793A (en) * 2019-01-28 2019-05-31 山东超越数控电子股份有限公司 USB management-control method and system based on domestic operating system

Also Published As

Publication number Publication date
CN101520792B (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN101520792B (en) Method and system for automatically mounting and recognizing system file
CN102043686B (en) Disaster tolerance method, backup server and system of memory database
CN107491355A (en) Funcall method and device between a kind of process based on shared drive
CN102981990B (en) Data transmission method and device of terminal equipment with Androild platform
CN101800867A (en) Method, device and digital-television receiving terminal for realizing ring buffer
CN111381954B (en) Audio data recording method, system and terminal equipment
CN104820701A (en) Method and system for recording and synchronizing data
FR2485227A1 (en) INPUT / OUTPUT SYSTEM FOR A MULTIPROCESSOR PROCESSING SYSTEM
CN101252640B (en) Method for writing sequence number to set top box
CN103546698B (en) A kind of mobile terminal recorded video store method and device
CN106453572A (en) Method and system for synchronizing images based on cloud server
CN106126113B (en) A kind of method of home gateway service data classification storage management
CN102136289B (en) Methods, devices and systems for storing and reading media contents
CN101917578B (en) Method and device for recording standby programs
WO2024061005A1 (en) Read processing method and apparatus for audio and video buffer
CN103686077A (en) Double buffering method applied to realtime audio-video data transmission of 3G wireless network
CN106095593A (en) A kind of forward and backward scape application behavior synchronous method and device
CN104683217A (en) Multimedia information transmission method and instant messaging client
CN103414935A (en) Method and device for intercepting audio frequency and video frequency based on user identity information
CN105592361A (en) Set top box background program cleaning method, device and system
CN101951361B (en) Method for accessing intelligent card and server
CN106557262B (en) Data processing method and device
CN106899630B (en) Thumbnail display method and device for pictures in network disk
CN108287793A (en) The way to play for time and server of response message
CN102123269B (en) Method and device for acquiring video monitoring data acquisition as well as video monitoring system

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130417

Termination date: 20131217