LimeSDR module
This module is used to create a JSRadio type object for LimeSDR hardware connected to the USB port.
.makeDevice
Creates a new LimeSDR receiver. The returned object is of type JSRadio, refer to the Using radio introduction for examples.
var radio = LimeSDR.makeDevice( { 'info': string returned by API, 'device_name' : 'rx'} );
- Note: this command works when we have only one bladeRF card connected:
ar list = LimeSDR.list();
var count = list.length ;
if( count == 0 ) {
print('No LimeSDR device connected.');
exit();
}
var dev = list[0];
var rx = LimeSDR.makeDevice( { 'info': dev.info, 'device_name':'rx'} ) ;
.list
List the connected LimeSDR receivers. Returns an array of objects with:
data_type: 'lime_device'
info : string returned by the LimeSuite API
var list = LimeSDR.list();
var count = list.length ;
if( count == 0 ) {
print('No LimeSDR device connected.');
exit();
}
print('We have '+count+' devices connected:');
print('-----------------------------------');
for( var i=0 ; i < count ; i++ ) {
var limesdr = list[i] ;
var infos = limesdr.info ;
print('Device #',i, ' ', infos );
}
Returns, with one single LimeSDR mini connected:
Booting with file : [./test.js]
(boot:0)> We have 1 devices connected:
(boot:0)> -----------------------------------
(boot:0)> Device #0 LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=1D3AEBD25C045F
Last update: March 26, 2023