Test Run for Heimdall DAQ, Questions on GNU Radio and help with Webinterface

Hi team, I am running into a few issues, and i have a few questions, hoping you can give steer me in the right direction. I am using Ubuntu 22.04.2, Intel Xeon CPU: 4 core, 8G RAM, 64 bit system.

Regarding Heimdall DAQ Firmware: I followed the install instructions. Test Run instructions reference “cd krakensdr_pr/Firmware”. Note: this filepath does not exist: Instead replace with ~krakensdr/Heimdall_daq_fw/Firmware
then sudo ./daq_start_sm.sh. and this seems run to completion

However, running “sudo ./daq_synthetic_start.sh” returns the follwing traceback error: ~krakensdr/Heimdall_daq_fw/Firmware/ini_checker.py line 6 in module import numpy as np ModuleNotFoundError: No module named ‘numpy’

Also running “./unit_test.sh” returns an ImportError, referencing numpy as the issue.
I ran conda install numpy and confirmed it is installed. So my question is where else is it expecting to be installed?

Regarding the GNU Radio: do i need to install GNU Radio before I install KrakenSDR GNU Radio Source Block?

Regarding Webinterface: I am not able to acces the webinterface.
-ubuntu firewall is disabled using sudo ufw disable
-allowed port 8080 using sudo ufw allow 8080/tcp
-allowed http using sudo ufw allow http
-tried url: http://krakensdr:8080
-tried url: http://localhost:8080
-tried url:http://my_IP_Address:8080
What am missing here? i feel like its something minor but i’ve been wrong before.

I do have the KrackenSDR connected to my machine with 2 usb-c cables (1 for power, 1 for data). Did NOT connect antennas.

Sorry for the loaded question but i didnt want to bombard you with a bunch of messages. Thanks in advance for you assistance.
-Patrick

1 Like

If you’re running daq_synthetic_start.sh by itself, then you must remember to be running it from within a conda environment. So run “conda activate kraken” first.

But if you’re trying to run GNU Radio, you might be better off reading the Readme instructions at GitHub - krakenrf/gr-krakensdr

You need to install GNU Radio first, then the GNU Radio OOT block.

Thanks, that helped and I made some progress:

I ran “conda activate kraken”, but this initially gave me the same error.

It also produced a new import error when trying to run daq_start_sm.sh. Scipy cannot be found

So i moved on to the GNU Radio instructions.

Regarding GNU Radio: Installed GNU Radio first, then followed instructions for KrakenSDR GNU Radio

