hYtas Posted February 15, 2020 Posted February 15, 2020 (edited) Hi there, i need some help with using the UART1 pins 8 & 9. I own a Duo with Ubuntu 16.04.6 I've installed a software that is able to send codes over the UART1 pins to my smart home system. The software is 'active (running)' but has no connection via UART1. UART1 is enabled(npi-config) but i does not work. WiringNP is required for my software and installed. Is there any point i've missed? Did i have to switch UART1 pins to in- and output? One error i get: Service Control Manager on computer xx.x.x.xx cannot be opened. You may not have permission to do this. PS: These pins must work, i rebuild another thing that's works fine! Software configs are the same, that is not the problem. Edited February 15, 2020 by hYtas
Igor Posted February 15, 2020 Posted February 15, 2020 On 2/15/2020 at 7:43 PM, hYtas said: I own a Duo with Ubuntu 16.04.6 Expand On 2/15/2020 at 7:43 PM, hYtas said: npi-config Expand This forum provides support for Armbian (on Duo and others). Welcome to check it. Also we have different/better way of handling hardware and I/O: https://github.com/sgjava/userspaceio
martinayotte Posted February 15, 2020 Posted February 15, 2020 On 2/15/2020 at 7:43 PM, hYtas said: UART1 pins 8 & 9. Expand Not from what we can see on schematic, those are SPI1 pins, UART1 pins are 10 & 11. http://wiki.friendlyarm.com/wiki/images/8/8a/Schematic_NanoPi_Duo-v1.1.pdf
sgjava Posted February 22, 2020 Posted February 22, 2020 UART1 is specified in this diagram. Enable it in armbian-config, install userspaceio and look at https://github.com/sgjava/userspaceio/blob/master/c-periphery/python/src/serialtest.py
Recommended Posts