This week, I downloaded a Nextion Display layout created by PD0DIB and modified it to include a system control page and an information page. After trying out the Nextion Driver Installer created by ON7LDS, I could get the screen to display information one time, but after switching pages, the data would disappear. To solve this problem, I looked at the Nextion Driver Installer script and followed most of the steps manually. Doing it this way also allowed me to switch the displayed CPU temperature from celsius to Fahrenheit. This pretty much solved the issues with the display.
In the Nextion Driver Installer Script, I followed this section:
if [ "$ND" = "" ]; then echo "+ No NextionDriver found, trying to install one." compileer $SYSTEMCTL $NDSTOP $MMDVMSTOP killall -q -I MMDVMHost killall -9 -q -I MMDVMHost if [ "$CHECK" = "PISTAR" ]; then cp $DIR"/mmdvmhost.service.pistar" /usr/local/sbin/mmdvmhost.service fi if [ "$CHECK" = "JESSIE" ]; then cp $DIR"/mmdvmhost.service.jessie" /lib/systemd/system/mmdvmhost.service cp $DIR"/mmdvmhost.timer.jessie" /lib/systemd/system/mmdvmhost.timer cp $DIR"/nextion-helper.service.jessie" /lib/systemd/system/nextion-helper.service if [ -e /etc/systemd/system/nextion-helper.service ]; then echo "+ there is already a link /etc/systemd/system/nextion-helper.service" echo "+ I'll leave it like that." else ln -s /lib/systemd/system/nextion-helper.service /etc/systemd/system/nextion-helper.service fi fi cp NextionDriver $BINDIR echo "+ Check version :" NextionDriver -V checkversion helpfiles echo -e "+ NextionDriver installed\n" echo -e "+ -----------------------------------------------" echo -e "+ We will now start the configuration program ...\n" $DIR/NextionDriver_ConvertConfig $CONFIGDIR$CONFIGFILE herstart exit fi
Basically all I did was the following:
- Stop MMDVMHost with “sudo service mmdvmhost stop”
- Download the Nextion Driver from github into the /tmp folder
rpi-rw cd /tmp git clone https://github.com/on7lds/NextionDriver.git cd NextionDriver
- Compile the driver by running “make”
- Then you should end up with a binary called “NextionDriver”.
- Copy the binary into /usr/local/bin with
sudo cp NextionDriver /usr/local/bin/NextionDriver
- This was all done AFTER running NextionDriverInstaller.sh on its own. So, my installation had all the helper files already installed before I ran through these commands.
The hotspot/repeater doesn’t startup right away like it does at home. I’m guessing this is because of the enterprise WiFi at my University. Sometimes the repeater starts right up and works perfectly and other times it does not work.
Problem 2 Solutions
- Create a simple script to reset the WiFi connection on the Pi and create a button on the Nextion Display Layout that would allow me to run this script.
- Use the same script, but have it run after the Pi is completely booted and add a line to restart the MMDVMHost service.
I could not always access the PiStar dashboard through the ethernet/crossover cable or through the University’s WiFi. Again sometimes I had no issues and other times it would not connect. At first I thought this was due to having both the ethernet and the WiFi running on the Pi, but after removing the ethernet, I had the same issue. I’m growing more suspicious of the enterprise WiFi. As for it not working over the crossover cable, I believe this is due to the fact that the computer is addressing itself with a self-assigned IP address (a 169 address). The problem appears intermittent.
Problem 3 Solutions
- Use the solutions for problem 2 as I believe the two problems may be related.
- Create a static IP on the Pi and the Computer for the ethernet connection.
- Change the PiStar firewall rule for the dashboard from “Private” to “Public.”
- Enable DMR and configure it.
- Install the Brandmeister control panel on PiStar.
- Program the DMR Radio.
- Create a blog post about programming the DSTAR and DMR radios.
I also wanted to create a 3D printed case for this project, however I am not sure I will have enough time to do that, especially with encountering these problems.