Raspberry Pi 3, pin gpio serial communication on Arch

This is for ARMv8 based devices

Raspberry Pi 3, pin gpio serial communication on Arch

Postby Ceeff90 » Tue Mar 21, 2017 7:58 am

Hi,
I'm trying to make mi Raspberry Pi 3 be able to communicate with an arduino UNO in Arch, better if with compatibility with C code.
I followed the official guide for RPi3
https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3
(that install the image for RPi2 in the SD).
The serial communication not work, I tried with wiringPi library without results.
Any helps ? Someone has some examples, suggestion ?

Thanks, in advance
Ceeff90
 
Posts: 2
Joined: Mon Mar 20, 2017 9:23 pm

Re: Raspberry Pi 3, pin gpio serial communication on Arch

Postby WarheadsSE » Tue Mar 21, 2017 12:39 pm

How are you trying to communicate? Serial? Why is WiringPi involved?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6730
Joined: Mon Oct 18, 2010 2:12 pm

Re: Raspberry Pi 3, pin gpio serial communication on Arch

Postby Ceeff90 » Wed Mar 22, 2017 4:51 pm

Thanks for the response.
I went through the issues and solved it!
Anyway in my question I forgot to add some informations as I want to use the gpio port of RPi3. My apologies...
The solutions I found are the following.
First I followed some suggestions (I added enable_uart=1 on config.txt in /boot, I removed all occurences of ttyAMA0 in cmdconfig.txt, I disabled getty@ttyAMA0 on systemctl) founded googling for my problem.
After that changes I reboot, and I tried with pyserial library that worked for me.
Further I tried the code on this guide
http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uart
modifiing the port ttyAMA0 to ttyS0 as suggested. And that worked too!
In this way I had my RPi3 working with gpio pins without wiringPi libraries( can't understand if serial in wiringPi uses the default pins TX, RX of RPi3!).
Now I'm working on a bluetooth issue to make it works in my arch system.

Thanks a lot!
Ceeff90
 
Posts: 2
Joined: Mon Mar 20, 2017 9:23 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 1 guest