Comments (17)
Associated zigpy issue: zigpy/zigpy#1067
from zigpy-zigate.
Could you include a debug log of it correctly starting up with the last-working release?
from zigpy-zigate.
I downgraded to previous release 2022.9.7 and it's working again.
Below the logs
zigpy-bug2.txt
from zigpy-zigate.
It appears that even in this version, every single packet is failing to send but the error is being ignored:
2022-10-06 22:07:13.621 DEBUG (MainThread) [zigpy_zigate.zigbee.application] APS Data confirm Fail 196 Status.unknown_0xD4
What hardware specifically are you using? Is this a ZiGate or ZiGate+?
from zigpy-zigate.
ZiGate first version
from zigpy-zigate.
Can you try to update your ZiGate's firmware? It looks like the latest version is now 3.21: https://github.com/fairecasoimeme/ZiGate/releases
from zigpy-zigate.
Do you know if I can safely upgrade from 3.1d to 3.21 without having to repair all devices ? I've got about 40 devices and I can't do that easily.
from zigpy-zigate.
I don't own a first generation ZiGate so I am not sure.
@pipiche38 any ideas? Is this error code expected?
from zigpy-zigate.
It seems that 3.21 is for v2 only. I'm not that far off with my current version 3.1d.
from zigpy-zigate.
I don't own a first generation ZiGate so I am not sure.
@pipiche38 any ideas? Is this error code expected?
I don't know what you mean is this code expected. In fact these are linked to 0x8011 and 0x8012 APS Success/Failure.
3.1d for me is an old stuff and 3.21 which is also almost 1 year old is the best to take for ZiGate V1 ( https://github.com/fairecasoimeme/ZiGate/releases/ )
Last you will have to check with @fairecasoimeme if you don't need to re-initialise the Zigate due to the newest firmware version ? and so re-pair all devices
from zigpy-zigate.
I'm referring to this:
# Sending a `permit(0)` broadcast
2022-10-06 10:15:54.101 DEBUG (MainThread) [zigpy_zigate.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=10, profile_id=0, cluster_id=<ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, data=Serialized[b'\n\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
# Corresponding ZiGate command
2022-10-06 10:15:54.101 DEBUG (MainThread) [zigpy_zigate.api] Sending CommandId.SEND_RAW_APS_DATA_PACKET (b'\x04\xff\xfc\x00\x00\x006\x00\x00\x00\x00\x03\n\x00\x00'), waiting for status: True, waiting for response: None
2022-10-06 10:15:54.101 DEBUG (MainThread) [zigpy_zigate.uart] Send: 0x0530 b'04fffc0000003600000000030a0000'
2022-10-06 10:15:54.102 DEBUG (MainThread) [zigpy_zigate.uart] Frame to send: b'\x050\x00\x0f\x02\x04\xff\xfc\x00\x00\x006\x00\x00\x00\x00\x03\n\x00\x00'
2022-10-06 10:15:54.102 DEBUG (MainThread) [zigpy_zigate.uart] Frame escaped: b'\x02\x150\x02\x10\x02\x1f\x02\x12\x02\x14\xff\xfc\x02\x10\x02\x10\x02\x106\x02\x10\x02\x10\x02\x10\x02\x10\x02\x13\x02\x1a\x02\x10\x02\x10'
2022-10-06 10:15:54.104 DEBUG (MainThread) [zigpy_zigate.api] Wait for status to command CommandId.SEND_RAW_APS_DATA_PACKET
2022-10-06 10:15:54.191 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 8000000714a6000530000000
# Received an unknown 0xA6 status
2022-10-06 10:15:54.191 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8000 b'a60005300000' LQI:0
2022-10-06 10:15:54.192 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler ResponseId.STATUS [<Status.unknown_0xA6: 166>, 0, 1328, b'\x00\x00']
^^^^^^^^^^^^
According to https://www.nxp.com/docs/en/user-guide/JN-UG-3113.pdf:
0xA6:
zps_APL_APS_E_INVALID_PARAMETER
@guirem's log shows that every single request fails with this same error code (which zigpy-zigate was ignoring), yet the network is functional.
from zigpy-zigate.
to be check with @fairecasoimeme, that is pure ZiGate firmware related things and even more in a RAW Mode manner.
In all cases you shouldn't have any differences between HW version of ZiGate.
from zigpy-zigate.
I've downgraded my ZiGate+ to 3.1e (the earliest firmware available for it) and it still works as before. It must be some problem with 3.1d.
from zigpy-zigate.
I'm confirm this is a firmware problem.
I have no problem with ZiGate V1 USB TTL on firmware 3.21.
You really should upgrade
from zigpy-zigate.
@doudz can I safely upgrade from 3.1d to 3.21-legacy without having to repair all devices?
from zigpy-zigate.
Yes you could upgrade without repairing devices but you just have to take care to not erase the EEPROM
from zigpy-zigate.
I really tried to upgrade my PiZigate v1 w/o success (I have been successful in the past).
I booted on an official image of RPi Debian Bullseye 64bits.
I find the documentation of zigate.fr difficult to browse so after many clicks I collected these steps:
- sudo nano /boot/config.txt to add
enable_uart=1
- sudo nano /boot/cmdline.txt to remove
console=serial0,115200
After the reboot, the blue light still low. I don't know if it's OK.
-
It isn't possible anymore to install the required https://project-downloads.drogon.net/wiringpi-latest.deb package :/
-
I tried to reproduce the Flash instructions by using:
raspi-gpio set 0 op
raspi-gpio set 2 op
raspi-gpio set 2 dh
raspi-gpio set 0 dl
raspi-gpio set 0 dh
- flash with v0.7(r56124)
sudo JennicModuleProgrammer -V 6 -P 115200 -f ZiGate_v3.21-legacy.bin -s /dev/ttyAMA0
Error setting baudrate...
from zigpy-zigate.
Related Issues (20)
- Home assistant error Received unhandled response 0x8012 tradfri IKEA HOT 36
- [zigpy_zigate.api] Received unhandled response 0x8008
- how to access Zigate specific functions HOT 1
- Recent Zigate firmware support Group Address mode in Raw Mode
- No response to command 0x0002 HOT 1
- HA [zigpy_zigate.api] Received unhandled response 0x8008 HOT 3
- [REQUEST] Open ZigBee Coordinator Backup Format support for Zigbee network backups and restoring from and to ZiGate HOT 14
- Unable to install ZHA - zigate - RPi.GPIO with Python 3.10 HOT 1
- Campaign to find additional maintainers of this upstream zigpy-zigate repository? HOT 2
- Release 0.8.0 is unstable HOT 6
- ZHA to handle zeroconf discovery of zigate RadioType in Home Assistant core zha component config_flow.py HOT 1
- command do not follow the Zigate protocol
- RPi.GPIO dependency is no more installed in Home Assistant Core 2022.7.7 HOT 2
- Can not permit join HOT 1
- AttributeError: 'list' object has no attribute 'to_bytes' HOT 1
- PiZigate connecting to ZHA on a docker home assistant result to "Failed to connect" HOT 1
- How is the data of zdo and zcl sent and received? HOT 5
- Error in ZHA logs : ValueError: 253 is not a valid AddressMode
- Confirm compability with new Third Reality Zigbee Coordinator USB Dongle based on Buffalo Lab BL706 radio SoC and ZiGate firmware? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigpy-zigate.