Summary of the invention
Embodiments of the invention provide a kind of method and intelligent television that enters debugging mode, can enter fast each debugging mode, thereby 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 that enters debugging mode, comprising:
Receive the first instruction that remote controller sends, described the first instruction is used to indicate the value of first universal input/output GPIO pin and the value of the 2nd GPIO pin is set;
According to described the first instruction, the value of a described GPIO pin and the value of described the 2nd GPIO pin are set;
The value of described the 2nd GPIO pin according to the value of the described GPIO pin after arranging and after arranging, enter with arrange after a described GPIO pin value and arrange after debugging mode corresponding to the value of described the 2nd GPIO pin.
In the possible implementation of the first of first aspect, described the first instruction comprises: start-up command, AccessPort instruction, start the instruction of brush machine and repair the instruction of brush machine fast.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, described according to described the first instruction, the value of a described GPIO pin and the value of described the 2nd GPIO pin are set, specifically comprise:
If described the first instruction is described start-up command, according to described start-up command, the value that a described GPIO pin is set is " 0 ", and the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction is described AccessPort instruction, according to described AccessPort instruction, the value that a described GPIO pin is set is " 0 ", and the value that described the 2nd GPIO pin is set is " 1 "; Or,
If described the first instruction is the instruction of described quick startup brush machine,, according to the instruction of described quick startup brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction is the instruction of described reparation brush machine,, according to the instruction of described reparation brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 1 ".
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, described debugging mode comprises: power on mode, AccessPort pattern, start brush machine pattern and repair brush machine pattern fast,
Wherein, the value of described described the 2nd GPIO pin according to the value of the described GPIO pin after arranging and after arranging, enter with arrange after a described GPIO pin value and arrange after debugging mode corresponding to the value of described the 2nd GPIO pin, specifically comprise:
If the value of the described GPIO pin after arranging is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described power on mode corresponding with " 00 "; Or,
If the value of the described GPIO pin after arranging is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described AccessPort pattern corresponding with " 01 "; Or,
If the value of the described GPIO pin after arranging is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described quick startup brush machine pattern corresponding with " 10 "; Or,
If the value of the described GPIO pin after arranging is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described reparation brush machine pattern corresponding with " 11 ".
In conjunction with the possible implementation of the first of aforesaid first aspect or first aspect to any implementation in the third possible implementation, in the 4th kind of possible implementation,
Described the first instruction is the key value of at least one button default in described remote controller.
Second aspect, the embodiment of the present invention provides a kind of intelligent television, comprising:
Receiving element, the first instruction sending for receiving remote controller, described the first instruction is used to indicate the value of a GPIO pin and the value of the 2nd GPIO pin is set;
Setting unit, for described the first instruction receiving according to described receiving element, arranges the value of a described GPIO pin and the value of described the 2nd GPIO pin;
Enter unit, the value of described the 2nd GPIO pin for the value of the described GPIO pin after arranging according to described setting unit and after arranging, enter with arrange after a described GPIO pin value and arrange after debugging mode corresponding to the value of described the 2nd GPIO pin.
In the possible implementation of the first of second aspect,
Described the first instruction that described receiving element receives comprises: start-up command, AccessPort instruction, start the instruction of brush machine and repair the instruction of brush machine fast.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second,
Described setting unit, if described the first instruction receiving specifically for described receiving element is described start-up command, according to described start-up command, the value that a described GPIO pin is set is " 0 ", the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction that described receiving element receives is described AccessPort instruction, according to described AccessPort instruction, the value that a described GPIO pin is set is " 0 ", and the value that described the 2nd GPIO pin is set is " 1 "; Or,
If described the first instruction that described receiving element receives is the instruction of described quick startup brush machine,, according to the instruction of described quick startup brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction that described receiving element receives is the instruction of described reparation brush machine,, according to the instruction of described reparation brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 1 ".
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, 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 the described GPIO pin after arranging specifically for described setting unit is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described power on mode corresponding with " 00 "; Or,
If the value of the described GPIO pin after described setting unit arranges is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described AccessPort pattern corresponding with " 01 "; Or,
If the value of the described GPIO pin after described setting unit arranges is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described quick startup brush machine pattern corresponding with " 10 "; Or,
If the value of the described GPIO pin after described setting unit arranges is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described reparation brush machine pattern corresponding with " 11 ".
In conjunction with the possible implementation of the first of aforesaid second aspect or second aspect to any implementation in the third possible implementation, in the 4th kind of possible implementation,
Described the first instruction that described receiving element receives is the key value of at least one button default in described remote controller.
The method that enters debugging mode and intelligent television that the embodiment of the present invention provides, the first instruction sending by receiving remote controller, the first instruction is used to indicate the value of a GPIO pin and the value of the 2nd GPIO pin is set, and according to the first instruction, the value of the one GPIO pin and the value of the 2nd GPIO pin are set, and the value of the 2nd GPIO pin according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.By this scheme, due to intelligent television can according to user use a teleswitch send instruction, by the value of corresponding GPIO pin is arranged, to enter each corresponding different debugging mode, and without repeatedly entering certain debugging mode with duration by certain the several button on intelligent television body according to user, therefore can enter fast each debugging mode, thereby improve debugging efficiency, shorten debugging cycle.
Embodiment
A kind of method and the intelligent television that the enters debugging mode embodiment of the present invention being provided below in conjunction with accompanying drawing is described in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method that enters 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 the one GPIO(General Purpose Input Output, universal input/output are set) value of pin and the value of the 2nd GPIO pin.
In intelligent television development process, commissioning staff need carry out various debugging to intelligent television.In the method that enters debugging mode that the embodiment of the present invention provides, intelligent television can receive commissioning staff use a teleswitch send the first instruction, and according to this first instruction, value by the value to a GPIO pin and the 2nd GPIO pin arranges, to enter corresponding debugging mode, wherein, the first instruction can be used for indicating intelligent TV the value of the one GPIO pin and the value of the 2nd GPIO pin is set.
It will be appreciated by those skilled in the art that, GPIO can be called bus extender, it is to utilize industrial standard I2C(Inter-Integrated Circuit, internal integrated circuit) bus, SMBus(System Management Bus, System Management Bus) or SPI(Serial Peripheral Interface, Serial Peripheral Interface (SPI)) simplified the expansion of I/O mouth.When microcontroller or chipset do not have enough I/O ports, or when system need to adopt far-end serial communication or control, GPIO product can provide extra control & monitor function.
It should be noted that, an above-mentioned GPIO pin and the 2nd GPIO pin can be default.The first instruction can be the key value of at least one button default 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 voluntarily brush machine.The method that enters debugging mode that the embodiment of the present invention provides can make commissioning staff and domestic consumer enter rapidly debugging mode intelligent television is debugged, and can under each debugging mode, switch easily, thereby improved debugging efficiency, shortened debugging cycle.
S102, intelligent television, according to the first instruction, arrange the value of a GPIO pin and the value of the 2nd GPIO pin.
Intelligent television receives after the first instruction of remote controller transmission, intelligent television can be according to the first instruction, the value of the one GPIO pin and the value of the 2nd GPIO pin are set, be that intelligent television receives after the first instruction, intelligent television can be according to the difference of the first instruction, and the value of a GPIO pin and the value of the 2nd GPIO pin are set respectively.
It should be noted that, generally, the state of GPIO pin can comprise high level and two states of low level, if " 1 " expression for high level, " 0 " expression for low level, each GPIO pin all has " 1 ", " 0 " two states.In the embodiment of the present invention, adopt two pin combinations of a GPIO pin and the 2nd GPIO pin can represent four kinds of states, these four kinds of states can be " 00 ", " 01 ", " 10 ", " 11 " respectively, can use four kinds of different debugging modes of these four kinds of state representation.
The value of S103, the two GPIO pin of intelligent television according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.
After intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, intelligent television can be according to the value of the GPIO pin after arranging and after arranging the value of the 2nd GPIO pin, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.
Further, in the method that enters debugging mode that the embodiment of the present invention provides, commissioning staff or domestic consumer can trigger the first instruction by remote controller, and remote controller can be sent to intelligent television by this first instruction, make intelligent television the value of the one GPIO pin and the value of the 2nd GPIO pin to be set according to the first instruction receiving, and the value of the 2nd GPIO pin according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin, can enter rapidly each corresponding debugging mode, thereby raising debugging efficiency, shorten debugging cycle.
The embodiment of the present invention provides a kind of method that enters debugging mode, by intelligent television, receive the first instruction that remote controller sends, the first instruction is used to indicate intelligent television the value of the one GPIO pin and the value of the 2nd GPIO pin is set, and according to the first instruction, the value of the one GPIO pin and the value of the 2nd GPIO pin are set, and the value of two GPIO pin of intelligent television according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.By this scheme, due to intelligent television can according to user use a teleswitch send instruction, by the value of corresponding GPIO pin is arranged, to enter each corresponding different debugging mode, and without repeatedly entering certain debugging mode with duration by certain the several button on intelligent television body according to user, therefore can enter fast each debugging mode, thereby improve debugging efficiency, shorten debugging cycle.
Embodiment bis-
The embodiment of the present invention provides a kind of method that enters 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) brush machine instruction and recovery(reparation) instruction of brush machine.
In intelligent television development process, commissioning staff need carry out various debugging to intelligent television.In the method that enters debugging mode that the embodiment of the present invention provides, intelligent television can receive commissioning staff use a teleswitch send the first instruction, and according to this first instruction, value by the value to a GPIO pin and the 2nd GPIO pin arranges, to enter corresponding debugging mode, wherein, the first instruction can be used for indicating intelligent TV the value of the one GPIO pin and the value of the 2nd GPIO pin is set.
It will be understood by those skilled in the art that GPIO can be called bus extender, it is to utilize industrial standard I2C bus, SMBus or SPI to simplify the expansion of I/O mouth.When microcontroller or chipset do not have enough I/O ports, or when system need to 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, fastboot brush machine instruction 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 system of intelligent television); Fastboot brush machine pattern can be used for opening fastboot debugging, and software developer is by USB(Universal Serial Bus, USB) connecting line programming and/or wipe specified partition; Recovery brush machine pattern can be used for entering recovery debugging, in search external mobile equipment, whether there is the software upgrade package of the system of intelligent television, if there is the software upgrade package of the system of intelligent television in external mobile equipment, intelligent television is used 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, intelligent television carries out factory reset in external mobile equipment.
It should be noted that, an above-mentioned GPIO pin and the 2nd GPIO pin can be default.The first instruction can be the key value of at least one button default 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 voluntarily brush machine.The method that enters debugging mode that the embodiment of the present invention provides can make commissioning staff and domestic consumer enter rapidly debugging mode intelligent television is debugged, and can under each debugging mode, switch easily, thereby improved debugging efficiency, shortened 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 as start-up command, AccessPort instruction, fastboot brush machine instruction or the instruction of recovery brush machine.
Concrete, after intelligent television receives the key value of at least one button that represents the first instruction, intelligent television can contrast first key value of preserving in advance in the system of the key value of this at least one button and intelligent television, if the key value of this at least one button is identical with this first key value, intelligent television determines that this first instruction is start-up command, AccessPort instruction, fastboot brush machine instruction or the instruction of recovery brush machine.Wherein, the first key value can in the system of intelligent television, preserve in advance for representing the key value of start-up command, key value, the key value of fastboot brush machine instruction or the key value of recovery brush machine instruction of AccessPort instruction.
Exemplary, if the first instruction is start-up command, the button corresponding with the key value that represents start-up command can be " Power(start) " key; If the first instruction is AccessPort instruction, the button corresponding with the key value that represents AccessPort instruction can be " 1+4+7+Enter(determines key) " key; If the first instruction is the instruction of fastboot brush machine, the button corresponding with the key value that represents the instruction of fastboot brush machine can be " 2+5+8+Enter " key; If the first instruction is the instruction of recovery brush machine, the button corresponding with the key value that represents the instruction of recovery brush machine can be " 3+6+9+Enter " key.
It should be noted that, in actual use, the key value of above-mentioned expression the first instruction can design according to actual user demand, and the button corresponding with the key value that represents the first instruction 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 can be according to the first instruction, and the value of a GPIO pin and the value of the 2nd GPIO pin are set.
It should be noted that, generally, the state of GPIO pin can comprise high level and two states of low level, if " 1 " expression for high level, " 0 " expression for low level, each GPIO pin all has " 1 ", " 0 " two values.In the embodiment of the present invention, adopt the combination of the value of a GPIO pin and two pins of the 2nd GPIO pin can represent four kinds of states, these four kinds of states can be expressed as respectively " 00 ", " 01 ", " 10 ", " 11 ", can use four kinds of different debugging modes of these four kinds of state representation.
Concrete, because above-mentioned the first instruction can comprise: start-up command, AccessPort instruction, fastboot brush machine instruction and the instruction of recovery brush machine, therefore, for above-mentioned each instruction, it is that different value is to form the combination of different values that intelligent television all can arrange the value of a GPIO pin and the value of the 2nd GPIO pin, be that intelligent television receives after the first instruction, intelligent television can be according to the difference of the first instruction, the value of a GPIO pin and the value of the 2nd GPIO pin is set respectively to form the combination of different values.The description of stating S203-S206 specific as follows.
If S203 the first instruction is start-up command, intelligent television is according to start-up command, and the value that a GPIO pin is set is " 0 ", and the value that the 2nd GPIO pin is set is " 0 ".
After intelligent television judges the first instruction, if intelligent television is determined the first instruction, be start-up command, intelligent television can be according to start-up command, and the value that a GPIO pin is set is " 0 ", and the value that the 2nd GPIO pin is set is " 0 ".
If S204 the first instruction is AccessPort instruction, intelligent television is according to AccessPort instruction, and the value that a GPIO pin is set is " 0 ", and the value that the 2nd GPIO pin is set is " 1 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television is determined the first instruction, be AccessPort instruction, intelligent television can be according to AccessPort instruction, the value that the one GPIO pin is set is " 0 ", and the value that the 2nd GPIO pin is set is " 1 ".
If S205 the first instruction is the instruction of fastboot brush machine, intelligent television is according to the instruction of fastboot brush machine, and the value that a GPIO pin is set is " 1 ", and the value that the 2nd GPIO pin is set is " 0 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television is determined the first instruction, be the instruction of fastboot brush machine, intelligent television can be brushed machine instruction according to fastboot, the value that the one GPIO pin is set is " 1 ", and the value that the 2nd GPIO pin is set is " 0 ".
If S206 the first instruction is the instruction of recovery brush machine, intelligent television is according to the instruction of recovery brush machine, and the value that a GPIO pin is set is " 1 ", and the value that the 2nd GPIO pin is set is " 1 ".
Accordingly, after intelligent television judges the first instruction, if intelligent television is determined the first instruction, be the instruction of recovery brush machine, intelligent television can be brushed machine instruction according to recovery, the value that the one GPIO pin is set is " 1 ", and the value that the 2nd GPIO pin is set is " 1 ".
It should be noted that, the value of a GPIO pin of intelligent television setting and the combination of the value of the 2nd GPIO pin that above-mentioned S203-S206 describes are not only confined to above-mentioned each combination, respectively can be corresponding to above-mentioned four kinds of instructions by four kinds of states of " 0 " and " 1 " combination, its corresponding relation can be not limited to the corresponding relation of foregoing description.For example, 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 combination of the value of the employing that the embodiment of the present invention provides the one GPIO pin and the value of the 2nd GPIO pin represents the method for debugging mode, also can be for adopting two kinds of debugging modes of value representation of a GPIO pin, can also be for the combination of the value of the multiple GPIO pins of employing represents multiple debugging mode, the present invention does not limit.The method that represents debugging mode for the combination of the value of other employings GPIO pin and the value of multiple GPIO pins is all within protection scope of the present invention.
Further, after intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, intelligent television can be according to the value of the GPIO pin after arranging and after arranging the value of the 2nd GPIO pin, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.
Concrete, corresponding to above-mentioned the 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, for above-mentioned each debugging mode, intelligent television all can detect the value of a default GPIO pin and the value of the 2nd GPIO pin, and the value of the 2nd GPIO pin according to the value of the GPIO pin after arranging and after arranging enters the different debugging mode of each correspondence, be that intelligent television arranges after the value of a GPIO pin and the value of the 2nd GPIO pin according to the first instruction, intelligent television can according to the value of the GPIO pin after arranging with arrange after the 2nd GPIO pin value difference enter respectively corresponding debugging mode.The description of stating S207-S210 specific as follows.
If the value of the GPIO pin after S207 arranges is " 0 ", and the value of the 2nd GPIO pin after arranging is " 0 ", and intelligent television enters the power on mode corresponding with " 00 ".
After intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, if the value of the GPIO pin after intelligent television arranges is " 0 ", and the value of the 2nd GPIO pin after arranging is " 0 ", intelligent television can enter the power on mode corresponding with " 00 ".
If the value of the GPIO pin after S208 arranges is " 0 ", and the value of the 2nd GPIO pin after arranging is " 1 ", and intelligent television enters the AccessPort pattern corresponding with " 01 ".
Accordingly, after intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, if the value of the GPIO pin after intelligent television arranges is " 0 ", and the value of the 2nd GPIO pin after arranging is " 1 ", and intelligent television can enter the AccessPort pattern corresponding with " 01 ".
If the value of the GPIO pin after S209 arranges is " 1 ", and the value of the 2nd GPIO pin after arranging is " 0 ", and intelligent television enters the fastboot brush machine pattern corresponding with " 10 ".
Accordingly, after intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, if the value of the GPIO pin after intelligent television arranges is " 1 ", and the value of the 2nd GPIO pin after arranging is " 0 ", intelligent television can enter the fastboot brush machine pattern corresponding with " 10 ".
If the value of the GPIO pin after S210 arranges is " 1 ", and the value of the 2nd GPIO pin after arranging is " 1 ", and intelligent television enters the recovery brush machine pattern corresponding with " 11 ".
Accordingly, after intelligent television arranges the value of a GPIO pin and the value of the 2nd GPIO pin, if the value of the GPIO pin after intelligent television arranges is " 1 ", and the value of the 2nd GPIO pin after arranging is " 1 ", intelligent television can enter the recovery brush machine pattern corresponding with " 11 ".
It should be noted that, the corresponding relation between the value of above-mentioned the first instruction and a GPIO pin and the combination of the value of the 2nd GPIO pin, need and debugging mode are corresponding with the corresponding relation between the value of a GPIO pin and the combination of the value of the 2nd GPIO pin.For example, if the first instruction is start-up command, being combined as of the value of a GPIO pin after corresponding with the first instruction setting and the value of the 2nd GPIO pin " 00 ", the debugging mode corresponding with this combination " 00 " should be power on mode.
Further, in the method that enters debugging mode that the embodiment of the present invention provides, commissioning staff or domestic consumer can trigger the first instruction by remote controller, and remote controller can be sent to intelligent television by this first instruction, make intelligent television the value of the one GPIO pin and the value of the 2nd GPIO pin to be set according to the first instruction receiving, and the value of the 2nd GPIO pin according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin, can enter rapidly each corresponding debugging mode, thereby raising debugging efficiency, shorten debugging cycle.
The embodiment of the present invention provides a kind of method that enters debugging mode, by intelligent television, receive the first instruction that remote controller sends, the first instruction is used to indicate intelligent television the value of the one GPIO pin and the value of the 2nd GPIO pin is set, and according to the first instruction, the value of the one GPIO pin and the value of the 2nd GPIO pin are set, and the value of two GPIO pin of intelligent television according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.By this scheme, due to intelligent television can according to user use a teleswitch send instruction, by the value of corresponding GPIO pin is arranged, to enter each corresponding different debugging mode, and without repeatedly entering certain debugging mode with duration by certain the several button on intelligent television body according to user, therefore can enter fast each debugging mode, thereby improve debugging efficiency, shorten debugging cycle.
Embodiment tri-
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, the first instruction sending for receiving remote controller, described the first instruction is used to indicate the value of a GPIO pin and the value of the 2nd GPIO pin is set.
Setting unit 11, for described the first instruction receiving according to described receiving element 10, arranges the value of a described GPIO pin and the value of described the 2nd GPIO pin.
Enter unit 12, the value of described the 2nd GPIO pin for the value of the described GPIO pin after arranging according to described setting unit 11 and after arranging, enter with arrange after a described GPIO pin value and arrange after debugging mode corresponding to the value of described the 2nd GPIO pin.
Optionally, described the first instruction that described receiving element 10 receives comprises: start-up command, AccessPort instruction, fastboot brush machine instruction and the instruction of recovery brush machine.
Optionally, described setting unit 11, if described the first instruction receiving specifically for described receiving element 10 is described start-up command, according to described start-up command, the value that a described GPIO pin is set is " 0 ", and the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction that described receiving element 10 receives is described AccessPort instruction, according to described AccessPort instruction, the value that a described GPIO pin is set is " 0 ", and the value that described the 2nd GPIO pin is set is " 1 "; Or,
If described the first instruction that described receiving element 10 receives is the instruction of described fastboot brush machine,, according to the instruction of described fastboot brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 0 "; Or,
If described the first instruction that described receiving element 10 receives is the instruction of described recovery brush machine,, according to the instruction of described recovery brush machine, the value that a described GPIO pin is set is " 1 ", and the value that described the 2nd GPIO pin is set is " 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 the described GPIO pin after arranging specifically for described setting unit 11 is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described power on mode corresponding with " 00 "; Or,
If the value of the described GPIO pin after described setting unit 11 arranges is " 0 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described AccessPort pattern corresponding with " 01 "; Or,
If the value of the described GPIO pin after described setting unit 11 arranges is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 0 ", enters the described fastboot brush machine pattern corresponding with " 10 "; Or,
If the value of the described GPIO pin after described setting unit 11 arranges is " 1 ", and the value of described the 2nd GPIO pin after arranging is " 1 ", enters the described recovery brush machine pattern corresponding with " 11 ".
Optionally, described the first instruction that described receiving element 10 receives is the key value of at least one button default 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, the first instruction is used to indicate intelligent television the value of the one GPIO pin and the value of the 2nd GPIO pin is set, and according to the first instruction, the value of the one GPIO pin and the value of the 2nd GPIO pin are set, and the value of two GPIO pin of this intelligent television according to the value of the GPIO pin after arranging and after arranging, enter with arrange after a GPIO pin value and arrange after debugging mode corresponding to the value of the 2nd GPIO pin.By this scheme, due to intelligent television can according to user use a teleswitch send instruction, by the value of corresponding GPIO pin is arranged, to enter each corresponding different debugging mode, and without repeatedly entering certain debugging mode with duration by certain the several button on intelligent television body according to user, therefore can enter fast each debugging mode, thereby improve debugging efficiency, shorten debugging cycle.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only with the division of above-mentioned each functional module, be illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to 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, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be a physical location or multiple physical location, can be positioned at a place, or also can be distributed to multiple different local.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprise that some instructions are in order to make an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in 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.