cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Visitor
Visitor
247 Views
Registered: ‎12-09-2017

PS UART parity: Space - not avilable

Hi All

I am trying to connect to a device with serial com ( this device requires parity as space )

accoriding to this : https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842340/PS+UART

but .... when I issue stty -F /dev/ttyPS1 -a , the -cmspar is not seen. (it is also not seen at the xilinx wiki PS uart driver page) 

Other SW like minicom or ser2net are also unable to change the parity to space .

the only way that worked is with "devmem 0xFF010004 8 0x10" .

Thanks for the help!

Shai.

 

Tags (2)
3 Replies
Highlighted
200 Views
Registered: ‎02-24-2020

Can you post the full output to stty -F /dev/ttyPS1 -a ?

Is "parenb" set? Looking at the driver this needs to be set in order to actually set "cmspar"

# Driver snippet
if (termios->c_cflag & PARENB) {
	/* Mark or Space parity */
	if (termios->c_cflag & CMSPAR) {
		if (termios->c_cflag & PARODD)
			cval |= CDNS_UART_MR_PARITY_MARK;
		else
			cval |= CDNS_UART_MR_PARITY_SPACE;
	}
Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com
0 Kudos
Highlighted
Visitor
Visitor
162 Views
Registered: ‎12-09-2017

Hi 

yes, parenb is set .

the stty -F /dev/ttyPS1 -a output is :

parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

look like the cmspar is missing , the cmspar should be seen at the list anyhow even with -cmspar , correct ?  

if you scrool down at xilinx wiki driver page you can see that this is the same output of stty -F /dev/ttyPS1 -a

thanks for the help! 

any other ideas how to make the cmspar avilable ? 

0 Kudos
Highlighted
Visitor
Visitor
117 Views
Registered: ‎12-09-2017

Anyone ? 

tx

0 Kudos