CN102833609B - A kind of method of Set Top Box safety shutdown - Google Patents

A kind of method of Set Top Box safety shutdown Download PDF

Info

Publication number
CN102833609B
CN102833609B CN201210342300.9A CN201210342300A CN102833609B CN 102833609 B CN102833609 B CN 102833609B CN 201210342300 A CN201210342300 A CN 201210342300A CN 102833609 B CN102833609 B CN 102833609B
Authority
CN
China
Prior art keywords
top box
set top
described set
memory device
shutdown
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.)
Expired - Fee Related
Application number
CN201210342300.9A
Other languages
Chinese (zh)
Other versions
CN102833609A (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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201210342300.9A priority Critical patent/CN102833609B/en
Publication of CN102833609A publication Critical patent/CN102833609A/en
Application granted granted Critical
Publication of CN102833609B publication Critical patent/CN102833609B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a kind of method of Set Top Box safety shutdown, described method comprises the steps: that described Set Top Box receives the first shutdown command sent from remote controller; Described Set Top Box preserves the data message of user; Described Set Top Box judges whether to connect memory device; If described Set Top Box connects described memory device, then the instruction of memory device described in described Set Top Box shutoff operation; If described Set Top Box exists external equipment, then unload described external equipment; Described Set Top Box sends the second shutdown command to single-chip microcomputer; Described Set Top Box safety shutdown.Compared with prior art, the mode of Set Top Box safety shutdown provided by the invention communicates between single-chip microcomputer, adds the fail safe of Set Top Box shutdown, can not cause obliterated data because of direct power-off.User profile can be preserved safely or unload memory device safely, as USB flash disk etc.

Description

A kind of method of Set Top Box safety shutdown
Technical field
The present invention relates to digital television techniques field, more specifically, relate to a kind of method of Set Top Box safety shutdown.
Background technology
In recent years, China Digital TV industry particularly cable digital TV industry continue for the fast-developing impetus, and digital TV set-top box market and Digital Television Integral conversion synchronization develop, and market scale constantly increases.Therefore, Set Top Box is just becoming the requisite housed device of more and more user.
Set Top Box (STB) is the equipment connecting television set and outside source.Set Top Box can will be converted to the play content of TV programme by the digital signal compressed, corresponding TV programme can be play on a television set.Described digital signal can derive from cable, satellite antenna, broadband network or terrestrial broadcasting.Set Top Box such as, except except image in received television program and sound, can receiving data content, TV Guide, internet webpage, data broadcast and software download upgrading etc.
Wherein, bi-directional set-top box refers to the Set Top Box supporting that bilateral network is interconnected.The business function of general bi-directional set-top box coordinates with video request program head-end system, and for user provides video-on-demand service, namely user can carry out video request by bi-directional set-top box.If bi-directional set-top box to other service system, can also realize the functions such as browsing page, online game, receiving and dispatching mail, web download, video calling by the network interconnection.In addition, by DLNA technology, bi-directional set-top box can also support home interconnect function, and the multimedia between realization and the inner miscellaneous equipment of home network is shared.
The normal shutdown mode of current Set Top Box has two kinds: a kind of user of being oneself by Set Top Box power key shutdown or remote controller on treat that switch enters standby mode; Another kind is that user sets a unused time, such as evening 12 point, to set-top box meeting automatic stand-by, and there is the time underaction of setting or need to press remote controller in such shutdown mode, cause this function cannot play in use well universal, and cause the waste of the energy, if user fall asleep when especially the elderly sees program at home or busy go out to forget turn off Set Top Box, Set Top Box still in work, can waste electric energy like this, not meet the theory of the energy-saving and emission-reduction advocated now.
The shut-off function of Set Top Box becomes important all the more now.If Set Top Box can not safety shutdown normally, the data of user so may be caused to lose, the damage of hardware when serious, may be caused.When Set Top Box can not normal shutdown, can by cut off the electricity supply or the mode of infrared power-off carries out forced shutdown.But, cut off the electricity supply and infrared power-off mode all can not safety preservation user profile.
There is buffering area in linux system, when user operates USB flash disk (particularly write operation), can retain some data in the buffer memory of Linux system, if at this moment directly power-off, will cause the loss of this part data.If user operates hard disk, direct power-off, not only can obliterated data, can cause and damage hard disk magnetic track, cause hard disk to be scrapped after the time is long.
Summary of the invention
The method of a kind of Set Top Box safety shutdown of the present invention, it is characterized in that, described method comprises the steps:
1) described Set Top Box receives the first shutdown command sent from remote controller;
2) described Set Top Box preserves the data message of user;
3) described Set Top Box judges whether to connect memory device;
4) if described Set Top Box connects described memory device, then the instruction of memory device described in described Set Top Box shutoff operation;
5) if described Set Top Box exists external equipment, then described external equipment is unloaded;
6) described Set Top Box sends the second shutdown command to single-chip microcomputer;
7) described Set Top Box safety shutdown.
Preferably, judge whether in described Set Top Box to connect in the step of memory device, described Set Top Box checks the filec descriptor that whether there is described memory device in linux system partition table.
Preferably, the second shutdown command is the agreement between described Set Top Box and described single-chip microcomputer.
Preferably, described single-chip microcomputer is waited in the process of described second instruction, judges that time-out time was as 5 seconds, namely waits for that the time of described second instruction was more than 5 seconds, described single-chip microcomputer power-off.
Preferably, within the time of described 5 seconds, the data in the linux system buffer memory of described Set Top Box are write back in described memory device.
Preferably, the sync in the described linux system of described Set Top Box completes described data and writes back task.
Compared with prior art, the mode of Set Top Box safety shutdown provided by the invention communicates between single-chip microcomputer, adds the fail safe of Set Top Box shutdown, can not cause obliterated data because of direct power-off.User profile can be preserved safely or unload memory device safely, as USB flash disk etc.
Accompanying drawing explanation
Being convenient to make the present invention understand, describing specific embodiments of the invention by reference to the accompanying drawings now.
Fig. 1 shows the schematic flow sheet of the 6th step of a preferred embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing be preferred embodiment described in further detail the present invention.Corresponding relation in claim in constitutive requirements and embodiment between instantiation can illustration as follows.Here description intention is the instantiation confirming to describe in an embodiment for supporting the theme of stating in the claims, owing to describing example in an embodiment, does not mean that this instantiation does not represent constitutive requirements.On the contrary, even if contain the element characteristic of instantiation as corresponding constitutive requirements at this, do not mean that this instantiation does not represent other constitutive requirements any yet.
In addition, description does not here mean that all themes corresponding to the instantiation of stating in embodiment refer to all in the claims.In other words, this entity is not denied in description here, i.e. the instantiation that comprises of corresponding embodiment, but is not included in its any one claim, that is, can correction afterwards by division and the entity that may invent applied for or increase.
It should be noted that " system " means at this process be made up of two or more equipment.
Apparently, user terminal can be made up of personal computer.In addition, described user terminal can also by such as cell phone, other PDA(personal digital assistant any) instrument, AV(audio frequency and video) the CE(consumer-elcetronics devices of device, such as home electric (household electricity gasification) equipment) etc. form.
" network " means the mechanism being at least connected to two equipment, and wherein, an information can be sent to another equipment from an equipment.The equipment setting up communication via network can be separated from one another, also can be the internal module of a formation machine.
" communication " can represent radio communication and wire communication.But, can also be hybrid wireless and the communicating of wire communication, more specifically, take radio communication at certain section and take the communication of wire communication at another section.Equally, it also can be such communication: be wired from an equipment to the communication of another equipment, and rightabout communication is wireless.
The step of the Set Top Box safety shutdown of a preferred embodiment provided by the invention is as follows:
First, Set Top Box receives the shutdown command sent from user remote controller, and such as, described remote controller can be the infrared key assignments code of 16 systems.Then, Set Top Box preserves the data message of user.3rd step, Set Top Box judges whether to connect memory device, and described Set Top Box checks the filec descriptor that whether there is memory device in linux system partition table (such as :/proc/partitions), such as/sda.4th step, the instruction of memory device described in described Set Top Box shutoff operation.5th step, if there is external equipment in described Set Top Box, then this external equipment of safety unloading.6th step, described Set Top Box sends shutdown command to single-chip microcomputer, and described shutdown command is different from the shutdown command from described remote controller in the first step, and the shutdown command in the 6th step is the agreement between described Set Top Box and described single-chip microcomputer.Finally, described Set Top Box safety shutdown.
Fig. 1 shows the schematic flow sheet of the 6th step of a preferred embodiment of the present invention.Described single-chip microcomputer is waited in the process of upper strata instruction, judges that 5 seconds as time-out time, namely more than 5 seconds, and described single-chip microcomputer power-off.Through experimental verification, Set Top Box was the preservation that can complete relevant information in 5 seconds.Within this time of 5 seconds, mainly the data in linux system buffer memory are write back USB flash disk or hard disk.Under normal circumstances, the sync in linux system has been used for this task less than 1 second time used time.
Existing shutdown belongs to the shutdown mode of hardware power-off, and closedown method provided by the invention can the preservation of completing user information and exterior storage information before Set Top Box power-off.
Foregoing detailed description illustrates the various embodiments of system and/or process by embodiment and/or schematic diagram.With regard to these schematic diagrames and/or comprise with regard to one or more function and/or operation, it will be understood by those skilled in the art that each function in these schematic diagrames or embodiment and/or operation can by various hardware, software, firmware or in fact its combination in any come to realize individually and/or jointly.
Should be appreciated that, method described herein can combined with hardware or software, or the combination both combining in due course realizes.Therefore, method of the present invention, can adopt program code in tangible mediums such as being included in such as floppy disk, CD-ROM, hard disk drive or any other machinable medium (namely, instruction) form, wherein, when program code performs on programmable computers, computing equipment generally includes processor, this processor readable storage medium (comprising volatile memory and/or memory element), at least one input equipment and at least one output equipment.One or more program can such as, and by using API, reusable control etc. realize or utilize the process described in conjunction with the present invention.Such program preferably realizes with high level procedural or Object-Oriented Programming Language, to communicate with computer system.But if needed, this program can realize by assembler language or machine language.In any case, language can be compiler language or interpretative code, and combines with hardware implementing.
It should be noted that, the category of the scheme of the method for a kind of Set Top Box safety shutdown of the present invention includes but not limited to the combination in any between each part mentioned above.
Although illustrate and describe the present invention with reference to its preferred embodiment particularly, those skilled in the art will appreciate that the various change that can make in form and details and do not depart from the scope of the present invention described in appended claims.More than be described in detail in conjunction with specific embodiments of the invention, but be not limitation of the present invention.Every according to technical spirit of the present invention to any simple modification made for any of the above embodiments, all still belong to the scope of technical solution of the present invention.

Claims (1)

1. a method for Set Top Box safety shutdown, is characterized in that, described method comprises the steps:
Described Set Top Box receives the first shutdown command sent from remote controller;
Described Set Top Box preserves user profile and exterior storage information;
Described Set Top Box checks the filec descriptor/sda that whether there is memory device in linux system partition table/proc/partitions, judges whether to connect memory device;
If described Set Top Box connects described memory device, then the instruction of memory device described in described Set Top Box shutoff operation;
If described Set Top Box exists external equipment, then unload described external equipment;
Described Set Top Box sends the second shutdown command to single-chip microcomputer, and described second shutdown command is the agreement between described Set Top Box and described single-chip microcomputer;
Described second shutdown command waited for by described single-chip microcomputer, judges that time-out time was as 5 seconds;
Within the time of described 5 seconds, the data in the linux system buffer memory of described Set Top Box are write back in described memory device, the sync in the described linux system of described Set Top Box completes data and writes back task;
According to described second shutdown command or wait for that the time of described second shutdown command was more than 5 seconds, described single-chip microcomputer power-off; Described Set Top Box safety shutdown.
CN201210342300.9A 2012-09-17 2012-09-17 A kind of method of Set Top Box safety shutdown Expired - Fee Related CN102833609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210342300.9A CN102833609B (en) 2012-09-17 2012-09-17 A kind of method of Set Top Box safety shutdown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210342300.9A CN102833609B (en) 2012-09-17 2012-09-17 A kind of method of Set Top Box safety shutdown

Publications (2)

Publication Number Publication Date
CN102833609A CN102833609A (en) 2012-12-19
CN102833609B true CN102833609B (en) 2015-08-12

Family

ID=47336532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210342300.9A Expired - Fee Related CN102833609B (en) 2012-09-17 2012-09-17 A kind of method of Set Top Box safety shutdown

Country Status (1)

Country Link
CN (1) CN102833609B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592229B (en) * 2016-02-17 2019-09-10 青岛海信电器股份有限公司 The open and close machine processing method and processing device of terminal
CN108228109B (en) * 2018-01-17 2021-05-25 合肥联宝信息技术有限公司 Method and device for protecting data of electronic equipment and computer storage medium
CN111347414B (en) * 2018-12-21 2021-12-17 深圳市优必选科技有限公司 Robot shutdown control method and device and robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453622A (en) * 2007-11-30 2009-06-10 株式会社日立制作所 Digital playing apparatus and method for continuously playing interrupted television program
CN101860705A (en) * 2010-04-06 2010-10-13 福建新大陆通信科技股份有限公司 Method for implementing automatic on and off of digital television set-top box
CN102207875A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Media data playing device and rebooting method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453622A (en) * 2007-11-30 2009-06-10 株式会社日立制作所 Digital playing apparatus and method for continuously playing interrupted television program
CN102207875A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Media data playing device and rebooting method thereof
CN101860705A (en) * 2010-04-06 2010-10-13 福建新大陆通信科技股份有限公司 Method for implementing automatic on and off of digital television set-top box

