G2 Ultra front panel control for Thetis issue

G2 operating system and special app's (e.g. p2app) discussion only--post Thetis and piHPSDR questions in their own sub-forums
Post Reply
EA2K
Posts: 8
Joined: Sat Apr 16, 2022 8:40 pm

G2 Ultra front panel control for Thetis issue

Post by EA2K »

Hello,

I received the G2 Ultra a few days ago. I'm trying running Thetis getting the panel front knobs control of the G2 but it doesn't work.
Acording the last manual I run "p2app -p" and in Thetis is set on the TCP/IP CAT computer IP, port 13013, and in Andromeda tab enables G2 Panel.

When I run "p2app -p" I see a error in I2C : error on i2c byte read, code=-121, no front panel found.
I checked the I2C interface, and it is enable on the system.
I think the issue is in p2app side, not in the Thetis, any suggestion about the cause of this error?
Attached is the screenshot starting "p2app -p"

Regards
Jose
Attachments
WhatsApp Image 2024-09-20 at 21.17.30.jpeg
WhatsApp Image 2024-09-20 at 21.17.30.jpeg (230.76 KiB) Viewed 5653 times
laurencebarker
Posts: 313
Joined: Mon Nov 11, 2019 7:39 pm

Re: G2 Ultra front panel control for Thetis issue

Post by laurencebarker »

The i2c error is normal, because it is also checking for a mk1 G2 front panel. It detects which panel it has by: 1. does it find a specific i2c device; and b. Does it find a serial device.

The key issue here is: it subsequently reports no panel found. So it can't be finding the serial device.

Have you loaded the latest p2app (see the manual for information about how to download it)?

Does the panel with piHPSDR?

The issue may be, did it find the right serial device. We are aware that some serial device names change depending on the version of the operating system. We might need to add an initialisation file so that parameters including the serial port name can be set by the factory. But that would need to wait until after I'm back from hoilday.
Laurence Barker G8NJJ
EA2K
Posts: 8
Joined: Sat Apr 16, 2022 8:40 pm

Re: G2 Ultra front panel control for Thetis issue

Post by EA2K »

Thank you Laurence for the suggestions, I fixed the issue. I have the G2 Ultra only one week ago, and it cames with the last P2app version V27 which is the current last version.
I forced the upgrade and downloaded again the V27, now the front panel is detected and works fine with Thetis.
If someone who has recently received the G2 Ultra has the same problem I suggest updating P2app even if it is the same version V27.

cd ~/github/Saturn/sw_projects/P2_app
make clean
cd ~/github/Saturn/sw_projects/audiotest
make clean
cd ~/github/Saturn
git pull
cd sw_projects/P2_app
make
cd ../audiotest
make

In the attached image the I2C error is no longer displayed, and the Arduino + G2V2 front panel are detected.

And my next step is upgrade the FPGA firmware, my G2 Ultra came with the V10 and currently is the V17.

73 Jose
Attachments
WhatsApp Image 2024-09-21 at 18.10.09.jpeg
WhatsApp Image 2024-09-21 at 18.10.09.jpeg (216.09 KiB) Viewed 5571 times
User avatar
F6IES
Posts: 19
Joined: Sun Dec 02, 2018 8:27 am
Location: GUILHERAND-GRANGES FRANCE

Re: G2 Ultra front panel control for Thetis issue

Post by F6IES »

FRONT PANEL CONTROL WITH THETIS NOT WORKING [highlight=][/highlight]
Dear ALL
I write on the forum managed by Laurence
on the advice of DOUG W5WC who helped me greatly solving communications problem and get my ANAN G2 running /


I have received the brand new ANAN G2 Utra with front panel version V2 last week .

I have FGPA Firmware 19 installed and version 36 of P2app Build date Feb 3 2025
I run the ANAN G2 With Thetis 2.10.3.7 x64 ( Protocol 2) using Ethernet connected to same router as the PC for the moment.
I have done all the steps in the ANAN G2 Manual to enable the G2 V2 control panel sync with Thetis
And I started P2app using the p2app -p command
The Terminal window shows the following messages :

[highlight=]///...
Calculating new CW ramp, lenght = 9000 µs
Control panel enabled

Checking for G2V2 or G2V1 adapter
Started check for activity thread, pid=3527
table access identifies device /dev/serial/by-id/g2-front-9600
Setting up CAT serial read handler thread for device G2V2 Panel, pid=3533
Found G2V2 panel, product ID=5; H/W verson = 2; S/W verson = 9
Found serial device interfaced panel
Initializing G2V2 panel handler
Spinning up Check For Exit thread, pid=3530
main: interface name: eth0
spinning up DDC specific thread with port 1025, pid=3531[/highlight]
.......//////
So it looks like success , but If i move the knobs on the ANAN G2 front panel , nothing at all happens on the Thetis .

I would appreciate some help in solving this ....

Best kind regards to all
Pierre F6IES ( France)
User avatar
F6IES
Posts: 19
Joined: Sun Dec 02, 2018 8:27 am
Location: GUILHERAND-GRANGES FRANCE

Re: G2 Ultra front panel control for Thetis issue

Post by F6IES »

SOLVED THE PROBLEM OF CONTROL PANEL WITH THETIS

Hello
I solved the problem by making the <P2app -p> command part of the Autostart

First : Power on the ANAN G2 system until the desktop appears .
Launch the Terminal
You get to edit your autostart file by typing the command below which lauches the Sudo Geany editor :

sudo geany /etc/xdg/lxsession/LXDE-pi/autostart

Then you add line as follows to the bottom of file :

@/home/pi/github/Saturn/sw_projects/P2_app/p2app -p

And you save the file without changing the name

You exit the editor (x)
You power off the ANAN and reboot until the desktop shows up

You won't see the terminal but the P2app works in the background now

And if you performed all the steps indicated in the manual 4.2 , the panel will work and you won't have to type anything to start p2papp in the future !

You can exit p2papp by double clicking on the p2app Icon / There is a complicated process indicated in the Manual that does that better but you need to know the process number to kill it .... Any advice on making an icon on the desktop that will stop P2app will be appreciated !

Pierre F6IES
Post Reply

Return to “G2 Operating System & Applications”