#Troubleshooting offline devices

1 messages · Page 1 of 1 (latest)

sinful onyx
#

@shadow bobcat Let's move this discussion into a thread to not pollute the main channel

shadow bobcat
#

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

sinful onyx
#

The example is copy/pasted from my environment, it's just using an example serial port path for macOS

shadow bobcat
#

oh wait

sinful onyx
#

Look in /dev/serial/by-id/ for Linux

shadow bobcat
#

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

sinful onyx
#

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

shadow bobcat
#

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

sinful onyx
#

Which network command?

shadow bobcat
#

Reading network information
$ zigpy radio znp /dev/ttyUSB0 network info

sinful onyx
#

Oh, it's just info

shadow bobcat
#

/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'.

sinful onyx
#

No network

shadow bobcat
#

nope

#

I only have one usb device, so that /dev/ttyUSB0 command should work fine

sinful onyx
#

It will run fine if you replace energy-scan with info

shadow bobcat
#

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% ###################
sinful onyx
#

Looks like you have a very noisy WiFi network on WiFi channel 6

#

Or one with a 40MHz channel width?

shadow bobcat
#

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

sinful onyx
#

Can you try moving your 2.4GHz AP to WiFi channel 11?

shadow bobcat
#

looking on a scanner, my 2.4 is at 11now

#

nothing on 6

sinful onyx
#

If it's not something you're intentionally emitting, that would be a little concerning

shadow bobcat
#

Bah can't post a pic here

#

I'd show you the screenshot

sinful onyx
#

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?

shadow bobcat
#

ok so is that scan just from the coordinator or the routers as well?

sinful onyx
#

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.

shadow bobcat
#

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

sinful onyx
#

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

shadow bobcat
#

I can just flip the breaker and test

sinful onyx
#

Or buy an Ethernet-connected coordinator and move it elsewhere in your home

shadow bobcat
#

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

sinful onyx
#

WiFi and Zigbee share frequencies but their channel numbers are different, 11 is a different frequency for both

shadow bobcat
#

oh ok

#

that seems dumb and purposely confusing lol

sinful onyx
#

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

shadow bobcat
#

yes well channels do have a width, so it will show like that

sinful onyx
#

Not that wide

shadow bobcat
#

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

sinful onyx
#

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%  ##############################################
shadow bobcat
#

wasn't the ductless unit causing the noise

#

my APs are unifi as well

sinful onyx
#

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.

shadow bobcat
#

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

sinful onyx
#

Go for it. zigpy-cli is installable on Windows and macOS if you have Python 3.10 installed.