|
LinuxSDK
V1.4.0.5
|
Header file for for GSM APIs related to the Location Based Services. More...
Go to the source code of this file.
Data Structures | |
| struct | SWI_STRUCT_LbsLocNotifyStatus |
| struct | SWI_STRUCT_LbsDloadNotifyStatus |
| struct | SWI_STRUCT_LbsParamNotifyStatus |
| struct | SWI_STRUCT_LbsPdDownload |
| struct | SWI_STRUCT_LbsPdGetPos |
| struct | SWI_STRUCT_LbsPdGetStatus |
| struct | SWI_STRUCT_LbsPdTrack |
| struct | SWI_STRUCT_LbsPdEndSession |
| struct | SWI_STRUCT_LbsPaGetParam |
| struct | SWI_STRUCT_LbsPdData |
| struct | SWI_STRUCT_LbsPdDone |
| struct | SWI_STRUCT_LbsPdEnd |
| struct | SWI_STRUCT_LbsPdBegin |
| struct | SWI_STRUCT_LbsPdUpdateFailure |
| struct | SWI_STRUCT_LbsPdDloadBegin |
| struct | SWI_STRUCT_LbsPdDloadData |
| struct | SWI_STRUCT_LbsPdDloadDone |
| struct | SWI_STRUCT_LbsPdDloadEnd |
| struct | SWI_STRUCT_LbsPaIpAddr |
| struct | SWI_STRUCT_LbsPaGpsLock |
| struct | SWI_STRUCT_LbsPaPtlmMode |
| struct | SWI_STRUCT_LbsPaPortId |
| struct | SWI_STRUCT_LbsPaPrivacy |
| struct | SWI_STRUCT_LbsPaNetAccess |
| struct | SWI_STRUCT_LbsPaBsInfo |
| struct | SWI_STRUCT_SatView |
| struct | SWI_STRUCT_LbsSatInfo |
| struct | SWI_STRUCT_LbsClearAssistance |
Macros | |
| #define | MAX_NUM_LBS_SV 12 |
| #define | LENGTH_LbsReqId 33 |
| #define | LENGTH_LbsClientName 33 |
| #define | LENGTH_TimeStamp 16 |
Header file for for GSM APIs related to the Location Based Services.
Copyright: © 2011 Sierra Wireless, Inc. all rights reserved
| #define LENGTH_LbsClientName 33 |
Maximum client name length
| #define LENGTH_LbsReqId 33 |
Maximum requestor ID length
| #define LENGTH_TimeStamp 16 |
Time stamp string length
| #define MAX_NUM_LBS_SV 12 |
Maximum number of sattelites
| typedef struct SWI_STRUCT_LbsClearAssistance SWI_STRUCT_LbsClearAssistance |
Structure containing clear assistance parameters
Used by SwiSetLbsClearAssistance to clear various location assistance parameters to simulate a cold start.
| typedef struct SWI_STRUCT_LbsDloadNotifyStatus SWI_STRUCT_LbsDloadNotifyStatus |
Used to enable/disable or check the current notification state of the following group of notifications:
| typedef struct SWI_STRUCT_LbsLocNotifyStatus SWI_STRUCT_LbsLocNotifyStatus |
Used to enable/disable or check the current notification state of the following group of notifications:
| typedef struct SWI_STRUCT_LbsPaBsInfo SWI_STRUCT_LbsPaBsInfo |
Structure containing base station information.
| typedef struct SWI_STRUCT_LbsPaGetParam SWI_STRUCT_LbsPaGetParam |
Structure containing the modem's default parameter settings.
Entire set of position determination parameters is returned to the host (IP address, port ID, GPS lock, transport mechanism, privacy, network access).
| typedef struct SWI_STRUCT_LbsPaGpsLock SWI_STRUCT_LbsPaGpsLock |
Structure containing GPS lock used in LBS sessions.
| typedef struct SWI_STRUCT_LbsPaIpAddr SWI_STRUCT_LbsPaIpAddr |
Structure containing TCP/IP address used in LBS sessions.
| typedef struct SWI_STRUCT_LbsPaNetAccess SWI_STRUCT_LbsPaNetAccess |
Structure containing network access permission used during LBS sessions.
| typedef struct SWI_STRUCT_LbsPaPortId SWI_STRUCT_LbsPaPortId |
Structure containing port ID used in LBS sessions.
| typedef struct SWI_STRUCT_LbsPaPrivacy SWI_STRUCT_LbsPaPrivacy |
Structure containing privacy level used in LBS sessions.
| typedef struct SWI_STRUCT_LbsPaPtlmMode SWI_STRUCT_LbsPaPtlmMode |
Structure containing mechanism used to transport LBS messages.
| typedef struct SWI_STRUCT_LbsParamNotifyStatus SWI_STRUCT_LbsParamNotifyStatus |
Used to enable/disable or check the current notification state of the following group of notifications:
| typedef struct SWI_STRUCT_LbsPdBegin SWI_STRUCT_LbsPdBegin |
Skeleton structure returned when a position determination fix session has begun.
| typedef struct SWI_STRUCT_LbsPdData SWI_STRUCT_LbsPdData |
Structure containing position fix information.
This object is sent to notify the registered host client of the result of the position fix. If the host performs a get on this object when there is no position fix to report the modem will respond with a generic error message.
| typedef struct SWI_STRUCT_LbsPdDloadBegin SWI_STRUCT_LbsPdDloadBegin |
Skeleton structure returned when a data download session has begun.
| typedef struct SWI_STRUCT_LbsPdDloadData SWI_STRUCT_LbsPdDloadData |
Structure containing information on downloaded LBS data.
This object is sent to notify the registered host client that ephemeris and almanac data has been downloaded.
| typedef struct SWI_STRUCT_LbsPdDloadDone SWI_STRUCT_LbsPdDloadDone |
Skeleton structure returned when a position determination download session has completed.
| typedef struct SWI_STRUCT_LbsPdDloadEnd SWI_STRUCT_LbsPdDloadEnd |
Structure containing status of a position determination download session.
This object is typically sent to notify the registered host clients that a position determination fix session had an error.
| typedef struct SWI_STRUCT_LbsPdDone SWI_STRUCT_LbsPdDone |
Skeleton structure returned when a position determination fix session has completed.
| typedef struct SWI_STRUCT_LbsPdDownload SWI_STRUCT_LbsPdDownload |
Used to specify the download option and duration.
The host can use the download option to indicate whether the data download should occur just once or periodically, in an effort to keep the data "warm". If the application that will be requesting this data will be requiring the use of the data over a period of time, the application should indicate that the download should be periodic.
| typedef struct SWI_STRUCT_LbsPdEnd SWI_STRUCT_LbsPdEnd |
Structure returned when a position determination fix session encountered an error.
| typedef struct SWI_STRUCT_LbsPdEndSession SWI_STRUCT_LbsPdEndSession |
Structure containing information related to ending a tracking session
| typedef struct SWI_STRUCT_LbsPdGetPos SWI_STRUCT_LbsPdGetPos |
Structure containing location fix data
| typedef struct SWI_STRUCT_LbsPdGetStatus SWI_STRUCT_LbsPdGetStatus |
Structure containing LBS status information.
| typedef struct SWI_STRUCT_LbsPdTrack SWI_STRUCT_LbsPdTrack |
Structure containing information related to starting a tracking session.
| typedef struct SWI_STRUCT_LbsPdUpdateFailure SWI_STRUCT_LbsPdUpdateFailure |
Skeleton structure returned when a position determination fix session has failed
| typedef struct SWI_STRUCT_LbsSatInfo SWI_STRUCT_LbsSatInfo |
Structure containing base station information.
Used by SwiGetLbsSatInfo to retrieve information about the current base station currently being accessed.
| typedef struct SWI_STRUCT_SatView SWI_STRUCT_SatView |
Structure containing satellite information
Enumeration of download data types
| Enumerator | |
|---|---|
| SWI_LBSDLOADDATA_Location | |
| SWI_LBSDLOADDATA_AA | |
| SWI_LBSDLOADDATA_SA | |
| SWI_LBSDLOADDATA_Epemeris | |
| SWI_LBSDLOADDATA_Almanac | |
Enumeration of download source types
| Enumerator | |
|---|---|
| SWI_LBSDLOADSOURCE_Mobile | |
| SWI_LBSDLOADSOURCE_Pde | |
| enum SWI_TYPE_LbsFix |
Enumeration of location fix types
| enum SWI_TYPE_LbsFixDim |
Enumeration of location fix dimensions.
| Enumerator | |
|---|---|
| SWI_LBSFIXDIM_2D | |
| SWI_LBSFIXDIM_3D | |
An enumeration of LBS notification state
| Enumerator | |
|---|---|
| SWI_LBSNOTIFYSTATE_Off | |
| SWI_LBSNOTIFYSTATE_On | |
Enumeration of PD download options
| Enumerator | |
|---|---|
| SWI_LBSPDDLOADOPTION_Periodic | |
| SWI_LBSPDDLOADOPTION_Single | |
Enumeration of PD end status values.
| enum SWI_TYPE_LbsPdErr |
Enumeration of PD error types
| enum SWI_TYPE_LbsPdStatus |
Enumeration of LBS PD status
| Enumerator | |
|---|---|
| SWI_LBSPDSTATUS_None | |
| SWI_LBSPDSTATUS_Active | |
| SWI_LBSPDSTATUS_Success | |
| SWI_LBSPDSTATUS_Error | |
| enum SWI_TYPE_LbsSession |
Enumeration of session types
| Enumerator | |
|---|---|
| SWI_LBSSESSION_LocationFix | |
| SWI_LBSSESSION_Download | |
| enum SWI_TYPE_SDPU |
Enumeration representing the Standard Deviation for Position Uncertainty
From IS801-1 Values are 0 - 31 and map to the list below it (in Meters)
Doxygen formatting of the same information presented above
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
| .5 | .75 | 1 | 1.5 | 2 | 3 | 4 | 6 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 96 | 128 | 192 | 256 | 384 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096 | 6144 | 8192 | 12288 | 12288 | 0 | 0 |
| SWI_API SWI_RCODE SwiGetLbsPaIpAddr | ( | struct SWI_STRUCT_LbsPaIpAddr * | psPaIpAddr, |
| swi_uint32 | timeout | ||
| ) |
This function is used to get GPS IP Address settings from the modem.
The PDE IP Address is a write only field and is not to be displayed to users. This API will return:
| psPaIpAddr,: | [OUT] A pointer to a SWI_STRUCT_LbsPaIpAddr structure which contains the TCP/IP address information. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetLbsPaParam | ( | struct SWI_STRUCT_LbsPaGetParam * | psLbsPdGetParam, |
| swi_uint32 | timeout | ||
| ) |
This function requests the modem's default parameter settings.
| psLbsPdGetParam,: | [OUT] A pointer to a SWI_STRUCT_LbsPaGetParam structure which contains the position determination parameters. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetLbsPaPortId | ( | struct SWI_STRUCT_LbsPaPortId * | psPaPortId, |
| swi_uint32 | timeout | ||
| ) |
This function is used to get the GPS port ID used in LBS sessions.
| psPaPortId,: | [OUT] A pointer to a SWI_STRUCT_LbsPaPortId structure which contains the port ID. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetLbsPdData | ( | struct SWI_STRUCT_LbsPdData * | psLbsPdData, |
| swi_uint32 | timeout | ||
| ) |
This function gets the results of the position fix.
| psLbsPdData,: | [OUT] A pointer to a SWI_STRUCT_LbsPdData structure which contains the position fix results. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetLbsPdStatus | ( | struct SWI_STRUCT_LbsPdGetStatus * | psLbsPdGetStatus, |
| swi_uint32 | timeout | ||
| ) |
This function requests that the modem provide the current status of the LBS.
| psLbsPdGetStatus | [OUT] A pointer to a SWI_STRUCT_LbsPdGetStatus structure which contains the current status of the LBS. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetLbsSatInfo | ( | struct SWI_STRUCT_LbsSatInfo * | psSatInfo, |
| swi_uint32 | timeout | ||
| ) |
Use this function to get current GPS satellite information.
| psSatInfo,: | [OUT] A pointer to a SWI_STRUCT_LbsSatInfo structure which contains satellite information. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsClearAssistance | ( | const struct SWI_STRUCT_LbsClearAssistance * | psLbsClearAssistance, |
| swi_uint32 | timeout | ||
| ) |
This function requests that the modem clear various location parameters to simulate a cold start.
| psLbsClearAssistance,: | [IN] A pointer to a SWI_STRUCT_LbsClearAssistance structure which contains parameters to clear. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsPaIpAddr | ( | const struct SWI_STRUCT_LbsPaIpAddr * | psPaIpAddr, |
| swi_uint32 | timeout | ||
| ) |
This function is used to set current GPS IP Address.
| psPaIpAddr,: | [IN] A pointer to a SWI_STRUCT_LbsPaIpAddr structure which contains the TCP/IP address information. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsPaPortId | ( | const struct SWI_STRUCT_LbsPaPortId * | psPAPortID, |
| swi_uint32 | timeout | ||
| ) |
This function is used to set the GPS port ID used in LBS sessions.
| psPAPortID,: | [IN] A pointer to a SWI_STRUCT_LbsPaPortId structure which contains the port ID. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsPdEndSession | ( | const struct SWI_STRUCT_LbsPdEndSession * | psLbsPdEndSession, |
| swi_uint32 | timeout | ||
| ) |
This function is used to end current LBS tracking session.
This API will respond with a SWI_NOTIFY_LbsPdDone/SWI_NOTIFY_LbsPdEnd notification that includes the End status.
There may be one of each type of session active simultaneously.
| psLbsPdEndSession,: | [IN] A pointer to a SWI_STRUCT_LbsPdEndSession structure which contains the current tracking session to terminate. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsPdGetPos | ( | const struct SWI_STRUCT_LbsPdGetPos * | psLbsPdGetPos, |
| swi_uint32 | timeout | ||
| ) |
This function is used to initiate a location fix.
If the location fix initiation is successful, the following notifications will inform the host of the location fix progress and termination:
- SWI_NOTIFY_LbsPdDone - SWI_NOTIFY_LbsPdData - SWI_NOTIFY_LbsPdEnd - SWI_NOTIFY_LbsPdBegin - SWI_NOTIFY_LbsPdUpdateFailure - SWI_NOTIFY_LbsSatInfo
| psLbsPdGetPos,: | [IN] A pointer to a SWI_STRUCT_LbsPdGetPos structure which contains the location fix configuration. |
| timeout,: | [IN] Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetLbsPdTrack | ( | const struct SWI_STRUCT_LbsPdTrack * | psLbsPdTrack, |
| swi_uint32 | timeout | ||
| ) |
This function requests that the modem start a tracking session.
If the track session was initiated successfully, the following notifications will inform the host of the location fix progress and termination:
This command should be used when an application requires multiple location fixes over a small period of time (ex. a fix between every 1 to 240 seconds).
Due to the potential need for first updating the ephemeris, almanac and/or location data, the "time to first fix" may require more time than the subsequent fixes. Tracking applications need to consider this possible initial delay and may want to behave "pro actively" by initiating a Data Download session and/or a single location fix as part of their startup sequence. As a guideline, almanac data is valid for 3 to 4 days, ephemeris data is valid for 30 to 120 minutes, coarse location data is valid for 4 minutes.
| psLbsPdTrack,: | [IN] A pointer to a SWI_STRUCT_LbsPdTrack structure which contains the track session configuration. |
| timeout,: | [IN] Function timeout in milliseconds. |