Discussion:
[Hackrf-dev] RX/TX switching
Matteo Terzi
2018-04-10 09:34:33 UTC
Permalink
Hi,
I'd like to know if there is a way to switch from RX mode to TX mode and
vice versa with GRC Radio Companion.
Thanks

--
Matteo TERZI
Google Gmail Member
Gavin Jacobs
2018-04-11 18:09:34 UTC
Permalink
Matteo,
Using GnuRadioCompanion, there is a way to switch from RX to TX, but it is not obvious. If you use the Osmosdr Source and Sink blocks, and specify the hackrf as the device, then one works but not the other. However, if you use the Osmosdr Source and Sink blocks, and specify Soapy as the device, and hackrf as the soapy device, then you can have both source and sink in the same flowgraph. If you are a newcomer to GRC, it can be a long road to get it working. To get started, are you a beginner with GRC? What is your platform? Do you have the hackrf working in receive mode? Also, please tell us a bit about your application.

Jake

________________________________
From: HackRF-dev <hackrf-dev-***@greatscottgadgets.com> on behalf of Matteo Terzi <***@gmail.com>
Sent: April 10, 2018 3:34 AM
To: hackrf-***@greatscottgadgets.com
Subject: [Hackrf-dev] RX/TX switching

Hi,
I'd like to know if there is a way to switch from RX mode to TX mode and vice versa with GRC Radio Companion.
Thanks

--
Matteo TERZI
Google Gmail Member
Matteo Terzi
2018-04-12 09:53:37 UTC
Permalink
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
w***@nehp.net
2018-04-12 11:22:46 UTC
Permalink
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




On Thu, April 12, 2018 4:53 am, Matteo Terzi wrote:
> 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
> HackRF-***@greatscottgadgets.com
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>


--
Brian Wiemeyer
2395 Cherry Tree Rd.
Gurley, AL 35748
(256) 725-4429
***@nehp.net
Gavin Jacobs
2018-04-12 21:12:27 UTC
Permalink
This post might be inappropriate. Click to display it.
Matteo Terzi
2018-04-17 11:35:46 UTC
Permalink
Hi all,
In the end I decided to buy another hackRF One.
I'd like to use an hackrf to receive and the other one to simoultaneously
trasmit the signal received, using just one PC. Is it possible?
Then how can I visualize two different graphs of what I described before.
How could I sync the clock between the two devices (HW and SW)
Thanks

Matteo

2018-04-12 23:12 GMT+02:00 Gavin Jacobs <***@hotmail.com>:

> 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
>
>
> _______________________________________________
> HackRF-dev mailing list
> HackRF-***@greatscottgadgets.com
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>
>


--
Matteo TERZI
Google Gmail Member
Matteo Terzi
2018-04-12 14:54:44 UTC
Permalink
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
Matteo Terzi
2018-04-12 16:10:01 UTC
Permalink
---------- 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


2018-04-12 17:40 GMT+02:00 i2NDT <***@yahoo.it>:

> 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>
>
>
> Il Giovedì 12 Aprile 2018 16:55, Matteo Terzi <***@gmail.com>
> ha scritto:
>
>
> 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
> HackRF-***@greatscottgadgets.com
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>
>
>


--
Matteo TERZI
Google Gmail Member



--
Matteo TERZI
Google Gmail Member
Continue reading on narkive:
Loading...