on7lds / NextionDriver

Driver program to connect MMDVMhost with Nextion Displays, adding extra functionality
33 stars 33 forks source link

M17 Support #32

Open MW0MWZ opened 5 months ago

MW0MWZ commented 5 months ago

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

Is anything additional required to support M17 mode in NextionDriver?

f5swb commented 5 months ago

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 commented 5 months ago

I'll check it out

on7lds commented 5 months ago

@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 commented 5 months ago

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