[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
www.8devices.com
View unanswered posts | View active topics It is currently 18 Apr 2024, 11:15



Reply to topic  [ 4 posts ] 
 UART settings 
Author Message

Joined: 14 Jun 2013, 12:47
Posts: 9
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?


14 Jun 2013, 13:05
Profile

Joined: 18 Mar 2012, 19:06
Posts: 52
Did you rebuild kernel to don't use serial console ?


14 Jun 2013, 14:13
Profile

Joined: 03 Sep 2012, 16:54
Posts: 6

_________________
regards Joerg


14 Jun 2013, 14:50
Profile

Joined: 07 Dec 2011, 16:01
Posts: 525
Location: Lithuania
Fixed.
https://github.com/8devices/openwrt-8de ... ed0c98ea7c


15 Jun 2018, 05:42
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.