CN111385654B - Intelligent television analog quantity parameter control method based on middleware - Google Patents
Intelligent television analog quantity parameter control method based on middleware Download PDFInfo
- Publication number
- CN111385654B CN111385654B CN202010144041.3A CN202010144041A CN111385654B CN 111385654 B CN111385654 B CN 111385654B CN 202010144041 A CN202010144041 A CN 202010144041A CN 111385654 B CN111385654 B CN 111385654B
- Authority
- CN
- China
- Prior art keywords
- analog
- compensation
- analog quantity
- value
- middleware
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4433—Implementing client middleware, e.g. Multimedia Home Platform [MHP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4854—End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Feedback Control In General (AREA)
Abstract
The invention discloses a middleware-based intelligent television analog parameter control method, which comprises the following steps of: establishing a state detection thread on a kernel driver layer, and performing cycle detection on states at regular intervals to sequentially detect state changes of a plurality of analog quantities of the smart television; establishing a processing thread in a middleware layer, and detecting the change of information and analog quantity parameters of a device driving module at regular time by reading data of a kernel driver layer; when the processing thread inquires the state of the analog quantity and the parameter change, entering an automatic dynamic compensation analog quantity process for changing the analog quantity parameter output; the invention solves the problem that the device driving module in the intelligent television can not be directly controlled when the compensation requirement exists.
Description
Technical Field
The invention relates to the technical field of intelligent embedded software, in particular to a middleware-based intelligent television analog quantity parameter control method.
Background
The analog components of a television set, such as contrast and brightness, are currently implemented in the middleware layer. If the device driving module detects that the analog quantity of the television needs dynamic compensation, the module cannot directly control the analog quantity, and then compensation control cannot be carried out.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a method for controlling the analog quantity parameters of the intelligent television based on the middleware, and the method solves the problem that direct control cannot be performed when a device driving module in the intelligent television has a compensation requirement.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for controlling an analog quantity parameter of a smart television based on middleware comprises the following steps:
step 2, establishing a processing thread in a middleware layer, and detecting the change of information and analog quantity parameters of a device driving module at regular time by reading data of a kernel driver layer;
step 3, entering an automatic dynamic compensation analog quantity process for changing the analog quantity parameter output after the processing thread inquires the state of the analog quantity and the parameter change; the method specifically comprises the following steps:
step 3.1, the query state and parameters have been changed;
step 3.2, if the current compensation value p1 is less than the dynamic compensation set value p, adding one to the compensation value p1, and otherwise, subtracting one from the compensation value p;
3.3, calculating a final control value according to the compensation value p1, the set value U1 of the user backed up in the original analog parameter control process and the median U50, and controlling to output the compensation analog; and according to different analog quantities, the time is delayed for different times and the process returns to the step 3.2, and the steps 3.2 to 3.3 are executed in a loop until the current compensation value p1 is equal to the dynamic compensation set value p.
As a preferred embodiment, the step 3.3 specifically comprises the following steps:
step 3.3.1, calculating a maximum value Upmax of the user compensation setting according to the dynamic compensation setting value p, wherein Upmax is U50+ p;
step 3.3.2, outputting the compensation analog quantity Uout, wherein Uout is p1+ U1; if Uout > Upmax, the analog quantity output is Upmax; otherwise, the analog output is p1+ U1.
As another preferred embodiment, the original analog parameter control process specifically includes the following steps:
(1) calculating a maximum value Upmax set by a user in a compensation mode according to the dynamic compensation setting value p, wherein the Upmax is U50+ p;
(2) setting value U1 of the backup user;
(3) if U1> Upmax, the analog output is U1;
(4) if p1+ U1> Upmax, the analog output equals Upmax;
(5) the other analog outputs p1+ U1.
As another preferred embodiment, in step 2, the processing thread established by the middleware layer reads data of the kernel driver layer through the ioctl.
The invention has the beneficial effects that: the invention can acquire the detection change obtained by the equipment drive and perfect the control analog quantity dynamic compensation value according to the requirement.
Drawings
FIG. 1 is a software implementation framework diagram of an embodiment of the present invention;
FIG. 2 is a block diagram illustrating a state change process in a state detection thread according to an embodiment of the present invention;
FIG. 3 is a control block diagram of compensation analog in a processing thread according to an embodiment of the present invention;
FIG. 4 is a control block diagram of UI control analog in an embodiment of the present invention;
FIG. 5 is a graph of input and output curves of an analog quantity in an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
As shown in FIG. 1, a method for controlling the analog quantity parameter of the intelligent television based on the middleware is provided, which comprises the steps of establishing a processing thread at the middleware layer, inquiring the information of the equipment driving module and the analog quantity compensation data at regular time, comparing the compensation value with the set value when a change is found, and slowly adding or subtracting, for example, adding or subtracting one according to the time (100 ms-1000 ms) with different analog quantity intervals. The final set value is output by an algorithm control of the original user value and the median and offset values.
In this embodiment, the communication between the middleware layer and the device driver module is completed through an ioctrl interface, so as to query and set data.
Specifically, as shown in fig. 1, in this embodiment, a switch of the DBC is added to the application layer to dynamically compensate the maximum setting parameter. The dynamic compensation maximum is set to the middleware at system initialization. Other parameters such as the DBC switch and user analog initialization are also set, allowing the user to set.
The middleware layer separately stores the user analog quantity set by the user layer, and also stores the median U50 of the curve in different modes and the maximum value pmax of the dynamic compensation for use in the algorithm for calculating the analog quantity.
A processing thread is newly established in a middleware layer, detection information of an equipment driving module is inquired at regular intervals of 500ms, and the communication mode is that data of a kernel driver layer is read through ioctl.
In the embodiment, a state detection thread is built at a kernel driver layer, the thread is a 20ms loop detection state, a plurality of state changes can be detected sequentially, for example, after ST1 is changed, CntSt 1 counting is carried out, and after one Gatet 1 is accumulated, ST1 change information is given. As shown in FIG. 2, ST1 may represent brightness, ST2 may represent contrast, etc.
And after the query state and the parameters are changed, the processing thread enters a process of changing the parameters.
As shown in fig. 3, the process of changing the parameter according to the compensation value in the present embodiment is as follows:
(1) calculating a maximum value Upmax set by a user in a compensation mode according to the dynamic compensation setting value p, wherein the Upmax is U50+ p;
(2) the query state and parameters (dynamic compensation set point p) have changed;
(3) the current compensation value p1 is less than the dynamic compensation set value p, the compensation value p1 is added with one, otherwise, the value is subtracted with one;
(4) and (3) an algorithm for outputting a compensation analog quantity: uout p1+ U1; if Uout < Upmax, the analog output is p1+ U1; otherwise, the analog quantity is not output;
(5) delaying for different times (100 ms-1000 ms) according to different analog quantities;
(6) loop to (3) until the current compensation value p1 becomes the dynamic compensation set value p.
As shown in fig. 4, the method for controlling the original analog quantity is modified in the middleware layer according to the present embodiment, and the flow is as follows:
(1) calculating a maximum value Upmax set by a user in a compensation mode according to the dynamic compensation setting value p, wherein Upmax is U50+ pmax;
(2) setting value U1 of the backup user;
(3) if U1> Upmax, the analog output is U1;
(4) if p1+ U1> Upmax, the analog quantity output is Upmax;
(5) the other analog outputs p1+ U1.
The final input/output curve graph of the analog quantity is shown in fig. 5, and in fig. 5, the delta value is a real-time control value calculated by an algorithm; the embodiment has two control modes: the control method of automatic dynamic compensation analog quantity also includes user UI control mode; the action of backing up the user initial value is added in the control of the original analog quantity, and the dynamic analog quantity reads the backup value and then controls the dynamic analog quantity, aiming at ensuring the independence of the original control.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
Claims (4)
1. A method for controlling an analog quantity parameter of a smart television based on middleware is characterized by comprising the following steps:
step 1, establishing a state detection thread on a kernel driver layer, and performing cycle detection on states at regular intervals to sequentially detect state changes of a plurality of analog quantities of the smart television;
step 2, establishing a processing thread in a middleware layer, and detecting the change of information and analog quantity parameters of a device driving module at regular time by reading data of a kernel driver layer;
step 3, entering an automatic dynamic compensation analog quantity process for changing the analog quantity parameter output after the processing thread inquires the state of the analog quantity and the parameter change; the method specifically comprises the following steps:
step 3.1, the query state and parameters have been changed;
step 3.2, if the current compensation value p1 is less than the dynamic compensation set value p, adding one to the compensation value p1, and otherwise, subtracting one from the compensation value p;
3.3, calculating a final control value according to the compensation value p1, the set value U1 of the user backed up in the original analog parameter control process and the median U50, and controlling to output the compensation analog; and according to different analog quantities, the time is delayed for different times and the process returns to the step 3.2, and the steps 3.2 to 3.3 are executed in a loop until the current compensation value p1 is equal to the dynamic compensation set value p.
2. The middleware-based intelligent television analog parameter control method according to claim 1, wherein the step 3.3 specifically comprises the following steps:
step 3.3.1, calculating a maximum value Upmax of the user compensation setting according to the dynamic compensation setting value p, wherein Upmax is U50+ p;
step 3.3.2, outputting the compensation analog quantity Uout, wherein Uout is p1+ U1; if Uout < Upmax, the analog output is p1+ U1; otherwise, the analog quantity is not output.
3. The intelligent television analog parameter control method based on the middleware as claimed in claim 2, wherein the original analog parameter control process specifically comprises the following steps:
(1) calculating a maximum value Upmax set by a user in a compensation mode according to the dynamic compensation maximum value pmax, wherein Upmax is U50+ pmax;
(2) setting value U1 of the backup user;
(3) if U1> Upmax, the analog output is U1;
(4) if p1+ U1> Upmax, the analog output equals Upmax;
(5) the other analog outputs p1+ U1.
4. The intelligent television analog quantity parameter control method based on the middleware of claim 1, wherein in the step 2, the processing thread established by the middleware layer reads the data of the kernel driver layer through ioctl.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010144041.3A CN111385654B (en) | 2020-03-04 | 2020-03-04 | Intelligent television analog quantity parameter control method based on middleware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010144041.3A CN111385654B (en) | 2020-03-04 | 2020-03-04 | Intelligent television analog quantity parameter control method based on middleware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385654A CN111385654A (en) | 2020-07-07 |
CN111385654B true CN111385654B (en) | 2021-06-22 |
Family
ID=71217040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010144041.3A Active CN111385654B (en) | 2020-03-04 | 2020-03-04 | Intelligent television analog quantity parameter control method based on middleware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385654B (en) |
Family Cites Families (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383914A (en) * | 2007-09-04 | 2009-03-11 | 康佳集团股份有限公司 | Method for quick regulating analogue signal of television and television set thereof |
CN101202919B (en) * | 2007-11-06 | 2011-05-11 | 深圳市同洲电子股份有限公司 | Digital television receiver and intermediate part |
EP2368362A4 (en) * | 2008-12-24 | 2012-12-26 | Lg Electronics Inc | An iptv receiver and method for controlling an application in the iptv receiver |
EP2252055B1 (en) * | 2009-05-13 | 2013-09-18 | Sony Europe Limited | A system for retrieval of executable applications for broadcast television |
CN102185970A (en) * | 2011-04-22 | 2011-09-14 | 上海网达软件有限公司 | Method for establishing standard for handset video player component model object interface |
CN102316288B (en) * | 2011-09-09 | 2013-07-10 | 深圳创维-Rgb电子有限公司 | Television program playing method and television |
CN102333246A (en) * | 2011-10-19 | 2012-01-25 | 广东中大讯通软件科技有限公司 | User interface system based on Flash middleware of set top box |
KR101307664B1 (en) * | 2012-09-11 | 2013-09-12 | 박희재 | A client device implementing middleware to link between heterogeneous exergame equipment and variable game contents and management method thereof |
CN103024320B (en) * | 2012-12-14 | 2015-08-19 | 四川长虹电器股份有限公司 | Image brightness automatic compensating method under a kind of liquid crystal television dynamic backlight and device |
CN103384348B (en) * | 2013-05-29 | 2016-09-14 | 深圳市艾龙电子有限公司 | A kind of GINGA digital TV middleware implementation method on embedded digital TV platform |
CN103428272B (en) * | 2013-07-16 | 2016-06-15 | 无限极(中国)有限公司 | The monitoring and dispatching system of a kind of middleware thread and method |
US9847096B2 (en) * | 2014-02-20 | 2017-12-19 | Harman International Industries, Incorporated | Environment sensing intelligent apparatus |
KR102229156B1 (en) * | 2014-03-05 | 2021-03-18 | 삼성전자주식회사 | Display apparatus and method of controlling thereof |
CN105791991B (en) * | 2014-12-22 | 2018-07-17 | Tcl集团股份有限公司 | Television system and its implementation based on Firefox OS platforms |
CN105933767B (en) * | 2016-04-20 | 2019-06-25 | 青岛海信电器股份有限公司 | Middleware device, Middleware implementation method and television set |
CN106060651B (en) * | 2016-06-06 | 2019-08-16 | 深圳Tcl数字技术有限公司 | The starting method and system of smart television |
CN206149367U (en) * | 2016-11-17 | 2017-05-03 | 深圳裕达富电子有限公司 | Mobile phone motherboard with luminance and volume self -adaptation adjustment function |
KR101891328B1 (en) * | 2017-02-27 | 2018-08-24 | (주)에코메이텍 | Eco-friendly smart lighting control system according to the biorhythm and environment change |
CN108235101B (en) * | 2017-12-28 | 2021-04-16 | 深圳Tcl数字技术有限公司 | Smart television initialization method, smart television and computer readable storage medium |
CN109918061B (en) * | 2019-02-13 | 2022-06-14 | 福建星网智慧软件有限公司 | Cross-platform interface middleware implementation method and device based on android system |
CN110087124A (en) * | 2019-06-05 | 2019-08-02 | 聚好看科技股份有限公司 | Long-range control method, terminal device and the smart television of smart television |
-
2020
- 2020-03-04 CN CN202010144041.3A patent/CN111385654B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111385654A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102035919B (en) | Method and device for controlling display brightness | |
CN110187753B (en) | Application program control method, device, terminal and computer readable storage medium | |
US20120078435A1 (en) | Battery management system and method of dynamically allocating charging current | |
CN103050097B (en) | Method and device for regulating brightness of backlight lamp | |
CN101951445A (en) | Adaptive adjusting terminal equipment and method | |
CN105469746A (en) | Liquid crystal screen backlight control device, liquid crystal television and micro control unit (MCU) chip | |
EP0945845A3 (en) | Power consumption control in display unit | |
WO2018080649A1 (en) | Power saving techniques for an image capture device | |
CN101778230B (en) | Control method of liquid crystal display television automatic backlight adjusting speed | |
CN101394482A (en) | CMOS image sensor and automatic exposure control method | |
CN111385654B (en) | Intelligent television analog quantity parameter control method based on middleware | |
CN112445358A (en) | Adjusting method, terminal and computer storage medium | |
CN102055827B (en) | Incoming call vibration method and device of mobile terminal | |
CN100440941C (en) | A method of image processing and camera device | |
US10568184B2 (en) | Presence sensing method, presence sensing device and light system | |
CN102157140A (en) | Backlight control device and control method of backlight control device | |
CN113110073A (en) | Method for automatically controlling clothes hanger, clothes airing machine and storage medium | |
CN100399816C (en) | Device and method for controlling video signal black expansion | |
CN111693847B (en) | Chip testing method and device | |
CN114069821A (en) | Switching power supply circuit control method and device and power supply system | |
CN101251863B (en) | Self-adaptive segmentation linear processing device | |
CN114513888A (en) | Microwave sensor group control method based on bus, computer device and computer readable storage medium | |
CN109059219B (en) | Control method of WIFI module of air conditioner, air conditioner and storage medium | |
CN111210791B (en) | Screen brightness adjusting method and device of vehicle multimedia equipment | |
CN105469535A (en) | Surrounding environment feedback method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |