Author Message

<  The PPP Widget Family for Android  ~  ppp widget unable to see my usb modem

PostPosted: Wed Apr 15, 2015 4:15 pm Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
I am able to use it in linux on the same machine and I did a diff of lsmod to show which modules are loaded when I plug it in.
> option 33967 0
> usb_wwan 19733 1 option
> qcaux 12529 0
> usbserial 38902 3 qcaux,option,usb_wwan
> cdc_acm 27963 0

The same kernel modules exist in android(although cdc_acm is called cdc-acm) but never seem to be loaded when I insert it under android.
I tried loading them by hand and the /dev/ttyACM0 and /dev/ttyUSBx ones to show up after playing with it for a couple of hours(loading and unload modules)
but even then I still got the no driver message.
Now after rebooting I can't get it happen again, not sure what I did to make it happen the first time! after awhile I just checked /dev and the files were there.

Although here is a tidbit, used to it seems you would pass the vendor and products id via the command line on the modprobe loading of usbserial.
but now you do modify a file that gets created when you load the module and for the option module, not the usbserial.
I found this on linux and found it under a similar directory on android(find / -name new_id is your friend)
/sys/bus/usb-serial/drivers/option1/new_id

So I dont seem to be missing any modules(unless you know of some more I need to check for), but it still doesn't load.

Also I am running on androidx86 on a intel based tablet so if you are going to send me a module I cant use it unless its x86.

Any ideas?


Last edited by manoflinux on Thu Apr 16, 2015 3:59 am, edited 1 time in total.

Offline
PostPosted: Wed Apr 15, 2015 4:57 pm Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
Please specify what modem you are using.

Please try with PPP Widget 2 also.

Please post USB log (and PPP log if available) after you have enabled "Logging" in the configuration.


Offline
PostPosted: Thu Apr 16, 2015 3:23 am Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
I did try PPP widget 2, same thing, but untill the dirvers load its not going to make any difference.

I am using a u600 franklin.


Offline
PostPosted: Thu Apr 16, 2015 7:50 am Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
Please post the USB log of PPP Widget 2 (enable "Logging" in the configuration, re-plug your modem, open configuration again and press button "USB log").


Offline
PostPosted: Thu Apr 16, 2015 1:58 pm Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
Josh wrote:
Please post the USB log of PPP Widget 2 (enable "Logging" in the configuration, re-plug your modem, open configuration again and press button "USB log").

Checking out device 08ff:2590
Checking out device 0a5c:2191
Checking out device 0a5c:2191
Checking out device 0a5c:2191
Checking out device 0781:559e
Checking out device 0781:559e
Checking out device 0781:559e

Like I said until the driver loads and /dev/ttyACM0(orUSBX) gets created I dont think it will do anything.


Offline
PostPosted: Thu Apr 16, 2015 3:57 pm Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
PPP Widget 2 does not depend on kernel drivers, that's the main advantage.

However, both variants of PPP Widget need standard serial ports. Newer modems often come with cdc-ether ports which can not be used by these apps.

In your case though, the modem is not even listed as connected. It should show up as 1fac:0150 in the log.

Two possible causes:

1. You are not using an external power source for the modem (powered USB hub)

2. The modem ID is blacklisted by the manufacturer so that it does not even 'trigger' the widget


Offline
PostPosted: Fri Apr 17, 2015 1:28 am Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
Josh wrote:
PPP Widget 2 does not depend on kernel drivers, that's the main advantage.

However, both variants of PPP Widget need standard serial ports. Newer modems often come with cdc-ether ports which can not be used by these apps.

In your case though, the modem is not even listed as connected. It should show up as 1fac:0150 in the log.

Two possible causes:

1. You are not using an external power source for the modem (powered USB hub)

2. The modem ID is blacklisted by the manufacturer so that it does not even 'trigger' the widget


I don't think 1 is the case because it works fine under linux on the same machine with no changes in hardware or how its hooked up.

I dont think 2 is the case because its android x86 on a laptop.

When I read the other thread about the "no drivers" issue there was tons of talk about kernel drivers so I guess that thread was not about ppp widget 2?

Does that sound right or did I miss something?


Offline
PostPosted: Fri Apr 17, 2015 11:28 am Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
The main reason why I started PPP Widget 2 was that Google changed the kernel for its devices from Android 4.3, disabling kernel modules altogether. So users could not extend the USB capabilities of their devices anymore by adding driver modules to the stock kernel.

Everything you read referring to kernel modules in this forum applies only to PPP Widget 1.

Anyway, there must be a problem with the x86 Android if the modem does not appear in the list of USB devices on the Java level.

Can you test if it's visible on the system level, by checking out the devices in /sys/bus/usb/devices?

The directory should be named in the form "n-n" or "n-n.n" and there are attribute files in there called "idVendor" and "idProduct" which you can read/display. The content should match the ID that I gave in my previous post.


Offline
PostPosted: Sat Apr 18, 2015 1:49 am Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
So if I down grade to 4.2 do you think it would work? I dont need the newest androidx86, just want it to work.


Offline
PostPosted: Sun Apr 19, 2015 12:14 am Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
I can't give any guarantees whatsoever. Also, you would be dependent on kernel modules exactly matching your kernel version.

First you may want to try PPP Widget 2, version 1.2.1 that I have just uploaded to Google Play (will likely take several hours to be public).
I have changed some bits with regard to modem detection - maybe that will help (I need to see the USB log again if it does not).


Offline
PostPosted: Sun Apr 19, 2015 3:05 am Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
Josh wrote:
I can't give any guarantees whatsoever. Also, you would be dependent on kernel modules exactly matching your kernel version.

First you may want to try PPP Widget 2, version 1.2.1 that I have just uploaded to Google Play (will likely take several hours to be public).
I have changed some bits with regard to modem detection - maybe that will help (I need to see the USB log again if it does not).

Wow thanks! I really appreciate you trying to help me with this!
if it works I will send you a paypal doncation or something!


Offline
PostPosted: Sun Apr 19, 2015 5:38 am Reply with quote
Posts: 7 Joined: Wed Apr 15, 2015 4:00 pm
also is it a bad idea to have both version 1 and 2 installed? I dont have them on the home screen at the same time, I delete one and then add the other.
but since it sounds like 2 compeltely replaces 1 I will just uninstall it.


Offline
PostPosted: Sun Apr 19, 2015 7:29 am Reply with quote
Site Admin Posts: 6443 Joined: Sat Nov 03, 2007 12:30 am
It's not possible to have both versions installed at the same time. Both have the same list of USB devices that they will 'apply' for as the default app.

Which version you prefer once they both work depends on your taste. However, PPP Widget 1 will likely not be developed much further. PPP Widget 2 now runs on Android 5, and the limitations of the kernels since 4.3 (no more adding of kernel drivers) will not go away anymore, making PPP Widget 2 the only road to follow.


Offline

Display posts from previous:  Sort by:

All times are UTC+02:00
Page 1 of 1
13 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum