El HC-05 responde ERROR:(0) a todos los comandos AT excepto AT a secas
Traducido del English por IA ·
Una pregunta rápida, probablemente vergonzosa. Estoy usando un HC-05 como puente serie para que una balanza de laboratorio envíe los pesos a una pasarela que los reenvía a Hermetry. Quiero renombrar el módulo y poner su velocidad en 9600 baudios.Manteniendo pulsado el botón al encenderlo, el LED parpadea lentamente cada 2 s, así que está en modo AT. Envío desde un sketch de Uno que pasa el Monitor serie al HC-05 a 38400. «AT» devuelve «OK». Todo lo demás:
AT+NAME=BAL-07
ERROR:(0)
AT+UART=9600,0,0
ERROR:(0)
Quick one, embarrassing probably. I’m using an HC-05 as a serial bridge so a lab balance can send weights to a gateway that forwards them to Hermetry. I want to rename the module and set its baud to 9600.
Holding the button at power-up, LED blinks slowly every 2 s, so it’s in AT mode. I’m sending from an Uno sketch that passes the Serial Monitor through to the HC-05 at 38400. «AT» gives «OK». Everything else:
AT+NAME=BAL-07
ERROR:(0)
AT+UART=9600,0,0
ERROR:(0)
Traducido del English por IA ·
Quizás la velocidad en baudios es incorrecta. Prueba con 9600 en el sketch.
Maybe the baud rate is wrong? Try 9600 in the sketch.
Traducido del English por IA ·
Me pasó lo mismo con uno de un kit de inicio, sigo el hilo.
Same thing happened to me with one from a starter kit, following.
Traducido del English por IA ·
La velocidad en baudios es correcta, de lo contrario el AT simple tampoco respondería OK. ERROR:(0) es el código del HC-05 para un comando que no pudo interpretar, y con este módulo casi siempre significa un problema con el final de línea. Requiere que cada comando termine en CR+LF. Si el monitor serie está en «No line ending» o solo en «Newline», el «AT» corto a veces llega, pero los comandos más largos no.Configure el monitor en «Both NL & CR». Escriba también los comandos en mayúsculas, y en algunas versiones de firmware AT+NAME solo funciona si el pin KEY/EN se mantiene en alto durante todo el proceso, no solo al encender. Si NAME sigue fallando, conecte KEY a 3,3 V con un cable mientras lo envía.AT+UART=9600,0,0 establece después la velocidad en baudios del modo de datos. El modo AT se mantiene en 38400 en cualquier caso.
The baud is right, otherwise plain AT wouldn’t answer OK either. ERROR:(0) is the HC-05’s code for a command it couldn’t parse, and with this module that almost always means the line ending. It wants every command to end with CR+LF. If the Serial Monitor is on «No line ending» or «Newline» only, the short «AT» sometimes gets through and the longer commands don’t.
Set the monitor to «Both NL & CR». Also type the commands in capitals, and on some firmware versions AT+NAME only works while the KEY/EN pin is held high the whole time, not only at power-up. If NAME still fails, tie KEY to 3.3 V with a wire while you send it.
AT+UART=9600,0,0 then sets the data mode baud. AT mode stays at 38400 regardless.
Traducido del English por IA ·
El monitor estaba en «Newline». Tanto NL & CR como NAME y UART se enviaron a la vez. Kevin, la velocidad en baudios estaba bien, el modo AT siempre es 38400 en estos.
Monitor was on «Newline». Both NL & CR and NAME and UART went through at once. Kevin, the baud was fine, AT mode is always 38400 on these.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

