joaofl / hassio-addons

More add-ons for your Hass.io.
17 stars 22 forks source link

Atheros support #5

Closed ShonP40 closed 3 years ago

ShonP40 commented 3 years ago

Will support for Atheros dongles like the TP-Link TL-WN821N be added in the future?

joaofl commented 3 years ago

It should be possible to do it. My problem now is that I do not have one of those to test. Ill try to add it as soon as I find the time.

ShonP40 commented 3 years ago

Alright, thank you.

ShonP40 commented 3 years ago

I found this page that contains more info about the USB dongle I have. Maybe it could help

http://en.techinfodepot.shoutwiki.com/wiki/TP-LINK_TL-WN821N_v2

joaofl commented 3 years ago

@ShonP40 Just added a couple of Atheros drivers. Please let me know if it solves your problem

ShonP40 commented 3 years ago

I just reinstalled the addon and my USB dongle still isn't being detected.

ShonP40 commented 3 years ago

If the details on the website I sent above are correct, the driver my wireless dongle needs is linux-firmware-ath9k_htc.

ShonP40 commented 3 years ago

Well, I just tested it with linux-firmware-ath9k_htc and it didn't work as well

ShonP40 commented 3 years ago

Correction, the needed driver is carl9170, but its already included in linux-firmware-other, which you have in the Dockerfile

joaofl commented 3 years ago

If the details on the website I sent above are correct, the driver my wireless dongle needs is linux-firmware-ath9k_htc.

I just made a new release including all the atheros firmwares available in the repos. Please give it another try

joaofl commented 3 years ago

Can you ssh into your hassio and get some logs?

Maybe install the drivers manually and see what shows up in the system logs after you insert the dongle? Also run ifconfig -a and see if the device shows up.

ShonP40 commented 3 years ago

If the details on the website I sent above are correct, the driver my wireless dongle needs is linux-firmware-ath9k_htc.

I just made a new release including all the atheros firmwares available in the repos. Please give it another try

I already tried that driver (cloned and modified your repo). It didn’t work.

ShonP40 commented 3 years ago

Can you ssh into your hassio and get some logs?

Maybe install the drivers manually and see what shows up in the system logs after you insert the dongle? Also run ifconfig -a and see if the device shows up.

Did that once already. It detects the dongle, but then fails to load it. (It doesn’t show up in ifconfig)

joaofl commented 3 years ago

So maybe its blacklisted.... Not sure. I would need logs and probably a similar dongle to test it

ShonP40 commented 3 years ago

It works on normal Raspberry Pi OS though

Don't think that HAOS is blacklisting Wireless adapters

And the host logs only show that it's detected on the USB bus

ShonP40 commented 3 years ago

Can you recommend a dongle that works with your addon?

joaofl commented 3 years ago

I'm personally using the one below, which has the Ralink chipset: https://www.aliexpress.com/item/32834257814.html?spm=a2g0s.9042311.0.0.27424c4dyXG5IN

ShonP40 commented 3 years ago

Sorry for the late response.

I’ll try to find a dongle with the same chipset as yours but with a smaller antenna (there isn’t a lot of space at the place my RPI is located in)