RaspberryPi 3B+ , The following have been done :
1. sudo raspi-config
Select option 5, Interfacing options, then option P6, Serial, and select No. Exit raspi-config.
2. /boot/config.txt
add the following
dtoverlay=gpio-shutdown,gpio_pin=5,active_low=1,gpio_pull=up
dtparam=act_led_gpio=4
enable_uart=1
dtoverlay=miniuart_bt
dtoverlay=uart-ctsrts
3. Added following files to /boot/overlays from
https://github.com/HiassofT/AtariSIO/bl ... ntrib/rpi/
uart-ctsrts.dtbo
4. Connected GPIO17 to GPIO16 with hardware link (CTS/RTS)
5. Scope on CTS/RTS .. nothing happens if I use minicom on /dev/ttyAMA0, tested with both setups: No/Yes hardware handshaking.
Minicom does however send characters.
6. I tried stty -F /dev/ttyAMA0 crtscts , but no error nor toggling RTS output.
7. I Need RST to set RS485 Driver direction via NOT gate to transmit/receive.
boot# dmesg | grep tty
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=1680 bcm2708_fb.fbheight=1050 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=18d8f574-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000907] console [tty1] enabled
[ 1.067553] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 1.076610] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud = 50000000) is a 16550
What am I doing wrong ?
Do you need IOCTL command to toggle the RTS or will it happens automatically ?