So, first of all I read the document which describes the AT commands of the module, but some of them are ambigous and they are not working.
I successfully paired the HC05 with a bluetooth device. Now I would like to see when the device is present or not. Issuing the AT+INQ displays only the devices which are visible. Since I already have the MAC address, I could initiate a connection to the device, but how could I do that if the device does not support serial port ? (SPP) ?
So, my question is: how can I check that a device is present ?
Other question would be, how I hide the HC05 visibility ?
I'm waiting any hints, since the commands from the datasheet I exhausted already.
To answer your second question, it should possible to disable discoverability. You can also make the hc05 unconnectable if you want. Both can be done with the same command.
use the AT+IPSCAN command. Inquiry Interval relates to discoverability and paging relates to the connectability of the device.
Setting the inquiry duration to zero should disable discoverability. and setting the pagescan duration to zero should make the hc05 unconnectable
This makes sense I will try the visibility hint ... however according with this link http://mcl.cs.byu.edu/downloads/IrDA_Assisted_BT_Discovery.pdf ( page 2), all devices have a Inquire Access Code which choose correspondingly, it might not be discoverable from all the other devices ... so ... I think the trick is somewhere around this command.
Regarding the first problem (which for me is more important). According with the HC05 documentation:
AT+FSAD - search for an authenticated device.
I tried executing this command as a Slave, Master but does not return any valid answer. It returns OK always if the device is authenticated and FAIL if not, but does not inquire the device itself.
AT+LINK - issues a serial connection, which for me is not available and it fails always