![]() |
Forum Index : Microcontroller and PC projects : Configuring HC-05
Author | Message | ||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
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 statej AT+UART=38400,0,0 ------(Set transmission rate to 38400 bps, one stop bit and no parity bitj 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. |
||||
Phil23 Guru ![]() Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
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 ZealandPosts: 711 |
Hi Take look here this might make using the module a little easier HC05 Regards Jman |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
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: AustraliaPosts: 689 |
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 !! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |