Scott
Posts: 4
Joined: Fri Apr 25, 2014 9:17 am

On B+, how can I use RTS/CTS (Alt 3) on GPIO16 and 17?

Fri Aug 29, 2014 1:27 am

GPIO16 and GPIO17 are supposed to have Alt 3 functions of RTS/CTS (http://www.panu.it/raspberry/), which I would like to use.

I'm looking for a standalone programmatic solution that I can run every boot or a way to permanently switch the functions. If there's a way to do it in RPi.GPIO for Python, that would work, too. USB serial is not an option.

Please note that I am using a B+.

I've looked at https://github.com/mholling/rpirtscts, but the B+ doesn't have the header that uses.

I've also tried TimG's tool (http://www.raspberrypi.org/forums/viewt ... 44&t=39138) to switch the functions, but it causes I/O errors, so I suspect it's not compatible with the B+.

Any help would be greatly appreciated!

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: On B+, how can I use RTS/CTS (Alt 3) on GPIO16 and 17?

Fri Aug 29, 2014 7:41 am

pigpio will let you set the modes using the pigs utility, e.g. http://abyz.co.uk/rpi/pigpio/pigs.html#M/MODES

That seems overkill for your needs. You could use http://abyz.co.uk/rpi/pigpio/examples.html#Misc_code minimal gpio access as a template and remove all the code you don't need.

Scott
Posts: 4
Joined: Fri Apr 25, 2014 9:17 am

Re: On B+, how can I use RTS/CTS (Alt 3) on GPIO16 and 17?

Fri Aug 29, 2014 9:29 am

Thanks for the quick response!

I trimmed it down and got it to do what I need and was able to verify that the alt mode was actually switched with both that snippet and with WiringPi.

Return to “Interfacing (DSI, CSI, I2C, etc.)”