HC - 05 bluetooth module settings in Linux using CuteCom

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.

时间: 2024-10-12 01:08:14

HC - 05 bluetooth module settings in Linux using CuteCom的相关文章

maven settings.xml linux

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding

linux kernel module

#include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h> static int hello_init(void){ printk(KERN_ALERT "hello world!\n"); return 0;} static void hello_exit(void){ printk(KERN_ALERT "exit ok!\n");} mo

[i.MX6q]i.MX6q处理器,linux操作系统平台搭建 从SD卡启动系统

转自:http://www.07net01.com/linux/2016/02/1232094.html 参照1:http://blog.csdn.net/girlkoo/article/details/44536447 参照2:http://blog.csdn.net/girlkoo/article/details/44626011 2017-02-04 22:52:54 目录: 本文的目的是,完成一个从sd卡启动的一个纯净版的linux系统移植,其实就是一个很裸的根文件系统,后期有空会试着把

19.1 Linux监控平台介绍 19.2 zabbix监控介绍 19.3/19.4/19.6 安装zabbix 19.5 忘记Admin密码如何做

19.1 Linux监控平台介绍 19.2 zabbix监控介绍 19.3/19.4/19.6 安装zabbix 19.5 忘记Admin密码如何做 19.1 Linux监控平台介绍 监控存在的原因 站点出了问题,没有人知道,等用户发现了,才提醒供应商:对公司影响很大 常见开源监控软件 cacti.nagios.zabbix.smokeping.open-falcon等等 //主流 nagios.zabbix cacti.smokeping偏向于基础监控,成图非常漂亮 //比较适合监控网络设备

Process Kill Technology &amp;&amp; Process Protection Against In Linux

目录 0. 引言 1. Kill Process By Kill Command 2. Kill Process By Resource Limits 3. Kill Process By Code Injection Into Running Process Via GDB 4. Kill Process By Using Cross Process Virtual Memory Modify 5. Kill Process By Using ptrace To Inject .so 6. P

Linux rsync数据同步命令解析

rsync命令 rsync有六种不同的工作模式: 1)拷贝本地文件.当SRC和DES路径信息都不包含有单个冒号":"分隔符时就启动这种工作模式. rsync -a /data /backup 2)使用一个远程shell程序(如rsh.ssh)来实现将本地机器的内容拷贝到远程机器.当DST路径地址包含单个冒号":"分隔符时启动该模式. rsync -avz *.c foo:src 3)使用一个远程shell程序(如rsh.ssh)来实现将远程机器的内容拷贝到本地机器.

使用 GIT 获得Linux Kernel的代码并查看,追踪历史记录

Linux kernel  的官方 GIT地址是: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git 可以从这个地址拿到 kernel 的 代码仓库. 1. 拿代码仓库 [plain] view plaincopyprint? git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git 2. 查看状态: [pla

嵌入式Linux驱动学习之路(二十六)DM9000C网卡驱动程序

基于DM9000C的原厂代码修改dm9000c的驱动程序. 首先确认内存的基地址 iobase. 确定中断号码. 打开模块的初始化函数定义. 配置内存控制器的相应时序(结合DM9000C.C的手册). 程序代码: /* dm9ks.c: Version 2.08 2007/02/12 A Davicom DM9000/DM9010 ISA NIC fast Ethernet driver for Linux. This program is free software; you can redi

Linux usb转串口驱动

Linux USB转串口驱动程序: /* * USB Serial Converter driver */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/smp_lock.h> #include <linux/tty.h> #include <li