[Fermé] Zigate message de domiticz : serial read from zigate - error while reading device....

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Yves05
Messages : 7
Inscription : 01 mai 2019, 17:34

[Fermé] Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Yves05 »

Bonjour, après de longues recherches je vous appelle au secours!
Voilà mon PB, j'utilse domoticz installé sur une machine virtuelle sur la Freebox Delta, tout fonctionnait bien jusqu' à une longue coupure d’électricité qui a mis les batteries de l'onduleur, sur lequel st branchée la Delta, à plat.
La Freebox a bien redémarré, mais coté Zigate, ce n'est pas le cas et je misère depuis une semaine pour trouver le PB....

J'ai essayé de recharger le firmware (qui était en 3.1e, passer en version3.20, pas d'amélioration

J'ai branché la zigate sur un PI4, le PB est le même:
on voit bien l'initialisation entre domoticz (en version 2021.1) et le plugin (en version stable 5 .1.015) et même j'ai la version de la zigate:
installer version number 3.20
branch version: ==>production <==

ensuite j'ai un message:
zigate transport: Zigateseriallisten thread stop, puis Writer _thread thread stop
je n'arriva pas à copier le texte donc je vous met une copie d'écran

Autre chose quand je branche la ziagte sur un port USB de mon PC sous W10, et que j'utilise TestGUI_ZiGate_NXP-4, tout semble bien se passer je vois passer les messages des dispositifs thermomètre aqara Xiaomi, télécommande Loratap.... mais je ne sais pas interpréter ces messages et je vous en met une copie ci-dessous:

Code : Tout sélectionner

  Type: 0x8000 (Status)
  Length: 9
  Status: 0x00 (Success)
  SQN: 0x00
  Message: 
Type: 0x8010 (Version)
  Length: 5
  Application: 3
  SDK: 800
Type: 0x8000 (Status)
  Length: 9
  Status: 0x00 (Success)
  SQN: 0x00
  Message: 
Type: 0x8024 (Network Up)
  Status: 0x01
  Short Address: 0x0000
  Extended Address: 0x158D00021E2C87
  Channel: 11
Type: 0x8000 (Status)
  Length: 9
  Status: 0x00 (Success)
  SQN: 0x99
  Message: 
Type: 0x8012 (Unrecognized)
Type: 0x004D (End Device Announce)
  Short Address: 0x1B01
  Extended Address: 0x804B50FFFE21AC7D
  MAC Capability: 0x80
    Alternate PAN Coordinator: False
    Device Type: End Device
    Power Source: Battery
    Receiver On When Idle: False
    Security Capability: Standard
    Allocate Address: True
Type: 0x004D (End Device Announce)
  Short Address: 0x1B01
  Extended Address: 0x804B50FFFE21AC7D
  MAC Capability: 0x80
    Alternate PAN Coordinator: False
    Device Type: End Device
    Power Source: Battery
    Receiver On When Idle: False
    Security Capability: Standard
    Allocate Address: True
Type: 0x8701 (Route Discovery Confirm)
  SQN: 0x00
  Status: 0x00
  Network Status: 0x04
Type: 0x8012 (Unrecognized)
Type: 0x8011 (Unrecognized)
Type: 0x8002 (Data Indication)
  Status: 0x00
  Profile ID: 0x0104 (ZigBee HA)
  Cluster ID: 0x000A (General: Time)
  Source EndPoint: 0x01
  Destination EndPoint: 0x01
  Source Address Mode: 0x02
  Source Address: 0200
  Destination Address Mode: 0x00
Type: 0x8012 (Unrecognized)
Type: 0x8011 (Unrecognized)
Type: 0x8095 (On/Off Update)
  SQN: 0x11
  EndPoint: 0x01
  Cluster ID: 0x0006 (General: On/Off)
  Src Addr Mode: 0x02
  Src Addr Mode: 0x1B01
  Status: 0xFD
Type: 0x8095 (On/Off Update)
  SQN: 0x11
  EndPoint: 0x01
  Cluster ID: 0x0006 (General: On/Off)
  Src Addr Mode: 0x02
  Src Addr Mode: 0x1B01
  Status: 0xFD
Type: 0x8095 (On/Off Update)
  SQN: 0x12
  EndPoint: 0x02
  Cluster ID: 0x0006 (General: On/Off)
  Src Addr Mode: 0x02
  Src Addr Mode: 0x1B01
  Status: 0xFD
