Rflink et minicom

Forum dédié au Rflink : installation, paramétrage, utilisation, interfaces ...
pmachat
Messages : 84
Inscription : 13 oct. 2017, 13:37

Rflink et minicom

Message par pmachat »

Bonjour,

Je souhaite passer des commandes directement au Rflink depuis un script sur mon raspberry.
J'ai vu sur le forum que certain utilisait Minicom pour dialoguer depuis le Rpi avec le Rflink

J'ai pour l'instant réussi à me connecter au Rflink avec la commande
/usr/bin/minicom -D /dev/ttyUSB0 -b 57600 -8 -o -S /home/pi/minicom/rflink.minicom

Je vois bien la reception des infos sur le RFLINK du type
20;19;LaCrosse;ID=0d03;TEMP=00b2;

Par contre, je ne sais pas comment je dois écrire les commandes dans mon script "rflink.minicom" :?

Pourriez-vous m'aider et me donner des exemples de vos script minicom ( ????10;PING; ?????)

Merci d'avance
Domoticz + Rflink + Xiaomi Gateway +Zigbee2Mqtt + Wemos + Dahua+ Alhau + Monitor:
- gestion vmc / hygrométrie
- pilotage ampli Denon Ceol
- surveillance piscine
- commande thermostat chauffage central
- gestion portail + garage automatique
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

Re: Rflink et minicom

Message par Neutrino »

Bonjour,
Packet structure - Instructing RFlink to send data via RF:
Data:
10;Protocol Name;device address,button number;action;
10;NewKaku;0cac142;3;ON;

Fields:
10 => Node number 10 means from the master to the RFLink Gateway
; => field separator
NAME => Device/Protocol name, required to instruct RFLink what RF protocol to use
0cac142; => contains the device ID
3; => contains the switch number (often a channel number)
ON; => contains the command (like ON/OFF/ALLON/ALLOFF/UP/DOWN/STOP/PAIR)
Tu trouveras ton bonheur ici : http://www.rflink.nl/blog2/protref
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
pmachat
Messages : 84
Inscription : 13 oct. 2017, 13:37

Re: Rflink et minicom

Message par pmachat »

Merci Neutrino pour ce retour rapide
Mon problème n est pas en fait de trouver la bonne commande pour le rflink mais comment l envoyer avec Minicom via un script
J ai essayé par exemple send « 10;Ping;» mais je vois aucune réponse via Neutrino ( j espérai voir 20;Pong; en retour)
:?:
Domoticz + Rflink + Xiaomi Gateway +Zigbee2Mqtt + Wemos + Dahua+ Alhau + Monitor:
- gestion vmc / hygrométrie
- pilotage ampli Denon Ceol
- surveillance piscine
- commande thermostat chauffage central
- gestion portail + garage automatique
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

Re: Rflink et minicom

Message par Neutrino »

Regarde ici : https://domoticz.com/forum/viewtopic.php?t=10717
C'est le même problème.
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
pmachat
Messages : 84
Inscription : 13 oct. 2017, 13:37

Re: Rflink et minicom

Message par pmachat »

Effectivement ça progresse
En mode console, je tape 10;Ping puis Ctrl+m puis Ctrl+j
Je vois 20;Pong 😀

Par contre, comment faire dans un script minicom ( commande CTRL?) pour faire la même chose
🤔
Domoticz + Rflink + Xiaomi Gateway +Zigbee2Mqtt + Wemos + Dahua+ Alhau + Monitor:
- gestion vmc / hygrométrie
- pilotage ampli Denon Ceol
- surveillance piscine
- commande thermostat chauffage central
- gestion portail + garage automatique
pmachat
Messages : 84
Inscription : 13 oct. 2017, 13:37

Re: Rflink et minicom

Message par pmachat »

Bonsoir
Finalement, j'ai semble-t-il trouvé la solution
Dans un script minicom, cela fonctionne avec par exemple "10;ping;\r\n" :D

Si cela peut aider…


Merci à Neutrino pour son aide
Domoticz + Rflink + Xiaomi Gateway +Zigbee2Mqtt + Wemos + Dahua+ Alhau + Monitor:
- gestion vmc / hygrométrie
- pilotage ampli Denon Ceol
- surveillance piscine
- commande thermostat chauffage central
- gestion portail + garage automatique
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

Re: Rflink et minicom

Message par Neutrino »

Merci à toi aussi pour ta solution :)
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
Répondre