mholling / rpirtscts Goto Github PK
View Code? Open in Web Editor NEWEnable hardware flow control signals on the Raspberry Pi serial port.
License: GNU General Public License v3.0
Enable hardware flow control signals on the Raspberry Pi serial port.
License: GNU General Public License v3.0
In the RPi 3 you can switch the bt to the minuart with the pi3-miniuart-bt kernel dtoverlay. When you do this, the main uart is exposed on pins 8 and 10... and it maps to /dev/serial0. I guess my question is do we need to do anything to use this code to enable CTS / RTS on serial0 in this mode? Or does the remapping at the kernel level magically deal with this?
Hello there,
Thank you for the script. It needs to be updated a little in order to work with latest PI however. In /proc/cmdline you are looking for a string "bcm2708.boardrev=", and it is now "bcm2709.boardrev=".
I have Pi3 On Ubuntu Mate 16.04
my issue is "can't parse /proc/cmdline"
see below. (this is my "/proc/cmdline"
8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1366 bcm2708_fb.fbheight=768 bcm2709.boardrev=0xa02082 bcm2709.serial=0xb814368e smsc95xx.macaddr=B8:27:EB:14:36:8E bcm2708_fb.fbdepth=32 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quiet splash
you can see about this issue.
my boardrev bcm2709.
Thank you
while (fscanf(fp, "%255s", string) == 1)
if (sscanf(string, "bcm2708.boardrev=%i", &result))
break;
else if(sscanf(string,"bcm2709.boardrev=%i", &result))
break;
fclose(fp);
GPIO base address for Raspberry Pi 2 should be 0x3F200000 instead of 0x20200000. I wasted a day to solve this problem so I hope that this post will help to some noob like me :) .
Hello Matthew,
Mask to enable RTS and CTS is GPIO1617mask 0x00fc0000. What would be the mask to enable CTS only
and not RTS? Also, could you please recommend me any GPIO tutorial?
Thank you,
Pavel.
Hello,
Can I use this code for my RS485 testing ?
RS485 RE -> RTS of RPI; GPIO16
RS485 DE -> CTS of RPI; GPIO17
Here is my issue:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=234478
Thanks for your help.
Hello,
I was hoping t use this project to enable flow control on the pi to be able to upload the firware to the arduino frm the pi when the serial connection between the pi and the arduino is through the gpio pins (8 and 10).
Besides following your instructions on how to enable pins 16 and 17 on the pi, how should those pins go into the arduino? Currently I am using a logic level shifter to connect the tx and Rx prt on the Arduino to the Pi.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.