LVMakerHub / LINX

LabVIEW Community Edition LINX
Other
109 stars 114 forks source link

Raspberry Pi 5 UART mapping #127

Open albsbc opened 5 months ago

albsbc commented 5 months ago

Hi @sharpk, @spathi,

/dev/serial0 (ttyAMA10) is wired to the UART connector instead of the 40 way connector on the Raspberry Pi 5. It can be accessed from the LINX toolkit. NOTE: characters are sent to the port from the Raspberry Pi boot ROM.

It is possible to access the UART pins 8 and 10 on the 40 way connector if the serial port is enabled in raspi-config. The additional UART is mapped as /dev/ttyAMA0.

Please can you update LinxRaspberryPi5.cpp to use /dev/ttyAMA0 instead of /dev/serial0? This would allow users to run their existing vi's and UART wiring on the Raspberry Pi 5. /dev/serial0 could be added as a second UART port in the m_UartPaths array.

The VISA mapping for the UART's is

ASRL1::INSTR /dev/ttyAMA10 ASRL2::INSTR /dev/ttyAMA0