-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NCP_UHW_MG1B232_678_PA0-PA1-PB11_PA5-PA4.gbl results in all sorts of errors in my log and disfunction zigbee network #7
Comments
Use
GREAT !!!!! :-)) The formatting is one PITA in Github !!! |
That's as I did, but I had "2. ''' " and the parcer decided my text is the code... |
Its looks like you have doing one "hot swap" with on other coordinator and the system cant getting all working because is one mess in the network addresses. The last is very likely that the coordinator have not time talking with ZHA then its having too much to frighting in its network. But to coming back to point one i think its the easier killing the network and start one new one so the coordinator can adding device OK and not having all devices with wrong NWK of the device in the network. One Zigbee 3 network is not possible doing one "hot swap" then network, trust center link and APS keys and counter must being in the same state or is the network not working at all or very bad than all things have the wrong encryption in the links between the devices. As you have writing "test purses" its the best having one clean start and adding devices by devices so the mesh can building it out nicely. I have running the original the 6.7.8.0 and the 6.5.1.0 and all looks being stable but i have not merger my production to tuya ZBGW then i running on PI with GIPO UART for the moment and in the test only around 10 devices but its the same firmware version i have in the production network. |
I have doing firmware upgrading in my production network from 6.7.7.0 to 6.7.8.0 and it was working OK. Some thya ZBGW user have reporting problem after upgrading upgrading so i can being that going from 6.5.0 to 6.7.8.0 is corrupting the NVRAM in the coordinator. Silabs is recommending doing one flash erase before flashing one NCP images for getting all old thing deletes (but normal user cant flashing with SWD). It shall being problem doing backup and restore on EZSP but i have not trying it and must burning one new IEEEE if changing chip (only possible one time without SWD flasher). |
I have finding the course for your problem. So you need destroying you network and doing one new for getting it working. |
"
|
"So you need destroying you network and doing one new for getting it working." What is the proper way to "destroy" the network? Is there something I should know? |
I think ZHA have one limited to do pairing at one time but i think its possible doing more in "one row".. Or if you is having one possible touch link resetting then but its little long way (I have doing some GU10 spots im my kitchen by mistake with deCONZ and RaspBee I 6 meters away from the coordinator). |
I think bellows in one command line in your docker and leaving the network and then forming one new shall doing that (i have not trying that). |
One new CLI from bellows in my test system:
The leave is no problem but i think you is needing the database for forming on network. |
" If so, than I am doing exectly that every time I rebuild the network. And yet I am having the problems as above... Since you know the zigbee protocol at low level, can you tell me your opinion on the following solution I am trying to impliment: As long as the amount of devices on the network is relatively small, lets say ~40-50, the network remains stable. So, I can do several zigbee networks - as of today I ran 3 of those ~ 60 devices each and consider further splitting. So my question is about electromagnetic inteference - how well do different zigbee networks live in a configned environment? Because after my 200 devs mesh collapsed last night, today I've split it into fractions. All 3 coordinators are in 2 neighboring rooms ~ 3-5 m away from each other. I have 2 meshes which work with the devices from same room even... So my concern is if an electromagnetic interference would allow me to build several meshes instead of one unstable one? |
First the zigbee.db is one database for ZHA saving information of the devices. I have 5 network running for the moment but 3 is not critical and my main production is away from my WiFi network but the other is sharing the channels. Zigbee is pity smooths and is listen before sending but if you have one strong WiFi on the same frequency its being killed for 100%. And Zigbee network is made living together with other zigbee network only the "space in the air" can making it being bandwidth problems and delays. If having 2 large but mot mega (as you is having) on the same channel and if both is not heavy using there bandwidths (not updating the firmware of many devices) i shall not being no large problems but i think it can being latency then doing firmware updates. If you is running multiple network be sure PAN-ID, Extended PAN-ID and network keys is not the same in the networks or you is getting collisions and very bad network bark downs. I think then you is going up to 200 and more devices with light you is getting problems then its much bradcasts that is "running around" and can more or less blocking the mesh. If you is making 4 networks with 50 devices then one broadcast (one light switch is sending on on command) is replayed around to all 50 devices (not the sleeping end devices) and if you is having 200 devise in the network its being replayed 200 times for retching all around the network. If doing 4 or more networks keep them away from strong WiFi channels and if its possible not all Zigbee network on the same but its better then fighting with WiFi networks so perhaps 2 Zigbee nets on 20 and 25 and WiFi on lower channels. |
"
Does this thing count? Brief summary:
|
I have funding the missing config parameters for ZHA but i have not testing if they is working or not:
The "channels" is the primary channels that is used for paring and network searching and shall being as i have doing or you can getting problem then devices is joining and rejoining your network. The channel is the channel your network is formed on. The config is only used then you is forming on new network so if you is changing them its not doing anything until doing one leave and forming on new network then all "working parameters" is saved in the coordinators NVM not in ZHA local files. The best way see your "active" config is I have not trying changing network parameters on one formed network only doing one channel changing without repairing all devices. Try dong one leaving in the CLI and then starting HA with your new parameters in config and i think ZHA is setting up the new network with your parameters from your ZHA config (I have not trying that) and then verifying the new parameters is being used. Bluetooth is using the same frequencies but is doing frequency jumping and is not staying one the same frequency and is low power so not so dangers and in the ground its using the same underlying radio format / protocol (IEEE 802.15.4) so is more or less like on Zigbee network but gave BT on top. If you can move all WiFi to 5Ghz but i think not realistic if not trowing 90% if all WiFi devices away :-(( One not finished Wiki page with WiFI / Ziigbee channels: https://github.com/zigpy/zigpy/wiki/Zigbee---Changing-channel Sorry its little late so my head is not so good writing :-( |
Surprise - surprise...
|
Very interesting !!The 149 is formed if ZHA /bellows then it have So the 147 and 148 you need leaving and reforming the network for getting the right setting of the working mode (verified with bellows -info as you have done). Trying do one "bellows - leave" with "bellow CLI" and then starting HA/ZHA with the right config and i think its forming one new network with the ZHA config in HA. You can see in the HA long wot the network parameters is so no need stopping and using CLI ("./config/"home-assistant.log in your HA config folder. Then you have the "working mode" its possible changing the channel from HA with services. I must looking how i was doing it before. |
I have finding it how i did changing the channel on the fly and did not need repairing all devices (not all device dont liking it but most "normal" is doing it). You need installing the utility https://github.com/Adminiuga/zha_custom but its only copy and putting in the config and restarting HA. Edit: One issue with changing channel with EZSP zigpy/bellows#191 |
It shall being possible forming the network with config parameters from HA config: And i have finding the parameters that can being stetted: zigpy/zigpy#154 (comment) |
By the way @banksy-git Is it OK "spamming" your git with this problem or shall we moving to one other place ?? |
I have putting one request for implanting leave command in in ZHA_custom Adminiuga/zha_custom#4 for making it easier forcing reforming of the network. |
" How would I do that? There is a bunch of unmarked text. I tried to search for "bellows/zigpy" but there was no channel mentioned nearby... |
From my test system so you can searching for key words:
Very likely you need putting up the debug logging for see all things: https://github.com/zigpy/zigpy/wiki/Zigpy-Advanced-Configuration |
I have getting one very interesting thinking of very large Zigbee network that can crashing them. zigpy/zigpy#635 (reply in thread) Example: room 1 2 3 4 Example you have only the range 20 - 25 then WiFi is blocking the lower ones. I hope you have getting your network(s) up and running also the high positioned ones !! |
Thank you, my dear friend! Your help is very valuable. Since 3 out of 4 of my routers are WiFi interfaced (sonof zbridge), and I am pretty determined to exterminate the 2.4Ghz WiFi from my network, I have ordered some new equipment to replace those. Once it arrives I'll start rebuilding the whole thing from scratch. Now with WiFi present I see that it is usless to expect the device (I mean Sonoff zigbee bridge) having WiFi and Zigbe emitters spaced within 10mm from each other to function properly... And I have only one coordinator with ethernet interface (TYZB-01) at the moment, which, by the way has recorded no errors in 3 days of functioning (it has 55 devices on it's network). |
Great to hearing that you not have throwing 200 Zigbee devices away :-)) The Sonoff have one much better EFR32MG21 but the WiFi is making it not very stable..... Tuya ZBGW is having one slower but robuster EFR32MG1 but my short experience of it is very positive (if not corrupting the config so cant login to it like i have done on one). I think 2 or 3 (or 4) tuya ZBGW with EZSP 6.7.8.0 is being one god solution if getting the configuration working OK and not getting bad interference from the surrounding. Have you looking on making one backup of one coordinator and restoring it on on new one ? I can pinging the bellows dev if you need help with it and i think hi is more in your time zone ;-) |
Since we're somewhat on the topic, what's the procedure to upgrade the firmware? |
What i can see you must using bellows for putting the NCP in bootloadre mode. |
That's what's confusing me as it will only print if you ignore warnings? |
I was able to use the upgrade script to sucessfully upgrade my Aldi gateway from 6.5.0.0 to 6.7.8.0. According to the recommended firmware versions page of the The first time I tried, the upgrade script hung:
I had to reboot the gateway to get it back into a mode that would respond to HA again. I could see it was waiting for the xmodem transfer to start. So I tried restarting the serial gateway in software flow control mode:
This time it worked and the upgrade procedure was sucessful:
In Homeassistant:
|
I have making one "copy and past" updating of the upgrading script that is rebooting the TBGW and then uploading the GLB file (in the same way i have doing on ESPHome ZBB).
Reboot in to bootloader and updating the NCP to EZSP 6.9.2.0 on one "IKEA Billy EZSP" thru one WeMos D1 Mini running ESPHome with serial server on alternate com pins. |
@challs |
@challs Thanks for your comment, really helped me out a lot. |
I am in the process of moving my old HA installation over to HA-OS running
Raspberry 4 8GB,
I will write about it on my github page, there will be code examples and my
running configuration that you can follow on:
https://github.com/sekt1953/HomeAssistant
page is in Danish, but google translate can work wonders
Den tir. 25. okt. 2022 kl. 00.37 skrev wangeris ***@***.***>:
… @challs <https://github.com/challs> Thanks for your comment, really
helped me out a lot.
Had to run everything on port 8888 instead of 7777 tho
and before running
/tuya/serialgateway -p 7777 -f
had to run command
killall serialgateway
It finally worked after 2 hours of head-bashing.
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADOCKK2AU6QDXHZLIIVYEPLWE4FSTANCNFSM4ZRYPJKA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
m@server: WARNING: THIS TOOL COMES WITH NO WARRANTY. USE AT YOUR OWN RISK. This will replace the firmware on your ZigBee Network Co-Processor
To begin, first place device in bootloader mode using Bellows, e.g.:
And then enter the word: UPGRADE below
|
Hello!
It is a nice jab you've done, but it requires some more effort to fix the issues.
Currently, after updating to the latest firmware suggested ( NCP_UHW_MG1B232_678_PA0-PA1-PB11_PA5-PA4.gbl)
I am having all sorts of troubles running zigbee network, and I have a big one (~200 devices), though even in redundunt state (~50 devices - all bulbs) it fails instantly. I am getting the following errors in the log of my HA instance runnin only ZHA integration for the test purpose:
Often the coordinator just gets stuck and even hardreboot does not save the situation - I have to delete the configuration and reinstall from scratch ZHA to bring it back to life ... for a litle while...
That what the state of the events is at present moment...
The text was updated successfully, but these errors were encountered: