Bonjour à tous,
Merci pour ce partage autour du wireless M-Bus
Je suis très intéressé pour récupérer les infos de consommation d’eau ; et mon habitation vient aussi d’être équipée d’un compteur eau Diehl, avec un dispositif RF " IZAR RC I G4" ; c’est à priori un dispositif reconnu par wmbusmeters.
J’ai lu vos messages, et pas mal d’infos sur le nanoCUL et le logiciel wmbusmeters
Je viens de commander, et recevoir un nanoCUL : Clé USB nanoCUL FTDI CC1101 868 MHz FW 1,67 antenne pliante FHEM CUL 868 + adaptateur | eBay
Il est commercialisé par https://www.smart-home-komponente.de/
Et j’ai fait mes premiers essais … pas fructueux.
En fait, j’ai l’impression que mon dongle nanoCUL ne fonctionne pas comme celui de @Domochip
Voici le constat :
- le nanoCUL est bien reconnu par wmbusmeters
- il ne fonctionne pas correctement. En fait, il ne semble par interpreter la commande ‹ b ›, comme décrite dans culfw reference
Si je lance un ‹ wmbusmeters --debug auto:t1 › ou ‹ –debug /dev/ttyUSB0:cul:t1 › ou ‹ –debug cul:t1 ›, le nanoCUB est bien détecté, mais j’ai à la fin le message :
(cul) received ""(cul) setting link mode(s) t1 is not supported for this cul device!
Si on suit le mode debug, on voit que wmbusmeters envoie d’abord la commande « V », le nanoCUL répond « V 1.67 nanoCUL868 » ; puis, il envoie la commande « brt » (read data mode t), et le nanoCUL répond qu’il ne connait pas la commande « b » :
"? (brt is unknown) Use one of A B C E e F f G h i K k l M m R T t U V W X x Y Z z<0D><0A>"
Si j’interroge directement le nanoCUL avec un client série (pour ma part, putty sous windows), ca donne ceci
> V
< V 1.67 nanoCUL868
>brt
< ? (brt@ is unknown) Use one of A B C E e F f G h i K k l M m R T t U V W X x Y Z z
C’est conforme à la log debug de wmbusmeters
Avez-vous une piste de recherche ?
@Domochip ; peux-tu interroger directement (en mode série) ton nanoCUL, et vérifier le retour des commandes « V » et « brt » ?
Merci
Voici le dialogue complet du wmbusmeters
# wmbusmeters --debug /dev/ttyUSB0:cul:t1
(wmbusmeters) version: _
(config) using device: /dev/ttyUSB0:cul:t1
(config) number of meters: 0
(lookup) with file/hex "/dev/ttyUSB0" cul
(serial) check if /dev/ttyUSB0 can be accessed
(serial) tty /dev/ttyUSB0 can be accessed
(serial) EVENT thread interrupted
(serial) before config: /dev/ttyUSB0 speed(B38400) input() output() control(CLOCAL|CREAD|CSIZE) local() special_chars() modem(DTR|RTS)
(serial) after config: /dev/ttyUSB0 speed(B38400) input() output() control(CLOCAL|CREAD|CSIZE) local() special_chars() modem(DTR|RTS)
(serialtty) opened /dev/ttyUSB0 fd 3 (detect cul)
(serial /dev/ttyUSB0) sent "560D0A"
(serial) EVENT thread interrupted
(serial) received binary "5620312E3637206E616E6F43554C3836380D0A"
(cul) probe response "V 1.67 nanoCUL868<0D><0A>"
(serialtty) closed /dev/ttyUSB0 (detect cul)
(cul) are you there? yes
(main) opening /dev/ttyUSB0:cul:t1
Started config cul on /dev/ttyUSB0 listening on t1
(cul) on /dev/ttyUSB0
(serial) EVENT thread interrupted
(serial) before config: /dev/ttyUSB0 speed(B38400) input() output() control(CLOCAL|CREAD|CSIZE) local() special_chars() modem(DTR|RTS)
(serial) after config: /dev/ttyUSB0 speed(B38400) input() output() control(CLOCAL|CREAD|CSIZE) local() special_chars() modem(DTR|RTS)
(serialtty) opened /dev/ttyUSB0 fd 3 (cul)
(main) regular reset of cul on /dev/ttyUSB0 will happen every 82800 seconds
(cul) set link mode t
(serial /dev/ttyUSB0) sent "6272740D0A"
(serial) EVENT thread interrupted
(serial) received binary "3F202862727420697320756E6B6E6F776E2920557365206F6E65206F662041204220432045206520462066204720682069204B206B206C204D20"
(cul) checkCULFrame "? (brt is unknown) Use one of A B C E e F f G h i K k l M "
(cul) no eol found yet, partial frame
(serial) received binary "6D205220542074205520562057205820782059205A207A0D0A"
(cul) checkCULFrame "? (brt is unknown) Use one of A B C E e F f G h i K k l M m R T t U V W X x Y Z z<0D><0A>"
(cul) no leading 'b' so it is text and no frame
(wmbus device) timeout request id 1
(cul) received ""(cul) setting link mode(s) t1 is not supported for this cul device!
(serial) stopping manager