Go Down

Topic: HC-05 (ERROR-1F)  (Read 4458 times) previous topic - next topic

yhackup

Mar 29, 2018, 07:48 am Last Edit: Mar 29, 2018, 07:50 am by yhackup
Hi,
I have a problem,

I do AT+INQ command ,result  (ERROR-1F).

there isnt  this error in hc-05 documents pdf






Source link

hc05 version 3.0


yhackup

#2
Mar 29, 2018, 08:51 pm Last Edit: Mar 29, 2018, 09:09 pm by yhackup
Unfortunately I did these, but did not work.



Quote
>AT+ORGL
OK
>AT+RESET
OK
>AT+CMODE
+CMODE:1
OK
>AT+ROLE
+ROLE:0
OK
>AT+ROLE=1
OK
>AT+INIT
ERROR:(17)
>AT+INQ
ERROR:(1F)

ieee488

Do you have the exact same HC-05 module?

There are a few different ones.



yhackup

Do you have the exact same HC-05 module?

There are a few different ones.



Yes, same product v3.0

https://www.robotistan.com/hc05-bluetooth-serial-modul-karti-hc05-bluetooth-to-serial-port-module-br

sonevil


sonevil

I found a luck, and maybe someone need to know. And I assume you have some reading about hc-05 module, AT command, and how to pinning hc-05 with arduino board.

There are many kind of hc-05 module, they are almost the same. The only make a big different are from the break board, they EN pin and the micro button. Although some break board do nothing with EN pin.
EN pin almost equal with key pin (pin 34) but not always.

Hc-05 have 2 AT mode;

First is AT mode that you can't do pairing nor inquiring (you'll get error 1F). Indicated by slow flashing led.

And how to get there?

- With micro button. Before connecting vcc, push and hold the button. Then connect vcc and  release
  button. Now you can input AT command.

- With EN pin. Before connecting vcc, connect EN pin with 3v. Then connect vcc and release EN pin.
  Now you can input AT command.

- With pin 34. Same like EN but before that you need to soldering or clamping or some short.


Second mode is AT mode for communicating. Indicated by fast flashing led.

- With micro button. After connecting vcc, push and hold the button. Then connect vcc and  but don't
  release button. Now you can input AT command with your other hand  :o 


- With EN pin. After connecting vcc, connect EN pin with 3v. Then connect vcc and don't release EN
  pin. Now you can input AT command.

- With pin 34. Same like EN but before that you need to soldering or clamping or some short.

-I tested with hc-05 ver 2 2010 and 3 2017 and some horrible clone.
-Be aware, some at command will causing to exit AT Mode.
-EN pin not always working
-key pin (pin 34) is the best (tested with all hc-05)
-Some hc-05 module no need to be initialized (at init) they always initialized
-Do AT+ROLE=1, AT+CMODE, and the most AT+CLASS=0

for at+class https://www.ampedrftech.com/cod.htm

clever way for AT command from sketch https://forum.arduino.cc/index.php?topic=559658.0

ToreJohansson

Ver 3.0 is really tricky. Can't AT+BIND=
Getting error 7.
Something seems very buggy
Any thoughts?

Sushila474

#8
Oct 30, 2018, 11:39 am Last Edit: Oct 30, 2018, 11:44 am by Sushila474
AT+BIND is giving Error{7}.
 the address should be xy:yz:0xxxxx. Add 0 infront of LAP address(6digits). the error is resolved

Go Up