openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.43k stars 253 forks source link

Can't set mac adress on BL602 device #1038

Open hojnikb opened 8 months ago

hojnikb commented 8 months ago

I'm using a smart plug based off BL602. When i flashed OpenBeken on it, it wiped the MAC adress (as expected). Now i have a few of these devices and they all have the same MAC adress by default. No problem.

But when i try to set a different MAC adress in the settings, it doesn't actually set. "Device MAC" indicates changed MAC, but when i check my router, i still see the same MAC adress as before. And obviously when i plugin more than one device at a time, i get conflicts.

Any ideas how to fix this? I'm currently using version 1.17.366.

openshwprojects commented 8 months ago

Why do you think it's expected? I flashed 3 or 4 BL602 devices, two of them here: https://www.youtube.com/watch?v=L6d42IMGhHw&t=2s&ab_channel=Elektrodacom https://www.youtube.com/watch?v=bs0ylC6xRs0&t=59s&ab_channel=Elektrodacom and MACs are clearly different. Did you do the flashing in somewhat different way than we do?

Regarding MAC change itself - this is unimplemented so far, as I was sadly unable to find a way to do it. I have infact tested some functions from SDK but I bricked my BL602 board in a meantime (by using some kind of efuse mac set) so I am not able to look into it any futher. Any help and investigation on BL602 MAC issue is welcome

hojnikb commented 8 months ago

Why do you think it's expected? I flashed 3 or 4 BL602 devices, two of them here: https://www.youtube.com/watch?v=L6d42IMGhHw&t=2s&ab_channel=Elektrodacom https://www.youtube.com/watch?v=bs0ylC6xRs0&t=59s&ab_channel=Elektrodacom and MACs are clearly different. Did you do the flashing in somewhat different way than we do?

Regarding MAC change itself - this is unimplemented so far, as I was sadly unable to find a way to do it. I have infact tested some functions from SDK but I bricked my BL602 board in a meantime (by using some kind of efuse mac set) so I am not able to look into it any futher. Any help and investigation on BL602 MAC issue is welcome

I've followed the video in your post, but i used a newer version of lab dev cube. Perheps there was some setting, that set MAC adress while flashing? I have to check.

openshwprojects commented 8 months ago

Yes, please do check, any help regarding that matter is welcome. It's a known issue, it's just I haven't been able to solve it on my own.

hojnikb commented 8 months ago

Yes, please do check, any help regarding that matter is welcome. It's a known issue, it's just I haven't been able to solve it on my own.

I was able to solve my issue by following this thread. https://www.elektroda.com/rtvforum/topic4027103.html

It seems that the newer version of devlab cube might be breaking something. After using the exact version of the software, shown in the video and exact setting, MAC issue went away!