Initial: ContinuousTransponder wrapper for Kogger USBL
High-level Python wrapper around the upstream cosma-tech/kogger_acousticAntenna
driver. Configures a Kogger acoustic antenna as a permanent slave transponder
in a single start() call: address filter, echo filter, optional TDMA sync slot,
permanent response window, and Python callbacks for each ping received.
No modification to the upstream driver — only composes existing public methods
in the right order. Snapshot of upstream driver included read-only under driver/
for reference.
Includes:
- transponder_continu.py (302 lines): the wrapper class + CLI
- examples/auv_slave.py (79 lines): usage example with logging
- README.md: design rationale, usage, multi-AUV TDMA, watchdog, hardware wiring
- driver/: snapshot of cosma-tech/kogger_acousticAntenna at commit 1b539f9
('Add index slot for multi pinger', 2025-03-11)
Built for Cosma context (USV master + N AUVs slaves) following the design
conversation in Discord #ping-pong-ping (2026-04-27). See poulpe/ping-pong-ping
on Gitea for the interactive demo of the protocol.
This commit is contained in:
11
driver/test/log/2026-03-20_14-56-47_log_usv.log
Normal file
11
driver/test/log/2026-03-20_14-56-47_log_usv.log
Normal file
@@ -0,0 +1,11 @@
|
||||
2026-03-20 14:56:47.954 | INFO | kogger_protocol_driver:setup_logging:81 - Kogger Protocol Driver: Loguru logging configured to level INFO and file log/2026-03-20_14-56-47_log_usv.log.
|
||||
2026-03-20 14:56:47.955 | INFO | kogger_protocol_driver:__init__:224 - KoggerSBPDevice configured for port /dev/ttyAMA4, baudrate 921600, address 0
|
||||
2026-03-20 14:56:47.956 | INFO | kogger_protocol_driver:_open_file:43 - CSV logging enabled to log/2026-03-20_14-56-47_AUV_usbl.csv
|
||||
2026-03-20 14:56:47.957 | INFO | kogger_protocol_driver:_reader_thread_loop:491 - Reader thread started.
|
||||
2026-03-20 14:56:47.957 | SUCCESS | kogger_protocol_driver:connect:314 - Successfully connected to /dev/ttyAMA4 at 921600 and started reader thread.
|
||||
2026-03-20 14:56:47.972 | INFO | __main__:main:127 - set_auto_response_filter(0)=True
|
||||
2026-03-20 14:56:47.973 | INFO | __main__:main:129 - set_auto_response_timeout(0xffffffff)=True
|
||||
2026-03-20 14:56:47.976 | INFO | __main__:main:131 - set_auto_response_payload(0xff)=True
|
||||
2026-03-20 14:57:02.116 | INFO | kogger_protocol_driver:_reader_thread_loop:568 - Reader thread finished.
|
||||
2026-03-20 14:57:02.117 | INFO | kogger_protocol_driver:disconnect:352 - Serial port /dev/ttyAMA4 closed.
|
||||
2026-03-20 14:57:02.117 | INFO | kogger_protocol_driver:disconnect:364 - Disconnected and cleaned up.
|
||||
Reference in New Issue
Block a user