[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