mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
A new line, "A phone line, through a USB modem": the phone runs the modem, a Smart Link SmartUSB56 (0483:7554) or a pico-serial Line stick (1209:0002) plugged into it carries its samples to a real phone line, with D-Modem-RE's usb_line.cpp as dmodemd --usb drives them (the stick's caller ID and the country's DAA settings too). - libusb 1.0.27 (D-Modem-RE's pinned release) built for Android (usb/libusb.cmake); usb_line.cpp built with libusb_init, libusb_get_device_list and libusb_open renamed to usb_android.cpp's, which start libusb without device discovery and give it the descriptor Android opened for the app, wrapped, as the only device. - usb_modem.cpp: the core on that line, the run loop of dmodemd's run_line() with a stop pipe and the engine's status; Engine::Config usb_fd and usb_rate, through JNI. - UsbModems: the devices by their IDs, Android's permission asked when the modem starts, the connection held while it runs; ModemSettings LINE_USB (no SIP account, not a peer line); the settings, Home and the notifications say so; Android offers the app when one is plugged in. - native-test: usb_host (the engine on D-Modem-RE's fake stick, linked in as libusb) and usb_line_test.py: two of them through its simulated exchange: caller ID, CONNECT 33600, data each way, hang up, unplugged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
17 lines
408 B
C++
17 lines
408 B
C++
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (C) 2026 Neo-Desktop
|
|
*
|
|
* usb_fake_device.cpp - the build host's usb_android.h: the fake
|
|
* stick (fake_pico_line.cpp) is found by
|
|
* libusb's own calls, no descriptor to wrap
|
|
*
|
|
*/
|
|
#include "usb/usb_android.h"
|
|
|
|
namespace dmodem_android {
|
|
|
|
void usb_use_fd(int) {}
|
|
|
|
} // namespace dmodem_android
|