[arm-allstar] How to use Raspberry Pi GPIO pins to connect and disconnect a node
Darrell Black
gigahacker at gmail.com
Wed Jan 29 14:11:12 EST 2020
There are a few ways to do what you are asking. I think you trying to do it
the hard way. If you use supermon you can just add the second node to you
favorits button. If you are not using supermon then you can place a macro
in the rtp.conf
[functionsxxxxx] <=== your node number
; execute macro = *5<macro#>
5=macro,1
[macroxxxxx] <=== your node number
5=*55 *3xxxxx <=== the number you want to dial
Then when you press *55 it will run the function #5 that will run the macro
that will dial your other node
If that is not want you want you can write some PHP so when you go to your
nodes website http://192.168.1.xxx <== you nodes ip you see the "This is a
test" page. Replace the srv\http\index.html with a new one that looks like
this.
<html>
<head>
<title>YourNodeNameHere</title>
</head>
<body>
<br>
<p><a href="/dial.php">Connect</a></p>
<p><a href="/hangup.php">Disconnect</a></p>
</br>
</body>
</html>
Then you need two scripts..that dial and hangup....I can help more if this
is the path you want to take but as it was pointed out to me, your opening
the door of hackers this way.
On Wed, Jan 29, 2020 at 1:46 PM "Steve Sedgwick via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hi,
>
> Has anyone created a way to use two GPIO pins on a Raspberry pi node to
> connect and disconnect that node to another node or hub? What I want to
> be able to do is on my node I want to be able to press a pushbutton that
> is connected to a GPIO pin on my node and that press causes my node to
> connect to a predetermined node, for example connecting node 12345 to
> node 54321. I would also like to be able to press a second pushbutton
> and disconnect my node from a predetermined node, for example disconnect
> node 54321 from node 12345. I want this for my mobile node so I don't
> have to dial the normal node connection/disconnection sequences. It's a
> lot easier for me to press one button on my node than it is to press 7
> or eight touch tone keys on a microphone or HT while drive down the road
> a 70 mph.
>
> Thanks, 73
>
> Steve_WB8GRS
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
--
Darrell Black
(517) 917-2226
GigaHacker at gmail.com
http://www.linkedin.com/in/darrellblack
73 de W8DSB
"In God we trust, all others we monitor"
GMRS WRDE739
More information about the ARM-allstar
mailing list