/f5vmr-svxlink_raspberry

Primary LanguageShellGNU General Public License v3.0GPL-3.0

svxlink_raspberry

Script build for Raspberry Pi - Repeater or Hotspot. Pour l'instruction en Français, voir en bas.

Video Explicativo https://www.youtube.com/watch?v=8gQLRULiRFA&t=408s First Steps

Requirements: Raspberry Pi of any mark. USB Soundcard, and an interface card (or a modified USB Soundcard and no interface). One or two transceivers (3 or 4 if you are making a double repeater, for which you will need a second USB soundcard.)

There are few raspberry images that work succesfully for this type of build, where there is a potential for using the eventual application in several directions.

Whilst this in itself is not an image, it will take the hard work out of the physical compilation, although leaves a little work for the user to place the finishing touches to the final assembly.

There are a number of available interface boards that have a variety of uses, either as a hotspot or a repeater, or even a fill-in receiver/transceiver for an existing SVXLink repeater. The settings in this build are for a homebrew interface board using GPIO 23 for the Receive COS and GPIO 24 for the PTT controller, or alternative a modified CM-108 that can use udev and drive the PTT from the modification components.

When using the GPIO Pins, an earth pin is also require, so using this combination, pins 14,16 and 18 are all adjacent and ideally placed for these functions. Pin 14 is the Earth, Pin 16 is GPIO 23 and Pin 18 is GPIO 24.

For a second set of transceivers, you can consider GPIO 17 and 18 as COS & PTT for those.

A copy of the design can be found on g4nab.co.uk. There is also a page showing the modification instructions for a CM-108 USB Sound Card.

The programming of the SDCard

Start with a download of Raspberry OS Lite from RaspberryPi.org. Then use a 8/16 GB MicroSD Card and transfer the image to the card using the Raspberry Pi Image builder from the same source.

Once complete, eject the card and install it in the raspberry pi and power it up. Enter the user as 'pi' and password 'raspberry' in lower case.

The compilation

The first step will be the following command: sudo apt install -y git

Now the following command: sudo git clone https://github.com/f5vmr/svxlink_raspberry.git .

Once this is installed type the following command: sudo chmod +x svxlink_raspberry/*.sh

The next commands refer to Raspberry OS Bullseye 32 bit lite (Debian 11). If you wish to use Raspberry OS Buster (Debian 10) such as for the F8ASB Hotspot then you need to edit the svxlink_raspberry/install.sh script by changing php8.0 to php7.3 in the list of software the script will download. Failure to do this will crash the script.

Now type sudo bash svxlink_raspberry/install.sh and return.

The script will now update the software. You will be required to add the callsign of the node prior to the compilation of the software so watch for the prompt.

At the end of the script the running configuration will be compiled with the given callsign. Then the fun begins. Go and have a coffee or even lunch as the compilation will take about an hour possibly longer. A Raspberry Pi 3 or 4 will take less time, and a Raspberry Pi zero possibly longer than 90 minutes. Hopefully there should be no reported error.

At the end of the compilation type sudo reboot to restart the unit. If all is well the unit wil be only partly functional.

You will need to understand the svxlink.conf file and how to make adjustments for Simplex or Repeater operation. In any case you may need to refer to the svxlink.org main page, or svxlink amateur radio users page on facebook, or contact me. For further information also consult the svxlink pages on g4nab.co.uk.

To stop svxlink running type in the terminal sudo systemctl stop svxlink.service and to restart it type sudo systemctl restart svxlink.service The next stage will be to modify the three files node_info.json, svxlink.conf, and ModuleEchoLink.conf. To obtain information for the node_info.json go to a PC Browser and enter http://svxportal-uk.ddns.net:81 where you will find a dashboard. Click Register at the top, completing the information. This information is held only to enable you to complete the next stage. Log in with the information you have just supplied, and click on Generate node_info.json. Once complete, save the resulting file in your computer. Open the terminal of the Raspberry Pi, and type cd /etc/svxlink followed by return. Then type sudo nano node_info.json and edit the information with the content of the file you have just saved on your PC. You can open the file with a text editor or notepad. When the editing is complete type cntrl-o and return at the keyboard for the terminal followed by cntrl-x. The next stage is to check and edit where necessary the svxlink.conf file. type sudo nano svxlink.conf followed by return. Check the content and complete your location information near the bottom of the file. type cntrl-o and return then cntrl-x when finished to save your changes. To modify the Echolink information type sudo nano svxlink.d/ModuleEchoLink.conf and return. Make your changes to your EchoLink access here. then save the file as you did above with svxlink.conf. If you have not yet enabled svxlink in the svxlink.conf to may need to do this now, and remove the # comment header from the relevant lines. To incorporated the changes you will need to type sudo systemctl restart svxlink.service and return. If you need to make changes to the gpio.conf file you will also need to restart the gpio service too.

Everything introduced here is from the original presentation by Tobias SM0SVX, modified slightly with some additional modules from DL1HRC.

Finally it will be necessary to add dvswitch-server to permit interaction with the digital modes. Type in terminal sudo wget https://dvswitch.org/buster and return. When the download is complete, type sudo chmod +x buster, then sudo ./buster. This will introduce the download repository to the raspberry. It will immediately update it, Next type sudo apt install dvswitch-server, which will install all t the necessary functionality of the dvswitch, Mmdvm_bridge and the Analog _bridge together with the md380-emulator. Instructions should be contained within the folders, but refer to groups. io for further help.

Français

Cette Installation est pour un Raspberry Pi Tous marques. Les paramètres du RRF sont inclues.

1. Téléchargement du Raspberry OS Lite Bullseye - L'equivalence de Debian 11.

2. Utilisation de Raspberry Pi SDCard writer est importante, particulairement si le Wi-Fi soit necessaire.

3. Après Installation de la carteSD dedans le Raspberry, fait marcher le système, la carte-son inclu s'il y en a.

4. Avec SSH d'un ordinateur au réseau, il faut trouver le terminal - ssh pi@192.168.#.# -p 22 dans votre réseau par un écran de command d'un PC par exemple. le mot-pass normale soit "raspberry".

5. Taper sudo apt install git -y au terminal et attendre.

6. Taper sudo git clone https://github.com/f5vmr/svxlink_raspberry et attendre.

7. Taper sudo chmod +x svxlink_raspberry/*.sh

8. Taper sudo bash ./svxlink_raspberry/install_fr.sh

9. Ici le script va demander si vous voulez les mises à jour des logiciels. Taper y.

10. Après plusieurs minutes, pendant lesquelles les mises à jour auront lieu, il y aura une demande pour selectionner la carte-son, suivi par une demande d'indicatif d'appel du nœud proposé vous sera présentée.

11. Si la réponse est déterminée comme étant valide, le processus de configuration commencera. La compilation se poursuivra jusqu'à un point où la framboise redémarrera. Il est peu probable qu'il fonctionne comme vous le souhaitez, car vous devrez encore apporter quelques modifications à la configuration. Si une erreur se présente, vous devrez déterminer où se trouve l'erreur dans le script. Cependant il a été rigoureusement testé et une erreur est susceptible d'avoir été une interruption indépendante de votre volonté. Dans ce cas, vous devrez répéter le script en omettant les mises à jour.

12. Reconnectez-vous au Raspberry. Comme la dernière action du script était de lancer SvxLink, vous devez maintenant l'arrêter, afin de modifier les paramètres. La même chose sera nécessaire pour le GPIO.

13. Alors taper sudo systemctl stop svxlink && sudo systemctl stop svxlink_gpio_setup.

14. La commande pour l'édition d'un fichier est nano, donc ici taper sudo nano /etc/svxlink/gpio.conf pour regarder les ports GPIO. Dans cette configuration ils sont gpio23 pour le squelch et gpio24 pour le PTT. Il faut explorer dans votre radio si ils sont 'actif-haut' ou 'active-bas' et faire les changements, sauvegarder le fichier, et taper sudo systemctl restart svxlink_gpio_setup pour les ports devenir operationels.

15. Avant l'édition du ficher svxlink.conf taper sudo cp /etc/svxlink/svxlink.conf /etc/svxlink/svxlink.bak.

16. Taper sudo nano /etc/svxlink/svxlink.conf

Ici, il sera nécessaire de configurer correctement de nombreux paramètres, notamment GPIO, Cartes son, Localisation et autres. Avant de modifier ces paramètres, lisez le fichier man sur internet pour vérifier vos connaissances http://www.svxlink.org/doc/man/man5/svxlink.conf.5.html. Cette page est en anglais, pour traduire. A chaque changement, sauvegardez le résultat, en cas de coupure de courant. La langue défaute est modifiée - fr_FR par le script.

17. Faire marcher le logicel en teste avec sudo svxlink en mode direct. Le journal se montre. Pour l'arrête à cette étape, simplement taper cntrl-c. Faire les corrections des erreurs un par un, et faire les tests jusqu'a la satifaction. Donc redémmarer svxlink en service avec sudo systemctl restart svxlink | tail -f /var/log/svxlink.log. Le journal vous montre le service. Encore une fois cntrl-c arrête l'apparition du journal.

18. Vous devrez éditer le fichier node_info.json. Comme précédemment, tapez sudo cp /etc/svxlink/node_info.json /etc/svxlink/node_info.bak. Puis sudo nano /etc/svxlink/node_info.json. Faites attention de laisser tous les '{ }' exactement. Faire Entrez les détails de votre emplacement. Soyez conscient de la convention correcte de longitude et de latitude. Enregistrez le fichier lorsque votre édition est terminée.

Votre connexion au server a besoin de cette information.

Il y a plusieurs solutions, et une question stupide soit la question n'a jamais posé.

Que puis-je faire avec mon nouveau nœud ?

Dans ce cas, vous constaterez que votre nœud est déjà prêt à accéder au RRF - Réseau des Répéteurs Francophones. À une exception près, tous les groupes de discussion seront à votre disposition, à l'exception du RRF lui-même. Mais ce n'est pas votre erreur, mais une restriction sur le serveur.

Pour accéder à ces groupes de discussion, vous devrez envoyer dtmf avec ptt appuyé - 91 + le numéro du groupe + #. Votre nœud répondra "talk group" et le numéro. Le numéro de groupe de discussion est le suivant.

97 - FON, 98 - Technique, 99 - International, 100 - Bavardage, 101 - Local, 102 - Experimental

Donc accèder au TG 100, transmettre au DTMF - 91100# et le noeud repondra "Talk Groupe un zero zero". Parler à volonté. Pour déconnecter transmettre DTMF 910# ou un autre TG.... Très simple. Regarder au même temps le tableau de bord http://rrf4.f5nlg.ovh:82/. Il y a une possibilité de connexion aux autres serveurs, comme le serveur britannique. Poser la question au email g4nab.ne63@gmail.com

73 de Chris G4NAB/F5VMR