google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
426 stars 125 forks source link

Generated hotspot not reliably staying available #711

Closed bsteiner-dandy closed 1 year ago

bsteiner-dandy commented 1 year ago

Description

Hi, I am using the Coral development board to generate a hotspot in order to connect other devices to it. However, I am currently seeing an issue where the hotspot becomes unavailable and then re-appears again as can be seen from my phone's wifi list and from viewing time graphs of SSIDs using the linssid program. Sometimes the signal goes down to 2 bars even though the board and my phone are right next to each other. Any ideas why it would behave like this?

Command and output from generating the hotspot:

$ sudo hostapd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
rfkill: Cannot open RFKILL control device
hotspot: interface state UNINITIALIZED->COUNTRY_UPDATE
Using interface hotspot with hwaddr 00:0a:f5:89:89:82 and ssid "my_hotspot"
hotspot: interface state COUNTRY_UPDATE->ENABLED
hotspot: AP-ENABLED 
hotspot: IEEE 802.11 driver had channel switch: freq=2447, ht=1, vht_ch=0x0, offset=0, width=1 (20 MHz), cf1=2447, cf2=0
hotspot: STA 1e:f4:5e:60:19:d4 IEEE 802.11: associated
Click to expand! ### Issue Type Performance, Support ### Operating System Mendel Linux ### Coral Device Dev Board ### Other Devices _No response_ ### Programming Language _No response_ ### Relevant Log Output ```shell Contents of /etc/hostapd.conf #2.4GHz setup wifi 80211 b,g,n interface=hotspot driver=nl80211 ssid=my_hotspot hw_mode=g channel=8 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=password wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP rsn_pairwise=CCMP #80211n - Change GB to your WiFi country code country_code=US ieee80211n=1 ieee80211d=1 ```
bsteiner-dandy commented 1 year ago

Changing up the /etc/hostapd.conf seems to have resolved it:

interface=hotspot
driver=nl80211
ssid=my_hotspot
hw_mode=g
channel=1
wme_enabled=1
ieee80211n=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No