Type: 0x8095 (On/Off Update)
  SQN: 0x12
  EndPoint: 0x02
  Cluster ID: 0x0006 (General: On/Off)
  Src Addr Mode: 0x02
  Src Addr Mode: 0x1B01
  Status: 0xFD
Type: 0x8095 (On/Off Update)
  SQN: 0x13
  EndPoint: 0x03
  Cluster ID: 0x0006 (General: On/Off)
  Src Addr Mode: 0x02
  Src Addr Mode: 0x1B01
  Status: 0xFD
J'ai appuyé sur les 3 boutons de la télécommande, on les voit passer sur les derniers messages avec les endpoint 0x01, 0x02 et 0x03
Voilà ou j'en suis j'ai vérifié le wifi de la freebox, il est sur le canal 5, ma zigate sur le canal 13

Dites moi ce que je fais mal, je dois faire une erreur tellement grosse que je ne la vois pas....

Merci d'avance de vos réponse, et dites moi ce dont vous avez besoin comme autres renseignements (j'ai vérifié les ports usb de la freebox et du Pi4, tout est ok avec d'autres appareils que la zigate

et pour compléter mon message ci-dessus, le dernier message d'erreur du plugin:

7412 : Object {"Time":"18/12/2021 13:54:30","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
LastLog : 7412
StartTime : "18/12/2021 12:51:45"
FirmwareVersion : "0320"
FirmwareMajorVersion : "03"
LastLog : 11

Merci d'avance de votre aide
Yves
Pièces jointes
Sans titre 1.jpg
Sans titre 1.jpg (88.45 Kio) Consulté 2350 fois
Dernière modification par Keros le 18 avr. 2022, 17:06, modifié 2 fois.
Raison : Fermeture du sujet car sans réponses
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par pipiche »

Ce qu’il faudrait ce sont les logs du plug-in/DomoticZ pour comprendre ce qu’il se passe

Tu indiques que tu es sur un PI4. tu as bien fait attention a mettre la ZiGate sur un port USB2 (pas les USB3).

Envoyé de mon iPhone en utilisant Tapatalk
Dernière modification par pipiche le 18 déc. 2021, 21:10, modifié 1 fois.
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Keros »

Bonjour Yves05 et bienvenu sur le forum ;)

Il serait bien que tu nous mettes les logs complets au démarrage du plugin et même au démarrage de DomoticZ si possible.

Il faudrait que tu arrives à nous faire un copier-coller. Si tu n'y arrives pas le sujet [A lire avant de poster] Guide pour bien formuler une demande.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Yves05
Messages : 7
Inscription : 01 mai 2019, 17:34

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Yves05 »

@Keros & Pipiche, merci de vos réponses.
Mon Pb est apparu sur la machine virtuelle de la Freebox Delta sur laquelle est installé Domoticz après des mois de bon fonctionnement et je retrouve le même PB sur le PI4 que j'utilise pour tester, ça m'évite des AR incessants au garage pour accéder à la Freebox.

Je n'avais pas pris garde à l'obligation d’utiliser un port USB2, mais c'est fait; la zigate est sur un port USB2 sur le PI4.

Je vous mets en PJ une copie d'écran des logs de démarrage de Domoticz (je n'arrive pas à faire de copier/coller du texte, que ce soit avec Chrome ou Firefox, je ne peux que faire une copie d'écran et vous envoyer l'image en PJ).

Et voilà les logs d'erreur du plugin:

Code : Tout sélectionner

