Author Message

<  The PPP Widget Family for Android  ~  Best modem for Android 5.1?

PostPosted: Sun Feb 12, 2017 7:31 am Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
Is that log in the post above from your borrowed Android Tablet?
The modeswitch is now back to 10a9:6064 and not 10a9:6072 (which is the usb id for the qmi mode Josh is trying to get working).


Offline
PostPosted: Sun Feb 12, 2017 8:28 am Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
@k0nsol:

There are no signs of a mode switch in that last log. Did you re-plug the modem after installing the new version? Note that this is essential.


Offline
PostPosted: Sun Feb 12, 2017 6:43 pm Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
The tablet is a POS. Doesn't provide enough power output. I'll be using my radio exclusively from here on out.

Pretty sure I re-plugged, but i'll give it another try just in case.


Offline
PostPosted: Sun Feb 12, 2017 7:47 pm Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
You want to see this in your USB log again:
Code:
[...]
Preparing to switch mode of USB device 10a9:606f ...
Device info:
VID= 10a9
PID= 606f
Manufact.= Pantech, Incorporated
Product= PANTECH UML295
Found matching configuration in collection: 10a9.606f
Switching with mode "Pantech"
Wait for 200 ms
Send Pantech control message with parameters 0x40 0x70 0x04 0x00
New device on /dev/bus/usb/001/006
Class of interface 0 is 0xFF
Looking at USB device 10a9:6072 with class 255
[...]


Offline
PostPosted: Sun Feb 12, 2017 9:24 pm Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
The above is correct,

up to date on widget, still trying as ECM port.


Would it be any benefit to completely uninstall/re-install?


Offline
PostPosted: Mon Feb 13, 2017 8:40 am Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
k0nsol wrote:
The above is correct,

up to date on widget, still trying as ECM port.

If you'd see the exact thing as in my USB log quote, you wouldn't be in ECM mode. This
Code:
Looking at USB device 10a9:6072 with class 255

means QMI mode whereas this
Code:
Looking at USB device 10a9:6064 with class 2

means ECM mode.

Bottom line: I suspect that your radio either has usb_modeswitch (or a similar tool) on board - or it prevents PPP Widget from mode-switching the modem in time so that the auto-switch kicks in.

Check if you can find any program with "usb" in its name in the /system/bin or /system/xbin folder.


Offline
PostPosted: Mon Feb 13, 2017 12:06 pm Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
If the attempt to find the reason for switch problem fails and the device is in ECM mode with USB id 10a9:6064 then it could be an idea to test if a connection can be started via the dongles web server.

I assume this so called car radio has a built in web browser, open it and try the following url's

For Connect:
http://192.168.32.2/condata?action=connect

For Disconnect:
http://192.168.32.2/condata?action=disconnect


after having done the connect try to open a web site on the net to confirm that you are really connected.


Offline
PostPosted: Mon Feb 13, 2017 2:30 pm Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
I think we've tried that already ...
viewtopic.php?p=17524#p17524

However, I have just done some reading and people wrote about being able to connect to 192.168.32.1. This is not the address offered in our case though (192.168.32.2).

k0nsol, have you actually tried the latter address in your browser? "Ping" might not be implemented.


Offline
PostPosted: Mon Feb 13, 2017 3:01 pm Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
Just as Josh predicted, there is a USB_Modeswitch and USBModeswitch.SH in my system\bin folder.

@LOM, No luck on connecting to 192.168.32.1 or 192.168.32.2/ETC....



Mar 13, 2017 06:56:33

Device manufacturer string: rockchip
Start search for USB devices
visible on Android OS level ...
Check device 10a9:6064, interface 2, might be a modem
Found possible 3G USB device 10a9:6064
New device on /dev/bus/usb/001/005
Class of interface 0 is 0x02
Looking at USB device 10a9:6064 with class 2
Device top dir: /sys/bus/usb/devices/1-1.2, active cfg: 1
Active configuration ID: 1
Device layout (config 1) - cl:02 sc:00 pr:00
if:0 as:0 - cl:02 sc:06 pr:00 - ir:82
if:1 as:0 - cl:0a sc:00 pr:00 -
if:1 as:1 - cl:0a sc:00 pr:00 - bi:81 bo:01
if:2 as:0 - cl:03 sc:00 pr:00 - ir:83 ir:02
if:3 as:0 - cl:03 sc:00 pr:00 - ir:84 ir:03
if:4 as:0 - cl:02 sc:02 pr:01 - ir:86
if:5 as:0 - cl:0a sc:00 pr:00 - bi:85 bo:04
if:6 as:0 - cl:02 sc:02 pr:01 - ir:88
if:7 as:0 - cl:0a sc:00 pr:00 - bi:87 bo:05

Found 2 serial ports
Can't disable USB power-save, kernel attribute missing
Opening port type ECM
Could not read descriptor for MAC address - result: -1
MAC idx: 7, raw descriptor: byteArrayToString: no data!
Trying to continue, use made-up MACMar 13, 2017 06:58:23


Starting DHCP request ...
> Phase 3
d0578569cbeabc5ff4e95952080045100148000000008011399600000000ffffffff004400430134
<
ffffffffffffd0578569cbea080045000148f5cf00004011a32bc0a82002ffffffff004300440134
NAK received
> Phase 1
ffffffffffffbc5ff4e95952080045100148000000008011399600000000ffffffff004400430134
<
bc5ff4e95952d0578569cbea080045000148b500000040110321c0a82002c0a82031004300440134
OFFER received
> Phase 3
d0578569cbeabc5ff4e95952080045100148000000008011399600000000ffffffff004400430134
<
bc5ff4e95952d0578569cbea080045000148b501000040110320c0a82002c0a82031004300440134
ACK received
> Phase 9
ffffffffffffbc5ff4e9595208060001080006040001bc5ff4e95952c0a82031000000000000c0a8
< (ARP, connection confirmed)
bc5ff4e95952d0578569cbea08060001080006040002d0578569cbeac0a82002bc5ff4e95952c0a8
Local IP: 192.168.32.49/24
Peer IP: 192.168.32.2
DNS1: 192.168.32.2
DNS2:

