Remote Transceiver Web App

486 views
Skip to first unread message

Radioberry

unread,
Feb 28, 2022, 2:48:58 PM2/28/22
to Radioberry
Hi All,

I created an application to make use of your SDR radio over the internet in a remote mode.

Please see the attached pdf and the link to retrieve the application.


Have fun

73 Johan
PA3GSB
Remote Transceiver.pdf

G4ZAL

unread,
Mar 2, 2022, 1:08:01 PM3/2/22
to Radioberry
Hi Johan,

I'm interested to try this and reading the pdf file, is it a *must* that the apache-tomee server is installed on the actual physical R-Pi that has the RB 'hat' plugged into it?
In the pdf instructions, it says " Connect the HL to the RPI. "
This suggests the server could be on another R-Pi/Linux box and "connected" to the RB/HL (over the LAN by IP address)?
If that is correct, what to edit in the apache-tomee server config to make the IP connection from R-Pi-server to the physical HL/RB?

It would be interesting to run the server on a stand-alone machine as I have a RB and an HL2 on protocol 1.

73
Nigel, G4ZAL

Radioberry

unread,
Mar 2, 2022, 3:28:24 PM3/2/22
to Radioberry
Nigel,

It supports hermeslite and radioberry; there is no need to run the server on the same RPI the radioberry is plugged in.

73 Johan
PA3GSB

Op woensdag 2 maart 2022 om 19:08:01 UTC+1 schreef G4ZAL:

Karl Heinz Kremer

unread,
Mar 2, 2022, 3:52:53 PM3/2/22
to Radioberry
Johan, 
thank you for releasing this. It looks very interesting, but it's not working for me: I installed Java on a Raspberry Pi, and then extracted the server, performed the chmod, and then started tomcat. When I go to the .../remote URL, I get this:

HTTP Status 404 – Not Found


Type Status Report

Message The requested resource [/remote] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat (TomEE)/9.0.56 (8.0.9)


This happens regardless of http vs https. Tomcat is running, but it does not seem to know how to serve the page. I am not familiar with Tomcat, so have no clue about how to debug this issue. Do you have any tips? BTW, I am trying to run this with an HL2. 

Thanks, 

Karl Heinz - K5KHK


--
You received this message because you are subscribed to the Google Groups "Radioberry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radioberry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/radioberry/ece37b94-d8c2-4e46-b80a-f6a586855d51n%40googlegroups.com.
Message has been deleted

Nigel Head

unread,
Mar 2, 2022, 5:21:47 PM3/2/22
to Karl Heinz Kremer, Radioberry
I get the same error as Karl Heinz.
My version of installed java is version 11, so chaned the environment file to match java11 but it still doesn't work.
It seems the server is expecting java8 ?
I do get the Apache Tomcat page at the root, e.g. at http://my.server.ip.address/
but get the same error as Karl Heinz at http://my.server.ip.address/remote

I have attached my catalina.log file, mabe it helps?

Nigel, G4ZAL

catalina.2022-03-02.log
Message has been deleted

Nigel Head

unread,
Mar 3, 2022, 6:09:25 AM3/3/22
to Radioberry
Message forwarded to group...

Actually, I getting to dislike google groups mailng !!

Nigel

---------- Forwarded message ---------
From: Nigel Head <devon...@gmail.com>
Date: Thu, 3 Mar 2022 at 11:05
Subject: Re: Remote Transceiver Web App
To: Karl Heinz Kremer <k...@khk.net>


I made a clean install on my Pi and installed java8
Followed the pdf instructions again and still get the same 404 error.
So it seems not java8 related.
I have attached the catalina log file from the java8 install if it helps.

Nigel, G4ZAL

PS
If I make a reply directly on the google.groups web forum, when posting it seems to go OK, then it gives 'message deleted'
Anyone know why??
Seems I can only reply via email...
catalina.2022-03-03.log

Karl Heinz Kremer

unread,
Mar 3, 2022, 6:32:29 AM3/3/22
to Nigel Head, Radioberry
I am a member of maybe three Google groups and I am constantly having problems with my messages being flagged as spam and therefore deleted. I think they do show up in the owner’s spam folder. I am always hesitant to send messages to Google groups. 