11 : Object {"8095":{"Time":"18/12/2021 14:00:12","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4108] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8096":{"Time":"18/12/2021 14:00:12","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8097":{"Time":"18/12/2021 14:00:13","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4109] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8098":{"Time":"18/12/2021 14:00:13","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8099":{"Time":"18/12/2021 14:00:14","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4110] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8100":{"Time":"18/12/2021 14:00:14","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8101":{"Time":"18/12/2021 14:00:15","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4111] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8102":{"Time":"18/12/2021 14:00:15","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8103":{"Time":"18/12/2021 14:00:16","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4112] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8104":{"Time":"18/12/2021 14:00:16","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8105":{"Time":"18/12/2021 14:00:17","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4113] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8106":{"Time":"18/12/2021 14:00:17","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8107":{"Time":"18/12/2021 14:00:18","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4114] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8108":{"Time":"18/12/2021 14:00:18","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8109":{"Time":"18/12/2021 14:00:19","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4115] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8110":{"Time":"18/12/2021 14:00:19","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8111":{"Time":"18/12/2021 14:00:20","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4116] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8112":{"Time":"18/12/2021 14:00:20","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8113":{"Time":"18/12/2021 14:00:21","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[4117] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"8114":{"Time":"18/12/2021 14:00:21","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"LastLog":8114,"StartTime":"18/12/2021 12:51:45","FirmwareVersion":"0320","FirmwareMajorVersion":"03"}
12 : Object {"59":{"Time":"20/12/2021 09:27:38","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 90] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"60":{"Time":"20/12/2021 09:27:38","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"61":{"Time":"20/12/2021 09:27:39","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 91] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"62":{"Time":"20/12/2021 09:27:39","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"63":{"Time":"20/12/2021 09:27:40","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 92] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"64":{"Time":"20/12/2021 09:27:40","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"65":{"Time":"20/12/2021 09:27:41","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 93] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"66":{"Time":"20/12/2021 09:27:41","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"67":{"Time":"20/12/2021 09:27:42","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 94] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"68":{"Time":"20/12/2021 09:27:42","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"69":{"Time":"20/12/2021 09:27:43","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 95] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"70":{"Time":"20/12/2021 09:27:43","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"71":{"Time":"20/12/2021 09:27:44","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 96] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"72":{"Time":"20/12/2021 09:27:44","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"73":{"Time":"20/12/2021 09:27:45","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 97] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"74":{"Time":"20/12/2021 09:27:45","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"75":{"Time":"20/12/2021 09:27:46","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 98] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"76":{"Time":"20/12/2021 09:27:46","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"77":{"Time":"20/12/2021 09:27:47","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ 99] I have hard time to get ZiGate Version. Mostlikly ZiGate communication doesn't work","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"78":{"Time":"20/12/2021 09:27:47","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"[ ] Stop the plugin and check ZiGate.","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"},"LastLog":78,"StartTime":"20/12/2021 09:26:08","FirmwareVersion":null,"FirmwareMajorVersion":null}
13 : Object {"0":{"Time":"20/12/2021 09:28:19","Module":"TransportRx","nwkid":"None","PluginHealth":"Startup","message":"check_frame_lenght","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23","context":{"Error code":"TRANS-CHKLEN-01","Zero1":1,"BinMsg":"bytearray(b'\\x01\\x80\\x00\\x03 \\x00\\x03')","AsciiMsg":"01800003200003","LastRawMsg":"0180021002100219990210021002101002100210021002100201800210021320021003","len":7,"MsgType":"8000","Length":800,"ReceivedChecksum":0,"ComputedLength":807,"ReceveidLength":7,"Queues":{"ListOfCommands":{"1":{"cmd":"0010","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"SENT","TimeStamp":"20/12/2021 09:28:19","Semaphore":1}},"writeQueue":"[(2, '{\"cmd\": \"0010\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 2, \"NwkId\": null, \"TimeStamp\": 1639988896.08159}')]","forwardQueue":"deque([])","SemaphoreValue":1,"ForwardedQueueCurrentSize":0,"WriterQueueCurrentSize":0},"Firmware":{"writerTimeOut":1,"compatibility_mode":false,"dzCommunication":false,"with_aps_sqn":false,"with_8012":false,"FirmwareWithNoSQN":false,"nPDU":null,"aPDU":null},"Thread":{"byPassDzCommunication":1,"ThreadName":"ZiGateSerial_23"}}},"1":{"Time":"20/12/2021 09:28:19","Module":"TransportRx","nwkid":"None","PluginHealth":"Startup","message":"on_message Frame error Crc/len bytearray(b'\\x01\\x80\\x00\\x03 \\x00\\x03')","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23"},"2":{"Time":"20/12/2021 09:28:26","Module":"TransportRx","nwkid":"None","PluginHealth":"Startup","message":"decode8000 - command miss-match 0010 vs. 0009","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23","context":{"Error code":"TRANS-8000-02","EncodedData":"0000000900000000","PacketType":"0009","Status":"00","sqn_app":"00","sqn_aps":"00","sqn_typ":"00","Queues":{"ListOfCommands":{"2":{"cmd":"0010","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"8000","TimeStamp":"20/12/2021 09:28:19","Semaphore":0},"3":{"cmd":"0009","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"SENT","TimeStamp":"20/12/2021 09:28:26","Semaphore":0}},"writeQueue":"[]","forwardQueue":"deque([])","SemaphoreValue":0,"ForwardedQueueCurrentSize":0,"WriterQueueCurrentSize":0},"Firmware":{"writerTimeOut":1,"compatibility_mode":false,"dzCommunication":false,"with_aps_sqn":true,"with_8012":true,"FirmwareWithNoSQN":false,"nPDU":0,"aPDU":0},"Thread":{"byPassDzCommunication":1,"ThreadName":"ZiGateSerial_23"}}},"3":{"Time":"20/12/2021 09:28:39","Module":"TransportRx","nwkid":"None","PluginHealth":"Startup","message":"decode8000 - command miss-match 0009 vs. 0016","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23","context":{"Error code":"TRANS-8000-02","EncodedData":"0000001600000000","PacketType":"0016","Status":"00","sqn_app":"00","sqn_aps":"00","sqn_typ":"00","Queues":{"ListOfCommands":{"3":{"cmd":"0009","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"8000","TimeStamp":"20/12/2021 09:28:26","Semaphore":0},"4":{"cmd":"0016","datas":"2953093f","ackIsDisabled":false,"waitForResponseIn":false,"Status":"SENT","TimeStamp":"20/12/2021 09:28:39","Semaphore":1}},"writeQueue":"[(5, '{\"cmd\": \"0017\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 5, \"NwkId\": null, \"TimeStamp\": 1639988911.0766568}'), (7, '{\"cmd\": \"0014\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 7, \"NwkId\": null, \"TimeStamp\": 1639988911.0775619}'), (6, '{\"cmd\": \"0049\", \"datas\": \"FFFC0000\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 6, \"NwkId\": null, \"TimeStamp\": 1639988911.0771632}'), (8, '{\"cmd\": \"0015\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 8, \"NwkId\": null, \"TimeStamp\": 1639988911.078142}'), (9, '{\"cmd\": \"0018\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 9, \"NwkId\": null, \"TimeStamp\": 1639988916.0911705}'), (10, '{\"cmd\": \"0806\", \"datas\": \"00\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 10, \"NwkId\": null, \"TimeStamp\": 1639988916.0917258}'), (11, '{\"cmd\": \"0019\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 11, \"NwkId\": null, \"TimeStamp\": 1639988916.092243}')]","forwardQueue":"deque([])","SemaphoreValue":1,"ForwardedQueueCurrentSize":0,"WriterQueueCurrentSize":0},"Firmware":{"writerTimeOut":1,"compatibility_mode":false,"dzCommunication":false,"with_aps_sqn":true,"with_8012":true,"FirmwareWithNoSQN":false,"nPDU":0,"aPDU":0},"Thread":{"byPassDzCommunication":1,"ThreadName":"ZiGateSerial_23"}}},"4":{"Time":"20/12/2021 09:28:39","Module":"TransportRx","nwkid":"None","PluginHealth":"Startup","message":"decode8000 - command miss-match 0016 vs. 0017","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23","context":{"Error code":"TRANS-8000-02","EncodedData":"0000001700000000","PacketType":"0017","Status":"00","sqn_app":"00","sqn_aps":"00","sqn_typ":"00","Queues":{"ListOfCommands":{"3":{"cmd":"0009","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"8000","TimeStamp":"20/12/2021 09:28:26","Semaphore":0},"4":{"cmd":"0016","datas":"2953093f","ackIsDisabled":false,"waitForResponseIn":false,"Status":"8000","TimeStamp":"20/12/2021 09:28:39","Semaphore":1},"5":{"cmd":"0017","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"SENT","TimeStamp":"20/12/2021 09:28:39","Semaphore":0}},"writeQueue":"[(6, '{\"cmd\": \"0049\", \"datas\": \"FFFC0000\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 6, \"NwkId\": null, \"TimeStamp\": 1639988911.0771632}'), (7, '{\"cmd\": \"0014\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 7, \"NwkId\": null, \"TimeStamp\": 1639988911.0775619}'), (10, '{\"cmd\": \"0806\", \"datas\": \"00\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 10, \"NwkId\": null, \"TimeStamp\": 1639988916.0917258}'), (8, '{\"cmd\": \"0015\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 8, \"NwkId\": null, \"TimeStamp\": 1639988911.078142}'), (9, '{\"cmd\": \"0018\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 9, \"NwkId\": null, \"TimeStamp\": 1639988916.0911705}'), (11, '{\"cmd\": \"0019\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 11, \"NwkId\": null, \"TimeStamp\": 1639988916.092243}')]","forwardQueue":"deque([])","SemaphoreValue":0,"ForwardedQueueCurrentSize":0,"WriterQueueCurrentSize":0},"Firmware":{"writerTimeOut":1,"compatibility_mode":false,"dzCommunication":false,"with_aps_sqn":true,"with_8012":true,"FirmwareWithNoSQN":false,"nPDU":0,"aPDU":0},"Thread":{"byPassDzCommunication":1,"ThreadName":"ZiGateSerial_23"}}},"5":{"Time":"20/12/2021 09:28:47","Module":"TransportRx","nwkid":"None","PluginHealth":"Ready","message":"check_frame_crc","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23","context":{"Error code":"TRANS-CHKCRC-01","BinMsg":"bytearray(b'\\x01\\x80\\x00\\x00\\t\\x9d@\\xff\\xfe!\\xac}\\x00\\xff\\x00\\x03')","AsciiMsg":"01800000099d40fffe21ac7d00ff0003","LastRawMsg":"01800210021002199d0250fffe21ac7d0210ff021003","len":16,"MsgType":"8000","Length":9,"ComputedChecksum":199,"ReceivedChecksum":157,"Queues":{"ListOfCommands":{"8":{"cmd":"0015","datas":"","ackIsDisabled":false,"waitForResponseIn":false,"Status":"SENT","TimeStamp":"20/12/2021 09:28:47","Semaphore":0}},"writeQueue":"[(9, '{\"cmd\": \"0018\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 9, \"NwkId\": null, \"TimeStamp\": 1639988916.0911705}'), (11, '{\"cmd\": \"0019\", \"datas\": \"01\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 11, \"NwkId\": null, \"TimeStamp\": 1639988916.092243}'), (10, '{\"cmd\": \"0806\", \"datas\": \"00\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 10, \"NwkId\": null, \"TimeStamp\": 1639988916.0917258}'), (13, '{\"cmd\": \"0017\", \"datas\": \"\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 13, \"NwkId\": null, \"TimeStamp\": 1639988919.3147304}'), (12, '{\"cmd\": \"0016\", \"datas\": \"29530947\", \"ackIsDisabled\": false, \"waitForResponseIn\": false, \"InternalSqn\": 12, \"NwkId\": null, \"TimeStamp\": 1639988919.314536}')]","forwardQueue":"deque([])","SemaphoreValue":0,"ForwardedQueueCurrentSize":0,"WriterQueueCurrentSize":0},"Firmware":{"writerTimeOut":1,"compatibility_mode":false,"dzCommunication":false,"with_aps_sqn":true,"with_8012":true,"FirmwareWithNoSQN":false,"nPDU":1,"aPDU":0},"Thread":{"byPassDzCommunication":1,"ThreadName":"ZiGateSerial_23"}}},"6":{"Time":"20/12/2021 09:28:47","Module":"TransportRx","nwkid":"None","PluginHealth":"Ready","message":"on_message Frame error Crc/len bytearray(b'\\x01\\x80\\x00\\x00\\t\\x9d@\\xff\\xfe!\\xac}\\x00\\xff\\x00\\x03')","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23"},"7":{"Time":"20/12/2021 09:29:04","Module":"TransportRx","nwkid":"None","PluginHealth":"Ready","message":"serial_read_from_zigate - error while reading device reports readiness to read but returned no data (device disconnected or multiple access on port?)","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"ZiGateSerial_23"},"8":{"Time":"20/12/2021 09:32:26","Module":"Plugin","nwkid":"None","PluginHealth":"Ready","message":"pingZigate - no Heartbeat with Zigate, try to reConnect","PermitToJoin":{"Duration":0,"Starttime":1639988927},"Thread":"MainThread"},"LastLog":8,"StartTime":"20/12/2021 09:28:01","FirmwareVersion":"0320","FirmwareMajorVersion":"03","PluginVersion":["stable5-5.1.015"]}
14 : Object {"0":{"Time":"20/12/2021 09:33:14","Module":"TransportRx","nwkid":"None","PluginHealth":"Ready","message":"serial_read_from_zigate - error while reading device reports readiness to read but returned no data (device disconnected or multiple access on port?)","PermitToJoin":{"Duration":0,"Starttime":1639989178},"Thread":"ZiGateSerial_23"},"1":{"Time":"20/12/2021 09:36:28","Module":"Plugin","nwkid":"None","PluginHealth":"Ready","message":"pingZigate - no Heartbeat with Zigate, try to reConnect","PermitToJoin":{"Duration":0,"Starttime":1639989178},"Thread":"MainThread"},"LastLog":1,"StartTime":"20/12/2021 09:32:28","FirmwareVersion":"0320","FirmwareMajorVersion":"03","PluginVersion":["stable5-5.1.015"]}
15 :
161 : Object {"Time":"20/12/2021 09:43:49","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
162 : Object {"Time":"20/12/2021 09:43:49","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
163 : Object {"Time":"20/12/2021 09:43:54","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
164 : Object {"Time":"20/12/2021 09:43:54","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
165 : Object {"Time":"20/12/2021 09:43:59","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
166 : Object {"Time":"20/12/2021 09:43:59","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
167 : Object {"Time":"20/12/2021 09:44:04","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
168 : Object {"Time":"20/12/2021 09:44:04","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
169 : Object {"Time":"20/12/2021 09:44:09","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
170 : Object {"Time":"20/12/2021 09:44:09","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
171 : Object {"Time":"20/12/2021 09:44:14","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
172 : Object {"Time":"20/12/2021 09:44:14","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
173 : Object {"Time":"20/12/2021 09:44:19","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
174 : Object {"Time":"20/12/2021 09:44:19","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
175 : Object {"Time":"20/12/2021 09:44:24","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
176 : Object {"Time":"20/12/2021 09:44:24","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
177 : Object {"Time":"20/12/2021 09:44:29","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
178 : Object {"Time":"20/12/2021 09:44:29","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
179 : Object {"Time":"20/12/2021 09:44:34","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"We are having difficulties to start Zigate. Basically we are not receiving what we expect from Zigate","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
180 : Object {"Time":"20/12/2021 09:44:34","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"Plugin is not started ...","PermitToJoin":{"Duration":0,"Starttime":0},"Thread":"MainThread"}
LastLog : 180
StartTime : "20/12/2021 09:36:29"
FirmwareVersion : "0320"
FirmwareMajorVersion : "03"

Merci de votre implication et de vos réponses
Yves
Pièces jointes
dmtz pi4 logs.jpg
dmtz pi4 logs.jpg (1.31 Mio) Consulté 2280 fois
Dernière modification par Keros le 20 déc. 2021, 11:11, modifié 1 fois.
Raison : Ajout des balises code pour faciliter la lecture
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par pipiche »

Pour moi, c'est un problème plutôt coté hardware:

1- quel type de module USB-TTL as-tu sur la Zigate Bleu ou Rouge ? Si bleu il est possible qu'il soit défaillant.
2- est-ce que la Zigate est connectée via une rallonge USB ? sur un Hub USB ? dans les 2 cas essayes de la mettre sur le port directement du PI

Autre piste, si tu as d'autres plugin qui tournent sous Domoticz, si tu arretes tous les plugin et tu ne gardes que le plugin Zigate que se passe-t-il ?
Yves05
Messages : 7
Inscription : 01 mai 2019, 17:34

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Yves05 »

Merci Pipiche des tes réponse et suggestions.
Donc:
le convertisseur TTL USB est un rouge:
Bus 001 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]

J'ai testé la Zigate sur rallonge USB et sans, sur hub usb alimenté et sans, sur la freebox Delta et sur le PI4; le résultat est tjrs le même.
Il me semble que coté USB, ça fonctionne, mais coté réseau Zigbee, il y un PB...
J'ai également débranché toutes les prises Zigbee( Blitzwolf et Ikea) qui pourraient perturber le réseau Zigbee, pas d'amélioration.
il reste des thermomètres aqara, une télécommande Loratap, et qlq contacteurs d'ouverture de porte aqara qui n'émettent pas en permanence et qui donc ne devraient pas brouiller le réseau ( à moins que?),

J'ai vérifié le wifi de la Freebox, il est sur le canal 5, débranché la passerelle Netatmo, et désactivé le wifi de mon smartphone; pas d'amélioration.

Je vais essayer d'aller brancher le pi4 avec la Zigate ailleurs que chez moi pour vérifier que ce n'est pas une perturbation venant de chez moi qui brouille le réseau....

Et si rien ne change je changerai de Zigate (mais après que ma Pizigate soit tombée en panne je suis passé à la Zigate USB, et ça commence à faire beaucoup de pannes...).

D'autres idées?

Merci à vous

Yves
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Keros »

Gardes tes prises connectées branchées : elles participent au maillage de ton réseau.

Sur le Pi4, tu te branches bien sur un port USB 2 (il y a des soucis si la ZiGate est sur l'USB 3) ?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Yves05
Messages : 7
Inscription : 01 mai 2019, 17:34

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Yves05 »

Bon, je vous donne des nouvelles du feuilleton...
d’abord j'ai supprimé toutes le prises (merci Keros pour le conseil sur le maillage mais j'avais un doute sur une perturbation amenée par une des prises suite à la longue panne de courant), et ça n'a rien changé donc pas de PB du coté prises zigbee.

Et comme j'avais cru voir qu’après la mise à jour du firmware sur PC, il y avait des messages qui circulaient, j'ai installé domoticz sur windows 10, et.... ça marche: la zigate fonctionne parfaitement, ça c'est la bonne nouvelle!

J'en ai déduit que le PB venait plutôt du coté USB, et j'ai continué mes recherches.....
Ce matin j'ai enfin trouvé le PB et l'erreur que j'ai fait:
comme à chaque redémarrage les deux appareils branchés changeaient aléatoirement de port, j'ai décidé de fixer le nom des ports USB sur lesquels sont raccordés la zigate et le module TIC avec un:
sudo nano /etc/udev/rules.d/10-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idProduct}=="6015", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB_Cartelectronic_TIC"
SUBSYSTEM=="tty", ATTRS{idProduct}=="ea60", ATTRS{idVendor}=="10c4", SYMLINK+="ttyUSB_Zigate"


l'idée n'était pas mauvaise, sauf que j'ai pris comme IdVendor et IdProduct celui du port racine de l'USB à la place de celui du module TIC, et mes 2 appareils se retrouvaient sur le même port USB.......

Ce qui m'a induit en erreur, c'est que le PB est arrivé suite à la panne d'électricité (et donc au redémarrage et surement à la prise en compte de cette modification!).

Bon; j'y ai passé beaucoup (trop) de temps, mais je me suis accroché, j'y suis arrivé :D :D et j'ai appris pas mal de choses.
Merci de vos conseils et de votre soutien, je vais tout ré-appairer tranquillement!!

Il me reste une dernière question: suite au redémarrage de la Zigate, j'ai mis à jour le plugin, la zigate est sur le firmware 3.20 legacy: est ce que ça vaut la peine de passer sur le dernier firmware: 3.21 optiPDM, avant de tout ré-appairer?

Yves
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par Keros »

Oui il peut y avoir des soucis avec les persistants USB qui ont les mêmes valeurs. Il faut faire attention. Mais ce n'est pas évident d'y penser lorsque les membres remontent des soucis de connexion. On peut se dire que si ça fonctionne, ça ne vient pas de là, mais à tort :?

Si tu dois réappairer tous tes objets, oui, profites-en pour passer ton firmware en optiPDM. Ce sera fait.
Jette un coup d'œil à la procédure sur le wiki.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Zigate message de domiticz : serial read from zigate - error while reading device....

Message par pipiche »

Yves05 a écrit : 28 déc. 2021, 13:23 Il me reste une dernière question: suite au redémarrage de la Zigate, j'ai mis à jour le plugin, la zigate est sur le firmware 3.20 legacy: est ce que ça vaut la peine de passer sur le dernier firmware: 3.21 optiPDM, avant de tout ré-appairer?

Yves
Bravo !!!

Il n'y a pas besoin de ré appairage entre 320 OptiPDM et 321 OptiPDM.
Pour ce qui est de la nécessité du passage en 321 il est nécessaire dès lors où tu as les nouveau détecteurs d'ouverture de porte Xiaomi/Aqara, sinon pas d'urgence
Répondre