{"id":2203,"date":"2016-05-29T23:56:25","date_gmt":"2016-05-29T14:56:25","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=2203"},"modified":"2016-05-29T23:56:25","modified_gmt":"2016-05-29T14:56:25","slug":"post-2203","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2016\/05\/29\/post-2203.html","title":{"rendered":"WiFi RTL8188CUS \u306e\u30e1\u30e2"},"content":{"rendered":"
WiFi \u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30e1\u30e2\u66f8\u304d\u3002<\/p>\n
Junk\u7bb1\u3092\u6574\u7406\u3057\u3066\u3044\u305f\u3089\u3001WIFI USB \u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u305d\u308c\u306e\u8a8d\u8b58\u3055\u305b\u308b\u30e1\u30e2\u3002<\/p>\n
<\/p>\n
OS \u306f ARMBIAN\u3002<\/p>\n
# uname -a\nLinux orangepipc 3.4.112-sun8i #30 SMP PREEMPT Sat Apr 30 19:49:10 CEST 2016 armv7l GNU\/Linux<\/pre>\nUSB \u3092\u5dee\u3057\u8fbc\u3093\u3067\u3001lsusb \u3092\u3057\u305f\u3068\u304d\u306e\u578b\u756a\u306f\u4ee5\u4e0b<\/p>\n
# lsusb | grep RTL8188CUS\nBus 003 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter<\/pre>\n\u3067\u3001kernel \u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u4ee5\u4e0b\u304c\u3042\u308c\u3070\u3044\u3044<\/p>\n
# find \/lib\/modules -name 8192cu*\n\/lib\/modules\/3.4.112-sun8i\/kernel\/net\/wireless\/8192cu.ko<\/pre>\n\u3053\u3093\u306a\u611f\u3058\u3067\u30ed\u30fc\u30c9\u3055\u305b\u3066\u304a\u304f<\/p>\n
---- \/etc\/modules\n#8189es\n8192cu\ngpio_sunxi\nw1-sunxi\nw1-gpio\n#w1-therm\n#gc2035<\/pre>\n\u7701\u96fb\u529b\u30e2\u30fc\u30c9\u3092\u5207\u3063\u3066\u304a\u304f\u3068\u30d7\u30c1\u5207\u308c\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u6a21\u69d8<\/p>\n
---- \/etc\/modprobe.d\/8192cu.conf \noptions 8192cu rtw_power_mgnt=0 rtw_enusbss=0<\/pre>\n\u3053\u306e\u3042\u305f\u308a\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u6a21\u69d8\u3002<\/p>\n
# cat \/sys\/module\/8192cu\/parameters\/rtw_power_mgnt\n0<\/pre>\n\u3042\u3068SSID\u3068PW\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u3067\u4f5c\u6210<\/p>\n
wpa_passphrase "SSID" "PASSWORD" > \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/pre>\nIP\u56fa\u5b9a\u306b\u3057\u3066\u304a\u304f\u5834\u5408\u3001<\/p>\n
---- \/etc\/network\/interfaces\n::\nauto wlan0\nallow-hotplug wlan0\niface wlan0 inet static\naddress 192.168.1.5\nnetmask 255.255.255.0\ngateway 192.168.1.1\nwpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/pre>\n\u63a5\u7d9a\u306e\u72b6\u614b\u78ba\u8a8d\u3001SSID \u306e\u30b9\u30ad\u30e3\u30f3\u306f\u4ee5\u4e0b<\/p>\n
# iwlist wlan0 scan\nwlan0 Scan completed :\n Cell 01 - Address: 90:84:0D:**:**:**\n ESSID:"JunkHackAP"\n Protocol:IEEE 802.11bgn\n Mode:Master\n Frequency:2.437 GHz (Channel 6)\n Encryption key:on\n Bit Rates:144 Mb\/s\n Extra:wpa_ie=*************\n IE: WPA Version 1\n Group Cipher : TKIP\n Pairwise Ciphers (1) : TKIP\n Authentication Suites (1) : PSK\n Extra:rsn_ie=*************\n IE: IEEE 802.11i\/WPA2 Version 1\n Group Cipher : TKIP\n Pairwise Ciphers (2) : CCMP TKIP\n Authentication Suites (1) : PSK\n Quality=89\/100 Signal level=8\/100 <\/pre>\n\u4ed6\u30db\u30b9\u30c8\u304b\u3089ping <\/p>\n
$ ping -c 10 192.168.1.5\nPING 192.168.1.5 (192.168.1.5): 56 data bytes\n64 bytes from 192.168.1.5: icmp_seq=0 ttl=64 time=131.314 ms\n64 bytes from 192.168.1.5: icmp_seq=1 ttl=64 time=150.921 ms\n64 bytes from 192.168.1.5: icmp_seq=2 ttl=64 time=174.333 ms\n64 bytes from 192.168.1.5: icmp_seq=3 ttl=64 time=201.884 ms\n64 bytes from 192.168.1.5: icmp_seq=4 ttl=64 time=122.028 ms\n64 bytes from 192.168.1.5: icmp_seq=5 ttl=64 time=141.495 ms\n64 bytes from 192.168.1.5: icmp_seq=6 ttl=64 time=169.318 ms\n64 bytes from 192.168.1.5: icmp_seq=7 ttl=64 time=187.959 ms\n64 bytes from 192.168.1.5: icmp_seq=8 ttl=64 time=112.811 ms\n64 bytes from 192.168.1.5: icmp_seq=9 ttl=64 time=131.375 ms\n\n--- 192.168.1.5 ping statistics ---\n10 packets transmitted, 10 packets received, 0.0% packet loss\nround-trip min\/avg\/max\/stddev = 112.811\/152.344\/201.884\/28.245 ms<\/pre>\n\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u3088\u308a100ms \u306f\u9045\u3044\u3067\u3059\u3002\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u307e\u305f\u4eca\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
WiFi \u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30e1\u30e2\u66f8\u304d\u3002 Junk\u7bb1\u3092\u6574\u7406\u3057\u3066\u3044\u305f\u3089\u3001WIFI USB \u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u305d\u308c\u306e\u8a8d\u8b58\u3055\u305b\u308b\u30e1\u30e2\u3002 OS \u306f ARMBIAN\u3002 # uname -a Linux orangepipc 3 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[57,60,79],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"WiFi \u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30e1\u30e2\u66f8\u304d\u3002 Junk\u7bb1\u3092\u6574\u7406\u3057\u3066\u3044\u305f\u3089\u3001WIFI USB \u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u305d\u308c\u306e\u8a8d\u8b58\u3055\u305b…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2203"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=2203"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2203\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=2203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=2203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=2203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}