You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
**An Unofficial Python API for the tinySA Device Series**
4
4
5
-
A Non-GUI Python API for the tinySA series of spectrum analyzer devices. This library provides programmatic control over tinySA devices for automated measurements, data collection, and analysis.
5
+
A Non-GUI Python API for the tinySA series of spectrum analyzer devices. This library provides programmatic control over tinySA devices for automated measurements, data collection, and analysis.
>**Note**: This repository uses official resources and documentation but is NOT endorsed by the official tinySA product, owner, or company. Refer to official resources and support for product information.
11
-
12
-
##Quick Start
13
-
14
-
###Installation
15
-
16
-
```bash
17
-
pip install tsapython
18
-
```
19
-
20
-
###Basic Usage
21
-
22
-
```python
23
-
from tsapythonimport TinySA
7
+
Popular features:
24
8
25
-
# Create and connect to device
26
-
tsa= TinySA()
27
-
tsa.set_verbose(True)
28
-
tsa.set_error_byte_return(True)
9
+
-**Device Discovery**: Automatic detection and serial connection to tinySA devices
10
+
-**Frequency Sweeps**: Collect data across specified frequency ranges
11
+
-**Multiple Modes**: Support for both input and output modes (device dependent)
12
+
-**Data Export**: Easy integration with matplotlib, pandas, and numpy
13
+
-**Error Handling**: Error checking and verbose output options
14
+
-**Device Control**: Full programmatic control of tinySA settings and measurements
29
15
30
-
# Attempt to connect
31
-
found, connected= tsa.autoconnect()
32
16
33
-
if connected:
34
-
print("Device connected!")
35
-
36
-
# Get device info
37
-
device_id= tsa.get_device_id()
38
-
print(f"Device ID:{device_id}")
39
-
40
-
# Collect frequency sweep data
41
-
start_freq=100e6# 100 MHz
42
-
stop_freq=500e6# 500 MHz
43
-
n_pts=101
44
-
45
-
tsa.pause()
46
-
freq_vals= tsa.hop(start_freq, stop_freq, n_pts,1)# Get frequencies
47
-
power_vals= tsa.hop(start_freq, stop_freq, n_pts,2)# Get power data
48
-
49
-
tsa.disconnect()
50
-
print("Data collection complete!")
51
-
else:
52
-
print("Could not connect to device")
53
-
```
17
+
This repository uses official resources and documentation but is**NOT** endorsed by the official tinySA product, owner, or company. Refer to official resources and support for product information. This library was built for the official tinySA device line(s), so any knock-off or custom devices may not be compatible with the library. Unofficial devices have not been tested.