GPIO input to change Ryde F type input
GPIO input to change Ryde F type input
Is there any chance of a version of Ryde software where a GPIO input could switch the frequency and input F type so that a repeater controller could switch between frequencies and aerials? This would allow a repeater to experiment with different frequency inputs without a great expence or modification. For example on GB3NQ we have 2m, 70cms, 23cms, Oscar 100 and a stream input. As an experiment one of these inputs could switch between say Oscar 100 and 71Mhz or 13cm etc. at certain times. If the experiment worked then another Ryde etc. could then be built.
Martin G8LCE
Martin G8LCE
Re: GPIO input to change Ryde F type input
I am wondering if the Ryde GPIO pins PWM0 and PWM1 are inputs or outputs and weather they will be working? The wiki says 'Note that Band GPIO setting does not have any effect yet.'
If they were inputs to control the band selection this would answer my idea to control an experiment input to a repeater. Looking into the Ryde manual the idea could use the 8 way switch controller as well which opens another door for experimentation!
Martin G8LCE
If they were inputs to control the band selection this would answer my idea to control an experiment input to a repeater. Looking into the Ryde manual the idea could use the 8 way switch controller as well which opens another door for experimentation!
Martin G8LCE
Re: GPIO input to change Ryde F type input
Hi, I am working a similar problem.
I was going a different way as my remote controller is working on node-red.
And Tom proved that you can send ip messages to ryde controlling several bits and pieces.
This includes preset channels witch is what you would want for this.
But i am still struggling on the messages format, i should send.
The band selection pins are output as i am using that on a different project.
Benno
I was going a different way as my remote controller is working on node-red.
And Tom proved that you can send ip messages to ryde controlling several bits and pieces.
This includes preset channels witch is what you would want for this.
But i am still struggling on the messages format, i should send.
The band selection pins are output as i am using that on a different project.
Benno
Re: GPIO input to change Ryde F type input
The other way to attempt this would be to use a Portsdown in console mode - so no screen attached - and control the Receive section and config part to change the input a or b. If you can work out the network control inputs needed ( mimicking the remote control from a windows computer to control the Portsdown in console remote mode ) it would be easy!!!!!
This would allow repeaters with Minitiouners and Rydes to change the Ryde SD for a Portsdown SD and reprogram the controller then be able to double their input frequency channels or aerials. Not at the same time but there would be uses which people have not thought of yet.
This does stop the scanning features of the Ryde but in one case I am looking at it would be ideal. On GB3NQ the fixed Oscar 100 input could on a timed rota switch to 71MHz 333kSR (for experimenting)
Martin G8LCE
This would allow repeaters with Minitiouners and Rydes to change the Ryde SD for a Portsdown SD and reprogram the controller then be able to double their input frequency channels or aerials. Not at the same time but there would be uses which people have not thought of yet.
This does stop the scanning features of the Ryde but in one case I am looking at it would be ideal. On GB3NQ the fixed Oscar 100 input could on a timed rota switch to 71MHz 333kSR (for experimenting)
Martin G8LCE
Re: GPIO input to change Ryde F type input
Hi
They Ryde receiver can already switch between the top and bottom input F types for different bands.
Edit /home/pi/ryde/config.yaml and set up the band with TOP or BOTTOM:
I haven't tested the GPIO switching mentioned in the config file but I'll ask Tim this weekend.
Far easier to do it with the Ryde which was designed for the purpose than the Portsdown.
Dave
They Ryde receiver can already switch between the top and bottom input F types for different bands.
Edit /home/pi/ryde/config.yaml and set up the band with TOP or BOTTOM:
Code: Select all
QO-100: &bandlnblow
source: LONGMYND
lofreq: 9750000
loside: LOW
pol: NONE
port: TOP
gpioid: 7
146: &band146
source: LONGMYND
lofreq: 0
loside: SUM
pol: NONE
port: BOTTOM
gpioid: 1
Far easier to do it with the Ryde which was designed for the purpose than the Portsdown.
Dave
Re: GPIO input to change Ryde F type input
Yes Dave, but the question was to have a single gpio pin input to select a preset or channel.
So gpio is high. is channel x on port A and GPIO low is Channel Y on port B.
Benno
So gpio is high. is channel x on port A and GPIO low is Channel Y on port B.
Benno
Re: GPIO input to change Ryde F type input
That is exactly what I was hoping for, so fingers crossed.
Martin G8LCE
Martin G8LCE
Re: GPIO input to change Ryde F type input
There may be another way to try two bands on a Ryde for testing. Using one input of the minitiouner and using a combiner of the two bands. Looking at GB3NQ, the 146.5MHz input could also have 71MHz or 51.7MHz added via a +125MHz upconvertor and combiner etc. Alan G3XPY is thinking about that! The scanning is already just the lower SR's so should not slow the process too much.
Martin G8LCE
Martin G8LCE
Re: GPIO input to change Ryde F type input
Benno - you could do this either in the Ryde source code or with a background daemon using the network interface. Taking the latter example, a bit of code in c to monitor the GPIO and send a suitable message to the Ryde process, e.g. sendEvent or setTune. Details here https://github.com/eclispe/rydeplayer
To me this seems better as it would not require changes to Ryde and would be as custom as the code you write, e.g. you wanted it to tune to a specific channel, but only on a Friday, if and only if a specific brand of beer is on offer in Aldi according to their web page. This is of course a ridiculous example to illustrate the point around customisation. It could trigger anything it is capable of, based on anything you want.
I suppose you could use Node Red to do this, but there are plenty of GPIO monitoring examples in C, C++, Python...
Mike