Re: write() to /dev/ttyS0 has no effect

2009-10-29 Thread Børge Strand-Bergesen
Matthias, vielen Dank! It works now. Your questions were mostly about unrelated code that somehow survived as I stripped things down to make the example. Removing CRTSCTS did the trick. I see that you are using non-canonical reads. Do you know if canonical works on Cygwin? In my finished program

Re: write() to /dev/ttyS0 has no effect

2009-10-29 Thread Matthias Andree
Børge Strand-Bergesen schrieb: > I'm writing some C code to control an external MCU over UART. > Everything works like a charm using TeraTerm or cat >>/dev/ttyS0. gcc > is 3.4.4. In a different program (not inserted), I am able to use > read() to get information from the MCU. Cygwin is "CYGWIN_NT-

write() to /dev/ttyS0 has no effect

2009-10-29 Thread Børge Strand-Bergesen
Hi, I'm writing some C code to control an external MCU over UART. Everything works like a charm using TeraTerm or cat >>/dev/ttyS0. gcc is 3.4.4. In a different program (not inserted), I am able to use read() to get information from the MCU. Cygwin is "CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19