open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.83k stars 647 forks source link

ap-client-two-sdr #297

Closed Fei8686 closed 1 year ago

Fei8686 commented 1 year ago

Hi, Thank you very much for providing this project of openwifi-v1.4.0, it helps a lot during my study. I am experimenting with a zc706_fmcs2 board.The image file I use is “openwifi-1.4.0-notter.img”.

In the app_notes,I noticed that you have proposed a test process related to interconnection with two boards(app_notes/ap-client-two-sdr.md). However, there seems to be a problem with the network.server running on the "client board".

Failed to stop network-manager.service: Unit network-manager.service not loaded.

Module Size Used by mac80211 565248 0 libarc4 16384 1 mac80211 xilinx_dma 28672 0 ad9361_drv 163840 1 cfg80211 319488 1 mac80211 8021q 24576 0 mwipcore 16384 0 mwipcore_iio_streaming 16384 1 mwipcore mwipcore_dma_streaming 20480 1 mwipcore mathworks_ip_common 16384 1 mwipcore ipv6 397312 30 TARGET_DIR ./ DOWNLOAD_FLAG 0 test_mode 0 tx_offset_tuning_enable 0 $TARGET_DIR is found!

hostapd: no process found dhcpd: no process found sdr0: ERROR while getting interface flags: No such device rmmod: ERROR: Module sdr is not currently loaded ./load_fpga_img.sh: line 14: warning: command substitution: ignored null byte in input xlnx,zynq-7000 .//system_top.bit.bin system_top.bit.bin

root@analog:~/openwifi# wpa_supplicant -i sdr0 -c wpa-openwifi.conf Successfully initialized wpa_supplicant nl80211: deinit ifname=sdr0 disabled_11b_rates=0 sdr0: CTRL-EVENT-TERMINATING



- This indicates that both AP and client have been successfully started, and the openwifi information of AP can be scanned on the client side, but AP and client cannot be connected.

Could you help me to solve the problem of how to connect with two boards?

Thanks,
The shy
JiaoXianjun commented 1 year ago

Maybe it is due to that I add password in the hostapd configuration file. You can use this one to replace the hostapd configuration file on board: https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi.conf

Fei8686 commented 1 year ago

I have checked the hostapd configuration file(hostapd-openwifi.conf). But the content of the file on board is the same as what you provided.

May I ask if the reason why the board cannot be associated is that the network-manager.service was not successfully loaded? ------------------ 原始邮件 ------------------ 发件人: "open-sdr/openwifi" @.>; 发送时间: 2023年4月7日(星期五) 下午4:24 @.>; @.**@.>; 主题: Re: [open-sdr/openwifi] ap-client-two-sdr (Issue #297)

Maybe it is due to that I add password in the hostapd configuration file. You can use this one to replace the hostapd configuration file on board: https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi.conf

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Fei8686 commented 1 year ago

I have already solved this problem. I replaced the content in the hostapd-openwifi-11ag.conf file to the code you provided, and the two boards were successfully connected.

Thank you so much!