Batteries included
VioDuskar
Posts: 11
Joined: 08 Aug 2018, 05:37

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 17 Aug 2018, 08:13

I see:

08-17 01:08:39.902 E/ActivityManager(492): getPackageFerformanceMode--ComponentInfo{de.draisberghof.pppwidget3/de.draisberghof.pppwidget3.HelperActivity}----de.draisberghof.pppwidget3

08-17 01:08:39.918 E/ActivityManager(492): getPackageFerformanceMode--ComponentInfo{de.draisberghof.pppwidget3/de.draisberghof.pppwidget3.HelperActivity}----de.draisberghof.pppwidget3

08-17 01:10:53.231 W/PPPWidget3 EtherDriver(10826): Sending CtrlLineReset 0 failed for interface 4

08-17 01:10:53.262 E/NotificationService(492): No Channel found for pkg=de.draisberghof.pppwidget3, channelId=null, id=6, tag=null, opPkg=de.draisberghof.pppwidget3, callingUid=10122, userId=0, incomingUserId=0, notificationUid=10122, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)

08-17 01:10:56.060 I/ActivityManager(492): START u0 {flg=0x10800000 cmp=de.draisberghof.pppwidget3/.MyPrefActivity} from uid 10122

08-17 01:10:56.073 E/ActivityManager(492): getPackageFerformanceMode--ComponentInfo{de.draisberghof.pppwidget3/de.draisberghof.pppwidget3.MyPrefActivity}----de.draisberghof.pppwidget3

08-17 01:10:56.081 E/ActivityManager(492): getPackageFerformanceMode--ComponentInfo{de.draisberghof.pppwidget3/de.draisberghof.pppwidget3.MyPrefActivity}----de.draisberghof.pppwidget3

08-17 01:10:56.089 E/ActivityManager(492): getPackageFerformanceMode--ComponentInfo{de.draisberghof.pppwidget3/de.draisberghof.pppwidget3.MyPrefActivity}----de.draisberghof.pppwidget3

VioDuskar
Posts: 11
Joined: 08 Aug 2018, 05:37

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 17 Aug 2018, 08:22

So, I've noticed if I do a fresh install and run the widget once it seems to work fine. I am prompted for us device handover and I allow it to default to ppp widget automatically.

If I disconnect from the network it seems like it does not recognize the USB anymore.

Every connection after the very first fails. I'll see if not letting it handle the USB by default helps.

Okay. So. I'm about to make a video on this because I'm really trying different stuff and getting much different behaviors. I'm 100% sure there is a USB error that only occurs after initial setup.

If I do not allow automatic handling of the USB device then it will continue to recognize the Sim, but will fail to daily out with the USB transmission error below;

Aug 17, 2018 01:31:35

Total RAM: 4080 MB. Available RAM: 3107 MB

Starting modem command sequence (Dial) ...
>
010f0000000000062200040001010001
<
011700800000010622000c00020400000000000102000101
>
0130000001010002002000240017050064756d6d7918050064756d6d79141100666173742e542d4d6f62696c652e636f6d
<
011a0080010102020020000e000204000000000001040090665102
>
0113000001010003002d00070010040010a30000
<
0115008001ff04000022000900010200020012010004
<
0141008001010203002d003500020400000000001e04001309c9161504002200b10a160400d200b10a2004001109c916210400f8ffffff290400dc0500002b010004
Local IP: 22.201.9.19/24
Peer IP: 22.201.9.17
DNS1: 10.177.0.34
DNS2: 10.177.0.210
====
Connection is up (raw IP)

Can't queue out request: Cannot initialize USB request, no USB transmission possible!
Aborting connection
No target handler
Aborting connection

VioDuskar
Posts: 11
Joined: 08 Aug 2018, 05:37

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 18 Aug 2018, 07:45

It looks like there is some sort of handover when I first plug the modem it.
The modem blinks green, which is it's 3g signal.
Then there is a second USB handover as the modem flashes blue. It's the 4g/LTE signal.

At both handovers there is a USB handle request prompt.
If I allow the first by default it seems like it causes an issue in any future attempt to setup the modem.

I seem to have luck with simply manually allowing USB handling each time, and then beginning the widget process. Every other method seems to fail for me.

Josh
Site Admin
Posts: 6569
Joined: 03 Nov 2007, 00:30

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 18 Aug 2018, 19:33

The only explanation in my opinion is a timing issue.

If you confirm the handling of the device every time manually, it has more time to settle on the kernel level, before being 'mode-switched' by PPP Widget.

I will create a new release where you can set a sort of handling delay.
Once more: please stand by ...

Josh
Site Admin
Posts: 6569
Joined: 03 Nov 2007, 00:30

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 18 Aug 2018, 22:07

I have uploaded a new release (1.7.6) which should become available after a while (Google Play delays it).

There is an 'undocumented' option added. Look for the configuration entry "Samsung fix" under "Troubleshooting".

Enter a "d" followed by a number; this will set a delay where PPP Widget does nothing for that same number of seconds before it handles the modem.
Start with "d4" for four seconds and see if there is any change. Adjust the value as much as you like; however, going over 15 seconds, the app may think that the modem went AWOL ...

All this applies to the automatic handling where you confirm that PPP Widget should always handle the modem automatically.
Also, I would recommend to set the modem back to the "install" mode if you have changed this with the "H" (Huawei) button in PPP Widget.

One last request:
If you manage to get a full log that looks like mine, including the "mode-switch" phase, please post it here.

Example:

Code: Select all

18.08.2018 22:05:12

Device manufacturer string: Acer
Total RAM: no info. Available RAM: 421 MB

New device on /dev/bus/usb/001/004
 Class of interface 0 is 0x08
Looking at USB device 12d1:1505 with class 8
 Device top dir: /sys/bus/usb/devices/1-1, active cfg: 1
Device layout (config 1) - cl:00  sc:00  pr:00
 if:0 as:0 -  cl:08  sc:06  pr:50 -  bi:81  bo:01

Found 0 serial ports
No dedicated modem port found
Trying to switch mode of USB device 12d1:1505 ...
Device info:
 VID=	 12d1
 PID=	 1505
 Manufact.= Huawei Technologies
   Product= HUAWEI Mobile
Found matching configuration in collection: 12d1.1505
Found undocumented delay setting of 2 seconds
Wait for 2200 ms
Bulk message 1: 55534243123456780000000000000011062000000101010100000000000000
  transmitted
New device on /dev/bus/usb/001/005
 Class of interface 0 is 0xFF
Looking at USB device 12d1:1506 with class 255
 Device top dir: /sys/bus/usb/devices/1-1, active cfg: 1
Device layout (config 1) - cl:00  sc:00  pr:00
 if:0 as:0 -  cl:ff  sc:01  pr:01 -  ir:81  bi:82  bo:01
 if:1 as:0 -  cl:ff  sc:01  pr:02 -  bi:83  bo:02
 if:2 as:0 -  cl:ff  sc:01  pr:03 -  bi:84  bo:03
 if:3 as:0 -  cl:ff  sc:01  pr:09 -  ir:85
 The table says these values define a QMI port
 if:4 as:0 -  cl:ff  sc:01  pr:08 -  bi:86  bo:04
 if:5 as:0 -  cl:08  sc:06  pr:50 -  bi:87  bo:05
 if:6 as:0 -  cl:08  sc:06  pr:50 -  bo:06  bi:88

Found 3 serial ports
Opening port type QMI (interface 3)

Post Reply