takamura.eiji
2025年8月20日 14時04分
==========
製品型番:AG9130-C03D0
Debian/ABOSバージョン:v3.22.1-at.1
==========
REST API でWWAN の設定追加(APN登録)について質問があります。
https://manual.atmark-techno.com/armadillo-iot-a9e/armadillo-iotg-a9e_p…
REST API: /api/wwan
本 API で最初に誤った情報を登録すると2回目以降に正規の情報でも失敗します。
以下ホストOS側で試しました。
誤った情報: apn=a, user=b, pass=c
正規の情報: apn=apn.ok, user=user.ok, pass=pass.ok
以下実行例です。
armadillo:~# AUTH="Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" armadillo:~# alias curl_rest='curl -sS -k -H "$AUTH" -w "\n{\"http_status\": %{http_code}}\n" ' armadillo:~# curl_rest -d apn=a -d user=b -d password=c https://127.0.0.1:58080/api/wwan {"error":"Command [\"wwan_setup.sh\", \"gsm-ttyCommModem\", \"ttyCommModem\", \"a\", \"CHAP\", \"auto\", \"--user\", \"b\", \"--password\", \"c\"] failed with exit status: 4:\nstderr:\nError: Connection activation failed: The base network connection was interrupted\nNothing to do, none of the requested files exist: /etc/NetworkManager/system-connections/gsm-ttyCommModem.nmconnection\nconnection-recover | * WARNING: connection-recover has already been started\nmodemmanager | * WARNING: modemmanager has already been started\nCould not set up wwan connection.\n\nstdout:\nConnection 'gsm-ttyCommModem' (a2dafdc8-54cb-42d4-ad92-0fd09c46b9bf) successfully added.\nConnection 'gsm-ttyCommModem' (a2dafdc8-54cb-42d4-ad92-0fd09c46b9bf) successfully deleted.\n"} {"http_status": 500} armadillo:~# curl_rest -d apn=apn.ok -d user=user.ok -d password=pass.ok https://127.0.0.1:58080/api/wwan {"error":"Command [\"wwan_setup.sh\", \"gsm-ttyCommModem\", \"ttyCommModem\", \"apn.ok\", \"CHAP\", \"auto\", \"--user\", \"user.ok\", \"--password\", \"pass.ok\"] failed with exit status: 4:\nstderr:\nError: Connection activation failed: No suitable device found for this connection (device eth0 not available because profile is not compatible with device (mismatching interface name)).\nNothing to do, none of the requested files exist: /etc/NetworkManager/system-connections/gsm-ttyCommModem.nmconnection\nconnection-recover | * WARNING: connection-recover has already been started\nmodemmanager | * WARNING: modemmanager has already been started\nCould not set up wwan connection.\n\nstdout:\nConnection 'gsm-ttyCommModem' (abe93630-eb7f-4ccd-90f3-159b3a5340c4) successfully added.\nConnection 'gsm-ttyCommModem' (abe93630-eb7f-4ccd-90f3-159b3a5340c4) successfully deleted.\n"} {"http_status": 500} armadillo:~# curl_rest -d apn=apn.ok -d user=user.ok -d password=pass.ok https://127.0.0.1:58080/api/wwan {"error":"Command [\"wwan_setup.sh\", \"gsm-ttyCommModem\", \"ttyCommModem\", \"apn.ok\", \"CHAP\", \"auto\", \"--user\", \"user.ok\", \"--password\", \"pass.ok\"] failed with exit status: 4:\nstderr:\nError: Connection activation failed: The base network connection was interrupted\nNothing to do, none of the requested files exist: /etc/NetworkManager/system-connections/gsm-ttyCommModem.nmconnection\nconnection-recover | * WARNING: connection-recover has already been started\nmodemmanager | * WARNING: modemmanager has already been started\nCould not set up wwan connection.\n\nstdout:\nConnection 'gsm-ttyCommModem' (a0be1c15-99c1-4109-a0c7-768f3f987b3e) successfully added.\nConnection 'gsm-ttyCommModem' (a0be1c15-99c1-4109-a0c7-768f3f987b3e) successfully deleted.\n"} {"http_status": 500} armadillo:~# curl_rest -d apn=apn.ok -d user=user.ok -d password=pass.ok https://127.0.0.1:58080/api/wwan {"error":"Command [\"wwan_setup.sh\", \"gsm-ttyCommModem\", \"ttyCommModem\", \"apn.ok\", \"CHAP\", \"auto\", \"--user\", \"user.ok\", \"--password\", \"pass.ok\"] failed with exit status: 4:\nstderr:\nError: Connection activation failed: No suitable device found for this connection (device eth0 not available because profile is not compatible with device (mismatching interface name)).\nNothing to do, none of the requested files exist: /etc/NetworkManager/system-connections/gsm-ttyCommModem.nmconnection\nconnection-recover | * WARNING: connection-recover has already been started\nmodemmanager | * WARNING: modemmanager has already been started\nCould not set up wwan connection.\n\nstdout:\nConnection 'gsm-ttyCommModem' (afa21a88-e022-47e7-960f-8008089c6316) successfully added.\nConnection 'gsm-ttyCommModem' (afa21a88-e022-47e7-960f-8008089c6316) successfully deleted.\n"} {"http_status": 500} armadillo:~# curl_rest -d apn=apn.ok -d user=user.ok -d password=pass.ok https://127.0.0.1:58080/api/wwan {"error":"Command [\"wwan_setup.sh\", \"gsm-ttyCommModem\", \"ttyCommModem\", \"apn.ok\", \"CHAP\", \"auto\", \"--user\", \"user.ok\", \"--password\", \"pass.ok\"] failed with exit status: 4:\nstderr:\nError: Connection activation failed: No suitable device found for this connection (device eth0 not available because profile is not compatible with device (mismatching interface name)).\nNothing to do, none of the requested files exist: /etc/NetworkManager/system-connections/gsm-ttyCommModem.nmconnection\nconnection-recover | * WARNING: connection-recover has already been started\nmodemmanager | * WARNING: modemmanager has already been started\nCould not set up wwan connection.\n\nstdout:\nConnection 'gsm-ttyCommModem' (90425885-72d8-4d31-a364-94eb27776b43) successfully added.\nConnection 'gsm-ttyCommModem' (90425885-72d8-4d31-a364-94eb27776b43) successfully deleted.\n"} {"http_status": 500} armadillo:~# curl_rest -d apn=apn.ok -d user=user.ok -d password=pass.ok https://127.0.0.1:58080/api/wwan {"uuid":"09fcfabc-26fa-49bd-826a-57678f8524d6"} {"http_status": 200}
上記は正規の情報で4回ほど失敗して5回目で成功しました。
正規の情報で失敗する回数はまちまちですが、初回以降に誤った情報を何回も登録してしまうと、その後の失敗回数が増えるように思います。
場合により登録ができない状態になります。ただシステム再起動により初期状態に戻ります。
何かお作法的に誤ってますでしょうか?
※下記のフォーラムとの関連もありますでしょうか?
https://armadillo.atmark-techno.com/forum/armadillo/25946#comment-20194
at_dominique.m…
2025年8月21日 12時29分
takamura.eiji さん
お世話になっています、
マルティネです。
> 上記は正規の情報で4回ほど失敗して5回目で成功しました。
> 正規の情報で失敗する回数はまちまちですが、初回以降に誤った情報を何回も登録してしまうと、その後の失敗回数が増えるように思います。
> 場合により登録ができない状態になります。ただシステム再起動により初期状態に戻ります。
>
> 何かお作法的に誤ってますでしょうか?
本件を手元でも再現できました。
ModemManager の修正で対応できそうですがまだ完成してません。少し時間をください。
よろしくお願いします。