Hi !The first time I bought some UART bluetooth devices, I ordered them on suntekstore.com website. Since these devices seems promising, i ordered a few more on DealExtreme for my job.
I discovered that even these boards seem identical, they had different firmwares.
The suntekstore ones has HC05 firmware, the DealExtreme ones has linvor 1.5 firmware.
The differences between them is mainly the AT command set.
Linvor 1.5 also known as HC06
This firmware offers a very limited set of AT command.
By default the baudrate is 9600 8N1.
For this firmware you have to not send LF or CR character at the end of your AT command.AT programming mode is up when your board is not paired by bluetooth devices. For this firmware, you have to copy/paste AT command since timings is important. You can send about one command per second.
Command
|
Response
|
Note
|
AT
|
OK
|
Usefull
to check connection and baudrate
|
AT+VERSION
|
Linvor1.5
|
Get
the version of the module
|
AT+BAUDx
|
OKyyyy
|
Set
the baudrate :
x can
take the following values :
|
AT+NAMEString
|
OKsetname
|
Change
bluetooth device name :
String
can be any string you want ! be creative !! (20 characters
limited)
|
AT+PINxxxx
|
OKsetpin
|
Set
the bluetooth pincode :
1234 by
default
|
And that's it !!! No other AT command.
In the next, post I will provide some links to the HC05 firmware. This one is a bit better than HC06.
In dealextreme module the Pin 24 is for connection led.
ReplyDeletethank you i will test and update
ReplyDeleteYou can also set the parity with:
ReplyDeleteAT+PN -> None
AT+PE -> Even
AT+PO -> Odd
Thanks a lot for the info. I order a few of these modules and to my surprise, they are HC-06. I have a few questions, they may be trivial, but I'm am a novice in electronics:
ReplyDelete1. How important is the value of the resistors? I mean, it seems to be a voltage divider, can you provide some info on Vin/Vout? I don't think I have these resistor values around and I would like to get started on this.
2. Will the activity led remain at pin 24? I saw some diagrams for HC-05 where the led was connected to another pin, but I guess this change is done in firmware since this are programmable I/O pins
1. http://www.magic-worlld.narod.ru/ try to calculate good values. vin 5 and vout 3.3
ReplyDelete2. led connection its done by firmware so hc05 diagrams show right pin for led
http://microsin.ru/content/view/1284/44/
ReplyDeleteINFOS for and Pictures for the
BlueFlashCmd Tools.
Gruss Holger.
If the voltage divider is for vin 5v and vout 3.3v then a Schottky/3.3v pullup divider should also work, correct?
ReplyDeleteThanks
probably !!!
ReplyDeleteHi Byron, first I'd like to thank you for all information about BT modules you have provided here and on DX website. I bought several modules on DX with linvor 1.5 fw. Unfortunately these modules work bit strange. Once everything works fine another time there are some interuptions in communication or it's not possible to establish connection. From this reason I'd like to update these modules to HC05 fw. I've downloaded original fw acording to your describtion. It wasn't possible to open LPT port, so I re-installled drivers ...//driver/win32/*.bat restarted PC, after restart it work fine(WXP, LPT1 EPP mode). In the next step I need to dump configuration constants related to concrete module, but I didn't catch how to proceed from your describtion of PSKEY command. Please,could you describe it more in detail? Will you post step by step instructions how to flash linvor to hc05 fw? thx JAN
ReplyDeleteIn fact you only have to keep your Bluetooth identifier. You can make this by script with pscli command or via the pskey tool provide by CSR
ReplyDeleteHi,
ReplyDeleteCan be used as a bridge between bluetooth and RS232 ?
My model is Linvor (EGBT-046S) from DX.
Thank You,
Best regards,
Csaba Aranyi
Hi Byron,
ReplyDeletehow do You set command mode?
I have 2 types of BT modules, for BTM0604 http://www.oemblue.com/BTM06%20class2%20standard.html there is software to set UART mode parameters and Manual with AT cmds, for the second one A18 http://www.ktlink.cn/en/product2show.asp?id=6 only pin placement, both use CSR BC417 (does the same chip on Your modules?)
The first already works as BT-RS232 bridge; to set it in cmd mode one must connect Vcc to PIO6/WLAN_Active/Ch_Data pin. Is it so in Your modules?
Vadim