G2 Wideband signal capture
-
- Posts: 302
- Joined: Mon Nov 11, 2019 7:39 pm
G2 Wideband signal capture
We have added wideband data capture into Saturn. The new V18 FPGA code is posted in github and as normal the p2app will need to be recompiled. The procedures are the same as normal.
To use it, simply open the wideband window in Thetis and you will see spectrum activity covering DC-61MHz.
Please regard this is a beta release at present. We think it has the same behaviour as other HPSDR radios, and it has been tested, but this is a function I've never been able to see work before!
To use it, simply open the wideband window in Thetis and you will see spectrum activity covering DC-61MHz.
Please regard this is a beta release at present. We think it has the same behaviour as other HPSDR radios, and it has been tested, but this is a function I've never been able to see work before!
Laurence Barker G8NJJ
Re: G2 Wideband signal capture
V18 incompatible?
After updating pihpsdr and Saturn (rrename V18 BIT file) and (updated p2app version number) I can no longer start pihpsdr.
With V17 pihpsdr runs, what should I do?




After updating pihpsdr and Saturn (rrename V18 BIT file) and (updated p2app version number) I can no longer start pihpsdr.
With V17 pihpsdr runs, what should I do?
Vy 73 Roger DL2YDP
-
- Posts: 302
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Wideband signal capture
piHPSDR will need to be recompiled for the new version. For a while that has had to happen for each change to the firmware, but we now have a way that this won't have to happen so often.
Laurence Barker G8NJJ
Re: G2 Wideband signal capture
laurencebarker wrote:piHPSDR will need to be recompiled for the new version. For a while that has had to happen for each change to the firmware, but we now have a way that this won't have to happen so often.
Pulled the latest version of pihpsdr, but still no fun

73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
Re: G2 Wideband signal capture
I have flashed the latest firmware (2023.11.23) from Christoph (DL1YCF)
and now the saturnprimary2024V18 works without me changing anything.
and now the saturnprimary2024V18 works without me changing anything.
Vy 73 Roger DL2YDP
Re: G2 Wideband signal capture
Roger GT wrote:I have flashed the latest firmware (2023.11.23) from Christoph (DL1YCF)
and now the saturnprimary2024V18 works without me changing anything.
Where can we find the special firmware? What is the difference to the V18 I got with todays Saturn update?
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
Re: G2 Wideband signal capture
Roger GT wrote:I have flashed the latest firmware (2023.11.23) from Christoph (DL1YCF)
and now the saturnprimary2024V18 works without me changing anything.
I have tried this, and I can not get it to work. Flashed it with the V18 firmware and re-compiled the pihpsdr code from Christoph, but still not working. Also upgraded P2_app.
If I go back to firmware v17, everything is fine.
John
N2KBE
Re: G2 Wideband signal capture
Norbert, at DL1YCF on the Github site. Look in the 'scr' folder where it says > Removed some un-unsed functions from SATURN code<.
I loaded the firmware and then continued... as usual with 'make clean' and 'make'.
I loaded the firmware and then continued... as usual with 'make clean' and 'make'.
Vy 73 Roger DL2YDP
Re: G2 Wideband signal capture
Laurence,
Thank you so much. I updated the firmware and P2app and the wide band display is working great. Thanks again for taking the time to add this feature to ]he G2.
Thank you so much. I updated the firmware and P2app and the wide band display is working great. Thanks again for taking the time to add this feature to ]he G2.
Rob
K1SR
K1SR
Re: G2 Wideband signal capture
laurencebarker wrote:We have added wideband data capture into Saturn. The new V18 FPGA code is posted in github and as normal the p2app will need to be recompiled. The procedures are the same as normal.
To use it, simply open the wideband window in Thetis and you will see spectrum activity covering DC-61MHz.
Please regard this is a beta release at present. We think it has the same behaviour as other HPSDR radios, and it has been tested, but this is a function I've never been able to see work before!
I tried to update my P2app, after running make I get the following error message:
Just the last part copied here
/ common/version.c: In function 'IsFallbackConfig':
/ common/version.c:98:8: warning: unused variable 'SWString' [-Wunused-variable] char* SWString;
•/ common/version,c:97:8: warning: unused variable 'ProdString' [-Wunused-variable] char* ProdString;
/ common/version, c:95:11: warning: unused variable 'Cntr' [-Wunused-variable]
uint32_t Cntr;
• ./ common/version. c:94:11: warning: variable 'ClockInfo' set but not used [-Wunused-but-set-variable] uint32_t ClockInfo;
// clock status
.. / conmon/version.c:93:11: warning: variable 'ProdVer' set but not used [-Wunused-but-set-variahte]
uint32_t ProdVer, ProdID;
product version and id
•./common/version.c:92:11: warning: variable 'SWVer' set but not used [-Wunused-but-set-variable]
uint32_t SWVer, SWID;
// sw version and id
Anneth
• / common/version.c:90:11: warning: variable 'DateCode' set but not used [-Wunused-but-set-variable] uint32_t DateCode;
date code from user register in FPGA
gce -o pzapp pzapp.o hwaccess,o saturnregisters, codecwrite.o saturndrivers.o version.o generalpacket. IncomingDDSpecific.o IncomingDUCSpecific. InHighPriority o InDUCIQ.0 InSpkrAudio, OutMicAudio. OutDDCIQ.0 OutHighPriority o debugaids. o auxadc
•o cathandler, frontpanelhandler, catmessages, o g2panel. LDGATU, g2v2panel. i2cdriver. -m - Ipthread -lgpiod - Lizc
/usr/bin/ld; generalpacket,o; in function 'HandleGeneralPacket':
/home/pi/github/Saturn/sw_projects/P2_app/generalpacket.c:75: undefined reference to 'SetWidebandSamplesize'
/us/bin/ld; /home/pi/github/Saturn/sw_projects/P2_app/generalpacket.c:79; undefined reference to SetwidebandPacketsPerFrame' collect2; error; ld returned 1 exit status make: *** [Makefile:20; all] Error 1
pi@raspberrypi:-/github/Saturn/sw_projects/P2_app S
Any suggestions on how to proceed from here, on the last P2app update I noticed that the version never updated past 25 although the build date had updated.
Thanks
-
- Posts: 302
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Wideband signal capture
If I had to guess, you only have some of the code pulled from git. I don't instantly know why. It looks like you have an early commit from the Wideband branch, not the newest code from the Main branch.
cd github/Saturn
git status
should report "on branch main", "you are up to date with origin/main"
if not:
git checkout main
git pull
and try rebuilding again
git is a fiendishly complicated tool and I can only access 1% of it. Others may know more!
cd github/Saturn
git status
should report "on branch main", "you are up to date with origin/main"
if not:
git checkout main
git pull
and try rebuilding again
git is a fiendishly complicated tool and I can only access 1% of it. Others may know more!
Laurence Barker G8NJJ
Re: G2 Wideband signal capture
laurencebarker wrote:If I had to guess, you only have some of the code pulled from git. I don't instantly know why. It looks like you have an early commit from the Wideband branch, not the newest code from the Main branch.
cd github/Saturn
git status
should report "on branch main", "you are up to date with origin/main"
if not:
git checkout main
git pull
and try rebuilding again
git is a fiendishly complicated tool and I can only access 1% of it. Others may know more!
This is what git status says:
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add/rm «file>..." to update what will be committed) (use "git checkout .. «file>..." to discard changes in working
modified:
Linusdriver/toots/ama_from device
modified:
Linuxdriver/tools dma to _device
modified:
Linuxdriver/tools performance
modified:
Linudriver/tools reg_
modified:
linuxdriver/toolsuserio_r
modified:
sw_projects/P2_app/.vscode/settings.json
modified:
sw_projects/P2_app/InDucIQ.e
modified:
sw_projects/P2_app/InSpkrAudio,c
modified:
sw_projects/P2_app/IncamingDuCSpecific.c
modified:
sw_projects/P2_app/Makefile
modified:
sw_projects/P2_app/OutDDCIQ,C
modified:
sw_projects/P2_app/OutHighPriority.c
modified:
sw_projects/P2_app/OutMicAudio.c
deleted:
sw_projects/P2_app/Outwideband.c
deleted:
sw_projects/P2_app/Outwideband.h
deleted:
sw_projects/P2_app/andromedacatmessages.c
de leted:
sw_projects/P2_app/andromedacatmessages.h
modified:
sh_projects/P2_app/cathandler.c
modified:
sk_projects/P2_app/cathandler.h
modified:
sw_projects/P2_app/catmessages.e
modified;
sw_projects/P2_app/catmessages.h
modified;
sh_projects/ez_app/frontpanelhandler.
modified:
sw_projects/P2_app/g2panel.c
modified:
sw_projects/P2_app/g2panel.h
modified:
sw_projects/P2_app/g2v2panel.c
modified:
sw_projects/P2_app/g2v2panel.h
deleted:
sw_projects/P2_app/g2v2panel_i2c.c
deleted:
sw_projects/P2_app/g2v2panel_i2c.h
modified:
sw_projects/P2_app/generalpacket.c
modified:
sw_projects/P2_app/i2cdriver.c
modified:
sw_projects/P2_app/i2cdriver.h
modified:
sw_projects/P2_app/p2app.c
modified:
sw_projects/P2_app/threaddata.h
Untracked files:
(use"git add ‹file›..." to include in what will be committed)
sw_projects/P2_app/cathandler.c1
sw_projects/P2_app/cathandler.h1
sw_projects/P2_app/threaddata.hx
sw_projects/P2_appver19/
no changes added to commit (use "git add"
and/or "git commit -a")
pa@raspberrypis-/github/Saturn $
-
- Posts: 302
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Wideband signal capture
That is telling you that just about all of the source files in p2app have been changed from the version that is the most recent. I have no idea why.
My only idea of a way forward is:
1. make a copy of all of the files in github/Saturn onto a memory stick, so you can go back. Use the file browser to do that.
2. remove all the files from the P2app folder
cd github/Saturn/sw_projects/P2_app
rm *
3. do another git pull to get the correct files back.
cd ~/github/Saturn
git pull
There may be much better ways to do this with git reset, but I don't know what they are.
My only idea of a way forward is:
1. make a copy of all of the files in github/Saturn onto a memory stick, so you can go back. Use the file browser to do that.
2. remove all the files from the P2app folder
cd github/Saturn/sw_projects/P2_app
rm *
3. do another git pull to get the correct files back.
cd ~/github/Saturn
git pull
There may be much better ways to do this with git reset, but I don't know what they are.
Laurence Barker G8NJJ
-
- Posts: 302
- Joined: Mon Nov 11, 2019 7:39 pm
Re: G2 Wideband signal capture
you also seem to have a file sw_projects/P2_appver19/
That is not a file that would exist anywhere in the respository. Have you renamed or copied anything?
That is not a file that would exist anywhere in the respository. Have you renamed or copied anything?
Laurence Barker G8NJJ
Re: G2 Wideband signal capture
laurencebarker wrote:That is telling you that just about all of the source files in p2app have been changed from the version that is the most recent. I have no idea why.
My only idea of a way forward is:
1. make a copy of all of the files in github/Saturn onto a memory stick, so you can go back. Use the file browser to do that.
2. remove all the files from the P2app folder
cd github/Saturn/sw_projects/P2_app
rm *
3. do another git pull to get the correct files back.
cd ~/github/Saturn
git pull
Ok I’ve moved everything to a memory stick, removed everything from the P2-app, did the git pull. The p2_app is still empty, did I miss a step to repopulate?
There may be much better ways to do this with git reset, but I don't know what they are.
Re: G2 Wideband signal capture
I can confirm that pihpsdr and Thetis now works with the V18 firmware, Christoph corrected the issue with pihpsdr. Wide Band is only available on Thetis so far, but at least one can run either pihpsdr or Thetis on the V18 firmware.
73
John
N2KBE
73
John
N2KBE
Re: G2 Wideband signal capture
laurencebarker wrote:you also seem to have a file sw_projects/P2_appver19/
That is not a file that would exist anywhere in the respository. Have you renamed or copied anything?
Yes I have copied every p2_app after each update and moved to Document folder in the case I have issues with the update. Maybe this is what I’ve done that has caused the issues I am currently experiencing?
Re: G2 Wideband signal capture
laurencebarker wrote:That is telling you that just about all of the source files in p2app have been changed from the version that is the most recent. I have no idea why.
My only idea of a way forward is:
1. make a copy of all of the files in github/Saturn onto a memory stick, so you can go back. Use the file browser to do that.
2. remove all the files from the P2app folder
cd github/Saturn/sw_projects/P2_app
rm *
3. do another git pull to get the correct files back.
cd ~/github/Saturn
git pull
There may be much better ways to do this with git reset, but I don't know what they are.
pi@raspberrypi:~/github/Saturn
$ cd ~/github/Saturn
pi@raspberrypi:»/github/Saturn $
git pull
Already up to date. pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app pi@raspberrypi:~/github/Saturn/sw_projects/P2_app S
make
make: *** No targets specified and no makefile found.
Stop.
This is what I am getting when I try.
Thanks John
Re: G2 Wideband signal capture
Hi John,
Try going to your P2_app directory:
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
and type this:
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout .
You should see the files restored and you should be able to do a make
-Rick / N1GP
Try going to your P2_app directory:
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
and type this:
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout .
You should see the files restored and you should be able to do a make
-Rick / N1GP
Re: G2 Wideband signal capture
n1gp wrote:Hi John,
Try going to your P2_app directory:
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
and type this:
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout .
You should see the files restored and you should be able to do a make
-Rick / N1GP
Thanks Rick
Here is what I see and get:
pi@raspberrypi:~cd ~/github/Saturn
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout
M
linuxdriver/tools/dma_from_device
Linuxdriver/tools/dma_to_device
linuxdriver/tools/performance
linuxdriver/tools/reg_rw
linuxdriver/tools/userio_rw
sw_projects/P2_app/•vscode/settings.json
D
sw_projects/P2_app/InDUC1Q.C
sw_projects/P2_app/InDUCIQ.h
sw_projects/P2_app/InHighPriority.c
sw_projects/P2_app/InHighPriority.h
sw_projects/P2_app/InSpkrAudio. c
sw_projects/P2_app/InSpkrAudio.h
sw_projects/P2_app/IncomingDDCSpecific.c
sw_projects/P2_app/IncomingDDCSpecific.h
sw_projects/P2_app/IncomingDUCSpecific.c
sw_projects/P2_app/IncomingDUCSpecific.h
sw_projects/P2_app/LDGATU.C
sw_projects/P2_app/LDGATU.h
sw_projects/P2_app/Makefile
sw_projects/P2_app/OutDDC1Q. C
sw_projects/P2_app/OutDDCIQ.h
sw_projects/P2_app/OutHighPriority. c
sw_projects/P2_app/OutHighPriority.h
sw_projects/P2_app/OutMicAudio.c
sw_projects/P2_app/OutMicAudio.h
sw_projects/P2_app/Outwideband. c
sw_projects/P2_app/Outwideband.h
sw_projects/P2_app/andromedacatmessages. c
sw_projects/P2_app/cathandler.c
sw_projects/P2_app/cathandler.h
sw_projects/P2_app/catmessages.c
sw_projects/P2_app/catmessages.h
sw_projects/P2_app/frontpanelhandler.c
sw_projects/P2_app/frontpanelhandler.h
sw_projects/P2_app/g2panel.c
sw_projects/P2_app/g2panel.h
sw_projects/P2_app/g2v2panel.c
sw_projects/P2_app/g2v2panel.h
sw_projects/P2_app/g2v2panel_i2c. c
sw_projects/P2_app/g2v2panel_i2c.h
sw_projects/P2_app/generalpacket.c
sw_projects/P2_app/generalpacket.h
sw_projects/P2_app/i2cdriver.c
sw_ projects/P2_app/12cdriver.h
sw_projects/P2_app/p2app.c
sw_projects/P2_app/threaddata.h
Your branch is up to date with 'origin/main'.
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app S make
make: *** No targets specified and no makefile found.
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $
stop.
Thanks again Rick and Laurence for all y’all’s patience and continued help.
73 John
Re: G2 Wideband signal capture
Yesterday I manually downloaded the files and placed into the P2_app file.
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ make
make: *** No targets specified and no makefile found.
Stop.
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $
Any guidance moving forward? Should I try flashing a new SD card image? I downloaded and saved the file that was posted back on April 29th in the G2 Software Update thread by Tony of the image of SD card for G2 with display , the link is no longer any good now but hopefully the files is still good.
Thanks
pi@raspberrypi:~/github/Saturn $ cd sw_projects/P2_app
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ make
make: *** No targets specified and no makefile found.
Stop.
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $
Any guidance moving forward? Should I try flashing a new SD card image? I downloaded and saved the file that was posted back on April 29th in the G2 Software Update thread by Tony of the image of SD card for G2 with display , the link is no longer any good now but hopefully the files is still good.
Thanks
Re: G2 Wideband signal capture
John,
There are some strange and unexpected characters in your logs that
you paste. Maybe it's just errors in the copy and paste.
Like where is the M and the D coming from
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout
M
sw_projects/P2_app/•vscode/settings.json
D
Also the 1 in 12cdriver.h should be an i
That may be a sign of a bad SDCard or image on SDCard. If you have
another SDCard > 16GB try burning the factory image on that and
using it. If not maybe try to copy the factory image on to what you have.
Actually before you do that, I'd like to see what an 'ls -l' output looks like
from pi@raspberrypi:~/github/Saturn/sw_projects/P2_app
Are there files in there and more specifically is there a Makefile file in there?
-Rick / N1GP
There are some strange and unexpected characters in your logs that
you paste. Maybe it's just errors in the copy and paste.
Like where is the M and the D coming from
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout
M
sw_projects/P2_app/•vscode/settings.json
D
Also the 1 in 12cdriver.h should be an i
That may be a sign of a bad SDCard or image on SDCard. If you have
another SDCard > 16GB try burning the factory image on that and
using it. If not maybe try to copy the factory image on to what you have.
Actually before you do that, I'd like to see what an 'ls -l' output looks like
from pi@raspberrypi:~/github/Saturn/sw_projects/P2_app
Are there files in there and more specifically is there a Makefile file in there?
-Rick / N1GP
Re: G2 Wideband signal capture
n1gp wrote:John,
There are some strange and unexpected characters in your logs that
you paste. Maybe it's just errors in the copy and paste.
Like where is the M and the D coming from
pi@raspberrypi:~/github/Saturn/sw_projects/P2_app $ git checkout
M
sw_projects/P2_app/•vscode/settings.json
D
Also the 1 in 12cdriver.h should be an i
That may be a sign of a bad SDCard or image on SDCard. If you have
another SDCard > 16GB try burning the factory image on that and
using it. If not maybe try to copy the factory image on to what you have.
Actually before you do that, I'd like to see what an 'ls -l' output looks like
from pi@raspberrypi:~/github/Saturn/sw_projects/P2_app
Are there files in there and more specifically is there a Makefile file in there?
-Rick / N1GP
I’m pretty sure the unexpected charters are from copying from a iPhone picture, sorry about that.
To answer your question about the Makefike, after I followed the instructions:
Cd githun/Saturn/sw_projects/P2_app
Rm *
The p2_app folder was empty, after a git pull it was still empty.
After the git checkout
It was still empty.
I downloaded them from github and placed them in the P2_app they were there and was a Makefile. I’m not fluent enough in Linux to know if downloading the files and placing them in the file would work or not. I’ll try and see if I can attach the photos that didn’t copy and paste very well.
- Attachments
-
- IMG_6342.jpeg (2.89 MiB) Viewed 8120 times
-
- IMG_6341.jpeg (2.84 MiB) Viewed 8120 times
Re: G2 Wideband signal capture
When you: cd sw_projects/P2_app
Instead of typing: git checkout
type: git checkout .
There is a space and a period after the word checkout
Instead of typing: git checkout
type: git checkout .
There is a space and a period after the word checkout
Re: G2 Wideband signal capture
n1gp wrote:When you: cd sw_projects/P2_app
Instead of typing: git checkout
type: git checkout .
There is a space and a period after the word checkout
That was it!
Thank you Rick!
- Attachments
-
- IMG_6704.png (14.04 MiB) Viewed 7968 times