
Hello,
Let's take a look to the HC05
firmware.
This one offers a wider range of AT
command set.
With these AT commands you can set the
module to master or slave devices.
I will not describe all the AT command
since you can refer to online documentation.
Before going on, you had to know that
entering in the AT mode is a bit more difficult with HC05
firmware.
This firmware provides 2 ways to
activate AT mode :
The first way is described as below :
- set low level on PIN34
- Supply power to the module
- set high level on PIN34
Then the module will enter on AT mode
without your configured baud rate (default : 9600 8N1)
The second way :
- set high level on PIN34,
- Supply power to the module
The module will ALWAYS enter in AT mode
with a 38400 baud rate (8N1).
The second way is kind useful if you
don't remember your configured baud rate.
As you probably notice, AT mode can be
reached only when PIN34 is high.
Moreover sending AT commands is
different from the HC06 firmware (Linvor). In HC05 firmware you have
to send CR and LF after each command.
For your information, here comes some
useful AT commands :
- AT\r\n AT test command should respond OK\r\n
- AT+ROLE=1\r\n Set master mode
- AT+ROLE=0\r\n Set slave mode
- AT+VERSION?\r\n Get the firmware version
- AT+UART=115200,1,2\r\n Set the baud rate to 115200 (8E2)
- AT+PIO=10,1\r\n Set PIO10 to high level
- …
Further information can be found in
this documentation.
That's it for now...
The next article will answer this question : Can I upload a HC05 onto a linvor module ?
Do you know if hc05 fw have more serialpins connected/programmed as tx and rx ?
ReplyDeletethere's only one UART port connection... it's due to the CSR chip not the firmware version.
ReplyDeleteWhy do you want more serial pins ?
well i mean DSR, DCD and DTR serialport signals,
ReplyDeleteWhere can I find the HC05 FW to download?
ReplyDeleteAy the end of the following post :
ReplyDeletehttp://byron76.blogspot.com/2011/09/i-hope-you-have-good-time-soldering.html
Could you say, where did you get HC05 version? :-)
ReplyDeletein the "Flashing a new firmware" post
ReplyDeleteSorry for the last answer, but the has been extract on board from suntek, website. See my second post
ReplyDeleteOh, great, thank you.
ReplyDeleteByron would like a help!
ReplyDeleteI upgraded the firmware hc05, I think we've succeeded! But now I'm able to send any AT command! When I turn on the module, the LED blinks, detect the bluetooth module for the PC! I'm sending the command AT \ r \ n, it returns nothing!
I noticed something when I turn on the module with the pin 34 high LED flashes more slowly! Can you help me?
Thank you!
If you want to enable AT mode, your module must not be paired with another Bluetooth device.
DeleteHi Byron,
ReplyDeleteThank you for your great work with this Bluetooth module.
I have a (maybe silly) question:
- Is it possible to pair with PC via Bluetooth and use AT commands to control GPIO (PIO pins) remotely?
I'm asking it because I don't want to use it just like a BT/Serial interface, if I have remote GPIO access I can control external things directly from an Android phone without using a microcontroller in the other end to control devices.
In fact the CSR chip is already an uC, then I can use its GPIO to control anything, but I don't know if the firmware allow me to do it remotely. I think these AT commands to control PIO pins needs to be executed locally (over serial), but maybe I can control it over BT connection as well.
Could you please confirm or not if it is feasible?
Best Regards,
Alan
hai..... i am using this module for my BE final year project...
Deletei need to use GPIO pins or CTS,RTS pin with matlab....how can i read or put a bit(high/low) through this pins......Tx, Rx fine no problem.
why i am asking this because,when GPIO pin is set high/low, i need to start data acquisition from my ADC.Please need idea.
Thanks & Regards
Ikram khan
ikramkhan11692@gmail.com
Nop !
ReplyDeleteSince AT mode could not be enable when your module is paired it is not possible !
But... you can make your own firmware if you have some basic C/C++ skills ... This is the subject of the next post... don't expect it soon !
hai..... i am using this module for my BE final year project...
Deletei need to use GPIO pins or CTS,RTS pin with matlab....how can i read or put a bit(high/low) through this pins......Tx, Rx fine no problem.
why i am asking this because,when GPIO pin is set high/low, i need to start data acquisition from my ADC.
please Tell me how to activate this pin to read with matlab?
Thanks & Regards
Ikram khan
ikramkhan11692@gmail.com
Hi Byron,
ReplyDeleteThank you very much.
I'm also an embedded system developer with Linux (uClinux) background and a little bit of RTOS (mainly NuttX). I just received my Bluetooth module (from dealextreme) yesterday night.
I read the manual but didn't see nothing about remote AT commands.
Did you already compile some code and put it in our flash device?
Best Regards,
Alan
Do you really need to fiddle with pin 34 to change the Radio name? I've got one from DX with male headerpins with heatshrink around it.
ReplyDeleteHi!
ReplyDeleteThis link is no longer working:
http://dl.free.fr/d8j4i42Wi
Can you upload the HC05 firmware somewhere else? or send it via email ... you can send to: spam at croler net
Thanks!
the link seems to work for me !!
ReplyDeletecould you try this one and upload it somewhere for me ? http://dl.free.fr/dfcnuH9Wn
This comment has been removed by the author.
ReplyDeleteHi Byron, thanks for your blog, I was able to flash HC05/linvor firmware to the module.
ReplyDeleteSPI link over LPT works all right. Settings for UART is 38.4/1806 (default) [im]https://lh6.googleusercontent.com/-qwGVHOkG5uI/T2tU1PW-TYI/AAAAAAAADdI/gLrtQ43o_TY/s800/terminal.jpg[/im]
Module pulls TX down for 500ms from time to time not accepting AT+ROLE=1 etc. TX does not react on RX whatsoever.
I've using RS232 communication accordingly to datasheet.
That's the signal on RX pin [im]https://lh3.googleusercontent.com/-xf2HtrwsUSw/T2tVGt1l-VI/AAAAAAAADdY/nG5wkqxCKdk/s800/RX-Bluetooth.jpg[/im]
RX pin gets valid UART 3.3v incoming signal from MAX3232 chip.
What can be wrong, why it does not answer UART connection?
Short links for images - Blogspot does not allow to include it in comments
Deletehttp://goo.gl/eOOXp
http://goo.gl/o57uy
Hi Byron, great work. Just a question. You say: "Then the module will enter on AT mode without your configured baud rate" (regarding the first way to get into AT mode)
ReplyDeleteI understand from the datasheet however that if you choose that option you actually get in on AT mode WITH the configured baudrate.
Am I wrong or is it just a type?
it seems to be a typo, I've noticed it too
Deletehi Byron
ReplyDeletei have a module blue tooth, when i power it, it automatic into work mode, pin32 high level before paired, after paired, it get low level. i can't force it into AT command mode although i did 2 way u decribed. i don't receive "OK" when i send AT\r\n command
Thanks
Hello,
ReplyDeletekinda new to this, not sure what you mean by "set low level and high level" ? Is that GND and the 3.3V cables ?
So i touch pin34 with ground cable, keep it there, bring power to the chip, then touch pin34 with a 3.3 V ?
Won't that make an electric short circuit?
thanks
Hi Byron,
ReplyDeleteHow can I know if the module is HC-06 or HC-05? Because I couldn´t enter in the Master Mode ever.
I am affraid my module is not HC-05.
Thank you!
Alexandre.