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.

118 lines
4.6 KiB

---
title: My 7-Inch DMR Dashboard
summary: >
I did not like the small screen and the small housing of my last Hotspot so
I decided to make a bigger housing where I needed a bigger screen. Look what
I got myself up and running, with some major options to control the hotspot
just right off the screen itself. Make sure to install the NextionDrivers
when you use this layout -- it offers way more possibilities.
categories: [amateur-radio]
tags: [nextion,dmr]
date: 2020-03-28T12:42:44+01:00
lastmod: 2023-08-05T21:55:58+0200
---
I got a Nextion `NX8048K070_011` recently and I built a DMR Dashboard (again)
for this screen. You see the last five heard stations along with the timestamp
(hour, minute), the used timeslot and the used talkgroup. For your own
transmissions the RSSI information as well as the calculated BER will be
displayed.
## Model and overview
I've lost a few words about this topic (Nextion) in general on my first post
about my 2.4 inch nextion screen
[in a previous article]({{< ref "6-nextion-dmr-last-heard-dashboard" >}}#the-editor).
{{< figure src="nxt07_00.jpg" alt="Nextion back view / model" caption="" >}}
Have a look at the debug preview made within the Nextion Editor. The main screen
is on the left and on the right side you see the system screen, this screen is
for system tasks and you need a working NextionDriver installation to use all
the buttons. Read more about the system screen on the chapter
[Management view](#management-view).
{{< figure src="nxt07_01.png" alt="Screen Debug Preview" caption="" >}}
{{< alert >}}
You will need NextionDriver installed to use **all the buttons** on the
SYSTEM page.
{{< /alert >}}
~~I have not tested it yet with Pi-Star v4 but it should work as long as MMDVMHost
runs as root user.~~ Otherwise you should download the HMI files and modify it
in your NextionEditor LTS.
{{< alert circle-info >}}
**Update on March 31, 2020**
The screen works fine on Pi-Star v4, but without NextionDrivers you won't be
able to use the start/stop buttons on the system page. In fact, you won't be
able to use any buttons that execute code on the linux box. Also the version and
serial number does not get loaded without NextionDrivers.
{{< /alert >}}
Choose Nextion Layout L3 HS on Pi-Star -- the screen runs with **115200 baud**.
### Get NextionDriver
- <https://github.com/on7lds/NextionDriver>
You may also find [NextionDriverInstaller] helpful.
[NextionDriverInstaller]: https://github.com/on7lds/NextionDriverInstaller
## Get the files (HMI and TFT)
Download the files from my github repository.
- <https://codeberg.org/dominic/MMDVM-Nextion-Screen-Layouts>
*Have a look at the **releases** tab as there are more older versions available
(the older layout looks ugly on the system page, but has buttons for
DMRGateway and DAPNETGateway).*
## Management view
By "clicking" the page (mainly the header on the top of the screen) you will see
a management screen with a lot of buttons. I think these are self-explanatory.
Although I hate to say it, but I had to run MMDVMHost as user *root* -- otherwise
the screen went all black. I'd rather like to have MMDVMHost running as a
non-privileged user *mmdvm*. Please let me know if you found a solution to run
MMDVMHost as user *mmdvm* again.
Maybe this is the reason why MMDVMHost runs as root on Pi-Star v4 too.
{{< youtube id="oGkDzS5MtuA" >}}
Above is a short demonstration of the system screen. ~~The Layout might change
in the future, but you might~~ edit the layout on your own. Just retext the
buttons and modify the executed command line.
At the moment the `SHRINK LOGS` button executes `/usr/local/sbin/shrinklog`
and the `PHP-DASHBOARD ON` and `PHP-DASHBOARD OFF` buttons execute
`/usr/local/sbin/dashboard start` and `/usr/local/sbin/dashboard stop`
respectively.
Most of the code in `shrinklog` has been taken from Pi-Star, which is why I
won't release that file here, you gonna take the code from Pi-Star and modify
it to your needs. `dashboard` starts and stops `php-fpm` and places (or removes)
an `index.html` file in the webroot so it displays a message, that the dashboard
is offline. Otherwise nginx would display a simple **Bad Gateway** error message.
## Pictures and images
The dashboard looks something like this. On your own transmissions there is also
RSSI and BER information available.
{{< figure src="nxt07_02.jpg" alt="7 inch dashboard" caption="" >}}
The duration of the transmission does not match with the duration on the web
dashboard, but it gives a simple idea of its lenght. I'm not a good programmer
so I'll let this for now.
## Resources
- <https://www.on7lds.net/42/nextion-displays>