From 18f6e87d8df608daf683438850515df1bdbac55d Mon Sep 17 00:00:00 2001 From: EA5SW <32942778+EA5SW@users.noreply.github.com> Date: Wed, 6 Dec 2017 01:04:30 +0100 Subject: [PATCH] Update README.md --- README.md | 152 +++++++++++++++++++++++++----------------------------- 1 file changed, 69 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index 0df576f..396ad23 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,51 @@ This software is licenced under the GPL v2 and is intended for amateur and educa ********* Special notes EA5SW mods ************** -INCOMPLETE INCOMPLETE +New TTS (Text To Speech) callsigns via Festival are coded into the software and are ALWAYS active via internal card output + +All the callsigns are speaked into ICAO code. + +Installation in Raspberry Pi: + +sudo apt-get install festival + +Default voices are english. + +if you want spanish voices install packages for Guadalinex: +https://github.com/guadalinex-archive/hispavoces +wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-palpc16k_1.0.0_all.deb +wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-sflpc16k_1.0.0_all.deb +sudo dkpg -i festvox-sflpc16k_1.0.0_all.deb +sudo dkpg -i festvox-palpc16k_1.0.0_all.deb + +edit festival.scm and put last line prefered voice: + +sudo nano /etc/festival.scm + +Copy & paste those lines: + +;;(set! voice_default 'voice_JuntaDeAndalucia_es_sf_diphone) +(set! voice_default 'voice_JuntaDeAndalucia_es_pa_diphone) + + +The code for voice are written into Display.cpp +The phonetic in spanish changed, for example, Mike in spanish are best "Maik" + +search this lines to see how modify: + +else if (c == 'M'){ +strcat(voice," Maik "); + + +I put all operations in RAMDISK to no write or read on SD card, create a simple bash to execute before MMDVMHost to create a small ramdisk of 120K (or minor) + +#!/bin/bash +sudo mkdir -p /ram +sudo mount -t tmpfs -o size=120k tmpfs /ram +sudo touch /ram/mm_voice.sh +sudo chmod 777 /ram/mm_voice.sh + + Now Nextion Screen is more complex, all development are made and tested into a Raspberry Pi and use some routines of this hardware. It's possible that only work in Rpi and not in Orange Pi or similar @@ -38,10 +82,12 @@ At this time displays: Some extra information:: Locator, City and Frequency. -Real IP number at startup od Pi, etho or wlan detects. Temperature of Raspberry Pi. Real time Smeter for MMDVM Modems that outs RSSI information (MMDVM modes with radios as Motorola,for example) Fake Smeters for the rests of types (DVMEGA,HS_HAT,etc) Change of colors in sequence Idle/RX/TX of Hotspot. Talker Alias display of information send by master. Decode of TG number and display of picture associated to this TG. Now TG's are the EA most used. Decode of Callsign Prefix and display of picture associated to this Prefix.Now are the EA,EB & EC prefix Decode of 9990 and 4000 commands also displaying pictures Decode of own callsign and display of own picture. Remote Reboot and Shutdown of Pi eligible by sysop via DMR +Real IP number at startup of Pi, etho or wlan detects. Temperature of Raspberry Pi. Real time Smeter for MMDVM Modems that outs RSSI information (MMDVM modes with radios as Motorola,for example) Fake Smeters for the rests of types (DVMEGA,HS_HAT,etc) Change of colors in sequence Idle/RX/TX of Hotspot. Talker Alias display of information send by master. Decode of TG number and display of picture associated to this TG. Now TG's are the EA most used. Decode of Callsign Prefix and display of picture associated to this Prefix.Now are the EA,EB & EC prefix Decode of 9990 and 4000 commands also displaying pictures Decode of own callsign and display of own picture. Remote Reboot and Shutdown of Pi eligible by sysop via DMR Install & Run: +For Nextion Displays: + New entry in MMDVM.ini for path to config files in Nextion section: FilesConfig=/home/pi/MMDVMHost/etc/ You have now 6 config files (work in progress to put in only one), don't comment or delete any line, the code are simple and need to end with a C/R line to EOF @@ -76,42 +122,18 @@ Remember that any change in tg.ini are needed to change in the Nextion Screen an You control if the remote is active when 1 or deactivate when 0 into ctrl.ini -99998 are Shutdown TG to transmit to shutdown the Pi 99999 are Reboot TG to transmit to reboot the Pi TG number to change mode to dmrplus network TG number to change mode to DmrGateway mode TG number to change mode to BrandMeister network +99998 are Shutdown TG to transmit to shutdown the Pi +99999 are Reboot TG to transmit to reboot the Pi +99997 Send mm_plus command to start a new MMDDVMHost in dmrplus mode (mm_plus is an script file) +99996 Send mm_gate command to start a new MMDDVMHost in DMRGateway mode (mm_gate is an script file) +99995 Send mm_BM command to start a new MMDDVMHost in BrandMeister mode (mm_BM is an script file) +99990 Wifi OFF +99991 Wifi ON Only the Owner callsign are allowed to TX into those TG to activate functions. -New TTS (Text To Speech) callsigns via Festival - -Installation in Raspberry Pi: - -sudo apt-get install festival - -Default voices are english, if you want spanish voices install packages for Guadalinex: https://github.com/guadalinex-archive/hispavoces - -wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-palpc16k_1.0.0_all.deb wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-sflpc16k_1.0.0_all.deb - -sudo dkpg -i festvox-sflpc16k_1.0.0_all.deb sudo dkpg -i festvox-palpc16k_1.0.0_all.deb - -edit festival.scm and put last line prefered voice: - -sudo nano /etc/festival.scm ;;(set! voice_default 'voice_JuntaDeAndalucia_es_sf_diphone) (set! voice_default 'voice_JuntaDeAndalucia_es_pa_diphone) - -Edit OLED.cpp before compile and change your own callsign and phonetic of voices: - -Line 539 if (strcmp ("EA5SW",src.c_str()) !=0){ - -The phonetic in spanish changed, for example, Mike in spanish are best "Maik" - -Line 581 else if (c == 'M'){ Line 582 strcat(voice," Maik "); - -I put all operations in RAMDISK,create a simple bash to execute before MMDVMHost - -#!/bin/bash sudo mkdir -p /ram sudo mount -t tmpfs -o size=120k tmpfs /ram sudo touch /ram/mm_voice.sh sudo chmod 777 /ram/mm_voice.sh - -To compile MMDVMHost use: - -make -f Makefile Nextion_HS +Special notes for OLED displays: In MMDVM.ini @@ -121,7 +143,7 @@ If Duplex are = 0 the Layout are change to HotSpot mode The mods are made with a personal HotSpot in mind. DVMega, MMDVM_HS, low cost or ZumSpot are best candidates. -This code works with DMR SlotTime 2 only, all Slot 1 info are pulled out. +This code works with DMR SlotTime 2 only, all Slot 1 info are pulled out when are in simplex. The Talker Alias, IP number and Temperature for Raspberry Pi are added. In Orange Pi the code for temperature works with small changes. If no temperature file are read, Temp don't display. @@ -132,54 +154,18 @@ All TG codes are easy to change into OLED.cpp Example TG codes: -4000 display a broken chains logo, 9990 display a parrot logo, 9 or 8 displays a DmrPlus logo into tx/rx screen, 6 displays a XLX logo any other TG display a BrandMeister Logo. +4000 display a broken chains logo +9990 display a parrot logo +9 or 8 displays a DmrPlus logo into tx/rx screen +6 displays a XLX logo +any other TG display a BrandMeister Logo. Code also have a small remote command to shutdown,reboot and change modes of operation, simply when TX into a determined TG number: -9999 Reboot Raspberry -9998 Shutdown Raspberry -9997 Send mm_plus command to start a new MMDDVMHost in dmrplus mode (mm_plus is an script file) -9996 Send mm_gate command to start a new MMDDVMHost in DMRGateway mode (mm_gate is an script file) -9995 Send mm_BM command to start a new MMDDVMHost in BrandMeister mode (mm_BM is an script file) -9990 Put Wifi OFF -9991 Put Wifi ON - - -New TTS (Text To Speech) callsigns via Festival - -Installation in Raspberry Pi: - -sudo apt-get install festival - -Default voices are english, if you want spanish voices install packages for Guadalinex: -https://github.com/guadalinex-archive/hispavoces - -wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-palpc16k_1.0.0_all.deb -wget https://github.com/guadalinex-archive/hispavoces/raw/master/packages/festvox-sflpc16k_1.0.0_all.deb - -sudo dpkg -i festvox-sflpc16k_1.0.0_all.deb -sudo dpkg -i festvox-palpc16k_1.0.0_all.deb - -edit festival.scm and put last line prefered voice: - -sudo nano /etc/festival.scm -;;(set! voice_default 'voice_JuntaDeAndalucia_es_sf_diphone) -(set! voice_default 'voice_JuntaDeAndalucia_es_pa_diphone) - -Edit OLED.cpp before compile and change your own callsign and phonetic of voices: - -Line 539 if (strcmp ("EA5SW",src.c_str()) !=0){ - -The phonetic in spanish changed, for example, Mike in spanish are best "Maik" - -Line 581 else if (c == 'M'){ -Line 582 strcat(voice," Maik "); - - -I put all operations in RAMDISK,create a simple bash to execute before MMDVMHost - -#!/bin/bash -sudo mkdir -p /ram -sudo mount -t tmpfs -o size=120k tmpfs /ram -sudo touch /ram/mm_voice.sh -sudo chmod 777 /ram/mm_voice.sh +99999 Reboot Raspberry +99998 Shutdown Raspberry +99997 Send mm_plus command to start a new MMDDVMHost in dmrplus mode (mm_plus is an script file) +99996 Send mm_gate command to start a new MMDDVMHost in DMRGateway mode (mm_gate is an script file) +99995 Send mm_BM command to start a new MMDDVMHost in BrandMeister mode (mm_BM is an script file) +99990 Wifi OFF +99991 Wifi ON