Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M17 Support #32

Open
MW0MWZ opened this issue Feb 18, 2024 · 4 comments
Open

M17 Support #32

MW0MWZ opened this issue Feb 18, 2024 · 4 comments

Comments

@MW0MWZ
Copy link

MW0MWZ commented Feb 18, 2024

This is more of a question than an issue...

Is anything additional required to support M17 mode in NextionDriver?

@f5swb
Copy link

f5swb commented Feb 18, 2024

hello andy,

the actual version of the ON7LDS driver seems not support M17, perhaps the autor could update his driver ?

if (strncmp(TXbuffer,"page ",5)==0) {
if (sleepWhenInactive) {
sendCommand("sleep=0"); usleep(1000);
sprintf(text,"ussp=%d",sleepWhenInactive);
sendCommand(text);
}
if (strcmp(TXbuffer,"page MMDVM")==0) {
page=0;
}
if (strcmp(TXbuffer,"page DStar")==0) {
page=1;
}
if (strcmp(TXbuffer,"page DMR")==0) {
page=2;
}
if (strcmp(TXbuffer,"page YSF")==0) {
page=3;
}
if (strcmp(TXbuffer,"page P25")==0) {
page=4;
}
if (strcmp(TXbuffer,"page NXDN")==0) {
page=5;
}
if (strcmp(TXbuffer,"page POCSAG")==0) {
page=6;
}
}

if ((strncmp(TXbuffer,"page ",5)==0)&&(changepages==1)) {
    strcat(TXbuffer,"0");
}

@on7lds
Copy link
Owner

on7lds commented Feb 21, 2024

I'll check it out

@on7lds
Copy link
Owner

on7lds commented Feb 28, 2024

@f5swb : can you test M17 communications ?

it should be enough to add

        if (strcmp(TXbuffer,"page M17")==0) {
            page=7;
        }

after line 76 in basicFunctions.c
and set the corresponding bit in the config of SendUserDataMask to make the lookup work.

If it functions as should, I'll add it. If not, please send me detailled logfile of the communication with the display

@f5swb
Copy link

f5swb commented Feb 28, 2024

Hello, I will test it as soon as possible !
Many thanks :)
73's F5SWB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants