perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

Problem with Eten PDA

Mon Mar 27, 2006 5:32 pm

When I start an application that uses bluetools immediately after rebooting the PDA I get an error message in the network_Error callback saying "Microsoft Bluetooth stack is not present or turned off. Failed to lookup the next device."

I use an Eten M600 with the latest firmware upgrade.

Have anyone experienced this before? Is there anything I can do to help this?

Thanks in advance,

Per Rasmussen.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Mon Mar 27, 2006 5:34 pm

You say it happens when you start the application immediately after reboot, does it happen if you wait a little while? It could be that the Bluetooth stack takes a little while before loading. (In other words not being prioritized on startup when a lot of things want to load simultaneously.)

Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Mon Mar 27, 2006 7:42 pm

It appears that this is the problem. Unfortunately our application needs to run on startup (when the pda has booted). I have tried inserting a sleep statement in the code before bluetools initialization, that makes it sleep for 8 seconds. This does not help though. Any ideas?

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Mon Mar 27, 2006 8:26 pm

P.s. I have also tried with 60 seconds but that didn't help either.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Mon Mar 27, 2006 11:51 pm

How long must you wait from the reboot until you can use Bluetooth if you manually start the application?


Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 5:00 pm

Well, that's the strange thing. Even though I start the application manually as soon as the PDA is ready it almost always works properly. It has failed a few times, though. But when the application autostart it always fails. Even with a sleep(120000) (2 minutes).

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Tue Mar 28, 2006 5:06 pm

Perhaps sleep isn't the way to go. It is possible that actually loading an application prevents the PDA from initializing the bluetooth stack. If you would (just to make sure) try making an application that sleeps a bit and then loads your application, to see if it's Bluetools preventing the Bluetooth stack initialization.

You could also try autostarting some other application and see if Bluetooth initializes properly (if that is possible? - to make a device discovery while another program is auto-starting?)


Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:03 pm

Our application is launched from a second application that is placed in the windows/startup. I have inserted a sleep of 60 seconds in this application and this works most of the time. I have tried it 10 times now and it has failed 3 times. This is obviously not satisfying. Is there anything I can do?

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:14 pm

It sounds as if the PDA don't allow the Bluetooth stack to finish initialize when you are running an application (any application, bluetooth or not). Have you tried this with any other PDA than the Eten M600?

Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:22 pm

Yes, I've tried it on a Qtek 9090 and a iPaq h6340, and it works fine one both.

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:23 pm

Actually the Qtek had some problems but it wasn't this.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:25 pm

It's a pretty safe bet then that the Eten M600 is slow to load its Bluetooth stack and won't load it while an application is running.

Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:30 pm

Is there anything I can do? Is it somehow possible to make our application load when the bt stack has been initialized? Perhaps thru some sort of event?

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Problem with Eten PDA

Tue Mar 28, 2006 6:41 pm

Since it seems to be caused by the Eten and not BlueTools I don't really know what you can do since the actual application load seems to be the cause of the problem. Maybe there is some way to load applications later in the boot sequence? I am personally not familiar with Eten and haven't tried it.

P.S. When you said that you tried a sleep before the BlueTools initialization, you meant a sleep was the very first thing you did, even before the license initialization too right? D.S.

Regards,
Jonas
Franson Support

perrs
Posts: 18
Joined: Mon Mar 27, 2006 5:10 pm

RE: Problem with Eten PDA

Tue Mar 28, 2006 7:27 pm

"When you said that you tried a sleep before the BlueTools initialization, you meant a sleep was the very first thing you did, even before the license initialization too right?"

Yes.

"D.S."

huh?

Return to “BlueTools”