You Are Here:

Community: Developer Discussion Boards

#1 Old Can't Find Service - 2007-02-12, 18:28

Join Date: Aug 2006
Posts: 78
saifulhq
Offline
Regular Contributor
private void searchForServices(){
if(deviceList.size() > 0){
UUID[] uuids = new UUID[2];
uuids[0] = new UUID(0x0003);
uuids[1] = new UUID(UUID_STRING, false);

serviceTable = new Hashtable();


println("Mencari Service dari Device");
println(String.valueOf(deviceList.size()));

int[] att = {0x0100};

for(int i=0 ; i<deviceList.size() ; i++){
try {
int trans = agent.searchServices(att, uuids, (RemoteDevice) deviceList.elementAt(i), this);
try {
println("Pada "+((RemoteDevice) deviceList.elementAt(i)).getFriendlyName(false));
println(String.valueOf(trans));
}catch(Exception e){

}
waitForSearchEnd(trans);
}catch(BluetoothStateException b){
println("Error Cari Service : " + b.toString());
}
}
}
}


i succes find Device, but when try to find Service not appears anything?
what is int[] att = {0x0100}; means, that is very Important
Reply With Quote

#2 Old Re: Can't Find Service - 2007-02-15, 20:59

Join Date: Dec 2005
Posts: 1,159
Location: England,UK
jimgilmour1's Avatar
jimgilmour1
Offline
Forum Nokia Champion
Hi
Welcome to bluetooth forum.
I think you will find these values will work better
PHP Code:
    UUID[] uuidSet = {new UUID("8841"true)};
    
int[] attrSet = {0x01000x00030x0004}; 
Good Luck
Jim
Reply With Quote

#3 Old Re: Can't Find Service - 2007-02-16, 10:45

Join Date: Aug 2006
Posts: 78
saifulhq
Offline
Regular Contributor
UUID[] uuidSet = {new UUID("8841", true)};
int[] attrSet = {0x0100, 0x0003, 0x0004};

what 8841 means? that every HandPhone have unique ID?
with my sintax, my PC can find service and connect to my Nokia E50, but if PC run's server my E50 can't find Service?
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
can't stop advertising a service? buzz111 Python 2 2006-11-15 23:11
Bluetooth service discovery??? leomil Bluetooth Technology 1 2006-10-26 02:35
Bluetooth RFCOMM connects to PC FAX Service instead of SPP simbalNokia Symbian Networking & Messaging 0 2006-02-28 13:43
Bluetooth Virtual Serial Port mealos Bluetooth Technology 2 2004-12-03 04:46
list box example murmur20 Symbian User Interface 1 2004-11-09 05:42

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