Establishing SPP Bluetooth connection between a laptop with Win7 and HC-05

Hi,

I am trying to implement BT btwn a laptop running Win7 with Arduino IDE, and the HC-05 BT board. I'm doing BT for the first time, and am also new to Arduino.

Some Details:

When the HC-05 BT receiver is powered by the Uno the red led flashes at about 2Hz. If I go to My Bluetooth Devices, I select Add Device and choose All as the type. The HC-05 appears and Win7 reports it was installed successfully, although in the list of devices Device Type says unknown. If I open BT services I see Serial Port Profile (SPP) icon. If I double click it it says Service action in progress for about 30 s, then an error says Device failed to respond. At this point the HC-05 device red led now flashes slower about 0.5 Hz. If I now double click on the SPP icon again I get the error: "No more com ports can be created for this device." If I rt click the SPP icon I get one option - to "Create Port", but the same error occurs.

If I investigate with Device Manager: under "Ports" I see 3 ports listed, copies that say Bluetooth SPP Driver with COM1,2,3 shown. The third has a exclamation icon on it, under properties/status it says "This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)". The first 2 say "This device is working properly." If I go to Port Settings (under COM port properties) and choose advanced, I can select a COM port # from 1 to 256. COM Port3 is the only one that lists "in use", all the others list nothing.

I've spent a few days on this and not gotten beyond this point. Within Arduino I have uploaded various sketches to the UNO via std. USB cable. I've tried to make the serial connection with the HC-05 Tx & Rx connected and disconnected to the Arduino ; with and without the Arduino running a sketch to transmit to the HC-05 some small amounts of data per a few online tutorials for the HC-05.

I have been able to connect at least 3 BT devices to the laptop but they were all audio profiles for headphones or audio transmitters. Also I have reinstalled the device and the drivers and done some basic troubleshooting.

I am willing to work with anyone to get the connection working here, if you know of anyone that has Arduino bluetooth experience with HC-05 I will take your references. I am looking for help in multiple places but in particular the HC-05 manufacturer Wavesen is Chinese and doesn't seem to provide much support yet.

Thanks,
Stephen

Also, I have tried to look at the serial ports in IDE by choosing a port from the list (COM1,2,3 shown) and starting the Serial Port Monitor. I have used this before in basic tutorials and it worked well. However if I try to look at the ports after trying to connect to HC-05, I can only connect to COM3, and it shows nothing. In addition anything I send isn't acknowledged. Any pointers? Thanks!

If Bluetooth is connected to pins 0,1 you cannot use the serial monitor.

The 2Hz LED indicates power is on and thus ready to connect, but that is all.

If the BT LED is flashing at 0.5Hz it is in AT mode not communications mode. I won't ask how that happened, but it sounds like you have junk code.

Communications mode is usually when LED is steady but with some later versions the LED is off.

You might find the following background notes useful

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

Thanks!

Hello again,

I wanted to report that I was able to connect the hc-05 to my Android tablet and also my Android phone and control the uno from a bt serial monitor.

My laptop though is being strange. If I check com ports in device manager, it says I have 2 now of the type "Bluetooth spp driver", now that I have reinstalled the drivers for the csr chip USB bt dongle. Contacted the dongle seller they said they didn't know about spp.

I can also communicate with uno via USB and give commands it works well, and it works on and shows up as com port4. Now, if I attempt to connect to the hc-05 through windows "my bt devices", I get the error "device failed to respond" although I see the hc-05 is flashing slower now. And I see now I have a com port3 in device manager also with the name "Bluetooth spp driver" but it has an exclamation error icon on it and if I check the properties it says windows couldn't find the drivers for it. But I have reinstalled the drivers so maybe there isn't one for the hc-05 for my bt dongle. Further attempts at connecting to the hc-05 results in the error: "no more com ports can be created for this device".

Any more thoughts or suggestions?

Thanks,
Stephen

I have never succeeded in getting my dongle to work. My laptops are all Dell with bluetooth built-in and I think it was just a matter of trawling through the COM ports to get the right one. As I said, the slow flashing suggests you are in AT mode. It will not communicate with PC while in that mode.

But I have reinstalled the drivers so maybe there isn't one for the hc-05 for my bt dongle.

There is no driver required to match with the HC-05 per se - just proper installation.