Comments (17)
use the -S (single pass mode, no subtraction (same as original wsprd)).
Solved the problem for me.
./rtlsdr_wsprd -f 144.489M -c VE2VAX -l FN35JO -a 1 -S
from rtlsdr-wsprd.
Well, it could be a buffer overflow or a problem with the driver callback (low or no response).
Your rpi 1 has only one core, and the decoding process takes a lot of CPU. I use 2 threads and if this second thread used for decoding takes too much CPU, the driver could not be able to push the samples.
I'm not sure, but it could be good explanation.
Could you try with a rpi 2 ?
A solution could be to change the decoding thread priority (code side), but I have no guarantees.
from rtlsdr-wsprd.
BTW, thx for reporting this issue.
from rtlsdr-wsprd.
Benchmark : https://www.raspberrypistarterkits.com/2016/03/04/raspberry-pi-3-pi-2-pi-b-benchmark-review/
from rtlsdr-wsprd.
Have been running a few tests on the 1B:
110s raw 250 kS IQ and demodulated with csdr to wav with 12k samplerate.
The decoding with wsprd (from wsjt) takes 4 seconds.
rtlsd_wsprd takes about 23% of cpu when running.
Should be pretty fine with the cpu-power i think. Maybe adding lower priority to the decodingthread in order to not disturb the realtime sampling.
I don't own a pi2 so can't do testing on that model.
Btw.. demodulation with csdr as I run it via my script it takes 92 seconds just to demod on the 1B..
from rtlsdr-wsprd.
Ok, I will try to fix this using pthread_attr_setschedparam.
Note to myself :
#include <pthread.h>
#include <sched.h>
pthread_attr_t tattr;
pthread_t tid;
int ret;
int newprio = 20;
sched_param param;
/* initialized with default attributes */
ret = pthread_attr_init (&tattr);
/* safe to get existing scheduling param */
ret = pthread_attr_getschedparam (&tattr, ¶m);
/* set the priority; others are unchanged */
param.sched_priority = newprio;
/* setting the new scheduling param */
ret = pthread_attr_setschedparam (&tattr, ¶m);
/* with new priority specified */
ret = pthread_create (&tid, &tattr, func, arg);
from rtlsdr-wsprd.
Hello,
Pthread priority added, but I have no RPi-1 to test this functionality.
from rtlsdr-wsprd.
Issue not solved, same problem reported (by VE2VAX)
from rtlsdr-wsprd.
The problem , happen when dec_options.subtraction is set =1
from rtlsdr-wsprd.
Is the code pushed?
Skickat från min Samsung-enhet
-------- Originalmeddelande --------
Från: "Guenael, VA2GKA" [email protected]
Datum: 25-06-2016 03:00 (GMT+01:00)
Till: Guenael/rtlsdr-wsprd [email protected]
Kopia: sm3ulc [email protected], Author [email protected]
Rubrik: Re: [Guenael/rtlsdr-wsprd] "Caught signal 11" - looping after one
period (#4)
Hello,
Pthread priority added, but I have no RPi-1 to test this functionality.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from rtlsdr-wsprd.
Yep, the code is updated, but I'm not sure if the priority works really. I'll need to take time to check this point carefully.
@ve2vax : The fano alog take more processing (option substraction). The program crash when the callback is not available. The only way to fix this is using a very low priority. But for now, it don't works...
BTW, thanks for helping.
from rtlsdr-wsprd.
I can test code monday night. Utc+1 :)
// David
Skickat från min Samsung-enhet
-------- Originalmeddelande --------
Från: "Guenael, VA2GKA" [email protected]
Datum: 25-06-2016 19:45 (GMT+01:00)
Till: Guenael/rtlsdr-wsprd [email protected]
Kopia: sm3ulc [email protected], Author [email protected]
Rubrik: Re: [Guenael/rtlsdr-wsprd] "Caught signal 11" - looping after one
period (#4)
Yep, the code is updated, but I'm not sure if the priority works really. I'll need to take time to check this point carefully.
@ve2vax : The fano alog take more processing (option substraction). The program crash when the callback is not available. The only way to fix this is using a very low priority. But for now, it don't works...
BTW, thanks for helping.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from rtlsdr-wsprd.
Hi all!
Finally had the ability to do a quick test on an rpi1b. Seem to get some
runs with no signal11 stops and some runs it seems ok.
73
// David
On Sun, Jun 26, 2016 at 1:33 AM, David [email protected] wrote:
I can test code monday night. Utc+1 :)
// David
Skickat från min Samsung-enhet
-------- Originalmeddelande --------
Från: "Guenael, VA2GKA" [email protected]
Datum: 25-06-2016 19:45 (GMT+01:00)
Till: Guenael/rtlsdr-wsprd [email protected]
Kopia: sm3ulc [email protected], Author [email protected]
Rubrik: Re: [Guenael/rtlsdr-wsprd] "Caught signal 11" - looping after one
period (#4)Yep, the code is updated, but I'm not sure if the priority works really.
I'll need to take time to check this point carefully.
@ve2vax https://github.com/ve2vax : The fano alog take more processing
(option substraction). The program crash when the callback is not
available. The only way to fix this is using a very low priority. But for
now, it don't works...
BTW, thanks for helping.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ARdPKdqNBBDwTKnBJ6cz8o7HPMNvLHisks5qPWk4gaJpZM4I2x0z
.
from rtlsdr-wsprd.
Hello,
I fixed a malloc bug present only with gcc5 (usually the case with Raspberrian).
Please retest. Thx.
from rtlsdr-wsprd.
I tested this update on RPi 1 during 48h without issue. But some versions of Raspberian react badly with USB, I added a note to the README file :
I noticed some disconnection problems with USB port while using Raspbian Jessie (2016-05-27-raspbian-jessie-lite.img). I rollbacked to Raspbian Wheezy (2015-02-16-raspbian-wheezy.img) and the problems solved by themself magically... For now, I have not investigated this issue, but if you experience some "Caught signal 11" error message, it could be this same problem. For now, I would recommend Raspbian Wheezy v2015-02-16.
Closing this issue. Thx
from rtlsdr-wsprd.
Hello,
I see the same problem, using RPi 3 with 2017-01-11-raspbian-jessie.img
73,
Zoltan
from rtlsdr-wsprd.
Hi all,
I'm running a pi2 with jessie having the same problem.
Not sure if this code is still being maintained, but this problem appears to be a bug due to unsafe string handling in wsprsim_utils.c. There are several places where something could go wrong, but I have fixed this problem with a combination of stack smashing protection compiler options (which doesn't fix the actual problem) and changing the size of the temporary string message[23] in wsprsim_utils.c to be 24 chars, not 23. Also ensuring that string is properly terminated.
So around line 189, change the variable declarations and array initialisation to:
char grid4[5], message[24];
memset(message,0,sizeof(message));
I can send a patch if that is useful.
Regards,
Randall
from rtlsdr-wsprd.
Related Issues (20)
- Less decodes than WSJT-X HOT 11
- TODO -- update to the latest version of wsprd code HOT 1
- TODO -- Remove A000AA spots HOT 1
- Faulty SNR reports HOT 20
- using -n including rtlsdr_wsprd won't exit HOT 4
- Feat: debugging option to not report spots on WSPRnet HOT 1
- RBN upload options
- wsprnet.org post results in 0 of one uploaded from rtlsdr-wsprd and when placed in safari browser HOT 2
- rtl-sdr wsprd is more sensitive on RPi3 than RPi2 HOT 2
- Possible resource leaks HOT 5
- Does not run on 2 minute cycles HOT 25
- Unit tests, unit tests, unit tests, UNIT TESTS!!! HOT 1
- main argument function / getopt not working properly HOT 1
- Feature request - run script HOT 2
- Doesn't not exit on control C HOT 3
- Sample file format should fit .c2 standard & file path should be used as a pointer (larger path) HOT 1
- Direct Sampling Mode hard coded to 1 HOT 4
- 0.4.0 no decodes HOT 3
- CPU maxed out after end of cycle HOT 5
- Some posts are reported 1 min earlier 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 rtlsdr-wsprd.