aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dbt_scanner10.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add 3 HCI Commands + 1 HCI MetaEvent to support SMP SC on slave peripheral ↵Sven Gothel2021-10-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | site, incl. mapping to Mgmt event object Situation: Linux Kernel 5.10.0-9-amd64, Debian 12 dbt_scanner10: Master, initiatior (DUAL) dbt_peripheral00: Slave, peripheral (LE only) LE Secure Connections enabled per default. Issue: LTK via Mgmt event in ~50% of cases not send! However, full information already passed via HCI commands/events. Workaround: Listen to HCI commands as well and allow related commands + events to complement SC status tracking. +++ New HCI commands + events, incl. their Mgmt event mapping: - HCIOpcode::LE_ENABLE_ENC -> HCILEEnableEncryptionCmd - Mgmt HCI_LE_ENABLE_ENC -> MgmtEvtHCILEEnableEncryptionCmd - HCIOpcode::LE_LTK_REPLY_ACK -> HCILELTKReplyAckCmd - Mgmt HCI_LE_LTK_REPLY_ACK -> MgmtEvtHCILELTKReplyAckCmd - HCIOpcode::LE_LTK_REPLY_REJ -> HCILELTKReplyRejCmd - Mgmt HCI_LE_LTK_REPLY_REJ -> MgmtEvtHCILELTKReplyRejCmd - HCIMetaEventType::LE_LTK_REQUEST -> HCILELTKReqEvent - Mgmt: Opcode::HCI_LE_LTK_REQUEST -> MgmtEvtHCILELTKReq - HCICommand::getSpecialized(..)
* dbt_scanner10: If KEEP_CONNECT: don't remove char-listener, have them work ↵Sven Gothel2021-10-201-1/+2
| | | | until disconnect
* dbt_scanner10: show utf8 string of notify/indicate if not TempSven Gothel2021-10-201-2/+8
|
* SMPKeyBin Version 4: Add localAddress (adapter) to filename with shortened ↵Sven Gothel2021-10-061-2/+2
| | | | | | | | format while including it in bin file. Filename format is now: `bd_010203040506_C026DA01DAB11.key` ^^ adapter address ^^ remote address
* BTAdapter/Device: Simplify set[DefaultConnected]LE_PHY(..): Remove bool args ↵Sven Gothel2021-10-051-2/+2
| | | | to simply reuse LE_PHYs bitmap zero to ignore either
* Adopt to jaulib v0.4.9; Fixes BTSecurityRegistry::getStartOf(..)Sven Gothel2021-10-051-2/+2
|
* Bump jaulib; dbt_scanner10: Show uuid_t TypeSizeSven Gothel2021-10-021-3/+9
|
* dbt_scanner10/DBTScanner10: Only show notify/indicate if availableSven Gothel2021-10-021-6/+9
|
* dbt_scanner10: Drop device->getGattHandler()->getCharListenerCount()Sven Gothel2021-09-291-5/+4
|
* Examples: Cleanup up dbt_scanner10/DBTScanner10, moving test-code into ↵Sven Gothel2021-09-291-92/+3
| | | | upcoming test-examples
* Examples C++: Extract constantsSven Gothel2021-09-291-2/+2
|
* Examples: Build using a set of idiomatic names, one recipe for each ↵Sven Gothel2021-09-271-0/+943
examples; Add jar install for example/java!