none
How sensor application can choose between different types supported for a same category? RRS feed

  • Question

  • Hi All,

    I have some questions for the GPS application.

    We have a GPS device (SENSOR_CATEGORY_LOCATION).

    The device supports stand alone(SENSOR_TYPE_LOCATION_GPS) as well as AGPS(SENSOR_TYPE_LOCATION_LOOKUP).

    My question is how the Apllication can set which type to be used(GPS or LOOKUP) for getting the location.

    If Application sets LOOKUP method to get the location parameters, we require many settings to be done (such as establishing a data connection, setting URL of the carrier). Who (Application or Driver) will be responsible for these settings?

    I am developing a sensor driver for our device, I am not sure whether i can post sensor driver development related queries on this forum.  Please suggest.

    Friday, June 12, 2009 6:09 AM

Answers

  • Hi Sankar,
       

    I wanted to clarify what SENSOR_TYPE_LOCATION_LOOKUP means – it is meant for things like IP resolvers which have a database and return a location based on the port or address of your network connection. A GPS with AGPS capabilities should use SENSOR_TYPE_LOCATION_GPS (http://msdn.microsoft.com/en-us/library/cc974549.aspx). The ideal way for setting up data connections and URLs would be to provide settable properties (http://msdn.microsoft.com/en-us/library/dd318899(VS.85).aspx) for those fields. Then you could provide a simple utility (perhaps through a connection manager) that allows users to configure this. The data could be persisted in the driver property store.

    Thanks,

       Alec

    Friday, June 19, 2009 9:14 PM

All replies

  • Hi Sankar,
       

    I wanted to clarify what SENSOR_TYPE_LOCATION_LOOKUP means – it is meant for things like IP resolvers which have a database and return a location based on the port or address of your network connection. A GPS with AGPS capabilities should use SENSOR_TYPE_LOCATION_GPS (http://msdn.microsoft.com/en-us/library/cc974549.aspx). The ideal way for setting up data connections and URLs would be to provide settable properties (http://msdn.microsoft.com/en-us/library/dd318899(VS.85).aspx) for those fields. Then you could provide a simple utility (perhaps through a connection manager) that allows users to configure this. The data could be persisted in the driver property store.

    Thanks,

       Alec

    Friday, June 19, 2009 9:14 PM
  • I am writing software in .NET to consume GPS data from the Windows 7 Sensor and Location platform using the interop library. I would like to find out about being a beta tester for your driver. Could you contact me using john (at) boatmaine.us?

    Thank you.

    John Tarbox
    Friday, June 19, 2009 11:25 PM