Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User anechini's Avatar
    Join Date
    Apr 2008
    Posts
    17
    I've tried every example found on internet and none of them works for me. I'm trying to communicate between a N95 and a N96 phone through bluetooth rfcomm services. The device discovery works fine but the service discovery crashes. A simple example using lightblue results crashes.

    Code:
    import lightblue
    print lightblue.finddevices()
    print lightblue.findservices('00:22:FC:4E:9A:B4')
    the phone-server is advertising a service like the code below:

    Code:
    import lightblue
    s = lightblue.socket()
    s.bind(("", 0))  # bind to 0 to bind to dynamically assigned port 
    s.listen(1)
    lightblue.advertise("My RFCOMM Service", s, lightblue.RFCOMM)
    conn, addr = s.accept()
    print "Connected by", addr
    conn.recv(1024)
    conn.close()
    s.close()
    I've tried using bt sockets and all the other examples (including the chat that comes with the wiley book).
    They all end up crashing when the client looks for the service.

    Any solution???
    Last edited by anechini; 2009-07-07 at 21:02.

  2. #2
    Registered User anechini's Avatar
    Join Date
    Apr 2008
    Posts
    17
    any clues? please guys, i'm in despair here!

  3. #3
    Regular Contributor nirpsis's Avatar
    Join Date
    Apr 2009
    Posts
    65
    Quote Originally Posted by anechini View Post
    I've tried every example found on internet and none of them works for me. I'm trying to communicate between a N95 and a N96 phone through bluetooth rfcomm services. The device discovery works fine but the service discovery crashes. A simple example using lightblue results crashes.

    Code:
    import lightblue
    print lightblue.finddevices()
    print lightblue.findservices('00:22:FC:4E:9A4')
    Does the finddevices function return the bluetooth address you specified in the next line?
    --NirpSis

    http://sites.google.com/site/nirpsis/
    http://nirpsis.blogspot.com/

  4. #4
    Registered User anechini's Avatar
    Join Date
    Apr 2008
    Posts
    17
    yes!
    and i've tried with: lightblue.findservices(lightblue.finddevices()[0][0])
    with only my 2 phones with bluetooth on.

  5. #5
    Registered User anechini's Avatar
    Join Date
    Apr 2008
    Posts
    17
    guys! need help! please!

Similar Threads

  1. PPC Bluetooth to Nokia phone serial connection
    By naahtec in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-07-27, 20:40
  2. Nokia Customer Service Scam - BE CAREFUL
    By kakulottf in forum General Development Questions
    Replies: 1
    Last Post: 2007-06-04, 17:20
  3. bluetooth service not visible
    By rosenholzer in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-03-08, 08:26
  4. Replies: 3
    Last Post: 2007-03-07, 03:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved