Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The present embodiment provides a kind of discharging method of Android system intelligent television external storage equipment, and for removing the external storage equipment on the intelligent television adopting Android system, this external storage equipment is such as USB flash disk or mobile phone etc.The executive agent of the present embodiment is the discharge mechanism of Android system intelligent television external storage equipment, and the discharge mechanism of this Android system intelligent television external storage equipment can be arranged in intelligent television.
Wherein, Android system realizes based on Linux, and Linux is Monolithic Kernel (monolithickernel) system.Kernel refers to the systems soft ware that provides the functions such as the control of hardware abstraction layer, disk and file system, multitask.The primary clustering of kernel divides following components: storage administration, CPU and management of process, file system, equipment control, device drives, network service, and the initialization of system, system call etc.
Unloading operation in various embodiments of the present invention, all refer to the program file and file of deleting external storage equipment from TV and delete the operation of related data from registration table, the disk space that release external storage equipment took originally also makes the software of external storage equipment no longer be present in TV or deletes corresponding external storage equipment driver from hard disk and delete to drive relevant registry information with external storage equipment.
As shown in Figure 1, be the schematic flow sheet of the discharging method of the Android system intelligent television external storage equipment according to the present embodiment.The discharging method of this Android system intelligent television external storage equipment comprises:
Step 101, receives the TV remote instruction that television remote control device sends.
Television remote control device is the equipment for RTV remote television, such as TV remote controller, and user can control TV by television remote control device, such as, regulate the size of the volume of TV, turntable or the brightness regulating TV etc.TV remote instruction can comprise ultra-red order, Bluetooth commands or radio frequency command, alternate manner certainly can also be adopted to realize TV remote instruction, specifically can set according to actual needs.
Step 102, judges that whether TV remote instruction is the unloading command of unloading external connection memory device, if the determination result is YES, then sends order with the unloading operation performing external storage equipment to kernel-driven layer.
The TV remote instruction sent due to television remote control device can be various instruction, first will judge received TV remote instruction whether unloading command in the present embodiment.
The method being sent TV remote instruction by television remote control device has a lot, for example:
First kind of way: TV remote instruction, for clicking signal, now judges that whether TV remote instruction is that the unloading command of unloading external connection memory device comprises:
Judge that whether key assignments in TV remote instruction is the one in following key assignments: default key assignments, comprise the combination key assignments of at least two key assignments;
If so, then determine that TV remote instruction is the unloading command of unloading external connection memory device.
Television remote control device can be arranged a button, as long as user presses this button, the TV remote instruction of transmission is exactly unloading command, specifically can judge according to the key assignments of this button be carried in TV remote instruction.
Certainly, also can not change the hardware button structure of TV remote control equipment, but send unloading command by the combination of button.Such as, press "+" key and "-" key of television remote control device being used for controlling volume simultaneously, two key assignments are carried in the TV remote instruction that now television remote control device sends, the unloading command when discharge mechanism of Android system intelligent television external storage equipment can judge this TV remote instruction by this key assignment combination, and then perform unloading equipment.
The second way: TV remote instruction is that the length of programmable button is by signal.
When sending the button of unloading command with the head of a household by being specifically designed to, send TV remote instruction, first the discharge mechanism of Android system intelligent television external storage equipment just determines whether long by signal, if judged result is yes, then determine whether unloading command according to the key assignments in TV remote instruction.
Specifically how to identify that TV remote instruction is clicked signal or grows by signal, can be judged by the harbour in TV remote instruction, if the quantity of harbour exceedes predetermined threshold value, then belong to long by signal, otherwise belong to and click signal, how to identify and click that signal is still long belongs to prior art by signal, do not repeat them here.
Certainly, unloading command can also be sent by other means, such as, the shortcut being used for unloading external connection memory device is set in advance in television interfaces, when user clicks this shortcut by the mouse connecting TV, the discharge mechanism of Android system intelligent television external storage equipment receive unloading command and perform external storage equipment remove operation, or in choice menus, add the option of access customer unloading external connection memory device, when user selects this option by television remote control device, the discharge mechanism of Android system intelligent television external storage equipment receive unloading command and perform external storage equipment remove operation.
In addition, during the discharge mechanism unloading external connection memory device of Android system intelligent television external storage equipment, the operations such as the system process of closing external storage equipment can be performed, to be unloaded completely by external storage equipment, concrete uninstall process belongs to prior art, does not repeat them here.
Wherein, the order that kernel-driven layer receives can be the unloading command that discharge mechanism forwards.
Alternatively, after judging that described TV remote instruction is the unloading command of unloading external connection memory device, and before the unloading operation performing described external storage equipment, also comprise: whether occupiedly detect described external storage equipment, if described external storage equipment is occupied, then to the current progress information taking described external storage equipment of inner nuclear layer driver inquiry, according to the described progress information inquired, releasing process takies described external storage equipment.The object of this operation is the unloading success in order to ensure external storage equipment, generally, when external storage equipment is occupied, can not directly be unloaded, therefore, need to carry out orange juice by what take external storage equipment, and then perform unloading operation, to guarantee unloading operation success as far as possible.
Step 103, shows the first information, and the first information unloads for pointing out user's external storage equipment, can remove external storage equipment from TV.
This first information can be specifically " external storage equipment is unloaded ", after user sees this first prompting, just can extract external storage equipment from TV.According to the discharging method of the Android system intelligent television external storage equipment of the present embodiment, send unloading command by television remote control device and control kernel-driven layer to unload the external storage equipment on TV, external storage equipment is removed again by display first information prompting user, like this, external storage equipment is removing after unloading operation, after deletion action, the operation of the program file of external storage equipment and the related data of registration table all can corresponding removing, now by the first prompting message, the removable property of prompting user external storage equipment, therefore, pass through the present invention, when removing the external storage equipment of intelligent television or exit, can ensure that the working procedure of external storage equipment exits completely, avoid directly extracting the file system of damaging external storage equipment and file wherein as far as possible, and then guarantee that external storage equipment can normally use again, extend its useful life.
Embodiment two
The present embodiment does further supplementary notes to above-described embodiment.
As shown in Figure 2, be the schematic flow sheet of the discharging method of the Android system intelligent television external storage equipment according to the present embodiment.The discharging method of this Android system intelligent television external storage equipment comprises:
Step 201, receives the TV remote instruction that television remote control device sends, transfers step 202 to.
This step is consistent with step 101, does not repeat them here.
Step 202, judges that whether TV remote instruction is the unloading command of unloading external connection memory device, if the determination result is YES, then transfers step 203 to.
How the discharge mechanism of Android system intelligent television external storage equipment judges that whether TV remote instruction is that the unloading command of unloading external connection memory device is consistent with above-described embodiment, does not repeat them here.Certainly, while judging whether TV remote instruction is unloading command, just can judge that this TV remote instruction is any instruction, corresponding operation can be performed, such as, regulate volume, regulate the operations such as brightness.
Step 203, show the second information, second information determines whether unloading external connection memory device for pointing out user, and judge whether the instruction that user returns is the instruction determining unloading external connection memory device, if receive the instruction of the determination unloading external connection memory device that user returns according to the second information, then transfer step 204 to, otherwise transfer step 206 to.
Touch television remote control device by mistake to prevent user and then send unloading command, the second information can be shown after receiving unloading command, if user confirms to need unloading external connection memory device, then unloading operation is carried out to external storage equipment, otherwise, do not perform any operation, like this, the misoperation of user can be avoided.
Step 204, sends order with the unloading operation performing external storage equipment to kernel-driven layer.
Such as, during the discharge mechanism unloading external connection memory device of Android system intelligent television external storage equipment, first can close the system process of external storage equipment, then carry out discharging the operations such as the buffer memory that is assigned with of external storage equipment and address, external storage equipment is unloaded completely.
Step 205, shows the first information, and the first information unloads for pointing out user's external storage equipment, can remove external storage equipment from TV.
This step is consistent with step 103, does not repeat them here.
Step 206, does not perform any operation.
According to the discharging method of the Android system intelligent television external storage equipment of the present embodiment, unloading external connection memory device whether is determined by showing the second information prompting user, the unloading operation of external storage equipment is just performed after receiving the comformed information that user returns, the file system and the file wherein that damage external storage equipment can either be avoided as far as possible, and then guarantee that external storage equipment can normally use again, the misoperation of user can be avoided again as far as possible, and then avoid extracting the operation that external storage equipment reinserts again before user also needs to go to TV after external storage equipment unloading.
Embodiment three
The present embodiment does further supplementary notes to above-described embodiment.
As shown in Figure 3, be the schematic flow sheet of the discharging method of the Android system intelligent television external storage equipment according to the present embodiment.The discharging method of this Android system intelligent television external storage equipment comprises:
Step 301, receives the TV remote instruction that television remote control device sends, transfers step 302 to.
This step is consistent with step 101, does not repeat them here.
Step 302, judges that whether TV remote instruction is the unloading command of unloading external connection memory device, if the determination result is YES, then transfers step 303 to.
How the discharge mechanism of Android system intelligent television external storage equipment judges that whether TV remote instruction is that the unloading command of unloading external connection memory device is consistent with above-described embodiment, does not repeat them here.Certainly, while judging whether TV remote instruction is unloading command, just can judge that this TV remote instruction is any instruction, corresponding operation can be performed, such as, regulate volume, regulate the operations such as brightness.
Step 303, show the second information, second information determines whether unloading external connection memory device for pointing out user, and judge whether the instruction that user returns is the instruction determining unloading external connection memory device, if receive the instruction of the determination unloading external connection memory device that user returns according to the second information, then transfer step 304 to, otherwise transfer step 309 to.
Touch television remote control device by mistake to prevent user and then send unloading command, the second information can be shown after receiving unloading command, if user confirms to need unloading external connection memory device, then unloading operation is carried out to external storage equipment, otherwise, do not perform any operation, like this, the misoperation of user can be avoided.
It is noted that in the present embodiment, step 303 can not perform, and namely directly can transfer to from step 302 and perform step 304.
Step 304, sends order with the unloading operation performing external storage equipment to kernel-driven layer, transfers step 305 to.
Such as, during the discharge mechanism unloading external connection memory device of Android system intelligent television external storage equipment, first can close the system process of external storage equipment, then carry out discharging the operations such as the buffer memory that is assigned with of external storage equipment and address, external storage equipment is unloaded completely.
Step 305, judges that whether the unloading operation of external storage equipment is successful, if the determination result is YES, then transfers step 306 to, if judged result is no, then transfer step 307 to.
The discharge mechanism of Android system intelligent television external storage equipment can by scanning TV to determine in TV whether with the document, the process that remain external storage equipment and associate, if do not had, then judge the unloading operation success of external storage equipment, otherwise the unloading operation of external storage equipment is unsuccessful.
Step 306, shows the first information, and the first information unloads for pointing out user's external storage equipment, can remove external storage equipment from TV.
This step is consistent with step 103, does not repeat them here.
Step 307, judges whether the unsuccessful number of times of the unloading operation of external storage equipment reaches preset times, if judged result is no, then returns and performs step 304, otherwise transfer step 308 to.
Step 308, display the 3rd information, the 3rd information cannot unload for pointing out user's external storage equipment.
If the unloading operation of external storage equipment is unsuccessful, then return the step of the unloading operation performing external storage equipment, until the unsuccessful number of times of the unloading operation of external storage equipment reaches preset times, then show the 3rd information, 3rd information uses for pointing out user's external storage equipment, temporarily cannot unload.Such as, from external storage equipment during copied files, although user is by closing of a file, the operation of copied files is still being carried out, the system process of external storage equipment still exists, and therefore likely occurs that multiple exercise unloading operation could unload successful situation.But when unloading number of times and reaching preset times, be likely just completely cannot the situation of unloading external connection memory device, therefore need to point out user.
The unloading of external storage equipment is unsuccessful, and may to be that external storage equipment is current be used, and such as, the video that the document in external storage equipment is in open mode or external storage equipment is play.Like this, if the discharge mechanism of Android system intelligent television external storage equipment does not have the authority of the current file used in positive closing external storage equipment, then the discharge mechanism of Android system intelligent television external storage equipment can only be wait for that user closes these files used voluntarily, now, just can show the 3rd information, to point out user's close document, then send unloading command.Certainly, generally, the device of external storage equipment does not all have the authority of the current file used in positive closing external storage equipment, to avoid the experience affecting user.
If the unsuccessful number of times of the unloading operation of external storage equipment reaches preset times, just can determine that current external storage equipment may be used, such as user is just at displaying video, when the discharge mechanism of Android system intelligent television external storage equipment does not configure and cuts out program that external storage equipment using by force, just there will be cannot the situation of unloading external connection memory device.Preset times can set according to actual needs, such as 3 times.3rd information of the present embodiment can be the content of " external storage equipment is used, and temporarily cannot remove ".After user sees this content, the mouse connecting TV can be utilized to carry out the content of manual-lock external storage equipment, and then again perform step 301; If TV does not connect the function of mouse, the current file be opened of external storage equipment can be closed by television remote control device; Certainly, user also can select closing television, and after TV is closed, now user pulls up external storage equipment from TV again and also can complete the operation that safety removes external storage equipment.
Step 309, does not perform any operation.
According to the discharging method of the Android system intelligent television external storage equipment of the present embodiment, inform that user cannot unloading external connection memory device by showing the 3rd information, corresponding operation is performed according to information to make user, such as, in closedown external storage equipment after the file of front opening, again send unloading command, the correct execution of unloading operation can be ensured further, to avoid the file system and the file wherein that damage external storage equipment as far as possible, and then guarantee that external storage equipment can normally use again.
Embodiment four
The present embodiment provides a kind of discharge mechanism of Android system intelligent television external storage equipment, for performing the discharging method of the Android system intelligent television external storage equipment of embodiment one.As shown in Figure 4 A, be the structural representation of the discharge mechanism of the Android system intelligent television external storage equipment according to the present embodiment.
The discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment comprises receiver module 401, judge module 402, Unload module 403 and the first display module 404.
Wherein, receiver module 401 is for receiving the TV remote instruction of television remote control device transmission; Judge module 402 is for judging that whether TV remote instruction is the unloading command of unloading external connection memory device; If Unload module 403 is yes for the judged result of judge module 402, then perform the unloading operation of external storage equipment; First display module 404 is for showing the first information, and the first information unloads for pointing out user's external storage equipment, can remove external storage equipment from TV.
Alternatively, TV remote instruction for clicking signal, judge module 402 specifically for:
Judge that whether key assignments in TV remote instruction is the one in following key assignments: default key assignments, comprise the combination key assignments of at least two key assignments;
If so, then determine that TV remote instruction is the unloading command of unloading external connection memory device.
Alternatively, TV remote instruction presses signal for long
Alternatively, Unload module 402 specifically for:
Call Linux intermediate layer or the Android intermediate layer release buffer memory that is assigned with of external storage equipment and address, stopping to power to external storage equipment and the driver of unloading external connection memory device.
Alternatively, as shown in Figure 4 B, the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment can also comprise detection module 410 and enquiry module 411, wherein, whether detection module 410 is occupied for detecting described external storage equipment, if described external storage equipment is occupied, then trigger enquiry module; Described enquiry module 411 is for inquiring about the current progress information taking described external storage equipment to inner nuclear layer driver, and according to the described progress information inquired, releasing process takies described external storage equipment.
The concrete operation method of the present embodiment is consistent with embodiment one, does not repeat them here.
According to the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment, send unloading command by television remote control device and unload external storage equipment on TV, external storage equipment is removed again by display first information prompting user, like this, external storage equipment is removing after unloading operation, after deletion action, the operation of the program file of external storage equipment and the related data of registration table all can corresponding removing, now by the first prompting message, the removable property of prompting user external storage equipment, therefore, pass through the present invention, when removing the external storage equipment of intelligent television or exit, can ensure that the working procedure of external storage equipment exits completely, avoid directly extracting the file system of damaging external storage equipment and file wherein, and then guarantee that external storage equipment can normally use again, extend its useful life.
Embodiment five
The discharge mechanism of the present embodiment to the Android system intelligent television external storage equipment of above-described embodiment does further supplementary notes.
The first display module in the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment also for:
Show the second information, the second information determines whether unloading external connection memory device for pointing out user;
If receive the instruction of the determination unloading external connection memory device that user returns according to the second information, then trigger the unloading operation performing external storage equipment.
Touch television remote control device by mistake to prevent user and then send unloading command, the second information can be shown after receiving unloading command, if user confirms to need unloading external connection memory device, then unloading operation be carried out to external storage equipment, like this, the misoperation of user can be avoided.
According to the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment, unloading external connection memory device whether is determined by showing the second information prompting user, the unloading operation of external storage equipment is just performed after receiving the comformed information that user returns, the file system and the file wherein that damage external storage equipment can either be avoided as far as possible, and then guarantee that external storage equipment can normally use again, the misoperation of user can be avoided again as far as possible, and then avoid extracting the operation that external storage equipment reinserts again before user also needs to go to TV after external storage equipment unloading.
Embodiment six
The discharge mechanism of the present embodiment to the Android system intelligent television external storage equipment of above-described embodiment does further supplementary notes.
Alternatively, the Unload module 402 of the present embodiment also for:
Judge that whether the unloading operation of external storage equipment is successful;
If the unloading operation success of external storage equipment, then trigger the first display module 404.
Alternatively, as shown in Figure 5, the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment also comprises the second display module 501.
If Unload module 402 judges that the unloading operation of external storage equipment is unsuccessful, then return the step of the unloading operation performing external storage equipment, if the unsuccessful number of times of the unloading operation of external storage equipment reaches preset times, then trigger the second display module 501, this second display module 501 is for showing the 3rd information, 3rd information uses for pointing out user's external storage equipment, temporarily cannot unload.
That is, if external storage equipment is successfully unloaded, then Unload module 402 triggers the first display module 404, otherwise, trigger the second display module 501.
According to the discharge mechanism of the Android system intelligent television external storage equipment of the present embodiment, inform that user cannot unloading external connection memory device by showing the 3rd information, corresponding operation is performed according to information to make user, such as, in closedown external storage equipment after the file of front opening, again send unloading command, the correct execution of unloading operation can be ensured further, to avoid the file system and the file wherein that damage external storage equipment as far as possible, and then guarantee that external storage equipment can normally use again.
The present invention also provided a kind of TV, comprised the discharge mechanism of the Android system intelligent television external storage equipment of above-mentioned any embodiment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.