8 janvier 2017
HC-05 and Bus Pirate - AT commands
Connect HC-05 to Bus Pirate according to the previous article
( http://cloudworker.blogspot.fr/2017/01/hc-05-and-bus-pirate-initial.html )
From Bus Pirate, set the HC-05 in AT mode:
From previous configuration, just set AUX to High state ('A')
Now AT commands can be sent to HC-05. Enable Live Display ('{') before
HC-05 and Bus Pirate - initial configuration (9600 bps)
Want to check if HC-05 module is working fine ?
Bus Pirate may help...
Connections:
( http://dangerousprototypes.com/docs/Hardware_overview )
note: AUX (EN) will be used later for tests with AT commands
For this test, my OS is Ubuntu 16.10.
Devices are
minicom -D /dev/ttyUSB1 starts the session on the bus pirate side
First, power on the HC-05, by enabling power ('w')
Now, you can pair HC-05 to the BT dongle.
Example: use the BT device detection from the blueman applet
In my example, HC-05 is connected as /dev/rfcomm3
Now, configure Bus Pirate in UART mode, with 9600 8n1 configuration:
After this configuration, don't forget to enable power
(power is disabled by Bus Pirate after each mode change)
Set the Bus Pirate in "Live Display" mode ('{')
Open a new minicom with the rfcomm device
Change the device data rate to 9600
Now you can see
=> transmission with default 9600bps configuration is OK
Bus Pirate may help...
Connections:
Bus Pirate | HC-05 |
GND (black) | GND |
+5V (gray) | VCC |
AUX (green) | EN |
TX/MOSI (orange) | RXD |
RX/MISO (brown) | TXD |
( http://dangerousprototypes.com/docs/Hardware_overview )
note: AUX (EN) will be used later for tests with AT commands


For this test, my OS is Ubuntu 16.10.
Devices are
- Buspirate
ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC - Asus BT Dongle
ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
First, power on the HC-05, by enabling power ('w')
Now, you can pair HC-05 to the BT dongle.
- The RED LED on the HC-05 module should blink quickly while HC-05 is not connected
- When HC-05 is connected, the RED LED should blink every 4 seconds
Example: use the BT device detection from the blueman applet
In my example, HC-05 is connected as /dev/rfcomm3
Now, configure Bus Pirate in UART mode, with 9600 8n1 configuration:
After this configuration, don't forget to enable power
(power is disabled by Bus Pirate after each mode change)
Set the Bus Pirate in "Live Display" mode ('{')
Open a new minicom with the rfcomm device
Change the device data rate to 9600
Now you can see
- every character from the "rfcomm" minicom is seen on the Bus Pirate side
- in the same way, every data sent through Bus Pirate is seen on the rfcomm console
=> transmission with default 9600bps configuration is OK
Inscription à :
Articles (Atom)