SharkRF IP Connector Server

Jerry
Posts: 44
Joined: Wed Aug 24, 2016 2:34 pm

SharkRF IP Connector Server

Post by Jerry »

I would like to see the connector server updated to accept more than 1 client.


Jerry
WA4CSS

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 5023
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: SharkRF IP Connector Server

Post by HA2NON »

You can use the srf-ip-conn-srv (https://github.com/sharkrf/srf-ip-conn-srv) if you want to link more than 2 openSPOTs together.
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Jerry
Posts: 44
Joined: Wed Aug 24, 2016 2:34 pm

Re: SharkRF IP Connector Server

Post by Jerry »

I have tried that but I was unable to make it work.

If a Raspberry Pi disc image could be posted, that would be a great help.

BrianWGray
Posts: 7
Joined: Sat Feb 08, 2020 2:24 pm

Re: SharkRF IP Connector Server

Post by BrianWGray »

If you aren't familiar with git/php/etc. https://github.com/VE3OY/srf-ip-conn-srv

Jerry
Posts: 44
Joined: Wed Aug 24, 2016 2:34 pm

Re: SharkRF IP Connector Server

Post by Jerry »

Thank-you for the suggestion. I have tried that also without success.
It appears to go through all the proper steps but when it comes
time to reboot it all locks up.
This might be a problem as I was running the current version
of Raspian rather than STRETCH.

BrianWGray
Posts: 7
Joined: Sat Feb 08, 2020 2:24 pm

Re: SharkRF IP Connector Server

Post by BrianWGray »

Yeah, for Buster some of the packages / php versions change, some assumptions in pre-installed packages and config files change too. I started working on some patches for when I did my build on Buster but with the original repository only providing a zip of the scripts I didn't do too much else for updates mostly because there isn't a simple way to merge them upstream. The changes are relatively few though. I don't want to make any promises but I'll see if I can get the content working on Buster for giggles.

The installer tries to use pipe viewer which Buster doesn't install by default.
sudo apt-get install pv

The version of php-fpm is different from the static version included with the config files (at the moment) /etc/nginx/sites-available/default
from: fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
to: fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;

When the script installs jsmn it just pulls the latest version and moves on and doesn't checkout a version that works with the ip server.

git clone https://github.com/zserge/jsmn
cd jsmn
git checkout 732d283ee9a2e5c34c52af0e044850576888ab09

I just took a quick and dirty swing at updating the content from memory. I haven't had the chance to test it yet but I'll see if I can find an sd card laying around to test it out on later tonight or tomorrow and get it up and functional on Buster.

https://github.com/BrianWGray/IPC/

Jerry
Posts: 44
Joined: Wed Aug 24, 2016 2:34 pm

Re: SharkRF IP Connector Server

Post by Jerry »

That would be a tremendous help. Thank-you.
For those of us with limited Linux ability, it would be
nice if the SharkRF folks would also make a disc image available
for download.

BrianWGray
Posts: 7
Joined: Sat Feb 08, 2020 2:24 pm

Re: SharkRF IP Connector Server

Post by BrianWGray »

I tested the updated script / commands. Starting with a current Buster build on a Pi and running the following basic instructions should result in a functional IP server in 5-10 minutes.

Do a fresh image of Raspbian Buster onto your SDCard.
Boot and configure your RPi ... hostname, WiFi, etc, etc.

Next .....

On your RPi:
- sudo apt-get install git #(probably installed by default depending on the image you start with)
- cd /home/pi/
- git clone https://github.com/BrianWGray/IPC.git
- at a command prompt, type the following commands:
sudo su
cd /home/pi/IPC
chmod +x InstallIPConnector.sh
./InstallIPConnector.sh

Jerry
Posts: 44
Joined: Wed Aug 24, 2016 2:34 pm

Re: SharkRF IP Connector Server

Post by Jerry »

Well, I did everything you listed above and all seemed to install fine. No errors that I saw,
when it came time to re-boot, everything died again.
Recycle power and it goes back to the normal desktop.
The only thing different I was using a Raspberry Pi4. I don't know
if that will make a difference?
I am sure it is something I am doing wrong, but it looks like back to
the drawing board for me.
Thank-you for all your help.

BrianWGray
Posts: 7
Joined: Sat Feb 08, 2020 2:24 pm

Re: SharkRF IP Connector Server

Post by BrianWGray »

Yeah, when the "reboot" runs the script actually runs a shutdown command and needs to be power cycled. A RasPi4 is fine (the memory configurations probably aren't optimized for a 4 but for what you're doing It should still be ok.) On that note, in the script I just changed `shutdown now` to `reboot` so that it actually reboots instead of just shutting the operating system down (Which is probably why it looked like it "Crashed" to you). It's a little miss-leading.

I imagine that when you power cycle that pi wait a minute and go to the ip address in your web browser so locally on the pi http://127.0.0.1/dvr/ should show you the console. It's likely installed and running just fine.

*If you really want to see the reboot work, which I would just continue using a working install*

The following should update the install info to the newest version and run it:
sudo su -
cd /home/pi/IPC
git pull
chmod +x InstallIPConnector.sh
./InstallIPConnector.sh

Post Reply