Tuesday 26 January 2016

OVC3860 how to change name

EDIT:

Arduino library for this module with support of change module name even if AT commands did not works.

recently MBT28 contact me on github about OVC3860 based BT modules [1], we have some chat about configuration of this modules, and mbt pointed to microcontroller.net where someone put link to pdf with instruction how to configure OVC3860 based modules (I put it on my github [2] including executable you need).

I personally tested it, and it works. I try to change baud-rate, name, reconfigure module class, sound settings ....

tested on winXP,win7 and wine on ubuntu



so, how to change name? start software, then connect  serial port to module and start module, it should connect to module automaticaly if you connect your module before starting SW, simply restart module by connecting reset pin to ground. Then push "Read All" button, next find key named  "localname" and change his "value" to  new name of you module, hit "Write selected" Button and you are done.  For other keys take a look at documentation pdf at github [2].


I try to sniff communication, to make it configurable from arduino, to be able set BT name by user on final product ....

[1] https://github.com/tomaskovacik/hw/issues/1
[2] https://github.com/tomaskovacik/kicad-library/tree/master/library/datasheet

35 comments:

  1. Hi, I coudn't not setup connection with program, i have red light and message "not connected". Mine setup is UART cabloe on COM1 and baud rate 115200. Terminal program work fine. Can you help me with this ?

    Regards Pawel

    ReplyDelete
    Replies
    1. start program and then restart module by shorting reset pin to ground. also do not use CH340 based modules, they do not are capable of 115200.

      Delete
    2. Thanks, works like a charm ! I'm able to change name, PIN ant other. Also i changed btsys_mode flag to CARKIT (0x04), so I can recieve and dial calls. But commands to sync phone book (AT#PA) or list last recieved calls (AT#PM) are not work (zero respononses). But registers recievedCallHistory in config tool are updated. Maybe some additional configuration are needed ?

      Delete
    3. I do not no why, but alsoni do not remember reading about this module has support fir adressbook, this is why i buy soyo-bT24g module ... But it doesnt support control over uart by default, it must be programed by soyo, and they do jot do it for free ....

      Delete
    4. ok, I see,

      Sync Phone Book by SIM
      AT#PA
      Sync Phone Book by Phone
      AT#PB
      Sync Phone Book by Dialed call
      AT#PH
      Sync Phone Book by Received call
      AT#PI
      Sync Phone Book by missed call
      AT#PJ
      Sync Phone Book by last call
      AT#PK

      It did not work on my module also ... but also change name or pin is not supported anymore :( (AT#MN/MM)

      Delete
    5. and then, I look at [1] and there is no AT#P* commands mentioned :(

      [1]: https://github.com/tomaskovacik/hw/blob/master/kicad/library/datasheet/BLK-MD-SPK-B_AT_Commands_OVC3860_List.pdf

      Delete
    6. Yes, you're right, those commands are precise for those module. I found solution for Phone Book access in ovc3860 but not straight, PDF above help with that. I saw command AT#ST - SPP data transmit. So mine conclusion is ... great ! module has Serial Port Profile. I've tried connect in SPP mode with simple Android Bluetooth terminal app, but connection was refused. After that i review again PSKeys PDF [1] for any SPP entries and voila ! In register 430 we can enable SPP channel - change value to 0x01. After that we have full bi-directional data communication in ovc3860 module !
      Mine next step is compose program in Android Studio to send contact name to module via SPP channel on incoming calls :]

      Thank you for help ! Now i have low cost CAR KIT solution, that is fully customizable !

      Best Regards Pawel

      [1] https://github.com/tomaskovacik/hw/blob/master/kicad/library/datasheet/OVC3860_RevE_PSKeys_Setting_v1.2.pdf

      Delete
    7. Will be nice to see same open source implementation, or at least something i can hack in arduino so i can use it in future prejects, also for car. What car so ypu have?

      Delete
  2. I have Fiat Panda. Mine goal is to do Car Kit with contact display on dashboard like on this movie [1]. I've done similar dashboard CAN hack on Fiat Panda. Buttons on steering wheel will be used as controller and audio output from ovc3860 will go to AUX input (or phone input if available) on car radio.

    I have all parts to finish project, i need few days to write android application and another few days for tests.
    My work will be published on web, i don't have blog yet, but this project is worth publish, so stay tuned ! I will let you know when I finish.

    [1] https://www.youtube.com/watch?v=NtkmyAz1vjg

    ReplyDelete
  3. oh and do not forget about audio part, 0,9V on common audio pin, I tested this preamp and its works: https://github.com/tomaskovacik/hw/tree/master/kicad/differencial_audio_amplifier

    ReplyDelete
  4. The link https://github.com/tomaskovacik/hw/blob/master/kicad/library/datasheet/ is broken. Can you point me to the tool? I just need to change the name and PIN on a commodity OV3860 model. can I do this from the tool without manually reprogramming the EEPROM? It sounds like this tool can do that?

    ReplyDelete
    Replies
    1. https://github.com/tomaskovacik/kicad-library/

      Delete
    2. Thank you so much! I was able to write up my own experience at https://lab.remaker.com/2017/10/i-link-bluetooth-change-bluetooth-name.html, mostly thanks to you and your help, as well as the writeup at https://hackaday.io/project/9729-raspberry-pi-portable-workbenchproject-christoph/log/33720-reflashing-i2c-eeproms-while-hacking-an-ovc3860-bluetooth-adapter

      Delete
  5. I have successfully changed my XS3868's baudrate to 9600 but I want to revert back to the 115200 baudrate. Please tell me how to do it. The RevD tool is not responding to 9600 baudrate.

    ReplyDelete
    Replies
    1. tool does not depend on settings on this, simply start app and connect module, or if you connect module before starting app, simply restart module

      Delete
  6. Thanks for the quick response. I tried it out and it did work! Also, please tell me if there's any way to change my Module's name. I can't seem to find it.

    ReplyDelete
    Replies
    1. are you really placing this question under the blog post named "OVC3860 how to change name" ? :D

      Delete
  7. Haha, I am aware of that. It's just that I couldn't find the steps to modify the name of the BT module in the tool. Also, I'm documenting all of the things in an instructable therefore I must know about everything regarding this.

    ReplyDelete
  8. Please tell me how to do it. I'm a bit confused. Do I only have to connect RESET and GND and then open the tool?

    ReplyDelete
    Replies
    1. start software, then connect serial port to module and start module, it should connect to module automaticaly if you connect your module before starting SW, simply restart module by connecting reset pin to ground. Then push "Read All" button, next find key named "localname" and change his "value" to new name of you module, hit "Write selected" Button and you are done. For other keys take a look at documentation pdf at github

      and check datasheets at github link at bottom of blog

      Delete
    2. I have written a a whole, detailed instructable on this topic. Hope it helps you all.

      Here it is:

      https://www.instructables.com/id/Change-Bluetooth-HeadsetSpeakerAdapters-Name-or-Ot/

      Delete
    3. Outstanding instructable, Utkarsh. Thanks for linking to my blog post.

      Delete
    4. Your article helped a lot and I didn't feel like stealing credit. :)

      Delete
    5. can anyone help me with the btsys_mode settings?

      Delete
  9. Hi Kovo,
    Nice work !!!
    I do have an USB BT dongle with the AVC3960 chipset and want to change localname. So I tried to connect with the program you provided but sadly, no connection possible.
    Would you have any elements for me in order to progress ?
    Regards

    ReplyDelete
  10. Hi Kovo,
    Nice work !!!
    I do have an USB BT dongle with the AVC3960 chipset and want to change localname. So I tried to connect with the program you provided but sadly, no connection possible.
    Would you have any elements for me in order to progress ?
    Regards

    ReplyDelete
  11. Sorry I meant OVC3960.
    I'm able to communication through AT commands but no idea how to set the LocalName...

    ReplyDelete
  12. Hi Kovo,
    Thanks for this precious howto.
    I managed to change the localname and all these annoying sounds on every changes.
    Now, I'm looking for a way for "disabling" the horrific buzz heared after 5 sec while the music is paused (whereas it disappears while playing music).
    I think the audio amplifier part should be pushed in low power state, opening the audio circuit and letting the noise be amplified.
    I have tried to modify (separately) many settings by adding a 2 multiplication factor of each default value and testing the effect, but I did no hear any changes.
    Here are the tested settings :
    waketime, sbc_max_mute_num, mute_opt_flag, sleep_delay_count, idle_waketime, idle_wakecount, sleep_intcount.
    If any one has an idea ?
    Thanks

    ReplyDelete
    Replies
    1. I do not know, but using MUTE signal should take care of this, at least based on module datasheet this signal should controle mute on poweramp

      Delete
    2. You can connect laudio and raudio via 470ohm resistors to analog ground. The noise will disappear immediately after pausing the playback.

      Delete
  13. Hi Clikd,
    What kind of help do you need regarding this setting ?

    ReplyDelete
  14. Real protocol:

    From OVC: 2018-09-15 15:55:00,6266275 +5,4945292
    04 0F 04 00 01 00 00 .......

    From PC: 2018-09-15 15:55:00,9013496 +0,0000120
    C5 C7 C7 C9 D0 D7 C9 D1 CD ЕЗЗЙРЧЙСН

    Answer from OVC: 2018-09-15 15:55:00,9032590 +0,0018052
    04 0F 04 01 01 00 00 .......
    ----------------------------------------------------------------
    From PC (read NAME): 2018-09-15 15:55:34,3838654 +33,4730967
    11 C7 00 10 .З..
    Answer from OVC (NAME is “LPAIS_blue”): 2018-09-15 15:55:34,3914584 +0,0000377
    21 C7 00 10 4C 50 41 49 53 5F 62 6C 75 65 00 FF !З..LPAIS_blue.я
    FF FF FF FF яяяя
    ----------------------------------------------------------------
    From PC (write NAME “LpaisBlue”): 2018-09-15 16:09:58,9552702 +43,6714309
    31 C7 00 10 4C 70 61 69 73 42 6C 75 65 00 FF FF 1З..LpaisBlue.яя
    FF FF FF яяя
    Answer from OVC: 2018-09-15 16:09:58,9779393 +0,0053315
    41 C7 00 10 AЗ..
    ----------------------------------------------------------------
    From PC (read PASSWORD): 2018-09-15 15:55:59,8614883 +25,4570789
    11 BF 00 08 .ї..
    Answer from OVC (PASSWORD is “0000”): 2018-09-15 15:55:59,8689466 +0,0000080
    21 BF 00 08 30 30 30 30 00 FF FF FF !ї..0000.яяя
    ----------------------------------------------------------------
    From PC (write PASSWORD “1234”): 2018-09-15 15:56:29,8251861 +29,9446977
    31 BF 00 08 31 32 33 34 00 FF FF FF 1ї..1234.яяя
    Answer from OVC: 2018-09-15 15:56:29,8446201 +0,0140072
    41 BF 00 08 Aї..
    ----------------------------------------------------------------
    From PC (read PASSWORD): 000071: 2018-09-15 15:56:43,4235981 +13,5768873
    11 BF 00 08 .ї..
    Answer from OVC (PASSWORD is “1234”): 2018-09-15 15:56:43,4288520 +0,0000031
    21 BF 00 08 31 32 33 34 00 FF FF FF !ї..1234.яяя






    ReplyDelete
    Replies
    1. https://github.com/tomaskovacik/OVC3860/wiki

      ;)

      Delete
  15. Some description to the transfer protocol descibed above. I send AT#MX commads and there was no reply. Then I used OVC3860 Programming tool. First of all this programm works only with COM1. It didn't work with any adapters - so only straight COM1. I haked transfer protocol (see it above). The point is that device send

    <04 0F 04 00 01 00 00> and waiting for some miliseconds (IMPORTANT!! - U cannot do it by hands - delay will be very big and device will skip enterening programm mode) for reply from PC . Then it enters programming mode and time is no matter after that. Now U can change NAME, PASSWORD, and all other parameters. Transfer speed is 115200.

    ReplyDelete
    Replies
    1. Or use library from my githib which use config mode

      Delete