Friday, September 30, 2011

Flashing a new firmware

I hope you had a good time soldering your programmer.

I take the time to refine mine to make a bit more sexy !

I show you the ugly part too : (I'm a little proud)

So !!!! are you ready ?
We have to test it a bit before trying to upload some cool stuff in it.
First you can play a little with the PSTool. But I prefer command line.

Saving your own firmware :
You can find in the Bluelab/Tools/bin directory, a tool to make a extraction of the firmware.
You can download your firmware with the following command :
BlueFlashCmd -DUMP my_saved_firmware


The BlueFlashCmd should create in your current directory, two files called my_saved_firmware.xdv and my_saved_firmware.xpv


Take care of these files, they can be useful if you missed something in the next steps.


If you don't manage to extract these files, DO NOT PROCEED FURTHER. I have to make a little disclaimer, i will not be responsible if you broke your bluetooth module, please be careful, don't do thing you don't understand. Ask me before if you have any doubt.


Saving your personal bluetooth module parameters :
One another cool program is pscli.exe. CSR firmware contains some special parameters that can be dump, upload, modify by pscli.exe and PSTool.exe.


I will not describe each PSKEY as you can have useful information via PSTool.
pscli.exe can extract a set of PSKEY by passing PSKEY queries in a config file.

The goal is to save your bluetooth UUID and some crystal calibration data to restore them after the firmware download.

You have to know that downloading my firmware to your module will make a perfect copy of my module. So if you planned to make several HC05 modules you have to make them unique if you want to pair them together.

The PSKEY query file (data.psq) is made like this :

// PSKEY_BDADDR
?0001=
// PSKEY_ANA_FTRIM
?01f6=
// PSKEY_ANA_FREQ
?01fe=


Each line starting by a ? is a query to grab the corresponding PSKEY stored in your module.
You can invoke the following command to stored those PSKEY in your computer :
pscli query data.psr data.psq


Some explanations ? Be careful ! 3 parameters :

  • 1st parameter : The command query
  • 2nd parameter : The response file
  • 3rd parameter :  The query file
Do you see it ? you have to pass the  the output file (data.psr) before the input file (data.psq). If you change this order, you will delete the psq file :-/

You can check the data.psr file to verify that you manage to get these PSKEY with your text editor.

Flashing another firmware :

Flashing the firmware, you can simply invoke that command :
BlueFlashCmd HC05
please notice that you should have the following HC05.xpv and HC05.xdv files in your current directory.
Be patient and take care that everything is working well.


Restoring your personal data :
At this point you have a perfect copy of my own module.
You had to restore your Bluetooth address and crystal factory setting to your module.
This can be done with this command :
pscli merge data.psr

The data.psr file is the one that you created before.

Et voilà !!!
Please don't hesitate to comment this post if you have any question. You would be gentle to share this information if it helps you.
And don't forget to donate if you want to thank me !

You can download those files in the following link :
Google Drive
4shared


191 comments:

  1. Did you make somekind of socket for the module?, could you post the picture of it, I'd like to create something similar. Nice job!

    ReplyDelete
  2. Since I ordered 20 modules for my job, I make this programmer to reflash them without having to solder them.

    I'm making a post to answer to your request !

    ReplyDelete
  3. Hi Byron
    I found the information in your Blog really helpful. Many thanks for the help and advice.
    I had to use Google chrome to leave a comment, explorer would not let me.
    Gordon Millar

    ReplyDelete
  4. Hi!

    LPT ports are not very common these days. I have doubts that USB LPT will not work with these tools. I can't think of an easy way to make this without LPT port and I'm not good with OS drivers programming. Can you think of some virtual LPT driver that streams LPT through RS232 for example. I can put a FT232 and a MCU to output it to parallel port.

    Also some timings would be great. What is the clock frequency of SPI when programming.

    And thanks again for all the shared info!

    ReplyDelete
  5. I know. I wonder if a usb to lpt adapter will do the job with a bridge lpt driver but I not sure.

    Concerning timings, I think that it isn't very quick since it's driven by LPT outputs... I will make some capture with my OLS sniffer.

    The fact is that I want to make Firmware developpement with the CSR SDK, but i' m don't have a PC with LPT port at home... I can only make some quick experiment during my job time...

    ReplyDelete
  6. with deal extreme PL-2303 usb to serial converter there is a program "SetCOM.exe" which changes "name" of the com port, so it's accessible via "com1". I wander is there a program like this for LPT port. I'm not sure if it actually change the address of port or only name under windows and I don't know if CSR tools use windows name or low level access (port io)...

    ReplyDelete
  7. I was in the same boat as you guys with Lacking a LPT Port. I bought a USB2LPT (http://www-user.tu-chemnitz.de/~heha/bastelecke/Rund%20um%20den%20PC/USB2LPT/index.html.en) and only to find that the flashing software refuses to use it =[
    I ended up setting up an old PC that had a parallel port and used remote desktop so I could flash the firmware on my bluetooth modules

    ReplyDelete
  8. First, a big thanks for gathering all this information about the CSR BC417, it's been frustrating without.

    I bought a couple of BC417 from ebay, and got the HC06 firmware on it. I want to upgrade (downgrade?) to HC05, but got a bit sad when i only saw the LPT interface and you saying it's needed when using the CSR BlueSuite. But reading the 2.4 manual from CRS, it does say it supports an USB-SPI approach. Can you clear this up for me?

    Thanks a million,
    /Johan

    ReplyDelete
  9. I know that this device cost about 3000$...
    I don't manage to find information of such device !
    Maybe we can explore the driver souce code to reverse engineering it... It could be a way to make a clone for our purpose !

    ReplyDelete
  10. I was hoping https://www.adafruit.com/products/46 would be the solution. And it's $22

    Or have i misunderstood something here?

    /johan

    ReplyDelete
  11. I'm sorry but if you don't have a device that work with CSR dlls, it have no chance to work for flashing or debugging your module

    ReplyDelete
  12. Hello,

    could you please inform us what OS did you use? I've just discovered your blog, because my second order from eBay included modules with older firmware and I need full AT command set.

    I have a PC with parallel port, device manager sees it as LPT1, but software can't find any port :/

    The cause could be Windows 7.. i tried with 64 bit, 32 bit, still nothing. Tomorrow i will try to find some PC with XP, hopefully it will work :/

    mato

    ReplyDelete
  13. Hi,

    first thank you for this great blog.
    After weeks not successful with windows 7 64bit I finally gave up. Went to chcek if this works on old computer- running windows XP(32bit). No problems, all worked like a charm. Thank you once again, you made my day!

    ReplyDelete
  14. Oh cool if you have success with that tutorial. I gave up Microsoft os after Windows xp... No Vista, no seven for me. I switch to ubuntu few years ago and when I have no way to do things on Linux, I try on xp...

    ReplyDelete
  15. Thanks for all the work. Helped a great deal.

    Concerning developing an alternative updater: I have a logic analyzer (Saleae Logic) and did some dumps of the protocol. Doesn't seem that complicated on the first look. If anyone wants to analyze it I could dump the whole update process and upload it somewhere.

    I could think about some AVR assisted update procedure. Maybe this is a common update protocol? I would most certainly help developing such a tool at some point, just not now and not alone either. :)

    ReplyDelete
  16. It could be awesome.
    Maybe we can grab some useful information in technical notes on CSR website.
    Could you share your dump and data with us? I can probably convert this in sequences with some scripts.
    Another missing is to understand the debugger protocol for developing custom firmware. I'm testing some development for further cool stuff and it will be awesome to manage to do this with open tools and USB interface since i don't have pc with LPT port at home

    ReplyDelete
  17. Gentlemen, one question:

    Did any one of you managed to connect to BC4 module when in commands response mode? According do datasheet, with AC+INQ the module will search around and reply with addresses of available bluetooth appliances. But i never managed to see any. I can see the bluetooth module only when i am not in commands response mode.

    Thank you

    ReplyDelete
  18. Oh, nevermind, silly me. If ound out, that putty works too, but not as good as it should.

    To all trying to communicate with those BT modules - it is ABSOLUTELY IMPORTANT to use good serial console on PC side, such as Arduino's Serial Monitor. As Byron said, modules need both CR and LF (also called NL-newline and CR-carriage return) to function properly.

    If you use putty, it looks like that it sends both those endline characters, but in a different order. Therefore, BT module replies not with one OK, but with endless line of OKs, until you press Enter one more time.

    It works for most commands, but when using inquiry command or init command, there could be a problem and you will never see devices around you.

    So, for trying on Windows PC, Serial Monitor from Arduino is the best.

    Good luck :)

    ReplyDelete
  19. Ok, I did some more dumps and zipped them up. Have fun! http://farthen.de/?p=131

    ReplyDelete
  20. OK !!!
    I'm downloading your dump.
    I will take a look and seek for information on CSR website !

    ReplyDelete
  21. I already looked on the CSR website if there is a protocol spec up. I didn't find any. But TBH replaying this protocol should do the trick for the most part. The beginning sequence is always the same for example. What I find a bit confusing is that the computer actually repeats each cmd multiple times. I'm wondering if this is required or just some stupid safety thing they've built in.

    ReplyDelete
  22. Love the work you have done here, I can't get the software to work on Windows 7 either!

    ReplyDelete
  23. Hi, I'm trying to reproduce what you have done here but the BlueFlashCmd always says "Couldn't find LPT port" - I've tried this under Windows XP and Windows 7 (which I expect wont work!)

    What version of the program are you using?
    Thanks

    ReplyDelete
  24. BlueLab 4.1 !
    Maybe you have to check some options in your Bios to enable EPP options

    ReplyDelete
  25. That was quick thanks!

    I'm using 3.3v.

    I don't have the BlueLab software, only the BlueSuite which you linked to in a previous post. The folder c:\Bluelab/Tools/bin does not exist on my machine, but the blueFlashCmd is version 2.4, found in "c:\program files\bluesuite 2.4\"

    ReplyDelete
  26. Strange, I just installed an older version of BlueSuite (v1.24) and now the BlueFlashCmd reports "Error detecting chip type" - at least thats some progress! Must be an issue with the programmer.

    ReplyDelete
  27. My apologies... my brain has failed !!!

    The current version of the blueflashcmd.exe is V2.4. The one provides by the BlueSuite V2.4 SDK

    ReplyDelete
  28. i have no problems to program module with windows 7, another pc with windows xp doesnt work(pstool cant see LPT port). so i think its hardware thing, chipset driver or something like that if lpt port isnt detected.
    i must set ECP mode from bios to get it working.

    ReplyDelete
  29. ^^ could you tell us your motherboard model?

    ReplyDelete
  30. @farthen :
    i'm currently work on your dump ! could you please share the psi query/merge input and output files ?
    maybe your firmware dump ...

    ReplyDelete
  31. Thanks for your instructions on this Byron, I've flashed my old HC04 chip into the firmware you provided no problems. I even just used a breadboard circuit to do this!

    Do you know any good instruction sites for using the HC05 in master mode? I can get it to switch and connect to another device as a master but it seems very unreliable.

    ReplyDelete
  32. @Byron: Sure, here they are: http://farthen.de/files/BT%20modules%20dump%20files.7z

    ReplyDelete
    Replies
    1. Hi,

      DO you still have those file? i suppose that link is too old. can you upload file the new link or can you send email to me?

      email : bulentperktas@hotmail.com
      Thank you,
      Bulent

      Delete
  33. @ms: working one is compaq pc with FIC AM37 motherboard.
    bad one is Asus A7V8X-X motherboard

    ReplyDelete
  34. @Farthen; could you please redo the pscli query capture request with your sniffer and send me the csv !

    I made a awk script to have the complete sequence of instructions but it seems that some of your capture have some missing edge on CLK ...

    Some times the MISO pin is driven low without been preceded by a CLK low edge...

    ReplyDelete
  35. for your saleae client the right configuration of the SPI plugin is CPOL=1 and CPHA =1.

    @Farthen: what about sharing ours e-mail address ?

    ReplyDelete
  36. @Byron I already shared mine. Just look at README.txt in my first archive :)
    Unfortunately i can't access the module this weekend. So I can't dump anything till Monday :/

    Have my SPI settings been wrong? I thought i already set the the right way once, must have been reset at some point.

    ReplyDelete
  37. @Byron Great tutorial! I am so excited to make everything I see bluetooth enabled (http://youtu.be/61a0qHFcQE4), anyways, I am trying to upgrade my firmware. Is it possible to do this with BlueCore Device Firmware Upgrade Wizard? I have it connected via Uart on my pc. Otherwise I have an old laptop with a basic LPT and an old desktop with EPP enabled. Both machines are giving me .Net framework errors when I try to connect via SPI. One machine has XP-FLP edition and the other is a 200mb install of XP, this is probably why I am having problems. Is there anyway to convert the saved HC-05 firmware as a .DFU file so we can use the wizard and a Com port? Otherwise I have to find a machine here that is new enough for .NET framework + have an EPP Compatible LPT port.
    Anways, keep up the good work, and hopefully we can colaborate on creating some of our own custom firmware. Get these modules connected to iDevices.
    Thanks,
    Jon

    ReplyDelete
  38. Unfortunately the first firmware flash process it's only possible by spi connection. you had to make it work by LPT port...

    ReplyDelete
  39. Again, amazing work Byron, and quick response! I found a machine and am doing a clean install of XP right now. So wish me luck. I'll be sure to keep you informed of my progress with these modules and what we can do with them.
    Thanks,
    Jon

    ReplyDelete
  40. Good day!
    I'm interested in experimenting with NFC (Near Field Communication) capabilities, that is declared for Bluetooth 2.1. I think, some of you here may be interested too :)

    And CRS states for Blucore4:
    Bluetooth® v2.0+EDR specification compliant (v2.1 upgradeable)

    I wish I know more about how it is upgradeable, and how to use NFC then. Does anybody have any information on it?

    ReplyDelete
  41. Hi Byron,

    I really like the case of your programmer. Could you take a close-up photo of the slot where the module goes in?

    Thanks!

    ReplyDelete
  42. For sure... I have to finish my next post soon... Sorry for the huge delay...

    ReplyDelete
  43. Could you also explain a bit more on how you made your programmer? :)

    ReplyDelete
  44. Have two Modules with HC05 Firmware.
    They seem to have the same Bluetooth address.
    My Computer "see" only one modul if both are powered.

    I tried to change it with PSTool then my modul is not working anymore. How can I change the Bluettoth address?

    ReplyDelete
  45. Hello
    you can edit your data.psr and redo this command :
    pscli merge data.psr

    ReplyDelete
  46. What's this regulator board you're using?

    ReplyDelete
  47. I keep getting the error
    "Couldn't find LPT port
    Failed"
    no matter how I set the LPT port (ECP with DMA1/DMA3, EPP and even ECP+EPP). I'm executing "CSR\BlueSuite 2.4\BlueFlashCmd.exe" -DUMP saved. Am I missing a dll that would allow direct access to the LPT port?
    I'm running XP and now I have it set to EPP (Printer Port(LPT1), "Use any interrupt assigned to the port" is set as well as "Enable legacy Plug and Play detection").
    Any help, guys?

    ReplyDelete
  48. if you cant select lpt port in pstool, try to run instparspi.bat(just doubleclick it) in bluesuite/drivers/win32 folder, boot your pc and try pstool again

    ReplyDelete
  49. Thanks!
    Will try as soon as I get home.

    ReplyDelete
  50. pstool worked just fine and I managed to flash the device with Byron's firmware.

    ReplyDelete
  51. Thanks Byron76, this is great!
    I was able to update the firmware following your instructions. Two remarks for dummies like me:
    1) As it was told before in the comments, I like to confirm that Pstool.exe and BlueFlashCmd.exe won't work with the USB2LPT adapter from here http://www-user.tu-chemnitz.de/~heha/bastelecke/Rund%20um%20den%20PC/USB2LPT (yes I made one). You'll need a "real" parallel port.
    2) If you are installing BlueLab make sure to select the last check box about installing the SPI driver, otherwise it won't find the device either.

    ReplyDelete
  52. hmm weird, after I played around with it, I get Timed out mesages from BlueFlashCMD. Any ideas?
    the module still works with serial, AT command still says OK, or connecting to it.
    I also can read PSTool's informations.

    Still @ Linvor 1.5 and I already dumped the firmware to my pc, but when I try it again, it it says timed out even when trying uploading a new firmware :/

    F:\Program Files\CSR\BlueSuite 2.4>BlueFlashCmd.exe -dump dump
    blueflashcmd, version 2.4
    Copyright (C) 2002-2011, Cambridge Silicon Radio Ltd.
    Resetting XAP
    Dumping flash contents:
    Device 0: Timed out waiting for response.
    100%
    Error Device 0: Timed out waiting for response.
    Failed

    ReplyDelete
    Replies
    1. Hi kuroneko,

      Did you manage to find why you were getting the error message"Device 0: Tims out waiting for response"? I get the same message & I'm not able to read the values using PSTool anymore

      Delete
  53. Hey,

    I'm working on a Arduino sketch and Windows hook combo to flash these devices without having to buy any extra hardware. I've got it actually able to retrieve the chip ID, and begin a dump. However, the dump takes a god-awful long time, and extrapolated from the percentage and the time taken, I believe it might take over 2 hours.

    Could anyone inform me of how long it normally takes over the LPT-SPI thing, so I know how much more I should attempt to optimize it ?

    ReplyDelete
    Replies
    1. Hi, I'm doing something similar, I'v got a dump of the 1Mbit memory, but when I dump it seveal times and compare, i always have around 4-8 Unmatching bytes, any ideas?

      Delete
    2. OK, Well since Frans has disappeard, so far; I'd share my knowladge with the world:
      First, CSR BlueCore 4EXT DataSheet states that an SPI reset is performed when CS is down; Frans's code seem to do otherwise.

      In order to get Frans code to work u'd have to use the older version of BlueFlashCmd; I have one from 2008 and 2010; the 2010 Didn't seem to work; the spiplt.arduino showed signs that it working but eventually did nothing and right now I'm dumping using arduino.bitbang and it's downloading.

      Frans's code is avialable: https://github.com/Frans-Willem/CsrSpiDrivers

      AND IN ORDER FOR BLUEFLASHCMD 2 work u'll have to specify:
      BlueFlashCmd.exe -TRANS "SPITRANS=LPT" -port -DUMP mydump


      Few weeks earlier, I'v tried to implement something like this using arduino's SPI library & CSR BC datasheet; it seem to work, but I was getting lot's of validation errors back from the device; and when it DID worked, and I dumped the whole 1Mbyte; sequential readings of the whole flash turned out different result so I couldn't relay on it :(

      Let's hope I finally figured it out.

      Delete
    3. hi !
      I appreciate that you go on the frans job.
      I'm waiting for a arduino nano board. I will take a deep look at your work because i need to debug CSR firmware using USB connection.

      So I probably have to try to hack the 2010 spi dll used by the CSR SDK.

      Do you try so send your patch to frans's github ?

      Delete
    4. I Dind't fixed it, the bitbang code works as-is :)

      Delete
  54. Great Job Byron. Was happy to see this after my visite at DX.
    Also your programmer is looking great.
    One question.
    What type of connector did you use to connect to your BT-board to program?
    I did look for pictures at farnell and other places.

    ReplyDelete
  55. i'm using spring-loaded ('pogo') pins. so i have a good contact without having to solder anything during firmware dump or debugging

    ReplyDelete
    Replies
    1. Thanks for all your articles! But I'm sure many people would appreciate more detailed instruction on how to make a "socket" for a module.

      The main problem here is small and rarely used pitch. I tried to take pins from standard .1" header and arrange them with 1.5mm pitch, that works for two pins, but nope, not for 4+ pins ;-). Then I wanted to take ready-made mail connector with needed pitch, but you simply can't find in local stores, on ebay, or in well-known online shops.

      Hint about pogo pins is helpful, but you don't mean usual needle or round end shaped pins, right? Browsing thru ebay, I found this, and figured it would work here, but there is head diameter is whole 1.5mm! I guess, pogo pins with "flat fork" head shape would work here, but do such exist? And still, how to arrange them from at least 2 side is not clear.

      So, any details are appreciated. Maybe worth a whole new post ;-).

      Delete
    2. Weird, I believe I posted a reply here, but somehow it lost... Anyway, can you please elaborate what kind of pogo pins you used? Also, IMHO the biggest problem is small and non-standard pitch of module's pad - 1.5mm, how did you go about it? Thanks.

      Delete
  56. @Frans-Willem: firmware dump/write through lpt-spi take about 1 minute or less.

    ReplyDelete
  57. Thanks Byron, the upgrade process worked for me also. I'm using Win7 x64, so I had to install a VMWare Player and a WinXP to be able to use BlueSuite, but he programmer worked like a charm.

    One more question to be short: if you have more modules have you ever tried to configure MORE THAN ONE of them as master and connect with those masters to a single slave (which is a USB bluetooth dongle on the PC) at the same time?

    OK, for the long explanation, here it is: :)

    I'd like to build a small star topology network with one Class 1 dongle (boosted with external antenna) and five HC-05 firmware modules for having five distinct SPP connections.
    The modules should connect to the dongle and should be hidden otherwise. Is this feasible?
    According to my current knowledge the normal bluetooth star topology (piconet) contains ONE master and multiple slave devices. But if I configure the HC-05 modules as slaves then these can be seen by and even can be paired to (!) other bluetooth devices (like a phone).

    As I understand one of the key benefits of being a master that I can configure the module to automatically connect to a given slave address on power up. In this case the master module also can not be seen by anyone who tries to search the nearby bluetooth devices, so it's secure.

    On the PC side I'm using BlueSoleil 8 bluetooth stack which is really comprehensive, so i hope it would handle multiple masters.

    Thanks for any ideas.

    ReplyDelete
    Replies
    1. As I understand if your module is master you should develop a slave client connection on the PC side...

      I didnt't try to use those modules in master mode, so I can't really help you... Perhaps someone in the audience has an idea ?

      Delete
    2. Right now I'm using BlueSoleil 8 on the PC with a cheap Class 1 bluetooth dongle. When I configure the HC-05 module to be a master and I set the correct binded address for the connection (AT+BIND and AT+CMODE commands), then after I switch on the power of the module it connects to the PC promptly. It's really beautiful.

      Beside of this automatic connection the sweet part is that in master mode the module can not be seen by anybody who's trying to search for nearby bluetooth devices.

      There's no special settings on the PC side to establish the connection, only at the first connection attempt the authentication (pairing) code is needed but after that nothing.

      My only problem is that I have only one module so I can't try this configuration out with two modules as masters and one PC slave. I hope as long as I configure enough serial ports on the PC all the masters should connect to one of them automatically upon power up.

      It would be nice if anybody who have more than one module could try this and give feedback.

      Delete
  58. 2 Frans-Willem:

    > I'm working on a Arduino sketch and Windows hook combo to flash these devices without having to buy any extra hardware. I've got it actually able to retrieve the chip ID, and begin a dump.

    That's great news! Would you share the code/instructions?

    As for the speed, yes, it would be expectable that it might work much slower than CSR's tools at first, and may require reimplementation and optimization to achieve anything comparable. As was told, with BlueFlash & LPT, dump takes few mins.

    ReplyDelete
    Replies
    1. Yes, would definitely be willing to share code/instructions, but it's nowhere near actually complete or really usable. A flash takes about 2 hours.
      Feel free to contact me through e-mail: http://www.hidetext.net/hide/1MOHuWl0Nu.gif

      Delete
  59. @Frans-Willem: i have designed own arduino board With built in bluetooth module. it would be nice to test your sketch when you get to finish it.

    ReplyDelete
  60. Are you using USB only as a source?

    ReplyDelete
  61. Does anyone have a HCI-Firmware for this BC417 based Bluetooth Boards? Maybe someone has for example a rayson or bluegiga modul with that firmware and can extract it.

    ReplyDelete
  62. I assume you could use official CSR unified firmware published on csrsupport.com and set it to HCI mode.

    ReplyDelete
  63. Maybe... What is the goal of the HCI mode?

    ReplyDelete
  64. I think this mean that you can use them as a full flavour bluetooth device with the help of the bluetooth stack.

    ReplyDelete
  65. For sure this is the meaning of such chip. But I think you have to do some work to create your own firmware.

    ReplyDelete
  66. I think you misunderstood me. HCI firmware opens a lot of new possibilities. For example, you could make a toy which is remote controled by wiimote. All you have to do is to load HCI firmware on module, connect the module with the microcontroller over UART and use bluetooth stack such as BTstack on microcontroller to communicate with wiimote.

    ReplyDelete
    Replies
    1. HCI doesn't open any new possibilities, because it's very, very old thing. And any BlueTooth module by definition supports HCI - it's part of BT standard (well, potentially, it would be possible to not expose HCI in some module, but who would bother to do that - how would they sell it then?)

      Using HC-04 in HCI mode seams like waste of effort/resources - just buy a $1 BT module, plug it into USB, and get your HCI. The whole point of HC-04 is that is programmable wireless-node-on-chip, not requiring any host to function.

      Delete
  67. Just to let others know, the only setting I couldn't use was ECP, if you use blueflashcmd.exe and get an error message about communicating with the chip, check your cabling, double check the pinout of your cable if you use an extension like I did, the pin numbering on the male plug connecting to the PC was different to the female end I was connecting the spi cables to.

    Resistor values don't appear to be super critical, I used 1.5k and 3k resistors, as long as you're around 3-3.5v from 5 on the voltage divider then it should be fine.

    This was on XP 32bit, asus A8N-VM motherboard.

    ReplyDelete
  68. Interesting, someone else is interested in HCI firmware, too.
    My plans are using a modul with HCI firmware + BTstack to get more than one connection at a time with others (piconet).
    At csrsupport.com i can't find any firmware to download, could someone show me where and/or publish it for example here?

    ReplyDelete
    Replies
    1. Since the SDK is not free or open source, i don't want to publish stuff that is not mine...
      Soon, I hope I will be abble to take some time to develop some custom firmwares and I will probably share some piece of code. Any help wanted !!

      Delete
    2. On csrsupport.com go to Home → PC Products → PCDevices → BC4-External → Firmware. But I'm not sure which version is the right one.

      However, after reading some documents online, it seems that every firmware build by official SDK (including HC05) supports HCI mode. All you have to do is set PSKEY_ONCHIP_HCI_CLIENT to 0 or 1 (posts about that are contradictory, just set to opposite value). I will try that in the next days...

      Delete
    3. it seems this key is enable by default in the HC05.
      http://dl.free.fr/hNSAsQuyQ

      Delete
    4. Unfortunately, all my attempts to connect to the module in HCI mode under linux were unsuccessful.
      I have the same problems which are described in http://thread.gmane.org/gmane.linux.bluez.user/8829 I suspect hardware problems, because I used USB to UART cable.
      Somewhere in the future I will make the proper RS232 interface and connect it to real serial port.

      Delete
    5. > Soon, I hope I will be abble to take some time to develop some custom firmwares and I will probably share some piece of code. Any help wanted !!

      Pooled time for the same for months, now finally started with it. Having a progress, some code will be soon on github.

      Delete
    6. Ok, here we go: https://github.com/pfalcon/btnode

      Keep in mind it's WIP, but it already can do a lot of what I wanted from it.

      Delete
    7. Well, BtNode is too generic a name, I decided to rename it to something more spicy:

      http://github.com/pfalcon/blutunode

      Version 0.7 is in the repo.

      Delete
  69. You may have to switch some pskeys to enable bridge between Bluetooth stack and uart connector

    ReplyDelete
  70. Maybe, I already tried to change some of them with no success.

    ReplyDelete
  71. Hi!
    It seams http://dl.free.fr/hNSAsQuyQ doesn't work anymore. Can you upload the HC05 firmware somewhere else, please?

    ReplyDelete
    Replies
    1. sorry - free.fr still works. I had proxy rules disabling free.fr.

      Delete
  72. It looks like the same chip. It would be a problem if pins are changed by BTM222 firmware. SPI should be hardware and fixed pins so you can flash back the backed up image.

    ReplyDelete
  73. Hello Byron, and thanks for sharing you hard earned knowledge with us!

    Is it accurate to say that "pscli merge" flashes the data area of the Bluetooth module while "BlueFlashCmd" flashes the code area of the Bluetooth module? While "pscli query" just manipulates data files on the host (Windows) computer.

    ReplyDelete
    Replies
    1. pscli merge : overwrite data on your device
      pscli query : grab data from your device to your host
      BlueFlashCmd : get or dump whole firmware from/to your device

      Delete
  74. Hi all,
    I flash HC05 firmware to Rayson module BTM112, it work correctly, BT module get faster response to AT commands, but in inquire, discovery... mode BT module not return names other BT devices, only MAC adress. Exist in HC05 firmware option for returning full BT name and MAC in inquire, discovery mode from finded BT devices? It is important for me.
    Original firmware in BTM112 working very slowly , slow response to AT commands, sometimes module can't find other BT devices, solution is reboot it, but it is not reliable.

    ReplyDelete
    Replies
    1. You want these informations via AT command or during the pairing with bluetooth device ?

      Delete
    2. Thx for your interest
      Via AT commands for search other BT modules, without pairing

      example from original btm112 firmware:
      ATF?\r\n ( same as AT+INQ in HC5)
      1. NAME, MAC adress\r\n
      2. My phone, MAC adress\r\n
      3. SE-Xperia, MAC adress\r\n
      4. Samsung Phone, MAC adress\r\n
      5...

      I need similar response after AT command for search other BT devices, MAC adress with NAME. When it is not supported in HC5 or HC4 I will must go back to original "stupid" BTM112, or find other BT module, firmware.

      Delete
    3. I don't see this kind of AT services on HC05 firmware...

      Delete
  75. I have a HC05 and HC06 module and would like to use one of them to program an arduino board over BT. I noticed that the pin 4 is marked RTS and was wondering how can I control it. I usually use the parallax terminal that has the option "set RTS", but if I measure the voltage at pin 4 is still low. Any ideas?
    Thanks

    ReplyDelete
  76. I posted in nested messages above info on open-source firmware for HC-04/5/6/any other BlueCore4-Ext based module I develop. It still lacks docs, but I blogged about it to describe basic idea, functionality, and future plans: http://pfalcon-oe.blogspot.com/2012/04/opensource-sensor-node-firmware-for.html

    Hope this will be useful to byron76 and other readers of this blog.

    ReplyDelete
    Replies
    1. Thank you for sharing your work with us !

      I will certainly look at it in few days (or weeks)
      For now i'm trying to adapt SCR toolchain to my buspirate ...

      For your firmware, some guys wants a way to control serovs... Do you plan to add PWM outputs to your firmware ?

      Delete
    2. Well, I have following in the code:

      // TODO
      //{ AT + GPIOPULSE = %s:pulses \r}

      i.e., I thought about it ;-). It's unclear how exactly to implement it and what are usecases. My idea was to allow something like AT+GPIOPULES=10,10,20,20 to just flash a LED 2 times (or repeatedly), and to be implemented using VM's timed messages.

      But precision of those would pretty likely be too poor for servos. And I'm not aware of hardware PWM support in BC417, nor even we have direct access to timers/interrupts. So, driving servos directly by BlueCore may prove to be a challenge.

      Delete
  77. I got another(alps) bt module with same csr chipset and pc cant find it, so can it be that pc cant see it if module is configured as master mode?
    Did you guys know if master/slave role can be changed by pskey with pstool? looked all pskeys in pstool but didnt see anything like master enable/disble or something like that.

    i propably try flash it with linvor firmware but before that i'd like to sort out why pc cant see it.

    Here is some images in my blog http://uk350.blogspot.com/p/alps-bluetooth-module.html

    ReplyDelete
  78. I managed to use the arduino to flash a BT module (using Frans Willem's work) Thanks!

    While it worked on one module, it seems to be stuck. Whenever I run blueflash, it says unable to find spi device. Interesting.

    @uk350
    If you have both devices with HC05, then use the AT+ROLE to set one as master and one as slave. The name on the slave is set, and you can use the commands on the master to connect to the slave, as per the "datasheet" (if one could call it that).

    ReplyDelete
    Replies
    1. well, that module have alps firmware and it have also own at commands so at+role doesnt help.
      i also connect ttl port to pc (pins 1 and 2 as hc04 or hc05 modules) but it send dummy data all time and not respond at commands.
      Tryed flash it with linvor firmware but no luck(flash ok but cant get in with pstool)

      so dont buy it !!! these alps modules found from ebay

      i also got few modules now with bolutek firmware, it looks just like hc04/05 modules but it have master/slave firmware and it doesnt need to put any pin to high level when going at mode.

      Delete
    2. Can you elaborate on using Arduino to progra, the module? I didn't hear from Frans for a while, and last time I did, he had just some proof-of-concept code which didn't interface with Arduino yet.

      Delete
  79. Hi Byron,
    Thanks for the grate work, I was able to successfully flash my HC04.
    It work lovely. However...
    Is it possible to remotely(by bluetooth connection while its connected) control the device(ie host command mode/ota).

    ReplyDelete
    Replies
    1. No, that's why I started to write my own (well, open-source) firmware to allow that, see comments above.

      Delete
  80. This comment has been removed by the author.

    ReplyDelete
  81. This comment has been removed by the author.

    ReplyDelete
  82. pfalcon>>
    Followed your link to ...https://github.com/pfalcon/blutunode
    love the VM, Trying to implement UART control/Flash access OTA because i am unable to change some critical PsKey data...
    PersIstenT only changes some data and crashes on others..
    Anyways Good work>>>>it does its job for now:-)

    ReplyDelete
    Replies
    1. Hi, i'm interested in blutunode, how can i load it to the HC05 board?

      Delete
  83. Hi

    My module from LedSee.com seems to run HC05 +VERSION:2.0-20100601
    Does anyone knows if this is recent or old ?

    I have some difficulties to use it.

    Merci.

    ReplyDelete
  84. By the way, source code for BlueSuite v2?4 seems to be available here https://www.csrsupport.com/document.php?did=31601
    It might be possible to reverse engineering the code to use another SPI interface such as an Arduino (like the ArduinoISP is capable of using Arduino's SPI to flash another Arduino).

    ReplyDelete
    Replies
    1. Unfortunately, the source code provided on the web page is only partial and flashing routines are provided only in binary form. However, I came close to figure out the entire protocol (I can help you with it if you wish), but I think there is easier way.

      On the offical site, there is firmware update for offical USB programmer. After a little digging, I found out that it is entire firmware, which could be flashed on bluecore3-multimedia module. The only question remains, where to buy such module (aside from alibaba)?

      Delete
  85. I re-upload my files to google drive and 4 shared for your convenience ! please accept my apologies

    ReplyDelete
  86. The above commands worked and its easy to implement. I will try to make it smaller and would design it on PCB.

    ReplyDelete
  87. Does anybode have problem with sector erasing, when flashing Linvor module to HC-05 firmware?
    In my case downloading firmware ends with an error message "Failed to erase sector 4 after 4 attempts".
    First three sectors erased and flashed successfully.
    Dumping whole memory works fine.
    PSTools succesfully reads/writes config data.
    Full erase of flash memory ends with timeout message. But most sectors are erased. But not sector 4.

    Tried on 2 modules with same result.
    Tried with resistor-divider programmer and level-shift (74lvc32) programmer.
    Tried in LPT set to normal/bi-dir/EPP/ECP modes under WinXP Pro 32 bit.
    Not tried on another PC. Have only one with LPT.

    ReplyDelete
    Replies
    1. Update:
      - Tried on another PC with same (negative) result;
      - Tried with another (third one) module with same (negative) result;
      + Tried with another (fourth) module and voila! Success!!!

      All modules from Dealextreme, bought at one time. Looks identically.

      Delete
    2. Same problem here. Tried with 2 modules bought from dealextreme 1 month ago. Results:
      C:\Program Files\Bluetooth_BlueSuite 2.4>blueflashcmd Byron_HC05
      blueflashcmd, version 2.4
      Copyright (C) 2002-2011, Cambridge Silicon Radio Ltd.
      Resetting XAP
      Burning Image:
      Device 0: Failed to erase sector 4.
      Device 0: Failed to erase sector 4.
      Device 0: Failed to erase sector 4.
      Device 0: Failed to erase sector 4.
      Device 0: Failed to erase sector 4 after 4 attempts. Abandoned
      100%
      Result: Calculating CRC's on relevant sectors
      Success


      In any case, thanks Byron for your helpfull page!

      Delete
    3. Well the problem seems to be from the flash of the device, it has locked blocks of memory.
      There is a method to temporarily disable the write/erase lock and is described in the datasheet of flash but I can't see how this can be achieved without desoldering the chip.

      Delete
    4. Would you show me the datasheet with that information ? I had searched it thru many ones, but can`t find it =(

      Delete
  88. Amazing!
    Hmm LPT was not found by the software (mainboard asusM4 with lpt). Will try it somewere else

    Offtopic:
    Does anybody know how to detect a iphone with the HC-05 AT commands?
    - I dont have to pair it..
    - I can only detect it when i go in the bt menu iphone (discovering)
    - I dont detect it when bluetooth on iphone
    - other phones are detected

    ReplyDelete
  89. Hello Byron
    Really Nice Work, You are the MAN
    I am the owner of V1BlueShark product, i used to work with seeedstudio (GREEN) BT module which works perfectly with my Android v2.2 cell phone.
    Seeedstudio lately produce (BLUE) BT module which works only with my PC.
    After alot of searching in internet and many experiments i found your great blog, I build the flasher and success in read Green BT, Blue BT and dealextreame BT and swap the software between them.
    THE Results :-
    1) Green and Blue BT has the same software and i guess the problem is from hardware.
    2) Dealextreame BT success to work with seeedstudio Green BT with my Android v2.2 cell phone (with one red led, emit ONLY when connection is establish ).

    BY the way i use to build the flasher pins the "GROVE" of seeedstudio after small bending of its pins.

    ReplyDelete
  90. Hello!
    At first thanks for all the information! It is really important to me!

    Well, I made the ltp-spi adapter and I can use the pscli to read the identifier, but I cannot dump or write the firmware.

    Always time-out.

    I'm using an Athlon XP with Abit Nvidia Board (it was the only computer with a real ltp that I can get) and Windows XP 32Bits Pro. LPT settings EPP-ECP-Normal already tried.

    Does anybody go thru this?

    I read above that was a user with the same problem.

    Thanks very much.

    Regards.

    ReplyDelete
  91. Hello again!

    After some other tests, I manage to upgrade the firmware.

    In LTP properties I needed to select to use an interrupt. Without this the BlueFlashCMD cannot work.

    I hope this help.

    Thanks again.

    Regards.

    ReplyDelete
  92. Hi,
    I tried to upgrade my bluetooth module with this programmer, but there are two things :

    -The LPT port isn't recognize by the PStool.
    - The bluetooth module heat a little...

    I use windows XP.

    How should I do to make the LPT appear?

    Thanks for your help.

    ReplyDelete
  93. link is dead 4share can somebody reflesh that

    ReplyDelete
  94. Hello Byron! First of all, thank you for the effort that you have done in making this blog. It seems like a one stop site for the HC05 Bluetooth module. :)

    Moving on, I would like to ask if there is a firmware for HC05 that supports HID profile? I badly need it for my BT module, and I can't find any website for this kind of information. Thank you again in advance and more power!

    ReplyDelete
    Replies
    1. I'v successfully wired up arduino SPI pins to the HC module pins and replaced the firmare using Frans-Willem arduino sketch and alternative dll replacment for BlueFlash (spilpt.dll).

      The firmware i'v flashed is the CSR HID Mouse application example that resides in the CSR IDE (BlueLab 4.1.1 / 4.1.2).

      Delete
  95. Hello all,

    Has anyone been able to establish a communication between a BC4 and an Android phone under version 4.1.1 ??

    I have a firmware that is perfectly working to create an SSP serial link with older version of Android, but since the upgrade it is completely broken...

    Pierre

    ReplyDelete
  96. Hi, dear all!
    Any ideas on how to enable RTS pin (HC-05)? I need it SO much.
    Serge

    ReplyDelete
  97. Hi
    I bought a module (AUBTM22) and i hadn't problem with it until i change it's UART baud rate to 1382400,after that when i send it any AT Command it sends me error and i don't know how i should restore it's baud rate to 9600.
    Now it's my questions:
    1-If i read firmware from another same module and write that firmware on it ,it will work or not?
    2-Who wrote the firmware 'module maker company' or 'CSR company' and what is difference between 'xdv 'file and 'dfu(Device Firmware Upgrade)' file ?
    3-Can i fix it with read it's 'psr' or 'xdv' or 'xpv' file and change it's content and write it again to the IC?
    Thanks in advance

    ReplyDelete
  98. Hi,

    Is the CSR suite available anymore, registration complaints about webmail usage, and as an home user I'm not a corporate customer.

    Is there a opensource flasher to put hc5 in these modules?

    ReplyDelete
    Replies
    1. Just hit register again and it will work.

      Delete
  99. Byron,

    If I understand you correctly, I have to modify the firmware in order to get hardware flow control to work on the HC-05. Is that your understanding?

    thanks,

    ReplyDelete
  100. Hello,
    is someone working with ADK2.5 with CSR8670 ? if yes, send me email please.
    Is about config the sink demo
    Thanks,

    nissim@vitelix.com

    ReplyDelete
  101. Bryon,
    Outstanding job on that HC05 firmware upgrade. This is something I ws looking for a very long time! I'm using these bluetooth modules with my ARM-Cortex-M0+ FRDM-KL25Z board (http://mcuoneclipse.com/2013/02/14/bluetooth-with-the-freedom-board/) and your posts helped a lot.

    ReplyDelete
  102. Hi Byron,

    Thanks for all the useful information.

    FYI. I didn't have 3K and 1k6 resistors to make the LPT to SPI interface, so I've used 2k and 1k, and BlueFlashCMD seemed to work OK, and I dumped my original firmware and flashed your HC05 firmware (albeit, I can't get your firmware to work on my module at the moment, but I think its a probably a PSKEY issue as I didn't merge my dumped settings file back into the module).

    I've kept the length of wires between the interface and the module quite short, i.e 5cm, as I know that SPI has problems when you use long wires.

    ReplyDelete
  103. Hi,

    If i flash a wrong firmware, and the module SPI dosent respond? there is any way to reflash again ?


    Adrian.

    ReplyDelete
  104. Developing a wireless Audio or Data accessory can become a tedious, expensive and risky project. By offering a fully integrated solution with certifiedBluetooth Module the associated development kits and Smart Phone Apps

    ReplyDelete
  105. Hi,
    I'm trying to flash using arduino. I've flash the sketch to arduino, connected the module's SPI pins to the arduino SPI pins and connected the 3.3 volts power supply to the module. When I'm trying to dump the firmware, the LED rapidly blinks and I get "Error detecting chip type" error.
    What may be wrong?
    Thanks,
    Vadim

    ReplyDelete
    Replies
    1. Actually what was wrong its the arduino bitbang sketch.
      The working setup is same as above with spilpt.arduino dll and matching sketch.

      Delete
    2. Hi. I am having the same problem. Error detecting chip. Can you please send me the working Arduino sketch please? Or the files that you used to read the module?

      Delete
  106. Hi. Can some one help me please? I have downloaded the file frans uploaded and uploaded the bitbang sketch to my arduino but I don't know how to continue from there. I can not find the new spilpt.dll in the folder and I would be happy to have a some better instructions. Thanks

    ReplyDelete
  107. Try this Rar file it has correct pin mapping and Sketch to dump and flash firmware
    https://drive.google.com/file/d/0ByTPNihidRDYakQzdlVJc1F1a3c/edit?usp=sharing

    ReplyDelete
    Replies
    1. Hi James. Thanks very Much for the files. But I have another problem now. Whenever I try the command I get the error that the Port is not found. My Arduino Uno is on COM6 and I replaced x by COM6 but it does not work. Did I miss something?

      Delete
    2. Try 6 instead of com6

      Delete
    3. Hello,
      I'm havinf this error with your rar.
      "Transport library (spilpt.dll) failed to load (126)"
      before that i had: "Error detecting chip type"
      Please help.

      Delete
    4. Hi,
      When i use the files from CSRHid_BC4Ext1MB_Firmware, i get this log:
      ------------------------------------
      E:\arduino\CSRHid_BC4Ext1MB_Firmware>BlueFlashCmd.exe -TRANS "SPITRANS=LPT" -port 5 -DUMP OriginalFirmware
      blueflashcmd, version 2.2
      Copyright (C) 2002-2009, Cambridge Silicon Radio Ltd.
      spilpt.arduino.bitbang.dll enabled!
      Error detecting chip type
      Failed
      ----------------------------------------
      and when i use your rar file, i get:
      E:\arduino\HC05>BlueFlashCmd.exe -TRANS "SPITRANS=LPT" -port 5 -DUMP OriginalFirmware
      blueflashcmd, version 2.2
      Copyright (C) 2002-2009, Cambridge Silicon Radio Ltd.
      Transport library (spilpt.dll) failed to load (126)
      Failed

      What am i doing wrong?

      Delete
    5. use this spilpt.dll created by me
      https://drive.google.com/file/d/0B8JPRCBig89QUThCSVg5SlVnajA/edit?usp=sharing
      proof
      https://drive.google.com/file/d/0B8JPRCBig89QSm92RElRNDZ6RW8/edit?usp=sharing

      Delete
  108. It did not work. But then I tried a different computer and it worked with "6" not "COM6" I was able to read the flash and data and burn the HC-05 firmware and data back. Thanks very much for your help!!

    ReplyDelete
  109. I tried James Connell's package of utilities and had a bit of trouble getting it to work. Here's basically what I did to get it running:. I'm not sure whether or not you need an LPT port to use that package, but I configured one anyway.

    1) my PC is running 64bit Win7. It does have an LPT port header on the board so I enabled it as an ECP port, and chose "Use any interrupt" in the Device Manager properties.

    2) I created a new VM, 32bit-XP, in VirtualBox and installed WinXP. I added an LPT port using "vboxmanage modifyvm 32bit-XP --lptmode1 LPT1" and "vboxmanage modifyvm "32bit-XP" --lpt1 0x378 7". In the VM, I chose "Use any interrupt" in the Device Manager properties.

    3) I installed drivers for my Arduino Uno in the VM and activated the USB port for it in the Devices menu of VirtualBox. That successfully mapped the USB on the host to the VM and the Arduino showed up. I installed the sketch from James' package.

    4) I connected my HC06 module to the Arduino. I had to solder 4 wires on to it and then connected those to the Arduino per the instructions in the readme.txt. And I connected 3.3v and Gnd to VCC and Gnd respectively.

    5) At this point I couldn't get BlueFlashCmd to work - just got the spilpt.dll 126 error message. So I installed BlueSuite 2.5 on the VM. Tried BlueFlashCmd again and, for some reason, got an error message about msvcr100d.dll being missing. So I found that and put it in windows\system32.

    6) Ran BlueFlashCmd again (to dump the firmware). The TX and RX LEDs on the Arduino lit up but the software hung at Resetting XAP. So I hit CTRL-C and tried again. This time it worked.

    7) Ran BlueFlashCmd to load HC05. Same issue as before - hanging at Resetting XAP. Hit CTRL-C and power cycled the bluetooth module. The firmware upload then worked.


    I haven't yet tried the module to see if it's really updated, but I assume it is!

    Thanks to everyone who's been working on this.

    ReplyDelete
    Replies
    1. It worked for me - well, IT seems to be working - the module still work at least.

      Now I'm looking for the HC documentation that describes the HID use - I googled it and nothing, the only sample I have are those ones that came with the bluelabs but they are hard core - I'm looking for something easier to understand - something using SPP to enable the HID profile ...

      I'm not even sure if it's possible.
      Would be cool to get some help ...
      HELP!!!

      Delete
  110. with @JAMES CONELL FILE
    use this spilpt.dll created by me it workss fine
    https://drive.google.com/file/d/0B8JPRCBig89QUThCSVg5SlVnajA/edit?usp=sharing
    proof
    https://drive.google.com/file/d/0B8JPRCBig89QSm92RElRNDZ6RW8/edit?usp=sharing

    ReplyDelete
  111. http://adf.ly/hOAvp
    download bluelab 4.1

    ReplyDelete
    Replies
    1. spent half my day trying to get into that site, only to give up and start looking for it elsewhere. I found that looking for it by a different file name helped. ( 110720CSR_CASIRA_BLUELAB_SDK_v4.1.zip )
      and I got the file here http://depositfiles.com/files/fd0ny5lj0

      Delete
  112. It worked like a charm!

    Thank you.

    ReplyDelete
  113. Hi Byron,

    Thank you for a wonderful blog post on the HC-05/06 bluetooth module. I've been using this bluetooth module for a little while now and I haven't been able to change the state of RTS. I was hoping that with your extensive knowledge of these bluetooth modules you would know if it's possible to activate RTS.

    Thank you for any help you can provide.

    ReplyDelete
  114. This comment has been removed by the author.

    ReplyDelete
  115. for everyone running into problems (like me with win 7 64bit) here are the SW requirements for the CSR-Tools (at least for BlueSuite, but I think it's the same with the blueflashcmd.exe):

    2 System Requirements
    Minimum system requirements for BlueSuite are:

    Pentium processor based personal computer

    64MB of RAM

    20MB of available hard disk space
    2.1 Operating System
    BlueSuite can be use
    d on the following
    operating
    systems:

    Microsoft Windows
    XP Service Pack 2 and later (not x64)

    Microsoft Windows Vista (not x64)

    Microsoft Windows 7 (not x64)
    See the release notes for testing information and detailed oper
    ating system requirements.
    2.2 Software Required
    Your copy of BlueSuite comes with:

    Microsoft .NET Framework Version 2.0 Redistributable Package

    Visual C++ 2005 Redistributable Package


    Will try a virtual box with XP 32bit and report if that has worked out.

    ReplyDelete
  116. It worked into windows xp 32?

    I did tried into windows 7 64 with a real LPT port and it's not working. BlueFlash is sends "002222222222222" to the serial/arduino then it stops. I saw James bitbang code and it is expecting "1something else to be read" so it will never read whatever the blueflash is sending ...

    ReplyDelete
  117. Hi again.

    I have to correct a little bit.
    BlueSuite is working with Win 64bit. Even with the Win 7 64Bit. But only the newer version of it (BlueSuite 2.5.8).
    The only drawback with the newer version is:
    According to the documentation, LTP-SPI emulation will definetly NOT work with 64bit Win OS. Only fancy USB-SPI emulators for like 300$ work.

    Also my experiments with virtual box and a passthrough of the LTP-SPI traffic from a guest WinXP 32Bit to Win7 64Bit Host didn't work out.
    Couldn't meassure any change on parallel port pins.
    At least with multimeter.
    Maybe I will have time to dig out my scope at the weekend and verify this definetly.

    Shame is: I have an old P4 Board and CPU around, but I have rebuilt the according ATX-PSU into a bench supply for charging my drone batteries. 2 Weeks ago. *Dooohhh!* :)

    ReplyDelete
  118. I recently flashed 4 modules using windows XP 32 bit and LPT port. I couldn't get it to work with a teensy + arduinobitbang. I also had troubles with windows xp and LPT but it was because even though I installed blue suite 2.4 , I did not run the drivers install .bat files located here : C:\Program Files (x86)\CSR\BlueSuite 2.4\drivers\win32\InstParSpi.bat which adds a registry key .. Doing so and rebooting fixed my problems and was a breeze to flash after that over LPT and voltage divider circuit shown by Byron.

    I also read on another forum that you can find the firmware for the USB SPI flasher software from CSR's site , and that firmware can actually be flashed to your bluetooth module to turn it into a real USB SPI flasher , just like the 300$ one, because that's the chip it uses .

    Good luck.

    ReplyDelete
  119. Thans a lot. We have to update a full batch of them and the command line explanation was the life saver.

    Thanks a lot.

    ReplyDelete
  120. friend can not run the command in BlueLab "syntax of error" .. could you help ??

    ReplyDelete
  121. Thanks for the great job you have done here. Ordered HC05 but received HC06. Now they are "upgraded". :-)

    ReplyDelete
  122. Because of different problems on 64 bit Windows systems with Arduino based solutions I would like to point to another very interesting project:
    https://github.com/lorf/csr-spi-ftdi

    That project uses one of the widespread FTDI USB adapter boards.
    It worked very well on my Windows 7 64 bit system with CSR BlueSuite 2.5.8 and it was very simple to realize. I only had to solder four wires to the appropriate pins of my FTDI breakout board.

    ReplyDelete

  123. Excellent blogs. I really appreciates with your article. thanks for sharing this blog
    floor marking tape singapore | gold pen base

    ReplyDelete
  124. Hello
    I have problems updating the firmware of the last modules HC06 that I have purchased.
    They do not respond to PStool program and with BlueFlash is not possible to reset them.
    I have same old module and everything is ok with them.
    There is any difference with this new generation of HC06?
    The look identical, except for the bottom that now is all covered with a white paint.

    ReplyDelete
  125. Hi Byron,

    Thank you for all your informative posts. I really appreciate this blog.
    Do you know if is possible to extract a xdv and xpv files from a dfu file.

    Thank you,

    ReplyDelete
    Replies
    1. xdv and xpv files can be extracted from dfu using DfuUnbuild from BlueSuite:

      DfuUnbuild.exe -f DeskTop.dfu -v -o DeskTop-extracted

      Delete
  126. Hi everyone,

    Is it possible to extract the firmware from its dfu file?

    Thank you,

    ReplyDelete
  127. Hello,
    for my project I need the HC06 firmware but I have only HC05 modules. Can somebody send me the HC06 firmware files to ulrich@holeschak.de?

    ReplyDelete
  128. hey Byron
    I have some problem with 8645, could you help me?
    My @ wchpikus@wp.pl or wchpikus@gmail.com
    I will be great-full

    ReplyDelete
  129. Hey Byron,
    Can you give me some idea how Bluecore5 Multimedia platform is portable to Bluecore 8670?
    I have headset sourcecode with my changes and .xpv generated under Multimedia platform now i want the same functionality to flash in 8670.
    What should i do to do it efficiently?
    My email id is puri.mayur@gmail.com
    Help would be highly appreciated.
    Thanks

    ReplyDelete
  130. My bios doesnt has the option to enable the parallel port but while installing bluesuite tools I noticed an alternate option that said "set debug transport to USB". Do you know if by using suitable usb to spi bridges is it possible to dump and flash firmwares. Nice blog by the way and even better work with the programmer.

    ReplyDelete
  131. Thanks byron for this useful post. I could not figure out what is the difference between .xdv and .xpv extension files.

    ReplyDelete
  132. hey byron thanks for the post, where can i find the hc05.xdv and hc05.xpv files

    ReplyDelete
  133. http://pastebin.com/V91PZBnJ
    Here you go!

    ReplyDelete
    Replies
    1. I didn't uploaded it though! I flicked this link from a Youtube video...

      Delete
  134. Hey byron, cool post ! I've just recently bought a usb spi converter which seems to work quite well with the module I have - CSR8645. Pretty sure it wasn't around at the time you made this post though; Anyway, so, I managed to change its name, its equliser settings, and I'm also very much keen on making it not act as if it has a microphone attached to it; there are some toggles in the ConfigTool, but they don't seem to work (using ROM ConfigTool 3.0.70, which does support the 8645, unlike 3.0.64). Do you know wether or not this could be fixed the firmware route ? Or could anyone else chip in ? Thanks :)

    ReplyDelete
  135. Hi thank you for the helpful post

    I am currently studying the CSR 8675 chip and programming it using the ADK4.0.1

    Using the CVC 2-mic headset project of the Sink project, I want to send the audio input of the microphone (ADC) through the sender side CVC CVC modules, then instead of sending the result of CVC operations to the bluetooth radio (which is the default behaviour), I want to send it to the receiver side CVC modules which will finally send it to the speakers (DAC)

    Basically what I want to do is

    ADC -> sender side CVC -> receiver side CVC -> DAC

    while the default behaviour is
    ADC->sender side CVC-> send out through Bluetooth radio
    receive through Bluetooth radio->receiver side CVC-> DAC

    If you have any idea about this, please give me some pointers on how this may be achieved, or if this can be done at all.

    Thank you.

    ReplyDelete
  136. From the contributions which I have found in this blog, it is evident that the readers have found this blog to be informative. After seeing the representations in the blog, I have sought to even understand more concerning the things which are being explained. Soldering is one of the electrical practices which are earning a number of people livelihoods. University SOP Proofreading

    ReplyDelete
  137. I landed on this page while I was looking for professional writers to Write Essays For Me so I did not get the chance to practice the soldering skills outlined hence I will bookmark this site so that I can visit it during my free time and practice soldering the programmer. Thanks for sharing this amazing and practical article.

    ReplyDelete
  138. hi byron, nice work and thanks for sharing i prefer this method instead of ftdi programmer, i just wanted to ask if you knew of any possible link to blue lab with hc-05 source code or is buying it the only way as i really need it here my email address frazergreet@yahoo.co.uk either way thanks

    ReplyDelete
  139. Hi Byron and thanks for the post. I am having an issue using pscli. I can connect to my device with no problems us PSTool.exe using USB with port set to \\.\CSR0 but when I try using pscli running the command you listed I get an error stating concluded with Failure (Couldn't find device with id (0)). Do you have any idea what could cause this issue? I have tried using @usb and -USB 0 but with no avail. Stuck right now!

    ReplyDelete

Note: Only a member of this blog may post a comment.