Commit Graph

208 Commits

Author SHA1 Message Date
Petter Reinholdtsen 898f74c160 Make address and port of collector point configurable.
Introduce new command line arguments --collector <host> and
--collectorport <portnumber> to make it possible to send the GSM
packages outside localhost.
2017-08-24 14:10:36 +02:00
Petter Reinholdtsen 284282ef68 Change channel_info to provide both __str__ and __repr__.
The __str__() function should be used for pretty-printing of the
class, while __repr__ should be used to print a complete
representation of the class.  Earlier __repr__ would not include all
the information in the class.
2017-08-24 11:33:03 +02:00
Petter Reinholdtsen 6a7dc449e5 Restructure grgsm_scanner to allow its reuse from python
Split the main() function into do_scan() and argument_parser() and
move the result printing into a function pointer passed to do_scan().
This allow the scanner to be reused as a library from python.

Here is one way to reuse it:

  import imp
  scanner = imp.load_source('scanner', '/usr/bin/grgsm_scanner')
  (options, args) = scanner.argument_parser().parse_args()
  list = scanner.do_scan(options.samp_rate, options.band, options.speed,
                         options.ppm, options.gain, options.args)
  print list
2017-08-24 10:46:43 +02:00
Piotr Krysik 77868e4fa6 Updated apps/README with new names of helper scripts 2017-08-23 21:37:24 +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
Piotr Krysik a6268a5bc1 Big update of copyright statements so they can be automatically processed to produce debian/copyright file 2017-08-23 16:02:19 +02:00
Piotr Krysik 344e9d2f47 Merge branch 'libosmocore_integration' into packaging_piotr
# Conflicts:
#	python/receiver/gsm_wideband_input.py
2017-08-22 15:56:20 +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
Piotr Krysik 2770fc485c Added missing default value of voice-boundary parameter. Fixes #206 2017-07-23 22:05:10 +02:00
Piotr Krysik 82638ab4b3 Added a bit better labels for most cryptic paramters. Related to issue #288 2017-07-23 19:14:13 +02:00
Vadim Yanitskiy 76e4b33453 apps/trx: handle MEASURE command
As the actual power measurement isn't implemented yet, we will
emulate this process sending random power levels from specified
range.
2017-07-19 17:51:24 +07:00
Vadim Yanitskiy 45d9f22352 apps/trx: handle SETSLOT command
Currently, this command is used only to (re)configure built-in
timeslot filter of 'TRX Interface' block. Channel configuration
number, provided as the second parameter of command, is ignored.
2017-07-19 17:38:26 +07:00
Vadim Yanitskiy 5f393a41bb apps/trx/radio_if.py: drop unused imports 2017-07-19 15:36:31 +07:00
Vadim Yanitskiy dd0b06a5fc apps/trx: wait until transceiver actually stop 2017-07-19 15:36:31 +07:00
Vadim Yanitskiy f3eccbf444 apps/trx: separate CTRLInterface implementation 2017-07-19 15:36:20 +07:00
Vadim Yanitskiy 4b5c299dc0 apps/trx: get rid of meaningless main function 2017-07-19 14:54:14 +07:00
Vadim Yanitskiy 7427bafd50 apps/trx: separate UDP socket implementation 2017-07-19 14:43:48 +07:00
Vadim Yanitskiy 948f70463f trx_interface: follow GR-GSM app naming style 2017-07-16 23:29:59 +07:00
Vadim Yanitskiy 89fc14ba44 Implement transceiver interface
This change introduces a new block 'TRX Interface', which is aimed
to provide an interface for external applications, such as Osmocom
MS side stack implementation - OsmocomBB. Currently one allows to
exchange raw GSM bursts between GR-GSM and other applications.

Moreover, there is a new 'trx.py' application, which implements a
simple follow graph, where all demodulated bursts are being sent
to external application via UDP link provided by 'TRX Interface'.
OsmoTRX (Osmocom's fork of OpenBTS transceiver) like control
interface is used to initialize, configure, start and stop the
application. Messages on this interface are human readable ASCII
strings, which contain a command and some related parameters.
2017-07-07 22:12:52 +07:00
Piotr Krysik dd86a9986f Fix (hack) of lack of text output of the scanner 2017-03-30 10:53:58 +02:00
Piotr Krysik 881b6c3139 Added gain option to the wideband_scanner - so changing gain parameter have effect 2017-03-30 10:53:25 +02:00
Piotr Krysik 93ba6bc2c2 Changes in the livemon:
-changed frequency range,
-added abiliti to set fractional frequency correction.
2017-01-23 21:33:09 +01:00
Piotr Krysik 25ae3e2066 Merge branch '213-3digit-mnc' of https://github.com/romankh/gr-gsm into libosmocore_integration 2016-12-29 13:01:48 +01:00
Roman Khassraf a5f5a31559 Fixes incorrect arguments in wideband_scanner 2016-11-20 22:11:46 +01:00
Piotr Krysik eeab38fc3e little changes in apps readme 2016-10-02 18:55:04 +02:00
Piotr Krysik ea34c017b5 Added license statements where it was missing 2016-10-02 18:53:43 +02:00
Roman Khassraf 1245b223a8 #208: Fixed port names of offset control and input 2016-10-01 13:13:05 +02:00
Roman Khassraf e87e955d29 #208: fixed samp_rate variable 2016-10-01 13:00:43 +02:00
Roman Khassraf c0addfba83 #193: Adding option for enabling voice boundary detection in grgsm_decode 2016-09-27 20:11:42 +02:00
Roman Khassraf 98af2c97e1 Reflecting changes of arfcn module, re-ordering of output code to prevent messages about reattached kernel driver 2016-09-23 07:26:13 +02:00
Piotr Krysik 9648540d10 Changed default sample rate 2016-07-21 16:06:03 +02:00
Piotr Krysik 2779172936 Updated TCH/F decoding so it writes data to a file. Flowgraph execution never ends. 2016-07-20 08:12:23 +02:00
Piotr Krysik fe538eba62 Changes to apps after frequency offset correction major change 2016-07-18 18:14:49 +02:00
Piotr Krysik 58a4c4d4c0 Corrected capture application 2016-07-18 09:50:52 +02:00
Piotr Krysik 231aca74c2 Corrected the decoding app so it's possible to run it without frequency correction loop 2016-07-17 10:44:43 +02:00
Piotr Krysik 196982b6ce Removed old icmp packages preventing code 2016-07-17 10:43:00 +02:00
Piotr Krysik 388bc0d1cf Corrections of parameters of clock_offset_control block 2016-07-15 14:17:05 +02:00
Piotr Krysik 19028868cc Merge branch 'development' of https://github.com/ptrkrysik/gr-gsm into development 2016-07-15 13:21:44 +02:00
Piotr Krysik 6577ec215e Update applications to work with new gsm_input block 2016-07-15 13:21:09 +02:00
Piotr Krysik bd8a716369 Commented out old method of suppressing ICMP messages 2016-06-09 14:43:09 +02:00
Piotr Krysik 9d9f74edd4 Corrected order of creating socket_pdu* objects 2016-06-09 14:13:50 +02:00
Piotr Krysik beb36f4a19 Added socket_pdu server - closes issue #194 2016-06-09 13:58:52 +02:00
Piotr Krysik 773a194c32 Big change of the universal control channels demapper:
-simplification of the universal demapper,
-addition of hierarhical blocks for each of the demappers - so they also look well and readable in python,
-addition of helper script for compilation of the demappers.
2016-05-20 12:45:54 +02:00
Piotr Krysik cdff492ff7 Merge branch 'master' into development 2016-05-14 07:15:15 +02:00
Piotr Krysik 7685bc0501 Change to print only content of bursts without tails and training sequences 2016-04-29 12:09:01 +02:00
Piotr Krysik 0679ceb0d1 Added option to print raw, unencrypted bursts - with dummy bursts filtered out. 2016-04-29 11:16:22 +02:00
Piotr Krysik 13d9e7a334 Corrected the example in grgsm_channelize, changed default sample rates in applications. 2016-04-24 15:23:15 +02:00
Piotr Krysik 0ff0d09960 Correction of device's argument passing 2016-03-18 11:39:09 +01:00
Piotr Krysik 30ea7ddfac Corrected the mistake introduced by the previous commit 2016-03-11 09:04:03 +01:00
Piotr Krysik 8040e01751 Changes in grgsm_decode in order to enable working without frequency correction. 2016-03-08 21:42:11 +01:00
Steve Glass d3b40496e8 Minor fixup of channelizing messages 2016-03-03 18:58:56 +10:00
Piotr Krysik 969c0ff52f Changes and improvements of options in the grgsm_channelize.py
- replaced xlat_fir_filter with rotator and pfb arbitrary resampler,
- renamed some options,
- added new options
2016-02-27 17:45:18 +01:00
Piotr Krysik 72a1617854 Removed last parameter from socket_pdu in order to make grgsm_decode more compatible with GNU Radio 3.7.3 2016-02-22 14:30:02 +01:00
Piotr Krysik 5c7a578e4f Tiding up cmake code for creating symbolic links 2016-02-17 12:08:51 +01:00
Piotr Krysik 7185b6664f Added ability to supply device arguments as parameter to applications.
Change adressing #140 enhancement request.
It is possible to select rtl-sdr dongle:
-with device index through commanline parameter: `--args="rtl=1"` (where 1 is the device index). Caution: device index is not unique identifier and it changes on each connection of the dongle.
-with devices serial number, the commandline option in this case has following form: `--args="rtl=00000001"` (where 00000001 is the serial number).

NOTE: You can set the serial number with use of:
```sh
rtl_eeprom -s <serial_number>
```
2016-02-14 20:24:54 +01:00
Piotr Krysik c3a822e5e4 Changed formatting of the Readme in apps directory 2016-02-14 12:06:38 +01:00
Piotr Krysik a8aab32d85 Updated readmes to include renamed applications 2016-02-13 18:38:12 +01:00
Piotr Krysik 332e0b5c6b Changes of names of applications
-removed 'airprobe' from names completely,
-removed '.py' from names,
-moved programs that don't use gr-gsm blocks to the 'apps/helpers' directory.
2016-02-13 18:37:32 +01:00
Piotr Krysik 3e192c4fbe Renamed applications. Legacy names are kept as symlinks.
The symbolic links are created with use of CMake during building.
2016-02-13 07:31:51 +01:00
Piotr Krysik 8715da0893 Fixed all hierarchical blocks in the project
by adding a hier_block class that solves incompatibility between GNU Radio >=3.7.9 and <=3.7.8
and inheriting all hierarchical blocks from it.
This commit fixes #135
2016-01-06 22:21:09 +01:00
Steve Glass e25e10e607 Remove throttling from gsm_channelize.py
Signed-off-by: Piotr Krysik <ptrkrysik@gmail.com>
2015-11-14 10:52:07 +01:00
Piotr Krysik 56b0a67369 Commented lines incompatible with older GNU Radio versions from airprobe_rtlsdr.py 2015-10-12 08:34:15 +02:00
Roman Khassraf e2fbb87d8e Fixed class names and added sample rate correctness check in airprobe_rtlsdr_scanner.py 2015-09-29 19:40:04 +02:00
Roman Khassraf 1e6871724b Fixed CMakeLists for airprobe_rtlsdr_scanner.py 2015-09-27 11:29:12 +02:00
Roman Khassraf 996103f5e6 Added /airprobe_rtlsdr_scanner.py to apps 2015-09-27 11:22:35 +02:00
Piotr Krysik 351d217b77 Added option of providing recording length to airporbe_rtl_sdr_capture 2015-09-20 13:53:06 +02:00
Piotr Krysik 5238a3849a Merge pull request #126 from rpp0/app-channelizer
Standalone GSM channelizer app for splitting wideband cfiles
2015-09-14 11:46:45 +02:00
Roman Khassraf f4307481cf Mandatory arfcn or frequency only for cfile input in airprobe_decode 2015-09-13 12:23:59 +02:00
Roman Khassraf 262b53dcbd Added option verbose for message printing in airprobe_decode 2015-09-13 12:14:26 +02:00
rpp 29a39b2d5e Created standalone GSM channelizer app for splitting wideband captures into multiple
per-channel files
2015-09-11 16:33:58 +02:00
Piotr Krysik c17d9a2864 Corrected CMakeLists from apps directory 2015-09-05 02:13:52 +02:00
Piotr Krysik 3558208ae9 Removed grcc compilation and added airprobe_rtlsdr.py 2015-09-02 21:49:12 +02:00
Piotr Krysik 803e4f4e5c Removed airprobe_file from grc 2015-09-02 21:11:31 +02:00
Roman Khassraf 2b1ebf1f21 Implemented decoder app 2015-08-29 17:43:43 +02:00
Piotr Krysik 75927258eb Merge pull request #119 from romankh/gr-gsm-apps
App for RTL-SDR single channel capture
2015-08-25 08:25:52 +02:00
Roman Khassraf 5a8040091e Added getter/setter for arfcn 2015-08-24 20:11:10 +02:00
Roman Khassraf 7eda4801f2 Removed GUI code from airprobe_rtlsdr_capture.py 2015-08-24 20:00:48 +02:00
Roman Khassraf 529e2150aa Capturing app for single channels with RTL-SDR 2015-08-22 19:52:41 +02:00
Piotr Krysik 20d2de40b9 Correcting installation of python apps
to ${INSTALL_PREFIX}/bin directory
2015-08-17 14:19:59 +02:00
Piotr Krysik 54f335c696 Added carrier frequency shift in order to avoid DC offset. Also changed universal demappers into BCCH demapper working on TS0 and SDCCH8 demapper working on TS1 2015-08-16 21:53:44 +02:00
Piotr Krysik 0acd79accc Removed commented line from apps/CMakeLists 2015-08-15 21:54:44 +02:00
Piotr Krysik b8a26e52c6 Corrected #111 issue with generation of python code from grc files 2015-08-15 21:52:46 +02:00
Piotr Krysik 425fcf7750 Added Socket PDU UDP Server in order to avoid receiving ICMP messages from the system 2015-08-13 13:40:44 +02:00
Piotr Krysik 242522fbee Added comands building automatically grc applications
Better than manually generated python files but still not perfect as it takes many cmake lines to compile single file and grc files are compiled at every run of make.

Removed also old and not working code for building grc files.
2015-08-13 10:51:59 +02:00
ptrkrysik 5d73271301 Corrected timemeslot to timeslot 2015-06-01 22:39:53 +02:00
Martin Jesper Low Madsen a9cfa6738e Let the GUI support GSM 1800 and 1900 frequency bands. 2015-04-28 22:59:27 +02:00
David Maynor 287f9e1878 The range at bottom of frequency block wasn't updating with a change in frequency: correction in gnuradio-companion flowgraph 2015-02-15 11:51:00 +01:00
David Maynor 64d9a44975 The range at bottom of frequency block wasn't updating with a change in frequency 2015-02-15 11:46:02 +01:00
ptrkrysik a0deb1c0c4 Removed airprobe_usrp - USRP's should are supported by airprobe_rtlsdr and because of this the separate application is redundant 2015-02-15 11:40:23 +01:00
ptrkrysik c184823aea Added SACCH channel and blocks for SDCCH8/SACCH8 channels that are disabled currently 2015-02-15 11:38:44 +01:00
ptrkrysik 0b926a9627 Removed last parameter given to socket_pdu to keep compatibility with Ubuntu's 14.10 gnuradio. 2015-02-08 19:37:41 +01:00
ptrkrysik d8d4fbc6af Added timeslot nr parameter to the demapper to enable it to work on other timeslots that 0. 2015-02-07 19:37:42 +01:00
ptrkrysik 08f19737a8 Corrected airprobe_rtlsdr.py to work with older gnuradio 2015-01-07 22:54:28 +01:00
ptrkrysik 9032b87afe Added gain, fc (carrier frequency) and sample frequency parameters to the rtlsdr and usrp apps. 2015-01-03 00:36:21 +01:00
ptrkrysik 3b77654b89 Merge branch 'master' of https://github.com/mrjacobagilbert/gr-gsm into mrjaco-master
Added appropriate changes to grc files, corrected CMakeLists files
2015-01-03 00:06:39 +01:00
Jacob Gilbert 90da960ef3 Slightly reorganized layout of GRC flographs to be consistant with snap-to-grid spacing for GR 3.7.5 2014-12-13 10:51:55 -08:00
ptrkrysik 3be74a732b Changed grgsm install directories and prefixes from "gsm" to "grgsm". The old prefix caused conflicts with libraries already available. 2014-12-13 10:11:00 +01:00
ptrkrysik 458004e3a6 Complied python applications generated from grc wit gnuradio 3.7.2 so it should work with for example Ubuntu 14.10.
Seems that systems with newer versions of gnuradio are also supported.
2014-12-06 15:36:35 +01:00
ptrkrysik 77509fa851 Updated airprobe_file.py so it works with new clock offset controll 2014-12-03 08:04:42 +01:00
ptrkrysik d4adf90a25 Increased sampling_rate of airprobe_rtlsdr 2014-11-29 00:07:05 +01:00
ptrkrysik a136ff52ec Added compiled python versions of the flowgraphs which are installed in %install_prefix%/bin . 2014-11-28 23:38:23 +01:00
ptrkrysik a41d79c8a3 Removed automatic compilation of grc apps to python as it fails too often to be worth it. 2014-11-26 23:43:47 +01:00
ptrkrysik 26183c30d1 Disabled clock offset correction parameter as it is not used currently (it might be not needed for USRP) 2014-11-21 16:31:44 +01:00
ptrkrysik 644b44495c Changed default clock offset correction ppm value from 84 to 0 2014-11-21 16:29:48 +01:00
ptrkrysik eea357bee8 Added socked PDU sink to airprobe_file 2014-11-21 10:24:24 +01:00
ptrkrysik 12fe7a024a Added buildsystem for apps. Doesn't honor dependencies yet (changing a grc file won't cause generating new py file). 2014-11-20 11:10:20 +01:00
ptrkrysik fbe4fb2881 Moved applications from examples to apps. Changed their names to airprobe_... 2014-11-20 11:08:43 +01:00
piotr 437f5467a1 Initial commit - gsm-receiver with removed quick hacks 2014-02-04 17:57:25 +01:00