Cov txheej txheem:

PmodWiFi FPGA Tsav Tsheb: 9 Kauj Ruam
PmodWiFi FPGA Tsav Tsheb: 9 Kauj Ruam

Video: PmodWiFi FPGA Tsav Tsheb: 9 Kauj Ruam

Video: PmodWiFi FPGA Tsav Tsheb: 9 Kauj Ruam
Video: PmodESP32 introduction 2024, Kaum ib hlis
Anonim
PmodWiFi FPGA Tsav Tsheb
PmodWiFi FPGA Tsav Tsheb

Nov yog Cov Lus Qhia rau cov uas xav siv Pmod WiFi ua ke nrog FPGA pawg thawj coj.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv
  1. FPGA board (Arty 7 hauv qhov no)
  2. Pmod WiFi
  3. Xilinx Vivado (2016.3 hauv qhov no)
  4. Wireless Router (rau kev sim)
  5. ChipKit pawg thawj coj loj (rau kev sim) - Yeem tau
  6. Logic Analyzer (rau kev sim) - Yeem tau

Kauj ruam 2: Rub tawm thiab Nruab Vivado

Ib qhov txuas tau muab ntawm no.

Kauj Ruam 3: Teeb Kho Vajtse thiab Txwv

Txuas Pmod WiFi mus rau Pmod txuas ntawm FPGA pawg thawj coj loj. Pmod txuas xaiv tau cuam tshuam rau cov ntaub ntawv txwv.

Txhais cov ntaub ntawv txwv kom tsim nyog rau koj pawg FPGA (piv txwv li,.xdc cov ntaub ntawv rau Arty board). Pmod WiFi cov ntaub ntawv tswm ciab nyob ntawm no.

Kauj Ruam 4: Txheeb xyuas SPI.vhd Module

Pmod WiFi siv SPI kev sib txuas lus. Txhawm rau tsim kev sib txuas lus kom raug, yuav tsum muaj tus lej SPI.

Kauj Ruam 5: Txoj Kev Siv

Vim qhov tseeb tias Pmod WiFi tsis muaj API los piav qhia nws cov haujlwm, ob txoj hauv kev los siv Pmod WiFi tsav tsheb muaj. Txoj hauv kev yooj yim tshaj plaws yog ua raws API, uas yuav piav qhia thaum kawg ntawm kev ua tiav ntawm txoj haujlwm no.

Lwm txoj hauv kev yuav yog thim rov qab tus kws tsav tsheb ua ntej, raws li tau ua tiav hauv Cov Lus Qhia no. Muaj tus lej tsav tsheb muaj nyob rau xyoo 2016, txhua qhov ua tiav nyob rau sab saum toj ntawm PIC32 microcontroller. Txhawm rau thim rov qab tus kws tsav tsheb ua ntej, ib tus yuav xav tau PIC32 microcontroller (ChipKit board hauv qhov no) thiab tus kws tshuaj xyuas qhov laj thawj.

Cov lus piav qhia luv ntawm MRF24WG cov npe tuaj yeem pom ntawm no.

Cov vis dis aus qhia txog ChipKit Pmod WiFi kev sib txuas lus tuaj yeem pom ntawm no.

Kauj Ruam 6: Ua raws li WiFi Scan Function

WiFi scan muaj nuj nqi tshuaj xyuas kom muaj WiFi tes hauj lwm thiab xa lawv mus rau tus tswv tsev. Nov yog thawj kauj ruam tsim nyog txhawm rau txuas mus rau lub network thiab pib sib tham.

Kauj Ruam 7: Txhim Kho WiFi Txuas Ua Haujlwm

WiFi txuas ua haujlwm tsim kev sib txuas - qhib (tsis muaj kev nyab xeeb) lossis muaj kev nyab xeeb (piv txwv li WPA2) nruab nrab ntawm Pmod WiFi thiab lub wireless router. Lwm qhov tsis tseem ceeb tau sawv cev los ntawm SSID thiab hom kev sib txuas (kev hloov pauv lossis ad-hoc).

Kauj Ruam 8: Kev Xa Ntawv TCP/IP

TCP/IP pob ntawv xa mus yuav tsum muaj lub qhov (socket) tus IP (chaw nyob IP thiab TCP chaw nres nkoj). Kev xa xov TCP/IP tsuas tuaj yeem paub tom qab ua tiav kev sib txuas.

Kauj Ruam 9: Txais Txais TCP/IP

Txhawm rau ua tiav qhov tau txais TCP/IP pob ntawv, ib tus yuav tsum qhib lub qhov (socket) ntawm tus tswv tsev.

Pom zoo: