Hi,
unfortunately, le terminal i use don't send anything at startup, but i will try to see if
i can configure it to do so.
well, if i hit keyboard to send a char,
i can detect the first char via
the first char is lost, but then i know i am connected.
i have tested to do
Code: Select all
while (sdGetWouldBlock(&SDU1)) {chThdSleepMilliseconds(100);}
but sdGetWouldBlock always return TRUE, sdGetWouldBlock could not be used with usb_cdc ?
I have also noticed that channel abstraction function for blocking test which was chIOPutWouldBlock()
and chIOGetWouldBlock() in v2.4.x does not exists anymore in 2.5.0, even if there are still referenced
in the commentary section of os/hal/include/serial.h.
If it's possible, the best for user of chibios would be to know the connection status without the need to receive a byte first.
Alexandre