×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    49

    socket.set_security - authorization not working

    Hello,
    I want that only known, authorized devices can connect to my bluetooth service.
    I tried the code below:

    Code:
            self.sock = socket.socket(socket.AF_BT, socket.SOCK_STREAM)
            self.sock.bind(('', PORT))
            self.sock.listen(1)
    
            socket.bt_advertise_service(u"pys60_remote", self.sock, True, socket.RFCOMM)
            socket.set_security(self.sock,  socket.AUTH | socket.ENCRYPT | socket.AUTHOR)
    
            self.listen()
    I removed my client device from the known devices, but my client just connects to the phone, no confirmation is needed.
    I want a popup that tells me that a device wants to connect (like for OBEX filetransfers).

    Anybody knows what I've done wrong?

    I'm using PyS60 1.4.5 on a Nokia N73.

    Thanks,
    Lukas

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    49

    Re: socket.set_security - authorization not working

    Nobody ever tried bluetooth authorization? :-(

  3. #3
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: socket.set_security - authorization not working

    Quote Originally Posted by Lukas Hetzenecker View Post
    Nobody ever tried bluetooth authorization? :-(
    I never tried, Lukas

Similar Threads

  1. CAknMessageQueryDialog not working on the Target E61
    By symbians60 in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-04-23, 20:15
  2. No rule to male target
    By arayappan_it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-02-28, 10:49
  3. Working on GSM, Not working on CDMA
    By aminuddin09 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-03-21, 07:07
  4. Program suddenly not working - doesn't recognise hardware
    By luciadoll in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-12-10, 01:54

Posting Permissions

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