Automatic Activation, Hotplug and UDEV, Configuration
tore
Posts: 6
Joined: 02 Jul 2017, 11:03

Re: Huawei ME906s-158 cannot connect

Post by tore » 25 Nov 2018, 12:20

tore wrote:I tested with your updated files plus the attached patch to add support for the HP lt4132.
I'm reviving this old thread, as it would appear that the patch I sent to add support for the HP lt4132 has only been partially applied as of usb-modeswitch-data-20170806. The new file usb_modeswitch.d/03f0:a31d has been included, however, the corresponding udev rule in 40-usb_modeswitch.rules has not been. The result is that the HP lt4132 does not Just Work™ as intended.

Note that running gen-rules.tcl generates a new 40-usb_modeswitch.rules that does include the necessary udev rule:

Code: Select all

# HP lt4132
ATTR{idVendor}=="03f0", ATTR{idProduct}=="a31d", RUN+="usb_modeswitch '/%k'"

Presumably this is an accidental omission, and ought to be included in the next release?

Tore

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

Re: Huawei ME906s-158 cannot connect

Post by Josh » 29 Nov 2018, 00:06

I'll have a look, thanks!

ant0nwax
Posts: 3
Joined: 17 Aug 2022, 08:27

Re: Huawei ME906s-158 cannot connect

Post by ant0nwax » 17 Aug 2022, 08:36

Hi Josh an tore

sorry to bump this ancient thread. I run Ubuntu Desktop 22.04 LTS on a HP Elitebook 1040 G4 with the mentioned HP lt4132 and it does NOT work :)

would you have any advice?

actually sometimes the Mobile Broadband with a line through it appeared sometimes in the past in the Desktop Settings on the Sidebar (where I could select the Wifi/Blutotth/VPN/Sound)... or was I dreaming that?
Actually it was yesterday night when i seen that but i was too tired to try to insert the SIM card.

So a working SIM card was just placed inside today... maybe it will start working intermittently after I write this post... according to Murphy i just need to inform you :)

As you write about compiling usb_modeswitch and me not being a developer, I would skip that suggestion and rather registered here and try to ask friendly.

I can do the following things, nothing leads to a working modem, I have the SIM card in the modem with 50 MB of traffic for today for testing, i would like to receive SMS, and I installed already the GUI for Modem Manager in Ubuntu Software Store

Thank you for your kind support and time

Code: Select all

root@antbook:~# lsusb | grep lt
Bus 001 Device 003: ID 03f0:a31d HP, Inc HP lt4132 LTE/HSPA+ 4G Module
root@antbook:~# echo 0 >> /sys/bus/usb/devices/1-3/bConfigurationValue
root@antbook:~# echo 1 >> /sys/bus/usb/devices/1-3/bConfigurationValue
root@antbook:~# echo 2 >> /sys/bus/usb/devices/1-3/bConfigurationValue
-bash: echo: write error: Invalid argument
root@antbook:~# cat /sys/bus/usb/devices/1-3/bConfigurationValue
1
root@antbook:~# mmcli -L
No modems were found
root@antbook:~# usb_modeswitch -v 03f0 -p a31d -c 03f0\:a31d
Look for default devices ...
 Found devices in default mode (1)
Access device 003 on bus 001
Get the current device configuration ...
 Determining the active configuration failed (error -5). Abort
root@antbook:~# cat 03f0\:a31d
# HP lt4132
Configuration=0


ant0nwax
Posts: 3
Joined: 17 Aug 2022, 08:27

Re: Huawei ME906s-158 cannot connect

Post by ant0nwax » 24 Aug 2022, 08:52

Update:

It worked for one day, and today I would have free Internet (each Wednesday) and the modem is again not recognized...

Code: Select all

root@antbook:~# cat /sys/bus/usb/devices/1-3/bConfigurationValue
1
root@antbook:~# lsusb | grep lt
Bus 001 Device 003: ID 03f0:a31d HP, Inc HP lt4132 LTE/HSPA+ 4G Module
root@antbook:~# mmcli -L
No modems were found
root@antbook:~# mmcli -m 0
error: couldn't find modem
root@antbook:~# usb_modeswitch -v 03f0 -p a31d -c 03f0\:a31d
Look for default devices ...
 Found devices in default mode (1)
Access device 003 on bus 001
Get the current device configuration ...
 Determining the active configuration failed (error -5). Abort
root@antbook:~# 

tjjh89017
Posts: 4
Joined: 31 Jul 2022, 15:26

Re: Huawei ME906s-158 cannot connect

Post by tjjh89017 » 25 Aug 2022, 08:33

ant0nwax wrote: 24 Aug 2022, 08:52 Update:

It worked for one day, and today I would have free Internet (each Wednesday) and the modem is again not recognized...

Code: Select all

root@antbook:~# cat /sys/bus/usb/devices/1-3/bConfigurationValue
1
root@antbook:~# lsusb | grep lt
Bus 001 Device 003: ID 03f0:a31d HP, Inc HP lt4132 LTE/HSPA+ 4G Module
root@antbook:~# mmcli -L
No modems were found
root@antbook:~# mmcli -m 0
error: couldn't find modem
root@antbook:~# usb_modeswitch -v 03f0 -p a31d -c 03f0\:a31d
Look for default devices ...
 Found devices in default mode (1)
Access device 003 on bus 001
Get the current device configuration ...
 Determining the active configuration failed (error -5). Abort
root@antbook:~# 
Try to use this patch viewtopic.php?f=2&p=19976#p19976
Edit /lib/udev/rules.d/40-usb_modeswitch.rules

and Edit /etc/usb_modeswitch.d/03f0:a31d
with
Configuration=3

reboot and try it again

ant0nwax
Posts: 3
Joined: 17 Aug 2022, 08:27

Re: Huawei ME906s-158 cannot connect

Post by ant0nwax » 26 Aug 2022, 11:27

Thank you for answering,

i am sorry but i solved the issue meanwhile:
https://askubuntu.com/a/1425797/1624155

Code: Select all

book:~# cat /etc/udev/rules.d/hp-lt4132.rules
ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="a31d", ATTR{bConfigurationValue}!="3", ATTR{bConfigurationValue}:="0"
ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="a31d", ATTR{bConfigurationValue}!="3", RUN+="/bin/sh -c 'sleep 1; echo 3 > %S%p/bConfigurationValue'"
ACTION=="add|change", SUBSYSTEM=="net", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="a31d", ATTR{cdc_ncm/ndp_to_end}=="N", ATTR{cdc_ncm/ndp_to_end}:="Y"
book:~# 
afterwards reboot and see your Broadband appearing :)

i am not sure now if i would like to mess up th working broadband with any patch... maybe i will need that after a system upgrade

Post Reply