Armadilloフォーラム

SIMのupで失敗。デバイスが無くなる。

t-oi

2020年7月20日 14時47分

お世話になります。SIMのupで失敗します。connectionで表示すると、デバイスが無くなっています。
syslogにmodem hang upなる文字が複数でています。

root@amiotg3-opu-tb1:~# nmcli connection
NAME UUID TYPE DEVICE
access-point 94d881fd-21a0-4e50-bcf5-db54cd8f6988 802-11-wireless wlan0
Wired connection 1 d04a3a30-53dd-3b2a-8aa7-ee191923ca0d 802-3-ethernet --
gsm-ttyUSB2 ef8ccbf6-c443-49d0-8d72-5b99ac4dadc4 gsm --
root@amiotg3-opu-tb1:~# nmcli connection delete gsm-ttyUSB2 ←ただaddコマンドを投入すると、gsm-ttyUSB2-1で追加されるので最初に古いものを削除
Connection 'gsm-ttyUSB2' (ef8ccbf6-c443-49d0-8d72-5b99ac4dadc4) successfully deleted.
root@amiotg3-opu-tb1:~# nmcli connection
NAME UUID TYPE DEVICE
access-point 94d881fd-21a0-4e50-bcf5-db54cd8f6988 802-11-wireless wlan0
Wired connection 1 d04a3a30-53dd-3b2a-8aa7-ee191923ca0d 802-3-ethernet --
root@amiotg3-opu-tb1:~# nmcli connection add type gsm ifname ttyUSB2 apn xxx.io user xxx password xxx
Connection 'gsm-ttyUSB2' (b8bcc7bf-8d7f-422f-94c2-eff7195a33ae) successfully added.
root@amiotg3-opu-tb1:~# nmcli connection
NAME UUID TYPE DEVICE
access-point 94d881fd-21a0-4e50-bcf5-db54cd8f6988 802-11-wireless wlan0
gsm-ttyUSB2 b8bcc7bf-8d7f-422f-94c2-eff7195a33ae gsm ttyUSB2 ←デバイスの認識に成功
Wired connection 1 d04a3a30-53dd-3b2a-8aa7-ee191923ca0d 802-3-ethernet --
root@amiotg3-opu-tb1:~# nmcli connection up gsm-ttyUSB2random: crng init done ←自動の状態表示メッセージ
root@amiotg3-opu-tb1:~# nmcli connection up gsm-ttyUSB2
Error: Connection activation failed. ←失敗
root@amiotg3-opu-tb1:~# nmcli connection
NAME UUID TYPE DEVICE
access-point 94d881fd-21a0-4e50-bcf5-db54cd8f6988 802-11-wireless wlan0
Wired connection 1 d04a3a30-53dd-3b2a-8aa7-ee191923ca0d 802-3-ethernet --
gsm-ttyUSB2 b8bcc7bf-8d7f-422f-94c2-eff7195a33ae gsm -- ←デバイスが消える
root@amiotg3-opu-tb1:~#

コメント

at_mitsuhiro.yoshida

2020年7月20日 15時07分

吉田です。

お手数ですが、

Armadillo-IoT G3 M1: 3G/LTEモジュールで通信できないときには?
https://armadillo.atmark-techno.com/faq/aiotg-g3-m1-3g-doesnt-work
の内容を確認の上、接続出来ない場合は、

8. 弊社への問い合わせ
に記載のある通りに syslog の添付をお願いできますでしょうか。
# mmcli -G DEBUG
# nmcli connection down gsm-ttyUSB2
# nmcli connection up gsm-ttyUSB2
の後、接続失敗するまでのログをお願いします。

また、ご利用になられているカーネル及びmodemmanagerのバージョンも
ご連絡お願いします。
以下のコマンドの結果です。
# uname -a
# apt show modemmanager

t-oi

2020年7月21日 10時16分

