Go to advanced search

by blaurier
Mon Aug 03, 2020 5:39 am
Forum: C/C++
Topic: Serial Input requires LF to show
Replies: 6
Views: 347

Re: Serial Input requires LF to show

no they are not : in one there is an i :

SerialPortSettings.c_iflag &= ~(ICANON | ECHO | ECHOE | ISIG | IEXTEN);

and in the other an l

SerialPortSettings.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG | IEXTEN);
by blaurier
Mon Aug 03, 2020 12:32 am
Forum: C/C++
Topic: Serial Input requires LF to show
Replies: 6
Views: 347

Re: Serial Input requires LF to show

After struggling for a few more hours i solved the problem.

SerialPortSettings.c_iflag &= ~(ICANON | ECHO | ECHOE | ISIG | IEXTEN);

should be

SerialPortSettings.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG | IEXTEN);

:cry: :cry: :cry: :cry:
by blaurier
Sun Aug 02, 2020 4:31 am
Forum: C/C++
Topic: Serial Input requires LF to show
Replies: 6
Views: 347

Serial Input requires LF to show

I'm trying to read data from a serial port which only contains binary data. I copied/wrote some code but it only outputs data if there is a LF(0x0a) at the end of the message. I tried everything but don't have a clue how to sort this. Hope someone here can get me in the right direction. #include <st...

Go to advanced search