Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Management and control method and system for controlling GPIO of set-top box LED

A control system and control machine technology, applied in the GPIO control method and system field, can solve problems such as cumbersome implementation and easy confusion in logic design, achieve simple and flexible control, improve CPU processing efficiency, and avoid problems.

Active Publication Date: 2017-05-31
SHENZHEN JIUZHOU ELECTRIC
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, it is necessary to control the LEDs for the above two GPIOs. When the GPIOs are changed, the board layer and the Hal layer provide a control of the GPIOs that control the LEDs of the set-top box for the related changes of the GPIOs and the problems that the implementation is cumbersome and the logic design is easy to be confused. method and system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Management and control method and system for controlling GPIO of set-top box LED
  • Management and control method and system for controlling GPIO of set-top box LED

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0027] figure 1 It is a flowchart of a control method for controlling the GPIO of the set-top box LED in an embodiment, such as figure 1 As shown, the method includes the following steps:

[0028] S10: In the Board layer, pre-define LED attributes and LED corresponding GPIO control attributes, where LED attributes include LED controlled mode, LED status information, and LED function identification information; GPIO control attributes include: GPIO pins number, GPIO logic value, and GPIO operating status.

[0029] Since the current LED control requires two GPIOs, two GPIOs are prone to confusion ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a management and control method and system for controlling a GPIO of a set-top box LED. The method comprises the following steps: defining LED attributes and control attributes of the GPIO in advance, then packaging the defined attributes in a preset control variable, sending the packaged control variable to an Hal layer for analysis, initializing the GPIO through the defined attributes, and when an application layer operates the LED, performing management and control on the GPIO by the Hal layer by fast inquiry according to the defined attributes so as to accomplish the operation of the LED. The management and control of the GPIO are very simple and flexible. As the necessary LED attributes and control attributes of the GPIO are defined in advance, when the GPIO controlling the LED changes, only the defined attributes are modified on a Board layer and are sent to the Hal layer for analysis, the logic design is simple, the repetitive work of the Hal layer to continuously set the GPIO is relieved, the CPU processing efficiency is improved, and the control problem of the LED is avoided.

Description

technical field [0001] The invention relates to a digital TV terminal, in particular to a control method and system for controlling a GPIO of a set-top box LED. Background technique [0002] In the LED control of the set-top box, the GPIO (General Purpose Input / Output, GPIO for short) that controls the LED of the set-top box is configured on the Board layer (board layer), and the control of the LED is on the Hal layer (hardware abstraction layer). [0003] Currently, for LED control, a GPIO controls the turning on and off of an LED. Therefore, in terms of software implementation, only the GPIO pin number and logic value of the Board layer are sent to the Hal layer to realize the control of the corresponding LED. When one GPIO is controlled to realize various states of the LED (switch, color, etc.), two GPIOs need to be set at the same time. Two GPIOs controlling the LED will bring great difficulties to the logic implementation of the Hal layer software. When controlling the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/422G06F13/38
CPCG06F13/385H04N21/42222
Inventor 王华泽
Owner SHENZHEN JIUZHOU ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products