xyzroe / XZG

Unifies the best innovations from previous Zigbee gateway projects into a single, comprehensive solution
https://xzg.xyzroe.cc/
GNU General Public License v3.0
108 stars 21 forks source link

PoE powered UZG-01 does not come online after reboot #44

Closed GD-Dal closed 3 months ago

GD-Dal commented 4 months ago

Not sure if this is related to the switch or the UZG-01 If I restart the UZG-01, it does not come back until I shutdown the switchport and turn it back on. Until then, the UZG network port blinks for a second, then goes dark. Blinks for a second then goes dark, etc.

The switch is a Cisco Catalyst 9300 of model C9300L-48UXG-4X The port settings looks like this:

interface GigabitEthernet1/0/31
 description UZG
 switchport access vlan 1098
 switchport mode access
 device-tracking
 speed 100

The show power inline command shows this:

show power inline Gi1/0/31 detail 
 Interface: Gi1/0/31
 Inline Power Mode: auto
 Operational status: on
 Device Detected: yes
 Device Type: Ieee PD
 IEEE Class: 0
 Discovery mechanism used/configured: Ieee and Cisco
 Police: off

 Power Allocated 
 Admin Value: 60.0
 Power drawn from the source: 15.4
 Power available to the device: 15.4

 Actual consumption
 Measured at the port: 0.8
 Maximum Power drawn by the device since powered on: 0.9

 Absent Counter: 0
 Over Current Counter: 0
 Short Current Counter: 0
 Invalid Signature Counter: 0
 Power Denied Counter: 0

 Power Negotiation Used: None
 LLDP Power Negotiation --Sent to PD--      --Rcvd from PD--
   Power Type:          -                    -
   Power Source:        -                    -
   Power Priority:      -                    -
   Requested Power(W):  -                    -
   Allocated Power(W):  -                    -

Four-Pair PoE Supported: Yes
Spare Pair Power Enabled: No
Four-Pair PD Architecture: N/A
Perpetual POE Enabled: FALSE
Fast POE Enabled: FALSE

The configHW.json debug file contains this:

{
  "board": "UZG-01",
  "addr": 0,
  "pwrPin": -1,
  "mdcPin": 23,
  "mdiPin": 18,
  "phyType": 0,
  "clkMode": 3,
  "pwrAltPin": 5,
  "btnPin": 35,
  "btnPlr": 1,
  "uartSelPin": 33,
  "uartSelPlr": 1,
  "ledModePin": 12,
  "ledModePlr": 1,
  "ledPwrPin": 14,
  "ledPwrPlr": 1,
  "zbTxPin": 4,
  "zbRxPin": 36,
  "zbRstPin": 16,
  "zbBslPin": 32
}
xyzroe commented 4 months ago

Please provide additional information about the hardware version of UZG-01 (label on the bottom). It will also be useful if you provide a photo of the inside of the device, for a greater understanding of the revision of the board.

GD-Dal commented 4 months ago

image

I don't know how to open the box, though. It looks solid

xyzroe commented 4 months ago

Ok. No need. I'll check and come back.

xyzroe commented 4 months ago

You could try to change "pwrAltPin": 5, to "pwrAltPin": -1, in your configHW.json

GD-Dal commented 4 months ago

Didn't help at all. But I discovered one thing though.

I turned of power on the switchport and powered up the UZG-01 via USB-cable instead. And when I rebooted the UZG-01 some time later, the same thing happened.

The network port just blinked as before until I unplugged the usb cable, waited 10 seconds, and replugged it.

This is becoming the most unstable piece of hardware I have purchased for a long time.

Not possible to reboot without hassle LQI is low on all zigbee devices. Zigbee2MQTT crashes regularily because loss of connection

tonius7570 commented 4 months ago

I have the same issue with UZG-01 (POE-0.4)

xyzroe commented 4 months ago

Didn't help at all. But I discovered one thing though.

I turned of power on the switchport and powered up the UZG-01 via USB-cable instead. And when I rebooted the UZG-01 some time later, the same thing happened.

The network port just blinked as before until I unplugged the usb cable, waited 10 seconds, and replugged it.

This is becoming the most unstable piece of hardware I have purchased for a long time.

Not possible to reboot without hassle LQI is low on all zigbee devices. Zigbee2MQTT crashes regularily because loss of connection

Let's separate Zigbee and ESP issues. Problem with LAN port is ESP issue. But low LQI as well as loss of Zigbee connection are Zigbee releated issues. Find more info in Zigbee firmware repository.

I will look for some solution to made ESP32 works with LAN port more stable.

xyzroe commented 4 months ago

I have the same issue with UZG-01 (POE-0.4)

You could try to change "pwrAltPin": 5, to "pwrAltPin": -1, in your configHW.json. Have you?

tonius7570 commented 4 months ago

I have the same issue with UZG-01 (POE-0.4)

You could try to change "pwrAltPin": 5, to "pwrAltPin": -1, in your configHW.json. Have you?

It hasn't helped

xyzroe commented 4 months ago

@mercenaruss could you help us ?

zoptooniek commented 4 months ago

I have the same issue on a UZG-POE-0.5. It doesn't always survive a reboot and am left with the NIC lights pulsing off and on again 3 times in a cycle. Sometimes, forcing a reboot by bouncing the switch port will make it spring back to life, however not always and I have to leave it powered off for a little while before powering it up again. However, when powered by USB, it will not recover at all and the only way to recover is to flash back to 0.26 via the webflasher.

I have 2 of these devices, i think both with the same Hardware revisions based on the Status page (ESP32-D0WD-V3) and the sticker on the bottom (UZG-POE-0.5) but only one of them has this issue.

I reboot the other one on a daily basis to install all the new firmware updates and it always reboots fine with no issues. (Just as well really as that one is in a remote site!)

Happy to try any suggestions to help pinpoint the issue.

mercenaruss commented 4 months ago

@tonius7570 @zoptooniek Try to change "pwrAltPin": -1, to "pwrAltPin": -1, in your configHW.json. If any of you have some time,please drop me an email support@zig-star.com and we will try remotely to debug this.

zoptooniek commented 3 months ago

@mercenaruss changing this made no difference to me. I'm still in the same situation. I have also updated the fw to 20240607.1 and the issue still persists

xyzroe commented 3 months ago

Could you try factory reset after updating to 20240607* ?

zoptooniek commented 3 months ago

This seems to have done the trick so far. I have been able to reboot the device several times with no issues :) Thank you!

xyzroe commented 3 months ago

@zoptooniek could you check it later to confirm, and if no issues - close this issue ?

zoptooniek commented 3 months ago

@xyzroe - Performed a few more reboots and fw updates and all seems good! Happy for the issue to be closed