tomaskovacik / vwcdavr

AVR alternative to vwcdpic HW+SW
53 stars 35 forks source link

CDC Emulator - sw and hw solution #13

Closed maro159 closed 3 years ago

maro159 commented 3 years ago

Hello,

at the beginning I would like to appreciate your work with VW CDC projects.

I am going to build complete CDC Emulator for VW Gamma IV with aux + bluetooth input for myself. I have been digging in your repositories for a bit. I was going to use one of these projects, but I am not so sure if they are up-to-date (I also found it difficult to buy s3860m-s)

Would you mind answering a few questions?

Thanks in advance!

tomaskovacik commented 3 years ago

do not use s3860m-s, I try it and have to replace it with BK8000L

BM20 is superb, but I only use it with stm32 (the project is in beta stage, but it will be opensource)

I add another one, which uses BK8000L, and it wok, I have few PCBs made for it, the only problem is that I did not swap serial lines, so some jumper wires are required: https://github.com/tomaskovacik/vwcdavr/tree/master/HW/arduino_based_cdc_emulator/atmegax8_with_F6188

maro159 commented 3 years ago

Thanks for your answer.

Generally I am looking for a working CDC emulator with bt module, which supports microphone and controlling play, pasue, skip, prev from the radio panel, optionally with aux input and possibility to change its name. I may pay for a one that works - assembled or just PCB, doesn't really matter.

If these few PCBs you mentioned, can do this and have only mistake with non-crossed UART lines, I think it is what I'd love to buy.

I am really sorry for taking your time asking so many questions.

Thank you for your work once again!

tomaskovacik commented 3 years ago

hello,

no problem, it is not refined project, it was more like the prototype, but its workout really good :)

if you have time, I can drop you some boards for module into the mail and you can test it :o) unfortunately, I put all boards for ovc chips into recycle bin so no proper way to test it again. After a few years of development of other boards, I am pretty sure problem was the design of the board

regarding SW, I have the special version, but it has simply changed pins for dataout,datain and clk, and has changed output strings on serial line to AT commands, I use this SW as the base:

https://github.com/tomaskovacik/vwcdavr/tree/master/CDC_emulator/cdc_arduino_ported_k9spud_vwcdpic_just_8bit_timers

define RADIO_COMMAND PB0 //ICP

define RADIO_COMMAND_DDR DDRB

define RADIO_COMMAND_PORT PORTB

define RADIO_COMMAND_PIN PINB

define RADIO_CLOCK PD4//PB5

define RADIO_CLOCK_DDR DDRD//DDRB

define RADIO_CLOCK_PORT PORTD//PORTB

define RADIO_DATA PC3//PB3

define RADIO_DATA_DDR DDRC//DDRB

define RADIO_DATA_PORT PORTC//PORTB

const uint8_t sDATAERR[] PROGMEM = ""; const uint8_t sOVERFLOW[] PROGMEM = ""; const uint8_t sMDISABLE[] PROGMEM = "AT+MC\r\n"; const uint8_t sMENABLE[] PROGMEM = "AT+MA\r\n"; const uint8_t sMINQUIRY[] PROGMEM = ""; const uint8_t sPRV_LIST[] PROGMEM = "AT+MA\r\n"; const uint8_t sNXT_LIST[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST1[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST2[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST3[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST4[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST5[] PROGMEM = "AT+MA\r\n"; const uint8_t sLIST6[] PROGMEM = "AT+MA\r\n"; const uint8_t sRANDOM[] PROGMEM = ""; const uint8_t sPLAY[] PROGMEM = "AT+MA\r\n"; const uint8_t sSCAN[] PROGMEM = ""; const uint8_t sSTOP[] PROGMEM = "AT+MC\r\n"; const uint8_t sNEXT[] PROGMEM = "AT+MD\r\n"; const uint8_t sPREVIOUS[] PROGMEM = "AT+ME\r\n"; const uint8_t sRING[] PROGMEM = ""; const uint8_t sIDENTIFY[] PROGMEM = ""; const uint8_t sNEWLINE[] PROGMEM = ""; const uint8_t sDASH[] PROGMEM = ""; const uint8_t sHEX[] PROGMEM = ""; const uint8_t sVERSION[] PROGMEM = "";

tomaskovacik commented 3 years ago

HW part moved to this repository https://github.com/tomaskovacik/vwcdavr/tree/master/HW/arduino_based_cdc_emulator

maro159 commented 3 years ago

Thank you.

Can I use _CDCENA (+12V cd changer supply switched by radio) to power the whole circuit? I would connect both +12V and _CDC_ENA12V pins to radio switched +12V available on radio C connector. I think current of the circuit with atmega, bt module and amplifier won't exceed max current of that radio output. What do you think?

edit: okay, now I see that permament +12V supplies only op-amps so I guess it takes negligibly small current. 👍

I would appreciate getting some PCBs from you and yes, I have some time to test it and write about my results. How can I DM you?

tomaskovacik commented 3 years ago

yes you can drive the whole circuit from switched 12V, but I cannot say if all radios have the same current capability, old Audi concert/chorus1 have a chip which max at 3A you can drop me email at