ppedro74 / Arduino-SerialCommands

BSD 3-Clause "New" or "Revised" License
87 stars 29 forks source link

4xUART (DUE Board) 7 Commands --> unrecognized Command #16

Open PatrikRindlisbacher opened 2 years ago

PatrikRindlisbacher commented 2 years ago

Different number of commands in the URAT instances --> unrecognized Command Every single UART instance runs error-free.

I've already invested a lot of hours to pinpoint the problem

I suspect it has something to do with the pointers. (cmd / SerialCommand) I think the cmds mix up in the different instances

The group is defined similarly for all 4 UARTs (serial_commands1 serial_commands2 serial_commands3) with partially identical, additional or missing commands.

void setup() { Serial.begin(115200); // USB serial_commands0.AddCommand(&cmdmotors); // M = Motoren serial_commands0.AddCommand(&cmdStopp); // S = Stopp serial_commands0.AddCommand(&cmdheben); // H = Heben serial_commands0.AddCommand(&cmdlicht); // L = Licht serial_commands0.AddCommand(&cmdabstand); // A = Abstand !!! serial_commands0.AddCommand(&cmddanger); // G = Gefahrenstufe !!! serial_commands0.AddCommand(&cmd_watchdogboards); // W = Watchdog Empfang
serial_commands0.SetDefaultHandler(cmd_unrecognized); // Unbekannte Befehle von UART 0 USB

Many thanks to the programmer for a job well done. `:-)```

PatrikRindlisbacher commented 2 years ago

main.zip Here is a sample code simplified to the essentials.

M --> work S --> work H --> work L --> work Unrecognized command [A] Unrecognized command [G] W --> work

Freue mich über eine Reaktion des Entwicklers

PatrikRindlisbacher commented 1 year ago

It is a pity that this library is no longer maintained.