2020年4月24日 星期五

檢查 Pi 系列單片機是否正常運作

將下列文字複製到 check-pi.bat

===================從下列起==================
@Echo off
del act.txt
del na.txt
echo 192.168.1.104 APRX >> act.txt
echo 192.168.1.105 Zero >> act.txt
echo 192.168.1.106 One >> act.txt
echo 192.168.1.107 Zero(白) >> act.txt
echo 192.168.1.108 mail >> act.txt
echo 192.168.1.104 APRX >> na.txt
echo 192.168.1.105 Zero >> na.txt
echo 192.168.1.106 One >> na.txt
echo 192.168.1.107 Zero(白) >> na.txt
echo 192.168.1.108 mail >> na.txt
echo ==========正常連線的設備========== >> act.txt
echo ==========斷線========== >> na.txt
@for /l %%i in (105,1,108) do @ping -n 2 -w 40 192.168.1.%%i& if errorlevel 1 (echo 192.168.1.%%i>>na.txt) else (echo 192.168.1.%%i>>act.txt)
cls
Echo 完成!!
@echo on
notepad act.txt & notepad na.txt

===================自上列起==================

樹莓派網路設定

  設定樹莓派的網路連線,主要可以分為有線(乙太網路) 和無線(Wi-Fi) 兩種方式。  無線網路設定通常需要編輯  wpa_supplicant.conf  檔案,設定Wi-Fi 的SSID 和密碼。  有線網路則可以設定靜態IP 或使用DHCP 。  無論哪種方式,設定完成...