Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 199187  / 2 Years ago, tue, august 16, 2022, 4:01:56

I am doing android development. The adb ppp command to switch back to the USB cable instead of tcp/ip says it needs the tty as a parameter.



I have googled for this and found lots of references to solutions that don't work. A lot of those point to ttyUSB0, which doesn't seem to exist on my system.



I am running Ubuntu Desktop 12.04. How can I find my tty for my android phone?



Thanks.


More From » usb

 Answers
2

Store list of devices before pluging in Android


ls /dev/ > dev_list_1.txt


Then run this after you plug it


ls /dev/ | diff --suppress-common-lines -y - dev_list_1.txt

The result should be something like this:


libmtp-2-1.2                                              <
sdb <
serial <
sg2 <
ttyACM0 <

Or even monitor for change


while sleep 1 ; do clear ; ls /dev/ | diff --suppress-common-lines -y dev_list_1.txt ; done

[#27713] Thursday, August 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
splenueak

Total Points: 448
Total Questions: 118
Total Answers: 110

Location: Vanuatu
Member since Mon, Oct 3, 2022
2 Years ago
;