However, after copying over daq_start_sm.sh and daq_stop.sh. To krakensdr root folder, running daq_start_sm. Sh produce a several messages ending with DAQ chain not started.
The solution: copy “daq_chain_config_.ini”, “_data_control” folder, “logs” folder, and fir_filter_designer.py
While this allows the daq_start_sm.sh to run to completion. Within the output ,right above the coffee doodle, there are the following messages: “./daq_start_sm.sh: line 116 [ too many arguments
“./daq_start_sm.sh: line 119 [ too many arguments

Also copied “daq_synthetic_start.sh” and “ini_checker.py” to krakensdr root folder. Ran “daq_synthetic_start.sh” and it ran to completion.
Produced following messages:
./daq_synthetic_start.sh: line 80: [:too many arguments
./daq_synthetic_start.sh: line 83: [:too many arguments

Any thoughts on this?

Also are there detail instructions/setup to access the webinterface?

Thanks again,
Patrick

If Scipy isn’t found, then something has gone wrong during the package installation process. It seems that the scipy package did not install correctly. I would go back and repeat the steps involving the conda package installs, or just use the script.

There is no webinterface active if you are using GNU Radio. The web interface is only for users who are using our direction finding code which is seperate from heimdall daq.

When using GNU Radio, the control interface will be GNU Radio itself.

Hi Carl, Thanks for your advice. I used the install scripts on one machine and the ova file for the virtual box on another machine. and i’ve gotten a further.

1st set of questions question i have: Should the krakensdr start receiving IQ data as soon as its connected to the usb power cable and usb data cable? or does it require the heimdall_daq_start.sh and addtitional scripts to start receiving data?

2nd set questions: when I run heimdall_daq_start.sh, i get the following output:
Shut down DAQ chain …
Config file check bypassed [ WARNING ]
kernel.sched_rt_runtime_us = -1
Desig FIR filter with the following parametersL
Decimation ratio: 1
Bandwidth: 1.00
Tap size: 1
Window function: hann
FIR filter ready
Transfer function is exported to : _logs/Decimator_filter_transfer.html
Coefficients are exported to : _data_control/fir_coeffs.txt
Starting Daq Subsystem
./daq_start_sm.sh: line 116: [: too many arguments
./daq_start_sm.sh: line 119: [: too many arguments

Have a coffee watch radar

Whats happening when it Shuts down the DAQ chain?
Is this normal?
Why or why not?

When it starts the DAQ Subsystem it triggers the 2 line errors in daq_start _sm.sh. SOLVED

SOLUTION for daq_start_sm.sh line errors: this is referencing the last line in daq_chain_config.ini file. I used "#’ to comment line 54: out_data_iface_type = shmem and added line 55: out_data_iface_type = eth. The code doesn’t like that.

Thanks,
Patrick

1 Like

No it won’t immediately start receiving IQ data. It needs to software to be running to receive the data

Is there any reason why you want to run heimdall_daq_start.sh directly? For GNU Radio you should be using the heimdall_only_start.sh script from the gr-krakensdr repo. Please read the usage instructions in that repo to see how to use those files.

Maybe I am misinterpreting the instructions you are referencing

I completed the GNU Radio OOT Block Install Instructions
by copying and pasting the line of code below:

sudo apt-get install gnuradio-dev cmake libspdlog-dev clang-format
git clone https://github.com/krakenrf/gr-krakensdr
cd gr-krakensdr
mkdir build
cd build
cmake ..
make
sudo make install

However, the Usage Instructions do not line up exactly with the built file structure that results from using the recommended install script:

“First install Heimdall GitHub - krakenrf/heimdall_daq_fw: Coherent data acquisition signal processing chain for multichannel SDRs

Using the install script the heimdall_daq_fw installs in the following directory: /home//krakensdr_doa

“Next copy the heimdall_only_start.sh and heimdall_only_stop.sh file from this repo into your krakensdr root directory.”
Using the install script the heimdall_only_start.sh and heimdall_only_stop.sh files install in the following directory:
/home//gr-krakensdr/

I copied the heimdall_only_start.sh and heimdall_only_stop.sh files to /home//krakensdr_doa

“In the heimdall_daq_fw folder edit your Firmware/daq_chain_config.ini file and change out_data_iface_type to eth.” I did make this file change

[data_interface]
out_data_iface_type = eth

“Then in the krakensdr root directory run ./heimdall_only_start.sh”
I think I should run this in the terminal from this directory: /home//krakensdr_doa

Does this all sound right?

-Patrick

1 Like

I think I see where it’s gone wrong. If you use the installation script your krakensdr root directory is ~/krakensdr_doa.

So install heimdall_only_start.sh and heimdall_only_stop.sh into the ~/krakensdr_doa root directory and run them from there.

Thanks for the clarification.

I’m on an Ubuntu 22.04 machine with GNU Radio installed as GNU Radio Companion 3.10.1.1 (Python 3.10.6. I am able to open the example grc files and select the various Kraken components (KrakenSDR Source, KrakenSDR Cross Correlator and DOA MUSIC). However when i try to run the example files GNU Radio freezes and ultimately crashes. has anyone experienced this issue and know of any solutions?

In the terminal I ran lsusb and dmesg. I am able to see the usb devices. I am trying to access the raw data stream from the kraken SDR. can that be done in GNU Radio? If so, how?

1 Like

Are you running heimdall before trying to run the GNU Radio flowgraph?

Yes. I run heimdall_only_start.sh from the /krakensdr_doa filepath.
Then I run kraken_fft_display.grc from the /gr-krakensdr/examples filepath.

I receive the following message output:

<<<Welcome to GNU Radio Companion 3.10.1.1>>>>

Block paths:
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading:“/gr-krakensdr/examples/kraken_fft_display.grc”

Done

Generating:‘/gr-krakensdr/examples/kraken_fft_display.py’

Warning: This flow graph may not have flow control: no audio or RF hardware blocks found. Add a Misc > Throttle block to your flow graph to avoid CPU congestion.

Executing:/usr/bin/python3 -u /gr-krakensdr/examples/kraken_fft_display.py

Warning: failed to XInitThreads()
Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway

I am not sure why its is not recognizing an RF hardware block, when i see the rtl devices in the krakensdr showing in lsusb and dmseg.

Why does it suggest using a throttle block? I added a throtte block between the KrakenSDR Source block and the QT Gui Sink. now i get the following message

An output message states Ethernet Connection Failed, Error: <class ‘ConnectionRefusedError’>

1 Like

Found something interesting: I setup a new development machine, ubunbu 22.04, used the install scripts and setup the OOT Blocks for gunradio 3.10.

First time starting gnuradio I get the message “xterm executable is missing…”

I select ok and run the example flowgraphs anyway and they all work, the graphs display and I see some noise.

I install xterm thinking it gnuradio needs it, and none of the flowgraphs work and gnuradio freezes.

I sudo apt purge xterm and reboot a couple of times and finally able to get the flowgraphs to run again but now it is failing to receive IQ data.

My take away is that xterm and gnuradio 3.10 does has some incompatibility issue.

Has anyone else experienced this?

1 Like

Hi All, Freshly installed and everything DID NOT install xterm this time. on the initial run for the kraken_fft_display.grc. saw this message:
“Exception: could not broadcast input array from shape(6,) into shape (4096,)
Failed to write output_items”

Stopped and restarted and it reads now i get a the message:
“Exception: Failed to get IQ Samples”

I tried to run the kraken_correlator_test and recieved the following output:
“Ethernet Connection Failed, Error: <class ‘OSError’>”

Stopped and restarted and it now reads:
“Exception: Failed to get IQ Samples”

Tried running kraken_music_doa and received the following messages:
"Warning: failed to XInitThreads()
Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Sending control message
wavelength mult: 0.4411…
buffer_double_mapped :warning allocate_buffer: tried to alloacate 45 items of size 1440.
Due to alignment requirements 128 were allocated. If this isn’t OK, consider padding your structure to a power-of-two bytes. On this platform, our allocation granularity is 4096 bytes.
Failed to get IQ Samples

I know this is a lot but I feel like I am sooooo close to getting this to work. A solution is out there. Has anyone else encountered this?

Muchos Gracias,
Patrick

1 Like

It seems like heimdall isn’t actually starting, or it’s crashing shortly after it starts, or GNU Radio is unable to connect to heimdall.

Can you try to run the DOA software first and see if your system actually runs that? At least that way you can first confirm that the KrakenSDR hardware, cables and your system is all compatible and working.

I ran the ./krakensdr_doa.sh from the krakensdr_doa folder. For the first time, the webinterface works.
However I am not seeing a signal. Below are the details of the DAQ Subsystem Status:

Update Rate: -ms
Latency: -ms
Frame Index: -
Frame Type: -
Frame Sync: LOSS
Power Level: -
Connection Status: Disconnected
Sample Delay Sync: LOSS
IQ Sync: LOSS
Noise Source State: Disabled
Center Frequency [MHz]: -MHz
Sampling Frequency [MHz]: -MHz
DSP Decimated BW [MHz]: - MHz
VFO Range [MHZ]: -MHz
Data Block Length [ms]: -ms
RF Gains [dB]: [,] dB
VFO-0 Power [dB]: -

Also, when I run krakensdr_doa.sh one of the terminal output messages references the kernel:
“kernel.sched_rt_runtime_us = -1”

Should this kernel.sched… be equal to -1?

-1 is correct.

Hmm your web GUI output indicates that something is wrong with your setup as heimdall isn’t working.

Can you paste the logs from krakensdr_doa/krakensdr_doa/ui.log, and all the logs in krakensdr_doa/heimdall_daq_fw/Firmware/_logs ?

What exactly is your PC brand and model?

PC brand and model: Dell Latitude 3510

Below is the ui.log file:
CRITICAL:krakenSDR_receiver:Shared memory initialization failed
INFO:quart.serving:Running on http://0.0.0.0:8080 (CTRL + C to quit)
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self.target(self._args, **self._kwargs)
Message: ‘Running on http://0.0.0.0:8080 (CTRL + C to quit)’
Arguments: ()
INFO:quart.serving:127.0.0.1:33266 GET / 1.1 200 661 99327
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self._target(self._args, **self._kwargs)
Message: ‘%(h)s %(r)s %(s)s %(b)s %(D)s’
Arguments: {‘{host}i’: ‘0.0.0.0:8080’, ‘{user-agent}i’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘{accept}i’: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,
/
;q=0.8’, ‘{accept-language}i’: ‘en-US,en;q=0.5’, ‘{accept-encoding}i’: ‘gzip, deflate’, ‘{connection}i’: ‘keep-alive’, ‘{upgrade-insecure-requests}i’: ‘1’, ‘{content-type}o’: ‘text/html; charset=utf-8’, ‘{content-length}o’: ‘661’, ‘{content-encoding}o’: ‘gzip’, ‘{vary}o’: ‘Accept-Encoding’, ‘{shell}e’: ‘/bin/bash’, ‘{colorterm}e’: ‘truecolor’, ‘{sudo_gid}e’: ‘1000’, ‘{sudo_command}e’: ‘/usr/bin/env PATH=/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./gui_run.sh’, ‘{sudo_user}e’: ‘xmmgr’, ‘{pwd}e’: ‘/home/xmmgr/krakensdr_doa/krakensdr_doa’, ‘{logname}e’: ‘root’, ‘{xauthority}e’: ‘/run/user/1000/.mutter-Xwaylandauth.3KS281’, ‘{home}e’: ‘/root’, ‘{lang}e’: ‘en_US.UTF-8’, ‘{ls_colors}e’: ‘rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:’, ‘{xdg_current_desktop}e’: ‘ubuntu:GNOME’, ‘{term}e’: ‘xterm-256color’, ‘{user}e’: ‘root’, ‘{display}e’: ‘:0’, ‘{shlvl}e’: ‘0’, ‘{path}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin’, ‘{sudo_uid}e’: ‘1000’, ‘{mail}e’: ‘/var/mail/root’, '{
}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin/python3’, ‘h’: ‘127.0.0.1:33266’, ‘l’: ‘-’, ‘t’: ‘[04/Aug/2023:13:39:18 -0400]’, ‘r’: ‘GET / 1.1’, ‘R’: ‘GET / 1.1’, ‘s’: 200, ‘st’: ‘OK’, ‘S’: ‘http’, ‘m’: ‘GET’, ‘U’: ‘/’, ‘Uq’: ‘/’, ‘q’: ‘’, ‘H’: ‘1.1’, ‘b’: ‘661’, ‘B’: ‘661’, ‘f’: ‘-’, ‘a’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘T’: 0, ‘D’: 99327, ‘L’: ‘0.099327’, ‘p’: ‘<2913>’}
INFO:quart.serving:127.0.0.1:33270 GET /_push 1.1 101 - 1211
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self.target(self._args, **self._kwargs)
Message: ‘%(h)s %(r)s %(s)s %(b)s %(D)s’
Arguments: {‘{host}i’: ‘0.0.0.0:8080’, ‘{user-agent}i’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘{accept}i’: '
/', ‘{accept-language}i’: ‘en-US,en;q=0.5’, ‘{accept-encoding}i’: ‘gzip, deflate’, ‘{sec-websocket-version}i’: ‘13’, ‘{origin}i’: ‘http://0.0.0.0:8080’, ‘{sec-websocket-extensions}i’: ‘permessage-deflate’, ‘{sec-websocket-key}i’: ‘QOpN/U/34cKcDNLKK1IcEw==’, ‘{connection}i’: ‘keep-alive, Upgrade’, ‘{pragma}i’: ‘no-cache’, ‘{cache-control}i’: ‘no-cache’, ‘{upgrade}i’: ‘websocket’, ‘{shell}e’: ‘/bin/bash’, ‘{colorterm}e’: ‘truecolor’, ‘{sudo_gid}e’: ‘1000’, ‘{sudo_command}e’: ‘/usr/bin/env PATH=/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./gui_run.sh’, ‘{sudo_user}e’: ‘xmmgr’, ‘{pwd}e’: ‘/home/xmmgr/krakensdr_doa/krakensdr_doa’, ‘{logname}e’: ‘root’, ‘{xauthority}e’: ‘/run/user/1000/.mutter-Xwaylandauth.3KS281’, ‘{home}e’: ‘/root’, ‘{lang}e’: ‘en_US.UTF-8’, ‘{ls_colors}e’: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:*.xspf=00;36:', ‘{xdg_current_desktop}e’: ‘ubuntu:GNOME’, ‘{term}e’: ‘xterm-256color’, ‘{user}e’: ‘root’, ‘{display}e’: ‘:0’, ‘{shlvl}e’: ‘0’, ‘{path}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin’, ‘{sudo_uid}e’: ‘1000’, ‘{mail}e’: ‘/var/mail/root’, '{
}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin/python3’, ‘h’: ‘127.0.0.1:33270’, ‘l’: ‘-’, ‘t’: ‘[04/Aug/2023:13:39:19 -0400]’, ‘r’: ‘GET /_push 1.1’, ‘R’: ‘GET /_push 1.1’, ‘s’: 101, ‘st’: ‘Switching Protocols’, ‘S’: ‘ws’, ‘m’: ‘GET’, ‘U’: ‘/_push’, ‘Uq’: ‘/push’, ‘q’: ‘’, ‘H’: ‘1.1’, ‘b’: ‘-’, ‘B’: ‘-’, ‘f’: ‘-’, ‘a’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘T’: 0, ‘D’: 1211, ‘L’: ‘0.001211’, ‘p’: ‘<2913>’}
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 104, in update_component_socket
await asyncio.gather(tasks)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 125, in call_connect_callback
await self.loop.run_in_executor(None, self.connect_callback, client, connect)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(self.args, self.kwargs)
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_UI/_web_interface/callbacks/main.py”, line 47, in func
fetch_dsp_data(app, web_interface, spectrum_fig, waterfall_fig)
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_UI/_web_interface/utils.py”, line 140, in fetch_dsp_data
web_interface.daq_cpi = int(iq_header.cpi_length * 10
3 / iq_header.sampling_freq)
ZeroDivisionError: division by zero
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 115, in update_component_socket
await self.call_connect_callback(client, False)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 125, in call_connect_callback
await self.loop.run_in_executor(None, self.connect_callback, client, connect)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(self.args, **self.kwargs)
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_UI/_web_interface/callbacks/main.py”, line 51, in func
web_interface.dsp_timer.cancel()
AttributeError: ‘NoneType’ object has no attribute ‘cancel’
INFO:quart.serving:127.0.0.1:33280 GET /_push 1.1 101 - 3733
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self._target(self._args, **self._kwargs)
Message: ‘%(h)s %(r)s %(s)s %(b)s %(D)s’
Arguments: {‘{host}i’: ‘0.0.0.0:8080’, ‘{user-agent}i’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘{accept}i’: '
/
', ‘{accept-language}i’: ‘en-US,en;q=0.5’, ‘{accept-encoding}i’: ‘gzip, deflate’, ‘{sec-websocket-version}i’: ‘13’, ‘{origin}i’: ‘http://0.0.0.0:8080’, ‘{sec-websocket-extensions}i’: ‘permessage-deflate’, ‘{sec-websocket-key}i’: ‘xwhAWeWjk80x0/sW+/kO3A==’, ‘{connection}i’: ‘keep-alive, Upgrade’, ‘{pragma}i’: ‘no-cache’, ‘{cache-control}i’: ‘no-cache’, ‘{upgrade}i’: ‘websocket’, ‘{shell}e’: ‘/bin/bash’, ‘{colorterm}e’: ‘truecolor’, ‘{sudo_gid}e’: ‘1000’, ‘{sudo_command}e’: ‘/usr/bin/env PATH=/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./gui_run.sh’, ‘{sudo_user}e’: ‘xmmgr’, ‘{pwd}e’: ‘/home/xmmgr/krakensdr_doa/krakensdr_doa’, ‘{logname}e’: ‘root’, ‘{xauthority}e’: ‘/run/user/1000/.mutter-Xwaylandauth.3KS281’, ‘{home}e’: ‘/root’, ‘{lang}e’: ‘en_US.UTF-8’, ‘{ls_colors}e’: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:
.tar=01;31:
.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:', ‘{xdg_current_desktop}e’: ‘ubuntu:GNOME’, ‘{term}e’: ‘xterm-256color’, ‘{user}e’: ‘root’, ‘{display}e’: ‘:0’, ‘{shlvl}e’: ‘0’, ‘{path}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin’, ‘{sudo_uid}e’: ‘1000’, ‘{mail}e’: ‘/var/mail/root’, '{
}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin/python3’, ‘h’: ‘127.0.0.1:33280’, ‘l’: ‘-’, ‘t’: ‘[04/Aug/2023:13:39:19 -0400]’, ‘r’: ‘GET /_push 1.1’, ‘R’: ‘GET /_push 1.1’, ‘s’: 101, ‘st’: ‘Switching Protocols’, ‘S’: ‘ws’, ‘m’: ‘GET’, ‘U’: ‘/_push’, ‘Uq’: ‘/push’, ‘q’: ‘’, ‘H’: ‘1.1’, ‘b’: ‘-’, ‘B’: ‘-’, ‘f’: ‘-’, ‘a’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘T’: 0, ‘D’: 3733, ‘L’: ‘0.003734’, ‘p’: ‘<2913>’}
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/quart/ctx.py”, line 389, in wrapper
return await websocket_context.app.ensure_async(func)(args, **kwargs)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 147, in dispatch
await func(data[‘data’], client, data[‘id’])
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1261, in dispatch
return
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1232, in call_callback
return await loop.run_in_executor(None, runcoro, func(body, response, lock, client)) # %% callback invoked
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
self.future.set_result(result)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/_utils.py”, line 252, in runcoro
return e.value
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1158, in add_context
lock.release()
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_UI/_web_interface/callbacks/main.py”, line 471, in update_dsp_params
wavelength = 300 / web_interface.daq_center_freq
INFO:quart.serving:127.0.0.1:33286 GET /config 1.1 200 661 2050
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self._target(self._args, **self._kwargs)
Message: ‘%(h)s %(r)s %(s)s %(b)s %(D)s’
Arguments: {‘{host}i’: ‘0.0.0.0:8080’, ‘{user-agent}i’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘{accept}i’: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,
/
;q=0.8’, ‘{accept-language}i’: ‘en-US,en;q=0.5’, ‘{accept-encoding}i’: ‘gzip, deflate’, ‘{connection}i’: ‘keep-alive’, ‘{referer}i’: ‘http://0.0.0.0:8080/’, ‘{upgrade-insecure-requests}i’: ‘1’, ‘{content-type}o’: ‘text/html; charset=utf-8’, ‘{content-length}o’: ‘661’, ‘{content-encoding}o’: ‘gzip’, ‘{vary}o’: ‘Accept-Encoding’, ‘{shell}e’: ‘/bin/bash’, ‘{colorterm}e’: ‘truecolor’, ‘{sudo_gid}e’: ‘1000’, ‘{sudo_command}e’: ‘/usr/bin/env PATH=/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./gui_run.sh’, ‘{sudo_user}e’: ‘xmmgr’, ‘{pwd}e’: ‘/home/xmmgr/krakensdr_doa/krakensdr_doa’, ‘{logname}e’: ‘root’, ‘{xauthority}e’: ‘/run/user/1000/.mutter-Xwaylandauth.3KS281’, ‘{home}e’: ‘/root’, ‘{lang}e’: ‘en_US.UTF-8’, ‘{ls_colors}e’: ‘rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:’, ‘{xdg_current_desktop}e’: ‘ubuntu:GNOME’, ‘{term}e’: ‘xterm-256color’, ‘{user}e’: ‘root’, ‘{display}e’: ‘:0’, ‘{shlvl}e’: ‘0’, ‘{path}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin’, ‘{sudo_uid}e’: ‘1000’, ‘{mail}e’: ‘/var/mail/root’, '{
}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin/python3’, ‘h’: ‘127.0.0.1:33286’, ‘l’: ‘-’, ‘t’: ‘[04/Aug/2023:13:39:20 -0400]’, ‘r’: ‘GET /config 1.1’, ‘R’: ‘GET /config 1.1’, ‘s’: 200, ‘st’: ‘OK’, ‘S’: ‘http’, ‘m’: ‘GET’, ‘U’: ‘/config’, ‘Uq’: ‘/config’, ‘q’: ‘’, ‘H’: ‘1.1’, ‘b’: ‘661’, ‘B’: ‘661’, ‘f’: ‘http://0.0.0.0:8080/’, ‘a’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘T’: 0, ‘D’: 2050, ‘L’: ‘0.002050’, ‘p’: ‘<2913>’}
INFO:quart.serving:127.0.0.1:33290 GET /_push 1.1 101 - 1053
— Logging error —
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1087, in emit
self.flush()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/logging/init.py”, line 1067, in flush
self.stream.flush()
OSError: [Errno 5] Input/output error
Call stack:
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 930, in _bootstrap
self._bootstrap_inner()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 910, in run
self.target(self._args, **self._kwargs)
Message: ‘%(h)s %(r)s %(s)s %(b)s %(D)s’
Arguments: {‘{host}i’: ‘0.0.0.0:8080’, ‘{user-agent}i’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘{accept}i’: '
/', ‘{accept-language}i’: ‘en-US,en;q=0.5’, ‘{accept-encoding}i’: ‘gzip, deflate’, ‘{sec-websocket-version}i’: ‘13’, ‘{origin}i’: ‘http://0.0.0.0:8080’, ‘{sec-websocket-extensions}i’: ‘permessage-deflate’, ‘{sec-websocket-key}i’: ‘BoAqMn1MbvBwuBv02G1Y0Q==’, ‘{connection}i’: ‘keep-alive, Upgrade’, ‘{pragma}i’: ‘no-cache’, ‘{cache-control}i’: ‘no-cache’, ‘{upgrade}i’: ‘websocket’, ‘{shell}e’: ‘/bin/bash’, ‘{colorterm}e’: ‘truecolor’, ‘{sudo_gid}e’: ‘1000’, ‘{sudo_command}e’: ‘/usr/bin/env PATH=/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ./gui_run.sh’, ‘{sudo_user}e’: ‘xmmgr’, ‘{pwd}e’: ‘/home/xmmgr/krakensdr_doa/krakensdr_doa’, ‘{logname}e’: ‘root’, ‘{xauthority}e’: ‘/run/user/1000/.mutter-Xwaylandauth.3KS281’, ‘{home}e’: ‘/root’, ‘{lang}e’: ‘en_US.UTF-8’, ‘{ls_colors}e’: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:*.xspf=00;36:', ‘{xdg_current_desktop}e’: ‘ubuntu:GNOME’, ‘{term}e’: ‘xterm-256color’, ‘{user}e’: ‘root’, ‘{display}e’: ‘:0’, ‘{shlvl}e’: ‘0’, ‘{path}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin:/home/xmmgr/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin’, ‘{sudo_uid}e’: ‘1000’, ‘{mail}e’: ‘/var/mail/root’, '{
}e’: ‘/home/xmmgr/miniforge3/envs/kraken/bin/python3’, ‘h’: ‘127.0.0.1:33290’, ‘l’: ‘-’, ‘t’: ‘[04/Aug/2023:13:39:20 -0400]’, ‘r’: ‘GET /_push 1.1’, ‘R’: ‘GET /_push 1.1’, ‘s’: 101, ‘st’: ‘Switching Protocols’, ‘S’: ‘ws’, ‘m’: ‘GET’, ‘U’: ‘/_push’, ‘Uq’: ‘/_push’, ‘q’: ‘’, ‘H’: ‘1.1’, ‘b’: ‘-’, ‘B’: ‘-’, ‘f’: ‘-’, ‘a’: ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0’, ‘T’: 0, ‘D’: 1053, ‘L’: ‘0.001053’, ‘p’: ‘<2913>’}
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/quart/ctx.py”, line 389, in wrapper
return await websocket_context.app.ensure_async(func)(*args, **kwargs)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/pusher.py”, line 147, in dispatch
await func(data[‘data’], client, data[‘id’])
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1261, in dispatch
return
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1232, in call_callback
return await loop.run_in_executor(None, runcoro, func(body, response, lock, client)) # %% callback invoked
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
self.future.set_result(result)
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/_utils.py”, line 252, in runcoro
return e.value
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/site-packages/dash_devices/dash.py”, line 1158, in add_context
lock.release()
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_UI/_web_interface/callbacks/main.py”, line 471, in update_dsp_params
wavelength = 300 / web_interface.daq_center_freq
Exception in thread Thread-1:
Traceback (most recent call last):
File “/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/threading.py”, line 973, in _bootstrap_inner
self.run()
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_signal_processing/krakenSDR_signal_processor.py”, line 265, in run
self.module_receiver.get_iq_online()
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_receiver/krakenSDR_receiver.py”, line 189, in get_iq_online
active_buff_index = self.in_shmem_iface.wait_buff_free()
File “/home/xmmgr/krakensdr_doa/krakensdr_doa/_receiver/shmemIface.py”, line 196, in wait_buff_free
signal = unpack(“B”, os.read(self.fw_ctr_fifo, 1))[0]
struct.error: unpack requires a buffer of 1 bytes

Below is the printout of the logs file which list all the logs in krakensdr_doa/heimdall_daq_fw/Firmware/_logs:
Realtek data acquistion module : rtl_daq.log
Sample delay synchronizer : sync.log
Sample rebuffer : rebuffer.log
Squelch module : squelch.log
IQ sample decimator : decimator.log
Delay synchronizer module : delay_sync.log
IQ Server : iq_server.log
Hardware controller module : hwc.log

The squelch.log file was not created. Also the following log files were empty: iq_server and decimator.log

Below is the print out of hwc.log:

Traceback (most recent call last):
File “/home/xmmgr/krakensdr_doa/heimdall_daq_fw/Firmware/_daq_core/hw_controller.py”, line 669, in
HWC_inst0.start()
File “/home/xmmgr/krakensdr_doa/heimdall_daq_fw/Firmware/_daq_core/hw_controller.py”, line 387, in start
active_buff_index = self.in_shmem_iface.wait_buff_free()
File “/home/xmmgr/krakensdr_doa/heimdall_daq_fw/Firmware/_daq_core/shmemIface.py”, line 188, in wait_buff_free
signal = unpack(‘B’, os.read(self.fw_ctr_fifo, 1))[0]
struct.error: unpack requires a buffer of 1 bytes
/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 2 leaked shared_memory objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d ’
/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/multiprocessing/resource_tracker.py:229: UserWarning: resource_tracker: ‘/delay_sync_hwc_B’: [Errno 2] No such file or directory: ‘/delay_sync_hwc_B’
warnings.warn(‘resource_tracker: %r: %s’ % (name, e))
/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/multiprocessing/resource_tracker.py:229: UserWarning: resource_tracker: ‘/delay_sync_hwc_A’: [Errno 2] No such file or directory: ‘/delay_sync_hwc_A’
warnings.warn(‘resource_tracker: %r: %s’ % (name, e))

Below are the first 25 lines of rtl_daq.log:

Found Rafael Micro R820T/2 tuner
Found Rafael Micro R820T/2 tuner
Found Rafael Micro R820T/2 tuner
Found Rafael Micro R820T/2 tuner
Found Rafael Micro R820T/2 tuner
Allocating 12 (non-zero-copy) user-space buffers
Allocating 12 (non-zero-copy) user-space buffers
Allocating 12 (non-zero-copy) user-space buffers
Allocating 12 (non-zero-copy) user-space buffers
Allocating 12 (non-zero-copy) user-space buffers
rtlsdr_demod_write_reg failed with -9
rtlsdr_demod_write_reg failed with -9
rtlsdr_demod_write_reg failed with -9
rtlsdr_demod_write_reg failed with -9
rtlsdr_demod_write_reg failed with -9 prints this line for 1000+ lines

Below is the print out of rebuffer.log:
14:51:20 FATAL rtl_daq.h:62: IQ header read error

Below is the print out of delay_sync.log:
INFO:main:IQ adjustment vector: abs:[1. 1. 1. 1. 1.]
INFO:main:IQ adjustment vector: phase:[0. 0. 0. 0. 0.]
WARNING:shmemIface:Shared memory not exist
WARNING:shmemIface:Shared memory not exist
WARNING:shmemIface:Shared memory not exist
WARNING:shmemIface:Shared memory not exist
CRITICAL:main:Failed to acquire new data frame, exiting…
INFO:shmemIface:Terminate signal sent
/home/xmmgr/miniforge3/envs/kraken/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 6 leaked shared_memory objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d ’

The error in rtl_daq is the core of the problem. For some reason your Kraken isn’t connecting with the PC correctly.

Can you try the tuner test described here?

And the power supply test described here?

If those show errors, please try another USB cable for data and another power supply cable.

I changed to shorter (3ft) cables and got a high speed data cable and the Daq subsystem status made a few changes (listed below). I am able to connect but not syncing.

DAQ Subsystem Status

Update Rate: 0 ms
Latency: 0 ms
Frame Index: 0
Frame Type: -
Frame Sync: LOSS
Power Level: OK
Connection Status: Connected
Sample Delay Sync: LOSS
IQ Sync: LOSS
Noise Source State: Disabled
Center Frequecy [MHz]: 416.588
Sampling Frequency [MHz]: 0
DSP Decimated BW [MHz]: 0.000
VFO Range [MHz]: 416.588 - 416.588
Data Block Length [ms]: 0
RF Gains [dB]: [,]
VFO-0 Power [dB]: 0.0

Regarding SSH/Terminal Login

"You can log into an SSH terminal by using any Terminal software (eg. PuTTY), and connecting to IP_ADDRRESS:22. The login details are “krakenrf/krakensdr. Note that if you expose port 22 to the internet, we strongly recommend changing the default password.
Alternatively, just connect an HDMI screen and keyboard, and the terminal will automatically login on boot. Note that there is no GUI, the OS is terminal only.”

what IP_ADDRESS:22 is this referencing? It sounds like there is an ip address for the Krakensdr unit.
Is that correct?