Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDRberry #37

Open
Marc1950 opened this issue Jan 21, 2025 · 62 comments
Open

SDRberry #37

Marc1950 opened this issue Jan 21, 2025 · 62 comments

Comments

@Marc1950
Copy link

Hello I installed SDR berry for a RadioBerry and I get as in the photo at startup.
My screen is a 7 inch resolution 1024x600.
73 by Marc F6gkg

Image

@paulh002
Copy link
Owner

Oh no, that number is not in the list :) I can add it. I will give you an update. Also check the wiki there i explain the resolution settings

@Marc1950
Copy link
Author

Marc1950 commented Jan 21, 2025 via email

@paulh002
Copy link
Owner

paulh002 commented Jan 21, 2025 via email

@Marc1950
Copy link
Author

Marc1950 commented Jan 21, 2025 via email

@Marc1950
Copy link
Author

Hello Paul
Here is some information about my screen.
https://52pi.com/collections/lcds-displays/products/7-inch-1024x600-60hz-ips-capacitive-touch-screen-with-speakers-for-raspberry-pi-windows-pc
The Wiki:
https://wiki.52pi.com/index.php?title=EP-0177
Mine has the ref EP-0178 which I could not find on their site.
It was purchased on Amazon.
Marc

@paulh002
Copy link
Owner

paulh002 commented Jan 22, 2025

Hi, I added the resolution. You can give it a try. Pull the update from git and recompile with:

cd sdrberry
git pull
cd build
cmake ..
make -j4
sudo make install

Make sure to set the resolution in sdrbery_config.cfg to 3 (see the wiki for more details)

[screen]
resolution = "2"

73,
Paul

@Marc1950
Copy link
Author

Hello Paul
Ok received, just one question:
I don't have a sdrberry_config.cfg file but two sdrberry_settings.cfg one in my personal folder and the other in pi and they are pretty much identical.
In which one must be modified.
73 marc

@paulh002
Copy link
Owner

paulh002 commented Jan 23, 2025

You're right it is sdrberry_settings.cfg. You need to change the sdrberry_settings.cfg in the startup directory mostly that is /home/pi. If you have used sdrberry before better to copy the .cfg file from the install directory (based on the sdr you use). Or delete the file and edit after you have started sdrberry. It will create a new file.

Which SDR are you using?

@Marc1950
Copy link
Author

Ok thanks for the info.
I use a Radioberry with SDRberry Touch2, later I will try a HackRF
73

@paulh002
Copy link
Owner

Ok, please check the wiki for hackrf details
https://github.com/paulh002/sdrberry/wiki/hackrf

@Marc1950
Copy link
Author

Hello Paul
Modifying the file in home /pi does not change anything here.
I had to modify the one in home/personal directory.
Here is the photo below.

For the Touch 2 version I can't see the photo either.

Image
Image

@paulh002
Copy link
Owner

That is ok, the settings file is loaded in the working directory of the user. So I think you made the correct change.
What is the issue with touch 2? I don't understand

@Marc1950
Copy link
Author

see second picture
Something is wrong with the screen setting.

@paulh002
Copy link
Owner

Is that a different display?

@paulh002
Copy link
Owner

You can change the resolution to match the display resolution as described in the wiki

@Marc1950
Copy link
Author

No it's the same hardware.
I have two SD cards with each of the two versions

@Marc1950
Copy link
Author

Changing the resolution doesn't change anything.

@paulh002
Copy link
Owner

Delete or rename all the sdrberry_settings.cfg files and start sdrberry. It will create a new settings file. Edit this file with
[screen]
resolution = 2

check the logfile it should show the resolution when sdrberry starts

sdrberry > log.txt

@paulh002
Copy link
Owner

I think I understand now what is happening.
Did you install radioberry with Touch 2 option?

If so, than you have installed the wrong display. Touch 2 is the new raspberry pi official display.
Touch 2 is a 32 bit color display. I think your display does not support that.

You have to reinstall using the install script in a clean SD card the normal version
./install.sh RDB DSI

@Marc1950
Copy link
Author

OK yes you are right, thanks for the info, I know what Touch 2 means now. It doesn't matter I will use the other one.
I have to look now for the touch keys they do not work or very badly.
73 by Marc F6GKG

@paulh002
Copy link
Owner

Check the wiki https://github.com/paulh002/sdrberry/wiki/Input-devices you can configure the touchscreen rotation

@Marc1950
Copy link
Author

Hello Paul
SDRberry works very well except the touch screen.
I tried all the settings in the file..cfg according to the Wiki nothing works. Except randomly on position 2.
On the wiki on the line touchscreen = "raspberrypi-ts"
And me on my file touchscreen = "ft5x06"
I did not try to modify.
73

@paulh002
Copy link
Owner

paulh002 commented Jan 26, 2025 via email

@paulh002
Copy link
Owner

I added some print statments to the touch interface in the build branch.
To check the touch interface , you can do the following:

1 set touch_swap_xy = "0" in sdrberry_settings.cfg
2 build and install the build branch:

cd sdrberry
git pull
git switch build
cd build
cmake ..
make -j4
sudo make install
cd ~
sdrberry

Check the output of sdrberry log, and see what coordinate the left, top of the touch screen gives

@Marc1950
Copy link
Author

Marc1950 commented Jan 26, 2025 via email

@Marc1950
Copy link
Author

I followed your instructions but unfortunately I did not find any log file concerning sdrberry.
At the end of the command script the Rapsberry reboots.
And in the console I have this

Image

:

@paulh002
Copy link
Owner

paulh002 commented Jan 26, 2025 via email

@Marc1950
Copy link
Author

Hello Paul
I'm sorry I don't understand the procedure to follow, you should give me more details.
However, by dint of trying a file it is created in my personal directory.
maybe it is enough for you. here in attachment

log.txt

@paulh002
Copy link
Owner

Ok, this is the correct file
The touch interface is selected

The framebuffer device was mapped to memory successfully.
Input device name: "ILITEK ILITEK-TOUCH"
Touch device name: "ILITEK ILITEK-TOUCH"

Did you check the touch interface is working and did you need to rotate the touch interface when you install Raspi OS?
So if you do a normal installation of the rapberry pi, and you get the standard desktop. Is everything working normal?

@Marc1950
Copy link
Author

No I don't need to rotate the screen when I install the Raspi OS.
When I switch back to desktop mode the touchscreen also works fine.

@paulh002
Copy link
Owner

So in sdrberry_settings.cfg, you only set the resolution. No screen rotation?

@paulh002
Copy link
Owner

Can you share the output of this command?

cat /proc/bus/input/devices

@Marc1950
Copy link
Author

In home/pi/sdrberry_settings.cfg it's already at 0
[screen]
resolution = 0
rotation = 0
And in home/personal folder/sdrberry_settings.cfg there is only:
[screen]
resolution = "2"

@Marc1950
Copy link
Author

sdrberry.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 27, 2025 via email

@paulh002
Copy link
Owner

Can we try again to use the build version?

cd sdrberry
git pull
git switch build
rm -rf build
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd /home/personal folder/
sdrberry > log.txt

Then touch the screen, left upper corner.
And check / send the log.txt file

@paulh002
Copy link
Owner

Other option is to check the touch screen with evtest

sudo apt install -y evtest
sudo evtest

Select the touch screen number, and touch the screen
Please share the output

@Marc1950
Copy link
Author

Marc1950 commented Jan 27, 2025 via email

@Marc1950
Copy link
Author

Hello Paul
To answer your question I start SdrBerry in console mode
and the command "sudo /usr/local/bin/sdrberry >/dev/null 2>&1" when the problem is solved I will try the automatic mode.
You will find the log file attached.

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025

It looks like x and y coordinates of the touch interface are swapped. The y coordinate is clipping at 599.
Can you set in sdrberry_settings.cfg the touch_swap_xy = 1 ?

[input]
touch_swap_xy = 1

and send the log.txt again?

@Marc1950
Copy link
Author

here is

log.txt

@paulh002
Copy link
Owner

The x and y coordinates are now within the correct range. Question now is if the zero point (0,0) is in the right corner.
Can you touch only the left upper conner? And check the output or send it?

@Marc1950
Copy link
Author

here is

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025

Ok, the x and y is also mirrored.
I added an extra translation to the touch interface.
Can you get the latest build version?
And set touch_swap = 4

[input]
touch_swap_xy = 4
cd sdrberry
git pull
git switch build
rm -rf build
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd /home/personal folder/
sdrberry > log.txt

@Marc1950
Copy link
Author

That's it, but the touchscreen still doesn't work.
The log file is attached

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025 via email

@Marc1950
Copy link
Author

I forgot to indicate the path of the SdrBerry folder.
I resend the file.

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025 via email

@Marc1950
Copy link
Author

I did

cd sdrberry
git pull
git switch build
rm -rf build
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd /home/personal folder/
sdrberry > log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025 via email

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025 via email

@Marc1950
Copy link
Author

Yes

[input]
mouse = "Mouse"
touch_swap_xy = "4"
touchscreen = "ft5x06"

@Marc1950
Copy link
Author

The build ends this way

Image

And the SDRBERRY starts

@Marc1950
Copy link
Author

Here is the latest file
Something has changed

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 28, 2025 via email

@paulh002
Copy link
Owner

I updated sdrberry to check if an instance is already running. All changes are now available with normal installation. Best to reinstall. Or do a pull and rebuild.

@Marc1950
Copy link
Author

I chose the reinstallation but unfortunately stopped at the beginning.

./install.sh: line 89: cd: liquid-dsp: No such file or folder
marc@raspberrypi:~ $

@paulh002
Copy link
Owner

paulh002 commented Jan 29, 2025 via email

@Marc1950
Copy link
Author

Here is Sdr Berry installed. Sorry for the inconvenience I had not given all the permissions to the pi directory.
I set input to 4 and screen to 2.
log file attached

log.txt

@paulh002
Copy link
Owner

paulh002 commented Jan 29, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants