Hi gr-osmosdr maintainer,
can I respectfully ask if the several patches to the gr-osmosdr library,
sent in the past months on this list, will have a chance to be considered
in the near future?
Many thanks in advance
*am*
--
Andrea Montefusco IW0HDV
------------------------------------------
As my old boss, an Apollo veteran, would often remind us “It’s good to be
smart, but it’s better to be lucky.”
Wayne Hale, Space Shuttle Flight Director
This code stayed unchanged for many years, but for some reason
rtl_adsb started hanging upon exit:
*b66116a5164b69281eacc42ae950;
^CSignal caught, exiting!
<------ hangs here forever
Examining it with gdb reveals that the demod thread waits
peacefully on the condition variable, which we're trying to
destroy. Either the signals killed all threads before, or
condition variables were possible to destroy while other
threads still waited on them.
The easiest fix appears to be just cancel the demod thread
and wait for it to exit before proceeding for the door.
---
src/rtl_adsb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/rtl_adsb.c b/src/rtl_adsb.c
index 07fdd2a..9087de4 100644
--- a/src/rtl_adsb.c
+++ b/src/rtl_adsb.c
@@ -492,6 +492,8 @@ int main(int argc, char **argv)
else {
fprintf(stderr, "\nLibrary error %d, exiting...\n", r);}
rtlsdr_cancel_async(dev);
+ pthread_cancel(demod_thread);
+ pthread_join(demod_thread, NULL);
pthread_cond_destroy(&ready);
pthread_mutex_destroy(&ready_m);
$ fl2k_file
fl2k_file, a sample player for FL2K VGA dongles
Usage:
[-d device_index (default: 0)]
[-r repeat file (default: 1)]
[-s samplerate (default: 100 MS/s)]
filename (use '-' to read from stdin)
$ fl2k_file -s 8192000 -
Failed to open -
I'm perfectly willing to pitch in and fix this. How do you prefer to
receive contributions?
I received following error while compling osmo-trx on rasbian, i have already build libosmocore-0-11-0 from source and installed but despite this still unable to compile osmo-trx, any one can help to resolve the issue!
configure: error: Package requirements (libosmocore >= 0.11.0) were not met:
Requested ‘libosmocore >= 0.11.0’ but version of Osmocom Core Library is UNKNOWN
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.”
I have already build following components on Rasbian from source successfully
LimeSuite SoapySDR SoapyUHD libosmocore-0.11.0/ libosmocore-0.96.0
Regards
Babar
Hi everybody,
Thank you for developing osmo-fl2k.
Just wanted to report some relevant code issues/warnings I've found in osmo-fl2k's codebase: hope you'll find it useful.
All the issues reported below are based upon the source code as seen in commit 16b102efcdae6c33b1761e4f2da8c507eed03bb4 (osmo-fl2k's git repo current HEAD).
- libosmo-fl2k.c:213 Implicit cast of expression '(pll_clock * mult) / (uint32_t) div' from 'uint32_t' type to 'double' type (perform explicit cast to avoid the loss of the fractional part. Is it intentional?).
- libosmo-fl2k.c:216 Implicit cast of expression '(uint32_t) offset * frac' from 'uint32_t' type to 'double' type (perform explicit cast to avoid integer overflow).
- libosmo-fl2k.c:250 Absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value (use function 'fabs' instead).
- libosmo-fl2k.c:252 Absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value (use function 'fabs' instead).
- libosmo-fl2k.c:262 Absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value (use function 'fabs' instead).
- libosmo-fl2k.c:263 Incorrect 'fprintf' format for argument 'target_freq' (use '%lu' format specifier and add explicit cast like: '(unsigned long)target_freq' or use 'PRIu32' macro from 'inttypes.h').
- libosmo-fl2k.c:458 Useless if (expression 'dev' is always true).
- libosmo-fl2k.c:577 There might be dereferencing of a potential null pointer 'dev->xfer' (malloc call at may return NULL: line 574).
- libosmo-fl2k.c:580 A potential null pointer is given to 'memset' function (malloc call may return NULL: line 579).
- libosmo-fl2k.c:583 A potential null pointer is given to 'memset' function (malloc call may return NULL: line 582).
- libosmo-fl2k.c:586 Incorrect 'fprintf' format for argument 'dev->xfer_buf_num' (use '%lu' format specifier and add explicit cast like: '(unsigned long)dev->xfer_buf_num' or use 'PRIu32' macro from 'inttypes.h').
- libosmo-fl2k.c:593 Incorrect 'fprintf' format for argument 'i' (use '%u' format specifier).
- libosmo-fl2k.c:650 Incorrect 'fprintf' format for argument 'i' (use '%u' format specifier).
- libosmo-fl2k.c:856 Incorrect 'fprintf' format for argument 'dev->underflow_cnt - underflows' (use '%lu' format specifier and add explicit cast like: '(unsigned long)(dev->underflow_cnt - underflows)' or use 'PRIu32' macro from 'inttypes.h').
- fl2k_file.c:98 Incorrect 'fprintf' format for argument 'repeat_cnt' (use '%lu' format specifier and add explicit cast like: '(unsigned long)repeat_cnt' or use 'PRIu32' macro from 'inttypes.h').
- fl2k_file.c:169 The 'r' variable is assigned values twice successively (missing return code check after first assignment?).
- fl2k_fm.c:570 The 'r' variable is assigned values twice successively (missing return code check after first assignment?).
- fl2k_tcp.c:193 The 'r' variable is assigned values twice successively (missing return code check after first assignment?).
- fl2k_test.c:259 Incorrect 'fprintf' format for argument 'dev_index' (use '%lu' format specifier and add explicit cast like: '(unsigned long)dev_index' or use 'PRIu32' macro from 'inttypes.h').
- fl2k_test.c:278 Integer overflow (attempt to store value 255 in a char type variable (which may be signed: range [-128, 127]): redefine 'buffer' variable as 'signed char' type to fix the issue).
- fl2k_test.c:284 The 'r' variable is assigned values twice successively (missing return code check after first assignment?).
- fl2k_test.c:301 Useless if (expression 'do_exit' is always true).
Regards,
SDR_is_cool
Hi everyone,
Do osmo-sdr <https://git.osmocom.org/osmo-sdr> or gr-osmosdr
<https://git.osmocom.org/gr-osmosdr> place blacklist files in
/etc/modprobe.d/ when they are installed?
I am asking this because there I have found the files
"hackrf-blacklist.conf" and "rtl-sdr-blacklist.conf" and I would like to
know where they came from.
Thank you.
Regards,
Álvaro
Hi all,
I am new to Software Defined Radio and I was wondering if it was possible
to broadcast a Digital ATSC TV channel using Osmo-fl2k (
https://osmocom.org/projects/osmo-fl2k/wiki/Osmo-fl2k).
I am in need of a device that can do this for my work and didn't want to
pay $1000+ for the equipment designed for this purpose.
Thank you for your help,
Chase Johnson
--
Sent from an Apple Newton MessagePad 100
https://goo.gl/v82H1C
Greetings,
In Steve Markgraf's slide presentation
(http://people.osmocom.org/steve-m/fl2k_slides/osmo-fl2k.html),
do slides 16 and 17 imply that some FL2K devices have LDO regulators
while other
using switching regulators? Obviously, the FL2K devices that have LDO
regulators
are preferred, due to fewer spurious RF emissions. How can one
determine which
FL2K devices have LDOs? Can an FL2K device be reworked to use LDO
regulators?
Thanks,
Mac
Hi
I would like to use the fl2k_tcp utility to transmit remotely but are not
sure what is tje format of stream to send to this utility.
1) Do I send an IQ stream or audio stream?
2) is there some example to generate stream for this and format explenation?
3) how do you define carrier freq?
73 ' Anton
Hello,
First thank you for this FL2000 hack, it's very nice!
I tried to make an FM & AM transmitter with it and GNU Radio. It's working fine if I save to a file and then use fl2k_file to transmit the data but with the tcp server and fl2k_tcp, my computer is not fast enough to sample in real time at 100 MHz. I also tried with a 35 Mhz sampling rate but it's not real time. Here is the diagram I used.
Is there a possibility to avoid sampling at a very fast rate if the data bandwidth is small to do the baseband to carrier shift?
[cid:0115622e-668a-46ae-8e49-07a3a7aba391]
Thank you,
Best regards,
Jean-Paul