fsphil / hacktv

Analogue TV transmitter for the HackRF
GNU General Public License v3.0
671 stars 80 forks source link

Add antenna argument for LimeSDR users; add -A shortcut for ATV on 433.25MHz; alternative test logo; README updates #28

Closed texasyojimbo closed 5 years ago

texasyojimbo commented 5 years ago

Sharing some custom code that I added to make my life easier:

  1. When I first started experimenting with SoapySDR and LimeSDR with HackTV, I had problems because I believe the antenna setting on the Lime was defaulting to NONE. I added an argument that allows one (if specified) to set it to BAND1 or BAND2 instead. On the Lime BAND1 is for HF/VHF/UHF and BAND2 is for UHF/SHF (better gain on 23cm and 13cm for example).

This is implemented using new -b / --band argument.

  1. I also added an argument -A / --amateur to set the frequency to 433.25 MHz (approx. same as Channel 59 CATV in the US). This is a common amateur frequency.

  2. I added my_test.c which is a variant of test.c. Copying my_test.c over test.c and then doing make / make install will show my custom AD5NL :) logo instead. Intended as an example of how to alter test.c for custom purposes.

  3. I made a few changes to README to document my changes above.

fsphil commented 5 years ago

The antenna option should be named -A --antenna and pass the arg string directly to rf_soapysdr_open(). This would allow it to work with any device that supports multiple antennas.

Other than the antenna issue, does hacktv work well with the LimeSDR?

The other changes are maybe a bit too specific to your own usage.

texasyojimbo commented 5 years ago

Thanks Phil. I noticed some lag and some glitching. But it was far better with HackTV (and with color and sound!) thsn on sdrangel.

I also found that 9 MHz sample rate worked better for me than 13.5 MHz.

Would you like me to rewrite using your suggestions?

On Tue, Feb 26, 2019, 3:17 AM Philip Heron notifications@github.com wrote:

The antenna option should be named -A --antenna and pass the arg string directly to rf_soapysdr_open(). This would allow it to work with any device that supports multiple antennas.

Other than the antenna issue, does hacktv work well with the LimeSDR?

The other changes are maybe a bit too specific to your own usage.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fsphil/hacktv/pull/28#issuecomment-467360451, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEp0BrXed0xEuIWwiciwlFk71EV1AnVks5vRPu3gaJpZM4bO167 .

texasyojimbo commented 5 years ago

Also would be happy to upload a YouTube video to show what I mean by lag/glitch

On Tue, Feb 26, 2019, 5:44 AM James Dallas jim.dallas@gmail.com wrote:

Thanks Phil. I noticed some lag and some glitching. But it was far better with HackTV (and with color and sound!) thsn on sdrangel.

I also found that 9 MHz sample rate worked better for me than 13.5 MHz.

Would you like me to rewrite using your suggestions?

On Tue, Feb 26, 2019, 3:17 AM Philip Heron notifications@github.com wrote:

The antenna option should be named -A --antenna and pass the arg string directly to rf_soapysdr_open(). This would allow it to work with any device that supports multiple antennas.

Other than the antenna issue, does hacktv work well with the LimeSDR?

The other changes are maybe a bit too specific to your own usage.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fsphil/hacktv/pull/28#issuecomment-467360451, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEp0BrXed0xEuIWwiciwlFk71EV1AnVks5vRPu3gaJpZM4bO167 .

fsphil commented 5 years ago

Would you like me to rewrite using your suggestions?

I can add it in, it's a pretty simple change but I'll need you to test it. I don't have a LimeSDR.

A video of the glitch would be nice. Do you want to open up a new issue for it? I'll close this.

texasyojimbo commented 5 years ago

Would be happy to test and provide a video. I think the lag is probably down to ffmpeg settings.

On Tue, Feb 26, 2019, 8:41 AM Philip Heron notifications@github.com wrote:

Would you like me to rewrite using your suggestions?

I can add it in, it's a pretty simple change but I'll need you to test it. I don't have a LimeSDR.

A video of the glitch would be nice. Do you want to open up a new issue for it? I'll close this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fsphil/hacktv/pull/28#issuecomment-467464043, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEp0N33Tmmew56Zzp16emI-7oZlGsWHks5vRUexgaJpZM4bO167 .