Re: [Svxlink-devel] Raspberry Pi GPIO support
Brought to you by:
sm0svx
From: Tobias B. <sm...@us...> - 2013-05-25 08:09:07
|
On 05/21/2013 04:32 PM, David McKenzie wrote: > Hello, > > I have written a patch adding Raspberry Pi GPIO support to SVXLINK's > LocalTx. It's a bit hackish as it uses the sysfs files to toggle the > GPIO value on a specified pin, but this method allows for a non-root > user to change the value of the pin by chowning the proper file to > svxlink. > > Prerequisites for use: > Execute the following commands to export the GPIO pin for use either > in /etc/rc.local or prior to starting svxlink: > > # echo "31" >/sys/class/gpio/export > # echo "out" >/sys/class/gpio/gpio31/direction > > The above commands export GPIO pin 31 and set it as an output. If you > are running svxlink as a user other than root, you will also want to > chown /sys/class/gpio/gpio31/value to the svxlink user. > > To configure svxlink to use GPIO PTT, configure the following in the > transmitter (Tx1) section of svxlink.conf: > > PTT_PORT=GPIO > PTT_PIN=+31 > > PTT_PORT must be set to GPIO to enable GPIO support, and the PTT_PIN > must have a prefix of "+" to be recognized. Once set, start svxlink > and connect to it. On transmit the specified GPIO pin will be brought > up 3.3 volts where it can easily bias an NPN transistor for > ptt-to-ground keying. > > Patch can be found here: > http://vhfwiki.com/svxlink-13.03-raspi-gpio.patch Thanks, but the server cannot be accessed. 73's de SM0SVX / Tobias > > Regards and 73s, > David K1FSY > |