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

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

Open
PatrikRindlisbacher opened this issue Dec 20, 2021 · 2 comments
Open

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

PatrikRindlisbacher opened this issue Dec 20, 2021 · 2 comments

Comments

@PatrikRindlisbacher
Copy link

PatrikRindlisbacher commented Dec 20, 2021

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_commands_1_ serial_commands_2_ serial_commands_3_)
with partially identical, additional or missing commands.

void setup() {
Serial.begin(115200); // USB
serial_commands_0_.AddCommand(&cmd_motors_); // M = Motoren
serial_commands_0_.AddCommand(&cmd_Stopp_); // S = Stopp
serial_commands_0_.AddCommand(&cmd_heben_); // H = Heben
serial_commands_0_.AddCommand(&cmd_licht_); // L = Licht
serial_commands_0_.AddCommand(&cmd_abstand_); // A = Abstand !!!
serial_commands_0_.AddCommand(&cmd_danger_); // G = Gefahrenstufe !!!
serial_commands_0_.AddCommand(&cmd_watchdog_boards_); // W = Watchdog Empfang
serial_commands_0_.SetDefaultHandler(cmd_unrecognized); // Unbekannte Befehle von UART 0 USB

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

@PatrikRindlisbacher
Copy link
Author

PatrikRindlisbacher commented Dec 20, 2021

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
Copy link
Author

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

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

1 participant