Autostart strategies for Symbian 9.1...

Login to reply to this topic.
Tue, 2006-03-21 21:38
Joined: 2006-03-21
Forum posts: 9
We've previously used an MDL recognizer to autostart a UI-less server process in our application (it does Bluetooth listening among other things).

What I'd like to hear is if someone has been successful at launching a process from a Symbian 9.1 ECOM-based recognizer? I've have had troubles making it work (yep, the installer has been signed with a developer certificate with the required Capabilities). This has, so far, been on prototype hardware.

Of course, 3rd Edition has its Startup List Management API which would fit our bill perfectly (I think; depending on its need for Capabilities). But what about devices based on UIQ 3 (assuming ECOM-based recognizers do not work for process launching, or one'd prefer to not be forced to certify&sign the installer)?

I have read something somewhere (forgot where) to the effect that there'd be a not yet documented (or possibly private) Symbian 9.1 API for this sort of thing. Assuming it's just undocumented, does anyone have any pointers to details/headers/experiences/whatever that might help?

As a side-note, I find it disgustingannoying that we at this day and age keep trying to find ways to autostart server processes at device boot time. Kudos to Nokia for adding (and documenting) an API for this purpose.

Best.
--
Jonas

Wed, 2006-03-22 10:14
Joined: 2005-04-18
Forum posts: 31
Re: Autostart strategies for Symbian 9.1...
We've successfully ported our recognisers to 9.1 and ECOM.  We start an exe from the recogniser.  As far as I am aware we didn't have to do anything special in addition to the ECOM work, except ensure that the recogniser and server have the appropriate capabilities.

You say you're using Bluetooth.  Are you sure that the Bluetooth subsystem has been initialised when you try to use it from the server you start at boot?  You might need to delay for a short while before starting to listen.

Gavin
Wed, 2006-03-22 10:41
Joined: 2006-01-23
Forum posts: 25
Re: Autostart strategies for Symbian 9.1...
Hi,

as far as I know there is no need to "wait for a while", because a process can theck that a server is running (TFindServer) and launch a server you need with RProcess:Create(). and ensure that the server has started.
Wed, 2006-03-22 14:09
Joined: 2006-03-21
Forum posts: 9
Re: Autostart strategies for Symbian 9.1...
Many thanks for the encouraging reply. We are indeed taking measures to make sure the Bluetooth subsystem is up. It's probably a very minor (and hard to spot) omission that's causing the problem for us.

But now at least I know it's not impossible to achieve this with an ECOM recognizer in 9.1, so it's worth spending more time in debugging this.

You did try this with a real device, right?

Best.
--
Jonas

PS. I should correct/clarify my first post for future readers: the S60v3 Startup List Management API does require the installed application to be trusted (Symbian Signed), so this approach doesn't hold any advantages over the ECOM model in that regard.

Quote from: gavin
We've successfully ported our recognisers to 9.1 and ECOM.  We start an exe from the recogniser.  As far as I am aware we didn't have to do anything special in addition to the ECOM work, except ensure that the recogniser and server have the appropriate capabilities.

You say you're using Bluetooth.  Are you sure that the Bluetooth subsystem has been initialised when you try to use it from the server you start at boot?  You might need to delay for a short while before starting to listen.

Gavin
Wed, 2006-03-22 14:15
Joined: 2005-04-18
Forum posts: 31
Re: Autostart strategies for Symbian 9.1...
Quote from: s4lling
You did try this with a real device, right?

Yes, the technique has been used successfully with pre-release s60v3 and UIQ3 phones.

You can use ECOM recognisers on the emulator, so you should be able to debug that side of it before getting your BT service running on the device.  The epocwind.out log in %TEMP% might help highlight some problems.

Gavin
Thu, 2006-03-23 00:27
Joined: 2006-03-21
Forum posts: 9
Re: Autostart strategies for Symbian 9.1...
Got it to work now. No magic to it; just a couple of stupid mistakes (mismatched UIDs and such). Thanks for your help, gavin.

Best.
--
Jonas

Quote from: gavin
Quote from: s4lling
You did try this with a real device, right?

Yes, the technique has been used successfully with pre-release s60v3 and UIQ3 phones.

You can use ECOM recognisers on the emulator, so you should be able to debug that side of it before getting your BT service running on the device.  The epocwind.out log in %TEMP% might help highlight some problems.

Gavin
Thu, 2006-03-23 09:06
Joined: 2005-06-09
Forum posts: 174
Re: Autostart strategies for Symbian 9.1...
Just for reference, there's a recognizer example included both in the S60 3.0 and the UIQ 3.0 SDK:s.

Tue, 2006-09-26 11:43
Joined: 2006-08-31
Forum posts: 17
Re: Autostart strategies for Symbian 9.1...
hi,

How to remove the autostart  property of my application from programming.
  • Login to reply to this topic.