全志平台Tina系统8723ds wifi天线调试
在有的方案中wifi部分由模组贴片换成了chip on board(COB),由于使用的天线由s1切换到了s0,因此,在使用WIFI和BT前,需要进行efuse设置。
设置前需确保固件编译了rtwpriv这程序,如果没有选可以在make menuconfig里选上。
进行设置前需要先打开wifi:ifconfig wlan0 up
把天线的map设置为11:
root@TinaLinux:/# rtwpriv wlan0 efuse_set wmap,c3,11
wlan0 efuse_set:WiFi write map compare OK
rtwpriv wlan0 efuse_get realmap
看一下此时的map,会发现0xc30 的3写成了11:
X
root@TinaLinux:/# rtwpriv wlan0 efuse_get realmap
wlan0 efuse_get:
0x00 29 81 00 7C E1 88 07 00 A0 04 EC 35 12 C0 A3 D8
0x10 23 22 22 23 23 23 24 24 23 25 25 10 FF FF FF FF
0x20 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x30 FF FF FF FF FF FF FF FF FF FF 22 22 22 22 22 22
0x40 21 21 21 21 21 02 FF FF FF FF FF FF FF FF FF FF
0x50 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x80 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x90 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0xa0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0xb0 FF FF FF FF FF FF FF FF 20 31 23 00 00 00 FF FF
0xc0 FF 29 20 11 00 00 00 FF 00 FF 11 FF FF FF FF FF
0xd0 3E 10 01 12 23 FF FF FF 20 04 4C 02 23 D7 21 02
0xe0 0C 00 22 04 00 08 00 32 FF 21 02 0C 00 22 2A 01
0xf0 01 00 00 00 00 00 00 00 00 00 00 00 02 00 FF FF
0x100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110 00 EB 00 6E 01 00 00 00 00 FF 10 A4 BE 17 C4 A4
0x120 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x130 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x140 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x150 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x160 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x170 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x180 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x190 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1a0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1b0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1c0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1d0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1e0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x1f0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
重启生效。
扫描一下wifi看附件wifi的信号:
root@TinaLinux:/# wifi_scan_results_test
ctrl_interface != /etc/wifi/sockets
WiFi on success!
It has no wifi auto connect when wifi on!
*********************************
***Start scan!***
*********************************
update scan results enter
NETWORK NOT FOUND 1 times!
******************************
Wifi scan: Success!
******************************
bssid / frequency / signal level / flags / ssid
00:4b:f3:03:1c:e4 2472 -63 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] Aw-Wifi-01
e4:d3:32:45:3e:9e 2412 -70 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] Aw-Wifi-02
34:bd:f9:f0:fa:bc 2412 -84 [WPA-PSK-CCMP+TKIP][ESS] Aw-Wifi-03
94:d9:b3:4d:f7:13 2437 -85 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] Aw-Wifi-04
50:64:2b:9c:b4:ad 2452 -89 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] Aw-Wifi-05
0114:75:90:82:90:4e 2437 -91 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] Aw-Wifi-06
******************************
Wifi get_scan_results: Success!
******************************
c3设置成10:
看一下此时的map:
如果有时候默认设置c3是51,就会由于天线没设置对导致信号较差: