You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
EA5SW 124f47981b
Add files via upload
8 years ago
Nextion_EA5SW Add files via upload 8 years ago
AMBEFEC.cpp Add files via upload 8 years ago
AMBEFEC.h Add files via upload 8 years ago
BCH.cpp Add files via upload 8 years ago
BCH.h Add files via upload 8 years ago
BPTC19696.cpp Add files via upload 8 years ago
BPTC19696.h Add files via upload 8 years ago
CRC.cpp Add files via upload 8 years ago
CRC.h Add files via upload 8 years ago
Conf.cpp Add files via upload 8 years ago
Conf.h Add files via upload 8 years ago
DMRAccessControl.cpp Add files via upload 8 years ago
DMRAccessControl.h Add files via upload 8 years ago
DMRCSBK.cpp Add files via upload 8 years ago
DMRCSBK.h Add files via upload 8 years ago
DMRControl.cpp Add files via upload 8 years ago
DMRControl.h Add files via upload 8 years ago
DMRData.cpp Add files via upload 8 years ago
DMRData.h Add files via upload 8 years ago
DMRDataHeader.cpp Add files via upload 8 years ago
DMRDataHeader.h Add files via upload 8 years ago
DMRDefines.h Add files via upload 8 years ago
DMREMB.cpp Add files via upload 8 years ago
DMREMB.h Add files via upload 8 years ago
DMREmbeddedData.cpp Add files via upload 8 years ago
DMREmbeddedData.h Add files via upload 8 years ago
DMRFullLC.cpp Add files via upload 8 years ago
DMRFullLC.h Add files via upload 8 years ago
DMRIds.dat Add files via upload 8 years ago
DMRLC.cpp Add files via upload 8 years ago
DMRLC.h Add files via upload 8 years ago
DMRLookup.cpp Add files via upload 8 years ago
DMRLookup.h Add files via upload 8 years ago
DMRNetwork.cpp Add files via upload 8 years ago
DMRNetwork.h Add files via upload 8 years ago
DMRShortLC.cpp Add files via upload 8 years ago
DMRShortLC.h Add files via upload 8 years ago
DMRSlot.cpp Add files via upload 8 years ago
DMRSlot.h Add files via upload 8 years ago
DMRSlotType.cpp Add files via upload 8 years ago
DMRSlotType.h Add files via upload 8 years ago
DMRTrellis.cpp Add files via upload 8 years ago
DMRTrellis.h Add files via upload 8 years ago
DMRplus_startup_options.md Add files via upload 8 years ago
Defines.h Add files via upload 8 years ago
Display.cpp Add files via upload 8 years ago
Display.h Add files via upload 8 years ago
README.md Create README.md 8 years ago

README.md

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

Are made with DMR only in mind for Hotspots, so only use Timeslot2 and not tested in mixed mode (P25,Dstar,etc) The code made a new screens for Nextion screens.

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

Install & Run:

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

info.ini contains information for MMDVM home screen:

Callsign Location Frequency DMR Network Name

ctrl.ini contains:

callsign of owner remote commands on/off TG number to shutdown Pi TG number to reboot 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

prefixA.ini, prefixB.ini and prefixC.ini contains a list of prefix to combine for displkay a picture map into a Nextion. example: EA-EA9, EB0-EB9,EC0-EC9, are the official prefix for Spain to hams (don't include a special stations)

tg.ini contains the number of the TG's (BrandMeister Network) to display a picture logo into a Nextion. The first TG number equals to picture 30 into the Nextion tft files.

Nextion tft (compiled) and hmi (source) files contain the pictures to work.

The editable pics are 200x100 and 100x50 pixels

Open the Nextion HMI in Editor and observe the picture list Also Open the Nextion.ini file in a editor to see references

0-19 are semi-fixed pictures, change the 8 & 9 with the replace opcion for your own callsign picture

20-29 are the prefixes pictures 3 diferents prefixes are allocated for every pic, in Nextion.ini section [WPX] you see PXA0,PXB0 and PXC0 and the prefixes EA0 EB0 and EC0 When you transmit or receive a transmission from these prefixes are displayed the pic 20 If the transmission comes from EA2,EB2 or EC2 prefixes, display picture 21 and all others.

The TG list are from picture 30 to picture 137, and works same that prefix, the list are in the tg.ini file.

example: the TG localed in first position are 214, when receive a transmission of this TG displays the picture 30 in the Nextion. 214 (EA national Talkgroup) have the picture 30 example of change: If yoy want receive the 3100 USA Talkgroup replace the image in the Nextion display (picture 30) for a USA Flag, change the entry 214 for 3100 in tg.ini

Remember that any change in tg.ini are needed to change in the Nextion Screen and upload again to the display.

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

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

Thanks to the effort of: G4KLX, ON7LDS,G0WFV, VK6LS & more for code EA4ATS for all graphics, a very BIG JOB !! EA5DHO for test,test,test,test and TEST and ideas!!

73 & DX from EA5SW

OLED

In MMDVM.ini

If Duplex are = 1 the default OLED Layout are use. 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.

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.

Are added some logos for differents networks in 128x26 & 128 x 32 formats for the Idle Screen and small logos(64x16) for the TX/RX screens, also a logos for Parrot and disconnect codes (9990 and 4000)

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.

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

73 & DX EA5SW Jose

Powered by TurnKey Linux.