GithubHelp home page GithubHelp logo

Comments (17)

ve2vax avatar ve2vax commented on June 26, 2024 1

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.

Guenael avatar Guenael commented on June 26, 2024

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.

Guenael avatar Guenael commented on June 26, 2024

BTW, thx for reporting this issue.

from rtlsdr-wsprd.

Guenael avatar Guenael commented on June 26, 2024

Benchmark : https://www.raspberrypistarterkits.com/2016/03/04/raspberry-pi-3-pi-2-pi-b-benchmark-review/

from rtlsdr-wsprd.

sm3ulc avatar sm3ulc commented on June 26, 2024

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.

Guenael avatar Guenael commented on June 26, 2024

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, &param);

/* set the priority; others are unchanged */
param.sched_priority = newprio;

/* setting the new scheduling param */
ret = pthread_attr_setschedparam (&tattr, &param);

/* with new priority specified */
ret = pthread_create (&tid, &tattr, func, arg);

from rtlsdr-wsprd.

Guenael avatar Guenael commented on June 26, 2024

Hello,
Pthread priority added, but I have no RPi-1 to test this functionality.

from rtlsdr-wsprd.

Guenael avatar Guenael commented on June 26, 2024

Issue not solved, same problem reported (by VE2VAX)

from rtlsdr-wsprd.

ve2vax avatar ve2vax commented on June 26, 2024

The problem , happen when dec_options.subtraction is set =1

from rtlsdr-wsprd.

sm3ulc avatar sm3ulc commented on June 26, 2024

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.

Guenael avatar Guenael commented on June 26, 2024

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.

sm3ulc avatar sm3ulc commented on June 26, 2024

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.

sm3ulc avatar sm3ulc commented on June 26, 2024

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.

Guenael avatar Guenael commented on June 26, 2024

Hello,
I fixed a malloc bug present only with gcc5 (usually the case with Raspberrian).
Please retest. Thx.

from rtlsdr-wsprd.

Guenael avatar Guenael commented on June 26, 2024

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.

zodoczi avatar zodoczi commented on June 26, 2024

Hello,

I see the same problem, using RPi 3 with 2017-01-11-raspbian-jessie.img

73,
Zoltan

caught_signal_11.txt

from rtlsdr-wsprd.

rbw42 avatar rbw42 commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.