Summary of the invention
Embodiments of the invention provide a kind of method and the intelligent television that enter debugging mode, can enter each debugging mode fast, thus improve debugging efficiency, shorten debugging cycle.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of method entering debugging mode, comprising:
Receive the first instruction that remote controller sends, described first instruction is used to indicate and arranges the value of the first universal input/output GPIO pin and the value of the second GPIO pin;
According to described first instruction, the value of described first GPIO pin and the value of described second GPIO pin are set;
According to the value of the value of described first GPIO pin after arranging and described second GPIO pin after arranging, enter with arrange after the value of described first GPIO pin and debugging mode corresponding to the value of described second GPIO pin after arranging.
In the first possible implementation of first aspect, described first instruction comprises: start-up command, AccessPort instruction, fast startup brush machine instruction and the instruction of reparation brush machine.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, described according to described first instruction, the value of described first GPIO pin and the value of described second GPIO pin are set, specifically comprise:
If described first instruction is described start-up command, then according to described start-up command, the value of described first GPIO pin is set for " 0 ", the value of described second GPIO pin is set for " 0 "; Or,
If described first instruction is described AccessPort instruction, then according to described AccessPort instruction, the value of described first GPIO pin is set for " 0 ", the value of described second GPIO pin is set for " 1 "; Or,
If described first instruction is the instruction of described quick startup brush machine, then according to the instruction of described quick startup brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 0 "; Or,
If described first instruction is the instruction of described reparation brush machine, then according to the instruction of described reparation brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 1 ".
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible, described debugging mode comprises: power on mode, AccessPort pattern, fast startup brush machine pattern and reparation brush machine pattern,
Wherein, the value of the described value according to described first GPIO pin after arranging and described second GPIO pin after arranging, enter with arrange after the value of described first GPIO pin and debugging mode corresponding to the value of described second GPIO pin after arranging, specifically comprise:
If the value of described first GPIO pin after arranging is " 0 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described power on mode corresponding with " 00 "; Or,
If the value of described first GPIO pin after arranging is " 0 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described AccessPort pattern corresponding with " 01 "; Or,
If the value of described first GPIO pin after arranging is " 1 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described quick startup brush machine pattern corresponding with " 10 "; Or,
If the value of described first GPIO pin after arranging is " 1 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described reparation brush machine pattern corresponding with " 11 ".
In conjunction with the first possible implementation of aforesaid first aspect or first aspect to any one implementation in the third possible implementation, in the 4th kind of possible implementation,
Described first instruction is the key value of at least one button preset in described remote controller.
Second aspect, the embodiment of the present invention provides a kind of intelligent television, comprising:
Receiving element, for receiving the first instruction that remote controller sends, described first instruction is used to indicate the value of value and the second GPIO pin arranging the first GPIO pin;
Setting unit, for described first instruction received according to described receiving element, arranges the value of described first GPIO pin and the value of described second GPIO pin;
Enter unit, for the value of the value of described first GPIO pin after arranging according to described setting unit and described second GPIO pin after arranging, enter with arrange after the value of described first GPIO pin and debugging mode corresponding to the value of described second GPIO pin after arranging.
In the first possible implementation of second aspect,
Described first instruction that described receiving element receives comprises: start-up command, AccessPort instruction, fast startup brush machine instruction and the instruction of reparation brush machine.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible,
Described setting unit, if be described start-up command specifically for described first instruction of described receiving element reception, then according to described start-up command, arrange the value of described first GPIO pin for " 0 ", arranges the value of described second GPIO pin for " 0 "; Or,
If described first instruction that described receiving element receives is described AccessPort instruction, then according to described AccessPort instruction, the value of described first GPIO pin is set for " 0 ", the value of described second GPIO pin is set for " 1 "; Or,
If described first instruction that described receiving element receives is the instruction of described quick startup brush machine, then according to the instruction of described quick startup brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 0 "; Or,
If described first instruction that described receiving element receives is the instruction of described reparation brush machine, then according to the instruction of described reparation brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 1 ".
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, described in enter the described debugging mode that unit enters and comprise: power on mode, AccessPort pattern, start brush machine pattern and repair brush machine pattern fast,
Wherein, described in enter unit, if the value of described first GPIO pin after arranging specifically for described setting unit is " 0 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described power on mode corresponding with " 00 "; Or,
If the value of described first GPIO pin after described setting unit is arranged is " 0 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described AccessPort pattern corresponding with " 01 "; Or,
If the value of described first GPIO pin after described setting unit is arranged is " 1 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described quick startup brush machine pattern corresponding with " 10 "; Or,
If the value of described first GPIO pin after described setting unit is arranged is " 1 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described reparation brush machine pattern corresponding with " 11 ".
In conjunction with the first possible implementation of aforesaid second aspect or second aspect to any one implementation in the third possible implementation, in the 4th kind of possible implementation,
Described first instruction that described receiving element receives is the key value of at least one button preset in described remote controller.
Method and the intelligent television of what the embodiment of the present invention provided enter debugging mode, by receiving the first instruction that remote controller sends, first instruction is used to indicate the value of value and the second GPIO pin arranging the first GPIO pin, and according to the first instruction, the value of the first GPIO pin and the value of the second GPIO pin are set, and according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.Pass through the program, due to intelligent television can according to user use a teleswitch send instruction, by arranging the value of corresponding GPIO pin, to enter each corresponding different debugging mode, and without the need to repeatedly entering certain debugging mode with duration by the several button of certain on intelligent television body according to user, therefore, it is possible to enter each debugging mode fast, thus improve debugging efficiency, shorten debugging cycle.
Embodiment
Below in conjunction with accompanying drawing to the embodiment of the present invention provide a kind of enter debugging mode method and intelligent television be described in detail.
Embodiment one
The embodiment of the present invention provides a kind of method entering debugging mode, as shown in Figure 1, comprising:
S101, intelligent television receive the first instruction that remote controller sends, and wherein, the first instruction can be used for indicating intelligent TV and arranges a GPIO(GeneralPurposeInputOutput, universal input/output) value of pin and the value of the second GPIO pin.
In intelligent television development process, commissioning staff need carry out various debugging to intelligent television.What the embodiment of the present invention provided enters in the method for debugging mode, intelligent television can receive commissioning staff use a teleswitch send the first instruction, and according to this first instruction, by arranging the value of the first GPIO pin and the value of the second GPIO pin, to enter corresponding debugging mode, wherein, the first instruction can be used for indicating intelligent TV and arranges the value of the first GPIO pin and the value of the second GPIO pin.
It will be appreciated by those skilled in the art that, GPIO can be called bus extender, it utilizes industrial standard I2C(Inter-IntegratedCircuit, internal integrated circuit) bus, SMBus(SystemManagementBus, System Management Bus) or SPI(SerialPeripheralInterface, Serial Peripheral Interface (SPI)) simplify the expansion of I/O mouth.When microcontroller or chipset do not have enough I/O ports, or when system needs adopt far-end serial communication or control, GPIO product can provide extra control & monitor function.
It should be noted that, above-mentioned first GPIO pin and the second GPIO pin can be what preset.First instruction can be the key value of at least one button preset in remote controller, and wherein, above-mentioned remote controller can be Infrared remote controller.
Further, due to the characteristic of android system, except commissioning staff can debug intelligent television in intelligent television development process, domestic consumer also can obtain brush machine software kit from the manufacturer of intelligent television and carry out brush machine voluntarily.The method of what the embodiment of the present invention provided enter debugging mode can make commissioning staff and domestic consumer enter debugging mode rapidly to debug intelligent television, and can switch under each debugging mode easily, thus improve debugging efficiency, shorten debugging cycle.
S102, intelligent television, according to the first instruction, arrange the value of the first GPIO pin and the value of the second GPIO pin.
After intelligent television receives the first instruction of remote controller transmission, intelligent television can according to the first instruction, the value of the first GPIO pin and the value of the second GPIO pin are set, namely after intelligent television receives the first instruction, intelligent television according to the difference of the first instruction, can arrange the value of the first GPIO pin and the value of the second GPIO pin respectively.
It should be noted that, generally, the state of GPIO pin can comprise high level and low level two states, if high level represents with " 1 ", low level represents with " 0 ", then each GPIO pin all has " 1 ", " 0 " two states.In the embodiment of the present invention, adopt the first GPIO pin and two the pin combinations of the second GPIO pin can represent four kinds of states, these four kinds of states can be " 00 ", " 01 ", " 10 ", " 11 " respectively, namely can use the debugging mode that these four kinds of state representation four kinds are different.
S103, intelligent television according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.
After intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, intelligent television can according to the value of the value of this first GPIO pin after arranging and this second GPIO pin after arranging, enter with arrange after the value of this first GPIO pin and debugging mode corresponding to the value of this second GPIO pin after arranging.
Further, what the embodiment of the present invention provided enters in the method for debugging mode, commissioning staff or domestic consumer trigger the first instruction by remote controller, and this first instruction can be sent to intelligent television by remote controller, make intelligent television that can the value of the first GPIO pin and the value of the second GPIO pin be set according to the first instruction received, and according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging, each corresponding debugging mode can be entered rapidly, thus raising debugging efficiency, shorten debugging cycle.
The embodiment of the present invention provides a kind of method entering debugging mode, the first instruction of remote controller transmission is received by intelligent television, first instruction is used to indicate intelligent television and arranges the value of the first GPIO pin and the value of the second GPIO pin, and according to the first instruction, the value of the first GPIO pin and the value of the second GPIO pin are set, and intelligent television is according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.Pass through the program, due to intelligent television can according to user use a teleswitch send instruction, by arranging the value of corresponding GPIO pin, to enter each corresponding different debugging mode, and without the need to repeatedly entering certain debugging mode with duration by the several button of certain on intelligent television body according to user, therefore, it is possible to enter each debugging mode fast, thus improve debugging efficiency, shorten debugging cycle.
Embodiment two
The embodiment of the present invention provides a kind of method entering debugging mode, and as shown in Figure 2, the method can comprise:
S201, intelligent television receive the first instruction that remote controller sends, and the first instruction can comprise: start-up command, AccessPort instruction, fastboot(start fast) instruction of brush machine and recovery(repair) instruction of brush machine.
In intelligent television development process, commissioning staff need carry out various debugging to intelligent television.What the embodiment of the present invention provided enters in the method for debugging mode, intelligent television can receive commissioning staff use a teleswitch send the first instruction, and according to this first instruction, by arranging the value of the first GPIO pin and the value of the second GPIO pin, to enter corresponding debugging mode, wherein, the first instruction can be used for indicating intelligent TV and arranges the value of the first GPIO pin and the value of the second GPIO pin.
It will be understood by those skilled in the art that GPIO can be called bus extender, its be utilize industrial standard I2C bus, expansion that SMBus or SPI simplifies I/O mouth.When microcontroller or chipset do not have enough I/O ports, or when system needs adopt far-end serial communication or control, GPIO product can provide extra control & monitor function.
Be understandable that, the first instruction can comprise: start-up command, AccessPort instruction, the machine instruction of fastboot brush and the instruction of recovery brush machine.Wherein, start-up command can be used for starting power on mode; AccessPort instruction can be used for opening AccessPort pattern; The instruction of fastboot brush machine can be used for opening fastboot brush machine pattern; The instruction of recovery brush machine can be used for opening recovery brush machine pattern.Wherein, power on mode is for starting the system of intelligent television; AccessPort pattern can be used for opening serially printing, and software developer checks the start-up course of the system of intelligent television from serial ports, to debug the bug(defect of the system of intelligent television); Fastboot brush machine pattern can be used for opening fastboot debugging, software developer by USB(UniversalSerialBus, USB) connecting line programming and/or erasing specified partition; Recovery brush machine pattern can be used for entering recovery debugging, the software upgrade package of the system of intelligent television whether is had in search external mobile equipment, if there is the software upgrade package of the system of intelligent television in external mobile equipment, intelligent television then uses this AKU to carry out software upgrading to the system of intelligent television, if without the software upgrade package of the system of intelligent television in external mobile equipment, intelligent television then carries out factory reset.
It should be noted that, above-mentioned first GPIO pin and the second GPIO pin can be what preset.First instruction can be the key value of at least one button preset in remote controller, and wherein, above-mentioned remote controller can be Infrared remote controller.
Further, due to the characteristic of android system, except commissioning staff can debug intelligent television in intelligent television development process, domestic consumer also can obtain brush machine software kit from the manufacturer of intelligent television and carry out brush machine voluntarily.The method of what the embodiment of the present invention provided enter debugging mode can make commissioning staff and domestic consumer enter debugging mode rapidly to debug intelligent television, and can switch under each debugging mode easily, thus improve debugging efficiency, shorten debugging cycle.
S202, intelligent television judge the first instruction.
After intelligent television receives the first instruction, intelligent television can judge the first instruction, to determine that the first instruction is start-up command, AccessPort instruction, the machine instruction of fastboot brush or the instruction of recovery brush machine.
Concrete, after intelligent television receives the key value of at least one button of expression first instruction, first key value of preserving in advance in the system of the key value of this at least one button and intelligent television can contrast by intelligent television, if the key value of this at least one button is identical with this first key value, intelligent television then determines that this first instruction is start-up command, AccessPort instruction, the machine instruction of fastboot brush or the instruction of recovery brush machine.Wherein, the first key value can for the key value for representing the key value of start-up command, the key value of AccessPort instruction, the key value of fastboot brush machine instruction or the instruction of recovery brush machine of preserving in advance in the system of intelligent television.
Exemplary, if the first instruction is start-up command, then corresponding with representing the key value of start-up command button can be " Power(starts shooting) " key; If the first instruction is AccessPort instruction, then corresponding with representing the key value of AccessPort instruction button can be " 1+4+7+Enter(OK button) " key; If the first instruction is the instruction of fastboot brush machine, then corresponding with representing the key value of fastboot brush machine instruction button can be " 2+5+8+Enter " key; If the first instruction is the instruction of recovery brush machine, then corresponding with representing the key value of recovery brush machine instruction button can be " 3+6+9+Enter " key.
It should be noted that, in actual use, the key value of above-mentioned expression first instruction can design according to actual user demand, and namely corresponding with the key value of expression first instruction button also can design according to actual user demand, and the present invention does not limit.
Further, after intelligent television judges the first instruction, intelligent television according to the first instruction, can arrange the value of the first GPIO pin and the value of the second GPIO pin.
It should be noted that, generally, the state of GPIO pin can comprise high level and low level two states, if high level represents with " 1 ", low level represents with " 0 ", then each GPIO pin all has " 1 ", " 0 " two values.In the embodiment of the present invention, adopt the combination of the value of the first GPIO pin and the second GPIO pin two pins can represent four kinds of states, these four kinds of states can be expressed as " 00 ", " 01 ", " 10 ", " 11 " respectively, namely can use the debugging mode that these four kinds of state representation four kinds are different.
Concrete, because above-mentioned first instruction can comprise: start-up command, AccessPort instruction, the machine instruction of fastboot brush and the instruction of recovery brush machine, therefore, for each instruction above-mentioned, the value of value and the second GPIO pin that intelligent television all can arrange the first GPIO pin is that different value is to form the combination of different values, namely after intelligent television receives the first instruction, intelligent television can according to the difference of the first instruction, arranges the value of the first GPIO pin and the value of the second GPIO pin respectively to form the combination of different values.The description stating S203-S206 specific as follows.
If S203 first instruction is start-up command, intelligent television, then according to start-up command, arranges the value of the first GPIO pin for " 0 ", arranges the value of the second GPIO pin for " 0 ".
After intelligent television judges the first instruction, if intelligent television determines that the first instruction is start-up command, intelligent television then according to start-up command, can arrange the value of the first GPIO pin for " 0 ", arranges the value of the second GPIO pin for " 0 ".
If S204 first instruction is AccessPort instruction, intelligent television, then according to AccessPort instruction, arranges the value of the first GPIO pin for " 0 ", arranges the value of the second GPIO pin for " 1 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television determines that the first instruction is AccessPort instruction, intelligent television then can according to AccessPort instruction, the value of the first GPIO pin is set for " 0 ", the value of the second GPIO pin is set for " 1 ".
If S205 first instruction is the instruction of fastboot brush machine, intelligent television, then according to the instruction of fastboot brush machine, arranges the value of the first GPIO pin for " 1 ", arranges the value of the second GPIO pin for " 0 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television determines that the first instruction is the instruction of fastboot brush machine, intelligent television then can according to the instruction of fastboot brush machine, the value of the first GPIO pin is set for " 1 ", the value of the second GPIO pin is set for " 0 ".
If S206 first instruction is the instruction of recovery brush machine, intelligent television, then according to the instruction of recovery brush machine, arranges the value of the first GPIO pin for " 1 ", arranges the value of the second GPIO pin for " 1 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television determines that the first instruction is the instruction of recovery brush machine, intelligent television then can according to the instruction of recovery brush machine, the value of the first GPIO pin is set for " 1 ", the value of the second GPIO pin is set for " 1 ".
It should be noted that, the combination of the value of the first GPIO pin that the intelligent television that above-mentioned S203-S206 describes is arranged and the value of the second GPIO pin is not only confined to each combination above-mentioned, namely the four kinds of states combined by " 0 " and " 1 " can correspond to above-mentioned four kinds of instructions respectively, and its corresponding relation can be not limited to the corresponding relation of foregoing description.Such as, start-up command can corresponding " 00 ", " 01 ", any one state in " 10 " and " 11 " four kinds of states, but state corresponding to start-up command state need corresponding with other three instructions are not identical.
Further, the value of employing first GPIO pin that the embodiment of the present invention provides and the combination of the value of the second GPIO pin represent the method for debugging mode, also two kinds of debugging modes can be represented for the value of an employing GPIO pin, can also represent multiple debugging mode for the combination of the value adopting multiple GPIO pin, the present invention does not limit.The combination of the value of GPIO pin and the value of multiple GPIO pin is adopted to represent that the method for debugging mode is all within protection scope of the present invention for other.
Further, after intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, intelligent television can according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.
Concrete, corresponding to above-mentioned first instruction, the debugging mode that intelligent television can enter can comprise: power on mode, AccessPort pattern, fastboot brush machine pattern and recovery brush machine pattern, namely for each debugging mode above-mentioned, intelligent television all can detect the value of the first default GPIO pin and the value of the second GPIO pin, and the different debugging mode of each correspondence is entered according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, namely after intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin according to the first instruction, intelligent television can according to the value of the first GPIO pin after arranging with arrange after the second GPIO pin value difference enter corresponding debugging mode respectively.The description stating S207-S210 specific as follows.
If the value of the first GPIO pin after S207 is arranged is " 0 ", and the value of the second GPIO pin after arranging is " 0 ", and intelligent television then enters the power on mode corresponding with " 00 ".
After intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, if the value of the first GPIO pin after intelligent television is arranged is " 0 ", and the value of the second GPIO pin after arranging is " 0 ", intelligent television then can enter the power on mode corresponding with " 00 ".
If the value of the first GPIO pin after S208 is arranged is " 0 ", and the value of the second GPIO pin after arranging is " 1 ", and intelligent television then enters the AccessPort pattern corresponding with " 01 ".
Accordingly, after intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, if the value of the first GPIO pin after intelligent television is arranged is " 0 ", and the value of the second GPIO pin after arranging is " 1 ", and intelligent television then can enter the AccessPort pattern corresponding with " 01 ".
If the value of the first GPIO pin after S209 is arranged is " 1 ", and the value of the second GPIO pin after arranging is " 0 ", and intelligent television then enters the fastboot brush machine pattern corresponding with " 10 ".
Accordingly, after intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, if the value of the first GPIO pin after intelligent television is arranged is " 1 ", and the value of the second GPIO pin after arranging is " 0 ", intelligent television then can enter the fastboot brush machine pattern corresponding with " 10 ".
If the value of the first GPIO pin after S210 is arranged is " 1 ", and the value of the second GPIO pin after arranging is " 1 ", and intelligent television then enters the recovery brush machine pattern corresponding with " 11 ".
Accordingly, after intelligent television arranges the value of the first GPIO pin and the value of the second GPIO pin, if the value of the first GPIO pin after intelligent television is arranged is " 1 ", and the value of the second GPIO pin after arranging is " 1 ", intelligent television then can enter the recovery brush machine pattern corresponding with " 11 ".
It should be noted that, the corresponding relation between the combination of the value of above-mentioned first instruction and the first GPIO pin and the value of the second GPIO pin, need and debugging mode corresponding with the corresponding relation between the value of the first GPIO pin and the combination of the value of the second GPIO pin.Such as, if the first instruction is start-up command, corresponding with the first instruction arrange after the value of the first GPIO pin and being combined as " 00 " of the value of the second GPIO pin, then corresponding with this combination " 00 " debugging mode should be power on mode.
Further, what the embodiment of the present invention provided enters in the method for debugging mode, commissioning staff or domestic consumer trigger the first instruction by remote controller, and this first instruction can be sent to intelligent television by remote controller, make intelligent television that can the value of the first GPIO pin and the value of the second GPIO pin be set according to the first instruction received, and according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging, each corresponding debugging mode can be entered rapidly, thus raising debugging efficiency, shorten debugging cycle.
The embodiment of the present invention provides a kind of method entering debugging mode, the first instruction of remote controller transmission is received by intelligent television, first instruction is used to indicate intelligent television and arranges the value of the first GPIO pin and the value of the second GPIO pin, and according to the first instruction, the value of the first GPIO pin and the value of the second GPIO pin are set, and intelligent television is according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.Pass through the program, due to intelligent television can according to user use a teleswitch send instruction, by arranging the value of corresponding GPIO pin, to enter each corresponding different debugging mode, and without the need to repeatedly entering certain debugging mode with duration by the several button of certain on intelligent television body according to user, therefore, it is possible to enter each debugging mode fast, thus improve debugging efficiency, shorten debugging cycle.
Embodiment three
As shown in Figure 3, the embodiment of the present invention provides a kind of intelligent television 1, and this intelligent television 1 can comprise:
Receiving element 10, for receiving the first instruction that remote controller sends, described first instruction is used to indicate the value of value and the second GPIO pin arranging the first GPIO pin.
Setting unit 11, for described first instruction received according to described receiving element 10, arranges the value of described first GPIO pin and the value of described second GPIO pin.
Enter unit 12, for the value of the value of described first GPIO pin after arranging according to described setting unit 11 and described second GPIO pin after arranging, enter with arrange after the value of described first GPIO pin and debugging mode corresponding to the value of described second GPIO pin after arranging.
Optionally, described first instruction that described receiving element 10 receives comprises: start-up command, AccessPort instruction, the machine instruction of fastboot brush and the instruction of recovery brush machine.
Optionally, described setting unit 11, if be described start-up command specifically for described first instruction of described receiving element 10 reception, then according to described start-up command, the value of described first GPIO pin is set for " 0 ", the value of described second GPIO pin is set for " 0 "; Or,
If described first instruction that described receiving element 10 receives is described AccessPort instruction, then according to described AccessPort instruction, the value of described first GPIO pin is set for " 0 ", the value of described second GPIO pin is set for " 1 "; Or,
If described first instruction that described receiving element 10 receives is the instruction of described fastboot brush machine, then according to the instruction of described fastboot brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 0 "; Or,
If described first instruction that described receiving element 10 receives is the instruction of described recovery brush machine, then according to the instruction of described recovery brush machine, the value of described first GPIO pin is set for " 1 ", the value of described second GPIO pin is set for " 1 ".
Optionally, described in enter the described debugging mode that unit 12 enters and comprise: power on mode, AccessPort pattern, fastboot brush machine pattern and recovery brush machine pattern,
Wherein, described in enter unit 12, if the value of described first GPIO pin after arranging specifically for described setting unit 11 is " 0 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described power on mode corresponding with " 00 "; Or,
If the value of described first GPIO pin after described setting unit 11 is arranged is " 0 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described AccessPort pattern corresponding with " 01 "; Or,
If the value of described first GPIO pin after described setting unit 11 is arranged is " 1 ", and the value of described second GPIO pin after arranging is " 0 ", then enter the described fastboot brush machine pattern corresponding with " 10 "; Or,
If the value of described first GPIO pin after described setting unit 11 is arranged is " 1 ", and the value of described second GPIO pin after arranging is " 1 ", then enter the described recovery brush machine pattern corresponding with " 11 ".
Optionally, described first instruction that described receiving element 10 receives is the key value of at least one button preset in described remote controller.
The embodiment of the present invention provides a kind of intelligent television, this intelligent television receives the first instruction that remote controller sends, first instruction is used to indicate intelligent television and arranges the value of the first GPIO pin and the value of the second GPIO pin, and according to the first instruction, the value of the first GPIO pin and the value of the second GPIO pin are set, and this intelligent television is according to the value of the value of the first GPIO pin after arranging and the second GPIO pin after arranging, enter with arrange after the value of the first GPIO pin and debugging mode corresponding to the value of the second GPIO pin after arranging.Pass through the program, due to intelligent television can according to user use a teleswitch send instruction, by arranging the value of corresponding GPIO pin, to enter each corresponding different debugging mode, and without the need to repeatedly entering certain debugging mode with duration by the several button of certain on intelligent television body according to user, therefore, it is possible to enter each debugging mode fast, thus improve debugging efficiency, shorten debugging cycle.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be a physical location or multiple physical location, namely can be positioned at a place, or also can be distributed to multiple different local.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprise all or part of step of some instructions in order to make an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.