Re: [Hackrf-dev] RX/TX switching

2018-04-17 Thread Matteo Terzi
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 :

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


-- 
Matteo TERZI
Google Gmail Member
___
HackRF-dev mailing list
HackRF-dev@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev


Re: [Hackrf-dev] RX/TX switching

2018-04-12 Thread wiemeyer
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-dev@greatscottgadgets.com
> https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
>


-- 
Brian Wiemeyer
2395 Cherry Tree Rd.
Gurley, AL  35748
(256) 725-4429
wieme...@nehp.net

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


Re: [Hackrf-dev] RX/TX switching

2018-04-12 Thread Matteo Terzi
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


switch_v5.grc
Description: Binary data
___
HackRF-dev mailing list
HackRF-dev@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev


Re: [Hackrf-dev] RX/TX switching

2018-04-11 Thread Gavin Jacobs
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-boun...@greatscottgadgets.com> on behalf of Matteo 
Terzi <matteo.terz...@gmail.com>
Sent: April 10, 2018 3:34 AM
To: hackrf-dev@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
___
HackRF-dev mailing list
HackRF-dev@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev


[Hackrf-dev] RX/TX switching

2018-04-10 Thread Matteo Terzi
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
___
HackRF-dev mailing list
HackRF-dev@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev


[Hackrf-dev] RX/TX switching problem

2018-02-27 Thread Александр Шевелёв
Still searching for solution...
Previously hackrf_start_rx() function used to return HACKRF_SUCCESS every time 
even if it fails (no callbacks after switching to RX).
I've rebuild libhackrf with libusb 1.0.21. Now the failure is more clear, 
because when something goes wrong hackrf_start_rx() returns "Resource busy" 
error.

Also I found that the error often occurs when I'm open another app (taskmgr, 
file explorer, browser, whatever) and my program is running in background.
I have no idea how to deal with it. If this is a performance issue (although 
Core i5-7500 should be enough), I need program to be running anyway instead of 
crashing.

-- 
С уважением,
 Александр Шевелёв
+79313207679

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


[Hackrf-dev] RX/TX switching problem

2018-02-15 Thread Александр Шевелёв
Hello.
I'm developing a software modem which requires to switch between RX and TX mode 
within a 1 second period.
I do all necessary stuff like hackrf_init(), connecting to board, etc, then I 
call hackrf_start_rx(). After 1 second I call hackrf_stop_rx() and then 
hackrf_start_tx(). After another one second I switch to RX same way.
It is working for some time until something goes wrong. I switch to RX but have 
no data transfering.

All libhackrf functions are returning HACKRF_SECCESS, transfer_threadproc() is 
running. But libusb_handle_events_timeout() at transfer_threadproc()  is not 
calling rx_callback function anymore. It stops by timeout.

If I exit my program and launch it again it's not working - no callbacks. It 
starts working after I push the reset button on the device. But then after some 
time this problem appears again.

I've tried to search the mailing list for same problems, but the only one entry 
I found had no response. So I need some help. Thanks.

-- 
Alexander Shevelev
___
HackRF-dev mailing list
HackRF-dev@greatscottgadgets.com
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev