XZG icon indicating copy to clipboard operation
XZG copied to clipboard

SLZB-06 - No network, no ZIGBEE

Open EtienneRod opened this issue 1 year ago • 29 comments

Describe the bug NEW SLZB-06, working fine on SMLIght Firmware, no network and Zigbee on XZG. Board and zigbee are not detected properly (Unknown). I suspect a new rev with maybe a different pinout or something but can't fin info on SMLight website.

Device information SMLIGHT:image XZG:image http://ZXG.local/api?action=1&param=all : { "network-config": { "wifiEnbl": false, "wifiSsid": "", "wifiPass": "", "wifiDhcp": true, "wifiIp": "::", "wifiMask": "255.255.255.0", "wifiGate": "::", "wifiDns1": "1.1.1.1", "wifiDns2": "8.8.8.8", "wifiPwr": 78, "wifiMode": 1, "ethEnbl": false, "ethDhcp": true, "ethIp": "::", "ethMask": "255.255.255.0", "ethGate": "::", "ethDns1": "1.1.1.1", "ethDns2": "8.8.8.8" }, "vpn-config": { "wgEnable": false, "wgLocalIP": "::", "wgLocalSubnet": "255.255.255.0", "wgLocalPort": 33333, "wgLocalGateway": "0.0.0.0", "wgLocalPrivKey": "", "wgEndAddr": "", "wgEndPubKey": "", "wgEndPort": 0, "wgAllowedIP": "0.0.0.0", "wgAllowedMask": "0.0.0.0", "wgMakeDefault": true, "wgPreSharedKey": "", "hnEnable": false, "hnJoinCode": "", "hnHostName": "XZG-ACAE", "hnDashUrl": "default" }, "mqtt-config": { "enable": false, "server": "", "port": 1883, "user": "", "pass": "", "topic": "XZG-ACAE", "updateInt": 60, "discovery": true, "reconnectInt": 15 }, "system-config": { "disableWeb": false, "webAuth": false, "webUser": "", "webPass": "", "fwEnabled": false, "fwIp": "0.0.0.0", "serialSpeed": 115200, "socketPort": 6638, "tempOffset": 9, "disableLedUSB": false, "disableLedPwr": false, "refreshLogs": 1, "hostname": "XZG", "timeZone": "Europe/Berlin", "ntpServ1": "pool.ntp.org", "ntpServ2": "time.google.com", "nightMode": false, "startHour": "23:00", "endHour": "07:00", "workMode": 0, "zbRole": 0, "zbFw": "?", "updHour": "01:00", "updDays": "*", "autoIns": false } }

Logs : [12072] | [ZB] FW: Unknown! Check serial speed! [300488] | [Time] Thu Jan 1 01:05:00 1970 [300489] | [UPD_CHK] cron 40 0 1 * * * [313227] | [Time] Thu Jan 1 01:05:13 1970 [313228] | [UPD_CHK] cron 6 0 1 * * * [358552] | [ZB] No Zigbee chip!

To Reproduce Install either 20240612 or 20240609.01 firmware

Expected behavior Network and Zigbee working fine

Additional context I try 20240612 and 20240609.01. Also I did an ESP32 and reset and NVRAM erase without success.

EtienneRod avatar Jun 18 '24 14:06 EtienneRod

Could you try to edit configHw.json in Tools-File browser to make it looks like this

{
  "board": "SMZB-06",
  "addr": 1,
  "pwrPin": 16,
  "mdcPin": 23,
  "mdiPin": 18,
  "phyType": 1,
  "clkMode": 3,
  "btnPin": 35,
  "btnPlr": 1,
  "uartSelPin": 4,
  "uartSelPlr": 1,
  "ledModePin": 12,
  "ledModePlr": 1,
  "ledPwrPin": 14,
  "ledPwrPlr": 1,
  "zbTxPin": 17,
  "zbRxPin": 5,
  "zbRstPin": 33,
  "zbBslPin": 32
}

Then restart the device and make video how LEDs will blink. If device won't start you need to upload that video somewhere, or just describe how it was.

xyzroe avatar Jun 18 '24 21:06 xyzroe

Gonna try tomorrow and take a video of the LEDs behaviour

EtienneRod avatar Jun 18 '24 23:06 EtienneRod

Ok, now with that config, Zigbee is correctly detected and I was able to flash it. Unfortunately still no eth network. Wifi is working correctly.

If it can help, this time (for the first time). Eth Network was working when I flashed and I received a popup asking me to choose my board between WT32-ETH01 and TubesZB-eth. Then when I change configHW.json for the one you gave me, eth stopped working. Unfortunetly, I did not take a copy of configHW.json when it was working and I was not able to get that behaviour since...

Here is current status : image

i'll use wifi for now until a solution but goal is to put it back in basement where it's going to be wired with POE

EtienneRod avatar Jun 19 '24 15:06 EtienneRod

You can try to make a factory reset, via Tools page. It will ask you to choose the board again, after restart. Just to check configHw.json for correct ETH section.

xyzroe avatar Jun 19 '24 21:06 xyzroe

Have you looked in the Network page for the Eth config section after applying new configuration?

xyzroe avatar Jun 19 '24 21:06 xyzroe

I did a reset and after reboot went back to Unknown Model and Ethernet not working. reflash smlight then flashback xzg and still the same.

when I enable Ethernet from network setting it’s stays disconnected, Mac is all 0s and I all configuration field are grayed/locked.

image

EtienneRod avatar Jun 19 '24 22:06 EtienneRod

I have no ideas. Maybe you should try to ask here https://youtu.be/24C8liZYGWY?feature=shared&t=549 . Some guy got SLZB-06 works on XZG

xyzroe avatar Jun 19 '24 23:06 xyzroe

I wil check this out and if I find any solution will open new issue

EtienneRod avatar Jun 20 '24 00:06 EtienneRod

@w1zz4 I got it working with this config file. If you are flashing with the online web flasher and you are on a Mac. It gives 2 usb serial devices. try the other one, when I did it auto detected everything and this was the config file it had in it. When using the web flasher I also tried an old version 20240507, don't know if that helped. { "board": "SLZB-06", "addr": 1, "pwrPin": 16, "mdcPin": 23, "mdiPin": 18, "phyType": 0, "clkMode": 0, "pwrAltPin": -1, "btnPin": 35, "btnPlr": 1, "uartSelPin": 4, "uartSelPlr": 1, "ledModePin": 12, "ledModePlr": 1, "ledPwrPin": 14, "ledPwrPlr": 1, "zbTxPin": 17, "zbRxPin": 5, "zbRstPin": 33, "zbBslPin": 32 }

erikpendragon avatar Jun 30 '24 04:06 erikpendragon

@w1zz4 I got it working with this config file. If you are flashing with the online web flasher and you are on a Mac. It gives 2 usb serial devices. try the other one, when I did it auto detected everything and this was the config file it had in it. When using the web flasher I also tried an old version 20240507, don't know if that helped.

I flashed with 20240507 this morning and it detected the board correctly which finally make me think of a bug in newer firmwares.

Thank You

EtienneRod avatar Jul 03 '24 12:07 EtienneRod

If anyone can help me with debugging some test builds, I can try to find and fix that bug.

xyzroe avatar Jul 03 '24 12:07 xyzroe

If anyone can help me with debugging some test builds, I can try to find and fix that bug.

I am open to do it

EtienneRod avatar Jul 03 '24 17:07 EtienneRod

I can, but my SLZB-06 is not fully functional. Something with the process my Ethernet port doesn't work anymore even with the settings I had before that did work. Was talking with SMLight and they said the port is dead.

erikpendragon avatar Jul 03 '24 18:07 erikpendragon

After first successful installation, I can install latest firmware for both Zigbee radio and ESP without issue.

Here is my current configHw.json

{
  "board": "SLZB-06",
  "addr": 1,
  "pwrPin": 16,
  "mdcPin": 23,
  "mdiPin": 18,
  "phyType": 0,
  "clkMode": 0,
  "pwrAltPin": -1,
  "btnPin": 35,
  "btnPlr": 1,
  "uartSelPin": 4,
  "uartSelPlr": 1,
  "ledModePin": 12,
  "ledModePlr": 1,
  "ledPwrPin": 14,
  "ledPwrPlr": 1,
  "zbTxPin": 17,
  "zbRxPin": 5,
  "zbRstPin": 33,
  "zbBslPin": 32
}

