paulh002 / sdrberry

Raspberry pi SDR tranceiver using lvgl gui
GNU General Public License v3.0
53 stars 6 forks source link

launch sdrberry with hackrf One #12

Closed Montilien closed 1 year ago

Montilien commented 2 years ago

Hi Paul I try to launch sdrberry with hackrf one but without success. PothosSDR module is intalled, hackrf too, Hackrf is declared inside .cfg file but when I launch sdrberry process is blocked with line "start AMDemodulator" and nothing more happen. What I have missed???? My config is last Bullseye OS on RPi 4 2Go. PS: when I try to launch sdrberry with default .cfg file sdr screen appears but I can do nothing because no radioberry module is connected.

paulh002 commented 2 years ago

Hi, In the cfg file set the default radio to hackrf, then it will start wit hackrf reveiver. Also add samplerate to hackrf entry see example below. The config file was updated. I will add a hackrf version to the repo.

Check if hackrf soapysdr is available with SoapySDRUtil --info Or test with SoapySDRUtil --probe="driver=hackrf"

[SDR Receivers] default = "hackrf" receivers = {"radioberry", "plutosdr", "rtlsdr", "sdrplay", "hackrf"}

[hackrf] bandwidth = "1750000" gain = "50" if-gain = "10" samplerate="1000" samplerate_tx="1000" span="192"

Montilien commented 2 years ago

Thanks for your quick reply. sdrberry is launching now but it leave an "log windows" on the upper left of the screen. So I have 2 questions:

paulh002 commented 2 years ago

You can hide log window when you start with: sdrberry > /dev/null 2>&1 & it will start sdrberry as background process, you can make a script and call it from crontab to enable autostart.

There are some alternatives to the esp32 one is "The Contour ShuttleXpress" cost about 50 Euro and is normally used for video editing. Another alternative is Midi controller but I did not implement it yet (parts are there but until now I did not finished it). Also I used a mouse wheel for tuning as a simple fallback. But if you have a suggestion please let me know.

Montilien commented 1 year ago

Hi Paul Yes I can now launch sdrberry without log windows and change frequency with a USB mouse(digit by digit). but after 2-3 minutes, the screen freeze and I must stop sdrberry, reboot the pi4 and restart sdrberry. My OS is the last bullseye 64bits and all cords and sdr radio(hackrf) are new. May be the 32 bits distro would be more stable????

paulh002 commented 1 year ago

Hi,

You can use the mouse button, to increase / decrease the scroll speed. The freeze after 2 - 3 minutes I have to test. I will setup a pi4 with the same setup. Did not test a hack-rf for some time. So a bug is possible. 64 bits should be OK, I also run it with 64 bits. One thing to check is the power supply, it should be a powerful one, same applies to the cords my experience is to use quality cords. Simple USB power supplies are not able to power the pi with a sdr like the hack-rf correctly and can create all kind of issues. What can be of help is to capture the logfile start sdrberry with "sdrberry > sdr.log" and share, the tail of the file here so I can maybe see where it goes wrong. I will post a message here after I have tested the hack-rf. Please also specify frequency and modulation type used when sdrberry frooze

paulh002 commented 1 year ago

Hi,

I have setup a raspberry pi4 with hack-rf, installed 64 bit OS, upgrade the os and switched it to cli only. installed sdrberry with all components, installed hack rf (sudo install hackrf libhackrfdev )and SoapyHackrf I also upgraded the hackrf firmware to the latest version. Sdrberry runs without issues for a long time. So I cannot replicate the issue currently. One tip I can give is not to use SD cards, but a quality USB stick like Samsung Fit Plus 64GB these work without any problem for a long time.

paulh002 commented 1 year ago

an update, i have found some issue with cmake compiling. I use visualstudio to compile the code, cmake is only used for distribution. But there seem to be some difference between the output of the two which can cause unexpected behaviour. Will try to fix it. I attached the output of visualstuido, maybe you can try that one to see if it is better sdrberry.zip

Montilien commented 1 year ago

Hi Paul I have powered the pi4 from a 5.1volts -5A power supply and the problem is the same....For more information I give you the log file recording from launching to crash. log.txt

Montilien commented 1 year ago

Hi Paul, I have tried to re-install sdrberry, but I got errors when I try compiling Pothosware /hackrf module. I am not familiar with visualstudio, so i will wait fixing of this issue for later. Thanks for your responses and your time regards F1FHK

paulh002 commented 1 year ago

Hi, I added a script for hackrf installation, but there were some errors in it which I now fixed. The installation should work now. I will test the hackrf for a while and see if I can replicate the issue. I see some other issues that need to be fixed will do that in the process. Thanks for your interest. I will put a message here when I get some progress.

73, Paul

Montilien commented 1 year ago

Hi Paul, can you say to me if ican use the file install_hackrf.sh for a no error installation on a raspberry pi 4 running Bullseye 64 bits OS? 73 F1FHK

paulh002 commented 1 year ago

Yes, that should work. I fixed several issues and the several libraries used are updated. So best use a clean updated image. But I still encounter one issue with the hack RF that looks a bit like a hackrf firmware issue, that it stops sending data. I don't have such an issue with other SDR's like sdrplay or pluto . Also depending on your display you have to set the framebuffer to 16 in config.txt

73, Paul