#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <FS.h> // ã¢ã¼ãåãæ¿ããã³ const int MODE_PIN = 0; // GPIO0 // Wi-Fiè¨å®ä¿åãã¡ã¤ã« const char* settings = "/wifi_settings.txt"; // ãµã¼ãã¢ã¼ãã§ã®ãã¹ã¯ã¼ã const String pass = "thereisnospoon"; ESP8266WebServer server(80); /** * WiFiè¨å® */ void handleRootGet() { String html = ""; html += "<h1>WiFi Settings</h1>"; html += "<form method=
Raspberry Pi 3 Model BãPi Zero Wã«ã¯ç¡ç·LAN(WiFi)ãå èµããã¾ããããä½ããã®æ¹æ³ã§SSIDã¨ãã¹ãã¬ã¼ãºãè¨å®ããªãã¨ç¡ç·ã§ã®éä¿¡ã¯ã§ãã¾ããã 以åã«æ¸ããRaspberry Pi Zero Wã®ç¡ç·LANããã£ã¹ãã¬ã¤ããã¼ãã¼ããªãã§è¨å®ãã(æç·LANå©ç¨)ã¨ããè¨äºã§ã¯Raspberry Pi Zero Wã«USBã§ä¸æçã«æç·LANãã¼ããè¨ããããããæ¹ã§ããã£ã¹ãã¬ã¤ããã¼ãã¼ãã使ããã«SSIDã¨ãã¹ãã¬ã¼ãºãè¨å®ããæ¹æ³ãç´¹ä»ãã¾ãããããã¡ãã®è¨äºã®ã³ã¡ã³ãã§microSDã«ããããããã¡ã¤ã«ãä½æãã¦ãããã¨ã§ãç¡ç·LANã®è¨å®ãã§ããã¨ãããææãããã ãããã®æ¹æ³ãæ¤è¨¼ãã¦ã¿ã¾ããã®ã§ç´¹ä»ãããã¨æãã¾ãã (2017/10/01追è¨) ãã©ã¦ã¶ä¸ã§SSIDã¨ãã¹ãã¬ã¼ãºãå ¥åããã ãã§ç°¡åã«wpa_supplicant
ã©ãºãã¤åå¿è ã®ã¡ã¢ã§ãã 以ä¸ãããæã®ã¡ã¢ ååã¨å¨è¾ºæ©å¨ã®è³¼å ¥ SDã«ã¼ãã«OSã®æ¸ã込㿠起å SSHè¨å® WiFiè¨å® è²·ã£ããã® èªåã¯ç§èåã«è¡ã£ã¦è²ã ç¾å°èª¿éãã¦ãã¾ããã é販ã§ã売ã£ã¦ããã®ã§è²·ãå ´æã¯ã©ãã§ãè¯ããã¨æãã¾ãã RaspberryPi3ãWiFiã¤ãã¦ããã¨ããããæ°ãããã®ã®æ¹ãè¯ãã ããã¨ãããã¨ã§ããã MicroUSBã±ã¼ãã«ã®å é»å¨(2A)ãæ¬å½ã¯2.5Aæ¨å¥¨ãããã§ããããã¾ã2.5Aã®é»æºããªãã®ã§å¤§ä½ã®äººã¯2A使ã£ã¦ããã¿ããã§ããã¼ã¨åºå¡ããã¯è¨ã£ã¦ã¾ãã RaspberryPi3ã®ã±ã¼ã¹ãããã¯ã¾ãè²·ããªãã¦ãè¯ãã®ã§ãããåºç¤ããã®ã¾ã¾ç½®ãã®ã¯å人çã«æãã£ãã®ã§è³¼å ¥ã USBã±ã¼ãã«æ¥ç¶ã®ãã¼ãã¼ã USBã±ã¼ãã«æ¥ç¶ã®ãã¦ã¹ MicroSDã«ã¼ã8Gbyteãã¯ã©ã¹10ãå¿ è¦ã«å¿ãã¦ã¢ããã¿ã HDMIã±ã¼ãã« æ¢ã«ãã£ãã®ã§
ããã°ãã¯ã 話é¡ã®æ ¼å®æé©èªè¨¼æ¸ã¿ã®ESP-WROOM-02 (ãããã¯ESP8266)ãã¨Arduino UNO ã§ããã£ã¨ATã³ãã³ãWi-Fi éä¿¡ãã§ãã¾ããã æåã¯ã·ãªã¢ã«(UART)éä¿¡ããã§ããªãã¦ãæ éãã¨æã£ã¦æ¾ã£ããããã¦ãã®ã§ããã ãã¼ã¿ã·ã¼ãã¨ããã¥ã¢ã«ãããä¸åº¦è¦ç´ãã¦ãããããåºæ¥ã¾ããã®ã§ãå ±åãã¾ãã ããã®å¤§ããªãã¤ã³ãã¯é»æºå®¹éã§ããã ESP WROOM-02ãã¯é»æºã3.3Vã§ãã ã§ããããæåã¯Arduino UNOãã®3.3Vé»æºããåã£ã¦ãããã§ãã ã§ãããã·ãªã¢ã«(UART)éä¿¡ããã§ããªããã§ãã ATã³ãã³ãããããã·ãªã¢ã«ã¢ãã¿ã¼ã§å ¥åãã¦ãå ¨ç¶ãã¡ã§ããã ã·ãªã¢ã«ä¿¡å·ãï¼ï¼¶ããï¼ï¼ï¼ï¼¶ã«ãã¸ãã¯ã¬ãã«å¤æãã¦ããã¡ã§ããã é»æºèµ·åæã«ä¿¡å·ãåºã¦ããã®ã¯ç¢ºèªã§ããã®ã§ãããAï½ï½ï½ï½ï½ï½ããã®ä¿¡å·ãå ¨ç¶åãä»ãã¦ããã¾ãã
ESP-WROOM-02éçºãã¼ããArduino IDEã§éçºããæ¹æ³ âESP-WROOM-02éçºãã¼ããArduino IDEã§éçºããããã®æ¹æ³ãè¨ãã¾ãã 1.Arduino IDEã«ESP8266ãã¼ãã追å ãã¼ã¸ã§ã³ã1.6.Xç³»ã®Arduino IDEãç¨æãã¾ããä»åã¯1.6.7ã使ç¨ãã¾ããã(2016.02.01ç¾å¨ï¼ ã¾ããã¡ã¤ã«âç°å¢è¨å®ãéãã¾ãã Settingã¿ãå ã®Additional Boards Manager URLsã«æ¬¡ã®URLãå ¥åãã¾ãã âhttp://arduino.esp8266.com/stable/package_esp8266com_index.json 次ã«ããã¼ã«âãã¤ã³ã³ãã¼ãâãã¼ãããã¼ã¸ã£ã¼ãé¸æãã¾ãã esp8266ã¨ããé ç®ãããã¯ããªã®ã§ããã¼ã¸ã§ã³ãé¸æãã¦ã¤ã³ã¹ãã¼ã«ãã¿ã³ãæ¼ãã¾ãã ããã§ã¯ver 2
Raspberry Piã«USBç¡ç·LAN(Wifi)ãã³ã°ã«ãæ¿å ¥ãããã¨ã§ã Raspberry Piãç¡ç·åã§ãã¾ãã ãã¾ãå¤ãUSBç¡ç·LAN(Wifi)ãã³ã°ã«ã ã¨ã 使ããªã or è¨å®ãå¿ è¦ï¼ããã«ã¤ãã¦ã¯å¾æ¥å¥è¨äºã§ï¼ã«ãªãã¾ãã®ã§ã注æãã ã¾ããWifiã¯çµæ§é»åãæ¶è²»ããã®ã§ã é»æºã¯å°ãªãã¨ã1Aã®ãã®ã使ãã¾ãããã 100åãªã©ã§å£²ã£ã¦ããï¼200åã ã£ãï¼500mAã®ãã®ã ã¨ã é »ç¹ã«åæããããã¾ããããã«æ°ä»ãã®ã«æéããããã¾ããã»ã»ã»ã»ã /etc/network/interfaces ã®ç·¨é ã¾ãã/etc/network/interfaces ã以ä¸ã®ããã«ç·¨éãã¾ãã â DHCPã«ããIPå²ãå½ã¦ã®å ´å $ sudo vi /etc/network/interfaces auto lo iface lo inet loopback
以åãRASPBERRY PIã®WIFIãã·ã§ã«ã§è¨å®ããã«ã¯ãã§å°ã触ãã¾ãããã ã¡ãã£ã¨å¤ãWifiãã³ã°ã«ã ã¨ãRaspberry Piãèªèãã¦ããã¾ããã æå ã«ãã£ããPLANEX GW-USMicroNããã¾ãã«ã½ã¬ã§ããã PLANEX GW-USMicroNã¯ãRalinkTechnology RT2870ãã¨ãããããã®ããã§ã ãã®ããããèªèãããã¨ããæ¹æ³ã«ãªãã¾ãã Raspberry Piã§èªèãããã¨ããããDebianã§èªèãããæ¹æ³ã¨ããã»ããæ£ããããç¥ãã¾ããã æé ã¯ä¸è¨ã®éããgw-usmicron.confãã«è¨å®ãæ¸ãè¾¼ã¿ã¾ãã $ sudo vi /etc/modprobe.d/gw-usmicron.conf install rt2800usb /sbin/modprobe --ignore-install rt2800usb;
Raspbianã§GW-USmicroNã使ãããã®ã¡ã¢ã ååã®è¨äºã®ç¶ãã rt2800usbã®ã¤ã³ã¹ãã¼ã«(ãã ãã§ããã®ãä¸æ) ä»åã¯å½ããæ¹ãå¤ãã¦ãDebian USmicroNãã¨ãã§æ¤ç´¢ããã è¡è§ã®ãªããã¬ã¼: Debianã§ç¡ç·LANã¢ã¸ã¥ã¼ã«ã使ã Debian lennyã§GW-USMicroNã使ã: Out of sight, out of mind. ãã®çµæãã¡ããªã©ãåèã«ãæè¬ã GW-USmicroNã®ä¸ã«ä½¿ããã¦ããã®ã¯RalinkTechnologyã®RT2870ã¨ãããããã ããã§ã ãã®ãããã®åçªãDebianWikiã«ããã㨠http://wiki.debian.org/rt2870sta ã¨ãªããã俺ãã¤ã³ã¹ãã¼ã«ããRaspbianã¯Wheezyã§ã See rt2800usb for device support. ã¨ããã®ã§ãr
ã©ãããããã«ã¡ã¯ ããå°ãé »ç¹ã«æ¸ãããããæã£ããããªãã£ããã ãã¦å æ¥ãRaspberryPiãå±ããã®ã§ããã USBx2ã¨ãHDMIã100Mbpsã®LANããã¤ã³ã¿ã¼ãã§ã¼ã¹ãããã¾ããã èªå® ãµã¼ããªãã¬å¤ã§ä½¿ããµã¼ãçã«è§¦ã£ã¦ã¿ããã£ãã®ã§ãå½¼ã«ã¯ã©ããã¦ãè£ åãã¦ã»ããã£ããã®ãããã¾ãã ç¡ç·LAN 家ã«ããã®ã¯ãPlanexã®US-GW MicroNã¨ãããã®ã§ãããããã¤ãè£ åãã¦ã¿ããã¨æãã¾ãã ralink製ã®ãããã£ã½ãã§ãã2870ã£ã½ãã ã¨ããããRaspberryPiã«æ¿ãã¦ã¿ãã¨ããªãã¨ã¨ããããèªèã¯ããã¦ã¾ãã ãã®èª¿åã§ãUbuntuã§ä½¿ãçºã«ãã£ãè¨å®ã¨åãäºããã¦ã¿ãããã¨ã 大éã«sudoå©ãã®ããããªãã§ãã¾ãsudo suãã¦ããã¾ããã»ãã¨ã¯ããããã®ã¯ãããããªãã®ããªã ã¾ããaptã§ãfirmware-ralinkã¨ãwi
NintendoDSã®ã¾ããã¨ããããç¡ç·ã802.11ã§æå·åæ¹å¼ãWEPãªã¨ããã ããªããã¡ã¼ã ã¦ã§ã¢ã¢ãããã¼ãã§TKIP/AES対å¿ããªãã®ãï¼ã¨ããæè¦ãããã ãããã対å¿ã§ããã»ã©ã®ãã·ã³ãã¯ã¼ãæã£ã¦ããªãããã¨æ¨æ¸¬ãããã ãã¦ããã®ãããªç¶æ³ã«ããã¦ãPCã¨NintendoDSãç¡ç·ã§åæã«ãããã¯ã¼ã¯ã«æ¥ç¶ããããå ´åãæãé©åãªè§£ã¯ãªãã ãããï¼ ä¸è¬çã«11b/gåææ¥ç¶å¯è½ãªAPã«ã11b端æ«ã¨11g端æ«ãæ··å¨ããã¦ãåæã«æ¥ç¶ããã¨11gå´ã®é度ã¯èããä½ä¸ãããã¾ããæå·åæ¹å¼ã¯ã¬ãã«ã®ä½ãã»ãã«ããããå¿ è¦ããããããWEPã«ããªããã°ãªãããã»ãã¥ãªãã£ã®ã¬ãã«ã¯èããè½ã¡ãã æãç¾å®çãªè§£ã¨ãã¦å¾ãããã®ã¯ã以ä¸ã®æ¹å¼ã ã ï¼1ï¼11a/b/gåææ¥ç¶å¯è½ãªç¡ç·ã«ã¼ã¿è³¼å ¥ãï¼WR7850Sã¨ãï¼PCã¯11aæ¥ç¶ãDS/PSPã¯11b/gã§æ¥ç¶ãã ï¼2
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}