Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2006

    Exclamation Can anyone send me some source with service discovery ?

    Hi to you all, i've already posted my complete problem in this Thread but no one has helped so far and i'm getting a lot of pressure to finish this project.I'm guessing that my last thread could be confusing, so i'm breaking it.

    My nokia 6630 hangs up when making Service Discovery and i don't seem to find out why Can anyone please send me some source code with a service search that works on Nokia? Note:it must be jsr82 and not a nokia only solution.

    If you're thinking of bttecho example, let me warn you that it didn't work on my phone

    Can anyone please help ? This is a very urgent issue.
    Best regards,

    Nuno Rodrigues

  2. #2
    Super Contributor
    Join Date
    Dec 2005

    Re: Can anyone send me some source with service discovery ?

    hi Nuno,

    go to Sun:
    the similiar comes with Sun WTK sample apps if I'm not wrong,

  3. #3
    Registered User
    Join Date
    Jul 2006

    Re: Can anyone send me some source with service discovery ?

    Hi peterblazejewicz,
    Tnx for your quick reply, but i'ved already tried that, without any sucess on Nokia 6630

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2005

    Re: Can anyone send me some source with service discovery ?

    Hi nuno,

    Remove all calls to getFriendlyName() method and try again. This method is known to block Bluetooth (and thus, your thread) operations when called 1) too many times 2) during device/service search operations.

    My recommendation is that you:

    1) Perform device discovery.
    2) Store all devices in a Vector.
    3) After DD is finished, traverse the Vector calling getFriendlyName() for each RemoteDevice
    4) After you're done, proceed to service search.

    If the bttsppecho is not working, you might have a problem in your phone, because it usually works on all phones.


  5. #5
    Registered User
    Join Date
    Mar 2003
    What about the example coming with the JSR-82 specification itself? If that does not work – it is really thready – nothing works.

    The threading model of Series 60 is a bit complicated. Have a search here.

  6. #6
    Registered User
    Join Date
    Jul 2006

    Cool Re: Can anyone send me some source with service discovery ?

    Tnx for your replies

    I'ved tried for the second time to adapt the JSR82 Examples, which are for J2SE (and not J2ME), the first time didn't work out, this time i'ved reached some sucess. Now my 6630 doesn't hangs out doing service search

    Daniel, if you look carefully into my previous code in my original Thread
    i don't use the getFriendlyName() method. I wait until all the discovery process is finished and them i do try to get the Service's Name Attribute from the vector i'ved filled with ServiceRecords of the found services. There's a problem here because the phone crashes when trying to get them.

    But that's another problem that i will post in a diferent Thread.Hope it get's your attention

    I thank you all for replying and trying to help me out, thank you very much,


Similar Threads

  1. Bluetooth service discovery???
    By leomil in forum Bluetooth Technology
    Replies: 1
    Last Post: 2006-10-26, 01:35
  2. Link Errors Help me
    By TrungThanhMtad in forum Symbian
    Replies: 2
    Last Post: 2005-10-15, 05:13
  3. Errors starting NMSS 1.5 Emulator Host
    By ryan_d_pollock in forum General Messaging
    Replies: 10
    Last Post: 2005-08-17, 12:26
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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