mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-24 09:35:40 +08:00
103 lines
2.3 KiB
Plaintext
103 lines
2.3 KiB
Plaintext
Nextion Display Layouts by ON7LDS (for MMDVMHost)
|
|
=================================================
|
|
|
|
####################################
|
|
# #
|
|
# screenLayout 3 & 4 files (-L3) #
|
|
# #
|
|
# DIY layouts #
|
|
# #
|
|
####################################
|
|
|
|
The screenlayout has to be selected with the parameter ScreenLayout in the
|
|
MMDVM.ini file under the Nextion section. This way, the extra functions
|
|
are activated.
|
|
0 = auto (future use, for now it's G4KLX layout)
|
|
1 = G4KLX layout
|
|
2 = ON7LDS layout (see README-L2)
|
|
3 = DIY layout
|
|
4 = DIY layout Hig Speed
|
|
|
|
screenLayout 3 and 4 are the same, but selecting 3, MMDVMHost wil communicate
|
|
at 9600bps with the display and selecting 4 will set the baudrate to 115200.
|
|
If you select 4 (115200bps) *you* have to program your Nextion to default to
|
|
that baudrate.
|
|
|
|
|
|
DIY layouts
|
|
-----------
|
|
|
|
When selecting this layout, all processing can and should be done in the
|
|
Nextion display itsself.
|
|
Whenever MMDVMHost sends new data to the screen, it also sends information
|
|
about wat was sent:
|
|
|
|
* global variable MMDVM.cmd will hold the number of the changed field
|
|
(not the object id ! 0 for t0, 1 for t2, etc.)
|
|
* global variable MMDVM.status will hold the status of the change
|
|
|
|
Then MMDVMHost activates the Touch Press Event of object 'S0' of the
|
|
active page.
|
|
In this event procedure, all processing can be done.
|
|
|
|
Check the Touch Press Event of object 'S0' of the DMR page of the example
|
|
HMI file. The code there will change colors and fonts of the TA on
|
|
the DMR page when it arrives.
|
|
|
|
|
|
Status codes that will be sent:
|
|
-------------------------------
|
|
The status code gives more information about what was sent in the
|
|
changed field.
|
|
1 : IDLE
|
|
2 : CW
|
|
3 : ERROR
|
|
4 : LOCKOUT
|
|
5 : END
|
|
11 : listening
|
|
12 : ID
|
|
13 : TA
|
|
14 : call end
|
|
|
|
|
|
|
|
Fields on the pages, used by MMDVMHost
|
|
--------------------------------------
|
|
MMDVM
|
|
t0 : owner call & ID / errortext LOCKOUT
|
|
t1 : status / ERROR
|
|
t2 : date & time
|
|
t3 : ip address
|
|
|
|
D-Star
|
|
t0 : type my1 my2
|
|
t1 : your
|
|
t2 : reflector
|
|
t3 : rssi
|
|
t4 : ber
|
|
|
|
DMR
|
|
t0 : src1 id / call / TA
|
|
t1 : dst
|
|
t2 : src2 id / call / TA
|
|
t3 : dst
|
|
t4 : rssi1
|
|
t5 : rssi2
|
|
t6 : ber1
|
|
t7 : ber2
|
|
|
|
YSF
|
|
t0 : type,source
|
|
t1 : dst
|
|
t2 : src
|
|
t3 : rssi
|
|
t4 : ber
|
|
|
|
P25
|
|
t0 : type,source
|
|
t1 : dst
|
|
t2 : rssi
|
|
t3 : ber
|
|
|
|
|