Comments (3)
Its probably stuck in deactivateStream https://github.com/pothosware/SoapyAirspy/blob/master/Streaming.cpp#L205 If I had to guess, but it would be good to start with rx_fm and see which functions get called.
Can you add some strategic prints and see what function its stuck in? Is it a SoapySDR routine, and if so, is it some underlying airspy call like airspy_stop_rx
or something like an infinite for loop in SoapyAirspy
from soapyairspy.
While I understand what you mean (add strategic code to write stuff to a log, so you can see where it gets stuck), I must say I'm not a programmer. But it's never to late to learn, so I will try to do a pull request and work with that.
This is the section of code in rx_fm that I believe closes the stream:
SoapySDRDevice_deactivateStream(dongle.dev, dongle.stream, 0, 0);
pthread_join(dongle.thread, NULL);
safe_cond_signal(&demod.ready, &demod.ready_m);
pthread_join(demod.thread, NULL);
safe_cond_signal(&output.ready, &output.ready_m);
pthread_join(output.thread, NULL);
safe_cond_signal(&controller.hop, &controller.hop_m);
pthread_join(controller.thread, NULL);
//dongle_cleanup(&dongle);
demod_cleanup(&demod);
output_cleanup(&output);
controller_cleanup(&controller);
if (output.file != stdout) {
fclose(output.file);}
SoapySDRDevice_closeStream(dongle.dev, dongle.stream);
SoapySDRDevice_unmake(dongle.dev);
return EXIT_SUCCESS;
So do you believe I should focus on rx_fm instead?
from soapyairspy.
So do you believe I should focus on rx_fm instead?
Thats perfect, its an onion and you have to work your way into the center starting from the outside
Which one of these calls get stuck? That will tell us where to look next.
I dont have an airspy to validate this, but I can do my best to offer suggestions
from soapyairspy.
Related Issues (20)
- Reading speed & errors HOT 23
- First readStream contains invalid samples HOT 2
- Using SoapyAirspy with RX_TOOLS... how can i activate BIAS-T? HOT 6
- getNativeStreamFormat() gives wrong fullScale value HOT 1
- Airspy HF+ support HOT 1
- Startup signal glitch HOT 1
- Airspy readstream error from soapy_power HOT 8
- Allow adjustment of IF bandwidth. HOT 1
- Silence in WAV HOT 1
- No error checking / validation of sample rates HOT 2
- Implement open by serial HOT 11
- ppm settings for Airspy driver appears to be ignored ? HOT 3
- Support 12Msps sample rate with Airspy R2 using Pack option
- Implement BiasT setting HOT 1
- Finish find-by-serial implementation
- Sample type handling HOT 2
- Error Checking
- Implement a pack setting HOT 1
- When the SoapyAirspy is ready tasks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soapyairspy.