Taking a look at what's working vs. what's not working, I noticed that characters that work have an odd number of binary 1's and the characters that do not pas have an even number of binary 1's. Numbers are in binary.
Code: Select all
Characters Work Characters get "eaten"
a 1100001 c 1100011
b 1100010 e 1100101
d 1100100 f 1100110
g 1100111 i 1101001
h 1101000 j 1101010
k 1101011 l 1101100
m 1101101 o 1101111
n 1101110 q 1110001
p 1110000 r 1110010
s 1110011 t 1110100
u 1110101 w 1110111
v 1110110 x 1111000
y 1111001 A 1000001
z 1111010 B 1000010
C 1000011 D 1000100
E 1000101 G 1000111
F 1000110 H 1001000
I 1001001 K 1001011
J 1001010 M 1001101
L 1001100 N 1001110
O 1001111 P 1010000
Q 1010001 S 1010011
R 1010010 U 1010101
T 1010100 V 1010110
W 1010111 Y 1011001
X 1011000 Z 1011010
I also checked single high bit characters ("@" = 1000000b) can pass. "A" with 2 high characters (even #) does not pass.
Conclusion: must be a parity issue (I thought it was off ?? Bonehead assumption detected)
... Search for "parity"
Found:
Code: Select all
on stdcore[CORE_NUM] : uart_rx(p_rx, rx_buffer, ARRAY_SIZE(rx_buffer), BAUD_RATE, 8, UART_TX_PARITY_EVEN, 1, c_chanRX);
I must have failed to "RTFM" this one. Hopefully when I go back and review the documentation there will be a glaring direction that I missed.
... and in real-time as I type this message:
Pull up PuTTY settings, change parity to even, return to serial console
"ABCDEFG" ... echo works (anything I type).
">cmd" works
in console mode "help" works
Final conclusion: NOT A CODE ISSUE
As a regression test for "documentation issue?"
1. Check the GPIO COM Port Quickstart Guide
"Configure the host terminal console program as follows: 115200 baud, 8 bit character length,
even parity, 1 stop bit, no hardware flow control. The Transmit End-of-Line character should be set to "
Bold/underline not in original document - but the key setup info is there.
Conclusion: documenation was sufficient. Perhaps since "N81" is such a standard starting point (at least in my previous serial port dealings) - "idiot proofing" the docs a little more with more flash around the "even parity" would help the next fast reader.
... time for me to close a ticket.
Regards,
Jason Whiteman