Aller au contenu

Featured Replies

Posté(e)

Bonjour,

J'ai un soucis avec deux périphérique USB (clef Zwave de Sigma Designs).

Le premier est vu par le système en /dev/ttyACM1 et fonctionne bien avec le paquet domoticz.

Je voudrais faire fonctionner ma seconde clef identique avec le packet OpenHAB.

Ma clef est reconnue par le système en /dev/ttyACM2

Résultat de la commande dmseg :


[615972.401588] usb 2-1: new full-speed USB device number 19 using etxhci_hcd-150407
[615972.458850] Got empty serial number. Generate serial number from product.
[615972.466577] drivers/usb/core/ethub.c (1992) Same device found. Change serial to ffffffd1ffffffb2ffffffdbffffffa0
[615972.478318] drivers/usb/core/ethub.c (1992) Same device found. Change serial to ffffffd1ffffffb2ffffffdbffffffa1
[615972.489971] drivers/usb/core/ethub.c (1992) Same device found. Change serial to ffffffd1ffffffb2ffffffdbffffffa2
[615972.516952] cdc_acm 2-1:1.0: This device cannot do calls on its own. It is not a modem.
[615972.526073] cdc_acm 2-1:1.0: ttyACM2: USB ACM device

 

 

Au niveau de la configuration de openHAB, je précise ceci :

################################ Z-Wave  Binding ######################################
#
# The Z-Wave controller port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux
zwave:port=/dev/ttyACM2

# Z-Wave nightly heal time. This is the hour (eg 2AM) at which the automatic nightly
# network heal will be performed.
zwave:healtime=2

 

Mais à l'exécution, cela ne marche pas :

2015-09-27 07:48:28.891 [DEBUG] [.zwave.internal.ZWaveActivator:36  ]- Z-Wave binding started. Version 1.8.0.201508211938
2015-09-27 07:48:28.945 [DEBUG] [.z.internal.ZWaveActiveBinding:175 ]- ConverterHandler not initialised. Polling disabled.
2015-09-27 07:48:31.960 [INFO ] [.z.internal.ZWaveActiveBinding:325 ]- Update config, port = /dev/ttyACM2
2015-09-27 07:48:31.960 [INFO ] [.z.internal.ZWaveActiveBinding:330 ]- Update config, healtime = 2
2015-09-27 07:48:31.960 [DEBUG] [.z.internal.ZWaveActiveBinding:282 ]- Initialising zwave binding
2015-09-27 07:48:32.008 [INFO ] [b.z.i.protocol.ZWaveController:146 ]- Starting Z-Wave controller
2015-09-27 07:48:32.008 [INFO ] [b.z.i.protocol.ZWaveController:154 ]- Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-09-27 07:48:32.009 [INFO ] [b.z.i.protocol.ZWaveController:320 ]- Connecting to serial port /dev/ttyACM2
2015-09-27 07:48:32.034 [ERROR] [b.z.i.protocol.ZWaveController:342 ]- Serial Error: Port /dev/ttyACM2 does not exist

J'ai essayé d'arrêter domoticz et de spécifier la première clef (/dev/ttyACM1) dans openHAB mais j'ai la même Serial Error ...

Comment faire fonctionner cette clef avec openHAB ?

Merci de votre aide.

(je précise que la clef fonctionne très bien sous windows)

 

En complément :

Le démon OpenHAB est lancé avec un compte utilisateur particulier mais je l'ai ajouté au groupe administrateur du syno

Il y a une règle UDEV  qui donne les droits suivants :
#rules for USB ACM serial devices
KERNEL=="ttyACM", ACTION=="add", MODE="0666"
KERNEL=="ttyUSB
", ACTION=="add", MODE="0666"

 

Modifié par Condorman

Posté(e)
  • Auteur

Bon en fait j'ai trouvé.

C'est assez étrange mais il faut :

créer un groupe : uucp et ajouter l'utilisateur openhab dans ce groupe.

puis taper cette commande : chown -R root.uucp /var/lock

créer un groupe : dialout et ajouter l'utilisateur openhab dans ce groupe.

puis taper cette commande : chown -R root.dialout /dev/ttyACM2   (dans mon cas, sachant que le port série peut être différent suivant la machine)

et dans la ligne de commande de lancement de openHAB (start_runtime.sh), il faut ajouter cela : Dgnu.io.rxtx.SerialPorts=/dev/ttyACM2

 

 

Modifié par Condorman

  • 6 mois après...
Posté(e)

bonjour, le contrôleur zwave ( Aeotec Z-Stick Gen5 )connecté a mon Synology DS-716+ change de position a chaque reboot (redémarragee du synology ou apps domoticz). Il passe de /dev/ttyACM0 a /dev/ttyACM1 et inversement.

Savez vous comment supprimer un des serial port ou figer le controleur sur 1 seul port?

Merci pour votre aide

G

Modifié par gdusordet

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.