Need an HMI file - Anything recent?

All things relating to the Nextion Screen(s)
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Need an HMI file - Anything recent?

Post by kc7ve »

I have gone to a couple of Github sites and downloaded some HMI to test the Nextion editor, and the ones I tried seem to indicate "old version" etc.

What is the best place to get recent files that might work for my system?

I'm using a duplex (although I don't care if it's in simplex) pi-star, and I have a 3.2" display that I wish to use instead of the teenie-tiny display on the pi-star.

I need a decent HMI file that will allow me to display the usual stuff.

Mike
KC7VE
Amateur Radio 40+ years
USMC 1963-1967
KE7FNS
Pi-Star Team
Posts: 1797
Joined: Wed Apr 17, 2019 11:11 pm

Re: Need an HMI file - Anything recent?

Post by KE7FNS »

If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Re: Need an HMI file - Anything recent?

Post by kc7ve »

Getting closer, but now I'm hung up at a splash screen.

I have TX to RX and RX to TX like the tutorials say.
I've set the configuration to Nextion, and driver to ON7LDS L3 HS. But I'm not sure of my connection nor the Port. One tuturial says to set it to USB (not an option in the dropdown). Another says Modem. But I have tried all and none work.

So that leaves me with my connection. I downloaded the display HMI using a USB to TTL adapter. On that adapter there are RX and TX. So, I tried to tap into the GPIO to the RX and TX which I assume would normally go to the Nextion connector (which isn't on this board).

Can anyone see why this isn't working?

Here is the setup: Image
Amateur Radio 40+ years
USMC 1963-1967
KE7FNS
Pi-Star Team
Posts: 1797
Joined: Wed Apr 17, 2019 11:11 pm

Re: Need an HMI file - Anything recent?

Post by KE7FNS »

kc7ve wrote: Tue Nov 24, 2020 9:22 pm Getting closer, but now I'm hung up at a splash screen.
Seems you are working backwards. You should have a working Nextion setup and THEN load different .tft/.hmi's to see how they function.

Or you can load the .tft's in the simulator to see what they look like.
kc7ve wrote: Tue Nov 24, 2020 9:22 pm I have TX to RX and RX to TX like the tutorials say.
I've set the configuration to Nextion, and driver to ON7LDS L3 HS.
ON7LDS L3 HS is ONLY valid for USB/TTL adapters, or directly connected to the GPIO of the RPi (WHILE using a USB MMDVM). You also HAVE to set the default baud rate of the Nextion to 115200 or theres a speed conflict.

ON7LDS L3 is 9600 baud and the default baud rate of the Nextion must be 9600.

kc7ve wrote: Tue Nov 24, 2020 9:22 pm But I'm not sure of my connection nor the Port. One tuturial says to set it to USB (not an option in the dropdown). Another says Modem. But I have tried all and none work.
The port is dependent on which connection you are using.

If you use a USB/TTL adapter the port would be /dev/ttyUSBX where X is a number. The first device is normally 0, and the next 1 and so on.

If you use a Nextion port on the MMDVM it would be 'modem', all lower case, no slashes, and no dev

kc7ve wrote: Tue Nov 24, 2020 9:22 pm So that leaves me with my connection. I downloaded the display HMI using a USB to TTL adapter. On that adapter there are RX and TX. So, I tried to tap into the GPIO to the RX and TX which I assume would normally go to the Nextion connector (which isn't on this board).

Can anyone see why this isn't working?

Here is the setup:
No, you cannot do that. :shock:

Serial ports are designed to have only ONE device at each end. When you start adding devices you wind up with major issues.

Since your board doesn't appear to have a Nextion port (which is the first time I've seen that PCB) you need to use a USB/TTL adapter.

It appears you are using a RPi Zero W. So in order for a USB/TTL to operate properly you need a microUSB OTG adapter and it HAS to be installed on the correct microUSB port. There are two, one of them is strictly for power, it has no data capabilities.

https://en.wikipedia.org/wiki/Raspberry ... nd_ICs.svg

When you have the USB/TTL adapter operating correctly, you can see it in the OS using

Code: Select all

lsusb
and

Code: Select all

ls /dev/ttyUSB*
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Re: Need an HMI file - Anything recent?

Post by kc7ve »

Since this was not working, I decided to connect to the pi using the OTG port. That allows the radio to work but still nothing on the display.
Everything works but the display. Wierd that no one knows what's going on. I can't be the first person to ever try to put this 3.2" display on the pi-star duplex board.

Image
Amateur Radio 40+ years
USMC 1963-1967
KE7FNS
Pi-Star Team
Posts: 1797
Joined: Wed Apr 17, 2019 11:11 pm

Re: Need an HMI file - Anything recent?

Post by KE7FNS »

kc7ve wrote: Wed Nov 25, 2020 7:07 pm Since this was not working, I decided to connect to the pi using the OTG port. That allows the radio to work but still nothing on the display.
Everything works but the display. Wierd that no one knows what's going on. I can't be the first person to ever try to put this 3.2" display on the pi-star duplex board.

Image
It can only be a few things, you either have it configured incorrectly or you have it hooked up incorrectly.

Does the OS report the USB connected device?
What is the result of 'lsusb'?

Zoom in on the USB/TTL adapter connections and take a screen shot, I need to be able to see the silkscreen text clearly.
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Re: Need an HMI file - Anything recent?

Post by kc7ve »

It can only be a few things, you either have it configured incorrectly or you have it hooked up incorrectly.
I agree completely and I do suspect it is something I'm not understanding. :)
Does the OS report the USB connected device?-
Which OS? Pi?
I'm sure it's seeing the USB. Prior to using the OTG connector, there was no USB option in the Port. After I plugged in the adapter, into that slot, USB0 showed up as an option. But what "report" are you referring to?
What is the result of 'lsusb'?
I'm no even sure what you mean here. Obviously, I need to study up on all of this.

quote]Zoom in on the USB/TTL adapter connections and take a screen shot, I need to be able to see the silkscreen text clearly.[/quote]I'll take a photo and update in a few minutes. I really do appreciate you trying to help with this. I'll buy you a dinner, if you figure it out. :-)

Image

Image
Amateur Radio 40+ years
USMC 1963-1967
KE7FNS
Pi-Star Team
Posts: 1797
Joined: Wed Apr 17, 2019 11:11 pm

Re: Need an HMI file - Anything recent?

Post by KE7FNS »

kc7ve wrote: Wed Nov 25, 2020 7:37 pm Which OS? Pi?
Yes. Raspbery Pi OS, aka Raspbian
kc7ve wrote: Wed Nov 25, 2020 7:37 pm I'm sure it's seeing the USB. Prior to using the OTG connector, there was no USB option in the Port. After I plugged in the adapter, into that slot, USB0 showed up as an option. But what "report" are you referring to?

I'm no even sure what you mean here. Obviously, I need to study up on all of this.
From the command line you type

Code: Select all

lsusb
That will display all of the detected USB related devices.

To get to the command line you either install a monitor and keyboard (and before you reply with "I only have one USB connection", you use a hub to get more USB ports) or ssh into it using a ssh client or use the ssh access in the dashboard.

If the dashboard is reporting /dev/ttyUSB0, then its probably working correctly but lsusb is the best way to see if the OS see's the device or not.
kc7ve wrote: Wed Nov 25, 2020 7:37 pm I'll take a photo and update in a few minutes. I really do appreciate you trying to help with this. I'll buy you a dinner, if you figure it out. :-)

Image

Image
Looks like its hooked up correctly TX to RX and RX to TX, so if lsusb shows a USB/TTL adapter chip then it can only be one thing.

The default port speed of the Nextion doesn't match what you have set in the pi-star configuration.

ON7LDS L3 HS needs 115200

ON7LDS L3 needs 9600

To set the default Nextion baudrate it'd probably be easiest for you to just plug the USB/TTL adapter into a windows box and use the Nextion editor simulator.

That would also confirm that the screen actually works with that USB/TTL adapter.

I assume you need instructions on how to do all of that right?
If someones previous actions are any indication of their future actions, then I predict the deletion and removal of access will happen at any moment. 7-11-2020.

"07/13/20 This Website Has Been Taken Down" ... again :lol:
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Re: Need an HMI file - Anything recent?

Post by kc7ve »

I assume you need instructions on how to do all of that right?
You know me well.

Thanks for the help. I'll digest that and do a little more research. The baud rate is problem, but I'm sure I tried both. One one of them should have worked.

What I think what I need to do now is understand how all this works. And I need to understand the whole Nextion download process. Sometimes I get a connection failed. Then there is the TFT file and the HMI file. I thought I would be just using HMI but now I read about compiling TFT.

I really haven't played around with the command line. At least not on this pi. I have with others. I just tried to jump to the end of the book before reading the rest.:)

I'm out running errands right now. Picked up an OTG cable in case my adapter wasn't the right way to connect.
Amateur Radio 40+ years
USMC 1963-1967
kc7ve
Posts: 23
Joined: Thu Nov 19, 2020 4:01 am

Re: Need an HMI file - Anything recent?

Post by kc7ve »

What I really would like is something that describes this whole architecture. For instance, something I could read that might have educated me on how the display interfaces to the pi-star.

I know on the simplex versions of what I have, there is a Nextion connector with 5V, RX, TX, and Ground. If I had one of those boards, I could have just connected my display to that and would be done.

Mine doesn't have that. But TX and RX do exist on GPIO. It's not obvious to me why I can't just use those. Likely TX and RX on the connector I dont have is a different RX TX than on GPIO.

So, apparently, the only communications possible to the Nextion, is via a USB PORT and I have only one of those. But that port is used as serial, not USB, hence the converter. Seems I should be able to tap into the serial data somewhere and just send that directly to display without all the OTG and adapters.

It would be easier just to buy a large screen pi-star but the point of this exercise is to understand how it all works. In fact, I do have a large screen pi-star too. I'm just using the small screen version to learn how to do this.
Amateur Radio 40+ years
USMC 1963-1967
Post Reply