Getting UART to RTS to work when using ESP8266 Arduino
Posted: Mon Jan 18, 2016 3:02 am
So, I am trying to connect the ESP8266 to a half-duplex uart-to-RS485 (https://www.sparkfun.com/products/10124) board, and then read data from an energy meter over RS-485.
The challenge is that the uart-to-RS485 board is half duplex, and requires a RTS signal to enable the rx or tx through the chip.
RX and TX for the default UART (which is... uart0?) works great, but I cannot get RTS to work.. From what I understand it should be available on the MTDO/GPIO15 pin - but no luck there. That pin just stays the same, no matter how much I send to or read from the uart on the rx/tx pins.
Do I have to specify somehow that MTDO/GPIO15 should be used for RTS?
If so, how is that done?ยจ
Thanks!
The challenge is that the uart-to-RS485 board is half duplex, and requires a RTS signal to enable the rx or tx through the chip.
RX and TX for the default UART (which is... uart0?) works great, but I cannot get RTS to work.. From what I understand it should be available on the MTDO/GPIO15 pin - but no luck there. That pin just stays the same, no matter how much I send to or read from the uart on the rx/tx pins.
Do I have to specify somehow that MTDO/GPIO15 should be used for RTS?
If so, how is that done?ยจ
Thanks!