• HC


    By default the bluetooth module HC-05 sets baud rate at 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

    Vcc -> 5v

    GND -> GND

    ---

    getting into AT 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 will be 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 is 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://ardupilot.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 an 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 phone to PC, then from PC to Phone. It works like a charm!

    Will show how to set bluetooth module with 3DR radio 433Hz transmitter in next blog.

  • 相关阅读:
    [贪心] Jzoj P4249 游戏
    [数学][快速幂] Jzoj P4248 n染色
    [dfs] Jzoj P4252 QYQ的图
    [折半搜索][has] Jzoj P4250 路径
    [计数dp][数学] Jzoj P4254 集体照
    [Tarjan][并查集][dp] Jzoj P4253 QYQ在艾泽拉斯
    [支配树][lca][倍增][线段树][拓扑] Jzoj P4240 游行
    [贪心] Jzoj P4244 yi
    [数位dp] Jzoj P4239 光棍
    [扫描线][差分约束] Jzoj P4238 纪念碑
  • 原文地址:https://www.cnblogs.com/spaceship9/p/5843234.html
Copyright © 2020-2023  润新知