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

Serial Print and theyre meanings #16

Open
DaMusikant opened this issue Feb 16, 2021 · 7 comments
Open

Serial Print and theyre meanings #16

DaMusikant opened this issue Feb 16, 2021 · 7 comments

Comments

@DaMusikant
Copy link

Hi,
you already helped me lot but I'm again stuck in the middle of the code.

The problem is, that the Arduino is sending some messages that are not encodible. Every third message I got a "007904FB" if I am in CD Changer mode with my radio and "007901FE" if I am not in CD Changer mode.

If I press down the button to go into CD Changer mode I got

MENABLE007904FBMENABLE007904FBMENABLEMENABLE007904FBMENABLE

I think those are current status updates. But the problem is that they are also going in between the main messages like 007904FBLIST2

For my purpose I don't need those messages but I didn't found any possibility to disable them.

Can you help me?

Thank you and greetings

@tomaskovacik
Copy link
Owner

commands are decoded here:

//-----------------------------------------------------------------------------

but only in 1st byte is 0x53 2nd is 0x2c 👍

put some debug info there and check if it is dumped in ScanCommandBytes() with DumpFullCommand() or it is dumped in DecodeCommand()

but I think it is wrong command send by radio and ScanCommandBytes() did not understand it, because DecodeCommand() should mark dash before unknown cmd and newline after this cmd.

@DaMusikant
Copy link
Author

Hi, after a long period of try and error I still stuck. I'm new to coding and all that stuff, thats properly the main problem ;)
I tried to insert some debug infos but nothing changed, or the whole code was getting faulty.
To my understand, the ScanCommandBytes checks if the commands are correct. If not it is waiting until a good one is arriving. Right?

Another idea (?): It is working almost fine, the only problem are those commands. So if it is possible to just throw them into the bin and use only the ones, that we are understand, it would work fine. But on the search for this possibility I got also stuck.

Can you help another time? Thank you

@tomaskovacik
Copy link
Owner

standard code should output each 10s on the serial terminal "Audi Concert I Multimedia Gateway Ver."

did you get this text?

@DaMusikant
Copy link
Author

I get the text only every startup of the whole system.
The message pops up every 4th second btw, no matter in which mode (CDC or FM) I am

@tomaskovacik
Copy link
Owner

tomaskovacik commented Aug 5, 2021 via email

@DaMusikant
Copy link
Author

Thank you very much :)

@DaMusikant
Copy link
Author

Hi, I found another method to avoid the problem, just ignore the commands on the other end of the serial end. But thank you very much :)

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

2 participants