CC2531 firmware errado

Boa noite,

Sou novo nestas andanças e estou a tentar configurar a pen CC2531 para utilizar com o Zigbee2mqtt esta a devolver o erro.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[04:42:27] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[04:42:30] INFO: MQTT available, fetching server detail ...
[04:42:31] INFO: MQTT server settings not configured, trying to auto-discovering ...
[04:42:33] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[04:42:34] INFO: Previous config file found, checking backup
[04:42:34] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[04:42:34] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[04:42:38] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.21.1-dev start
> node index.js
Zigbee2MQTT:info  2021-09-19 04:42:51: Logging to console and directory: '/config/zigbee2mqtt/log/2021-09-19.04-42-46' filename: log.txt
Zigbee2MQTT:info  2021-09-19 04:42:52: Starting Zigbee2MQTT version 1.21.1-dev (commit #0d3998f)
Zigbee2MQTT:info  2021-09-19 04:42:52: Starting zigbee-herdsman (0.13.145)
Zigbee2MQTT:error 2021-09-19 04:42:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-19 04:42:52: Failed to start zigbee
Zigbee2MQTT:error 2021-09-19 04:42:52: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-19 04:42:52: Exiting...
Zigbee2MQTT:error 2021-09-19 04:42:53: Error: Error while opening serialport 'Error: Error: Operation not permitted, cannot open /dev/bus/usb/001/009'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[04:42:54] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.21.1-dev start
> node index.js

já segui diversos tutoriais e devolve sp o mesmo erro.
instalei o MQTT esta ok o Zigbee2mqtt e o Zigbee2mqtt Edge devolve sp o mesmo erro para verificar a port usb foi deliguei a pen e voltei a ligar. Pode ser esse o erro port errada?

Muito obrigado pela ajuda.

Acho de deve ser o firmware que não é o apropriado. Alguém sabe como posso ver se tenho o firmware adequado?

já não devolve o erro da port

mosquitto config (defold)

logins: []
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

zigbee2mqtt config

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  user: mqtt_user
  password: mqtt_pass
serial:
  port: /dev/ttyAMA0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false

zigbee2mqtt-mqtt log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[22:17:39] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[22:17:43] INFO: MQTT available, fetching server detail ...
[22:17:43] INFO: MQTT server settings not configured, trying to auto-discovering ...
[22:17:46] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[22:17:46] INFO: Previous config file found, checking backup
[22:17:46] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[22:17:47] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:17:51] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.21.1 start
> node index.js
Zigbee2MQTT:error 2021-09-19 22:18:50: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-19 22:18:50: Failed to start zigbee
Zigbee2MQTT:error 2021-09-19 22:18:50: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-19 22:18:50: Exiting...
Zigbee2MQTT:error 2021-09-19 22:18:50: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.js:66:27)
    at Controller.start (/app/lib/controller.js:110:27)
    at start (/app/index.js:95:5)
[22:18:52] INFO: Handing over control to Zigbee2mqtt Core ...

A versão do firmware da pen é reportada pelo Z2M quando arranca.

Quanto às porta podes ver no HA quais as portas disponíveis.

já não devolve o erro da porta mas continua sem arrancar.
existe alguma outra maneira de validar o firmware tendo em conta que o z2m não arranca e não tenho CC Debugger ?

o log do Zigbee2mqtt agora é este

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[14:03:49] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[14:03:52] INFO: MQTT available, fetching server detail ...
[14:03:53] INFO: Previous config file found, checking backup
[14:03:53] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[14:03:54] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:03:57] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.21.1 start
> node index.js
Zigbee2MQTT:error 2021-09-20 14:04:32: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-20 14:04:32: Failed to start zigbee
Zigbee2MQTT:error 2021-09-20 14:04:32: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-20 14:04:32: Exiting...
Zigbee2MQTT:error 2021-09-20 14:04:33: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.js:66:27)
    at Controller.start (/app/lib/controller.js:110:27)
    at start (/app/index.js:95:5)

Em que porta isso está configurado e que portas aparecem no HA?

P.S.: Por acaso já foste ver o link que aparece na penúltima linha do log?

config zigbee2mqtt

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1235:1883
  user: mqtt_user
  password: mqtt_pass
serial:
  port: /dev/ttyAMA0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false

HA port

1-1.4
Subsystem:
usb
Device path:
/dev/bus/usb/001/008
Attributes:
BUSNUM: '001'
DEVNAME: /dev/bus/usb/001/008
DEVNUM: '008'
DEVPATH: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4
DEVTYPE: usb_device
DRIVER: usb
ID_BUS: usb
ID_FOR_SEAT: usb-platform-3f980000_usb-usb-0_1_4
ID_MODEL: CC2531_USB_Dongle
ID_MODEL_ENC: CC2531\x20USB\x20Dongle
ID_MODEL_ID: 16ae
ID_PATH: platform-3f980000.usb-usb-0:1.4
ID_PATH_TAG: platform-3f980000_usb-usb-0_1_4
ID_REVISION: '1744'
ID_SERIAL: Texas_Instruments_CC2531_USB_Dongle
ID_USB_INTERFACES: ':ffffff:'
ID_VENDOR: Texas_Instruments
ID_VENDOR_ENC: Texas\x20Instruments
ID_VENDOR_ID: '0451'
MAJOR: '189'
MINOR: '7'
PRODUCT: 451/16ae/1744
SUBSYSTEM: usb
TAGS: ':seat:'
TYPE: 0/0/0
USEC_INITIALIZED: '54548028262'

log Zigbee2MQT

Zigbee2MQTT:error 2021-09-20 17:13:05: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-20 17:13:05: Failed to start zigbee
Zigbee2MQTT:error 2021-09-20 17:13:05: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-20 17:13:05: Exiting...
Zigbee2MQTT:error 2021-09-20 17:13:06: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.js:66:27)
    at Controller.start (/app/lib/controller.js:110:27)
    at start (/app/index.js:95:5)

Mas que portas o HA diz que estão disponíveis?

fica sempre em lop e devolve o erro abaixo ño logo do Zigbee2MQTT

Zigbee2MQTT:error 2021-09-20 17:13:05: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-20 17:13:05: Failed to start zigbee
Zigbee2MQTT:error 2021-09-20 17:13:05: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-20 17:13:05: Exiting...
Zigbee2MQTT:error 2021-09-20 17:13:06: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)

Como é que vejo as portas disponíveis?

Supervisor > System > :menu2: > Hardware

Vai aparecer um cartão com a lista de hardware que tens no sistema e numa delas deverá aparecer o CC2531.

Umas questões para despiste:

  1. Onde compraste o CC2531?
  2. Tens a certeza que é um CC2531 e não um CC2530 ou CC2540?
  3. Tens a certeza que está flashada com o firmware correcto?

É que se tens a porta certa configurada e está a dar esses erros, é grande a possibilidade de ser um erro derivado da minha pergunta 2 e 3.

1 https://www.amazon.es/gp/aw/d/B08Q7NPSRX/ref=ppx_yo_mob_b_track_package_o0_img?ie=UTF8&psc=1

2 era o que dizer no site e no pacote enviado.

3 acho que deve ser mesmo o firmware.

É está a port do home assistant

Mostra a uma captura de ecran da lista de hardware.

Confirma na própria pen que o chip tem escrito CC2531.


sim esta identificado no chip como CC2531

Qual é o hardware, e quais as versões, que usas para correr o HA?

raspberry pi 3 b+
OS core-2021.9.6
Mosquitto broker: Current version: 6.0.1
Zigbee2mqtt: Current version: 1.21.1-1

Boas noite,

Alguém me consegue ajudar?
Será que é o firmware erado?

Para despistar o eventual problema com o firmware basta flashar de novo o mesmo. E já agora confirma se o chip tem mesmo escrito CC2531…


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


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