Btooth#

SCPI Commands :

[SOURce<HW>]:BB:BTOoth:BCRole
[SOURce<HW>]:BB:BTOoth:BCText
[SOURce<HW>]:BB:BTOoth:BMODe
[SOURce<HW>]:BB:BTOoth:CTYPe
[SOURce<HW>]:BB:BTOoth:DCYCle
[SOURce<HW>]:BB:BTOoth:DURation
[SOURce<HW>]:BB:BTOoth:HDRPphy
[SOURce<HW>]:BB:BTOoth:MFORmat
[SOURce<HW>]:BB:BTOoth:PFORmat
[SOURce<HW>]:BB:BTOoth:PRESet
[SOURce<HW>]:BB:BTOoth:PTYPe
[SOURce<HW>]:BB:BTOoth:SLENgth
[SOURce<HW>]:BB:BTOoth:STATe
[SOURce<HW>]:BB:BTOoth:STIMing
[SOURce<HW>]:BB:BTOoth:TMODe
[SOURce<HW>]:BB:BTOoth:UPTYpe
[SOURce<HW>]:BB:BTOoth:USLength
[SOURce<HW>]:BB:BTOoth:VERSion
Commands in total: 380
Subgroups: 21
Direct child commands: 18
get_bc_role ( ) → BtoCtrlRol
set_bc_role ( bc_role: BtoCtrlRol ) → None
# [SOURce<HW>]:BB:BTOoth:BCRole
# get:
value: enums.BtoCtrlRol = driver.source.bb.btooth.get_bc_role()
# set:
driver.source.bb.btooth.set_bc_role(bc_role = enums.BtoCtrlRol.ADVertiser)

Sets the Bluetooth controller role. Depending on the selected channel type different roles are assigned to the controller. For channel type Data, you can assign Central or Peripheral. If the channel type is Advertising, the parameter is read only and displayed directly above the graph.

Parameters:

bc_role – CENTral | PERipheral | ADVertiser | SCANner | INITiator

  • CENTral: Selects Central as controller role.

  • PERipheral: Selects Peripheral as controller role.

  • ADVertiser | SCANner | INITiator: Assigned roles depending on the selected packet type of the respective channel type.

get_bc_text ( ) → str
# [SOURce<HW>]:BB:BTOoth:BCText
value: str = driver.source.bb.btooth.get_bc_text()

Queries the state and controller role.

Returns:

bc_text: string

  • Connected: (only data channel type)

  • Advertiser: (only advertising channel type) ADV_IND, ADV_DIRECT_IND, ADV_NONCONN_IND, ADV_SCAN_INDWithin R&S SMBVB-K117 also ADV_EXT_IND, AUX_ADV_IND, AUX_SYNC_IND, AUX_CHAIN_IND

  • Scanner: (only advertising channel type) SCAN_REQ, SCAN_RSPWithin R&S SMBVB-K117 also AUX_SCAN_REQ, AUX_SCAN_RSP

  • Initiator: (only advertising channel type) CONNECT_INDWithin R&S SMBVB-K117 also AUX_CONNECT_REQ, AUX_CONNECT_RSP

get_bmode ( ) → BtoMode
set_bmode ( bmode: BtoMode ) → None
# [SOURce<HW>]:BB:BTOoth:BMODe
# get:
value: enums.BtoMode = driver.source.bb.btooth.get_bmode()
# set:
driver.source.bb.btooth.set_bmode(bmode = enums.BtoMode.BASic)

Sets the Bluetooth mode.

Parameters:

bmode – BASic | BLENergy

  • BASic: Sets basic rate (BR) or enhanced data rate (EDR) Bluetooth mode.

  • BLENergy: Sets low energy (LE) Bluetooth mode.

get_ctype ( ) → BtoChnnelType
set_ctype ( ctype: BtoChnnelType ) → None
# [SOURce<HW>]:BB:BTOoth:CTYPe
# get:
value: enums.BtoChnnelType = driver.source.bb.btooth.get_ctype()
# set:
driver.source.bb.btooth.set_ctype(ctype = enums.BtoChnnelType.ADVertising)

