[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4694: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4695: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4696: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
8devices Community :: View topic - UART settings
8devices Community
https://www.8devices.com/community/

UART settings
https://www.8devices.com/community/viewtopic.php?f=1&t=432
Page 1 of 1

Author:  kuzmuk [ 14 Jun 2013, 13:05 ]
Post subject:  UART settings

Hi,

I'm trying to configure buitin UART (carambola 2) to work at 9600bps, 1 stop bit, even parity and 7 bits.
I can't achieve this.

Here is different combinations that I tried.

toptions.c_cflag &= ~PARENB;
toptions.c_cflag |= PARODD; // cause no parity

toptions.c_cflag &= ~PARENB;
toptions.c_cflag &= ~PARODD; // cause no parity

toptions.c_cflag |= PARENB;
toptions.c_cflag |= PARODD; // cause no parity

toptions.c_cflag |= PARENB;
toptions.c_cflag &= ~PARODD; // cause odd parity

With logic analyzer I read packets and see that I can set only ODD parity or no parity at all. There is no way to get EVEN parity.
The same result I get both with my own code and with stty tool.
Is there any issue in driver? According to pdf from here (viewtopic.php?f=5&t=396) this Atheros should support even parity mode.

Plus I can't set 7 bits per message. Is this supported by this UART?

Author:  tty [ 14 Jun 2013, 14:13 ]
Post subject:  Re: UART settings

Did you rebuild kernel to don't use serial console ?

Author:  schueler-maroldt [ 14 Jun 2013, 14:50 ]
Post subject:  Re: UART settings


Author:  gedass [ 15 Jun 2018, 05:42 ]
Post subject:  Re: UART settings

Fixed.
https://github.com/8devices/openwrt-8de ... ed0c98ea7c

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/