DHCOM STM32MP1 Linux: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
Ageisreiter (talk | contribs)
No edit summary
Ageisreiter (talk | contribs)
Line 26: Line 26:
|<tt>''./tty_rs485_test /dev/ttySTM2''</tt>
|<tt>''./tty_rs485_test /dev/ttySTM2''</tt>
|}
|}
:* [[media:Tty_rs485_test.zip | tty_rs485_test.c]]


=== CAN interface ===
=== CAN interface ===

Revision as of 06:39, 9 April 2020

Kernel Userspace Interfaces to Access Hardware

RS-485 on picoITX

RS-485 device
DHCOM UART 2 /dev/ttySTM2
Compilation on target
gcc tty_rs485_test.c -o tty_rs485_test
Set tty device to raw mode
stty -F /dev/ttySTM2 115200 cs8 raw -echo
Send data with demo program
./tty_rs485_test /dev/ttySTM2
Receive data with demo program
./tty_rs485_test /dev/ttySTM2

CAN interface