Karl Heinz - K5KHK 

On Mar 3, 2022, at 6:09 AM, Nigel Head <devon...@gmail.com> wrote:


catalina.2022-03-03.log
Message has been deleted

Nigel Head

unread,
Mar 3, 2022, 2:00:55 PM3/3/22
to Radioberry
Hi Johan,

Great, that fixed it :-)

I have it running on an Orangepi running Armbian Bullseye.
I can confirm it works on Rx on my:
Hermes-Lite2
Anan 200D
HPSDR (old original openHPSDR)
and of course, my RadioBerry !!

73,
Nigel G4ZAL

-----------------------------------------

Hi guys,

Nice you are giving it a try.

Indeed provide the log of the tomee server if you are facing problems.

before starting the software  it can be helpfull to look into the log file:
Open a window:
/home/pi/server/apache-tomee-webprofile-8.0.9/logs 
command:
sudo tail -f catalina.out 

The problem is that the java lib path is not set correctly.... i do have build the wdsp and wdspj shared objects and installed these objects... when starting the server these objects can be found.

To get it going in your setup:

Open a command window:

move to: 
/etc/ld.so.conf.d

sudo vi libc.conf

add the following line:
/home/pi/server/apache-tomee-webprofile-8.0.9/webapps/remote/WEB-INF/classes/linux

sudo ldconfig


Restart again... the wdsp shared objects must be loaded; you should also see the making of the wisdom file when looking to the tail -f log output as indicated.

Have fun.

73 Johan
PA3GSB

On Thu, 3 Mar 2022 at 17:06, G4ZAL <devon...@gmail.com> wrote:
I get the same error as Karl Heinz.
From command "java -version" I get 
openjdk version "11.0.14" 2022-01-18
OpenJDK Runtime Environment (build 11.0.14+9-post-Debian-1deb11u1)
OpenJDK Server VM (build 11.0.14+9-post-Debian-1deb11u1, mixed mode)

It seems that the server is expecting a java version 8 ??
I did add the "JAVA_HOME=/usr/lib/jvm/java11-openjdk-armhf" (changed to java11 as this is what exists) in my /etc/environment file, but it makes no difference.

I do get the  ApacheTomcat page at root of web, i.e. http://my.server.ip.address/ 
but get the error as per Karl Heinz at http://my.server.ip.address/remote

I have attached my Catalina log file, maybe it is some help?

Nigel, G4ZAL

Karl Heinz Kremer

unread,
Mar 4, 2022, 3:35:46 AM3/4/22
to Radioberry
Hi Johan, 
this seemed to have helped to get a step further. After I added the library to the configuration file, I can now see the wisdom file being generated, and eventually, I can see the web interface. However, it does not seem to connect to my HL2. What would I look for in the log file regarding connecting to the radio hardware?
 I do see this:
Discovery: received: /10.0.1.144
Radioberry: Discovered: Hermes Lite Interface: eth0 (10.0.1.114) Address:10.0.1.144 (00:1C:C0:A2:13:DD) (software version:47) state:available
Discovery: java.net.SocketTimeoutException: Receive timed out
Discovery: close socket


Karl Heinz- K5KHK



On Thu, Mar 3, 2022 at 12:06 PM Radioberry <radio...@googlegroups.com> wrote:
Hi guys,

Nice you are giving it a try.

Indeed provide the log of the tomee server if you are facing problems.

before starting the software  it can be helpfull to look into the log file:
Open a window:
/home/pi/server/apache-tomee-webprofile-8.0.9/logs 
command:
sudo tail -f catalina.out 

The problem is that the java lib path is not set correctly.... i do have build the wdsp and wdspj shared objects and installed these objects... when starting the server these objects can be found.

To get it going in your setup:

Open a command window:

move to: 
/etc/ld.so.conf.d

sudo vi libc.conf

add the following line:
/home/pi/server/apache-tomee-webprofile-8.0.9/webapps/remote/WEB-INF/classes/linux

sudo ldconfig


Restart again... the wdsp shared objects must be loaded; you should also see the making of the wisdom file when looking to the tail -f log output as indicated.

Have fun.

73 Johan
PA3GSB

Op donderdag 3 maart 2022 om 12:09:25 UTC+1 schreef G4ZAL:
Message has been deleted
Message has been deleted

Nigel Head

unread,
Mar 4, 2022, 4:39:07 AM3/4/22
to Karl Heinz Kremer, Radioberry
Good stuff Karl Heinz.
The first run does take some time to complete as it builds the wisdom file (maybe a couple of minutes).
Once you have the server running, wait a little and then use a browser to navigate to
You should get a page with a 'Start' button in the middle.
Click the Start button and then the server should connect to the HL2 (again may take some seconds for it to come alive).
I get similar output to you in the file, until I click the webpage Start button.

Snip from my Catalina.out

......
Web Radio bean created; now start radio...
JVM is arm bit
AbstractRadio: OpenChannel (TX): buffersize=1024 fftsize=1024 samperate=48000.0 dsprate=48000.0
Radio: XCreateAnalyzer; create rx spectrum
Radioberry bean created
Discovery: Using interface name:eth0 (eth0) 192.168.1.132
Discovery: openSocket: 192.168.1.132 eth0
Discovery: receiveDiscoveryPackets: 192.168.1.132
Discovery: received: /192.168.1.82
Radioberry: Discovered: Hermes Lite Interface: eth0 (192.168.1.132) Address:192.168.1.82 (00:1C:C0:A2:13:DD) (software version:48) state:available

Discovery: java.net.SocketTimeoutException: Receive timed out
Discovery: close socket
..........
(Clicked the Start button on web page)
..........
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
#tuned radios = 1
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setDSPSettingsDSP{samplingrate=48000, mode=1, agc_mode=4, agc_gain=70, filterLow=300, filterHigh=2700, shift=0.0}
setDSPSettingsDSP{samplingrate=48000, mode=0, agc_mode=4, agc_gain=70, filterLow=-2700, filterHigh=-300, shift=0.0}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7149990.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7149980.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7149990.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
setRadioSettingsRadio{frequency=7150000.0, frequencystep=100, volume=10, rf_gain=19, transmit=false}
.................

Hope that helps?

Nigel, G4ZAL


Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Karl Heinz Kremer

unread,
Mar 4, 2022, 10:15:49 AM3/4/22
to Radioberry
Johan,

It may look like the same address, but it’s not: one ends in 114, the other one in 144 - I got confused by that as well for a moment. 

I do see the start button, and when I click on it, the software does not connect to the HL2 (it’s LEDs do not change to indicate a connection). When I instead use SparkSDR, it connects right away, and the HL2’s LED pattern changes.  

I will try a few more things to see if I can make it work. 

Karl Heinz 

On Mar 4, 2022, at 5:11 AM, Radioberry <radio...@googlegroups.com> wrote:

Karl-Heinz,


Your ethernetboard and HL are having the same IP address.


Please compare with my logging:

Discovery: Using interface name:eth0 (eth0) 169.254.45.200
Discovery: openSocket: 169.254.45.200 eth0
Discovery: receiveDiscoveryPackets: 169.254.45.200
Discovery: received: /169.254.19.221
Radioberry: Discovered: Hermes Lite Interface: eth0 (169.254.45.200) Address:169.254.19.221 (00:1C:C0:A2:13:DD) (software version:49) state:available

73 Johan
PA3GSB

Op vrijdag 4 maart 2022 om 10:39:07 UTC+1 schreef G4ZAL:

pa3gsb

unread,
Mar 4, 2022, 12:16:19 PM3/4/22
to Radioberry
Karl-Heinz

Oeps misreading the numbers...

Iam curious what is wrong...

The start button is maybe a little bit misleading... it is used to start the webaudio; it is mandatory that a user needs to start the audio stream by an action.

So when you are able to run the app in the browser and you are not seeing errors in the log of the server; which url are you using?

When starting the browser; do you see things happening in the log (use the tail function)

When using chrome you can press F12; in de console tab:

 Cannot read properties of undefined (reading 'feed')   (i have to fix this ; not streaming when the start button is not clicked)

when pressing the start button and you removed the error (Ctrl-L) no new errors should occur.

73 Johan
PA3GSB


Op vrijdag 4 maart 2022 om 16:15:49 UTC+1 schreef k...@khk.net:

Radioberry

unread,
Mar 10, 2022, 7:01:36 AM3/10/22
to Radioberry

Hi All,

I did make an install script for a RPI running at 32 bits:

In a command window:

cd /tmp
sudo chmod +x remote_install.sh
sudo ./remote_install.sh

su
chmod +x start_remote.sh
./start_remote

Hope this will help.

73 Johan
PA3GSB



Op vrijdag 4 maart 2022 om 18:16:19 UTC+1 schreef pa3gsb:

Karl Heinz Kremer

unread,
Mar 10, 2022, 9:54:44 AM3/10/22
to Radioberry
Johan, 

I still cannot get it to work. I followed your instructions, but had to change the Java path - I had Java version java-11-openjdk-armhf installed. That's what I got when I installed the openjdk. Just to cover all the bases, I installed version 8, changed the JAVA_HOME path and tried again. I am still not connecting to the radio. The web site comes up, and I can start it, but nothing happens. My signal strength as reported by the web page is -400dBm. I suspect that the problem is the timeout that is reported: 

Web Radio bean created; now start radio...
JVM is arm bit
JVM runs on Linux

AbstractRadio: OpenChannel (TX): buffersize=1024 fftsize=1024 samperate=48000.0 dsprate=48000.0
Radio: XCreateAnalyzer; create rx spectrum
Radioberry bean created
Discovery: Using interface name:wlan0 (wlan0) 10.0.1.193
Discovery: openSocket: 10.0.1.193 wlan0
Discovery: receiveDiscoveryPackets: 10.0.1.193
Discovery: received: /10.0.1.144
Radioberry: Discovered: Hermes Lite Interface: wlan0 (10.0.1.193) Address:10.0.1.144 (00:1C:C0:A2:13:DD) (software version:47) state:available

Discovery: java.net.SocketTimeoutException: Receive timed out
Discovery: close socket

I tried both interfaces, the built-in ethernet and WLAN, and I am getting the same result with both. 

Karl Heinz - K5KHK


Radioberry

unread,
Mar 10, 2022, 10:24:12 AM3/10/22
to Radioberry

Karl Heinz

Can you send me your complete log?

The timeout is not the problem; it is use to end the discovery process. In your case a device is found.

73 Johan
PA3GSB


Op donderdag 10 maart 2022 om 15:54:44 UTC+1 schreef k...@khk.net:

Karl Heinz Kremer

unread,
Mar 10, 2022, 10:36:35 AM3/10/22
to Radioberry
Hi Johan,

I cleaned out the log folder and started over, so the attached log is from just one start and shutdown of the server.
Also, the HL2 never changes it's status LEDs, which is what usually happens when software connects to it. I turned SparkSDR off for this test, then rebooted the HL2 and ran my tests. When I start SparkSDR again, it connects to the HL2 right away. 


Thanks, 

Karl Heinz - K5KHK

catalina.out

Radioberry

unread,
Mar 10, 2022, 2:16:28 PM3/10/22
to Radioberry
Karl Heinz


Your radio is running usign an older gateware version. Would you update your gateware version and give it an other try.

I this not helping i will add some logging and will disable the watchdog.

73 Johan
PA3GSB

Op donderdag 10 maart 2022 om 16:36:35 UTC+1 schreef k...@khk.net:

Karl Heinz Kremer

unread,
Mar 10, 2022, 3:33:31 PM3/10/22
to Radioberry
Thank you! That did the trick. I never bothered to update the gateware because it was working without a problem. I just upgraded to 73p2 and that made my HL2 change it's state when the Tomcat server loaded. I can listen to the receiver, but I have not yet tried to transmit. 

Thanks again for your help. 

Karl Heinz - K5KHK


Reply all
Reply to author
Forward
0 new messages