Update rate not showing
Update rate not showing
On linux PC I get to step 2. "Click on start processing. Confirm that an update rate is showing."
And nothing.
Power shows ok underneath the non-existent update rate.
I ran the 4 tuner tests just fine.
And nothing.
Power shows ok underneath the non-existent update rate.
I ran the 4 tuner tests just fine.
-
- Site Admin
- Posts: 2845
- Joined: Mon Nov 19, 2012 11:54 pm
Re: Update rate not showing
What is your power source, and have you been able to run all four units with rtl_test simultaneously?
Re: Update rate not showing
Were there any warnings when you ran the tests? Maybe -7 / -9 warnings?
Re: Update rate not showing
No warnings.
As for power, I got 4 instances of SDR# running at once. Granted different operating system and as 4 separate SDR's.
As for power, I got 4 instances of SDR# running at once. Granted different operating system and as 4 separate SDR's.
-
- Site Admin
- Posts: 2845
- Joined: Mon Nov 19, 2012 11:54 pm
Re: Update rate not showing
If you edit the run.sh file, you can remove the &>/dev/null part on the python call near the end. That will sent all error messages to the terminal. Maybe some errors due to missing packages etc are showing up.
Re: Update rate not showing
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 3129, in run
server.run(app)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 2822, in run
**self.options)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1315, in serve
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1158, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1137, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 345, in __init__
HTTPServer.__init__(self, server_address, RequestHandlerClass)
File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 99] Cannot assign requested address
Traceback (most recent call last):
File "/root/kerberossdr/_signalProcessing/hydra_signal_processor.py", line 169, in run
self.module_receiver.download_iq_samples()
File "/root/kerberossdr/_receiver/hydra_receiver.py", line 159, in download_iq_samples
byte_data+= unpack(format_string, byte_array_read)
struct.error: unpack requires a buffer of 1048576 bytes
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 3129, in run
server.run(app)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 2822, in run
**self.options)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1315, in serve
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1158, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1137, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 345, in __init__
HTTPServer.__init__(self, server_address, RequestHandlerClass)
File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 99] Cannot assign requested address
Traceback (most recent call last):
File "/root/kerberossdr/_signalProcessing/hydra_signal_processor.py", line 169, in run
self.module_receiver.download_iq_samples()
File "/root/kerberossdr/_receiver/hydra_receiver.py", line 159, in download_iq_samples
byte_data+= unpack(format_string, byte_array_read)
struct.error: unpack requires a buffer of 1048576 bytes
Re: Update rate not showing
Looks like there are 2 different issues.
First issue is the webserver can't bind to the port. I don't believe this is the cause of the update rate not showing, but pretty easy one to fix. Typically this happens when there is already something running on the same port. Can you run these 3 commands?
The first one installs the tools. The second command lists the ports and the process that is binding to the port. The third one will just list your networking information which should list the IP.
Also, at the top of the run.sh file there's this section. Can you paste what you have in yours?
The second issue is the error below and is probably the reason the update rate is not showing. Can you try increasing the BUFF_SIZE at the top of run.sh? The error seems to suggest it's set too low which is surprising to me since it seems like the same buffer size is used everywhere, but I'm not too familiar with the code yet.
First issue is the webserver can't bind to the port. I don't believe this is the cause of the update rate not showing, but pretty easy one to fix. Typically this happens when there is already something running on the same port. Can you run these 3 commands?
The first one installs the tools. The second command lists the ports and the process that is binding to the port. The third one will just list your networking information which should list the IP.
Code: Select all
> sudo apt install net-tools
> netstat -ltnp | grep ':80'
> ip addr
Also, at the top of the run.sh file there's this section. Can you paste what you have in yours?
Code: Select all
BUFF_SIZE=512 #Must be a power of 2. Normal values are 128, 256. 512 is possible on a fast PC.
IPADDR="192.168.1.103"
The second issue is the error below and is probably the reason the update rate is not showing. Can you try increasing the BUFF_SIZE at the top of run.sh? The error seems to suggest it's set too low which is surprising to me since it seems like the same buffer size is used everywhere, but I'm not too familiar with the code yet.
Code: Select all
struct.error: unpack requires a buffer of 1048576 bytes
-
- Site Admin
- Posts: 2845
- Joined: Mon Nov 19, 2012 11:54 pm
Re: Update rate not showing
Just a note to please NOT change the BUFF_SIZE parameter away from 256 at the moment, unless you're able to understand and manually edit the buffer parameters in the C code. Had to temporarily remove the ability to adjust them at runtime via the script due to some strange compiler issues. Still investigating that issue.CCode wrote: ↑Fri Apr 05, 2019 8:49 pmThe second issue is the error below and is probably the reason the update rate is not showing. Can you try increasing the BUFF_SIZE at the top of run.sh? The error seems to suggest it's set too low which is surprising to me since it seems like the same buffer size is used everywhere, but I'm not too familiar with the code yet.
Code: Select all
struct.error: unpack requires a buffer of 1048576 bytes
-
- Site Admin
- Posts: 2845
- Joined: Mon Nov 19, 2012 11:54 pm
Re: Update rate not showing
Hmm the ability to not assign the IP shouldn't cause it to crash, but just in case, can you try editing run.sh and setting the IP address to your machines actual address? Also, just checking is your machine running any other servers on port 8081? CCodes answer above should help you find that out.TechCom wrote: ↑Fri Apr 05, 2019 4:34 pmException in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 3129, in run
server.run(app)
File "/usr/local/lib/python3.7/dist-packages/bottle.py", line 2822, in run
**self.options)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1315, in serve
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1158, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 1137, in __init__
request_queue_size=request_queue_size)
File "/usr/local/lib/python3.7/dist-packages/paste/httpserver.py", line 345, in __init__
HTTPServer.__init__(self, server_address, RequestHandlerClass)
File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 99] Cannot assign requested address
Traceback (most recent call last):
File "/root/kerberossdr/_signalProcessing/hydra_signal_processor.py", line 169, in run
self.module_receiver.download_iq_samples()
File "/root/kerberossdr/_receiver/hydra_receiver.py", line 159, in download_iq_samples
byte_data+= unpack(format_string, byte_array_read)
struct.error: unpack requires a buffer of 1048576 bytes
The second error usually occurs only after a crash from something else (so possibly the TCP error), as the data stream could stop and only give half a buffer after an exception.
Re: Update rate not showing
Focusing on getting the sample rate to show something first... Are you suggesting that not having the IP/network stuff fixed is actually causing the update rate issue?