Author Topic: OPPThread and BlackBerry  (Read 15771 times)

bga

  • Guest
OPPThread and BlackBerry
« on: May 11, 2010, 04:11:39 PM »
Hello
I use OPPThread but with a BlackBerry phone, I have a message "access denied". How to add a PIN?

thank you

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #1 on: May 11, 2010, 04:37:08 PM »
Hello,

Add PIN where?

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #2 on: May 11, 2010, 04:39:43 PM »
my BlackBerry ask me a code to connect? how add a authentification code in the program?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #3 on: May 11, 2010, 05:02:12 PM »
It is better to use wclAuthenticator together with wclOPPClient. But you must setup wclOPPClient.BluetoothParams.Authentication to True. Otherwise it will work incorrect or may not work (depends on Bluetooth driver used). However, if you will set wclOPPClient.BluetoothParams.Authentication to TRUE for all devices than any device will ask for PIN. That is why it's much better to use wclProximitySender to send content to multiple devices.

Any way, I do not recomend to use WCL with threads as it is asynchronous and does not need any thread to send to more than 1 device at the same time.

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #4 on: May 11, 2010, 05:30:29 PM »
have you an example to use wclAuthenticator?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #5 on: May 11, 2010, 05:45:04 PM »
Of course, it is included in WCL package. (wclAuthenticator available in Persxonal and Developer licenses).

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #6 on: May 12, 2010, 09:52:27 AM »
thank you for your reply, this works but is it possible to request the pin only if the phone requests?
such requests only pin for the blackberry and not for the nokia?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #7 on: May 12, 2010, 10:31:52 AM »
Hello,

In common case it is impossible, You must know which phone need PIn and which one does not.

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #8 on: May 12, 2010, 11:52:05 AM »
when I use the code (with wclOppClient) with BlackBerry phone :
wclAuthenticator.Radio = Radio;
wclErrors.wclShowError (wclAuthenticator.Open ());
wcl.wclErrors.wclShowError (client.Connect ());

the phone asks me the pin code and the function wclAuthenticator_OnPINRequest triggered.
Then I get an error 44 (WCL_E_SERVICE_NOT_FOUND) in the OnConnection.

Have you a solution to this problem?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #9 on: May 12, 2010, 11:57:37 AM »
By defaullt BlackBerry has no OBEX service running. You must go to Multimedia menu and select "Receive by Bluetooth". Then it can receive media content. That was described on this forum lot of times. Forum search works perfect.

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #10 on: May 12, 2010, 12:34:52 PM »
sorry for my english

i have read a post in BlackBerry

If i use my code whith wclOPPClient and wclAuthenticator (and select "Receive by Bluetooth" in blackberry), the pairing is ok but the fonction is in error 43 of TimeOut.
How to send file to this phone with the same method than another phone?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #11 on: May 12, 2010, 12:46:12 PM »
Have just tested - all works perfect. I thit it appears because you didn't set wclOPPClient.BluetoothParams.Authentication = True

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #12 on: May 12, 2010, 01:08:45 PM »
with wclOPPClient.BluetoothParams.Authentication = True
the same problem, the blackberry wait for file transfert and a time out error.

Can you send me your example with wclOppClient and authentification for black berry?

I can't find my problem

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread and BlackBerry
« Reply #13 on: May 12, 2010, 01:20:04 PM »
I use modified OPPClientdemo. What BT driver do you use?

bga

  • Guest
Re: OPPThread and BlackBerry
« Reply #14 on: May 12, 2010, 02:13:07 PM »
I've 2 BT :
driver microsoft and widcom, the same problem with both

 

Sitemap 1 2 3 4 5 6 7