> For the complete documentation index, see [llms.txt](https://openwrt-nctu.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openwrt-nctu.gitbook.io/project/openwrt-hardware/hardware-spec.md).

# 測試硬體與功能列表

## 天線的規格與介面

一般來說，在 WiFi AP上天現有兩個介面:

* IPX (0-6 GHz)，多用於 WiFi、GPS 接頭可以參考

{% embed url="<https://en.wikipedia.org/wiki/Hirose_U.FL>" %}

![IPX接頭以及轉成SMA的接線](/files/-LNeXmfGrn2D4yM-tQ68)

* SMA (0-18 GHz)，通常作為外加天線的接頭，可以參考:

{% embed url="<https://en.wikipedia.org/wiki/SMA_connector>" %}

## GL-iNet (GL-AR300M)

GL-iNet 產品的主要特色即是在於其原生支援 OpenWRT 系統，並在其電路板上預留腳位供開發者進行一些額外功能的開發。而此公司的定位也非一般的網通廠，而轉型以 IoT 為主，其目標客群為利用小型 WiFi 裝置進行網路分享的開發者。

這樣的定位其實有一些奇怪，畢竟，現在手機和筆電都可以作為 WiFi 熱點，為什麼我們需要一個額外的 WiFi 分享器呢? 可能的應用情境大概有像是轉介旅館的有線網路、將 WiFi AP 附加儲存裝置作為無線檔案分享、以及提供加密的無線網路接取。不論如何，由於其產品定位，該公司生產的裝置體型通常不大，也不是以提供覆蓋範圍為目標。

GL-AR300M 是我們接觸的第一款該公司產出的 WiFi AP，內建即為 Chaos Calmer 的 OpenWRT 版本，所做的修改集中於網頁介面，不過也可以切回 OpenWRT 原生的 LuCi 介面。以下是這個 WiFi AP 的功能列表:

| SPEC            |                    |
| --------------- | ------------------ |
| CPU             | QCA9531 @650MHz    |
| RAM             | DDR2 128 MB        |
| 2.4G NIC        | QCA9531            |
| FLASH (ROM)     | 16MB + 128MB       |
| Frequency       | 2.4GHz             |
| Support         | 802.11 b/g/n       |
| DIY Features    | UART, I2C, 4 GPIOs |
| Antenna         | 2 (external, SMA)  |
| OpenWRT version | Chaos Calmer       |

![AR300M pinout](/files/-LNeZmh3uz-qj43Cg-FL)

## GL-iNet (GL-AR750S)

為了觀察 5GHz 上的通道特性，我們也購買另一塊 GL-iNet 的 WiFi AP，也就是 GL-AR750S，此WiFi AP支援 802.11ac，其規格如下:

| SPEC            |                                  |
| --------------- | -------------------------------- |
| CPU             | QCA9563 @775MHz                  |
| RAM             | DDR2 128 MB                      |
| 2.4G NIC        | QCA9563                          |
| 5G NIC          | QCA9887                          |
| FLASH (ROM)     | 16MB + 128MB                     |
| Frequency       | 2.4GHz (2 ant.) + 5 GHz (1 ant.) |
| Support         | 802.11 b/g/n/ac                  |
| DIY Features    | UART, I2C, 4 GPIOs               |
| Antenna         | 2 (IPX)                          |
| OpenWRT version | 18.06                            |

![AR750S pinout](/files/-LNeZPDFjao16LXuNcVq)

## 小米路由器3 (R3)

考慮到 GL-iNet 的裝置在天線設計上的缺陷 (2.4GHz 和 5 GHz 共模且天線增益只有 2dBi)，我們購買了一台小米路由器3進行測試。小米路由器的開發即是基於 OpenWRT，因此，理論上我們也可以直接存取其作業系統並開發附加的功能。當然，事情總是不會總是順利，我們將小米路由器3的測試以及設定紀錄於[另一頁面](/project/openwrt-hardware/mi-3-for-openwrt.md)。

| SPEC            |                                  |
| --------------- | -------------------------------- |
| CPU             | Ralink MT7620A @580MHz           |
| RAM             | DDR2 128 MB                      |
| FLASH (ROM)     | 128MB (NAND)                     |
| Frequency       | 2.4GHz (2 ant.) + 5 GHz (2 ant.) |
| Support         | 802.11 b/g/n/ac                  |
| DIY Features    | UART                             |
| Antenna         | 4 (IPX)                          |
| OpenWRT version | breaker barrier                  |

![小米路由器3 (R3)](/files/-LObhbUbgMEzfJgrN86c)

## 測試功能列表

以下為我們在 OpenWRT 上所測試的功能，有一些功能只在其中一台 AP 上進行測試，不過，移植應該是沒有問題。由於小米路由器在許多功能上並不支援，詳見[小米路由器3的設定與測試](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/liu-xiao-mi-lu-you-qi-3-de-ding)，因此我們之後的實驗以 GL-AR300M 和 GL-AR750S 為主，項目連結可以直接指到本書的章節，之後若有新增的功能也會一併更新於此列表。

| Functions                                                                                                                | AR300M | AR750S      |
| ------------------------------------------------------------------------------------------------------------------------ | ------ | ----------- |
| [Cross Compiler](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/cross-compiler-yi)           | CC     | 18.06       |
| [Monitoring Interface ](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/er-ka-qu-de-rssi)     | V      | V           |
| [Collecting RSSI Values ](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/er-ka-qu-de-rssi)   | V      | V           |
| [Associated Devices](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/san-wifi-de-ding-iw)     | V      | V           |
| [Changing the MCS Mode ](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/san-wifi-de-ding-iw) | V      | V (802.11n) |
| [Packet Error Rate](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/san-wifi-de-ding-iw)      | --     | V           |
| [GPIO Testing ](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/si-gpio-de-cun-qu)            | V      | V (3/4)     |
| [I2C testing](https://openwrt-nctu.gitbook.io/project/~/edit/drafts/-LOn3ZtmbEt1VyLLDNyS/wu-i2c-de-cao-zuo)              | --     | V           |
