Je reprend...
Effectivement j'ai inversé les jumper CE et CSN.
Tout à parait bon maintenant, c'est parti pour l'installation.
Récupération des fichiers:
Code : Tout sélectionner
git clone https://github.com/mysensors/MySensors.git --branch master
Un répertoire
MySensors a dû être créé, on y va:
On lance l'affaire:
Le fichier
bin/mysgw a dû être créé, on vérifie:
Code : Tout sélectionner
~/MySensors $ ls
bin Documentation initscripts Makefile.inc tests
build Doxyfile keywords.txt MyConfig.h
configure drivers library.json MySensors.h
CONTRIBUTING.md examples library.properties projects
core examples_linux Makefile README.md
Youpi!
Du coupon peu récupérer des infos
Code : Tout sélectionner
~/MySensors $ sudo ./bin/mysgw -h
Usage: mysgw [options]
Options:
-h, --help Display a short summary of all program options.
-d, --debug Enable debug.
-b, --background Run as a background process.
--gen-soft-hmac-key Generate and print a soft hmac key.
--gen-soft-serial-key Generate and print a soft serial key.
--gen-aes-key Generate and print an aes encryption key.
--print-soft-hmac-key Print the soft hmac key from the config file.
--print-soft-serial-key Print the soft serial key from the config file.
--print-aes-key Print the aes encryption key from the config file.
--set-soft-hmac-key Write a soft hmac key to the config file.
--set-soft-serial-key Write a soft serial key to the config file.
--set-aes-key Write an aes encryption key to the config file.
On lance le test :
Code : Tout sélectionner
~/MySensors $ sudo ./bin/mysgw -d
mysgw: Starting gateway...
mysgw: Protocol version - 2.1.1
mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: Can't open SPI device: /dev/spidev1.0
Et là c'est le drame...
J'arrive pas à m'en sortir avec spidev...
J'ai essayé ;
Code : Tout sélectionner
~/MySensors $ ./configure --spi-driver=SPIDEV --spi-spidev-device=/dev/spidev1.0
[SECTION] Detecting target machine.
[OK] machine detected: SoC=BCM2836, Type=RPi3, CPU=armv7l.
[SECTION] Detecting init system.
[OK] init system detected: systemd.
[SECTION] Saving configuration.
[SECTION] Cleaning previous builds.
[OK] Finished.
mais du coup le fichier
bin/mysgw disparaît.
Ca dépasse mes compétences...
Si quelqu'un a une idée, je suis preneur.
A+