Voir le Wiki waveshare
Raspberry Pi 5
[Waveshare PoE/PCIe M2 Hat PCIe To M.2 Adapter With PoE Function C](https://www.waveshare.com/poe-m.2-hat-plus-c.htm)
[Waveshare RS485/CAN HAT](https://www.waveshare.com/wiki/RS485_CAN_HAT)
[Waveshare USB 3.2 HUB](https://www.waveshare.com/usb-3.2-gen1-hub-hat.htm)
A l’aide de raspberry pi imager, écrire limage de Trixie une carte SD (j’ai installé la version desktop).
Boot depuis la carte SD, utiliser l’utilitaire “copy to SD” pour copier la carte SD vers le SSD.
Change boot mode dans raspi-coonfig (cf documentation )
Dans /boot/firmware/config.txt
frequency resprésente la fréquence du signal Bus
Oscillator est la fréquence du quartz sur le HAY (voir sur le quartz lui même)
dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
Esnuite démarrer l’interface
sudo ip link set can0 up type can bitrate 1000000
sudo ifconfig can0 txqueuelen 65536
sudo ifconfig can0 up
Après installation des module can-utils (apt-get install can-utils)
la commande candump can0 donne
can0 683 [7] 61 07 01 83 DA AA A8
can0 683 [7] 61 08 01 83 DA AA A8
can0 683 [7] 61 09 01 83 DA AA A8
can0 683 [7] 61 0A 01 83 DA AA A8
can0 700 [5] C1 01 FA 00 0F
can0 601 [7] E2 00 FA 00 0F 00 DC
can0 683 [7] 61 0B 01 83 DA AA A8
can0 683 [7] 61 0C 01 83 DA AA A8
can0 683 [7] 61 0D 01 83 DA AA A8
can0 683 [7] 61 0E 01 83 DA AA A8
can0 683 [7] 61 0F 01 83 DA AA A8
can0 700 [5] 31 00 FA 00 0E
Using python can library (send/receive vers PAC Stiebel Eltron))
sending a request to the can bus (wpf) every 5 seconds
sending request for TECS [49, 0, 250, 0, 14] set TECS in knx group 4/2/3 to 47.4
sending request for T ambiante [97, 1, 250, 0, 17] set T Retour in knx group 4/2/5 to 30.9
set T ambiante in knx group 4/2/1 to 22.4
sending request for T Retour [49, 0, 250, 0, 22] set T Départ in knx group 4/2/4 to 30.5
set T Retour in knx group 4/2/5 to 30.9
sending request for T Départ [49, 0, 250, 1, 214] set T Extérieure in knx group 4/2/0 to 4.7
set T Départ in knx group 4/2/4 to 30.4
sending request for T Extérieure [49, 0, 250, 0, 12] set T Source in knx group 4/2/2 to 19.2
set T Extérieure in knx group 4/2/0 to 4.7
sending request for T Source [49, 0, 250, 1, 212] set T Source in knx group 4/2/2 to 19.2
set T Mélangeur in knx group 4/2/6 to 20.7
sending request for T Mélangeur [193, 1, 250, 0, 15] set T Mélangeur in knx group 4/2/6 to 20.7
set TECS in knx group 4/2/3 to 47.4
sending request for TECS [49, 0, 250, 0, 14] set TECS in knx group 4/2/3 to 47.4
set T ambiante in knx group 4/2/1 to 22.4
sending request for T ambiante [97, 1, 250, 0, 17] set T ambiante in knx group 4/2/1 to 22.4
set T Retour in knx group 4/2/5 to 30.9
sending request for T Retour [49, 0, 250, 0, 22] set T Retour in knx group 4/2/5 to 30.9
set T Départ in knx group 4/2/4 to 30.4
sending request for T Départ [49, 0, 250, 1, 214] set T Départ in knx group 4/2/4 to 30.4
set T Extérieure in knx group 4/2/0 to 4.7
sending request for T Extérieure [49, 0, 250, 0, 12] set T Extérieure in knx group 4/2/0 to 4.7
set T Source in knx group 4/2/2 to 19.2
Ces messages étant générés par ma pompe a chaleur stiebel eltron.
Ce qui donne:
ifconfig can0
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 65536 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
HAT == plug in == rien à faire.
Fabrication d’un boitier à partir de FreeCad et imprimante 3D.
Impression de boitiers en PLA et PETG.
Après installation du raspberry dans le premier boitier, vérification des températures, on arrive à plus de 70° C, un peu trop élevée à mon goût. Deuxième boitier avec trous de ventiliations pour laisser échapper le courant d’air du ventilateur on redescend à 65 °C à 7500 rpm au ventilateur. Sans boitier la température tourne aux alentours de 55° C avec le ventilateur à 3000 rpm.