Determines the channel type. Advertising and data are available.

Parameters:

ctype – ADVertising | DATA | | CS

  • ADVertising: Selects channel type advertising.

  • DATA: Selects channel type data. Devices in a connected state transmit data channel packets in connection events with a start point and an interval.

  • CS: Requires R&S SMBVB-K178.Selects channel type channel sounding.

get_dcycle ( ) → LowHigh
set_dcycle ( dcycle: LowHigh ) → None
# [SOURce<HW>]:BB:BTOoth:DCYCle
# get:
value: enums.LowHigh = driver.source.bb.btooth.get_dcycle()
# set:
driver.source.bb.btooth.set_dcycle(dcycle = enums.LowHigh.HIGH)

Specifies duty cycle for directed advertising (packet type ADV_DIRECT_IND) .

Parameters:

dcycle – LOW | HIGH

get_duration ( ) → float
set_duration ( duration: float ) → None
# [SOURce<HW>]:BB:BTOoth:DURation
# get:
value: float = driver.source.bb.btooth.get_duration()
# set:
driver.source.bb.btooth.set_duration(duration = 1.0)

Sets the transmission duration for continuous payload transmission. This transmission requires a CONTINUOUS packet: SOURce1:BB:BTOoth:UPTYpe CONT Command sets the values in ms. Query returns values in s. The duration range, increment and default value depend on the modulation format, symbols per a bit and payload type. For more information, refer to the specifications document.

Parameters:

duration – float

get_hdrp_phy ( ) → BtoHdrpPhy
set_hdrp_phy ( hdrp_phy: BtoHdrpPhy ) → None
# [SOURce<HW>]:BB:BTOoth:HDRPphy
# get:
value: enums.BtoHdrpPhy = driver.source.bb.btooth.get_hdrp_phy()
# set:
driver.source.bb.btooth.set_hdrp_phy(hdrp_phy = enums.BtoHdrpPhy.HDRP4)

No help available

get_mformat ( ) → PackFormat
set_mformat ( mod_fmt: PackFormat ) → None
# [SOURce<HW>]:BB:BTOoth:MFORmat
# get:
value: enums.PackFormat = driver.source.bb.btooth.get_mformat()
# set:
driver.source.bb.btooth.set_mformat(mod_fmt = enums.PackFormat.L1M)

Sets the LE PHY for continuous payload transmission. This transmission requires a CONTINUOUS packet: SOURce1:BB:BTOoth:UPTYpe CONT

Parameters:

mod_fmt – L1M: LE 1M L2M: LE 2M LCOD: LE coded See also method RsSmbv.source.bb.btooth.pformat() .

get_pformat ( ) → BtoPackFormat
set_pformat ( pformat: BtoPackFormat ) → None
# [SOURce<HW>]:BB:BTOoth:PFORmat
# get:
value: enums.BtoPackFormat = driver.source.bb.btooth.get_pformat()
# set:
driver.source.bb.btooth.set_pformat(pformat = enums.BtoPackFormat.BLE4M)

Selects the packet format that is the format according to the physical layer (PHY) that supports the packet type or PDU type.

Parameters:

pformat – L1M | L2M | LCOD | L2M2B

  • L1M: LE uncoded PHY with 1 Msymbol/s modulation.

  • L2M: LE uncoded PHY with 2 Msymbol/s modulation and bandwidth time product BT = 0.5.

  • LCOD: LE coded PHY with 1 Msymbol/s modulation.

  • L2M2B: LE uncoded PHY with 2 Msymbol/s modulation and bandwidth time product BT = 2.

preset ( ) → None
preset_with_opc ( opc_timeout_ms: int = -1 ) → None
# [SOURce<HW>]:BB:BTOoth:PRESet
driver.source.bb.btooth.preset()
driver.source.bb.btooth.preset_with_opc(opc_timeout_ms = 3000)

