Commit Graph

11 Commits

Author SHA1 Message Date
Piotr Krysik d00289d273 Execute python apps with use of python3
Change-Id: Ib9ab805cc5a3878d168787736463dc495b96ddcf
2021-05-03 07:14:00 +02:00
Vasil Velichkov 54580d148d Filter out SoapyAudio devices
When gr-osmosdr is compiled with SoapySDR support and SoapyAudio is
installed the audio device is picked as a first choice when detecting
devices but grgsm tools are not able to work with audio devices. So in
such cases the user has to always specify the correct SDR device in the
args parameter which is a bit inconvenient.

When args is not specified call osmosdr.device_find to get all devices
and filter out unspported ones like SoapyAudio devices. When args is
specifed just try to create osmosdr.source with whatever value has been
specified.

Add -l and --list-devices command line option that prints information
about all detected devices.

Example commands:
  grgsm_capture --list-devices
  grgsm_capture --list-devices --args=nofake
  grgsm_capture --args=uhd,type=b210 -a 111 capture.cfile
  grgsm_livemon --args=rtl
  grgsm_livemon --args=uhd,type=b210

Change-Id: Ib84081041ca6c2bc18b9da0c32bac9d3ecef65ca
2019-05-03 00:20:34 +03:00
Vasil Velichkov 61e42c849d grgsm_capture: Fix device arguments
We need a space between numchan=1 and the rest of the device arguments
otherwise when --args is specified it fails with RuntimeError: bad lexical cast

$ grgsm_capture --args=soapy

Traceback (most recent call last):
  File "/usr/local/bin/grgsm_capture", line 179, in <module>
    device_args=options.device_args)
  File "/usr/local/bin/grgsm_capture", line 57, in __init__
    osmosdr.source(args="numchan=1" + device_args )
  File "/usr/local/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 1170, in make
    return _osmosdr_swig.source_make(*args, **kwargs)
RuntimeError: bad lexical cast: source type value could not be interpreted as target

Change-Id: I2d1bcee835b695c91a5c44ec78a40b2d969f611c
2019-05-02 11:55:39 +00:00
Piotr Krysik 81ba56f59d Major simplification and some argument changes in grgsm_capture
grmgs_capture tried to do too many things for a simple recorder.
It was simplified by removing the receiver and ability to
save data to bursts files.

All other stuff that is not necessary for recording signal to disk was
also removed:
-setters/getters,
-storing of parameters that never will be changed.

The 'fc' parameter name was changed to 'freq' to follow GNU Radio
guidelines.

The 'shiftoff' parameter was removed.

'bb_gain' and 'if_gain' parameters were added.

Variables specific to some of SDR's like:
-gains at different stages,
-bandwidth (not all devices can set it),
-antennas (some devices have just one, some not),
were moved to separate options group.

What is left to be exposed is:
-dc_offset_mode,
-iq_balance_mode,
-gain_mode.

Change-Id: I092a43eaddb09a99c6cc05fde13f0ae94d9e0251
2019-03-01 17:03:15 +00:00
Piotr Krysik a80567f013 Bring back parameter checking, correct creation of grgsm_capture object 2017-09-11 10:38:40 +02:00
Piotr Krysik df0adf3d86 Remove band from grgsm_capture altogether 2017-09-11 10:38:40 +02:00
leommxj caa7741d09 delete some useless code after the change of is_valid_arfcn(...) and arfcn2downlink(...) 2017-09-11 10:38:40 +02:00
leommxj ece9fd7f39 fix bug after commit 3dfa11b89e .change arfcn2downlink(a,b) to one argument in grgsm_decode and grgsm_capture and grgsm_channelize 2017-09-11 10:38:40 +02:00
leommxj 1a35cb973f fix bug after commit 3dfa11b89e .change is_valid_arfcn grgsm(a,b) to one argument in grgsm_decode and grgsm_capture 2017-09-11 10:38:40 +02:00
Piotr Krysik 2cef7a2a91 Merge branch 'deb-bin-no-ext' of https://github.com/petterreinholdtsen/gr-gsm into petterreinholdtsen-deb-bin-no-ext 2017-08-23 21:32:26 +02:00
Petter Reinholdtsen a0889539e4 Remove language extention from remaining binaries.
The install target install some binaries without language extentions and
others with such extension:

 * grgsm_capture.py
 * grgsm_channelize.py
 * grgsm_decode
 * grgsm_livemon
 * grgsm_scanner

It would be more consistent and according to the policy of Debian and
Ubuntu if all the binaries were without such language extention.  This
commit rename grgsm_capture.py and grgsm_channelize.py to avoid the
language extention.
2017-08-08 07:55:31 +00:00