open-sdr / openwifi

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

SDR frequency #98

Closed c2013hl closed 2 years ago

c2013hl commented 2 years ago
  1. Could you send email to xianjun.jiao@ugent.be to introduce your self? From Lee - c2013hl@gmail.com: Hi, I am looking to do some experiments with SDR using openwifi on Analog Device ADRV9361-Z7025 hardware. Mainly to understand the flexibility of the hardware with openwifi.

  2. Our image is used directly or you build your own image? will need to build own image with slight modification. currently trying to experiment with TX and RX frequency variations

  3. What is your own modification? Would you give some advice how I can change openwifi to different frequency band. in driver file: hw_def.h, it listed 900MHz to 60GHz. How can I change the band for openwifi to 900MHz or 2.4GHz? It's currently default to 5GHz.

  4. Versions: OS, Vivado, openwifi/openwifi-hw repo branch and commit revision OS - ADI Linux; Vivado 2018.3 same as openwifi, openwifi from main branch

  5. Board/hardware type ADRV9361-Z7035 from ADI

  6. WiFi channel number tx 1a, rx 1a

  7. Steps to reproduce the issue, and the related error message, screenshot, etc No issue. The change is intended for experimentation

  8. Describe your debug efforts by Linux native tools, such as tcpdump and "cat /proc/interrupts" Not applicable.

  9. Describe your debug efforts by: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#Debug-methods Read hardware and software code on openwifi

  10. Any other thing we need to know for helping you better? no.

JiaoXianjun commented 2 years ago

Hello,

In the https://github.com/open-sdr/openwifi#quick-start , we use https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi.conf or https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi-11ag.conf to configure the AP's channel. But currently we only test in 5GHz. Not sure in 2.4GHz how good/bad it is.

Regarding changing the actual working frequency to the non-standard WiFi channels, we never try this. But I think it is doable by yourself, after you understand the whole frequency setting mechanism as we explained: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#regulation-and-channel-config

c2013hl commented 2 years ago

thank you for your reply. i will look at the info you suggested. if tested successfully, I will contribute an application note.

On Sun, Sep 12, 2021, 1:47 PM Jiao Xianjun @.***> wrote:

Hello,

In the https://github.com/open-sdr/openwifi#quick-start , we use https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi.conf or https://github.com/open-sdr/openwifi/blob/master/user_space/hostapd-openwifi-11ag.conf to configure the AP's channel. But currently we only test in 5GHz. Not sure in 2.4GHz how good/bad it is.

Regarding changing the actual working frequency to the non-standard WiFi channels, we never try this. But I think it is doable by yourself, after you understand the whole frequency setting mechanism as we explained: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#regulation-and-channel-config

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-917707587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UQSSUATO2P2AMSJSHLUBUGXDANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JiaoXianjun commented 2 years ago

Good. Looking forward to your result.

c2013hl commented 2 years ago

We tried to change the frequency on the 2 SDR boards (ADRV9361-Z7035) but no luck. echo, sync, cat does show the correct frequency setting.

However, The default frequency is 5.2GHz for openwifi. We changed the TX/RX LO of both the Access Point and Client to 2.4GHz then apply the instructions from ap-client-two-sdr.md apnote. When the client node tries to "iwlist sdr0 scan" or run "wpa_supplicant -i sdr0 -c wpa-openwifi.conf", the client only uses 5.2GHz frequency and does not use 2.4GHz. We did try to change the .conf file but no luck.

Would you give us some advice. Thank you.

On Mon, Sep 13, 2021 at 12:42 AM Jiao Xianjun @.***> wrote:

Good. Looking forward to your result.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-917926303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6URAPQRPWORIF7AJOUTUBWTNLANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JiaoXianjun commented 2 years ago

If you could share us the dmesg log, we can take a look.

c2013hl commented 2 years ago

Thank you for the response. We are able to set frequency to 2.4GHz now. 5.2G and 2.4G seems to work. We're trying some other frequencies. It looks like we need to change the device driver to be able to support other frequencies.

On Thu, Sep 30, 2021 at 12:37 AM Jiao Xianjun @.***> wrote:

If you could share us the dmesg log, we can take a look.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-930943205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UXTRLJFKEH4HGKNUG3UEQHVJANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

c2013hl commented 2 years ago

We tried some other frequencies different than the standard 5G and 2.4G (for example: 3GHz or 900MHz) would you advise what we need to change in the driver to support this kind of setting and scanning? Also which part of the driver supports 'iwlist scan" function? Would you help to point us to the code files that may be responsible for doing the scan?

On Fri, Oct 1, 2021 at 8:33 AM Chi Lee @.***> wrote:

Thank you for the response. We are able to set frequency to 2.4GHz now. 5.2G and 2.4G seems to work. We're trying some other frequencies. It looks like we need to change the device driver to be able to support other frequencies.

On Thu, Sep 30, 2021 at 12:37 AM Jiao Xianjun @.***> wrote:

If you could share us the dmesg log, we can take a look.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-930943205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UXTRLJFKEH4HGKNUG3UEQHVJANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JiaoXianjun commented 2 years ago

Hello,

All frequency setting related HW SW blocks are explained here: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#Analog-and-digital-frequency-design

You need to figure out and try to change related files.

After you run "iwlist scan", you can run "dmesg" to see those printing messages (you will see openwifi is switching channels one by one). Then search those printing messages in the sdr.c, you will find out which functions are called to do the frequency scanning.

c2013hl commented 2 years ago

The AD9361 has a FastLock mode. Is this used in OpenWifi? Would you give some advice how to configure FastLock mode and test it?

On Fri, Oct 8, 2021 at 6:45 AM Jiao Xianjun @.***> wrote:

Hello,

All frequency setting related HW SW blocks are explained here: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#Analog-and-digital-frequency-design

You need to figure out and try to change related files.

After you run "iwlist scan", you can run "dmesg" to see those printing messages (you will see openwifi is switching channels one by one). Then search those printing messages in the sdr.c, you will find out which functions are called to do the frequency scanning.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-938656083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UT6W7BDWZNTYNPQDRTUF3YY7ANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JiaoXianjun commented 2 years ago

We never try that. Sorry.

JiaoXianjun commented 2 years ago

If no further question, I will close this issue.

c2013hl commented 2 years ago

Ok, thanks.

On Mon, Oct 25, 2021 at 1:08 AM Jiao Xianjun @.***> wrote:

If no further question, I will close this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-sdr/openwifi/issues/98#issuecomment-950640827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UQMALPQPKL5POKUWZTUIUGAZANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

t109368035 commented 2 years ago

Hello @c2013hl , Which driver is used for frequency 2.4G? Thanks!

Thank you for the response. We are able to set frequency to 2.4GHz now. 5.2G and 2.4G seems to work. We're trying some other frequencies. It looks like we need to change the device driver to be able to support other frequencies. On Thu, Sep 30, 2021 at 12:37 AM Jiao Xianjun @.***> wrote: If you could share us the dmesg log, we can take a look. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#98 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSG6UXTRLJFKEH4HGKNUG3UEQHVJANCNFSM5DZVKEKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.