logo elektroda
logo elektroda
X
logo elektroda

BK7231T RGB Bulb Connects to OpenWRT but No IP Communication, Static IP Issue?

evaluation 780 9
ADVERTISEMENT
  • #1 21104511
    evaluation
    Level 3  

    Hi,

    I'm struggling with BK7231T (from RGB Bulb) to connect to my WLAN.

    I successfully managed to flash and connect to the device AP. There I configured Wifi credentials (several different modes) and set static IP (as all of my mainly Tasmota devices have).
    The device then connects to my OpenWRT router like this:
    Spoiler:

    Sun Jun 2 16:02:19 2024 daemon.info hostapd: wlan0-5: STA 50:8a:06:75:e4:50 IEEE 802.11: authenticated
    Sun Jun 2 16:02:19 2024 daemon.info hostapd: wlan0-5: STA 50:8a:06:75:e4:50 IEEE 802.11: associated (aid 1)
    Sun Jun 2 16:02:19 2024 daemon.notice hostapd: wlan0-5: AP-STA-CONNECTED 50:8a:06:75:e4:50
    Sun Jun 2 16:02:19 2024 daemon.info hostapd: wlan0-5: STA 50:8a:06:75:e4:50 RADIUS: starting accounting session E51F5EE453ED52CC
    Sun Jun 2 16:02:19 2024 daemon.info hostapd: wlan0-5: STA 50:8a:06:75:e4:50 WPA: pairwise key handshake completed (RSN)


    I see that the device is connected to OpenWRT in the Wifi tab.

    But I cannot ping it - even not from OpenWrt console.
    In the OpenWrt Console I see this. The IP is the one I assigned to the device.
    Spoiler:

    IP address HW type Flags HW address Mask Device
    192.168.0.193 0x1 0x0 00:00:00:00:00:00 * br-lan


    nslookup does not find the device.

    Most of the tests & configurations were done using a USB TTL (gold version) which usually has no issue to provide the needed power...
    The device has also been powered by an external power supply as this is mentioned to be critical.

    The OpenWrt AccessPoint has been configured as
    - WPA PSK
    - WPA2 PSK
    - WPA/WPA2 mixed mode
    - WMM deactivated
    - Country Code = DE

    Could it be that fixed IP assignment does not work properly?
    Unfortunately DHCP is not stable enough in my environment (for an unknown reason) so I'm configuring static IPs for *all* devices since years.

    During the device AP phase, it is completely stable and I can click around and configure without issues.
    The connection to the OpenWRT router seems to work - only IP connection cannot be established.

    P.S.: I also tried to connect to an old Fritzbox 7170 (original firmware). Connection also works there but I also don't see an IP address.

    P.P.S.:
    Just struggling with the safe mode of the device. It worked dozens of times before but not anymore.
    I wanted to check DHCP against FB 7170 with an external power supply and now the local AP does not show up anymore... :-(
    I reflashed with backup - no change.

    Any ideas?

    Thanks in advance
    Eva
  • ADVERTISEMENT
  • #2 21104601
    p.kaczmarek2
    Moderator Smart Home
    That's strange, I'm sure that I had static IP set on some BK7231T devices and they worked well... I will take a moment and try again, btw, @DeDaMrAz @divadiow do you have any T's to test?


    Would you be able to try with other router?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21104737
    evaluation
    Level 3  

    >>21104601
    At the moment I only have this one ready for testing and it is not opening the AP... Flashing and backup works well.
    Did you see such a behavior before?
  • #4 21104780
    p.kaczmarek2
    Moderator Smart Home
    ok I have idea - what is your device MAC? Maybe you have erased your RF partition, so your MAC ends with 00 00, so you have MAC conflict?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21104806
    evaluation
    Level 3  
    hmmm... what I did:

    WebUI presented my a valid MAC shown in the first code section of my initial post.
    50:8a:06:75:e4:50
    This MAC is in my WHITELIST of OpenWRT Access Point and OpenWRT let the device in.
    In ARP there is 00:00:00:00:00:00 for unknown reason.
    To eliminate any doubt I actively reassigned the MAC be WebUI. First changed one digit 50:8a:06:75:e4:51 and then changed back to 50:8a:06:75:e4:50

    At that point in time I still was able to communicate and configure the device without any issue using the device AP.

    I searched around for this ARP 00:00:00:00:00:00 thing but did not find an explanation nor an idea whether this is related to my issues.
    Unfortunately OpenWRT can only show ARP table. The arp command has no parameters, expecially no remove or flush or clear...

    Probably there are 2 main differences in the way of dealing with devices at my home compared to other users:
    - OpenWRT as main router for local devices with MAC whitelisting
    - fixed IPs

    As the test with a stock Fritzbox failed I focus now on IP issue.

    But I'm open for every idea!

    Or did you mean that having erased some important portion of the device is the root cause of not having AP anymore?
    Is there a way to solve it with the flashing tool BK7231 Easy UART flasher?

    Hinzugefügt nach 1 [Stunden] 41 [Minuten]:

    p.kaczmarek2 wrote:
    Maybe you have erased your RF partition, so your MAC ends with 00 00, so you have MAC conflict?


    I probably found what you meant. There is an option in the flasher tool "show advanced options" -> "Restore RF part"
    The explanation shown after clicking on the button sound similar to what you wrote.

    I did a restore but the situation remains the same => no access point coming up :-(
  • ADVERTISEMENT
  • #6 21105004
    p.kaczmarek2
    Moderator Smart Home
    ok let me check this. My settings:
    BK7231T network configuration interface with IP and DHCP settings.
    after reboot:
    BK7231T driver interface with configuration options
    Well, it clearly works on my side...


    Ok, regaring your router - are you sure that the problem is static IP? Maybe OBK device fails to connect to your router in general?
    Helpful post? Buy me a coffee.
  • #7 21105021
    evaluation
    Level 3  

    p.kaczmarek2 wrote:
    Maybe OBK device fails to connect to your router in general?

    Device is shown in the list of connected devices with connection speed, ...
    In router's log I see that connection was successful. Log looks like other logs of successfully connected devices. (see log section in my first post).
    But for sure it did not work completely correct because IP connection is not established.

    Unfortunately I'm not able to do further checks right now as the device access point does not start up anymore.
    Am about to reflash it and restoring RF part and so on....

    Hinzugefügt nach 5 [Minuten]:

    one more question:
    Do you feel it could help to restore the original backup to the device and afterwards reflash with OpenBeken?
    The backup is QIO while OpenBeken is UA.
    If I understand it correctly QIO is a full backup of the whole chip while UA is only the firmware section.
    Can I simply select the original firmware from drop down and the flasher UI knows that flashing needs to start at another address (0x0 instead of the address of firmware)?

    I don't want to brick it even more :-)
  • #8 21105036
    p.kaczmarek2
    Moderator Smart Home
    You can easily restore your backup with our flasher, backups are always QIO. Give it a go.

    If you didn't break your RF, then original RF is better than the one created by "RF restore"
    Helpful post? Buy me a coffee.
  • #9 21105095
    evaluation
    Level 3  

    thanks a lot.

    I finally managed to get it into my local network.

    To be honest: I don't know what I did differently.

    I right now did:
    - flash config several times using Flasher
    - restored original backup file
    - reflashed OpenBeken
    - configured Wifi using Flasher (yesterday I configured only using devices AP)
    - tested against Fritzbox 7170 (no success)
    - configured to connect to OpenWRT with DHCP
    - suddenly the device was shown with the IP I configured in OpenWRT's DHCP configuration file
    - then configured this IP as fixed IP using Flasher

    The final configuration of the device should be equal to my configuration of yesterday. But today I did a lot with the Flasher instead of using my Smartphone and use devices AP...

    Anyway: thanks a lot for your hints!!! I learned a lot and hopefully don't need to bother you that much again.
  • #10 21105114
    p.kaczmarek2
    Moderator Smart Home
    Please ask as much as you like, you're welcome here, that's what the forum is for.

    I honestly don't know myself why it wasn't working before, so I won't close this topic now, let's just watch and observe, maybe there is something else at play.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around issues faced by a user attempting to connect a BK7231T RGB bulb to an OpenWRT router using a static IP configuration. The user successfully flashed the device and configured Wi-Fi credentials but encountered problems with IP communication, as the device could not be pinged or resolved via nslookup. Various troubleshooting steps were suggested, including checking the device's MAC address for conflicts and ensuring proper power supply. After multiple attempts, including restoring the original backup and reconfiguring the device using a flasher tool, the user eventually managed to connect the device to the network successfully, although the exact reason for the initial failure remained unclear.
Summary generated by the language model.
ADVERTISEMENT