Discussion:
[Hackrf-dev] TX/RX switching
Dana Shtun
2018-04-18 12:51:33 UTC
Permalink
Hey Jake

Can you share your flow graph?

I have used the HackRF on SSB up to 5.7 Ghz here on transmit
with the mike plugged into the PC, but can’t figure out how to go from TX to RX easily…
Best DX has been 105 miles here on 3.4 Ghz… but power out on 5.7 is pretty low...

Also has anyone got a simple way to send morse code in real time? I’ve been able to set up
a multiband propagation beacon using the HackRF with a canned CW stream

e mail is ve3dss at hotmail.com

Thanks
Dana VE3DS (in Toronto)


On Apr 13, 2018, at 01:28, hackrf-dev-***@greatscottgadgets.com wrote:

Send HackRF-dev mailing list submissions to
hackrf-***@greatscottgadgets.com

To subscribe or unsubscribe via the World Wide Web, visit
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
or, via email, send a message with subject or body 'help' to
hackrf-dev-***@greatscottgadgets.com

You can reach the person managing the list at
hackrf-dev-***@greatscottgadgets.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of HackRF-dev digest..."


Today's Topics:

1. Selector block (Matteo Terzi)
2. Re: RX/TX switching (Matteo Terzi)
3. Re: RX/TX switching (***@nehp.net)
4. RX/TX switching (Matteo Terzi)
5. Fwd: RX/TX switching (Matteo Terzi)
6. Re: RX/TX switching (Gavin Jacobs)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Apr 2018 10:47:58 +0200
From: Matteo Terzi <***@gmail.com>
To: "hackrf-***@greatscottgadgets.com"
<hackrf-***@greatscottgadgets.com>
Subject: [Hackrf-dev] Selector block
Message-ID:
<CAAbb718NW9fr+xLYhPSTNeOHkYfaceQmoJxeQyo9gSy3=***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi all,
How does the "selector block" function in GNU Radio Companion?
In attachment there is the flow (and the properties of the selector) that
I'm doing but I can't understand how the selector block is working.
Thanks a lot
Matteo
--
Matteo TERZI
Google Gmail Member
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/da126664/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selector.png
Type: image/png
Size: 78301 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selector2.png
Type: image/png
Size: 94494 bytes
Desc: not available
URL: <Loading Image...>

------------------------------

Message: 2
Date: Thu, 12 Apr 2018 11:53:37 +0200
From: Matteo Terzi <***@gmail.com>
To: hackrf-***@greatscottgadgets.com
Subject: Re: [Hackrf-dev] RX/TX switching
Message-ID:
<CAAbb71-kTuBoNRmY9zCqxxSn_D5N9-xV6M2q=9tgJk6k9+***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Jake,

I?m a newcomer to GRC and I?m trying to learn as much as I can with it. I
installed GNU Radio Companion on Windows 7.

In my flow I?d like to receive a signal, register it into a file, switch
from RX to TX and suddenly transmit it. My problem is that I can?t create a
flow to switch.

In attachment you can find my program.

Thanks for the support

Matteo


--
Matteo TERZI
Google Gmail Member
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/4d786d44/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch_v5.grc
Type: application/octet-stream
Size: 68428 bytes
Desc: not available
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/4d786d44/attachment-0001.obj>

------------------------------

Message: 3
Date: Thu, 12 Apr 2018 06:22:46 -0500
From: ***@nehp.net
To: "Matteo Terzi" <***@gmail.com>
Cc: hackrf-***@greatscottgadgets.com
Subject: Re: [Hackrf-dev] RX/TX switching
Message-ID:
<***@webmail.nehp.net>
Content-Type: text/plain;charset=iso-8859-1

All,

Kind of a similar question, but instead of TXing from a file, is there a
way to hook up a microphone to a hackRF and transmit mic output (with a
carrier frequency and appropriate modulation), i.e., for ham radio.

Brian
Hi Jake,
I???m a newcomer to GRC and I???m trying to learn as much as I can with
it. I
installed GNU Radio Companion on Windows 7.
In my flow I???d like to receive a signal, register it into a file, switch
from RX to TX and suddenly transmit it. My problem is that I can???t
create a
flow to switch.
In attachment you can find my program.
Thanks for the support
Matteo
--
Matteo TERZI
Google Gmail Member
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
--
Brian Wiemeyer
2395 Cherry Tree Rd.
Gurley, AL 35748
(256) 725-4429
***@nehp.net



------------------------------

Message: 4
Date: Thu, 12 Apr 2018 16:54:44 +0200
From: Matteo Terzi <***@gmail.com>
To: hackrf-***@greatscottgadgets.com
Subject: [Hackrf-dev] RX/TX switching
Message-ID:
<***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi all,
I'm developing my flow with GRC and I need a hand. The flow is almost
finished.
I'm able to acquire a signal and in the same program, I switch in TX mode
by means of a "wx gui chooser" to re-produce the signal. The problem is
that my hackrf doesn't switch in TX mode and so, I can see the signal on
the "fft sink" but my device doesn't transmit. Do I have to use any driver
(soapy)? Which could be the problem?
Take a look at the attachment to better understand the problem.
Thanks
Matteo

