Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Continuously logging to CSV file using python
I would like to continuously log the frequency along with the associated signal strength (in dBm) into a CSV file using python, but I am unsure of the appropriate method to achieve this. I have explored the USB interface for Wi-Fi, but there are many different commands (like scan, scanraw), and I am not sure which ones to use. Could you recommend some tutorials or provide guidance on the commands needed to accomplish this task?
Thank you |
开云体育There is a simple python program here:Note sure it that is what you are looking for.? Its a good way to learn to use the serial port without getting into the additional learning curve of Qt programming.? On 9/22/24 9:26 AM, hai.truong.csnott
via groups.io wrote:
|
Hi Rich, thanks for your suggestion. I tried your code to output values from 5GHz to 6GHz. While the screen of my tinySA device shows values from -80 dbm to -65 dbm, but your code output values from -30 to -20 for the above spectrum. May I know the reasons for this difference?
?
And what are the differences between your code and the one shown in since you do some conversion from the raw_data to dBm power. |
开云体育Its not my code, I just found it.? I can't answer the questions.On 9/22/24 10:37 PM, hai.truong.csnott
via groups.io wrote:
|
On Sun, Sep 22, 2024 at 07:37 PM, <hai.truong.csnott@...> wrote:
The script you used is for the tinySA.? The tinySA and tinySA Ultra use different scaling factors to convert from raw_data to dBm power:
?
# tinySA: ?SCALE = 128
# tinySA Ultra: SCALE = 174 SCALE = 174 dBm_power = raw_data / 32 - SCALE ?
?
Example scripts for using the tinySA Ultra are located at: ?
?
One of the group members wrote a simple script for logging the FM band that is attached.
?
Herb
?
|
to navigate to use esc to dismiss