pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
334 stars 207 forks source link

2e TX output on redpitaya #708

Closed fransnissen closed 6 years ago

fransnissen commented 6 years ago

Description of the setup:

Description of the problem:

I'm using the redpitaya for HF, and built myself a preRX filter bank for every hamband and switche it by i2c. My nexst project is to use the Hamlab / redpitaya for my 2m/70cm to 28mhz transverter. actualy using the 1 rx and tx output is a bit complicated, i have to bypass the TX LPF and TX BPF. it would be easy when i could use for RX and specialy TX the 2e output on the Redpitaya.

I know it is for now not possible to use the second TX output. my question is would in in the near future possible in the software? it would help me a lot.

Kind regard, Frans Nissen

pavel-demin commented 6 years ago

Hello Frans,

Currently, OUT2 outputs the envelope signal that can be used with the envelope elimination and restoration (EER) power amplifiers.

I can try to add some logic that would allow to select what signal goes to what output.

Best regards,

Pavel

fransnissen commented 6 years ago

That would help me a second TX output on these pedpitayas sdr's

regard

Frans

dish-eme-sdr commented 6 years ago

Maybe a bit off topic, but you mentioned something about the function of OUT2 that I did not know:

Currently, OUT2 outputs the envelope signal that can be used with the envelope elimination and restoration (EER) power amplifiers.

Someplace along the way I completely missed that OUT2 outputs the envelope signal when in EER mode. Now that I know this I may give an EER amp a try!

Currently I am running a conventional linear amplifier chain and using IN2 (RX2) for the adaptive predistortion feedback signal (PURESIGNAL in PowerSDR OpenHPSDR MRX) and it works GREAT thanks to your clever coding on the RedPitaya.

I am curious when in EER mode and using OUT2 for the Envelope signal, can I still use RX2 for the PURESIGNAL input port or is that disabled in EER mode???

And:

Is there a way to add a software controlled step attenuator to the Rx input / feedback path similar to what Anan does? I have seen mention of some kind of add on board that can be used with RedPitaya but have not been able to nail the source and info down.

Feel free to move or delete this post if needed as I realize it's not 100% on topic but is somewhat related as it does relate to the function of OUT2 and the software controlled attenuator is something that most certainly could come in handy to set system gain when connecting outboard transverters to the RedPitaya. As it is now I have to use external pads to set the gain.

ka6s commented 6 years ago

Look up Charlie 25;

pavel-demin commented 6 years ago

I've added some logic that allows to select what signal goes to what output with this commit.

Now, the sdr-transceiver-hpsdr program expects five command line arguments:

To send the TX signal to OUT2, the last line is start.sh should be edited and the last argument should be set to 1:

sdr-transceiver-hpsdr 1 2 2 1 1 &
pavel-demin commented 6 years ago

I am curious when in EER mode and using OUT2 for the Envelope signal, can I still use RX2 for the PURESIGNAL input port or is that disabled in EER mode???

The envelope signal is independent of the PureSignal algorithm. Both can be enabled simultaneously. However, it's not impossible that there could be some side effects due to crosstalk that could degrade the performance of the PureSignal algorithm. It's to be tested.

Is there a way to add a software controlled step attenuator to the Rx input / feedback path similar to what Anan does?

If you have a controllable step attenuator, then it's most probably possible to interface it with the Red Pitaya board and with the SDR application.

Please open a new issue if you want to continue the discussion about the step attenuator control.

dish-eme-sdr commented 6 years ago

"sdr-transceiver-hpsdr 1 2 2 1 1 &"

THANK YOU !!!

satfan52 commented 6 years ago

Hello, I confirm that the port selections would be very useful, it would be great if this settings could be controlled not only at the start of the program but also when the transceiver is running for instance via specific band codes using Hermes bit 1 to 4 that can be set in Quisk and PowerSDR or alternatively through some other mechanism that could be controlled via a customised button in QUISK ( a kind of T/R switch )

Regarding the control of a digital attenuators, I currently use Hermes bit 5, 6, 7 with a customised button in QUISK for that purpose but that only provides 8 attenuation steps, actually 6 only considering that the activation of the LNA and the external narrow bandwidth Filter must also be controlled via those 3 Hermes bits. Is there a way to control the digital attenuators via the SPI or I2C interface so I can exploit all 64 attenuation steps of my 7 usd PE4302 digital attenuators (6 bits ) ? and if yes how to do this practically ? I would like to use a customised button in Quisk , that is easy to do, but then how to get the information out from the redpitaya to the digital attenuator in a serial way via SPI or I2C ? Generally speaking it would be nice to be pointed to some guideline regarding what type of information can be sent serially via the SPI and I2c interface dynamically to control external devices like digital attenuators but also external switches for rf-routing purposes ( to control transverters , cross band operation for satellite , dedicated filters for the 2nd and 3rd RX indepenftly of the filter settings of the first RX , etc ...) and/or to send instr control information to a micro controler like an Arduino .

My apologies for this basic question but I had it burning in me for a while along with the use and control of the 2nd output port for rf-routing purpose; the 7 Hermes bits are just not enough to get all the info out to my Arduino and/or other digital devices that I wish to control via the RP. I just need to understand how to get information out serially in an easy way using custom buttons in QUiSK.

Thanks Regards Peter

pavel-demin commented 6 years ago

The logic that allows to select what signal goes to what output is now in the latest release.

@dish-eme-sdr & @satfan52 - Please open a new issue if you want to continue the discussion about the attenuators. I don't think that GitHub provides a way to move comments from one issue to another. So, please copy them yourself.

Closing this issue.