Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HackingDave/btrpa-scan
/ functions
Functions
133 in github.com/HackingDave/btrpa-scan
⨍
Functions
133
◇
Types & classes
14
↳
Endpoints
4
↓ 12 callers
Method
_avg_rssi
Update RSSI sliding window for a device and return the average.
btrpa-scan.py:1901
↓ 4 callers
Method
_make_scanner
(self, window: int = 5)
test_btrpa_scan.py:262
↓ 4 callers
Method
_print_device
(self, device: BLEDevice, adv: AdvertisementData, label: str, resolved: Optional[bool] =
btrpa-scan.py:2025
↓ 4 callers
Method
_print_device
(self, device: BLEDevice, adv: AdvertisementData, label: str, resolved: Optional[bool] =
btrpa_scan/cli.py:2025
↓ 4 callers
Method
start
Start the Flask server in a background thread.
btrpa-scan.py:1733
↓ 4 callers
Method
start
Start the Flask server in a background thread.
btrpa_scan/cli.py:1733
↓ 3 callers
Method
_make_rpa
Construct a valid RPA string from an IRK and a 3-byte prand.
test_btrpa_scan.py:111
↓ 3 callers
Function
_parse_irk
Parse an IRK from hex string (plain, colon-separated, or 0x-prefixed). Returns 16 bytes or raises ValueError.
btrpa-scan.py:2617
↓ 3 callers
Function
_parse_irk
Parse an IRK from hex string (plain, colon-separated, or 0x-prefixed). Returns 16 bytes or raises ValueError.
btrpa_scan/cli.py:2617
↓ 3 callers
Method
stop
Signal the SocketIO server to shut down.
btrpa-scan.py:1779
↓ 3 callers
Method
stop
Signal the SocketIO server to shut down.
btrpa_scan/cli.py:1779
↓ 2 callers
Function
_mask_irk
Mask an IRK hex string, showing only the first and last 4 characters.
btrpa-scan.py:1588
↓ 2 callers
Function
_mask_irk
Mask an IRK hex string, showing only the first and last 4 characters.
btrpa_scan/cli.py:1588
↓ 2 callers
Method
_poll_tick
One tick of the scan loop: redraw TUI, emit GUI status/GPS.
btrpa-scan.py:2331
↓ 2 callers
Method
_poll_tick
One tick of the scan loop: redraw TUI, emit GUI status/GPS.
btrpa_scan/cli.py:2331
↓ 2 callers
Method
emit_status
Push scan status to all connected clients.
btrpa-scan.py:1811
↓ 2 callers
Method
emit_status
Push scan status to all connected clients.
btrpa_scan/cli.py:1811
↓ 2 callers
Function
main
()
btrpa_scan/cli.py:2638
↓ 1 callers
Method
_avg_rssi
Update RSSI sliding window for a device and return the average.
btrpa_scan/cli.py:1901
↓ 1 callers
Function
_bt_ah
Bluetooth Core Spec ah() function (Vol 3, Part H, Section 2.2.2). AES-128-ECB(IRK, padding || prand) -> return last 3 bytes. Note: ECB mode
btrpa-scan.py:2572
↓ 1 callers
Function
_bt_ah
Bluetooth Core Spec ah() function (Vol 3, Part H, Section 2.2.2). AES-128-ECB(IRK, padding || prand) -> return last 3 bytes. Note: ECB mode
btrpa_scan/cli.py:2572
↓ 1 callers
Method
_build_record
Build a record dict from device/adv data.
btrpa-scan.py:1908
↓ 1 callers
Method
_build_record
Build a record dict from device/adv data.
btrpa_scan/cli.py:1908
↓ 1 callers
Method
_connect_and_read
(self)
btrpa-scan.py:1646
↓ 1 callers
Method
_connect_and_read
(self)
btrpa_scan/cli.py:1646
↓ 1 callers
Method
_detection_callback_inner
(self, device: BLEDevice, adv: AdvertisementData)
btrpa-scan.py:2081
↓ 1 callers
Method
_detection_callback_inner
(self, device: BLEDevice, adv: AdvertisementData)
btrpa_scan/cli.py:2081
↓ 1 callers
Function
_estimate_distance
Estimate distance in meters using the log-distance path loss model. When *ref_rssi* is provided it is used directly as the expected RSSI at t
btrpa-scan.py:2548
↓ 1 callers
Function
_estimate_distance
Estimate distance in meters using the log-distance path loss model. When *ref_rssi* is provided it is used directly as the expected RSSI at t
btrpa_scan/cli.py:2548
↓ 1 callers
Method
_evict_old_devices
Remove oldest devices when cache exceeds cap.
btrpa-scan.py:1786
↓ 1 callers
Method
_evict_old_devices
Remove oldest devices when cache exceeds cap.
btrpa_scan/cli.py:1786
↓ 1 callers
Method
_irk_detection
Handle a detection in IRK resolution mode.
btrpa-scan.py:2118
↓ 1 callers
Method
_irk_detection
Handle a detection in IRK resolution mode.
btrpa_scan/cli.py:2118
↓ 1 callers
Function
_is_rpa
Check if a 6-byte address is a Resolvable Private Address. RPA has top two bits of the most-significant byte set to 01.
btrpa-scan.py:2588
↓ 1 callers
Function
_is_rpa
Check if a 6-byte address is a Resolvable Private Address. RPA has top two bits of the most-significant byte set to 01.
btrpa_scan/cli.py:2588
↓ 1 callers
Method
_print_header
Print scan configuration banner.
btrpa-scan.py:2395
↓ 1 callers
Method
_print_header
Print scan configuration banner.
btrpa_scan/cli.py:2395
↓ 1 callers
Method
_print_summary
Print scan summary statistics.
btrpa-scan.py:2455
↓ 1 callers
Method
_print_summary
Print scan summary statistics.
btrpa_scan/cli.py:2455
↓ 1 callers
Method
_record_device
Build a record, optionally append to self.records, write to live log, and update TUI state. Returns the record dict.
btrpa-scan.py:1943
↓ 1 callers
Method
_record_device
Build a record, optionally append to self.records, write to live log, and update TUI state. Returns the record dict.
btrpa_scan/cli.py:1943
↓ 1 callers
Method
_redraw_tui
Redraw the TUI live table.
btrpa-scan.py:2162
↓ 1 callers
Method
_redraw_tui
Redraw the TUI live table.
btrpa_scan/cli.py:2162
↓ 1 callers
Function
_resolve_rpa
Resolve a MAC address string against an IRK. MAC format: AA:BB:CC:DD:EE:FF prand = first 3 octets (AA:BB:CC), hash = last 3 octets (DD:EE:FF)
btrpa-scan.py:2596
↓ 1 callers
Function
_resolve_rpa
Resolve a MAC address string against an IRK. MAC format: AA:BB:CC:DD:EE:FF prand = first 3 octets (AA:BB:CC), hash = last 3 octets (DD:EE:FF)
btrpa_scan/cli.py:2596
↓ 1 callers
Method
_scan_loop
Run the BLE scanner and return elapsed seconds.
btrpa-scan.py:2348
↓ 1 callers
Method
_scan_loop
Run the BLE scanner and return elapsed seconds.
btrpa_scan/cli.py:2348
↓ 1 callers
Method
_setup_routes
(self)
btrpa-scan.py:1714
↓ 1 callers
Method
_setup_routes
(self)
btrpa_scan/cli.py:1714
↓ 1 callers
Function
_timestamp
Return an ISO 8601 timestamp with timezone offset.
btrpa-scan.py:1583
↓ 1 callers
Function
_timestamp
Return an ISO 8601 timestamp with timezone offset.
btrpa_scan/cli.py:1583
↓ 1 callers
Method
_write_output
Write batch output file (json / jsonl / csv).
btrpa-scan.py:2504
↓ 1 callers
Method
_write_output
Write batch output file (json / jsonl / csv).
btrpa_scan/cli.py:2504
↓ 1 callers
Method
emit_complete
Push scan complete event and store for reconnecting clients.
btrpa-scan.py:1817
↓ 1 callers
Method
emit_complete
Push scan complete event and store for reconnecting clients.
btrpa_scan/cli.py:1817
↓ 1 callers
Method
emit_device
Push a device update to all connected clients.
btrpa-scan.py:1797
↓ 1 callers
Method
emit_device
Push a device update to all connected clients.
btrpa_scan/cli.py:1797
↓ 1 callers
Method
emit_gps
Push scanner GPS position to all connected clients.
btrpa-scan.py:1805
↓ 1 callers
Method
emit_gps
Push scanner GPS position to all connected clients.
btrpa_scan/cli.py:1805
↓ 1 callers
Function
main
()
btrpa-scan.py:2638
↓ 1 callers
Method
scan
(self)
btrpa-scan.py:2248
↓ 1 callers
Method
scan
(self)
btrpa_scan/cli.py:2248
↓ 1 callers
Method
stop
(self)
btrpa-scan.py:2542
↓ 1 callers
Method
stop
(self)
btrpa_scan/cli.py:2542
Method
__init__
(self, host: str = "localhost", port: int = 2947)
btrpa-scan.py:1598
Method
__init__
(self, port: int = 5000)
btrpa-scan.py:1696
Method
__init__
(self, target_mac: Optional[str], timeout: float, irks: Optional[List[bytes]] = None,
btrpa-scan.py:1825
Method
__init__
(self, host: str = "localhost", port: int = 2947)
btrpa_scan/cli.py:1598
Method
__init__
(self, port: int = 5000)
btrpa_scan/cli.py:1696
Method
__init__
(self, target_mac: Optional[str], timeout: float, irks: Optional[List[bytes]] = None,
btrpa_scan/cli.py:1825
Method
_run
(self)
btrpa-scan.py:1635
Method
_run
(self)
btrpa_scan/cli.py:1635
Method
_serve
()
btrpa-scan.py:1738
Method
_serve
()
btrpa_scan/cli.py:1738
Method
connected
(self)
btrpa-scan.py:1614
Method
connected
(self)
btrpa_scan/cli.py:1614
Method
detection_callback
(self, device: BLEDevice, adv: AdvertisementData)
btrpa-scan.py:2077
Method
detection_callback
(self, device: BLEDevice, adv: AdvertisementData)
btrpa_scan/cli.py:2077
Method
fix
(self)
btrpa-scan.py:1609
Method
fix
(self)
btrpa_scan/cli.py:1609
Method
index
()
btrpa-scan.py:1716
Method
index
()
btrpa_scan/cli.py:1716
Method
start
(self)
btrpa-scan.py:1618
Method
start
(self)
btrpa_scan/cli.py:1618
Method
state
()
btrpa-scan.py:1720
Method
state
()
btrpa_scan/cli.py:1720
Method
stop
(self)
btrpa-scan.py:1623
Method
stop
(self)
btrpa_scan/cli.py:1623
Method
test_0x_prefix
(self)
test_btrpa_scan.py:33
Method
test_ah_deterministic
(self)
test_btrpa_scan.py:155
Method
test_ah_output_length
(self)
test_btrpa_scan.py:117
Method
test_average_of_multiple
(self)
test_btrpa_scan.py:270
Method
test_basic_free_space
(self)
test_btrpa_scan.py:176
Method
test_colon_separated
(self)
test_btrpa_scan.py:37
Method
test_dash_separated
(self)
test_btrpa_scan.py:42
Method
test_empty_string
(self)
test_btrpa_scan.py:63
Method
test_format
(self)
test_btrpa_scan.py:224
Method
test_gui_defaults_false
(self)
test_btrpa_scan.py:307
Method
test_gui_enabled
(self)
test_btrpa_scan.py:311
Method
test_gui_port_custom
(self)
test_btrpa_scan.py:319
next →
1–100 of 133, ranked by callers