科學追求真理,為的是打開大自然的黑箱;然而真理明白若昭,就是透明的白箱。我們總在求真的旅途上一知半解,努力化灰箱為白箱。如果偵錯就是科學,除錯即求真理,那這一段話用在『偵錯』與『除錯』上來講依然合適。這也說明為什麼人們喜歡用不同的灰度,來表達對『箱內之物』的認識與了解了。
…
如何打開黑箱?讓我們歸結到胡適之先生的兩句名言︰
作學問要,
大膽假設,小心求證。
而讀書要,
於不疑處有疑,於有疑處不疑。
─── 《打開黑箱!!》
從這兩天『測試』經驗看來,『問題』來源箭指 PoE HAT 也!實質原因一時千頭萬緒?故而前往樹莓派『論壇』谷歌!!找找是否有『類似狀況』者,聽聽他們怎麼說耶??
PoE HAT – USB Ports not working – over-current
Hi, Just taken delivery of my official PoE-HAT and whilst I can now power the Pi on without the need for a separate micro USB PSU, it’s not exactly usable as the USB ports aren’t working.
Hardware:
- Raspberry Pi 3 b+
- Raspberry Pi PoE HAT
- Cisco SG250-26HP POE Network Swich.
System:
- Linux raspberrypi 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux
- Firmware:
Aug 16 2018 17:30:30
Copyright (c) 2012 Broadcom
version 31e0613622dc2f2463bf3dd74e6c897d91201a4d (clean) (release)
On booting (without anything connected to the USB ports) the following is logged:
[ 11.661117] Bluetooth: RFCOMM socket layer initialized [ 11.661151] Bluetooth: RFCOMM ver 1.11 [ 12.986076] usb 1-1.1-port2: over-current change [ 13.147084] usb 1-1-port2: over-current change [ 13.231877] usb 1-1.1-port3: over-current change [ 13.391693] usb 1-1-port3: over-current change [ 13.631851] usb 1-1-port4: over-current change [ 33.978119] usb 1-1.1-port2: over-current change [ 34.139091] usb 1-1-port2: over-current change [ 34.211769] usb 1-1.1-port3: over-current change [ 34.371756] usb 1-1-port3: over-current change [ 34.611750] usb 1-1-port4: over-current change [ 408.250020] usb 1-1.1-port2: over-current change [ 408.411057] usb 1-1-port2: over-current change [ 408.482948] usb 1-1.1-port3: over-current change [ 408.644602] usb 1-1-port3: over-current change [ 408.762133] usb 1-1.1-port2: over-current change [ 408.883014] usb 1-1-port4: over-current change [ 408.993105] usb 1-1.1-port3: over-current change [ 409.132964] usb 1-1-port2: over-current change [ 409.232949] usb 1-1.1-port2: over-current change [ 409.372938] usb 1-1-port3: over-current change
When connecting any USB device, a USB mass storage device or the Logitech wireless keyboard transceiver, messages are logged.
[ 473.733117] usb 1-1.3: new high-speed USB device number 5 using dwc_otg [ 473.864020] usb 1-1.3: New USB device found, idVendor=0781, idProduct=556c [ 473.864035] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 473.864043] usb 1-1.3: Product: Firebird USB Flash Drive [ 473.864051] usb 1-1.3: Manufacturer: SanDisk [ 473.864060] usb 1-1.3: SerialNumber: 4C532000000116109085 [ 473.868191] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 473.871816] scsi host0: usb-storage 1-1.3:1.0 [ 473.947128] usb 1-1-port2: over-current change [ 474.042110] usb 1-1.1-port2: over-current change [ 474.183449] usb 1-1-port3: over-current change [ 474.273351] usb 1-1.1-port3: over-current change [ 474.423299] usb 1-1.3: USB disconnect, device number 5 [ 474.753127] usb 1-1.3: new high-speed USB device number 6 using dwc_otg [ 474.883976] usb 1-1.3: New USB device found, idVendor=0781, idProduct=556c [ 474.883993] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 474.884001] usb 1-1.3: Product: Firebird USB Flash Drive [ 474.884009] usb 1-1.3: Manufacturer: SanDisk [ 474.884017] usb 1-1.3: SerialNumber: 4C532000000116109085 [ 474.884822] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 474.885225] scsi host0: usb-storage 1-1.3:1.0 [ 474.885928] usb 1-1-port4: over-current change [ 475.066003] usb 1-1.1-port2: over-current change [ 475.123277] usb 1-1-port2: over-current change [ 475.303252] usb 1-1.1-port3: over-current change [ 475.363319] usb 1-1-port3: over-current change [ 475.603178] usb 1-1.3: USB disconnect, device number 6 [ 475.903134] usb 1-1.3: new high-speed USB device number 7 using dwc_otg [ 476.044024] usb 1-1.3: New USB device found, idVendor=0781, idProduct=556c [ 476.044042] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 476.044050] usb 1-1.3: Product: Firebird USB Flash Drive [ 476.044059] usb 1-1.3: Manufacturer: SanDisk [ 476.044067] usb 1-1.3: SerialNumber: 4C532000000116109085 [ 476.044877] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 476.048170] scsi host0: usb-storage 1-1.3:1.0 [ 476.049075] usb 1-1-port4: over-current change [ 476.283387] usb 1-1-port2: over-current change [ 476.346097] usb 1-1.1-port2: over-current change [ 476.523476] usb 1-1-port3: over-current change [ 476.583383] usb 1-1.1-port3: over-current change [ 476.763258] usb 1-1.3: USB disconnect, device number 7 [ 477.103133] usb 1-1.3: new high-speed USB device number 8 using dwc_otg [ 477.234021] usb 1-1.3: New USB device found, idVendor=0781, idProduct=556c [ 477.234038] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 477.234047] usb 1-1.3: Product: Firebird USB Flash Drive [ 477.234056] usb 1-1.3: Manufacturer: SanDisk [ 477.234064] usb 1-1.3: SerialNumber: 4C532000000116109085 [ 477.234868] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 477.237752] scsi host0: usb-storage 1-1.3:1.0 [ 477.238749] usb 1-1-port4: over-current change [ 478.314404] scsi 0:0:0:0: Direct-Access SanDisk Ultra 1.26 PQ: 0 ANSI: 5 [ 478.316594] sd 0:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 478.317631] sd 0:0:0:0: [sda] Write Protect is off [ 478.317649] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 478.318064] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 478.331456] sda: sda1 [ 478.334032] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 478.340700] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 478.394088] usb 1-1.1-port2: over-current change [ 478.555097] usb 1-1-port2: over-current change [ 478.633379] usb 1-1.1-port3: over-current change [ 479.183155] usb 1-1.3: reset high-speed USB device number 8 using dwc_otg [ 479.313802] usb 1-1-port3: over-current change [ 479.553522] usb 1-1-port4: over-current change [ 479.674094] usb 1-1.1-port2: over-current change [ 479.793515] usb 1-1-port2: over-current change [ 479.913413] usb 1-1.1-port3: over-current change [ 480.153155] usb 1-1.3: reset high-speed USB device number 8 using dwc_otg [ 480.283764] usb 1-1-port3: over-current change [ 480.442136] usb 1-1.1-port2: over-current change [ 480.603102] usb 1-1-port2: over-current change [ 480.673471] usb 1-1.1-port3: over-current change [ 481.153129] usb 1-1.3: reset high-speed USB device number 8 using dwc_otg [ 481.283588] usb 1-1-port3: over-current change [ 481.533586] usb 1-1-port4: over-current change
Checking my Cisco SG250-26HP switch shows the port connected to the Pi (via a 1m cable):
- Operational Status: Delivering Power
- Administrative Power Allocation: 30000mW
- Power Consumption: 3000mW
- Class: 3
- PoE Standard: 802.3 AT
Do I have a faulty HAT, or RPi3, or any other suggestions as to why this isn’t working properly. When powered via micro USB power socket the USB ports work just fine.
……
多方文字洋洋灑灑,似乎已將『硬體』定罪矣!!??
不過一時『科南』上身??!!
跂礄曾經於二零壹二年六月六日刊登︰
履,柔履剛也。說而應乎乾,是以履虎尾,不咥人,亨。剛中正 ,履帝位而不疚,光明也。
說胡楊精神︰
千年不死,千年不倒,千年不朽 。
─── 摘自《胡楊三千!!》
竟敢先『履虎尾』乎,
Re: PoE HAT – USB Ports not working – over-current
I can confirm this same issue with my own PoE hat.
I was getting all sorts of ugly errors when trying to mount USB storage while powering the Pi from the PoE hat, but not when powered from the micro-USB connector. Googling brought me to this thread and others. I checked dmesg and was getting the same over current errors as others here. I initially tried setting the fan constantly on with the command:
echo 40 | sudo tee /sys/class/hwmon/hwmon0/def_pwm1
Which worked – the errors went away and I was succesfully able to mount the USB drive – but didn’t survive a reboot. So I tried the change to the rpi-poe overlay detailed above which also worked and survived a reboot.
While this temporary kludge helps me get on with developing my solution, I wouldn’t feel confident putting it into a production environment! It’s a shame – I hope that we can find a more permanent fix.
……
Re: PoE HAT – USB Ports not working – over-current
發現它會咬人哩★
pi@raspberrypi:~