You Are Here:

Community: Developer Discussion Boards

#1 Old About HCI commands in Series60 phone - 2004-07-15, 08:01

Join Date: May 2004
Posts: 11
terry11
Offline
Registered User
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
Reply With Quote

#2 Old 2005-03-03, 14:46

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
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.
Reply With Quote

#3 Old 2005-03-04, 13:15

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
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
Reply With Quote

#4 Old 2005-03-07, 15:22

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
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.
Reply With Quote

#5 Old 2005-03-07, 16:13

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
Another Question:

I'm developing in C++.
Is the Publish&Subscribe API for Java only or also for C++
Reply With Quote

#6 Old 2005-03-14, 00:59

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
Oh, I've found it. Thanks for your help.
Reply With Quote

#7 Old 2005-03-14, 17:44

Join Date: Feb 2005
Posts: 4
DimanP
Offline
Registered User
Quote:
Originally posted by Sonny78
Oh, I've found it. Thanks for your help.
Could you, please, say where have you found the information about Public&Subscribe API?
Reply With Quote

#8 Old 2005-03-14, 20:06

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
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.
Reply With Quote

#9 Old 2005-03-15, 10:25

Join Date: Jan 2005
Posts: 11
Sonny78
Offline
Registered User
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.
Reply With Quote

#10 Old Question Re: About HCI commands in Series60 phone - 2006-04-26, 14:22

Join Date: Oct 2003
Posts: 31
Location: Sweden
joru
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia