Truma Combi iNet

Hast du einen Raspi PI 5 ?

Was sagt denn dmesg | grep “tty” ?

Raspberry Pi 4

  • Serial Ports : The Raspberry Pi 4 has the following serial ports:
    • /dev/ttyS0 : This is the primary serial port, which is typically linked to GPIO pins 14 and 15.
    • /dev/ttyAMA0 : This is another serial port, which can be used for Bluetooth communication or as a secondary serial port if Bluetooth is disabled.
    • /dev/serial0 : This is a symbolic link to the primary serial port (usually /dev/ttyAMA0).
    • /dev/serial1 : This is a symbolic link to the secondary serial port (usually /dev/ttyS0).
  • Configuration :
    • To use the primary serial port on GPIO pins 14 and 15, you can enable it by setting enable_uart=1 in the config.txt file.
    • If you disable Bluetooth by adding dtoverlay=disable-bt to config.txt , /dev/serial0 will be linked to /dev/ttyAMA0, and /dev/serial1 will be linked to /dev/ttyS0.

Raspberry Pi 5

  • Serial Ports : The Raspberry Pi 5 introduces some changes in its serial port configuration:
    • /dev/ttyAMA0 : This is the primary serial port, which is typically linked to the new UART connector.
    • /dev/ttyAMA10 : This is a new serial port that is linked to GPIO pins 14 and 15.
    • /dev/serial0 : This is a symbolic link to the primary serial port (usually /dev/ttyAMA0).
    • /dev/serial1 : This is a symbolic link to the secondary serial port (usually /dev/ttyAMA10).
  • Configuration :
    • To use the primary serial port on the new UART connector, you can specify console=ttyAMA0,115200 in the cmdline.txt file and set dtparam=uart0=on in the config.txt file.
    • To use the secondary serial port on GPIO pins 14 and 15, you can specify console=ttyAMA10,115200 in the cmdline.txt file and ensure that the necessary configurations are set in config.txt .

Differences and Considerations

  • Primary Serial Port : On the Raspberry Pi 4, /dev/ttyAMA0 is typically used for Bluetooth or as a secondary serial port. On the Raspberry Pi 5, /dev/ttyAMA0 is the primary serial port linked to the new UART connector.
  • Secondary Serial Port : On the Raspberry Pi 4, /dev/ttyS0 is the primary serial port linked to GPIO pins 14 and 15. On the Raspberry Pi 5, /dev/ttyAMA10 is the secondary serial port linked to GPIO pins 14 and 15.
  • Symbolic Links : The symbolic links /dev/serial0 and /dev/serial1 have different behaviors on the Raspberry Pi 5 compared to the Raspberry Pi 4. On the Raspberry Pi 5, /dev/serial0 is linked to /dev/ttyAMA0, and /dev/serial1 is linked to /dev/ttyAMA10.

Conclusion

When working with serial ports on the Raspberry Pi 5, you need to be aware of the new UART connector and the changes in the symbolic links. If you are migrating from the Raspberry Pi 4, you may need to adjust your configurations to ensure compatibility. For detailed and up-to-date information, refer to the official Raspberry Pi documentation.

Hab einen 5er
Werde am Wochenende anfangen mir der Elektrik Neuzulegen ! Dann baue ich mal alles ein und Probier ich es!