Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: jordi120 on October 27, 2010, 10:12:38 PM

Title: Suddenly the proximity sender needs a password.
Post by: jordi120 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?
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on October 27, 2010, 10:16:51 PM
wclAuthenticator helps you.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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...
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on October 28, 2010, 01:48:28 PM
Does demo app work? Also what BT driver are you using?
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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?
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on October 31, 2010, 08:42:33 AM
I think there is something wrong with Authenticator usage.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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),
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko 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?
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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.
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko 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).
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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?
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko 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.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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)
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on October 31, 2010, 09:45:51 AM
try to store names also, it should help to identify devices.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 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...?
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on November 01, 2010, 07:15:17 AM
I don't know why it appears as we never had such issue.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 on November 05, 2010, 09:29:20 PM
I'm now using one of the conflictive PC's, it's really weird, I've been doing some testings with the proximitySenderDemo, and got the same results: Every mobile device is asked for a password.

As far I can know, the app started working well until they disconnected the dongle and connected again (or so they say) :S I don't know how to solve this, I've changed the dongle to another manufacturer and still getting the same problem.

I'm now with a Windows Vista, widcomm drivers (so weird too, because the wcl say I have the baMicrosoft stack)

Ok, reading again my post, Im not sure if you will understand it :P
Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on November 05, 2010, 09:41:42 PM
So dongle was disconnected (unplugged) and then connected (plugged)? In this case wclAuthenticator must be reopen as it is closed on dongle disconnect.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 on November 05, 2010, 11:13:14 PM
I've restarted de program, the laptop, changed the dongle, etc.

What they are saying (not me, i don't believe this is the reason of the problem) is that all worked well since one day they unpluged the dongle accidentally.

Don't makes sense because it happened two weeks ago. The Pc has been disconnected lot of times, the bluetooth dongle changed... mmmmmmm

Maybe some kind of problem with the drivers suddenly caused by the app? I cannot believe this neither...

Title: Re: Suddenly the proximity sender needs a password.
Post by: Mike Petrichenko on November 06, 2010, 03:27:33 AM
May be. I don't know. We have never had such report and it naver had happened in our application. All I can do is try to debug it with TeamViewer.
Title: Re: Suddenly the proximity sender needs a password.
Post by: jordi120 on November 06, 2010, 05:13:49 PM
Ok, in one hour I will go to the location of that PC and I will turn on the TeamViewer and leave the PC on. When that's ready I will send you the ID in a private msg