Sponsored Content
Full Discussion: Device Names on Android
Operating Systems Linux Android Device Names on Android Post 302866699 by fedora18 on Tuesday 22nd of October 2013 03:10:07 PM
Old 10-22-2013
ya..not pretty.
I am using a serial to USB converter with hardware by Prolific. It is the pl2303 one.
when i call up lsmod on my Linux laptop that runs the application fine I see a module called: usbserial pl2303
when I call up lsmod on the android I don't see it which makes sense.

I am assuming this may be the reason why #lsusb returns seeing the device but /dev/ttyUSB0 doesnt get populated upon attaching the device.

I think my plan of attack is to find out how to get that module on there......thoughts?

---------- Post updated at 03:10 PM ---------- Previous update was at 03:07 PM ----------

Rudy, the system log outputs this when my device gets attached:

Code:
D/ViewRootImpl( 1579): pckname = com.prolific.pl2303hxdsimpletest
I/USB3G   (   92): event { 'add', '/devices/platform/sw-ohci.1/usb3/3-1', 'usb', '', 189, 266 }
I/USB3G   (   92): path : '/sys/devices/platform/sw-ohci.1/usb3/3-1'
I/USB3G   (   92): VID :size 5,vid_path '/sys/devices/platform/sw-ohci.1/usb3/3-1/idVendor',VID  '067b
I/USB3G   (   92): '.
I/USB3G   (   92): PID :size 5,Pid_path '/sys/devices/platform/sw-ohci.1/usb3/3-1/idProduct',PID  '2303
I/USB3G   (   92): '.
I/USB3G   (   92): cmd=/system/bin/usb_modeswitch.sh /system/etc/usb_modeswitch.d/067b_2303 &,
I/ActivityManager(  156): START {act=android.hardware.usb.action.USB_DEVICE_ATTACHED flg=0x10000000 cmp=com.prolific.pl2303hxdsimpletest/.PL2303HXDSimpleTest (has extras)} from pid 156
D/PL2303HXD_APLog( 1579): Enter onStart
D/PL2303HXD_APLog( 1579): Leave onStart
D/PL2303HXD_APLog( 1579): Enter onResume
D/PL2303HXD_APLog( 1579): onResume:android.hardware.usb.action.USB_DEVICE_ATTACHED
D/PL2303HXD_APLog( 1579): New instance : tw.com.prolific.driver.pl2303.PL2303Driver@4107dcc8
I/PL2303HXDDriver( 1579): enumerating
I/USB3G   (   92): excute ret : 0,err:No such file or directory
I/PL2303HXDDriver( 1579): Found device: 0BDA:8179
I/PL2303HXDDriver( 1579): iSupportedDevListCnt: 5
I/PL2303HXDDriver( 1579): Found device: 067B:2303
I/PL2303HXDDriver( 1579): iSupportedDevListCnt: 5
D/PL2303HXDDriver( 1579): cmd:toolbox ls /dev/bus/usb/003/011
V/su-binary( 1905): ----su-----
V/su-binary( 1905): argv[1]=-c
V/su-binary( 1905): argv[2]=chmod 666 /dev/bus/usb/*/*
D/PL2303HXDDriver( 1579): verify: /dev/bus/usb/003/011
D/PL2303HXD_APLog( 1579): onResume:enumerate succeeded!
D/PL2303HXD_APLog( 1579): Leave onResume
D/ViewRootImpl( 1579): pckname = com.prolific.pl2303hxdsimpletest
D/PL2303HXDDriver( 1579): UARTintf index = 0
D/PL2303HXDDriver( 1579): Found UsbInterface[mId=0,mClass=255,mSubclass=0,mProtocol=0,mEndpoints=[Landroid.os.Parcelable;@4108d9f0]
D/PL2303HXDDriver( 1579): claim interface succeeded
I/PL2303HXDDriver( 1579): EP: 0x81
I/PL2303HXDDriver( 1579): EP: 0x02
I/PL2303HXDDriver( 1579): Bulk Endpoint
I/PL2303HXDDriver( 1579): EP: 0x83
I/PL2303HXDDriver( 1579): Bulk Endpoint
I/PL2303HXDDriver( 1579): setPLEndpoints succeeded
D/PL2303HXD_APLog( 1579): Enter onStop
D/PL2303HXD_APLog( 1579): Leave onStop

 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Device Files names and location

HI there. I am studying System administration right now and am stuck on a question that I have failed to find the answer for in my book. The question is: Do device files need to be in the /dev directory and to they need to follow a naming convention? My answer (so far) is that since the... (7 Replies)
Discussion started by: Carl1976
7 Replies

2. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

3. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

4. Android

Running only the Linux kernel of an Android device

I am looking for a way to run on top of the Linux kernel of an Android device. I want to use the existing configured Linux beneath Android rather than put a new Linux distribution onto a device. The article "The Android boot process from power on" (sorry, forum won't let me paste the link)... (0 Replies)
Discussion started by: raoulney
0 Replies

5. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

6. UNIX for Beginners Questions & Answers

Android Device ID Changer shell script

this is worked "ANDROID NOUGAT" how can i use it for "ANDROID OREO" -plz help me... ------------------------------------------- echo " Ã-~-DEVICE ID CHANGINGÃ-~-" sleep 2 echo " " COUNT=1 while do ; echo "settings put secure android_id " | tr -d '\n' > X1... (4 Replies)
Discussion started by: f4is4l
4 Replies
usb-devices(1)							Linux USB Utilities						    usb-devices(1)

NAME
usb-devices - print USB device details SYNOPSIS
usb-devices DESCRIPTION
usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them. The output of the script is similar to the usb/devices file available either under /proc/bus (if usbfs is mounted), or under /sys/ker- nel/debug (if debugfs is mounted there). The script is primairily intended to be used if the file is not available. In contrast to the usb/devices file, this script only lists active interfaces (those marked with a "*" in the usb/devices file) and their endpoints. Be advised that there can be differences in the way information is sorted, as well as in the format of the output. RETURN VALUE
If sysfs is not mounted, a non-zero exit code is returned. FILES
/sys/bus/usb/devices/usb* The part of the sysfs tree the script walks through to assemble the printed information. /proc/bus/usb/devices Location where the usb/devices file can normally be found for Linux kernels before 2.6.31, if usbfs is mounted. /sys/kernel/debug/usb/devices Location where the usb/devices file can normally be found for Linux kernel 2.6.31 and later, if debugfs is mounted. SEE ALSO
lsusb(8), usbview(8). AUTHORS
Greg Kroah-Hartman <greg@kroah.com> Randy Dunlap <rdunlap@xenotime.net> Frans Pop <elendil@planet.nl> usbutils-001 23 June 2009 usb-devices(1)
All times are GMT -4. The time now is 06:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy