New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTT Line for Multi-Channel WSPR transceiver #314

Closed
ptamike opened this Issue Jul 17, 2016 · 8 comments

Comments

Projects
None yet
3 participants
@ptamike

ptamike commented Jul 17, 2016

Hi Pavel,

Could you add a PTT line using one of the Red Pitaya GPIOs to trigger a transmit/receive antenna switch?

Thanks,

Mike - G4WNC

@pavel-demin

This comment has been minimized.

Show comment
Hide comment
@pavel-demin

pavel-demin Jul 19, 2016

Owner

Hi Mike,

The GPIO pins were enabled in the FPGA configuration with the commit 8ce36c8.

What is missing is some C code to control one of the GPIO pins. I'll try to add it in the coming days.

Best regards,

Pavel

Owner

pavel-demin commented Jul 19, 2016

Hi Mike,

The GPIO pins were enabled in the FPGA configuration with the commit 8ce36c8.

What is missing is some C code to control one of the GPIO pins. I'll try to add it in the coming days.

Best regards,

Pavel

@XYEFA

This comment has been minimized.

Show comment
Hide comment
@XYEFA

XYEFA Jul 19, 2016

Hello Pavel - Will this code be at the kernel level or will be a user level API? Also from what I infer from your comments, the GPIOs are not Zynq MIO GPIOs but GPIOs synthesized from the FPGA. Is this correct?

XYEFA commented Jul 19, 2016

Hello Pavel - Will this code be at the kernel level or will be a user level API? Also from what I infer from your comments, the GPIOs are not Zynq MIO GPIOs but GPIOs synthesized from the FPGA. Is this correct?

@pavel-demin

This comment has been minimized.

Show comment
Hide comment
@pavel-demin

pavel-demin Jul 19, 2016

Owner

It will be the user level code. Very similar to the PTT control in other SDR projects:
https://github.com/pavel-demin/red-pitaya-notes/blob/master/projects/sdr_transceiver/server/sdr-transceiver.c#L309

Owner

pavel-demin commented Jul 19, 2016

It will be the user level code. Very similar to the PTT control in other SDR projects:
https://github.com/pavel-demin/red-pitaya-notes/blob/master/projects/sdr_transceiver/server/sdr-transceiver.c#L309

@pavel-demin

This comment has been minimized.

Show comment
Hide comment
@pavel-demin

pavel-demin Sep 21, 2016

Owner

I've just added a small program called gpio-output.c with this commit.

This program controls the DIO*_P pins of the extension connector E1.

I've also added this program to the decode-wspr.sh and transmit-wspr.sh scripts. The pin DIO0_P is switched to high one second before the transmission and it's switched to low one second before the reception.

The program and all the modified files can be downloaded to Red Pitaya with the following commands:

wget -O Makefile https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/Makefile
wget -O gpio-output.c https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/gpio-output.c
wget -O decode-wspr-ptt.sh https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/decode-wspr.sh
wget -O transmit-wspr-ptt.sh https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/transmit-wspr.sh

The program can be compiled with the following command:

make
Owner

pavel-demin commented Sep 21, 2016

I've just added a small program called gpio-output.c with this commit.

This program controls the DIO*_P pins of the extension connector E1.

I've also added this program to the decode-wspr.sh and transmit-wspr.sh scripts. The pin DIO0_P is switched to high one second before the transmission and it's switched to low one second before the reception.

The program and all the modified files can be downloaded to Red Pitaya with the following commands:

wget -O Makefile https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/Makefile
wget -O gpio-output.c https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/gpio-output.c
wget -O decode-wspr-ptt.sh https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/decode-wspr.sh
wget -O transmit-wspr-ptt.sh https://raw.githubusercontent.com/pavel-demin/red-pitaya-notes/master/projects/sdr_transceiver_wspr/transmit-wspr.sh

The program can be compiled with the following command:

make
@ptamike

This comment has been minimized.

Show comment
Hide comment
@ptamike

ptamike Sep 22, 2016

Hi Pavel,

Thanks for adding the PTT line. However, I think there may be an error in the link you sent to download the Makefile. I've tried it a couple of times and it returns the old Makefile. I can get round it here but it might confuse others.

Thanks again,

Mike

ptamike commented Sep 22, 2016

Hi Pavel,

Thanks for adding the PTT line. However, I think there may be an error in the link you sent to download the Makefile. I've tried it a couple of times and it returns the old Makefile. I can get round it here but it might confuse others.

Thanks again,

Mike

@pavel-demin

This comment has been minimized.

Show comment
Hide comment
@pavel-demin

pavel-demin Sep 22, 2016

Owner

Hi Mike,

Thanks for testing this new code.

I think that wget saves new Makefile as Makefile.1. It's probably good that it doesn't overwrite the old file. At least, it could be useful for decode-wspr.sh because it could contain some local modifications. But I agree that in case of Makefile it might confuse.

I've added -O option to all the wget commands and -ptt suffix to the new versions of the shell scripts but I'm afraid that it's still confusing.

Best regards,

Pavel

Owner

pavel-demin commented Sep 22, 2016

Hi Mike,

Thanks for testing this new code.

I think that wget saves new Makefile as Makefile.1. It's probably good that it doesn't overwrite the old file. At least, it could be useful for decode-wspr.sh because it could contain some local modifications. But I agree that in case of Makefile it might confuse.

I've added -O option to all the wget commands and -ptt suffix to the new versions of the shell scripts but I'm afraid that it's still confusing.

Best regards,

Pavel

@pavel-demin

This comment has been minimized.

Show comment
Hide comment
@pavel-demin

pavel-demin Dec 23, 2016

Owner

I've finally rebuilt the WSPR SD card image. The GPIO control program (gpio-output) is installed on this new WSPR SD card image. Closing this issue.

Owner

pavel-demin commented Dec 23, 2016

I've finally rebuilt the WSPR SD card image. The GPIO control program (gpio-output) is installed on this new WSPR SD card image. Closing this issue.

@ptamike

This comment has been minimized.

Show comment
Hide comment
@ptamike

ptamike Dec 23, 2016

ptamike commented Dec 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment