#Troubleshooting offline devices
1 messages · Page 1 of 1 (latest)
@shadow bobcat Let's move this discussion into a thread to not pollute the main channel
sure
/config # zigpy radio znp /dev/cu.usbserial-1420 energy-scan
2022-10-18 12:12:07.789 Storinator zigpy.application ERROR Couldn't start application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/cu.usbserial-1420'
so looking at if I can find the radio it wants
root@Storinator:~# zigpy radio znp /dev/cu.usbserial-1420 energy-scan
-bash: zigpy: command not found
The example is copy/pasted from my environment, it's just using an example serial port path for macOS
oh wait
Look in /dev/serial/by-id/ for Linux
duh it kicked me out
/config # zigpy radio znp /dev/ttyUSB0 network info
Usage: zigpy radio [OPTIONS] {ezsp|deconz|xbee|zigate|znp} PORT COMMAND
[ARGS]...
Try 'zigpy radio --help' for help.
ok
my coordinator is on /dev/ttyUSB0
I always prefer the by-id symlink, since it'll be stable across environments
And if you (or the kernel) change the order of your serial ports
yea I get what you mean, but for the sake of testing this once now, that way is fine
so yea the documentation is off on that page, says to read network info to run that network command, but 'network' is not a valid command 🤦♂️
this is why I can't stand linux lol
Which network command?
Reading network information
$ zigpy radio znp /dev/ttyUSB0 network info
Oh, it's just info
/config # zigpy radio --help
Usage: zigpy radio [OPTIONS] {ezsp|deconz|xbee|zigate|znp} PORT COMMAND
[ARGS]...
Options:
--baudrate INTEGER
--help Show this message and exit.
Commands:
backup
change-channel
energy-scan
form
info
permit
reset
restore
/config # zigpy radio znp /dev/ttyUSB0 network info
Usage: zigpy radio [OPTIONS] {ezsp|deconz|xbee|zigate|znp} PORT COMMAND
[ARGS]...
Try 'zigpy radio --help' for help.
Error: No such command 'network'.
No network
It will run fine if you replace energy-scan with info
ah it is
scan is going now
Channel energy (mean of 5 / 5):
- Lower energy is better
- Active Zigbee networks on a channel may still cause congestion
- TX on 26 in North America may be with lower power due to regulations
- Zigbee channels 15, 20, 25 fall between WiFi channels 1, 6, 11
- Some Zigbee devices only join networks on channels 15, 20, and 25
- Current channel is enclosed in [square brackets]
- [11 ] 20.71% ####################
- 12 35.29% ###################################
- 13 30.43% ##############################
- 14 38.82% ######################################
- 15 48.31% ################################################
- 16 70.04% ######################################################################
- 17 92.08% ############################################################################################
- 18 89.80% #########################################################################################
- 19 42.43% ##########################################
- 20 38.12% ######################################
- 21 35.06% ###################################
- 22 46.75% ##############################################
- 23 47.06% ###############################################
- 24 26.90% ##########################
- 25 20.47% ####################
- 26* 19.69% ###################
Looks like you have a very noisy WiFi network on WiFi channel 6
Or one with a 40MHz channel width?
I have 2.4 and 5g on 2 APs in a mesh network
I remember when I set it up, I believe channel 11 was best
Can you try moving your 2.4GHz AP to WiFi channel 11?
Something very noisy is on WiFi 6/Zigbee 17: https://img.community.ui.com/5f743aa0-9c43-44fb-8889-afd9eccba833/comments/d1ae2c9e-9162-47e2-abcc-12e54862b200/82ccb020-c270-45fc-995c-f837ada4f9c3
If it's not something you're intentionally emitting, that would be a little concerning
I believe you but the Zigbee scanner doesn't lie 😆. Noisy power supply? WiFi mesh system automatically picking a channel? Air conditioning fan motor? Refrigerator?
ok so is that scan just from the coordinator or the routers as well?
It can do routers if you pass --nwk 0x1234
Something is emitting enough RF noise to peg the channel utilization to 92% on the stick on 17. I can only do that when using a second stick and intentionally using a manufacturing command that emits noise at max power levels.
ok so this scan is just the coordinator then. So there is a lot in the network rack, but smaller devices, like the server, cable boxes, switches
no big heavy house appliances nearby
A/C is not on
oh you know what
outside the basement window maybe 10 feet away is a ductless A/C unit that is used for heat too, for the inlaws
Try disabling it and waiting for the fan to spin down, that could be causing a problem
You may also be able to shield the wall with foil or something
I can just flip the breaker and test
Or buy an Ethernet-connected coordinator and move it elsewhere in your home
hmm
ok but why would channel 17 affect zigbee if my zigbee is on channel 11?
that's the whole point of selecting channels
but now seeing my AP may have moved my wifi to channel 11 now as well
WiFi and Zigbee share frequencies but their channel numbers are different, 11 is a different frequency for both
Your noise is also just centered on 17, it's bleeding into a lot of surrounding channels. The energy scan from what I remember only measures the noise floor, it's not 100% indicative of the usability of a channel
yes well channels do have a width, so it will show like that
Not that wide
5 channels wide
so looks like my AP is moving between channel 1 and 11, leaving 6 free. 6 has the lowest interference from somebody elses wifi maybe a neighbor, but closest house is a good 250ft away
6 would be zigbee channel 17 lol
that must be why then, the AP must see the noise there and not use it
For comparison, here's a USB stick sitting on top of my Unifi AP:
- 20 37.80% #####################################
- 21 46.12% ##############################################
- 22 58.20% ##########################################################
- 23 60.86% ############################################################
- 24 51.37% ###################################################
- 25 48.47% ################################################
- 26* 46.43% ##############################################
Yours has a sharp peak at 17, it doesn't seem like it has a real channel width and then decaying sidebands like a 2.4GHz AP does. It just emits noise all over.
yea it's not a wifi thing, its just something noisy, like a spike
I wonder if I can move the coordinator around on that extension cable to try and find the source of the noise
it can be a helpful scanner tool
Go for it. zigpy-cli is installable on Windows and macOS if you have Python 3.10 installed.