Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:46 01 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Configuring HC-05

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:08pm 07 Apr 2016
Copy link to clipboard 
Print this post


After foolishly confusing the HC-05's that arrived yesterday as being ESP8266's I'm now trying to setup the HC-05 as a slave & give a Bluetooth connection a go.

Have the HC-05 connected to a CP2102, Tx & Rx Swapped, Teraterm ser to send CR+LF, baud rate set to 38400, default for command mode, but have also tried 9600.
Pulled the EN pin up with 3.3v from the CP-2102.

Not appearing be to get into the command state though, and not sure why.

The unit I have, have a button, indicated in the sellers listing as "Remove Button".

Anyone offer a little help here.

I have also noticed it is visible as HC-05 when I scan for Bluetooth devices, so presume it's not in command state when that is the case.

These are the ones I bought, also stamped ZS-040. Notice in the listing the "Remove Button Comment".

Onve I get access to it from the terminal, I assume this should then set it the way I'd need to connect it to the micromite.

[Code]
AT+ORGL ------(Restore the factory default statej
AT+UART=38400,0,0 ------(Set transmission rate to 38400 bps, one stop bit and no parity bitj
AT+NAME=MicroMite
AT+PSWD=0000 ------(Set pairing code to 0000
AT+Role=0 ------(Set if to Slave Mode
[/Code]

Can't seem to see a "Save" command, ahlah the old AT&W command Netcomm used to use, co assume changes are automatically stored.

Assume once I've configured it in the command mode, I can pair with is & then disconnect it & hook it up to the MicroMite & the connection should be re-established.

Edit:-

The led is flashing rapidly on the HC-05.
Edited by Phil23 2016-04-08
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:30pm 07 Apr 2016
Copy link to clipboard 
Print this post

Command state issue solved, just needed to power cycle while EN pin held high.
I have it responding to AT commands now.

Would still like feedback on what the button might be & whether what I say about configuring it is correct.

Thanks

Phil.
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 02:22pm 07 Apr 2016
Copy link to clipboard 
Print this post

Hi

Take look here this might make using the module a little easier

HC05

Regards
Jman
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 03:59pm 07 Apr 2016
Copy link to clipboard 
Print this post

The module usually remembers the last connection and automatically reconnects when power is applied.

I am guessing that the "remove" button is used to remove any association.

It's a while since I played with the HC-05 and HC-06 and I am not in a position to play now.

Jim
VK7JH
MMedit
 
isochronic
Guru

Joined: 21/01/2012
Location: Australia
Posts: 689
Posted: 10:55pm 07 Apr 2016
Copy link to clipboard 
Print this post

I have a "duinotech" module ( I assume it is a HC05 ) "BT-BOARD V2.0"
but it doesnt have the button, only 4 ofthe pins are there with vacancies
for two others marked "state" and "key". Works fine at 9600 but I want
115kbs...can't get a response with AT etc so can't configure it..

Any suggestions or help ? ..

EDIT - it is absolutely identical appearance to HC-05...but is HC-06...
so very different software ...looks like "key" has to be held high for AT mode.
The info sheet is, of course, well, !@#$%^&* "not that useful", but does have different AT commands set ...geez !!
Edited by chronic 2016-04-10
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025