CN106713981B - The operating mode recognition methods of TV host and device - Google Patents

The operating mode recognition methods of TV host and device Download PDF

Info

Publication number
CN106713981B
CN106713981B CN201611182119.0A CN201611182119A CN106713981B CN 106713981 B CN106713981 B CN 106713981B CN 201611182119 A CN201611182119 A CN 201611182119A CN 106713981 B CN106713981 B CN 106713981B
Authority
CN
China
Prior art keywords
host
state
default port
triode
operating mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611182119.0A
Other languages
Chinese (zh)
Other versions
CN106713981A (en
Inventor
费玉昆
沈显超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611182119.0A priority Critical patent/CN106713981B/en
Publication of CN106713981A publication Critical patent/CN106713981A/en
Application granted granted Critical
Publication of CN106713981B publication Critical patent/CN106713981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Abstract

The disclosure is directed to a kind of operating mode recognition methods of TV host and devices.This method comprises: obtaining the state of the default port of CPU, when the state for determining default port is the first level state, the operating mode for identifying TV host is as TV box, when the state for determining default port is second electrical level state, the operating mode for identifying TV host is to realize the operating mode of identification TV host as separate television, in order to carry out subsequent operation according to specific operating mode, to improve the job stability and user experience of TV host.

Description

The operating mode recognition methods of TV host and device
Technical field
This disclosure relates to operating mode recognition methods and the device of electrical technology more particularly to a kind of TV host.
Background technique
With the development of the communication technology and television set, there is Split type television machine.Split type television machine includes TV Screen and TV host.
In the related technology, the TV host in Split type television machine obtains electric energy from video screen.In addition, Split type electric It can also individually be sold depending on machine, at this point, Split type television machine can connect other video screens, due to other video screens In be not provided as the port of TV host supplying power, therefore, the Split type television machine individually sold is needed through individual power supply Adapter is powered.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of TV host operating mode recognition methods and Device.
According to the first aspect of the embodiments of the present disclosure, a kind of operating mode recognition methods of TV host is provided, comprising:
Obtain the state of the default port of the central processor CPU of TV host;
When the state for determining the default port is the first level state, identify that the operating mode of the TV host is As TV box;
When the state for determining the default port is second electrical level state, identify that the operating mode of the TV host is As separate television.
With reference to first aspect, in the first possible implementation of the first aspect, the CPU for obtaining TV host The state of default port include:
Read the state of the register in the CPU corresponding with the default port;
Correspondingly, the state for determining the default port is that the first level state includes:
If the state of the register is first state value, it is determined that the state for stating default port is the first level state;
The state for determining the default port is that second electrical level state includes:
If the state of the register is the second state value, it is determined that the state for stating default port is the first level state.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, the method also includes:
The power supply mode of the TV host is detected by detection circuit;
The testing result of the detection circuit is exported to the default port;
It will be in the level state of default port write-in register corresponding with the default port.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect In, the detection circuit includes:
First resistor, second resistance, triode and 3rd resistor;Wherein,
One end of the first resistor with the port in video screen being the TV host supplying power for connecting, and described the The other end of one resistance is connect with the base stage of the triode, and the base stage of one end of the second resistance and the triode connects It connects, the other end of second resistance ground connection, the emitter ground connection of the triode, the collector of the triode and described the One end of three resistance connects, and the other end of the 3rd resistor is connect with TV host system power supply, the current collection of the triode Pole with the default port of the central processor CPU of the TV host for connecting.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect In, the detection circuit further includes capacitor, and one end of the capacitor is connect with the base stage of the triode, the capacitor it is another End ground connection.
With reference to first aspect or the first possible implementation of first aspect is into the 4th kind of possible implementation Any possible implementation, in the fifth possible implementation of the first aspect, the method also includes:
When the operating mode for identifying the TV host is as the TV box period of the day from 11 p.m. to 1 a.m, in the electricity connecting with the TV host Depending on the resolution ratio of onscreen cue user setting TV host output;
When the operating mode for identifying the TV host is as separate television, in the electricity for the TV host supplying power The parameter of the video screen is adjusted depending on onscreen cue user.
The 5th kind of possible implementation with reference to first aspect, in the 6th kind of possible implementation of first aspect In, the default port is universal input/GPIO mouthfuls of output.
According to the second aspect of an embodiment of the present disclosure, a kind of operating mode identification device of TV host is provided, comprising:
Module is obtained, is configured as obtaining the state of the default port of the central processor CPU of TV host;
First identification module is configured as identifying institute when the state for determining the default port is the first level state The operating mode for stating TV host is as TV box;
Second identification module is configured as identifying institute when the state for determining the default port is second electrical level state The operating mode for stating TV host is as separate television.
In conjunction with second aspect, in the first possible implementation of the second aspect, the acquisition module includes:
Reading submodule is configured as reading the state of the register in the CPU corresponding with the default port;
Correspondingly, first identification module determines that the state of the default port is that the first level state includes:
When the state of the register is first state value, determine that the state for stating default port is the first level state;
Second identification module determines that the state of the default port is that second electrical level state includes:
When the state of the register is the second state value, determine that the state for stating default port is the first level state.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, described device further include:
Detection module is configured as detecting the power supply mode of the TV host by detection circuit;
Output module is configured as exporting the testing result of the detection circuit to the default port;
Writing module is configured as the level state of default port write-in deposit corresponding with the default port In device.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect In, the detection circuit includes:
First resistor, second resistance, triode and 3rd resistor;Wherein,
One end of the first resistor with the port in video screen being the TV host supplying power for connecting, and described the The other end of one resistance is connect with the base stage of the triode, and the base stage of one end of the second resistance and the triode connects It connects, the other end of second resistance ground connection, the emitter ground connection of the triode, the collector of the triode and described the One end of three resistance connects, and the other end of the 3rd resistor is connect with TV host system power supply, the current collection of the triode Pole with the default port of the central processor CPU of the TV host for connecting.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the detection circuit further includes capacitor, and one end of the capacitor is connect with the base stage of the triode, the capacitor it is another End ground connection.
In conjunction with the possible implementation of the first of second aspect or second aspect into the 4th kind of possible implementation Any possible implementation, in a fifth possible implementation of the second aspect, described device further include:
First cue module, be configured as when the operating mode for identifying the TV host be as the TV box period of the day from 11 p.m. to 1 a.m, The resolution ratio of user setting TV host output is prompted on the video screen connecting with the TV host;
Second cue module is configured as when the operating mode for identifying the TV host is as separate television, To prompt user to adjust the parameter of the video screen on the video screen of the TV host supplying power.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect In, the default port is universal input/GPIO mouthfuls of output.
According to the third aspect of an embodiment of the present disclosure, a kind of operating mode identification device of TV host is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Obtain the state of the default port of the central processor CPU of TV host;
When the state for determining the default port is the first level state, identify that the operating mode of the TV host is As TV box;
When the state for determining the default port is second electrical level state, identify that the operating mode of the TV host is As separate television.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In one embodiment, by obtaining the state of the default port of CPU, when the state for determining default port is first When level state, the operating mode of identification TV host is as TV box, when the state for determining default port is the second electricity When level state, the operating mode of identification TV host is to realize the operating mode of identification TV host as separate television, with Convenient for carrying out subsequent operation according to specific operating mode, thus, improve the job stability and user's body of TV host It tests.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of the operating mode recognition methods of TV host shown according to an exemplary embodiment;
Fig. 2 is a kind of block diagram of detection circuit shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the operating mode identification device of the TV host shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of the operating mode identification device of the TV host shown according to a further exemplary embodiment;
Fig. 7 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the operating mode recognition methods of TV host shown according to an exemplary embodiment. As shown in Figure 1, the embodiment of the present disclosure provide TV host operating mode recognition methods the following steps are included:
In a step 101, the state of the default port of CPU is obtained.
The operating mode recognition methods for the TV host that the embodiment of the present disclosure provides can be executed by TV host.
It in one possible implementation, can be by reading central processing unit (Central corresponding with default port Processing Unit;The state of register in referred to as: CPU) come realize obtain CPU default port state.If this is posted The state of storage is first state value, it is determined that the state of default port is the first level state.If the state of the register is Second state value, it is determined that the state of default port is second electrical level state.For example, the first level state can be logic High level state, i.e., 1, second electrical level state can be logic low state, i.e., 0, and first state value can be 1, the second shape State value can be 0, then when the state in register is 1, determines that the state of default port is 1, when the state in register is 0 When, determine that the state of default port is 0.It should be understood that being also possible to determine default port when the state of register is 0 State be logic-high state, when the state of register is 1, determine that the state of default port is logic low shape State.
In this implementation, the different port of CPU respectively corresponds the different registers in CPU.The state of port can To be written in register.It is obtained in advance as a result, it is possible to achieve being realized by the state for reading register corresponding with default port If the state of port.
It, can be by reading the storage region in CPU corresponding with default port in alternatively possible implementation State come realize obtain CPU default port state.If the state of the storage region is first state value, it is determined that default The state of port is the first level state.If the state of the storage region is the second state value, it is determined that the state of default port For second electrical level state.
Similar with above-mentioned implementation, multiple ports of CPU respectively correspond the different storage regions in CPU.Port State can be written into storage region.As a result, it is possible to achieve by the state that reads corresponding with default port storage region come Realize the state for obtaining default port.
Optionally, before step 101, the method that the embodiment of the present disclosure provides further include: electricity is detected by detection circuit Depending on the power supply mode of host;The testing result that will test circuit is exported to default port;The level state of default port is written In register corresponding with default port.When the testing result that will test circuit is exported to default port, detection electricity can be Road will test result and export to default port, later, TV host is by way of software by default end by way of hardware The level state of mouth is written in register corresponding with default port.
Fig. 2 is a kind of block diagram of detection circuit shown according to an exemplary embodiment.As shown in Fig. 2, the disclosure is implemented Detection circuit in example includes following component:
First resistor R11, second resistance R12, triode 13 and 3rd resistor R14.
Wherein, one end of first resistor R11 is used to connect with the port in video screen being TV host supplying power, the first electricity Resistance one end is connect with the base stage of triode 13.One end of second resistance R12 is connect with the base stage b of triode 13, second resistance R12 The other end ground connection.The emitter e of triode 13 is grounded, and the collector c of triode 13 is connect with one end of 3rd resistor R14. The other end of 3rd resistor R14 is connect with TV host system power supply VCC.The collector of triode 13 is used for and TV host The default port of CPU connects.
In order to make the TV host sold separately and TV host unification on hardware as separate television a part, with Production efficiency is improved, is provided through the circuit of video screen power supply in TV host simultaneously and by power supply adaptor power supply Circuit.In this case, in order to determine subsequent which kind of user interface of display and the network of TV host how be arranged The problems such as address, needs to detect the power supply mode of TV host.
Video screen in the embodiment of the present disclosure is matched video screen when TV host dispatches from the factory, with TV host one Play composition Split type television machine.Port in video screen for TV host supplying power is the port for exporting electric energy.Here port It can be the port for being TV host supplying power on video screen mainboard.Here port is also possible to conducting wire, then, first One end of resistance R11 is used to connect with the conducting wire in video screen being TV host supplying power.
Working power of the TV host system power supply as the detection circuit, can be 3.3V.TV host system electricity Source can be the power supply of video screen power panel output, be also possible to the power supply of adapter output.With the collector c of triode 13 The default port of the CPU of connection can be universal input/output (General Purpose Input Output of CPU;Letter Claim: GPIO) mouth, for example, the GPIO27 mouth of CPU.
Optionally, in the embodiment of the present disclosure, be host supplying power port output voltage be 5V.The resistance value of first resistor is 33000 ohm.The resistance value of second resistance is 10000 ohm.The resistance value of 3rd resistor is 10000 ohm.The model of triode can To be LMBT3904LT1G.
The working condition of triode 13 is analyzed below: when Ib=Ic/hfe, it is believed that triode 13 is in Critical state between saturation region and amplification region.In order to make triode 13 enter complete saturation state, can choose Ib > 5 × Ic/hfe.Hfe is triode H parameter, i.e. the small signal of common emitter low frequency exports alternating short-circuit current amplification coefficient.Ib=(Vi- Vbe)/Rb, Vi are in video screen be TV host supplying power the voltage that provides of port, Rb is the base resistance of triode 13, Vbe is the conducting voltage of triode 13.In the embodiments of the present disclosure, Vi=5/ (33+10) × 10=1.16V, Rb=33K × 10K/ (33K+10K)=7.67K, so Ib=(1.16-0.7)/7.67K=60uA, Ic=(3.3-Vce)/10K=(3.3- 0.4)/10K=290uA.For current triode, hfe minimum value is 40, Ic/hfe=7.25uA.Then, 8 × Ic/hfe of Ib ≈, This can guarantee that the triode of the detection circuit also can enter saturation state in worst case.
The course of work for the detection circuit that the embodiment of the present disclosure provides is as follows: by one end of first resistor R11 and TV screen It is connected in curtain for the port of TV host supplying power, the collector of triode is connect with the default port of the CPU of TV host.? When TV host obtains electric energy by video screen, it is connected to power supply on one end of first resistor R11 at this point, being equivalent to, then Triode 13 is in the conductive state, also, knows that triode 13 is in a saturated state.When triode 13 is in a saturated state, Near short circuit between the collector c and emitter e of triode 13, at this point, the output voltage of the collector c of triode 13 is 0, i.e., Export logic low.When TV host obtains electric energy by power supply adaptor, at this point, the base stage b of triode 13 is without electricity Pressure, triode 13 are in off state, and the output voltage of the collector c of triode 13 is approximately VCC, i.e. holding logic high State.CPU can obtain the power supply mode of TV host by reading the state of default port, thus, the detection circuit is real The power supply mode of detection TV host is showed, and output test result is to default port.
It optionally, can also include: capacitor C15 in the detection circuit that the embodiment of the present disclosure provides.One end of capacitor C15 It is connect with the base stage b of triode 13.The other end of capacitor C15 is grounded.The capacitance of capacitor C15 can be 0.1 microfarad.Setting electricity The interference signal in the operating mode identification circuit of TV host can be shielded by holding C15, improve the accuracy of detection.
It is understood that being based on detection circuit shown in Fig. 2, the first level state is logic high, second electrical level State is logic low.
In a step 102, when the state for determining default port is the first level state, the Working mould of TV host is identified Formula is as TV box.
In step 103, when the state for determining default port is second electrical level state, the Working mould of TV host is identified Formula is as separate television.
In a step 102 and in step 103, based on the description in embodiment illustrated in fig. 2 to the detection circuit course of work, when When the state of default port is the first level state, illustrate that triode is in off state, one end of first resistor does not have power supply Access illustrates to power at this time for TV host power supply adapter, and TV host is connect with other video screens, i.e., it is As TV box.When the state of default port is second electrical level state, illustrate that triode is in the conductive state, first resistor One end have plant-grid connection, illustrate at this time for video screen power, TV host is connect in video screen matched with its, i.e., It is as separate television.
Further, the operating mode recognition methods for the TV host that the embodiment of the present disclosure provides can also include following step It is rapid: when the operating mode of identification TV host is to prompt on the video screen connecting with TV host as the TV box period of the day from 11 p.m. to 1 a.m The resolution ratio of user setting TV host output;It is being electric when the operating mode for identifying TV host is as separate television Depending on prompting user to adjust the parameter of the video screen on the video screen of host supplying power.Here the electricity being connect with TV host Screen curtain refers to the video screen from TV host for different manufacturers.It is and the electricity for the video screen of TV host supplying power Host is regarded as same all one's life manufacturer, and can be with the mating video screen used as a set of separate television of the TV host.
When the operating mode of identification TV host is to illustrate that TV host is to give birth to factory with other at this time as the TV box period of the day from 11 p.m. to 1 a.m What the video screen of quotient was used together.TV host needs to adjust the output resolution ratio of oneself, to adapt to the video screen, realizes Optimal display effect improves user experience.Therefore, in this case, TV host prompts user to set on the tv screen Set the resolution ratio of TV host output.The resolution ratio that user can be supported according to the video screen, setting TV host export Resolution ratio.TV host can prompt user setting TV host by way of showing user interface on the video screen The resolution ratio of output.
When the operating mode for identifying TV host is as separate television, illustrate that TV host is as split type at this time A part of television set video screen matched with its with energy is used together.At this point, the adjustable video screen of TV host Parameter, to realize the optimal display state of video screen.Here the parameter of video screen may include video screen backlight, The parameters such as tone, contrast.TV host can prompt user's tune by way of showing user interface on the video screen Save the parameter of video screen.
Further, the operating mode recognition methods for the TV host that the embodiment of the present disclosure provides can also include following step Rapid: when the operating mode of identification TV host is as the TV box period of the day from 11 p.m. to 1 a.m, then TV host obtains video screen connected to it Network address, and when the network address for determining video screen is identical as the network address of oneself, with modifying the network of oneself Location.The step can reduce the network conflict of TV host and video screen, improve the stability of TV host work.
The operating mode recognition methods for the TV host that the embodiment of the present disclosure provides, by the default port for obtaining CPU State, when the state for determining default port is the first level state, the operating mode of identification TV host is as TV box Son, when the state for determining default port is second electrical level state, the operating mode of identification TV host be as separate television, The operating mode of identification TV host is realized, in order to carry out subsequent operation according to specific operating mode, thus, it improves The job stability and user experience of TV host.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 3 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment.It should The operating mode identification device of TV host can be become by being implemented in combination with for software, hardware or both comprising terminal device It is some or all of.As shown in figure 3, the operating mode identification device for the TV host that the embodiment of the present disclosure provides includes:
Module 31 is obtained, is configured as obtaining the state of the default port of the CPU of TV host.
First identification module 32 is configured as identifying TV when the state for determining default port is the first level state The operating mode of host is as TV box.
Second identification module 33 is configured as identifying TV when the state for determining default port is second electrical level state The operating mode of host is as separate television.
Optionally, presetting port is GPIO mouthfuls.
The operating mode identification device for the TV host that the embodiment of the present disclosure provides obtains module by setting, is configured For the state of the default port of the CPU of acquisition TV host, the first identification module is configured as when the state for determining default port When for the first level state, the operating mode of identification TV host is as TV box, and the second identification module is configured as working as When the state for determining default port is second electrical level state, the operating mode of identification TV host is to realize as separate television The operating mode of identification TV host, in order to carry out subsequent operation according to specific operating mode, thus, improve electricity Depending on the job stability and user experience of host.
Fig. 4 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment.? On the basis of embodiment illustrated in fig. 3, the embodiment of the present disclosure is made one to the concrete composition for obtaining module 31 and is described in detail.Such as Fig. 4 institute Show, in the operating mode identification device that the embodiment of the present disclosure provides, obtaining module 31 includes:
Reading submodule 311 is configured as reading the state of the register in CPU corresponding with default port.
Correspondingly, if it includes: register that the state of the determining default port of the first identification module 32, which is the first level state, State is first state value, it is determined that the state for stating default port is the first level state.Second identification module 33 determines default If the state of port is that the state that second electrical level state includes: register is the second state value, it is determined that state the shape of default port State is the first level state.
The operating mode identification device for the TV host that the embodiment of the present disclosure provides is matched by the way that reading submodule is arranged It is set to the state for reading the register in CPU corresponding with default port, realizes the default end for determining CPU with convenient local formula The state of mouth, improves the efficiency of identification process and the accuracy of recognition result.
Fig. 5 is a kind of block diagram of the operating mode identification device of the TV host shown according to another exemplary embodiment. The embodiment of the present disclosure on the basis of the embodiment shown in fig. 4, is made one to other modules of device and is described in detail.As shown in figure 5, this The operating mode identification device for the TV host that open embodiment provides further include:
Detection module 51 is configured as detecting the power supply mode of TV host by detection circuit.
Output module 52, the testing result for being configured as will test circuit are exported to default port.
Writing module 53 is configured as the level state of default port being written in register corresponding with default port.
The realization process and technical principle of detection circuit in the embodiment of the present disclosure are as shown in Fig. 2, details are not described herein again.
The operating mode identification device for the TV host that the embodiment of the present disclosure provides is configured by the way that detection module is arranged For the power supply mode for detecting TV host by detection circuit, output module, the testing result for being configured as will test circuit is defeated Out to default port, writing module is configured as the level state of default port register corresponding with default port is written In, it realizes in the result write-in register that will test circuit, for subsequent identification, improves the accuracy of recognition result.
Fig. 6 is a kind of block diagram of the operating mode identification device of the TV host shown according to a further exemplary embodiment. The embodiment of the present disclosure is made one to other modules of device and is described in detail on the basis of Fig. 3-embodiment illustrated in fig. 5.Such as Fig. 6 institute Show, the operating mode identification device for the TV host that the embodiment of the present disclosure provides further include:
First cue module 61, be configured as when the operating mode of identification TV host be as the TV box period of the day from 11 p.m. to 1 a.m, with The resolution ratio of prompt user setting TV host output on the video screen of TV host connection.
Second cue module 62, be configured as when identify TV host operating mode be as separate television when, for User is prompted to adjust the parameter of video screen on the video screen of TV host supplying power.
The operating mode identification device for the TV host that the embodiment of the present disclosure provides, by the way that the first cue module, quilt is arranged It is configured to when the operating mode of identification TV host be above to mention as the TV box period of the day from 11 p.m. to 1 a.m in the video screen connecting with TV host Show that the resolution ratio of user setting TV host output, the second cue module are configured as the operating mode when identification TV host When for as separate television, prompts user to adjust the parameter of video screen on the video screen for TV host supplying power, realize It can show different user interfaces according to different recognition results, improve user experience.
The foregoing describe the built-in function and structure of the operating mode identification device of TV host, Fig. 7 is according to an example Property implement the block diagram of the operating mode identification device of TV host exemplified a kind of.As shown in fig. 7, the work of the TV host Pattern recognition device can be realized are as follows:
Processor 71;
Memory 72 for 71 executable instruction of storage processor;
Wherein, processor 71 is configured as:
Obtain the state of the default port of the central processor CPU of TV host;
When the state for determining default port is the first level state, the operating mode of identification TV host is as TV Box;
When the state for determining default port is second electrical level state, the operating mode of identification TV host is as seperated TV.
Fig. 8 is a kind of block diagram of the operating mode identification device of TV host shown according to an exemplary embodiment.Example Such as, the operating mode identification device 800 of TV host can be mobile phone, computer, digital broadcast terminal, and information receiving and transmitting is set It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor module 814, Yi Jitong Believe component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between device 800 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 808 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 800 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the Working mould of TV host When the processor of formula identification device executes, so that the operating mode identification device of TV host is able to carry out above-mentioned TV host Operating mode recognition methods.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims System.

Claims (11)

1. a kind of operating mode recognition methods of TV host characterized by comprising
Obtain the state of the default port of the central processor CPU of TV host;
When the state for determining the default port is the first level state, identify that the operating mode of the TV host is conduct TV box;
When the state for determining the default port is second electrical level state, identify that the operating mode of the TV host is conduct Separate television;
The method also includes:
The power supply mode of the TV host is detected by detection circuit;
The testing result of the detection circuit is exported to the default port;
It will be in the level state of default port write-in register corresponding with the default port;
The detection circuit includes:
First resistor, second resistance, triode and 3rd resistor;Wherein,
One end of the first resistor with the port in video screen being the TV host supplying power for connecting, first electricity The other end of resistance is connect with the base stage of the triode, and one end of the second resistance is connect with the base stage of the triode, institute State the other end ground connection of second resistance, the emitter ground connection of the triode, the collector of the triode and third electricity One end of resistance connects, and the other end of the 3rd resistor is connect with TV host system power supply, and the collector of the triode is used It is connect in the default port of the central processor CPU of the TV host.
2. the method according to claim 1, wherein the shape of the default port of the CPU for obtaining TV host State includes:
Read the state of the register in the CPU corresponding with the default port;
Correspondingly, the state for determining the default port is that the first level state includes:
If the state of the register is first state value, it is determined that the state of the default port is the first level state;
The state for determining the default port is that second electrical level state includes:
If the state of the register is the second state value, it is determined that the state of the default port is the first level state.
3. the method according to claim 1, wherein the detection circuit further includes capacitor, the one of the capacitor End is connect with the base stage of the triode, the other end ground connection of the capacitor.
4. method according to claim 1-3, which is characterized in that the method also includes:
When the operating mode for identifying the TV host is as the TV box period of the day from 11 p.m. to 1 a.m, in the TV screen connecting with the TV host The resolution ratio of user setting TV host output is prompted on curtain;
When the operating mode for identifying the TV host is as separate television, in the TV screen for the TV host supplying power User is prompted to adjust the parameter of the video screen on curtain.
5. according to the method described in claim 4, it is characterized in that, the default port is universal input/GPIO mouthfuls of output.
6. a kind of operating mode identification device of TV host characterized by comprising
Module is obtained, is configured as obtaining the state of the default port of the central processor CPU of TV host;
First identification module is configured as identifying the electricity when the state for determining the default port is the first level state The operating mode of host is regarded as TV box;
Second identification module is configured as identifying the electricity when the state for determining the default port is second electrical level state The operating mode of host is regarded as separate television;
Described device further include:
Detection module is configured as detecting the power supply mode of the TV host by detection circuit;
Output module is configured as exporting the testing result of the detection circuit to the default port;
Writing module is configured as the level state of default port write-in register corresponding with the default port In;
The detection circuit includes:
First resistor, second resistance, triode and 3rd resistor;Wherein,
One end of the first resistor with the port in video screen being the TV host supplying power for connecting, first electricity The other end of resistance is connect with the base stage of the triode, and one end of the second resistance is connect with the base stage of the triode, institute State the other end ground connection of second resistance, the emitter ground connection of the triode, the collector of the triode and third electricity One end of resistance connects, and the other end of the 3rd resistor is connect with TV host system power supply, and the collector of the triode is used It is connect in the default port of the central processor CPU of the TV host.
7. device according to claim 6, which is characterized in that the acquisition module includes:
Reading submodule is configured as reading the state of the register in the CPU corresponding with the default port;
Correspondingly, first identification module determines that the state of the default port is that the first level state includes:
When the state of the register is first state value, determine that the state for stating default port is the first level state;
Second identification module determines that the state of the default port is that second electrical level state includes:
When the state of the register is the second state value, determine that the state for stating default port is the first level state.
8. device according to claim 6, which is characterized in that the detection circuit further includes capacitor, and the one of the capacitor End is connect with the base stage of the triode, the other end ground connection of the capacitor.
9. according to the described in any item devices of claim 6-8, which is characterized in that described device further include:
First cue module, be configured as when the operating mode for identifying the TV host be as the TV box period of the day from 11 p.m. to 1 a.m, with institute State the resolution ratio of prompt user setting TV host output on the video screen of TV host connection;
Second cue module is configured as when the operating mode for identifying the TV host is as separate television, for institute State the parameter for prompting user to adjust the video screen on the video screen of TV host supplying power.
10. device according to claim 9, which is characterized in that the default port is universal input/GPIO mouthfuls of output.
11. a kind of operating mode identification device of TV host characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Obtain the state of the default port of the central processor CPU of TV host;
When the state for determining the default port is the first level state, identify that the operating mode of the TV host is conduct TV box;
When the state for determining the default port is second electrical level state, identify that the operating mode of the TV host is conduct Separate television;
Described device further include:
The power supply mode of the TV host is detected by detection circuit;
The testing result of the detection circuit is exported to the default port;
It will be in the level state of default port write-in register corresponding with the default port;
The detection circuit includes:
First resistor, second resistance, triode and 3rd resistor;Wherein,
One end of the first resistor with the port in video screen being the TV host supplying power for connecting, first electricity The other end of resistance is connect with the base stage of the triode, and one end of the second resistance is connect with the base stage of the triode, institute State the other end ground connection of second resistance, the emitter ground connection of the triode, the collector of the triode and third electricity One end of resistance connects, and the other end of the 3rd resistor is connect with TV host system power supply, and the collector of the triode is used It is connect in the default port of the central processor CPU of the TV host.
CN201611182119.0A 2016-12-20 2016-12-20 The operating mode recognition methods of TV host and device Active CN106713981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611182119.0A CN106713981B (en) 2016-12-20 2016-12-20 The operating mode recognition methods of TV host and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611182119.0A CN106713981B (en) 2016-12-20 2016-12-20 The operating mode recognition methods of TV host and device

Publications (2)

Publication Number Publication Date
CN106713981A CN106713981A (en) 2017-05-24
CN106713981B true CN106713981B (en) 2019-09-20

Family

ID=58939164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611182119.0A Active CN106713981B (en) 2016-12-20 2016-12-20 The operating mode recognition methods of TV host and device

Country Status (1)

Country Link
CN (1) CN106713981B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN211830963U (en) * 2020-05-08 2020-10-30 深圳Tcl数字技术有限公司 Movement main board and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747335A (en) * 2013-11-29 2014-04-23 乐视致新电子科技(天津)有限公司 Smart television mode switching method and device
CN105302518A (en) * 2015-12-01 2016-02-03 合肥联宝信息技术有限公司 Computer equipment and control method thereof
CN105915827A (en) * 2015-12-14 2016-08-31 乐视致新电子科技(天津)有限公司 Audio and video playing device and power supply method thereof
CN105915828A (en) * 2015-12-11 2016-08-31 乐视致新电子科技(天津)有限公司 Split television realization method and split television

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5373148B2 (en) * 2012-04-23 2013-12-18 シャープ株式会社 Display device, display system, display device control method, program, and recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747335A (en) * 2013-11-29 2014-04-23 乐视致新电子科技(天津)有限公司 Smart television mode switching method and device
CN105302518A (en) * 2015-12-01 2016-02-03 合肥联宝信息技术有限公司 Computer equipment and control method thereof
CN105915828A (en) * 2015-12-11 2016-08-31 乐视致新电子科技(天津)有限公司 Split television realization method and split television
CN105915827A (en) * 2015-12-14 2016-08-31 乐视致新电子科技(天津)有限公司 Audio and video playing device and power supply method thereof

Also Published As

Publication number Publication date
CN106713981A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
CN104281432A (en) Method and device for regulating sound effect
CN103986999B (en) A kind of method, apparatus and terminal device of test earphone impedance
CN104090741A (en) Statistical method and device for electronic book reading
CN104506443A (en) Router setting interface display method and device
CN104238912A (en) Application control method and application control device
CN104461568A (en) Electronic accessory recognition device and method
CN105912258A (en) Method and device for operation processing
CN103914148A (en) Function interface display method and device and terminal equipment
CN105406882A (en) Terminal equipment control method and device
CN104038882A (en) Loudspeaker debugging model calibration method and loudspeaker debugging method and device
CN105139378A (en) Card boundary detection method and apparatus
CN106033397A (en) Method and device for adjusting memory buffer, and terminal
CN104378715A (en) Device and method for lowering earphone POP sound
CN105554631B (en) Audio switching method, device and electronic equipment
CN105975038A (en) Prompt method and device of charging port detection result
CN105426042A (en) Icon position exchange method and apparatus
CN104503762A (en) Device and method for identifying electronic accessory
CN105187671A (en) Recording method and device
CN106484296A (en) Mobile terminal prevents processing method, device and the equipment of false touch
CN106713981B (en) The operating mode recognition methods of TV host and device
CN105487774A (en) Image grouping method and device
CN105677215A (en) Application control method and apparatus
CN104837020A (en) Video playing method and device
CN109189313A (en) Mobile device and its control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant