Armadilloフォーラム

WiFiとBTが使えなくなる

someya

2018年5月18日 16時06分

バイタルデータを取得できるデバイスとBLEで接続し、そのバイタルデータをWiFiを使ってクラウドに送信するアプリケーションを開発しています。
Armadillo-IoT G3Lでアプリケーションを動作させている最中に、ネットワークが繋がらなくなり、BLEのスキャンも出来なくなることがあります。

syslogを見ると以下のlogがありました。
5/15 5:30ぐらいからおかしな挙動になっています。

1. 5:40にネットワークに接続できなくなる。
May 15 05:40:03 armadillo NetworkManager[412]: Could not get scan request result: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

その後定期的にwifiの接続を行っていますが、接続できていない。

2. この時間に強制終了???
May 15 06:04:13 armadillo systemd[1]: systemd-logind.service stop-final-sigterm timed out. Killing.

その後、ルータのlogを見てもIP払い出されていないので、ネットワークに接続できていない
また、
---
May 15 06:05:27 armadillo NetworkManager[412]: Connection
disconnected (reason -1) May 15 06:05:27 armadillo
NetworkManager[412]: (wlan0): supplicant interface state:
group handshake -> disconnected May 15 06:05:27 armadillo
NetworkManager[412]: Connection disconnected (reason 2)
---
とsyslogにあるので、ネットワーク繋がっていない

あと、Bluetoothのスキャンもできなくなってます
May 15 06:05:48 armadillo kernel: (stk) : timed out waiting for
ldisc to be un-installed<3>Bluetooth: st_register failed -22
GWのログからも、BLEのスキャンができていない。

Syslogを添付するのでなぜこのような現象になったか確認お願いします。

ファイル ファイルの説明
kern.log.zip 問題発生時のkernelログ
syslog.zip 問題発生時のsysログ
コメント

at_mizo

2018年5月21日 11時32分

溝渕です。

> May 15 05:40:03 armadillo NetworkManager[412]: Could not get scan request result: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
>
> その後定期的にwifiの接続を行っていますが、接続できていない。

その後のログで、正常に受信処理が実行できなくなっていることがわかります。

May 15 06:05:25 armadillo kernel: wlcore: WARNING corrupted packet in RX: status: 0x1 len: 110

極力シンプルな再現用アプリケーションをご提供いただくことは可能でしょうか。

> あと、Bluetoothのスキャンもできなくなってます

こちらに関しては、firmwareのdownloadに失敗しています。これは、
"kernel.log.1"の以下の箇所より確認できます。

May 14 08:00:49 armadillo kernel: (stk) :ti-connectivity/TIInit_11.8.32.bts(stk) :change remote baud rate command in firmware
May 14 08:00:50 armadillo kernel: (stk) :skipping the wait event of change remote baud(stk) :response timeout/signaled during fw download
May 14 08:00:50 armadillo kernel: (stk) :download firmware failed(stk) :ldisc_install = 0

WL1837MODのBTドライバは、hciインターフェースをopenする度にfirmwareの
downloadが必要な実装になっています。

hciインターフェースのopen/closeを繰替えさずに、openした状態のままで試
験していただくことは可能でしょうか。