USB Modem 12d1:140c Huawei E180v

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

USB Modem 12d1:140c Huawei E180v

Post by nworbnhoj »

I am having difficulty with the setup of a QMI USB Modem 12d1:140c Huawei E180v

It looks to me like there is a problem when uqmi checks for a PIN on the SIM (there is no PIN set on the SIM).

Any thoughts how I best move forward on this?

Device Name:Gargoyle
Gargoyle Version:1.12.0
Model:TP-Link TL-WDR3600 v1
Device Configuration:Gateway

my config is:

Code: Select all

network.wan=interface
network.wan.ipv6='0'
network.wan.peerdns='0'
network.wan.dns='208.67.222.222 208.67.220.220'
network.wan.proto='qmi'
network.wan.device='/dev/cdc-wdm0'
network.wan.apn='yesinternet'
network.wan.mobile_isp='custom'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='dhcpv6'
The logs show ...

Code: Select all

Sun May 29 11:24:53 2022 daemon.notice netifd: wan (2130): Waiting for SIM initialization
Sun May 29 11:24:53 2022 daemon.notice netifd: wan (2130): Failed to parse message data
Sun May 29 11:24:53 2022 daemon.notice netifd: wan (2130): PIN status failed ()
Sun May 29 11:24:53 2022 daemon.notice netifd: wan (3828): Stopping network wan
Sun May 29 11:24:53 2022 daemon.notice netifd: wan (3828): Command failed: Permission denied
Sun May 29 11:24:53 2022 daemon.notice netifd: Interface 'wan' is now down
And when I interact with the modem from the cli I see:

Code: Select all

root@Gargoyle:~# uqmi -d /dev/cdc-wdm0 --get-pin-status
"Invalid arguments given"
root@Gargoyle:~# uqmi -d /dev/cdc-wdm0 --get-capabilities
{
	"max_tx_channel_rate": 3100000,
	"max_rx_channel_rate": 3100000,
	"data_service": "non_simultaneous_cs_ps",
	"sim": "supported",
	"networks": [
		"gsm",
		"umts"
	]
}
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: USB Modem 12d1:140c Huawei E180v

Post by nworbnhoj »

Just upgraded to Gargoyle 1.13.0 and same behaviour with QMI modem :-(
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: USB Modem 12d1:140c Huawei E180v

Post by Lantis »

I know nothing about QMI sorry.
All we can do is chase the steps right?
https://git.openwrt.org/?p=openwrt/open ... 07403#l108

Code: Select all

. /usr/share/libubox/jshn.sh
json_load "$(uqmi -s -d "$device" --get-pin-status)"
json_get_var pin1_status pin1_status
if [ -z "$pin1_status" ]; then
    json_load "$(uqmi -s -d "$device" --uim-get-sim-state)"
    json_get_var pin1_status pin1_status
fi
json_get_var pin1_verify_tries pin1_verify_tries
We need to understand the output of that. You can probably skip the json related BS and just read the json by hand.

If there is no PIN as you said, ideally we want at least part of that code block to return "disabled" so that we get "PIN verification disabled" and it falls through the to the rest of the script.
You could even ask it to bypass that code block for testing? You know how to code, have some fun :P
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply