| Reply | « Previous Thread | Next Thread » |
|
I'm developing an application which will use Bluetooth SPP profile to transfer data to another Bluetooth device. The data rate must above 200kbps, so I want to use DH5 (ACL packet).
When connection is up, I use: iChgPktTypBuf().iConnH = 0x0001; iChgPktTypBuf().iPktType = 0x8000; //DH5 packet iSock.Ioctl(KHCIChangePacketTypeIoctl,iStatus,&iChgPktTypBuf,KSolBtHCI); but an error occurs after that: "Feature is not supported -5" so does Nokia support all the HCI command listed in the bt_sock.h or is there a certain list about all the HCI commands Nokia currently support? Thanks a lot!! Terry |
|
I used HCI commands to query the local address of my bt-device and to set the discoverbility-mode.
It works on older Mobilphones(V.1.2) like Nokia 3650. Now I tried to use it on the Nokia 6630 and I get a KErrNotsupported error (-5). Which device and sdk do you use (the same?). If you have a look at the examplecodes in the SDK2.1FeaturePack 2 you find all examples of older SDKs exept the HCI-example-code (?!?!?). Perhaps in newer SDKs its not supported. If you have solved the problem please write how. |
|
In Nokia 6630 you have to use Publish&Subscribe API for getting BD_ADDR or change the discoverability mode, e.g.
See Bluetooth changes -related readme.txt document in the installation package for further details. -seppo Forum Nokia |
|
Thanks for your reply.
I've read the release notes of the Feature Pack 2 now, but where are too few informations about the Publish&Subscibe API. Where can I find this api or documents about it. I haven't found anything about this in the SDK-Help. |
|
Another Question:
I'm developing in C++. Is the Publish&Subscribe API for Java only or also for C++ |
|
Oh, I've found it. Thanks for your help.
|
|
Quote:
|
|
You can find informations about the Public&Subscribe -Api under
http://www.forum.nokia.com/html_read...,,6020,00.html or just search for "RProperty Symbian C++" in google.
Last edited by Sonny78 : 2005-03-15 at 11:18.
|
|
It works. But where is no paper or document about how to use Publish&Subscribe-Api with Bluetooth.
Just search for the header file bt_subscribe in your sdk: .../8.0.a/S60_2nd_FP2/Epoc32/include/bt_subscribe.h Here you can find all keys and properties you need. For example to get the BT device address: TPckgBuf<TBTDevAddr> aDevAddrPckg; RProperty::Get(KPropertyUidBluetoothCategory, KPropertyKeyBluetoothLocalDeviceAddress, devAddrPkg); To write a Property, like the Discoverbility: RProperty::Define(KPropertyUidBluetoothControlCategory, KPropertyKeyBluetoothLimitedDiscoverable, RProperty::EByteArray); TPckgBuf <TUint32> type = aIACType; RProperty::Set(KPropertyUidBluetoothControlCategory, KPropertyKeyBluetoothLimitedDiscoverable, type);
Last edited by Sonny78 : 2005-03-18 at 22:09.
|
|
Shouldn’t the property defined using the KPropertyKeyBluetoothLimitedDiscoverable key be of integer type and take a value from the enum THCIScanEnable? Anyway, I tried this to make my device indiscoverable but to no avail. Has anyone succeeded in preventing a 8.0a device or higher from responding to inquiries?
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|