syslogを添付いたします。
modemmanagerのバージョンについては以下です。
root@amiotg3-opu-tb1:~# uname -a
Linux amiotg3-opu-tb1 4.9.133-at15 #2 SMP PREEMPT Mon Jun 29 11:20:10 JST 2020 armv7l GNU/Linux
root@amiotg3-opu-tb1:~# apt show modemmanager
Package: modemmanager
Version: 1.6.4-1atmark8
Priority: optional
Section: net
Maintainer: Utopia Maintenance Team
Installed-Size: 2072 kB
Depends: libc6 (>= 2.8), libglib2.0-0 (>= 2.37.3), libgudev-1.0-0 (>= 146), libmbim-glib4 (>= 1.12.2), libmbim-proxy, libmm-glib0 (>= 1.5.993), libpolkit-gobject-1-0 (>= 0.99), libqmi-glib5 (>= 1.14.0), libqmi-proxy, init-system-helpers (>= 1.18~)
Recommends: usb-modeswitch
Breaks: network-manager (<< 0.9.8.2-1)
Homepage: https://www.freedesktop.org/wiki/Software/ModemManager/
Download-Size: 566 kB
APT-Manual-Installed: yes
APT-Sources: http://download.atmark-techno.com/debian stretch/main armhf Packages
Description: D-Bus service for managing modems
ModemManager is a DBus-activated daemon which controls mobile broadband
(2G/3G/4G) devices and connections. Whether built-in devices, USB dongles,
Bluetooth-paired telephones or professional RS232/USB devices with external
power supplies, ModemManager is able to prepare and configure the modems and
setup connections with them.

N: There is 1 additional record. Please use the '-a' switch to see it

t-oi

2020年7月21日 12時23分

すみません、このsyslog.txtを消したいです。

t-oi

2020年7月21日 16時32分

APN名の誤りでした。お手数をおかけしました。ありがとうございます。

at_mitsuhiro.yoshida

2020年7月21日 11時25分

吉田です。

ログのご提供ありがとうございます。
ppp の接続で失敗しており modem hangup のログが出力されています。

お手数ですが、以下の実施をお願い出来ますでしょうか。

(1) 以下のコマンドを root 権限で実施し、再度確認頂けますでしょうか。
# ec25-clean-reset
# reboot

(2) 以下のコマンドの結果を頂けますでしょうか。
# mmcli -m 0
Numbers -> own や 3GPP -> imei などは伏せて頂いて構いません。

(3) 通信事業者のユーザーコンソールなどで
SIM のアクティベーションが完了しているか確認頂けますでしょうか。

t-oi

2020年7月21日 12時08分

(1)のsyslogを添付いたします。
(2)
/org/freedesktop/ModemManager1/Modem/0 (device id '56e999b2510450287b0805480adc3ffb5feb395b')
-------------------------
Hardware | manufacturer: 'Quectel'
| model: 'EC25'
| revision: 'EC25JFAR06A05M4G'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '865036041717750'
-------------------------
System | device: '/sys/devices/soc0/soc/30800000.aips-bus/30b30000.usb/ci_hdrc.1/usb2/2-1/2-1.2'
| drivers: 'option1'
| plugin: 'Quectel EC25'
| primary port: 'ttyUSB2'
| ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 (at)'
-------------------------
Numbers | own : 'XXXXXXXXXX'
-------------------------
Status | lock: 'none'
| unlock retries: 'unknown'
| state: 'registered'
| power state: 'on'
| access tech: 'lte'
| signal quality: '100' (recent)
-------------------------
Modes | supported: 'allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 4g; preferred: none
| allowed: any; preferred: none'
| current: 'allowed: any; preferred: none'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'ipv4, ipv6, ipv4v6'
-------------------------
3GPP | imei: 'XXXXXXXXXXXXXXXX'
| enabled locks: 'none'
| operator id: '44010'
| operator name: 'NTT DOCOMO NTT DOCOMO'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/0'

-------------------------
Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/0'

(3)ステータスが「使用中」となっております。アクティベートの意味のようです。

ファイル ファイルの説明
syslog_1.txt