diff --git a/README.md b/README.md index f6fc9dc..2faf72e 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,9 @@ too, so the computer dropping DTR hangs up there as well. The modem's line can also be a telephone line, through a USB modem that carries the modem's sound (D-Modem-RE's `usb_line.cpp`, as -`dmodemd --usb` drives them): a Smart Link SmartUSB56 (USB 0483:7554), or -a [pico-serial](https://github.com/Neo-Desktop/pico-serial) Line stick +`dmodemd --usb` drives them): a Smart Link SmartUSB56 (USB 0483:7554, +with caller ID, its ST7554 or ST75951 DAA), or a +[pico-serial](https://github.com/Neo-Desktop/pico-serial) Line stick (1209:0002, a Si3056 DAA: caller ID on hook, and the country's line settings in its registers). The phone runs the modem; plugged into it (USB OTG) the stick is its line, with no SIP account or network. Settings, diff --git a/app/src/main/java/com/neodesktop/dmodem/ui/PeerLineUi.kt b/app/src/main/java/com/neodesktop/dmodem/ui/PeerLineUi.kt index 9a3ee44..a0c5258 100644 --- a/app/src/main/java/com/neodesktop/dmodem/ui/PeerLineUi.kt +++ b/app/src/main/java/com/neodesktop/dmodem/ui/PeerLineUi.kt @@ -103,7 +103,7 @@ fun UsbLineFields() { Column(verticalArrangement = Arrangement.spacedBy(8.dp)) { Text( "The modem dials and answers a real phone line through a USB modem: a Smart Link SmartUSB56, or a " + - "pico-serial Line stick (with caller ID, and the country's line settings). The phone runs the modem; " + + "pico-serial Line stick, both with caller ID (the stick takes the country's line settings too). The phone runs the modem; " + "the USB one is its line. No SIP account or network needed. Android asks once whether D-Modem may use it.", style = MaterialTheme.typography.bodySmall, ) diff --git a/external/d-modem-re b/external/d-modem-re index ed4ee27..7d1790f 160000 --- a/external/d-modem-re +++ b/external/d-modem-re @@ -1 +1 @@ -Subproject commit ed4ee27991a38abc51e2cbea84916f2429b46bfb +Subproject commit 7d1790ff15b59ef446a2e98ed1f90a0d2834f2f4 diff --git a/native-test/usb_fake_device.cpp b/native-test/usb_fake_device.cpp index ec151e1..3291e87 100644 --- a/native-test/usb_fake_device.cpp +++ b/native-test/usb_fake_device.cpp @@ -14,3 +14,13 @@ namespace dmodem_android { void usb_use_fd(int) {} } // namespace dmodem_android + +/* what the fake leaves to the real libusb (upstream's tests preload the + fake in front of it; here it is linked in alone): the device's ports, + for wake on ring's sysfs switch (UsbLine::arm_wake(), with set_wake() + alone), unknown */ +extern "C" int LIBUSB_CALL libusb_get_port_numbers(libusb_device *, + uint8_t *, int) +{ + return LIBUSB_ERROR_NOT_SUPPORTED; +}