Comments (2)
See TinySA.org/wiki
from tinysa.
This is a python snippet that reads raw data from tiny, scaling is done in the last line:
with serial.Serial( port='/dev/ttyACM0', baudrate=115200 ) as tinySA:
scan_command = f'scanraw {int(f_low)} {int(f_high)} {N_points}\r'.encode()
tinySA.write( scan_command )
echoes = tinySA.read_until( b'{' ) # skip command echoes
# print( echoes )
raw_data = tinySA.read_until( b'}ch> ' )
raw_data = unpack( '<' + 'xH'*N_points, raw_data[:-5] ) # cut trailing '}ch> '
raw_data = np.array( raw_data, dtype=np.uint16 )
dBm_power = raw_data / 32 - 128 # scale 0..4095 -> -128..-0.03 dBm
With your value = 1405 -> 1405/32 = 43.9, 43,9 - 128 = -84.1
from tinysa.
Related Issues (20)
- v1.3-5x / Can't capture short RF data bursts HOT 6
- TinySA Ultra firmware? HOT 2
- v1.4-8-g5139325 doesn't compile for tinySA3
- Tiny SA Ultra - sweep time in generator mode HOT 1
- Large spectra amplitude near frequencies close to 0. HOT 1
- TinySA4 V1.4-40 unlock code fault HOT 1
- Serial "pause" command disables battery and voltage display
- tinySA4 build for v1.4-46-g94410c0 gives error HOT 1
- Negative value in NF measurement HOT 4
- tinySA3: touch unresponsible since 876d347 HOT 1
- tinySA3: BIG NUMBER graph is displayed in the size of big WATERFALL HOT 1
- Recording the trace on the sd card. HOT 3
- firmware HOT 2
- 3 mode options disappeared HOT 1
- Problem measuring traces in dbuv
- "Half-bricked" TinySA Ultra HOT 3
- Questions
- Question: how to set approperiately TinySA Ultra as real time waterfall for ICOM7100, like SDR receiver ? HOT 2
- Buggy firmware when compiling with GCC-ARM version 12 HOT 3
- BUG: No possibility to interrupt long running serial commands, e.g. scanraw HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinysa.