Table of Contents

BLE Layer (ble)

The BLE layer provides Bluetooth Low Energy support. It requires a physical layer compatible with BLE. It can be placed on top of an ethernet layer to support BLE encapsulation or it can be placed on top of the right physical layer.

BLE Layer Configuration Parameters

Parameter Type Description
Alias String
BD Address String
Connect Boolean
Debug Log Level Number Debug Level
Dependencies String Other dependencies to this element
Dest BD Address String
Destination Peer Number
Event Filter String Filter of Event
Exact Match Boolean
IETF IoT Boolean
Max Event Queue Size Number Maximum Queue Size
Name String Component Name
No Events Boolean
PCAP Broadcast Boolean Capture all Traffic
PCAP Filename Number PCAP Filename
Passthrough Boolean High-to-Low Layer Passthrough
Raw Data To Inject String Data Packet to Inject
Raw Dst L2 To Inject String Destination L2 Address
Raw Dst L3 To Inject String Destination L3 Address
Raw Dst L4 To Inject String Destination L4 Address
Request Timeout Number
Role Number
Save Dynamic Config Boolean
Show Commands Boolean Show Commands
Show Events Boolean Show Events
Start PCAP Boolean Start PCAP Capturing
Watch Boolean Watch Layer

BLE Layer Real-Time Parameters

Parameter Type Description
Allow Blocking Event Boolean Blocking Events
Blocked Boolean Disable Component
Debug Log Level Number Debug Level
PCAP Broadcast Boolean Capture all Traffic
PCAP Filename String PCAP Filename
Passthrough Boolean High-to-Low Layer Passthrough
Watch Boolean Watch Layer

BLE Layer Functions

Function Type Description
bleConnect(layer,address) function Connect to slave
bleDisconnect(layer) function Tear down connection
getBleAllowBlockingEvent(layer) getter Get “Allow Blocking Event” Parameter
getBleBlocked(layer) getter Get “Blocked” Parameter
getBleDebugLogLevel(layer) getter Get “Debug Log Level” Parameter
getBleDestBDAddress(layer) getter Get “Dest BD Address” Parameter
getBleDestinationPeer(layer) getter Get “Destination Peer” Parameter
getBleIETFIoT(layer) getter Get “IETF IoT” Parameter
getBleNoEvents(layer) getter Get “No Events” Parameter
getBlePCAPBroadcast(layer) getter Get “PCAP Broadcast” Parameter
getBlePCAPFilename(layer) getter Get “PCAP Filename” Parameter
getBlePCAPTempFilename(layer) getter Get “PCAP TempFilename” Parameter
getBlePassthrough(layer) getter Get “Passthrough” Parameter
getBleWatch(layer) getter Get “Watch” Parameter
getStatsBleAvailableInstances(layer) getter Get “Available Instances” Parameter
getStatsBleDownstreamLastPacket(layer) getter Get “Downstream Last Packet” Parameter
getStatsBleDownstreamPacketCount(layer) getter Get “Downstream Packet Count” Parameter
getStatsBleMaxDownstreamDelay(layer) getter Get “Max Downstream Delay” Parameter
getStatsBleMaxUpstreamDelay(layer) getter Get “Max Upstream Delay” Parameter
getStatsBleMeanDownstreamDelay(layer) getter Get “Mean Downstream Delay” Parameter
getStatsBleMeanUpstreamDelay(layer) getter Get “Mean Upstream Delay” Parameter
getStatsBleMinDownstreamDelay(layer) getter Get “Min Downstream Delay” Parameter
getStatsBleMinUpstreamDelay(layer) getter Get “Min Upstream Delay” Parameter
getStatsBleName(layer) getter Get “Name” Parameter
getStatsBleRateBpsDownstream(layer) getter Get “Rate Bps Downstream” Parameter
getStatsBleRateBpsUpstream(layer) getter Get “Rate Bps Upstream” Parameter
getStatsBleTimestampIn(layer) getter Get “Timestamp In” Parameter
getStatsBleTimestampOut(layer) getter Get “Timestamp Out” Parameter
getStatsBleType(layer) getter Get “Type” Parameter
getStatsBleUpstreamLastPacket(layer) getter Get “Upstream Last Packet” Parameter
getStatsBleUpstreamPacketCount(layer) getter Get “Upstream Packet Count” Parameter
getStatsBleVarianceDownstreamDelay(layer) getter Get “Variance Downstream Delay” Parameter
getStatsBleVarianceUpstreamDelay(layer) getter Get “Variance Upstream Delay” Parameter
isEventBleData(event) event Data Event
isEventBleGapConnected(event) event Gap Connected Event
isEventBleGapDisconnected(event) event Gap Disconnected Event
isEventBleL2CapReleased(event) event L2Cap Release Event
isEventBleL2CapSetup(event) event L2Cap Setup Event
setBleAllowBlockingEvent(layer,value) setter Set “Allow Blocking Event” Parameter
setBleBlocked(layer,value) setter Set “Blocked” Parameter
setBleDebugLogLevel(layer,value) setter Set “Debug Log Level” Parameter
setBleDestBDAddress(layer,value) setter Set “Dest BD Address” Parameter
setBleNoEvents(layer,value) setter Set “No Events” Parameter
setBlePCAPBroadcast(layer,value) setter Set “PCAP Broadcast” Parameter
setBlePCAPFilename(layer,value) setter Set “PCAP Filename” Parameter
setBlePCAPTempFilename(layer,value) setter Set “PCAP TempFilename” Parameter
setBlePassthrough(layer,value) setter Set “Passthrough” Parameter
setBleWatch(layer,value) setter Set “Watch” Parameter