Hello,
I have an imp005 breakout board, and I want to use its UART0 for a flow-controlled UART communications application. I used it before at typical settings like 9600bps, 1 start and 1 stop bit, no parity, NO_CTSRTS flag, it works like a charm. It’s uart.configure is working, subsequent initializations are working as well and I can transmit bytes to the target device as shown by server.log messages.
But whenever I change the flags to enable flow control i.e. I have to use other flags other than NO_CTSRTS, it seems my device hangs up and no longer responds after the uart.configure call. Other subsequent initializations with server.log messages after that uart.configure no longer shows messages, hence I conclude device hanged up.
So far what I tried are to use flag 0 in uart.configure instead of NO_CTSRTS just like below:
ret = this.uart.configure(baudParm, 8, PARITY_NONE, 1, 0, printer_cb);
If I checked code syntax there is no problem, but after the uart.configure there is no more device response. I also tried to use flag CALLBACK_WITH_FLAGS and put a parameter inside the callback function:
ret = this.uart.configure(baudParm, 8, PARITY_NONE, 1, CALLBACK_WITH_FLAGS, printer_cb);
…
function printer_cb(parm) {
server.log(“UART read detected” + parm)
}
No code syntax errors reported, but just like above in flag 0, after the uart.configure there are no more server.logs from subsequent initializations printed leading me to conclude device hanged up.
Is there something I’m not doing right here? I just want to use RTS/CTS for UART0.