CN107333178A - A kind of double USB management methods of set top box - Google Patents

A kind of double USB management methods of set top box Download PDF

Info

Publication number
CN107333178A
CN107333178A CN201710470960.8A CN201710470960A CN107333178A CN 107333178 A CN107333178 A CN 107333178A CN 201710470960 A CN201710470960 A CN 201710470960A CN 107333178 A CN107333178 A CN 107333178A
Authority
CN
China
Prior art keywords
configuration
subregion
rec
configuration file
top box
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
CN201710470960.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.)
PANODIC ELECTRIC (SHENZHEN) Co Ltd
Original Assignee
PANODIC ELECTRIC (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 PANODIC ELECTRIC (SHENZHEN) Co Ltd filed Critical PANODIC ELECTRIC (SHENZHEN) Co Ltd
Priority to CN201710470960.8A priority Critical patent/CN107333178A/en
Publication of CN107333178A publication Critical patent/CN107333178A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4435Memory management
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • 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/0644Management of space entities, e.g. partitions, extents, pools
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42661Internal components of the client ; Characteristics thereof for reading from or writing on a magnetic storage medium, e.g. hard disk drive

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention relates to a kind of double USB management methods of set top box.This method inserts first hard disk, including step in the set top box with former and later two USB interfaces:S1. judge it is which USB port accesses and is labeled as Front or Rear;S2. hard disc apparatus ID and number of partitions are read;S3. all subregions are traveled through and judge to whether there is configuration file in subregion, if being configured without file, step S4 are performed, if there is configuration file, step S5 are performed;S4. the space of all subregions of hard disk is calculated, the size of remaining space is compared one by one, the subregion in maximum residual space is selected, configuration file is created, and perform step S6;S5. read configuration file from smallest partition number and judge whether it is legal;S6. judge whether remaining subregion has illegal configuration.This method avoids subregion change, the usage experience of significant increase user occur.

Description

A kind of double USB management methods of set top box
Technical field
The present invention relates to data configuration field, the double USB management methods of more particularly to a kind of set top box.
Background technology
In set-top box application, there is in the demand with former and later two USB interfaces, two interfaces one to can be used for many matchmakers Body is played, and another can be applied to program scheduled recording and time-shifting function, for the latter, it is necessary to which delimiting corresponding subregion is used for Do not managed specifically for two USB ports in imprinting or time shift, current product, simply random division subregion, it is possible to lead Apply family in use when it is front and rear respectively insertion hard disk or use during plug hard disk or set top box restart when, go out Existing subregion change influence actual use.
The content of the invention
The present invention provides a kind of set top box double USB management methods, it is intended to solve subregion change occur during double USB uses The problem of.
The present invention provides a kind of set top box double USB management methods, is inserted in the set top box with former and later two USB interfaces First hard disk, including following configuration step:
S1. judge it is which USB port accesses and is labeled as Front or Rear;
S2. hard disc apparatus ID and number of partitions are read;
S3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if not having Configuration file, then perform step S4, if there is configuration file, performs step S5;
S4. the space of all subregions of hard disk is calculated, the size of remaining space is compared one by one, point in maximum residual space is selected Area, creates REC_TS_Part_Select.txt configuration files, and terminate configuration;
S5. read configuration file since smallest partition number and there is the subregion of configuration file and judge whether it is legal, if matching somebody with somebody Put that file is legal, then using the parameter setting imprinting in configuration file and time shift subregion, if configuration file is illegal, select Maximum Free Partition is configured;
S6. judge whether remaining subregion has illegal configuration, if then copying REC_TS_Part_Select.txt configuration files To respective partition, and terminate configuration;If otherwise directly terminating configuration.
As a further improvement on the present invention, in the step S5, if configuration file is illegal, judge that remaining subregion is It is no to have configuration readable, step S5 is repeated if readable, step S4 is performed if unreadable.
As a further improvement on the present invention, the form of the configuration file is:
REC-Front_Rear:Front
REC-Partition:2
TS-Front_Rear:Front
TS-Partition:2
Wherein REC-Front_Rear and TS-Front_Rear arranges value can be:Front/Rear/Undefined.
As a further improvement on the present invention, the lawful condition in the step S5 is:
A. the call format of configuration file is met;
B.REC-Front_Rear and TS-Front_Rear arranges value can not be other invalid values;
C.REC-Partition and TS-Partition partition number is set no more than the maximum number of partitions of hard disk or other nothings Valid value.
As a further improvement on the present invention, second hard disk is inserted in the set top box with former and later two USB interfaces, Including following configuration step:
T1. judge it is which USB port accesses and is labeled as Front or Rear;
T2. hard disc apparatus ID and number of partitions are read;
T3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if configuration File is not present, then performs step T4, if configuration file is present, performs step T5;
T4. using the configuration of first hard disk, imprinting or time shift terminate after by setting interface manual modification configuration file, and Terminate configuration;
T5. from smallest partition number and exist configuration file subregion read configuration file and judge whether it is legal, if not conforming to rule Judge whether remaining zone configuration is readable, the repeat step T5 if readable, if unreadable, performs step T4;If legal, with Whether consistent the configuration information of first hard disk compares, and the configuration conflict if inconsistent carries out clash handle, is performed if consistent Step T4.
As a further improvement on the present invention, in the step T5, if the configuration file finally read and first hard disk Configuration information comparative result it is inconsistent, then configuration conflict and perform step T6;
T6. judge whether user carries out imprinting or time shift operation, if step T4 is then performed, if otherwise performing step T7;
T7. ejection prompting frame prompting user has conflict to occur, if set manually, sets interface to carry out if then entering Set manually, and by configuration information update into hard disk configuration file, if otherwise performing step T4.
As a further improvement on the present invention, user is set manually into setting interface in the step T7, and sentences It is disconnected that whether success is set, if then in correspondence subregion modification REC_TS_Part_Select.txt configuration files, if otherwise using Maximum Free Partition in two hard disks, and change REC_TS_Part_Select.txt configuration files.
As a further improvement on the present invention, REC_TS_Part_Select.txt configuration files are changed in the step T7 Afterwards, judge whether remaining subregion has illegal configuration, if then copying REC_TS_Part_Select.txt configuration files to phase Subregion is answered, and terminates configuration;If otherwise directly terminating configuration.
As a further improvement on the present invention, imprinting and time shift subregion are arranged on by manual configuration simultaneously in the step T4 Same subregion is separately positioned on different subregions.
The beneficial effects of the invention are as follows:The program is kept away by configuration file and specific algorithm management former and later two hard disks Exempt from user in use when it is front and rear respectively insertion hard disk or use during plug hard disk or set top box restart when, go out Existing subregion change influence actual use, the usage experience of significant increase user.
Brief description of the drawings
Fig. 1 is the step flow chart of first hard disk of insertion in a kind of double USB management methods of set top box of the invention;
Fig. 2 is the step flow chart of second hard disk of insertion in a kind of double USB management methods of set top box of the invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.
Embodiment one:
As shown in figure 1, the situation of first hard disk of insertion is as follows.
The double USB management methods of the set top box insert first hard disk in the set top box with former and later two USB interfaces, wrap Include following configuration step:
S1. judge it is which USB port accesses and is labeled as Front or Rear;
S2. hard disc apparatus ID and number of partitions are read;
S3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if not having Configuration file, then perform step S4, if there is configuration file, performs step S5;
S4. the space of all subregions of hard disk is calculated, the size of remaining space is compared one by one, point in maximum residual space is selected Area, creates REC_TS_Part_Select.txt configuration files, and terminate configuration;
S5. read configuration file since smallest partition number and there is the subregion of configuration file and judge whether it is legal, if matching somebody with somebody Put that file is legal, then using the parameter setting imprinting in configuration file and time shift subregion, if configuration file is illegal, select Maximum Free Partition is configured;
S6. judge whether remaining subregion has illegal configuration, if then copying REC_TS_Part_Select.txt configuration files To respective partition, and terminate configuration;If otherwise directly terminating configuration.
Specifically, in step S5, if configuration file is illegal, judging whether remaining subregion has configuration readable, if readable Step S5 is then repeated, step S4 is performed if unreadable.
Lawful condition in step S5 is:
A. the call format of configuration file is met;
B.REC-Front_Rear and TS-Front_Rear arranges value can not be other invalid values;
C.REC-Partition and TS-Partition partition number is set no more than the maximum number of partitions of hard disk or other nothings Valid value.
The form of configuration file is:
REC-Front_Rear:Front
REC-Partition:2
TS-Front_Rear:Front
TS-Partition:2
Wherein, REC-Front_Rear and TS-Front_Rear arranges value can be:Front/Rear/Undefined.
Embodiment two:
As shown in Fig. 2 the situation of second hard disk of insertion is as follows.
Second hard disk, including following configuration step are inserted in the set top box with former and later two USB interfaces:
T1. judge it is which USB port accesses and is labeled as Front or Rear;
T2. hard disc apparatus ID and number of partitions are read;
T3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if configuration File is not present, then performs step T4, if configuration file is present, performs step T5;
T4. using the configuration of first hard disk, imprinting or time shift terminate rear manual configuration, and terminate configuration;
T5. from smallest partition number and exist configuration file subregion read configuration file and judge whether it is legal, if not conforming to rule Judge whether remaining zone configuration is readable, the repeat step T5 if readable, if unreadable, performs step T4;If legal, with Whether consistent the configuration information of first hard disk compares, and the configuration conflict if inconsistent carries out clash handle, is performed if consistent Step T4.
In step T5, if the configuration information comparative result of the configuration file finally read and first hard disk is inconsistent, Configuration conflict simultaneously performs step T6;
T6. judge whether user carries out imprinting or time shift operation, if then performing step not influence the operation of user T4, if otherwise performing step T7;
T7. ejection prompting frame prompting user has conflict to occur, if set manually, sets interface to carry out if then entering Set manually, and by configuration information update into hard disk configuration file, if otherwise performing step T4.
Into setting interface to carry out in order to avoid influenceing now timing recording function before relative set, acquiescence selects two first Maximum Free Partition in individual hard disk.
User, which enters, in step T7 sets interface to be set manually, and judges whether to set successfully, if then in correspondence Subregion changes REC_TS_Part_Select.txt configuration files, if otherwise using Free Partition maximum in two hard disks, and Change REC_TS_Part_Select.txt configuration files.
Changed in step T7 after REC_TS_Part_Select.txt configuration files, judge whether remaining subregion has illegal Configuration, if then copy REC_TS_Part_Select.txt configuration files are to respective partition, and terminates configuration;If otherwise direct Terminate configuration.
User's manual configuration situation, user can have chosen below:
Imprinting and time shift subregion are arranged on same subregion simultaneously;
Imprinting or time shift subregion are individually set in two different subregions of hard disk.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (9)

1. the double USB management methods of a kind of set top box, it is characterised in that inserted in the set top box with former and later two USB interfaces First hard disk, including following configuration step:
S1. judge it is which USB port accesses and is labeled as Front or Rear;
S2. hard disc apparatus ID and number of partitions are read;
S3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if not having Configuration file, then perform step S4, if there is configuration file, performs step S5;
S4. the space of all subregions of hard disk is calculated, the size of remaining space is compared one by one, point in maximum residual space is selected Area, creates REC_TS_Part_Select.txt configuration files, and perform step S6;
S5. read configuration file since smallest partition number and there is the subregion of configuration file and judge whether it is legal, if matching somebody with somebody Put that file is legal, then using the parameter setting imprinting in configuration file and time shift subregion, and step S6 is performed, if configuration file It is illegal, then select maximum Free Partition to be configured;
S6. judge whether remaining subregion has illegal configuration, if then copying REC_TS_Part_Select.txt configuration files To respective partition, and terminate configuration;If otherwise directly terminating configuration.
2. the double USB management methods of set top box according to claim 1, it is characterised in that in the step S5, if configuration text Part is illegal, then judges whether remaining subregion has configuration readable, and step S5 is repeated if readable, step is performed if unreadable Rapid S4.
3. the double USB management methods of set top box according to claim 1, it is characterised in that the form of the configuration file is:
REC-Front_Rear:Front
REC-Partition:2
TS-Front_Rear:Front
TS-Partition:2
Wherein REC-Front_Rear and TS-Front_Rear arranges value can be:Front/Rear/Undefined.
4. the double USB management methods of set top box according to claim 3, it is characterised in that the legal bar in the step S5 Part is:
A. the call format of configuration file is met;
B.REC-Front_Rear and TS-Front_Rear arranges value can not be other invalid values;
C.REC-Partition and TS-Partition partition number is set no more than the maximum number of partitions of hard disk or other nothings Valid value.
5. the double USB management methods of set top box according to claim 1, it is characterised in that with former and later two USB interfaces Set top box in insert second hard disk, including following configuration step:
T1. judge it is which USB port accesses and is labeled as Front or Rear;
T2. hard disc apparatus ID and number of partitions are read;
T3. all subregions are traveled through and judge to whether there is REC_TS_Part_Select.txt configuration files in subregion, if configuration File is not present, then performs step T4, if configuration file is present, performs step T5;
T4. using the configuration of first hard disk, imprinting or time shift terminate after by setting interface manual modification configuration file, and tie Beam is configured;
T5. from smallest partition number and exist configuration file subregion read configuration file and judge whether it is legal, if not conforming to rule Judge whether remaining zone configuration is readable, the repeat step T5 if readable, if unreadable, performs step T4;If legal, with Whether consistent the configuration information of first hard disk compares, and the configuration conflict if inconsistent carries out clash handle, is performed if consistent Step T4.
6. the double USB management methods of set top box according to claim 5, it is characterised in that in the step T5, if final read The configuration information comparative result of the configuration file taken and first hard disk is inconsistent, then configuration conflict and performs step T6;
T6. judge whether user carries out imprinting or time shift operation, if step T4 is then performed, if otherwise performing step T7;
T7. ejection prompting frame prompting user has conflict to occur, if set manually, sets interface to carry out if then entering Set manually, and by configuration information update into hard disk configuration file, if otherwise performing step T4.
7. the double USB management methods of set top box according to claim 6, it is characterised in that user enters in the step T7 Set interface to be set manually, and judge whether to set successfully, if then in correspondence subregion modification REC_TS_Part_ Select.txt configuration files, if otherwise using Free Partition maximum in two hard disks, and change REC_TS_Part_ Select.txt configuration files.
8. the double USB management methods of set top box according to claim 7, it is characterised in that change REC_ in the step T7 After TS_Part_Select.txt configuration files, judge whether remaining subregion has illegal configuration, if then copying REC_TS_ Part_Select.txt configuration files terminate configuration to respective partition;If otherwise directly terminating configuration.
9. the double USB management methods of set top box according to claim 5, it is characterised in that manual configuration in the step T4 Imprinting and time shift subregion are arranged on same subregion simultaneously or different subregions are separately positioned on.
CN201710470960.8A 2017-06-20 2017-06-20 A kind of double USB management methods of set top box Pending CN107333178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710470960.8A CN107333178A (en) 2017-06-20 2017-06-20 A kind of double USB management methods of set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710470960.8A CN107333178A (en) 2017-06-20 2017-06-20 A kind of double USB management methods of set top box

Publications (1)

Publication Number Publication Date
CN107333178A true CN107333178A (en) 2017-11-07

Family

ID=60194216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710470960.8A Pending CN107333178A (en) 2017-06-20 2017-06-20 A kind of double USB management methods of set top box

Country Status (1)

Country Link
CN (1) CN107333178A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093888A1 (en) * 2009-10-21 2011-04-21 John Araki User selection interface for interactive digital television
CN102929787A (en) * 2011-09-12 2013-02-13 微软公司 Allocation strategies for storage device sets
CN104778222A (en) * 2015-03-23 2015-07-15 四川长虹电器股份有限公司 Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093888A1 (en) * 2009-10-21 2011-04-21 John Araki User selection interface for interactive digital television
CN102929787A (en) * 2011-09-12 2013-02-13 微软公司 Allocation strategies for storage device sets
CN104778222A (en) * 2015-03-23 2015-07-15 四川长虹电器股份有限公司 Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment

Similar Documents

Publication Publication Date Title
US8600064B2 (en) Apparatus, method, and computer program product for processing information
CN101281468B (en) Method and apparatus for generating firmware update file and updating firmware by using the firmware update file
EP1133849B1 (en) Method and device for generating an encoded user data stream and method and device for decoding such a data stream
EP1151561B1 (en) Method and device for generating a data stream and method and device for playing back a data stream
EP3232364B1 (en) Image encryption method, image viewing method, terminals and computer storage media
JP2017517176A5 (en)
US9178702B2 (en) Revocation list generation device, revocation list generation method, and content management system
CN107609416A (en) Safe encryption method, system, computer installation and the computer-readable recording medium of user data
BRPI0504290A (en) process for secure data transmission
CN102693399A (en) System and method for on-line separation and recovery of electronic documents
KR20080112010A (en) Apparatus and method for authenticating firmware
CN105989304A (en) File storage method, file reading method, file storage apparatus and file reading apparatus
CN103189876B (en) The mandate of software product is determined based on the first and second grant item
CN104156673B (en) File processing method and device
CN107333178A (en) A kind of double USB management methods of set top box
CN101656087A (en) Information processing apparatus, disk, information processing method, and program
US20160048098A1 (en) Updating a supported-supplies database of an image forming apparatus
JP2003169048A5 (en)
CN112685698A (en) Software authorization method and system based on USB Key
CN107423631A (en) A kind of database encipher-decipher method and device
CN109446827A (en) Data encryption/decryption method and system
JP4376587B2 (en) Access history recording device and access control device
CN106485158A (en) A kind of transparent encryption method based on hdfs and system
CN106454409A (en) Encrypting method and device of multimedia document
US20100070416A1 (en) Digital rights management license identification

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200721

AD01 Patent right deemed abandoned