Also Published As

Publication number Publication date
CN102833609A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
US9625968B2 (en) Method for operating multiple standby states and broadcast receiving apparatus using the same
WO2016029717A1 (en) Set top box and power consumption reduction method therefor and computer storage medium
CN102833609B (en) A kind of method of Set Top Box safety shutdown
CN204259055U (en) A kind of interconnection device of Web TV of tangible remote control
CN204259054U (en) A kind of interconnection device with the Web TV of anti-misoperation remote controller
CN204244415U (en) A kind of interconnection device of solar powered Web TV
CN204244417U (en) A kind of interconnection device of distance type Web TV
CN204259057U (en) A kind of interconnection device of the Web TV with LCDs
CN204259046U (en) A kind of can the interconnection device of Web TV of display remoting
CN204259059U (en) A kind of interconnection device with the Web TV of turning-cover type remote controller
CN204259070U (en) A kind of interconnection device with the Web TV of anti-misoperation remote controller
CN204259038U (en) A kind of interconnection device with the Web TV of anti-misoperation remote controller
CN204244419U (en) A kind of interconnection device of solar powered Web TV
CN204259078U (en) A kind of interconnection device with the Web TV of anti-skidding remote controller
CN204259064U (en) A kind of interconnection device of the Web TV with adjustable support
CN204244426U (en) A kind of interconnection device of Web TV of Suspensible
CN204259063U (en) A kind of interconnection device of the Web TV with LCDs
CN204350214U (en) A kind of interconnection device of distance type Web TV
CN204259087U (en) A kind of interconnection device of Web TV of tactile keyboard
CN204259045U (en) A kind of interconnection device of Web TV
CN204259075U (en) A kind of interconnection device of the Web TV with LCDs
CN104602069A (en) Networking device of network television having misoperation prevention remote controller
CN204425540U (en) A kind of interconnection device of Web TV of tangible remote control
CN204425541U (en) A kind of interconnection device of the Web TV with storage playback function
CN204244401U (en) A kind of interconnection device of Web TV of tactile keyboard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: LESHI ZHIXIN ELECTRONIC TECHNOLOGY (TIANJIN) CO.,

Free format text: FORMER OWNER: LETV INFORMATION TECHNOLOGY (BEIJING) CO., LTD.

Effective date: 20130520

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100026 HAIDIAN, BEIJING TO: 300467 TANGGU, TIANJIN

TA01 Transfer of patent application right

Effective date of registration: 20130520

Address after: 300467, Tianjin District, Tianjin City, Tanggu animation road 126 No. 201-427 animation building B1 district two

Applicant after: LESHI ZHIXIN ELECTRONIC SCIENCE & TECHNOLOGY (TIANJIN) CO., LTD.

Address before: Room six, building 19, building 68, No. 100026 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150812

Termination date: 20170917

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