Problemas com usb CC2531 zigbee2mqtt

Boas,

De repente, deixei de conseguir ter a minha rede zigbee a funcionar.

LOG addon zigbee2mqtt:

./run.sh: line 16: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
2019-09-02T11:47:40: PM2 log: Launching in no daemon mode
2019-09-02T11:47:40: PM2 log: App [npm:0] starting in -fork mode-
2019-09-02T11:47:40: PM2 log: App [npm:0] online
> zigbee2mqtt@1.5.1 start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 9/2/2019, 11:47:41 AM Logging to directory: '/share/zigbee2mqtt/log/2019-09-02.11-47-41'
  zigbee2mqtt:info 9/2/2019, 11:47:41 AM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 9/2/2019, 11:47:41 AM Starting zigbee-shepherd
  zigbee2mqtt:info 9/2/2019, 11:47:48 AM Error while starting zigbee-shepherd, attempting to fix... (takes 60 seconds) (Error: request timeout)
  zigbee2mqtt:info 9/2/2019, 11:48:48 AM Starting zigbee-shepherd
  zigbee2mqtt:error 9/2/2019, 11:48:55 AM Error while starting zigbee-shepherd! (Error: request timeout)
  zigbee2mqtt:error 9/2/2019, 11:48:55 AM Press the reset button on the stick (the one closest to the USB) and start again
  zigbee2mqtt:error 9/2/2019, 11:48:55 AM Failed to start
	{"message":"request timeout","stack":"Error: request timeout\n    at CcZnp.<anonymous> (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/cc-znp/index.js:208:22)\n    at Object.onceWrapper (events.js:286:20)\n    at CcZnp.emit (events.js:198:13)\n    at Timeout.<anonymous> (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/cc-znp/index.js:192:18)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"}
  zigbee2mqtt:error 9/2/2019, 11:48:55 AM Exiting...
npm
 ERR! code ELIFECYCLE
npm ERR! errno 1
npm
 ERR! zigbee2mqtt@1.5.1 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zigbee2mqtt@1.5.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-02T10_48_55_944Z-debug.log
2019-09-02T11:49:00: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2019-09-02T11:49:00: PM2 log: App [npm:0] starting in -fork mode-
2019-09-02T11:49:00: PM2 log: App [npm:0] online
> zigbee2mqtt@1.5.1 start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 9/2/2019, 11:49:01 AM Logging to directory: '/share/zigbee2mqtt/log/2019-09-02.11-49-01'
  zigbee2mqtt:info 9/2/2019, 11:49:01 AM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 9/2/2019, 11:49:01 AM Starting zigbee-shepherd
  zigbee2mqtt:info 9/2/2019, 11:49:08 AM Error while starting zigbee-shepherd, attempting to fix... (takes 60 seconds) (Error: request timeout)
  zigbee2mqtt:info 9/2/2019, 11:50:08 AM Starting zigbee-shepherd
  zigbee2mqtt:error 9/2/2019, 11:50:15 AM Error while starting zigbee-shepherd! (Error: request timeout)
  zigbee2mqtt:error 9/2/2019, 11:50:15 AM Press the reset button on the stick (the one closest to the USB) and start again
  zigbee2mqtt:error 9/2/2019, 11:50:15 AM Failed to start
	{"message":"request timeout","stack":"Error: request timeout\n    at CcZnp.<anonymous> (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/cc-znp/index.js:208:22)\n    at Object.onceWrapper (events.js:286:20)\n    at CcZnp.emit (events.js:198:13)\n    at Timeout.<anonymous> (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/cc-znp/index.js:192:18)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"}
  zigbee2mqtt:error 9/2/2019, 11:50:15 AM Exiting...
npm
 ERR! code ELIFECYCLE
npm ERR! errno 1
npm 
ERR! zigbee2mqtt@1.5.1 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR!
 Failed at the zigbee2mqtt@1.5.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-02T10_50_15_862Z-debug.log
2019-09-02T11:50:15: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2019-09-02T11:50:15: PM2 log: App [npm:0] starting in -fork mode-
2019-09-02T11:50:15: PM2 log: App [npm:0] online
> zigbee2mqtt@1.5.1 start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 9/2/2019, 11:50:17 AM Logging to directory: '/share/zigbee2mqtt/log/2019-09-02.11-50-16'
  zigbee2mqtt:info 9/2/2019, 11:50:17 AM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 9/2/2019, 11:50:17 AM Starting zigbee-shepherd

Verifiquei no dmesg no ubuntu :

cdc_acm 3-1:1.0: failed to set dtr/rts

Alguém me pode ajudar ?

O Z2M e o firmware do CC estão actualizados?

o addon está actualizado mas o firmware do CC é o mesmo que tu colocaste (comprei a ti :smile: )

Existe alguma forma de actulizar o firmware sem o CC Debugger ?

Sim, eu lembro-me. Existe uma.forma actualizar com um Arduino mas nunca testei.

Acho que vou ter que desistir do zigbee…não consigo por a funcionar !

Explica lá como tens isso ligado e em que equipamento.

tenho 1 pc antigo com proxmox e numa das VMs tenho o ubuntu com hassio em docker.

Esteve a funcionar tudo bem, mas há 3 dias começou a dar o erro no ubuntu:

cdc_acm 3-1:1.0: failed to set dtr/rts

Vou tentar flashar de novo o CC…já mandei vir o downloader !

O CC2531 deve estar mal passado para dentro da VM. Que configurações tens no Proxmox?

Simplesmente fiz um add device e adicionei o USB id para a VM em questão…e estava a funcionar assim…acho que algo se passa com o CC.

Apostava mais num problema no Proxmox. Mostra lá a página onde isso está configurado no Proxmox e a página da configuração do Addon.

Para resolver esse problema experimenta o seguinte:

  1. Faz Shutdown à VM,
  2. No Proxmox selecciona Hardware >> USB Device e clica em Delete,
  3. Desliga a pen do CC2531
  4. Desliga a máquina do Proxmox
  5. Torna a ligar o CC2531 ( de preferência noutra ficha USB mas se for na mesma não há problema),
  6. Liga a máquina do Proxmox
  7. Quando tiveres o sistema levantado, vai à VM do HA e seleccionas Hardware >> Add >> USB Device e escolhe a opção Use USB Port. Não uses a opção Use USB Vendor/Device ID, por motivos que ainda não consegui esclarecer essa opção dá alguns problemas com o HA.
    Anota%C3%A7%C3%A3o%202019-09-03%20220742
  8. Faz run à VM do HA
  9. Confirma se a porta mudou

Depois diz se funcionou.

Boas,

Desde já agradeço imenso o tempo dispensado…mas continua tudo na mesma. Continuo com o erro:

cdc_acm 3-1:1.0: failed to set dtr/rts

Estou a pensar “religar” o meu Pi para ver se funciona lá.

Tens a certeza que o CC2531 no HA continua na porta ttyACM0? Podes mostrar a lista de hardware que aparece no HA?

Quando corro o addon zigbee2mqtt a mensagem de erro aparece sempre no dmesg

Não foi essa a pergunta que te fiz…

Peço desculpa :slight_smile:

Sem problema, é apenas para confirmar uma questão.

Experimenta na configuração do addon colocares a porta que te aparece e que tem o nome comprido. Depois reinicias o addon e verificas se está a funcionar, se não estiver volta a colocar o /dev/ttyACM0.

Penso que o @tmarquespt teve um problema parecido.

P.S.: A luz verde do CC2531 acende? Se, acende quando reinicias o addon ela apaga?

A post was split to a new topic: Dispositivo para backup do CC2531


Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade