tomaskovacik / vwcdavr

AVR alternative to vwcdpic HW+SW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial Print and theyre meanings

DaMusikant opened this issue · comments

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

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.

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

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

did you get this text?

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

Thank you very much :)

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 :)