I would need to use all UART of DUO.
I can’t find a way to make /dev/ttyS1 (or 2) work.
It looks like I would need to refresh something in the Linux system after reconfiguring with duo-pinmux :
That worked to make the serial port accessible.
I connected a Cisco network switch console port to my Duo using a voltage divider as Cisco Serial seem to be 5V. No matter what I always got this kind of output (does not seem to be linked with voltage levels (tired with different resistors) :
[root@milkv-duo]~# python miniterm.py
--- Available ports:
--- Enter port index or full name: /dev/ttyS4
--- Miniterm on /dev/ttyS4 9600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
y�V�������ff̙e�2&F..>␖~j�i␙I)���U_� �e�1��$�M␛f�R�3��]␗^��d�M␗>B6N~ry�2I&M7~2��r��s$�S䤞=5Y=6�����ff̙e�2"F..&␖~j�i␙��e%��X�*J���XQ�Y�sK�$M�>�$��H9B9�␓�$��$�M␛f�R�3��]␗^��d�M␗>B6N~ry�2I&M7~2��r��s$�S�␄␀
I tried
GPIO0 & 1 with UART2 (configured myself)
GPIO 1&2 with UART4 which is from default image.
hex dump the serial interface od -x < /dev/ttyS2
And always got this king of result. Be sure I double-checked with an USB serial adapter on my laptop that everything works find on the other side (baud rates etc…)
My gut says that something is wrong on the way the UART decodes data or the baudrate is wrong even when requested to be lower ?
Any suggestion would be helpful. I will try to sum up my findings in an UART tutorial.
And thank you again @kinsa for your accurate answer.
Hi, thank you for your answer. I bought a hobby scope and here is a picture of the signal I got after my resistor-based voltage divider. Could you confirm that this kind of signal should be ok for the Milkv Duo ?