* ALPWAN / Connman Ofono Huawei MS2372h-153 not working
@ 2022-03-28 10:00 Stéphane David
0 siblings, 0 replies; only message in thread
From: Stéphane David @ 2022-03-28 10:00 UTC (permalink / raw)
To: ofono
Hello,
I try to use a Huawei Modem MS2372h-153 (SIM Card 1NCE) with connman and ofono but I have some problems to do that.
Computer : Raspberry Pi 4 Model B rev 1.4
OS : Debian GNU/Linux 11 (bullseye) / Raspberry Pi OS Lite (64-bit)
Kernel : Linux 5.10.92-v8+
Arch : ARM64
Connman : 1.36-2.2
Ofono : 1.31-3
Ofono-scripts : 1.31-3
APN : iot.1nce.net
nsa@alpwan-e0d9c90c:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0483:5740 STMicroelectronics Virtual COM Port
Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg
[ 9.507015] usb 1-1.1: new high-speed USB device number 5 using xhci_hcd
[ 9.616313] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1506, bcdDevice= 1.02
[ 9.616329] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9.616336] usb 1-1.1: Product: HUAWEI_MOBILE
[ 9.616342] usb 1-1.1: Manufacturer: HUAWEI_MOBILE
[ 9.673161] usbcore: registered new interface driver usbserial_generic
[ 9.673217] usbserial: USB Serial support registered for generic
[ 9.676205] usbcore: registered new interface driver cdc_ether
[ 9.688574] usbcore: registered new interface driver cdc_ncm
[ 9.708900] usbcore: registered new interface driver option
[ 9.708973] usbserial: USB Serial support registered for GSM modem (1-port)
[ 9.709202] option 1-1.1:1.0: GSM modem (1-port) converter detected
[ 9.710442] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 9.711402] option 1-1.1:1.1: GSM modem (1-port) converter detected
[ 9.711760] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 9.712056] option 1-1.1:1.2: GSM modem (1-port) converter detected
[ 9.712325] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 9.715371] usbcore: registered new interface driver cdc_wdm
[ 9.746562] huawei_cdc_ncm 1-1.1:1.3: MAC-Address: 00:1e:10:1f:00:00
[ 9.746580] huawei_cdc_ncm 1-1.1:1.3: setting rx_max = 16384
[ 9.747286] huawei_cdc_ncm 1-1.1:1.3: NDP will be placed at end of frame for this device.
[ 9.747523] huawei_cdc_ncm 1-1.1:1.3: cdc-wdm0: USB WDM device
[ 9.749312] huawei_cdc_ncm 1-1.1:1.3 wwan0: register 'huawei_cdc_ncm' at usb-0000:01:00.0-1.1, Huawei CDC NCM device, 00:1e:10:1f:00:00
[ 9.749494] usbcore: registered new interface driver huawei_cdc_ncm
nsa@alpwan-e0d9c90c:~ $ ifconfig
eth0: flags=4163 mtu 1500
inet 192.168.0.169 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::fccb:2fa5:b61b:1236 prefixlen 64 scopeid 0x20
inet6 2a01:e34:ee9f:eaa0:5470:b84c:3a21:bccc prefixlen 64 scopeid 0x0
ether e4:5f:01:15:de:4f txqueuelen 1000 (Ethernet)
RX packets 504 bytes 39108 (38.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 525 bytes 105816 (103.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 12978 bytes 2589961 (2.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12978 bytes 2589961 (2.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tether: flags=-28605 mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::9052:8fff:fe1f:e97 prefixlen 64 scopeid 0x20
ether e4:5f:01:15:de:50 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38 bytes 5116 (4.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163 mtu 1500
inet 169.254.223.188 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::396f:65ff:30c1:ba06 prefixlen 64 scopeid 0x20
ether e4:5f:01:15:de:50 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 90 bytes 16314 (15.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wwan0: flags=4163 mtu 1500
inet 169.254.62.145 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::b252:632a:1186:e827 prefixlen 64 scopeid 0x20
ether 00:1e:10:1f:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 6126 (5.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
connmanctl> technologies
/net/connman/technology/bluetooth
Name = Bluetooth
Type = bluetooth
Powered = False
Connected = False
Tethering = False
/net/connman/technology/p2p
Name = P2P
Type = p2p
Powered = False
Connected = False
Tethering = False
/net/connman/technology/cellular
Name = Cellular
Type = cellular
Powered = False
Connected = False
Tethering = False
/net/connman/technology/ethernet
Name = Wired
Type = ethernet
Powered = True
Connected = True
Tethering = False
/net/connman/technology/wifi
Name = WiFi
Type = wifi
Powered = True
Connected = False
Tethering = True
TetheringIdentifier = alpwan-e0d9c90c
TetheringPassphrase = e45f0115de50
connmanctl> enable cellular
Enabled cellular
connmanctl> technologies
/net/connman/technology/bluetooth
Name = Bluetooth
Type = bluetooth
Powered = False
Connected = False
Tethering = False
/net/connman/technology/p2p
Name = P2P
Type = p2p
Powered = False
Connected = False
Tethering = False
/net/connman/technology/cellular
Name = Cellular
Type = cellular
Powered = True
Connected = False
Tethering = False
/net/connman/technology/ethernet
Name = Wired
Type = ethernet
Powered = True
Connected = True
Tethering = False
/net/connman/technology/wifi
Name = WiFi
Type = wifi
Powered = True
Connected = False
Tethering = True
TetheringIdentifier = alpwan-e0d9c90c
TetheringPassphrase = e45f0115de50
!!! but no service create !!!
nsa@alpwan-e0d9c90c:~ $ ls /var/lib/connman
ethernet_e45f0115de4f_cable settings
!!! impossible to connect !!!
after a connmanctl disable cellular, I try do connect the modem directly from ofono
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./list-modems
[ /huawei_0 ]
Online = 0
Powered = 1
Lockdown = 0
Emergency = 0
Manufacturer = huawei
Model = MS2372h-153
Revision = 21.327.07.00.00
Serial = 866129030046221
SystemPath = /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1
Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.ConnectionManager org.ofono.RadioSettings org.ofono.Phonebook org.ofono.AudioSettings org.ofono.VoiceCallManager org.ofono.AllowedAccessPoints org.ofono.SimManager
Features = sms gprs rat sim
Type = hardware
[ org.ofono.SmartMessaging ]
[ org.ofono.PushNotification ]
[ org.ofono.MessageManager ]
ServiceCenterAddress = +882285000016868
UseDeliveryReports = 0
Bearer = cs-preferred
Alphabet = default
[ org.ofono.ConnectionManager ]
Attached = 0
Bearer = none
RoamingAllowed = 0
Powered = 1
[ org.ofono.RadioSettings ]
TechnologyPreference = any
GsmBand = any
UmtsBand = any
[ org.ofono.Phonebook ]
[ org.ofono.AudioSettings ]
Active = 0
[ org.ofono.VoiceCallManager ]
EmergencyNumbers = 118 110 08 911 000 112 999 119
[ org.ofono.AllowedAccessPoints ]
[ org.ofono.SimManager ]
Present = 1
CardIdentifier = 89882280666023068871
SubscriberIdentity = 901405102306887
ServiceProviderName = 1nce.net
FixedDialing = 0
BarredDialing = 0
MobileCountryCode = 901
MobileNetworkCode = 40
SubscriberNumbers =
LockedPins =
PreferredLanguages = de en
PinRequired = none
Retries = [pin = 3] [pin2 = 3] [puk = 10] [puk2 = 10]
CardSlotCount = 1
ActiveCardSlot = 1
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./enable-modem
Connecting modem /huawei_0...
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./online-modem
Setting modem /huawei_0 online...
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./register-auto
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $
I think that these 3 commands do the same job as connmanctl enable cellular
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ connmanctl technologies
/net/connman/technology/bluetooth
Name = Bluetooth
Type = bluetooth
Powered = False
Connected = False
Tethering = False
/net/connman/technology/p2p
Name = P2P
Type = p2p
Powered = False
Connected = False
Tethering = False
/net/connman/technology/cellular
Name = Cellular
Type = cellular
Powered = True
Connected = False
Tethering = False
/net/connman/technology/ethernet
Name = Wired
Type = ethernet
Powered = True
Connected = True
Tethering = False
/net/connman/technology/wifi
Name = WiFi
Type = wifi
Powered = True
Connected = False
Tethering = True
TetheringIdentifier = alpwan-e0d9c90c
TetheringPassphrase = e45f0115de50
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./create-internet-context iot.1nce.net
Found context /huawei_0/context1
Setting APN to iot.1nce.net
nsa@alpwan-e0d9c90c:/usr/share/ofono/scripts $ sudo ./activate-context
Error activating /huawei_0/context1: org.ofono.Error.NotAttached: GPRS is not attached
I suppose that this is the reason why the service is not created with connman
What i'm doing wrong ? or maybe the Huawei MS2372h-153 is not well supported by connman/ofono ?
thank you
regards
Stéphane David
Cordialement / Best regards
[image]
Stéphane David
Embedded Computers / ARM / RISC-V / Linux
Telecoms & Network / M2M / IoT
Mobile: +33 (0)6 87 00 73 19
www.alpwan.fr
Envoyé avec la messagerie sécurisée ProtonMail.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-28 10:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28 10:00 ALPWAN / Connman Ofono Huawei MS2372h-153 not working Stéphane David
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).