logo elektroda
logo elektroda
X
logo elektroda

Enhancing OBK Status Page with WiFi Details for OpenBeken Devices

max4elektroda 3660 64
Best answers

Czy można rozszerzyć stronę statusu OpenBeken o szczegóły Wi‑Fi, takie jak aktualny BSSID, kanał i tryb PowerSave, oraz czy takie zmiany działają też na innych platformach?

Tak — sensownym kierunkiem było przeniesienie dodatkowych danych Wi‑Fi do JSON API (Tasmota-like) i ewentualnie pokazanie ich w Web App, zamiast rozbudowywać główną stronę OBK [#21588291][#21077881] W praktyce BSSID i kanał zostały już dodane do JSON statusu, a SSID uznano za zbędne, bo zwykle można je odczytać z konfiguracji; na głównej stronie pozostawiono tylko PowerSave jako bardziej ogólną informację [#21075738][#21602507][#21678334] Testy pokazały, że na wielu platformach działa to poprawnie: RTL8720D zwracał poprawny JSON z Wifi/BSSId/Channel, a później potwierdzono działanie także na BL602, LN882H, BK7231N, ESP32, W600, W800, BK7238, ECR6600, BK7231T, RTL8720CF i XR809 [#21602660][#21603311] Na XR najpierw był problem z BSSID, ale został poprawiony przez cache BSSID w bloku `safeMode == 0`, po czym uznano zmiany za bezpieczne do scalenia [#21603163][#21603218][#21603333] Dodatkowo zwrócono uwagę, że trzymanie tych danych w JSON/Web App pozwala uniknąć rozdmuchiwania strony statusu i zachowuje kompatybilność z urządzeniami, które można łatwo odzyskać przez UART, jeśli coś pójdzie nie tak [#21073333][#21076301]
Generated by the language model.
ADVERTISEMENT
  • #61 21603218
    p.kaczmarek2
    Moderator Smart Home
    Well, but no problems on other platforms?

    I guess I will merge it as is.

    Added after 1 [minutes]:

    wait a sec, wlan_sta_ap_info should return 0

    Added after 16 [seconds]:


    Enhancing OBK Status Page with WiFi Details for OpenBeken Devices

    Added after 13 [minutes]:

    added fixes
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #62 21603260
    divadiow
    Level 38  
    XR809 1689_merge_444d39530925
    Code: Text
    Log in, to see the code


    this is the expected mac for bssid
  • ADVERTISEMENT
  • #63 21603304
    p.kaczmarek2
    Moderator Smart Home
    I see.,... so, are you saying it's ready and safe to be merged?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post
    #64 21603311
    divadiow
    Level 38  
    not sure if I'm the one to make that call. I've done:
    BL602
    LN882H
    BK7231N
    ESP32
    W600
    W800
    BK7238
    ECR6600
    BK7231T
    RTL8720CF
    XR809
  • Helpful post
    #65 21603333
    p.kaczmarek2
    Moderator Smart Home
    Well, considering the fact that I added BSSID cache within safeMode == 0 block, then I would say that this testing was enough to merge it. In worst case, users can still recover their devices...

    Merged.
    Helpful post? Buy me a coffee.

Topic summary

✨ The discussion centers on enhancing the OpenBeken (OBK) status page to display detailed WiFi information for OpenBeken devices, particularly focusing on LN882H modules. The main goal is to show the connected access point's BSSID, WiFi channel, and PowerSave mode level without relying on serial logs. Initial implementations added WiFi HAL functions to the status page, but concerns arose about cluttering the main page and privacy risks from displaying sensitive data like MAC addresses and SSIDs. Suggestions include making the feature optional via a flag, moving detailed info to a debug page, or integrating it into the JSON API for use in the Web App, similar to Tasmota's approach. Testing on various platforms (W600, W800, XR802, XR809) revealed issues such as truncated SSIDs, invalid channel reporting (e.g., channel 0 on BL602), and inconsistent AP information. The dual SSID logic remains unfinished and complex due to connection failover scenarios and network scanning limitations. The community emphasizes cautious rollout on easily re-flashable devices and prefers exposing PowerSave mode on the main page while relegating other WiFi details to JSON status or tooltips. The discussion also highlights the need for better user guidance on OBK features and the potential to leverage existing APIs to avoid increasing firmware size.
Generated by the language model.

FAQ

TL;DR: UI code shrank 90 kB→9 kB (−90 %) [Elektroda, p.kaczmarek2, post #21078302]; “It’s too much detail already on the front page” [Elektroda, miegapele, post #21076512] Upcoming flag lets testers reveal WiFi BSSID, channel and PowerSave without bricking devices.

Why it matters: Cleaner pages load faster and leak less data while still giving power users the diagnostics they need.

Quick Facts

• Power-save levels: 0 (off) – 3 (max) [Elektroda, max4elektroda, post #21073220] • Chipsets verified: LN882H, BL602, W600, W800; XR809 untested [Elektroda, divadiow, post #21073436] • JSON endpoint: /cm?cmnd=STATUS returns BSSID, Channel, RSSI [Elektroda, p.kaczmarek2, post #21077839] • Pins page weight trimmed 90 kB → 9 kB [Elektroda, p.kaczmarek2, post #21078302] • Test builds: keep UART access; OTA may fail [Elektroda, max4elektroda, post #21073220]

How do I enable the feature without risking a boot loop?

Flash the test image, then set a boot-fail guard such as recovery-count before enabling the “Show extra info” flag; the device reverts after three failed boots [Elektroda, p.kaczmarek2, post #21073333]

Which chipsets already display correct values?

LN882H, W600 and W800 show full data; BL602 reports channel 0 (invalid) and needs a fix; XR809 lacks testers [Elektroda, divadiow, post #21074987]

Is the information a privacy risk?

Yes. MAC, BSSID or SSID can pinpoint location via public Wi-Fi databases [Elektroda, spleefer90, post #21588288] Hide them with the new flag or crop screenshots before posting.

What happens if the AP password is wrong?

The module retries about once per minute, logging “WIFI_STA_AUTH_FAILED – 3”; it never falls back to SSID2 because dual-SSID logic is TODO [Elektroda, divadiow, post #21079433]

What’s the long-term UI plan?

Developers plan GZIP-compressed, LFS-hosted custom pages and a plugin store so users can override index.html without touching firmware [Elektroda, p.kaczmarek2, post #21602215]

Expert tip for OTA testers?

“Keep UART pins exposed; one bad build can block OTA entirely,” warns max4elektroda [Elektroda, 21073220]
Generated by the language model.
ADVERTISEMENT