Author Topic: Suddenly the proximity sender needs a password.  (Read 29424 times)

jordi120

  • Guest
Suddenly the proximity sender needs a password.
« on: October 27, 2010, 10:12:38 PM »
A few customers noticed this, suddenly the proximity sender, or whatever, starts to ask for a password. Here you can see an image of what is happening:

http://img175.imageshack.us/img175/192/imagen7ru.png

I am doing something wrong?? Maybe the usb dongle gets mad?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #1 on: October 27, 2010, 10:16:51 PM »
wclAuthenticator helps you.

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #2 on: October 28, 2010, 01:34:19 PM »
but the wclAuthenticator is open. Maybe something happens that closes the authenticator?

each time I start the proximity sender I do this:

            if (!wclAuthenticator.Active)
            {
                wclAuthenticator.Radio = this.device;
                wclAuthenticator.Open();
            }

Maybe I should check each X seconds if the wclAuthenticator is'nt active...

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #3 on: October 28, 2010, 01:48:28 PM »
Does demo app work? Also what BT driver are you using?

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #4 on: October 30, 2010, 01:26:45 PM »
I've been notified of this error with a Vivanco usb and a Emtec, they didn't send me the model  of the Vivanco so I couldn't find it...

The Emtec one uses the windows stack, and the generic windows drivers.

I have been thinking... maybe the OBEX service of the dongle stops running?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #5 on: October 31, 2010, 08:42:33 AM »
I think there is something wrong with Authenticator usage.

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #6 on: October 31, 2010, 08:54:25 AM »
:S:S ok but... it's so wierd, because the app works fine, but suddenly starts to do this things (and only in a few machines, 2 PC's from almost 40 have reported this error :S).

Furthermore, when this error begins, every sending try to every single device, throws this password windows. If I didn't use the authenticator, the proximity sender would work fine with some devices (the ones which don't need a password),

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #7 on: October 31, 2010, 08:56:22 AM »
It is very strange. Could you please test our software on that PCs? Or may be just ProximitySender demo?

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #8 on: October 31, 2010, 09:00:36 AM »
This is how I use the authenticator and the proximitysender:

On main form Closing event (irrelevant):

                if (wclProximitySender.Active)
                    wclProximitySender.Stop();

                if (wclAuthenticator.Active)
                    wclAuthenticator.Close();
                wclAPI.Unload();

On custom functions 'proximitySenderStart()' and 'proximitySenderStop()':

        public void proximitySenderStart()
        {
            if (!wclAuthenticator.Active)
            {
                wclAuthenticator.Radio = this.device;
                wclAuthenticator.Open();
            }
            if (!wclProximitySender.Active)
            {
                if (wcl.wclErrors.wclShowError(wclProximitySender.Start()))
                    wclAuthenticator.Close();
                setStatus("Iniciando campanyas", 1);
            }
        }
        public void proximitySenderStop()
        {
            if (wclProximitySender.Active)
                wclProximitySender.Stop();

            if (wclAuthenticator.Active)
                wclAuthenticator.Close();
            setStatus("Campanyas detenidas", 9);
        }

And this code on the app init:
                wclProximitySender.SendRadio = this.device;
                wclProximitySender.DiscoveryRadio = this.device;
                wclAuthenticator.Radio = this.device;
                wclAuthenticator.Open();
                if (wcl.wclErrors.wclShowError(wclProximitySender.Start()))
                    wclAuthenticator.Close();
Sorry for bothering you so much.
« Last Edit: October 31, 2010, 09:03:59 AM by jordi120 »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #9 on: October 31, 2010, 09:04:58 AM »
It looks absolutly correct. But it would be relay great to check our TextBlue application on those PC. As there may be bug in WCL .NET which may not appear in WCL VCL so we can compare and fix.

Also please check what drivers are there (APIDemo shows it).

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #10 on: October 31, 2010, 09:10:48 AM »
I will try to check your software or the Demo, but don't know if I will be able since it's not my PC.



The thing is this don't happens every day, somedays it does, and somedays it does not, and this PC's are active the 24 hours of the day, so your software I guess will have some limitations of max number of files sended to a device when is in trial mode, didn't it? i will ask to put the proximitySender Demo one day...

Thanks you btw

Drivers on those pc's are the windows one's (windows stack and generic bluetooth radios drivers) I think...

Pd:Then you thing it's impossible that the OBEX service fail?
« Last Edit: October 31, 2010, 09:13:55 AM by jordi120 »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #11 on: October 31, 2010, 09:12:55 AM »
You can try demo. But the main information I need:

* OS
* BT driver

Also would be really great to know what devices (remote device) cause the issue.

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #12 on: October 31, 2010, 09:17:05 AM »
OS: Windows XP sp2

BT Driver: Microsoft Stack

The remote devices... are a lot, a really lot, i think i saw a Nokia x600 music? well I don't know, since my app only stores the MAC (I don't know if the model can be known from the MAC)

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Suddenly the proximity sender needs a password.
« Reply #13 on: October 31, 2010, 09:45:51 AM »
try to store names also, it should help to identify devices.

jordi120

  • Guest
Re: Suddenly the proximity sender needs a password.
« Reply #14 on: November 01, 2010, 02:08:36 AM »
Yap, I will (since my app is constantly exchanging data with a remote server, i tried to minimize as much as possible the size of the DB, so I did'nt thought of storing the devices name, furthermore, this data will be never used by te user, the app, just show plots and graphics), just for this couple of computers...

What do you think, is a problem of the wclauthenticator, or something else? do you think I should try to put a little 'watchdog' that checks if the authenticator is active, each X period of time? or this is useless...?

 

Sitemap 1 2 3 4 5 6 7