Go Down

Topic: Bluetooth step-by-step: can you give me an help? (Read 2 times) previous topic - next topic

Dani88

Ok, so i need a slave module, right?
As i wrote, my only dubt was about the response of the Arduino ;)

I found the HC-05 BT module on ebay for about $4, do you know it? It's 30FT and is fully configurable with AT cmd.
Datasheet report also:
"These modules have two modes: master and slaver device. The device named after even number is defined to be master or slaver when out of factory and can't be changed to the other mode. But for the device named after odd number, users can set the work mode (master or slaver) of the device by AT commands."
so as addictional feature on HC-05 i can set M or S mode, right?

@pitusso
Si sto leggendo il primo pdf ma mi era rimasto questo dubbio sul fatto che lo slave potesse solo ricevere e non trasmettere oltre a non poter instaurare una connessione da zero ;)

ma_hty

#6
Oct 30, 2012, 02:15 am Last Edit: Oct 30, 2012, 02:27 am by ma_hty Reason: 1

so as addictional feature on HC-05 i can set M or S mode, right?


Yes, you can change a HC-05 module to master or slave mode.  Just connect it to your computer with a USB serial cable, then connect to the corresponding COM port with a serial console (e.g. the serial monitor tool in Arduino IDE), and send the corresponding AT commands.

The full spec of HC-05 module can be downloaded from the hardware vendor website http://www.wavesen.com/downloadDis.asp?id=30.

By the way, if you don't have a USB serial cable, you can configure your Arduino board to be one, see http://arduino.cc/forum/index.php/topic,18243.0.html.

ma_hty

#7
Oct 30, 2012, 03:22 am Last Edit: Oct 30, 2012, 03:36 am by ma_hty Reason: 1

I need a big help understanding how to make connection between arduino and another BT device (let's call it BT DEV).


Opps... the bluetooth serial module (HC-05) in master mode you talking about is not entirely a master Bluetooth device.  For instance, a master Bluetooth device (like your computer) can talk to seven slave bluetooth devices at the same time, HC-05 can only do one at a time.  HC-05 can only do serial connection, whereas a master Bluetooth device should be able to do bluetooth headset, mouse, keyboard, printer, etc.

If you are trying to control some existing bluetooth devices (e.g. a bluetooth printer) with Arduino, you probably cannot use HC-05.

Dani88



I need a big help understanding how to make connection between arduino and another BT device (let's call it BT DEV).


Opps... the bluetooth serial module (HC-05) in master mode you talking about is not entirely a master Bluetooth device.  For instance, a master Bluetooth device (like your computer) can talk to seven slave bluetooth devices at the same time, HC-05 can only do one at a time.  HC-05 can only do serial connection, whereas a master Bluetooth device should be able to do bluetooth headset, mouse, keyboard, printer, etc.

If you are trying to control some existing bluetooth devices (e.g. a bluetooth printer) with Arduino, you probably cannot use HC-05.

For my use i thinks it's ok only one device, because i need to communicate between Android/iOS/WP and Arduino.
The smartphone app i wrote use RFCOMM, and trying it with Putty (a serial monitor for Win) and with a standard usb BT adapter on the pc, Putty show commands send by the smartphone.
So it should be work with HC-05 too if it has a serial connection, right?

ma_hty


So it should be work with HC-05 too if it has a serial connection, right?


Yes, it should work.  In fact, I am using it to make my Android phone talk to my Arduino board.

Go Up