End of DHCP negotiation
Android VPN creation complete
VPN network device is up
Network notification accepted after 2800 ms

Connection is ready


Offline
PostPosted: Mon Feb 13, 2017 4:11 pm Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
k0nsol wrote:
Just as Josh predicted, there is a USB_Modeswitch and USBModeswitch.SH in my system\bin folder.



Rename them so they won't get invoked.
Then restart, replug the UML295 when system is ready and see if it now becomes 10a9:6072 QMI mode


Offline
PostPosted: Mon Feb 13, 2017 7:57 pm Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
Renamed,

System was happy about it, it kernel panic'd twice.

Still in ECM mode, unable to connect to the local interface page


Offline
PostPosted: Mon Feb 13, 2017 8:37 pm Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
Let me ask you: do you have to search for the modem manually when plugged in?
Or is it detected automatically, seconds after plugging in?

If the latter is not the case, you should indeed uninstall PPP Widget 3 entirely and re-install it. Put it on the workspace, insert modem and wait for the USB confirmation dialog. Check the box to remember before confirming.

Then remove the modem and plug it in again. Remember that timing is essential - PPP Widget must handle the modem before it auto-switches to Ethernet.


Offline
PostPosted: Tue Feb 14, 2017 12:52 am Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
it automatically finds the modem, I don't have to do anything.

I do get a message every time I update PPP Widget about the modem being used by default. Uninstalling/reinstalling will prompt the message, and I'll record it verbatim. I assume this is the message you talking about.


Offline
PostPosted: Tue Feb 14, 2017 9:33 am Reply with quote
Site Admin Posts: 6440 Joined: Sat Nov 03, 2007 12:30 am
You should see that USB dialog twice after re-installing and modem re-plugging.

If an Android app wants to handle a USB device, it has to provide a list of 'profiles' that match the respective target devices. These profiles can include USB IDs, device classes (like "all memory sticks") and other attributes.

If a USB device is inserted which matches one of those profiles, the Android system requests the user's permission for the specific app to handle that USB device exclusively. There may actually be several apps offering this handling, so the request dialog contains a list of apps to choose from sometimes.

Anyway, with the mode switch involved it's the same situation as if you would plug in two different USB sticks. The USB ID of your modem is changing during the switch, so it appears as a different device.

While you read and confirm the first dialog (remember to check the box!), the modem has likely already auto-switched to ECM mode. You'll get the second dialog then but not thanks to PPP Widget 3 ...

Now it is essential that you re-plug once more. The initial mode - that you have confirmed before - will then immediately be handled by PPP Widget if all goes well. If the QMI mode is finally reached, there will be yet annother USB confirmation dialog, because its USB ID is different from the ECM mode that you have already confirmed.


Offline
PostPosted: Thu Feb 16, 2017 3:37 am Reply with quote
Posts: 24 Joined: Tue Jan 24, 2017 6:23 am
Ayyyyyy, some good news after uninstall/reinstall.

Now in QMI mod. However, it seems to like to lock up android (until removed), or kernel panicing when told to connect.

Doesn't look like its getting an address now. See the PPP log:

Mar 15, 2017 19:08:41

Device manufacturer string: rockchip
New device on /dev/bus/usb/001/008
Class of interface 0 is 0x08
Looking at USB device 10a9:606f with class 8
Device top dir: /sys/bus/usb/devices/1-1.2, active cfg: 1
Active configuration ID: 1
Device layout (config 1) - cl:ef sc:02 pr:01
if:0 as:0 - cl:08 sc:06 pr:50 - bi:81 bo:01

Found 0 serial ports
No dedicated modem port found
Preparing to switch mode of USB device 10a9:606f ...
Device info:
VID= 10a9
PID= 606f
Manufact.= Pantech, Incorporated
Product= PANTECH UML295
Found matching configuration in collection: 10a9.606f
Switching with mode "Pantech"
Wait for 200 ms
Send Pantech control message with parameters 0x40 0x70 0x04 0x00
New device on /dev/bus/usb/001/009
Class of interface 0 is 0xFF
Looking at USB device 10a9:6072 with class 255
Device top dir: /sys/bus/usb/devices/1-1.2, active cfg: 1
Active configuration ID: 1
Device layout (config 1) - cl:02 sc:00 pr:00
if:0 as:0 - cl:ff sc:e0 pr:10 - bi:81 bo:01
if:1 as:0 - cl:02 sc:02 pr:01 - ir:83
if:2 as:0 - cl:0a sc:00 pr:00 - bi:82 bo:02
if:3 as:0 - cl:02 sc:02 pr:01 - ir:85
if:4 as:0 - cl:0a sc:00 pr:00 - bi:84 bo:03
if:5 as:0 - cl:ff sc:f0 pr:00 - ir:87 bi:86 bo:04
The table says these values define a QMI port

Found 3 serial ports
Can't disable USB power-save, kernel attribute missing
Opening port type QMI
No MAC descriptor found, use made-up MAC


PPP log:

Mar 15, 2017 19:09:00

Starting modem command sequence ...


Offline

Display posts from previous:  Sort by:

All times are UTC+02:00
Page 4 of 5
61 posts
Go to page   Previous 1 2 3 4 5 Next
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
cron