1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00
sdrangel/sdrgui/deviceuserargs.md

61 lines
3.7 KiB
Markdown
Raw Normal View History

<h1>Devices user arguments management</h1>
2024-04-29 07:58:37 -04:00
The user can give arguments in the form of a string related to a specific device that appears in the list of enumerated devices. At the moment these arguments are related to a specific hardware and its sequence in enumeration. For example `LimeSDR,0` for the first Lime SDR, `LimeSDR,1` for the second Lime SDR ...
2023-05-01 15:39:28 -04:00
The corresponding plugin can make use of this user string in any way it finds useful. At present this is used only by the SoapySDR input/output plugins to override the `kwargs` (keyword arguments) at device open time (the `driver` argument is preserved as defined in the enumeration)
The following dialog is used to specify these arguments:
![Device user arguments dialog](../doc/img/MainWindow_user_args.png)
<h2>1 Available devices list</h2>
This is the list of available devices reported by the initial enumeration. There are 3 columns:
- **HwID**: This is the "hardware ID". It represents a type of device like `HackRF` or `TestSource`
- **Seq**: The device sequence in enumeration starting at 0. You may have more that one device of the same type in the system
- **Description**: A descriptive string stored by the enumeration process to help identify which device is which
<h2>2 Import device button</h2>
Use this button to import the selected device in the panel above (1) to the panel below (6) that lists the user arguments by device and sequence. You can only import a device which hardware ID and sequence is not already in the panel below.
<h2>3 Non discoverable device hardware ID</h2>
Some devices cannot be discovered automatically. This is the case for networked devices in particular the PlutoSDR and some USRPs. In conjunctions with (4) and (5) you can define devices that can be added to the list of available devices for selection. Note that you will need to restart SDRangel for this to be effective.
Once the device is defined user arguments like the IP address can be specified for it.
<h2>4 Non discoverable device sequence</h2>
In case more than one device with the same hardware ID is used in the system you can differentiate the, with an arbitrary sequence number.
<h2>5 Add non discoverable device definition</h2>
Once defined with controls (3) and (4) use this button to add the device to the list of available devices. This will make it appear immediately in the
<h2>6 User arguments</h2>
This is the list of arguments given by the user and attached to a specific device given its hardware ID and sequence. There are 4 columns:
- **ND**: This is the non discoverable device indicator. When tagged with "ND" it means that the line refers to a non discoverable device specified by the user
- **HwID**: This is the "hardware ID". It represents a type of device like `HackRF` or `TestSource`
- **Seq**: The device sequence in enumeration starting at 0. You may have more that one device of the same type in the system
- **Arg string**: The user argument string. It can be of any form and not necessarily in the `key1=value1, key2=value2` form. It is up to the corresponding plugin to interpret the string and to make use of its information.
<h2>7 Delete button</h2>
Use this button to delete the arguments currently selected in the above panel (6)
<h2>8 Edit arguments</h2>
Use this line editor to change the arguments currently selected in the above panel (6). The text will be committed when the focus is lost.
<h2>9 Cancel button</h2>
The changes made to the argument list are temporary. You can use this button to dismiss the changes and close the dialog.
<h2>10 OK (confirmation) button</h2>
The changes made to the argument list are only temporary. You can use this button to commit the changes and close the dialog.