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

Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 08 Aug 2018, 05:53

Good time of day to you,

I have a few issues with my car headunit.
to address the things im doing, and everything i've tried so far.

I have a Huawei E397u-53 modem plugged into a PX5 android head unit. I am rooted. I am running android 8. I have access to the terminal.

I do not see any baked in 3g/4g/LTE apps to handle my modem. the "3G" support that i see listed with the unit is really a 3G hotspot dongle. not a USB modem.

so far i have granted PPP widget 3 root access and have granted it USB device permissions everytime with "this device" (The Huawei E397u-53 modem)

I have put the modem in, clicked the icon, and gotten it to say either "no modem" or "configure modem"
I have tried with the alternative method for huawei check box turned both on and off, and replugged the modem each time doing this.
I have also tried the "h" button that sometimes appears to turn off installation mode on the modem as well. I have done with in all combinations with alternative methods aswell.

When it does say "configure modem" I attempt to configure the SIM and APN settings, but it is greyed out and says that it needs a modem inserted. wtf. okay.

So, when i enabled logging to show me what's happening all I see is "USB communication disrupted" or something to that effect.

So what am i doing wrong here? do i need to try another USB port? disable something on the head unit? what am i missing?
I saw on the amazon product page for the Huawei E397u-53 that someone else had gotten this modem to work with the PPPWidget, this is how i learned about it. they mentioned in the same answer that it was on thier car head unit aswell. perhaps they were running android 6 instead. I'm not sure what I'm doing wrong.

Thanks for taking the time to read this. I appreciate any help I can get.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 08 Aug 2018, 22:21

The first thing to make sure before all others is that the modem is discovered by PPP Widget.

I really need to see the USB log, as much as is there. If that does not show anything useful, we have to look at the kernel level and check what's going on there. Unfortunately, some manufacturers hack the kernel to make Huawei modems 'mode-switch' as soon as they are plugged, often with a wrong mode setting.

OK, that USB log first (logging enabled, inserting the modem, wait a moment, then open USB log).

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 09 Aug 2018, 05:07

Aug 8, 2018 22:03:42

Device manufacturer string: rockchip
Total RAM: 4080 MB. Available RAM: 3068 MB

New device on /dev/bus/usb/003/014
Class of interface 0 is 0xFF
Looking at USB device 12d1:1506 with class 255
Device top dir: /sys/bus/usb/devices/3-1.1, active cfg: 1
Active configuration ID: 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:05 - bi:85 bo:04
if:4 as:0 - cl:ff sc:01 pr:09 - ir:86
The table says these values define a QMI port
if:5 as:0 - cl:ff sc:01 pr:08 - bi:87 bo:05
if:6 as:0 - cl:08 sc:06 pr:50 - bi:88 bo:06
if:7 as:0 - cl:08 sc:06 pr:50 - bo:07 bi:89

Found 4 serial ports
Disable kernel USB power-save, as set in app config
Opening port type QMI (interface 4)


Aug 8, 2018 22:03:43

Total RAM: 4080 MB. Available RAM: 3065 MB

Starting modem command sequence ...
>
010f0000000000022200040001010002
USB communication disrupted; abort

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 09 Aug 2018, 05:18

for some reason the very first time i tried it it simply worked... IDFK, I can't get it to work again.
The most common issue is that it says "configure modem" and when i attempt to do so all of the options are simply greyed out.

is it possible because my unit supports multiple USBs that PPP widget is selecting the wrong USB to query?
occasionally i get a overlay message from the android system saying something about failed to post notification channel "null" I can't quite remember all of the details of the message

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 09 Aug 2018, 13:00

The logs tell us that the modem itself is nicely discovered. It's the actual communication with it that fails.

I'll have a look at the source code tonight and will see what could be the reason. I'll also test with the QMI modems I own (QMI is a certain protocol standard some modems are using).

The connection profile in the configuration can only be edited after the SIM chip in the modem was queried. We obviously don't get that far in your case, so don't bother about the configuration right now.

BTW, make sure that the other config settings are largely in their default state. If in doubt, just uninstall and re-install PPP Widget.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 09 Aug 2018, 20:22

I think I have found a problem. The code has likely picked the wrong interface - there is no input or output available there:

Code: Select all

