AirSpy module

This module is used to create a JSRadio type object for AirSpy hardware connected to the USB port.


Creates a new AirSpy receiver. The returned object is of type JSRadio, refer to the Using radio introduction for examples.

  var radio = AirSpy.makeDevice( { 'serial': '0xF8A868FF29624147', 'device_name' : 'board0'} );
  • Note: this command works when we have only one bladeRF card connected:
var rx = AirSpy.makeDevice({"device_name" : "test"});


List the connected AirSpy receivers. Returns an array of objects with:

     data_type: 'airspy_device'
     device_name : unique name,
     board_id_name : 'AIRSPY' returned name by libairspy,
     board_version : type identification
     part_id: number
     serial : serial number
     sample_rates_hz: [array of supported rates]
  var list = AirSpy.list();
  if( list.length == 0 ) {
    print('no device');
  print( JSON.stringify( list ));

Returns, with one single AirSpy mini connected:

Booting with file : [./test.js]

(boot:0)> [{"data_type":"airspy_device","board_id":0,"device_name":"rx_0","board_id_name":"AIRSPY","board_version":"AirSpy MINI v1.0.0-rc10-0-g946184a 2016-09-19","part_id":"0x6906002B00000030","serial":"0xF8A868FF29624147","sample_rates_hz":[6000000,3000000]}]


  var list = AirSpy.list();
  print('We have ' + list.length + ' boards.');
  var x = list[0] ;
  var radio = AirSpy.makeDevice( x );
Last update: March 26, 2023