Gilles Roy
|
Re: MME Startup - Device Autodetection
|
Gilles Roy
02/04/2010 8:31 AM
post46523
|
Re: MME Startup - Device Autodetection
> if I understood the documentation correctly, I could disable the device
> autodetection by setting the parameter <DeviceDetection> within the mme.conf to 'false'.
>
> Nevertheless the MME still detects all the devices after setting it to 'false'
> .
> Is there any other parameter which has to be configured?
No there should be no other configuration needed. If you start the mme-generic process with -vvvv you should see in the
logs all of the configuration values it sets. Look for the DeviceDetection in those logs.
Of note, the default start is commented out, so even if you change the enabled to "false" you still have to uncomment
the xml element.
> Version: QNX Aviage Multimedia Suite 1.2
>
> General Questions:
> - The autodetection has manally to be enabled only once during the startup?
Yes, you call mme_start_device_detection() just once (normally after you have registered for events)
> - Is there another mechanism to prevent the loss of events from the type
> MME_EVENT_MS_STATECHANGE?
The only other thing you could do is once you have connected to the MME and registered for events, you could look at the
state of the mediastores table and update against what you thought your current state was.
> - Would you recommend to use/not to use the autodetection of the MME?
> - Could the client application already read information out of the table
> mediastores
> without getting a MME_EVENT_MS_STATECHANGE?
I think the client application can do this. I suppose if your system is based on a state machine some might find it
easier to delay device detection and process all of the events that come in when it is started? Nothing comes to mind
that would *require* delayed device detection, all of the info is available in the mediastores table.
Regards,
Gilles
> Background:
> In some scenarios the MME could be started earlier than the component reading
> /handling the MME events.
>
> Thanks a lot,
> Sebastian
>
|
|
|