HC-05 Bluetooth module settings in Linux using cutecom

Source: Internet
Author: User

By default the Bluetooth module HC-05 sets baud for 38400, data bits 8, Stop bits 1

All schematics of this Bluetooth module can be found At:http://pan.baidu.com/s/1o6binds

I used a usb-> TTL USB module connecting to the Bluetooth module.

Rx--Tx on Bluetooth module

Tx-Rx on Bluetooth module

5v, VCC

GND, GND

---

Getting in command line

Hold the key on the Bluetooth module when powering it on,

Then connect to serial ports on Linux using cutecom

IMPORTANT:

TRY: cr,lf line End

OR there would be is Error (0)

Set Serial port baud rate

at+uart=57600,1,0

Baud rate, Stop bits, even check, (the AT commands Doc provided above in Chinese are wrong. This command is the correct. I verified! )

Why 57600? Because the Tele transport module of drone Flight controller board APM 2.6 is going to need this baud rate.: Http://ardupi Lot.org/copter/docs/common-3dr-radio-advanced-configuration-and-technical-information.html

This works with 3DR Radio firmware version 1.7-1.9 by default.

Set the Bluetooth module broadcasting name

At+name= ' Tele '

Check version

At+version?

Try the Module:phone <-> Bluetooth <-> PC

Use a app called "Bluetooth Terminal HC-05" to connect to the Working Bluetooth module.

Find the Bluetooth module named Tele and input password 1234

(By default password is 0000 or 1234)

Open app "Bluetooth Terminal HC-05" Select CR(carriage Return), LF (line Feed).

Connect the Bluetooth module with the Usb->ttl dongle to PC and power it on normally.

Use cutecom connect to/dev/ttyusb0, Baud rate:57600, Data bits 8, Stop bits 1.

Send something from the phone to the PC, then from the PC to phone. It works like a charm!

Would show how to set the Bluetooth module with 3DR Radio 433Hz transmitter in next blog.

HC-05 Bluetooth module settings in Linux using cutecom

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.