usb disconnect 的原因不少,最快的方法就是用 analyzer 下去看。
不過如果是 signal integrity 或是 vbus 的問題,你需要用 scope
看來。
如果問題如你描述,usb disconnect 發生在 iperf 測試過程,但幾秒
中之後(根據你的 log)又 reconnect,感覺起來像是 usb device
重新啟動了,或者是 vbus 不穩。
你的 LTE module 的 power source 是 vbus 嗎?如果 vbus 不穩,
是會造成 usb disconnect 的。一般 PC 可以供給超過 500mA,所以
相當穩健。另外一種可能性就是 D+/D- 沒有很乾淨,USB PHY 偵測
到 disconnect conditions。
※ 引述《xb1015 (Marco)》之銘言:
: 各位大大好,
: 工作中遇到難題,花了很久時間還是沒有頭緒
: 請求各位大大給點建議
: 我在 Atheros AR9331 embedded system
: Openwrt revision 30430
: Kernel 2.6.39.4
: 進行iperf 測試會遇到USB disconnect問題
: 詳細log如底下網址所示:
: https://sites.google.com/site/xb10151983/debug_1
: 是否有方法能重 Linux 系統 來觀察 斷開是由誰 發起的呢 ?
: (斷開log就像是USB斷開再接上, 如底下紅色的部分,不確定由module本身或者linux 系統本身 )
: 請有相關經驗的大大提供給小弟去嘗試, thx
: 是否可以在linux系統開啟一些debug或者加入一些printk來確認斷開的方向
: THX~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 71.202.108.54