sanmaoljh

sanmaoljh

0个粉丝

32

问答

0

专栏

0

资料

sanmaoljh  发布于  2017-11-07 18:51:11
采纳率 0%
32个问答
6845

hi3536+wifi模组ap6356s为什么速度这么慢?

 
环境:hi3536+Hi3536_SDK_V2.0.6.0+wifi模组ap6356s
问题:
现在移植完毕ap6356s的wifi模块
可以连接ap热点,ping 局域网wifi路由器ip  延时很大,理想情况应该是<1ms,但是实际是几百ms,为什么这么慢,现在想定位是哪里有问题?
示波器测量SDIO_CLK=50MHZ,  DATA0~DATA3都有数据变化,谢谢!



移植驱动包步骤bcmdhd.1.363.59.144.x.cn.tgz
1.关闭Makefile中的#-DENABLE_INSMOD_NO_FW_LOAD

2.添加ap6356s的设备id到driver中
{ SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM,0x4356) },

3.修改dhd_gpio.c,配置2个管脚,
ap6536s芯片引脚
WIFI_REG_ON                   I                 Low asserting reset for WiFi core (high-out of reset,low-reset)                                GPIO11_2
WL_HOST_WAKE             O                 WLAN to wake-up HOST                                                                                                                                                                                                        GPIO11_3
4.
设置好firmware路径
/opt/hdmeeting/script/wifitools # ls /system/etc/firmware/
fw_bcm4356a2_ag.bin  nvram.txt
/opt/hdmeeting/script/wifitools #





加载内核和启动网卡wlan0的打印log
/mnt/work/Hisilicon/driver/wifi # insmod bcmdhd.ko
dhd_module_init: in
======== dhd_wlan_init_plat_data ========
dhd_wlan_init_gpio: host_oob_irq_flags=0x414
dhd_wifi_platform_load: Enter
Power-up adapter 'DHD generic adapter'
wifi_platform_set_power = 1
======== PULL WL_REG_ON  HIGH! ========
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
bcmsdh_register: register client driver
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bus num (host idx)=0, slot num (rca)=1
found adapter info 'DHD generic adapter'
sdioh_attach: set sd_f2_blocksize 256
dhdsdio_probe : no mutex held. set lock
F1 signature read @0x18000000=0x17224356
F1 signature OK, socitype:0x1 chip:0x4354 rev:0x2 pkg:0x2
DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
dhd_conf_set_chiprev: chip=0x4354, chiprev=2
dhd_conf_set_conf_path_by_nv_path: config_path=/system/etc/firmware/config.txt
dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
wl_create_event_handler(): thread:wl_event_handler:4d2 started
tsk Enter, tsk = 0xcd261488
dhd_attach(): thread:dhd_watchdog_thread:4d3 started
dhd_attach(): thread:dhd_dpc:4d4 started
dhd_attach(): thread:dhd_rxf:4d5 started
dhd_deferred_work_init: work queue initialized
Dongle Host Driver, version 1.363.59.144.7 (r)
Register interface [wlan0]  MAC: 94:a1:a2:e4:e3:09

dhdsdio_probe : the lock is released.
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
dhd_module_init: Exit err=0
/mnt/work/Hisilicon/driver/wifi # ifconfig wlan0 up
dhd_open: Enter cf838800
dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
dhd_conf_set_fw_name_by_chip: firmware_path=/system/etc/firmware/fw_bcm4356a2_ag.bin
dhd_conf_set_bus_params: set use_rxchain 0
dhd_conf_set_bus_params: set txinrx_thres 128
dhd_conf_set_bus_params: set txglomsize 36
Final fw_path=/system/etc/firmware/fw_bcm4356a2_ag.bin
Final nv_path=/system/etc/firmware/nvram.txt
Final conf_path=/system/etc/firmware/config.txt
dhd_os_open_image: /system/etc/firmware/fw_bcm4356a2_ag.bin (555412 bytes) open success
dhd_os_open_image: /system/etc/firmware/nvram.txt (2840 bytes) open success
NVRAM version: AP6356S_NVRAM_V1.2_20170331
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
Disable tdls_auto_op failed. -1
dhd_conf_set_intiovar: set WLC_SET_BAND 142 0
dhd_preinit_ioctls: Set tcpack_sup_mode 1
Firmware up: op_mode=0x0005, MAC=94:a1:a2:e4:e3:09
dhd_conf_set_country: set country CN, revision 38
Country code: CN (CN/38)
dhd_conf_set_intiovar: set roam_off 1
dhd_conf_set_intiovar: set txbf 1
dhd_conf_set_intiovar: set WLC_SET_FAKEFRAG 219 1
Firmware version = wl0: Jun 16 2015 14:25:06 version 7.35.184.r1 (TOB) (r559293) FWID 01-b22ae69c
  Driver: 1.363.59.144.7 (r)
  Firmware: wl0: Jun 16 2015 14:25:06 version 7.35.184.r1 (TOB) (r559293) FWID 01-b22ae69c
dhd_txglom_enable: enable 1
dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0, txglom_bucket_size=0
dhd_conf_set_txglom_params: txglomsize=36, deferred_tx_len=36, bus_txglom=-1
dhd_conf_set_txglom_params: tx_in_rx=1, txinrx_thres=128, dhd_txminmax=-1
dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=0
sdioh_set_mode: set txglom_mode to multi-desc
dhd_conf_get_disable_proptx: fw_proptx=1, disable_proptx=-1
dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
dhd_conf_set_intiovar: set ampdu_hostreorder 1
dhd_pno_init: Support Android Location Service
wl_create_event_handler(): thread:wl_event_handler:4dc started
tsk Enter, tsk = 0xcd261488
dhd_open: Exit ret=0
/mnt/work/Hisilicon/driver/wifi #

============================================================





连接wifi路由器热点
/opt/hdmeeting/script/wifitools # ./connect_wifiAP.sh  TP-LINK_8D9C 123456789
dhd_open: Enter cf838800
wl_create_event_handler(): thread:wl_event_handler:513 started
tsk Enter, tsk = 0xcd261488
dhd_open: Exit ret=0
dhd_stop: Enter cf838800
dhd_set_mcast_list_handler: interface info not available/down
dhd_set_mcast_list_handler: interface info not available/down
dhd_set_mcast_list_handler: interface info not available/down
dhd_set_mcast_list_handler: interface info not available/down
dhd_set_mcast_list_handler: interface info not available/down
wl_event_handler: was terminated
wl_destroy_event_handler(): thread:wl_event_handler:513 terminated OK
CFGP2P-ERROR) wl_cfgp2p_disable_discovery :  do nothing, not initialized
CFGP2P-ERROR) wl_cfgp2p_deinit_priv : In
dhd_stop: Exit
wlan0     Interface doesn't support scanning : Network is down

passwd
rfkill: Cannot open RFKILL control devicdhd_open: Enter cf838800
e
wl_create_event_handler(): thread:wl_event_handler:51a started
tsk Enter, tsk = 0xcd261488
dhd_open: Exit ret=0
Connecting with ff:ff:ff:ff:ff:ff ssid "TP-LINK_8D9C", len (12) channel=11

CFG80211-ERROR) wl_cfg80211_disconnect : Reason 3
CFG80211-ERROR) wl_cfg80211_disconnect : Disconnecting from connecting device: 00:00:00:00:00:00
udhcpc (v1.20.2) started
Setting IP address 0.0.0.0 on wlan0
Sending discover...
CFG80211-ERROR) wl_cfg80211_connect : Force clear DISCONNECTING status!
Connecting with b0:95:8e:5b:8d:9c ssid "TP-LINK_8D9C", len (12) channel=11

Sending discover...
wl_bss_connect_done succeeded with b0:95:8e:5b:8d:9c
wl_bss_connect_done succeeded with b0:95:8e:5b:8d:9c
Sending discover...
No lease, forking to background
/opt/hdmeeting/script/wifitools # ./operatewifi.sh link
wlan0     IEEE 802.11abgn  ESSID:"TP-LINK_8D9C"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: B0:95:8E:5B:8D:9C   
         



===============================================================================





问题:???
ping 局域网wifi路由器ip  延时很大,理想情况应该是<1ms,现在想定位是哪里有问题,示波器测量SDIO_CLK=50MHZ,  DATA0~DATA3都有数据变化



/opt/hdmeeting/script/wifitools #
/opt/hdmeeting/script/wifitools # ping 172.16.151.5
PING 172.16.151.5 (172.16.151.5): 56 data bytes

--- 172.16.151.5 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
/opt/hdmeeting/script/wifitools # ping 192.168.1.5
PING 192.168.1.5 (192.168.1.5): 56 data bytes
64 bytes from 192.168.1.5: seq=0 ttl=64 time=48.899 ms
64 bytes from 192.168.1.5: seq=2 ttl=64 time=1700.830 ms
64 bytes from 192.168.1.5: seq=3 ttl=64 time=691.051 ms
64 bytes from 192.168.1.5: seq=4 ttl=64 time=770.829 ms
64 bytes from 192.168.1.5: seq=5 ttl=64 time=860.825 ms
64 bytes from 192.168.1.5: seq=6 ttl=64 time=950.827 ms
64 bytes from 192.168.1.5: seq=9 ttl=64 time=1280.825 ms
64 bytes from 192.168.1.5: seq=11 ttl=64 time=1370.825 ms
64 bytes from 192.168.1.5: seq=12 ttl=64 time=361.052 ms
64 bytes from 192.168.1.5: seq=13 ttl=64 time=450.824 ms
64 bytes from 192.168.1.5: seq=15 ttl=64 time=1030.789 ms
64 bytes from 192.168.1.5: seq=16 ttl=64 time=90.824 ms
64 bytes from 192.168.1.5: seq=17 ttl=64 time=20.868 ms
64 bytes from 192.168.1.5: seq=18 ttl=64 time=240.823 ms
64 bytes from 192.168.1.5: seq=19 ttl=64 time=330.824 ms
64 bytes from 192.168.1.5: seq=20 ttl=64 time=420.823 ms
64 bytes from 192.168.1.5: seq=21 ttl=64 time=500.823 ms
64 bytes from 192.168.1.5: seq=22 ttl=64 time=20.835 ms
64 bytes from 192.168.1.5: seq=23 ttl=64 time=230.824 ms
64 bytes from 192.168.1.5: seq=24 ttl=64 time=320.823 ms
64 bytes from 192.168.1.5: seq=25 ttl=64 time=410.822 ms
64 bytes from 192.168.1.5: seq=26 ttl=64 time=490.823 ms
64 bytes from 192.168.1.5: seq=27 ttl=64 time=580.822 ms
64 bytes from 192.168.1.5: seq=28 ttl=64 time=670.823 ms
64 bytes from 192.168.1.5: seq=29 ttl=64 time=760.823 ms
64 bytes from 192.168.1.5: seq=30 ttl=64 time=850.822 ms
64 bytes from 192.168.1.5: seq=33 ttl=64 time=280.823 ms
64 bytes from 192.168.1.5: seq=34 ttl=64 time=370.823 ms
64 bytes from 192.168.1.5: seq=35 ttl=64 time=1040.617 ms



我来回答
回答2个
时间排序
认可量排序

AOC

0个粉丝

19

问答

0

专栏

15

资料

AOC 2017-11-11 22:55:46
认可0
iptables 有用么?我发现这货会影响速度

qq42142951

0个粉丝

22

问答

3

专栏

21

资料

qq42142951 2018-04-20 17:53:00
认可0
MT7668SN双通道SDIO接口11ac级双频BT5.0蓝牙WiFi二合一模块,
尺寸封装15*13mm/LGA-50, 硬件兼容AP6356S
在OTT领域中的晶晨S905和海思Hi3716MV300平台,WiFi实测吞吐量不低于500Mbps
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区