Bluetooth Driver services: Difference between revisions

No edit summary
No edit summary
Line 761: Line 761:
sdknso masks the FatalReason with an u16-mask before passing it to the cmd. sdknso exposes this under "nn::bluetooth::debug::".
sdknso masks the FatalReason with an u16-mask before passing it to the cmd. sdknso exposes this under "nn::bluetooth::debug::".


This writes data into a CircularBuffer (name "BLE CORE", seperate from sharedmem) with type=0x29, where the data is an u16 determined using the input [[#FatalReason]]. This is only done if a state field is value 0x3, after calling the func for this the field is set to value 0.
This writes data into a CircularBuffer (seperate from sharedmem) with type=0x29, where the data is an u16 determined using the input [[#FatalReason]]. This is only done if a state field is value 0x3, after calling the func for this the field is set to value 0. The thread handling that sent message then converts the u16 back into a [[#FatalReason]] for writing into [[#EventInfo]].


== GetBleChannelMap ==
== GetBleChannelMap ==
Line 899: Line 899:
| 7 || || Connection
| 7 || || Connection
|-
|-
| 13 || ||  
| 13 || || BluetoothCrash. Triggered by [[#EmulateBluetoothCrash]] and BSA_MGT_DISCONNECT_EVT.
|}
|}


Line 969: Line 969:
!  Value
!  Value
!  Description
!  Description
|-
| 0 || Only for [[#EventInfo]]: invalid.
|-
|-
| 1 || u16 data = 0x850.
| 1 || u16 data = 0x850.
Line 975: Line 977:
|-
|-
| Other values || u16 data = 0x852.
| Other values || u16 data = 0x852.
|-
| 7 || Only for [[#EventInfo]]: triggered after enabling bluetooth, when a global state field is value 4 or 2.
|}
|}


Line 1,115: Line 1,119:
! Description
! Description
|-
|-
| 0x0 || 0x2 ||  
| 0x0 || 0x2 || [[#FatalReason]]
|}
|}