Sets the parameters of the digital standard to their default values (*RST values specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:BTOoth:STATe.

preset_with_opc() does the same as preset(), but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

get_ptype ( ) → BtoPckType
set_ptype ( ptype: BtoPckType ) → None
# [SOURce<HW>]:BB:BTOoth:PTYPe
# get:
value: enums.BtoPckType = driver.source.bb.btooth.get_ptype()
# set:
driver.source.bb.btooth.set_ptype(ptype = enums.BtoPckType.ADH1)

The available packets depend on the selected transport mode. All packet types as defined in the Bluetooth specifications are supported.

Parameters:

ptype – ID | NULL | POLL | FHS | DM1 | DH1 | DM3 | DH3 | DM5 | DH5 | AUX1 | ADH1 | ADH3 | ADH5 | AEDH1 | AEDH3 | AEDH5 | HV1 | HV2 | HV3 | DV | EV3 | EV4 | EV5 | EEV3 | EEV5 | EEEV3 | EEEV5

get_slength ( ) → int
set_slength ( slength: int ) → None
# [SOURce<HW>]:BB:BTOoth:SLENgth
# get:
value: int = driver.source.bb.btooth.get_slength()
# set:
driver.source.bb.btooth.set_slength(slength = 1)

Sets the sequence length of the Bluetooth signal in number of frames. This signal is calculated in advance and output in the arbitrary waveform generator.

Parameters:

slength – integer

get_state ( ) → bool
set_state ( state: bool ) → None
# [SOURce<HW>]:BB:BTOoth:STATe
# get:
value: bool = driver.source.bb.btooth.get_state()
# set:
driver.source.bb.btooth.set_state(state = False)

Activates the standard and deactivates all the other digital standards and digital modulation modes in the same path.

Parameters:

state – 1 | ON | 0| OFF

get_stiming ( ) → BtoSlotTiming
set_stiming ( slot_timing: BtoSlotTiming ) → None
# [SOURce<HW>]:BB:BTOoth:STIMing
# get:
value: enums.BtoSlotTiming = driver.source.bb.btooth.get_stiming()
# set:
driver.source.bb.btooth.set_stiming(slot_timing = enums.BtoSlotTiming.LOOPback)

Selects the Rx slot timing mode.

Parameters:

slot_timing – TX | LOOPback

get_tmode ( ) → BtoTranMode
set_tmode ( tmode: BtoTranMode ) → None
# [SOURce<HW>]:BB:BTOoth:TMODe
# get:
value: enums.BtoTranMode = driver.source.bb.btooth.get_tmode()
# set:
driver.source.bb.btooth.set_tmode(tmode = enums.BtoTranMode.ACL)

Selects the transport mode.

Parameters:

tmode – ACL | SCO | ESCO

  • ACL: Asynchronous connection-less (ACL) mode used for a point-to-point multipoint link between a Central and all Peripherals.

  • SCO: Synchronous connection-oriented (SCO) mode used for a point-to-point link between a Central and a specific Peripheral.

  • ESCO: Enhanced SCO mode used for a symmetric or asymmetric point-to-point link between a Central and a specific Peripheral.

get_up_type ( ) → BtoUlpPckType
set_up_type ( up_type: BtoUlpPckType ) → None
# [SOURce<HW>]:BB:BTOoth:UPTYpe
# get:
value: enums.BtoUlpPckType = driver.source.bb.btooth.get_up_type()
# set:
driver.source.bb.btooth.set_up_type(up_type = enums.BtoUlpPckType.AAINd)

Selects the packet type. The available packets depend on the selected channel type and installed options. The tables below provide an overview. <UpType> / Packet/PDU type - AIND ADINd ANINd SREQ SRSP CREQ ADCind DATA CUReq CMReq TIND EREQ / ADV_IND ADV_DIRECT_IND ADV_NONCONN_IND SCAN_REQ SCAN_RSP CONNECT_IND ADV_SCAN_IND DATA LL_CONNECTION_UPDATE_IND LL_CHANNEL_MAP_IND LL_TERMINATE_IND LL_ENC_REQ - ERSP SEReq SERSp URSP FREQ FRSP TPACket PEReq PERSp VIND RIND / LL_ENC_RSP LL_START_ENC_REQ LL_START_ENC_RSP LL_UNKNONW_RSP LL_FEATURE_REQ LL_FEATURE_RSP TEST PACKET LL_PAUSE_ENC_REQ LL_PAUSE_ENC_RSP LL_VERSION_IND LL_REJECT_IND

<UpType> / Packet/PDU type - PREQ PRSP PUIN LREQ LRSP SFR CPR CPRS REIN PIR PIRS AEINd AAINd / LL_PHY_REQ LL_PHY_RSP LL_PHY_UPDATE_IND LL_LENGTH_REQ LL_LENGTH_RSP LL_PERIPHERAL_FEATURE_REQ LL_CONNECTION_PARAM_REQ LL_CONNECTION_PARAM_RSP LL_REJECT_EXT_IND LL_PING_REQ LL_PING_RSP ADV_EXT_IND AUX_ADV_IND - ACINd ASINd ASReq ASPSp ACRSp ACReq MUCH CONT CTEQ CTEP PSIND CAReq CARSp / AUX_CHAIN_IND AUX_SYNC_IND AUX_SCAN_REQ AUX_SCAN_RSP AUX_CONNECT_RSP AUX_CONNECT_REQ LL_MIN_USED_CHANNELS_IND CONTINUOUS LL_CTE_REQ LL_CTE_RSP LL_PERIODIC_SYNC LL_CLOCK_ACCURACY_REQ LL_CLOCK_ACCURACY_RSP

<UpType> / Packet/PDU type - CSSEq CSRQ CSRP CCRQ CCRP COREQ CORSP / CS_SEQUENCE LL_CS_SEC_REQ LL_CS_SEC_RSP LL_CS_CAPABILITIES_REQ LL_CS_CAPABILITIES_RSP LL_CS_CONFIG_REQ LL_CS_CONFIG_RSP - CSREQ CSRSP CSIND CTI CFRQ CFRP CCMI / LL_CS_REQ LL_CS_RSP LL_CS_IND LL_CS_TERMINATE_IND LL_CS_FAE_REQ LL_CS_FAE_RSP LL_CS_CHANNEL_MAP_IND

For more information, refer to the specifications document.

Parameters:

up_type – AIND | ADINd | ANINd | SREQ | SRSP | CREQ | ADCind | DATA | CUReq | CMReq | TIND | EREQ | ERSP | SEReq | SERSp | URSP | FREQ | FRSP | TPACket | PEReq | PERSp | VIND | RIND | PREQ | PRSP | PUIN | LREQ | LRSP | SFR | CPR | CPRS | REIN | PIR | PIRS | AEINd | AAINd | ACINd | ASINd | ASReq | ASPSp | ACRSp | ACReq | MUCH | CONT | CTEQ | CTEP | PSINd | CAReq | CARSp | CSSEQ | CSRQ | CSRP | CCRQ | CCRP | COREQ | CORSP | CSREQ | CSRSP | CSIND | CTI | CFRQ | CFRP | CCMI

get_us_length ( ) → int
set_us_length ( us_length: int ) → None
# [SOURce<HW>]:BB:BTOoth:USLength
# get:
value: int = driver.source.bb.btooth.get_us_length()
# set:
driver.source.bb.btooth.set_us_length(us_length = 1)

Selects the number of frames or events depending on the packet type. The signal repeats after the specified number of frames/events. For SCAN_REQ and CONNECT_IND packet, the sequence length is expressed in Frames. For AUX_SCAN_REQ and AUX_CONNECT_REQ packet, the sequence length is expressed in Frames. For LL_TERMINATE_IND packets, a default value according to the specification is given: Central: PeripheralLatency + 6 Peripheral: 6 For all other packet types the sequence length is expressed in Events.

Parameters:

us_length – integer

get_version ( ) → str
# [SOURce<HW>]:BB:BTOoth:VERSion
value: str = driver.source.bb.btooth.get_version()

Queries the version of the specification for Bluetooth wireless technology underlying the definitions.

Returns:

version: string

Cloning the Group

# Create a copy of the original group, that exists independently
btooth_copy = driver.source.bb.btooth.clone()

Subgroups