if:4 as:0 - cl:ff sc:01 pr:09 - ir:86
The table says these values define a QMI port
Unfortunately, there is no standard to easily identify a QMI port, so I created a matching table from the Linux kernel QMI driver which has a list of known QMI devices. In the latest driver, the matching for your modem is changed so that the correct interface is actually no. 5:

Code: Select all

if:5 as:0 - cl:ff sc:01 pr:08 - bi:87 bo:05
I will prepare a new PPP Widget release which includes the fix, among some others.
Please stand by ...

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 10 Aug 2018, 06:58

holy shit. you're amazing.
I suppose when you finish I just need to uninstall and reinstall the widget?
1) to get the update
2) to make sure all other settings are default.

best dev ever. thanks for taking so much time to look at this.
time for me to start looking for a donate button.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 10 Aug 2018, 16:25

VioDuskar wrote:time for me to start looking for a donate button.
You will not find any ...

I'm not sure the problem will be solved the way I was thinking of.
Anyway, I added some more diagnosing output that should appear in the PPP log. Maybe we can pinpoint the problem better.

The new version will come as a normal Google Play update.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 11 Aug 2018, 22:27

The new version should be available any time now.

I have found some bugs with QMI modems like yours, e.g. the reconnecting after a disconnect was broken - but I'm still not sure that your main problem is solved. If it is not, then I hope that the new PPP log can give a better indication about the error.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 12 Aug 2018, 05:59

I see the version I have is 1.7.4, but I don't see a release date posted in the about. Is that the new version? Or have you not pushed out the build you've got?

If there isn't a donation button is there some other way to buy you a beer?

Edit: I see the update. I am trying out 1.7.5 now. I'll report back to you in the next day or so.

Edit2: seems to only work when first ran. If I uninstall it and reinstall it it will work on the first run. Because logging is not enabled by default I cannot see what is different on the first run, but when I enable logging then check the logs, they look exactly the same as before.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 12 Aug 2018, 08:19

VioDuskar wrote:when I enable logging then check the logs, they look exactly the same as before.
Is the error message in the PPP log really identical? Does it say "disrupted"?

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 13 Aug 2018, 01:47

Aug 12, 2018 18:44:38

Device manufacturer string: rockchip
Total RAM: 4080 MB. Available RAM: 3248 MB

New device on /dev/bus/usb/003/008
Class of interface 0 is 0xFF
Looking at USB device 12d1:1506 with class 255
Device top dir: /sys/bus/usb/devices/3-1.1, active cfg: 1
Active configuration ID: 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:05 - bi:85 bo:04
if:4 as:0 - cl:ff sc:01 pr:09 - ir:86
The table says these values define a QMI port
if:5 as:0 - cl:ff sc:01 pr:08 - bi:87 bo:05
if:6 as:0 - cl:08 sc:06 pr:50 - bi:88 bo:06
if:7 as:0 - cl:08 sc:06 pr:50 - bo:07 bi:89

Found 4 serial ports
Opening port type QMI (interface 4)
Aug 12, 2018 18:44:39

Total RAM: 4080 MB. Available RAM: 3236 MB

Starting modem command sequence (Init) ...
>
010f0000000000022200040001010002
USB communication disrupted; abort

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 13 Aug 2018, 01:49

Josh wrote:
VioDuskar wrote:when I enable logging then check the logs, they look exactly the same as before.
Is the error message in the PPP log really identical? Does it say "disrupted"?
See the log above. It looks similar at first glance I haven't started at it too hard yet.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by Josh » 13 Aug 2018, 20:56

I see. I have expected a different error, but even that helps.

Next try. Stand by please ...

Edit: are you familiar with the Android logging facility? It's likely that there is some other error message when the "disrupted" notification appears in the PPP Widget log.

I recommend to install the free app "Catlog". Open it (will likely ask for root rights, is trustworthy though). You will see a lot of output. Then type "pppwidget3" in the upper text field.
This will filter the output and show you only the messages that are related to PPP Widget.

Try to find the moment when the connection fails, or change to the workplace, try to connect once more and go back to Catlog. You can save the visible messages to a file.

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

Re: Huawei E397u-53 with PX5 headunit issues

Post by VioDuskar » 13 Aug 2018, 23:08

I'll give it a shot when I can. It might be two or three days though.

Thanks again for the help.

Post Reply