Agere: its descriptors, ROM and registers dumped to the log at start; transfers back to 2

8 in flight made no difference: the device sends a packet every 19.5 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
This commit is contained in:
Claude committed 2026-10-26 07:33:30 +00:00
1 parent 75cd6b0370
commit e73aa87255
2 files changed
+4 -5

No files matched your search

@@ -73,10 +73,9 @@ object UsbModems {
if (!out.exists() || !out.readBytes().contentEquals(bytes)) out.writeBytes(bytes)
}
android.system.Os.setenv("DMODEM_AGERE_FIRMWARE", dir.path, true)
// (8 bulk transfers in flight each way, not Agere's driver's 2: a packet is 6 ms, and the
// device starts the next only once the last has gone, so an app's round trip through libusb
// must not leave it waiting)
android.system.Os.setenv("DMODEM_AGERE_TRANSFERS", "8", true)
// (while the Agere is brought up: its descriptors, ROM and registers logged at start, for
// reading what its ROM does to stream)
android.system.Os.setenv("DMODEM_AGERE_DUMP", "1", true)
return dir
}