EtienneRod avatar Jul 03 '24 20:07 EtienneRod

@w1zz4 does the Ethernet now work? Mine says enabled but disconnected like your pictures above. Although it did work at one point.

erikpendragon avatar Jul 03 '24 20:07 erikpendragon

Yes everything is up and running.

image

EtienneRod avatar Jul 03 '24 20:07 EtienneRod

Well my zigbee network is down anyways, might as well try some custom builds.

erikpendragon avatar Jul 03 '24 21:07 erikpendragon

they said the port is dead.

How did they explain why the port is dead?

xyzroe avatar Jul 04 '24 13:07 xyzroe

Well my zigbee network is down anyways, might as well try some custom builds.

What you are going to achieve using custom builds? You could change entire hardware config using configHw.json file.

xyzroe avatar Jul 04 '24 13:07 xyzroe

Could someone make tests with SLZB-06 and confirm that board detection works right?

You need to flash latest firmware and then make factory reset via Tools page. If everything is ok, device will boot up in 10-30 seconds.

xyzroe avatar Jul 07 '24 20:07 xyzroe

Tomorrow I should be able to test it

EtienneRod avatar Jul 07 '24 20:07 EtienneRod

Unfortunately, after factory reset board is again not detected correctly.

Copying working json over new one did not make it works either, Had to reinstall 20240507 then do another factory reset to have my board detected properly

EtienneRod avatar Jul 08 '24 14:07 EtienneRod

Any news on this?

er1z avatar Oct 29 '24 20:10 er1z

same problem ethernet not recognized.

basalisco avatar Jan 09 '25 08:01 basalisco

Looks like it can be fixed in a new version (still in work, no ETA)

xyzroe avatar Jan 09 '25 22:01 xyzroe

Any news on this?

I got my first SLZB-06 and it looks like I ran into the same issue: Flashing any version from https://smlight.tech/flasher/#SLZB-06 (currently v2.9.4 or v2.7.1 or v2.3.6 or v0.9.9 are offered directly) works fine. Installing any recent XZG version like 20240914 or 20240928 or 20241001 via web-flasher (brave browser on a Mac) results in strange behavior like "unknown hardware", no eth and so on. Not mentioned so far: When I open tools-debug-file browser there is no configHw.json but some small 7 byte file... To me this looks like current versions fail to setup a working LittleFS or something similar.

Installing some older version of XZG first I find a valid configHw.json and the device seams to work fine. I can even update to version 20240914 via the tools-firmware-esp32-show available. But uodating beyond that didn't work.

I hope I was able to provide additional hints, even though I have no idea what's going on...

BTW: The slikscreen on the PCB in my SLZB-06 states it's r1.70.

parsley avatar Jul 28 '25 22:07 parsley

0914 is the last version that supports configHw file.

All newer versions don't use it, and so don't support editing device config.

I don't have SM Light coordinator, so I can't make tests, to find out why hardware detection mechanism is broken.

xyzroe avatar Jul 29 '25 06:07 xyzroe

Thank you for your quick answer!

That explains why I can't make it work with newer versions. My observation is: Older versions correctly detect the HW and generate a functioning configHw file. Once this file is stored on the ESP I am able to update to version 0914 via the tools menu, because this kind of update seams to keep the already present configHw file. The web-flasher on the other hand seams to wipe anything including the configHw. And since the hw detection bug(?) is already present in fairly recent versions (including 0914) even those do not generate a working configHw if flashed directly by web-flasher.

Is there anything I could try to help further locating and perhaps fixing the bug?

If it helps I could flash each old version one by one to find the latest version that generates a working configHw. After that a diff to the next version might help to locate the issue?

parsley avatar Jul 29 '25 09:07 parsley

As you can see, there haven't been any commits or releases recently. I don't have enough time or motivation for this project right now. No one else does either. So, the project is on hold for the time being.

xyzroe avatar Jul 29 '25 10:07 xyzroe