--
Matteo TERZI
Google Gmail Member
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/fafee049/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sink.png
Type: image/png
Size: 92942 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: source.png
Type: image/png
Size: 97539 bytes
Desc: not available
URL: <Loading Image...>

------------------------------

Message: 5
Date: Thu, 12 Apr 2018 18:10:01 +0200
From: Matteo Terzi <***@gmail.com>
To: hackrf-***@greatscottgadgets.com
Subject: [Hackrf-dev] Fwd: RX/TX switching
Message-ID:
<CAAbb71-Pp_0fqgkuUK70BRtsRh7UPX7RPp4LgjLZbyL2Mzk-***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

---------- Forwarded message ----------
From: Matteo Terzi <***@gmail.com>
Date: 2018-04-12 18:09 GMT+02:00
Subject: Re: [Hackrf-dev] RX/TX switching
To: i2NDT <***@yahoo.it>


Hi Claudio,
Which could be the problem? lack of libraries in windows or what else?
which is centre of this defect on this operating system?
Thanks
Matteo
Matteo,
if you are using Windows you will never be able to transmit!
as far as I know...only Linux allows GnuRadio and HackRF One to transmit!..
i2NDT Claudio
i2NDT's Web Site <http://digilander.libero.it/i2ndt/>
*i2NDT's Grabber Compendium*
<http://digilander.libero.it/i2ndt/grabber/grabber-compendium.htm>
Hi all,
I'm developing my flow with GRC and I need a hand. The flow is almost
finished.
I'm able to acquire a signal and in the same program, I switch in TX mode
by means of a "wx gui chooser" to re-produce the signal. The problem is
that my hackrf doesn't switch in TX mode and so, I can see the signal on
the "fft sink" but my device doesn't transmit. Do I have to use any driver
(soapy)? Which could be the problem?
Take a look at the attachment to better understand the problem.
Thanks
Matteo
--
Matteo TERZI
Google Gmail Member
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
--
Matteo TERZI
Google Gmail Member



--
Matteo TERZI
Google Gmail Member
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/4a2bc6e0/attachment-0001.html>

------------------------------

Message: 6
Date: Thu, 12 Apr 2018 21:12:27 +0000
From: Gavin Jacobs <***@hotmail.com>
To: "hackrf-***@greatscottgadgets.com"
<hackrf-***@greatscottgadgets.com>
Subject: Re: [Hackrf-dev] RX/TX switching
Message-ID:
<***@MWHPR2201MB1439.namprd22.prod.outlook.com>

Content-Type: text/plain; charset="iso-8859-1"

Brian,
Attached is a flowgraph which shows how to RX/TX voice. There are several things that need to be explained.
1) My server is in the attic, so I use the network to send/receive the audio to my laptop. The UDP Source and UDP Sink blocks handle that for me, but you could use the GRC Audio Sink/Source blocks.

2) The Select block was written by me to choose which stream to transmit. You will have to use a single stream - probably the Audio Source block, and GUI button to control PTT. Don't try to use

3) The Osmocom Source and Osmocom Sink blocks both use a Device Arguments field of:
soapy=0,driver=hackrf
Using the Soapy driver allows both the source and sink blocks to access the same hackrf device. If there is data available to TX, it switches to Transmit mode; when all the data hase been send, it switches back to Receive. So in my example, the Signal Source and the WAV File source will transmit continuously, while the UDP Source will only transmit when I send voice over UDP from my laptop. But to use the Soapy driver, you have to have Soapy support in Osmocom, which means you probably have to rebuild Osmocom, which means building a bunch of the dependancies; and it's only possible on Linux (as far as I know). It's tough assignment for a beginner - especially if you are used to Windows.

It took several months (off and on) to achieve the above. If I had to start again, and knowing what I know now, I would probably use an SDR for receive, and use the hackrf just for transmit, using two different antennae (or possibly an antenna switch).

Hope that helps.

Jake



________________________________

Kind of a similar question, but instead of TXing from a file, is there a
way to hook up a microphone to a hackRF and transmit mic output (with a
carrier frequency and appropriate modulation), i.e., for ham radio.

Brian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20180412/d807ff19/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nb-fm-voice.grc.png
Type: image/png
Size: 228259 bytes
Desc: nb-fm-voice.grc.png
URL: <Loading Image...>

------------------------------

Subject: Digest Footer

_______________________________________________
HackRF-dev mailing list
HackRF-***@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev


------------------------------

End of HackRF-dev Digest, Vol 68, Issue 4
*****************************************

Loading...