Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

HC-05 Bluetooth Module Problem

Bluetooth HC-05 AT-INQ

Best Answer knut.tveitane, 22 March 2014 - 06:35 PM

Looks like I found the solution... it was the CLASS setting, and with AT+CLASS=0 the module finds some devices  by their Bluetooth addresses - probably mine, I hope. Next exercise is to find out which device has which address.

 

Case closed for now.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 knut.tveitane

knut.tveitane

    Member

  • Members
  • PipPip
  • 18 posts

Posted 21 March 2014 - 10:18 PM

I have tried to set up my first Bluetooth project with my Netduino 2 plus, but I am banging my head into a problem.

 

I got myself an HC-05 Bluetooth module. Not a very user-friendly module with its 1.5mm pitch edge contacts, but despite my limited soldering experience I got the necessary wires successfully connedted. Basically, the unit works and the serial interface side is responsive - I can enter command mode, send AT-commands to the unit and get the expected response back. Except...

 

According to the documentation I found on the net, when the unit is in in Master mode, the AT+INQ command should return a list of other devices within reach of the HC-05 (within a minute or so). I have put my Android phone as well as a Bluetooth headset close to my project workspace, but AT+INQ returns nothing exept from an OK (after a minute).

 

On my smartphone, I can see and even connedt to the HC-05 module, so the radio communication side also works. But probably there is a configuration issue which I cant figure out.

 

Is there anybody out there experienced in Bluetooth configuration who could lead me in the right direction?

 

-knut

 

 



#2 wendo

wendo

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 22 March 2014 - 12:16 AM

No experience with this, but were the devices actually discoverable? Typically unless you make them discoverable they are invisible to other devices



#3 knut.tveitane

knut.tveitane

    Member

  • Members
  • PipPip
  • 18 posts

Posted 22 March 2014 - 07:26 AM

Yes, the devices are discoverable. The headset is always discoverable, and the phone is set to discoverable in the Bluetooth setup.

 

I have tried different settings for the AT+CLASS= setting, I suspect this could possibly have something to do with it. Ufortunately, the available documentation for this setting is impenetrable to me, to put it mildly - at least the documents I have been able to find. If anyone has an understanding of how this setting works, and how it co-operates with the AT+INQ command, I would be grateful for an introduction on "for dummies" level :-)



#4 knut.tveitane

knut.tveitane

    Member

  • Members
  • PipPip
  • 18 posts

Posted 22 March 2014 - 06:35 PM   Best Answer

Looks like I found the solution... it was the CLASS setting, and with AT+CLASS=0 the module finds some devices  by their Bluetooth addresses - probably mine, I hope. Next exercise is to find out which device has which address.

 

Case closed for now.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.