快速瀏覽

如何製作 DIY WiFi Shield


 

您可以製作自己的WiFi盾牌!
只需準備某種類型的元件,如電阻器和電容器。

AND ODROID 板和 SDIO 接口支持 WiFI 芯片。:)


聯繫

 J2 的引腳編號標籤
3V313V3
地線6地線
CN3GPIOX_17
RST5GPIOX_18
D016GPIOX_0
D118GPIOX_1
D222GPIOX_2
D311GPIOX_3
時鐘13GPIOX_4
指令7GPIOX_5



此測試 WiFI Shield 由tobetter 製造。:)

構建和配置

在使用 esp8089 內核驅動之前,您必須將 esp8089 模塊安裝到 ODROID-C4 Board。-如何安裝模塊
您必須將 esp8089.dtbo 文件複製到 /media/boot/amlogic/overlays/odroidc4/。

編輯 config.ini 文件以在啟動時應用 dtbo 文件。

$ vi  / media / boot / config.ini
...
; Device Tree Overlay
overlay_resize=16384
overlay_profile=
overlays="spi i2c1 uart0 esp8089"
 
[overlay_custom]
...

修改config.ini文件後,請重啟ODROID板。

插入模塊

您可以插入 esp8089 模塊。

$ modprobe esp8089 [eagle_path=(path) esp_enable_gpio=(enable_gpio_num, default 493) esp_reset_gpio=(reset gpio num, default 494)]

打開wifi並連接到AP。

$ nmcli radio wifi on
$ nmcli dev wifi list
IN-USE  BSSID              SSID                         MODE   CHAN  RATE        SIGNAL  BARS  SECURITY
        DE:AD:BE:EF:BE:EF  SSID_1                       Infra  2     270 Mbit/s  100     ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_2                       Infra  11    195 Mbit/s  100     ▂▄▆█  WPA1 WPA2
*       DE:AD:BE:EF:BE:EF  SSID_3                       Infra  13    270 Mbit/s  100     ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_4                       Infra  1     270 Mbit/s  94      ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_5                       Infra  4     270 Mbit/s  90      ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_6                       Infra  6     270 Mbit/s  90      ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_7                       Infra  7     270 Mbit/s  90      ▂▄▆█  WPA2
        DE:AD:BE:EF:BE:EF  SSID_8                       Infra  8     270 Mbit/s  74      ▂▄▆_  WPA2
$ nmcli dev wifi con 'TARGET_AP_ID' password 'P/W of TARGET_AP'

檢查連接信息。

$ ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.30.84  netmask 255.255.255.0  broadcast 192.168.30.255
        inet6 dead::beef:dead:beef:1234  prefixlen 64  scopeid 0x20<link>
        inet6 dead::beef:dead:beef:1234  prefixlen 64  scopeid 0x20<link>
        inet6 dead::beef:dead:beef:1234  prefixlen 64  scopeid 0x20<link>
        ether DE:AD:BE:EF:BE:EF  txqueuelen 1000  (Ethernet)
        RX packets 53  bytes 13882 (13.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17  bytes 2354 (2.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
or
$ ip addr
...
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether DE:AD:BE:EF:BE:EF brd ff:ff:ff:ff:ff:ff
    inet 192.168.30.84/24 brd 192.168.30.255 scope global dynamic noprefixroute wlan0
       valid_lft 7012sec preferred_lft 7012sec
    inet6 dead::beef:dead:beef:1234/64 scope link dadfailed tentative noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 dead::beef:dead:beef:1234/64 scope link dadfailed tentative noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 dead::beef:dead:beef:1234/64 scope link dadfailed tentative noprefixroute 
       valid_lft forever preferred_lft forever
快速瀏覽

ODROID-C4

四核ARM CORTEX-A55 |4GB RAM |4 USB3 PORTS