ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It truns out it is the problem of baudrate of my bluetooth module! The chip (named YFRobot HC-05) is a china made cheap one and not is a real HC-06 or any official supported chip. The common procedure of setting baudrate in a console just won't work. Finally There is something like a single post in some unkown chinese forum that provides the datasheet (Luckily I can read simplified Chinese ^^). http://www.yfrobot.com/forum.php?mod=viewthread&tid=4 You have to:

  1. connect PIN SET to 5V
  2. power up
  3. set up some kind of terminal that maps input 'Enter' to '\r\n' (carriage return and new line?). I think this is different from some of the board.
  4. use AT command to change the settings. AT+BAUD1---1200 AT+BAUD2---2400 AT+BAUD3---4800 AT+BAUD4---9600(模塊出廠設置是9600頻率) AT+BAUD5--19200 AT+BAUD6--38400 AT+BAUD7--57600 AT+BAUD8--115200 AT+BAUD9--230400 AT+BAUDA--460800 AT+BAUDB--921600 AT+BAUDC-1382400 But baud rate higher then 57600 is not usable on my module. Hope it helps someone.

It truns out it is the problem of baudrate of my bluetooth module! The chip (named YFRobot HC-05) is a china made cheap one and not is a real HC-06 or any official supported chip. The common procedure of setting baudrate in a console just won't work. Finally There is something like a single post in some unkown chinese forum that provides the datasheet (Luckily I can read simplified Chinese ^^). http://www.yfrobot.com/forum.php?mod=viewthread&tid=4 http://www.yfrobot.com/forum.php?mod=viewthread&tid=4

You have to:

  1. connect PIN SET to 5V
  2. power up
  3. set up some kind of terminal that maps input 'Enter' to '\r\n' (carriage return and new line?). I think this is different from some of the board.
  4. use AT command to change the settings. AT+BAUD1---1200 AT+BAUD2---2400 AT+BAUD3---4800 AT+BAUD4---9600(模塊出廠設置是9600頻率) AT+BAUD5--19200 AT+BAUD6--38400 AT+BAUD7--57600 AT+BAUD8--115200 AT+BAUD9--230400 AT+BAUDA--460800 AT+BAUDB--921600 AT+BAUDC-1382400 settings.
    AT+BAUD1---1200
    AT+BAUD2---2400
    AT+BAUD3---4800
    AT+BAUD4---9600(模塊出廠設置是9600頻率)
    AT+BAUD5--19200
    AT+BAUD6--38400
    AT+BAUD7--57600
    AT+BAUD8--115200
    AT+BAUD9--230400
    AT+BAUDA--460800
    AT+BAUDB--921600
    AT+BAUDC-1382400

But baud rate higher then 57600 is not usable on my module. Hope it helps someone.