stbDvbInput

stbDvbInput

Since:
  • v344
Tutorials:

Main object to manage DVB-C/T/T2 subsystem.

Not accessible in global scope.
Can't be manually created but can be received from other STB global objects.

Members

(static) antennaPower :boolean

Default Value:
  • false

Manual control of antenna power state.

Used to supply power to active antenna.

Triggers stbDvbInput.onAntennaPower hook.

In case when connected antenna is not active a legacy event 33 (0x2B)
will be triggered and antenna power will be disabled.

Type:
  • boolean

(static, readonly) state :number

Current state of this tunner.

Value Description
0 idle
1 scan in progress
Type:
  • number

(static, readonly) signalLevel :number

Signal level [0..100].

Type:
  • number

(static, readonly) signalQuality :number

Signal quality [0..100].

Type:
  • number

(static, readonly) supportedScanTypes :Array.<stbDvbInput~dvbSignalType>

Get supported scan types for this tunner.

Type:
Example
[1, 2, 3]

(static, readonly) currentScanTypes :Array.<stbDvbInput~dvbSignalType>

Get currently supported scan types for this tunner.

The difference with stbDvbInput.supportedScanTypes is:
result of stbDvbInput.currentScanTypes depends on current DVB type
e.i. for MAG275 it can be either DVB-C or DVB-T and DVB-T2, for MAG356 it can be DVB-S2.

Type:
Example
[2, 3]

(static) bitErrorRate :number

Get Bit Error Rate.

(Bit Error Rate) * 10^7

Type:
  • number

Methods

(static) setSignalType(type) → {boolean}

Set current scan type for this STB.

Example
stbDvbManager.list[0].setSignalType(1);
Parameters:
Name Type Description
type stbDvbInput~dvbSignalType

DVB signal type

Returns:

operation status

Type
boolean

(static) startScan(config) → {boolean}

Start channel scanning.

During scan 2 events can be triggered.

Parameters:
Name Type Description
config Object

scan configuration object

Properties
Name Type Attributes Description
from number

scan range start frequency (in kHz)

to number

scan range end frequency (in kHz)

type stbDvbInput~dvbSignalType

DVB signal type

symbolRate number <optional>

satellite/cable signal symbol rate (symbols per second) (only for DVB-C and DVB-S/DVB-S2)

bandwidth number

channel bandwidth in MHz. e.i. 6, 7, 8 (only for DVB-T/DVB-T2)

step number

frequency step (in kHz)

modulation number

signal modulation

Value Description
0 AUTO
1 16QAM
2 32QAM
3 64QAM
4 128QAM
5 256QAM
scanMode number

0 - network, 1 - full, 2 - fast (use NIT) (only for DVB-C)

frequency number

channel frequency (in kHz)

networkId string

network ID (0 - auto)

Returns:

operation status

Type
boolean

(static) stopScan() → {boolean}

Stop channel scan.

Returns:

operation status

Type
boolean

(static) tune(config) → {boolean}

See:

Tune receiver to specified frequency.

Parameters:
Name Type Description
config Object

tune configuration object

Properties
Name Type Description
frequency number

channel frequency (in kHz)

polarization string

optional satellite signal polarization ("V" - vertical, "H" - horizontal, "CL" - circular left, "CR" - circular right ) to tune to (only for DVB-S/DVB-S2)

symbolRate number

satellite/cable signal symbol rate (symbols per second) (only for DVB-C and DVB-S/DVB-S2)

type stbDvbInput~dvbSignalType

DVB signal type

Returns:

operation status

Type
boolean

(static) untune() → {boolean}

Untune receiver from frequency.

Returns:

operation status

Type
boolean

(static) onScanProgress(data)

See:

DVB channels scanning is in progress (when scan starts to search new frequency).

Example
{
    state: 'searching',
    channel: 12,
    frequency: 226500,
    progress: 12,
    polarization: 'H'
}
Parameters:
Name Type Description
data Object

event info

Properties
Name Type Description
state number

scan state: "searching" or "finished"

channel number

channel number in frequency grid

frequency number

channel frequency (in kHz)

progress number

scan progress in range [0..100]

polarization number

optional satellite signal polarization ("V" - vertical, "H" - horizontal, "CL" - circular left, "CR" - circular right ) to tune to

(static) onChannelFound(data)

See:

DVB channel is found.

Example
{
    id: 'T2_41_490000',
    name: 'some channel name',
    frequency: 490000,
    symbolRate: 0,
    type: 3
}
Parameters:
Name Type Description
data Object

event info

Properties
Name Type Description
id number

channel unique identifier

type stbDvbInput~dvbSignalType

DVB signal type

name number

channel name

frequency number

channel frequency (in kHz)

polarization number

optional satellite signal polarization ("V" - vertical, "H" - horizontal, "CL" - circular left, "CR" - circular right ) to tune to

symbolRate number

optional satellite/cable signal symbol rate (symbols per second)

(static) onAntennaPower(status)

See:

DVB antenna power status change.

Parameters:
Name Type Description
status boolean

power state

Type Definitions

dvbSignalType

DVB signal type.

Value Description
1 DVB-C signal
2 DVB-T signal
3 DVB-T2 signal (not available for MAG270)
4 DVB-S/DVB-S2 signal
Type:
  • number