Topics

Will Nextion Screen work with dvswitch?

John K1IF
 

Just wondering if anyone has wired a nextion directly to rpi to get info sent to Nextion screen? If so what files would have to be modified if any?

I'm using rpi with dvsm as a stand alone way to access digi modes (not cross linked to asl (yet)





Thanks K1if John

Steve N4IRS
 

As it happens, I was playing with this over the weekend. I have to make sure my display is good.
Changes to MMDVM_Bridge.ini

[General]
Display=Nextion

[Nextion]
Port=/dev/ttyAMA0
Brightness=50
DisplayClock=1
UTC=0
#Screen Layout: 0=G4KLX 2=ON7LDS
ScreenLayout=2
IdleBrightness=20

Set above port to match your system.
Please let me know what you get.
73, Steve N4IRS



On 5/21/2020 9:23 AM, John K1IF via groups.io wrote:
Just wondering if anyone has wired a nextion directly to rpi to get info sent to Nextion screen? If so what files would have to be modified if any?

I'm using rpi with dvsm as a stand alone way to access digi modes (not cross linked to asl (yet)





Thanks K1if John

John K1IF
 

Hello Steve

Unfortunately, the display is not receiving any data from the pi. I am using a 3.5 enhanced (k) version. I am not sure how to load the driver for it. I did try both 2 and 3 for screen layout. I believe I need layout 3 but not sure how to get the driver loaded. Maybe that's why its not working for me? Maybe I can find a tft file for screenlevel 2

Steve N4IRS
 

I need to check my display on a working MMDVMHost system first. Once I'm sure the display is good, I'll look into using the display(s) with MMDVM_Bridge. Should know more this weekend.

Steve

On 5/21/2020 1:47 PM, John K1IF via groups.io wrote:
Hello Steve

Unfortunately, the display is not receiving any data from the pi. I am using a 3.5 enhanced (k) version. I am not sure how to load the driver for it. I did try both 2 and 3 for screen layout. I believe I need layout 3 but not sure how to get the driver loaded. Maybe that's why its not working for me? Maybe I can find a tft file for screenlevel 2

John K1IF
 

sounds good Steve!
Oh I checked on my dvmega cast and i did see a stanza in my dvmega cast that is:
NextionDriver
Port
LogLevel
DataFilesPath
GroupsFile
DMRidFile
removeDim
SleepWhenInactive












Steve N4IRS
 

Then /dev/ttyUSB1 should be your port for the [Nextion] stanza

On 5/21/2020 2:09 PM, John K1IF via groups.io wrote:
sounds good Steve!
Oh I checked on my dvmega cast and i did see a stanza in my dvmega cast that is:
NextionDriver
Port
LogLevel
DataFilesPath
GroupsFile
DMRidFile
removeDim
SleepWhenInactive













John K1IF
 

NO Joy here Steve, will be interesting to see what you find out.


cheers K1IF

Steve N4IRS
 

John,
I confirmed your finding this morning. We have enabled support for the serial displays including Nextion. Please be aware that you will only see traffic from the native networks, BM, P25 reflector etc. This will be changed as part of the changes for the dashboard.

I have pushed the armhf binary up to github.

73, Steve N4IRS

On 5/23/20 1:47 AM, John K1IF via groups.io wrote:
NO Joy here Steve, will be interesting to see what you find out.


cheers K1IF

Tom Corcoran
 
Edited

Amazing … worked first time … usually takes me a couple of loops around the block to make things work! I did add the Nextion and Nextion Driver stanzas to MMDVM_Bridge.ini Also used ttyUSB0
--
Tom VE3NY

John K1IF
 

can I just get by update and upgrade?


thanks John K1IF

Steve N4IRS
 

No,
I have not pushed to apt yet.

On 5/23/20 4:54 PM, John K1IF via groups.io wrote:
can I just get by update and upgrade?


thanks John K1IF

John K1IF
 

sorry to be a pain...
 not sure Ive done this correctly.
I went to github and found the file MMDVM_Bridge.armhf I placed the file in /op/MMDVM_Bridge/  
I then renamed the MMDVM_Bridge to MMDVM_Bridge.OLD and renamed the armhf to MMDVM_Bridge

I tried with AMA0 after hooking up to GPIO
also with ttl to usb converter and changed to USB0 still getting nothing after rebooting each way,

thanks John

Steve N4IRS
 

is MMDVM_Bridge executable?
root@dvswitch-server:/opt/MMDVM_Bridge# ls -la MMDVM_Bridge
-rwxr-xr-x 1 root root 3930476 May 23 19:33 MMDVM_Bridge

Is MMDVM_Bridge running?

root@dvswitch-server:/opt/MMDVM_Bridge# systemctl status mmdvm_bridge
● mmdvm_bridge.service - MMDVM_Bridge Service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-23 19:35:39 EDT; 53s ago
  Process: 12839 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCCESS)
 Main PID: 12841 (MMDVM_Bridge)
    Tasks: 3 (limit: 2200)
   Memory: 15.3M
   CGroup: /system.slice/mmdvm_bridge.service
           └─12841 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini

May 23 19:35:39 dvswitch-server systemd[1]: Starting MMDVM_Bridge Service...
May 23 19:35:39 dvswitch-server systemd[1]: Started MMDVM_Bridge Service.

Or, look at it another way:
root@dvswitch-server:/opt/MMDVM_Bridge# ps ax | grep MMDVM_Bridge
12511 pts/1    S+     0:00 tail -f /var/log/mmdvm/MMDVM_Bridge-2020-05-23.log
12841 ?        Ssl    0:07 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini

From MMDVM_Bridge.ini

General]
Display=Nextion

Nextion]
Port=/dev/ttyUSB0
Brightness=50
DisplayClock=1
UTC=0
IdleBrightness=20
ScreenLayout=0

From the log:

I: 2020-05-23 23:35:39.299 Display Parameters
I: 2020-05-23 23:35:39.299     Type: Nextion
I: 2020-05-23 23:35:39.299     Port: /dev/ttyUSB0
I: 2020-05-23 23:35:39.299     Brightness: 50
I: 2020-05-23 23:35:39.299     Clock Display: yes
I: 2020-05-23 23:35:39.299     Display UTC: no
I: 2020-05-23 23:35:39.299     Idle Brightness: 20
I: 2020-05-23 23:35:39.299     Screen Layout: G4KLX (Default)



On 5/23/20 6:54 PM, John K1IF via groups.io wrote:
sorry to be a pain...
 not sure Ive done this correctly.
I went to github and found the file MMDVM_Bridge.armhf I placed the file in /op/MMDVM_Bridge/  
I then renamed the MMDVM_Bridge to MMDVM_Bridge.OLD and renamed the armhf to MMDVM_Bridge

I tried with AMA0 after hooking up to GPIO
also with ttl to usb converter and changed to USB0 still getting nothing after rebooting each way,

thanks John

Steve N4IRS
 

I forgot:
make MMDVM_Bridge executable:
chmod +x MMDVM_Bridge

Steve

On 5/23/20 6:54 PM, John K1IF via groups.io wrote:
sorry to be a pain...
 not sure Ive done this correctly.
I went to github and found the file MMDVM_Bridge.armhf I placed the file in /op/MMDVM_Bridge/  
I then renamed the MMDVM_Bridge to MMDVM_Bridge.OLD and renamed the armhf to MMDVM_Bridge

I tried with AMA0 after hooking up to GPIO
also with ttl to usb converter and changed to USB0 still getting nothing after rebooting each way,

thanks John

John K1IF
 

It came to life 1 time and was working but there were Fusion screens popping up even though it was set on dmr bm the android was quiet but fusion screen was coming up with callsigns. i rebooted and cant get to populate screen anymore.

Last login: Sat May 23 22:12:53 2020 from 192.168.1.8
root@testdvswitch:~# cd /opt/MMDVM_Bridge
root@testdvswitch:/opt/MMDVM_Bridge# ps ax | grep MMDVM_Bridge
  514 ?        Rsl    3:59 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini
  630 pts/0    S+     0:00 grep MMDVM_Bridge
root@testdvswitch:/opt/MMDVM_Bridge# systemctl status mmdvm_bridge
? mmdvm_bridge.service - MMDVM_Bridge Service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-23 22:00:49 EDT; 21min ago
  Process: 503 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge: [`date +%T.%3N`]" >> /var/log/n
 Main PID: 514 (MMDVM_Bridge)
    Tasks: 3 (limit: 2200)
   Memory: 19.7M
   CGroup: /system.slice/mmdvm_bridge.service
           └─514 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini

May 23 22:00:49 testdvswitch systemd[1]: Starting MMDVM_Bridge Service...
May 23 22:00:49 testdvswitch systemd[1]: Started MMDVM_Bridge Service.

Steve N4IRS
 

MMDVM_Bridge is typically connected and running all modes. You switch modes "presented" to DVSM by Analog_Bridge. The display is shwing all traffic MB is seeing. You can try disconnecting all other modes when using a single mode. What I mean by disconnect it to go to each mode and do a disconnect or unlink. The only connect one mode at a time.

Steve

On 5/23/20 10:33 PM, John K1IF via groups.io wrote:
It came to life 1 time and was working but there were Fusion screens popping up even though it was set on dmr bm the android was quiet but fusion screen was coming up with callsigns. i rebooted and cant get to populate screen anymore.

Last login: Sat May 23 22:12:53 2020 from 192.168.1.8
root@testdvswitch:~# cd /opt/MMDVM_Bridge
root@testdvswitch:/opt/MMDVM_Bridge# ps ax | grep MMDVM_Bridge
  514 ?        Rsl    3:59 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini
  630 pts/0    S+     0:00 grep MMDVM_Bridge
root@testdvswitch:/opt/MMDVM_Bridge# systemctl status mmdvm_bridge
? mmdvm_bridge.service - MMDVM_Bridge Service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-23 22:00:49 EDT; 21min ago
  Process: 503 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge: [`date +%T.%3N`]" >> /var/log/n
 Main PID: 514 (MMDVM_Bridge)
    Tasks: 3 (limit: 2200)
   Memory: 19.7M
   CGroup: /system.slice/mmdvm_bridge.service
           └─514 /opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini

May 23 22:00:49 testdvswitch systemd[1]: Starting MMDVM_Bridge Service...
May 23 22:00:49 testdvswitch systemd[1]: Started MMDVM_Bridge Service.

John K1IF
 
Edited

Makes sense Steve.

After troubleshooting why my screen just sat idle I finally figured it out! I had set up Analog Bridge to use DV3000, well it was on USB0 same as Nextion.
enough said  All working now on USB

However, I am getting nothing on AMA0 and would like to enclose all in a c4labs box and not have wires sticking out from the ttl connector. I've edited the raspi-config per instx i've seen but still nothing. Any ideas?

thanks for your patience

73 K1IF

Jason Turning
 


Swapped out the executable and got it working here too...Jason WY7JT 

IMG_20200525_184853.jpg

John K1IF
 

Jason Wy7JT
 
Are you connecting to USB or GPIO?

정성환
 

Is this picture in transmitting your signal or receiving other signal?