CellLocate getting started
Last update: July 4th, 2023
how to understand errors
Introduction
A Global Navigation Satellite System (GNSS) receiver cannot determine a position when satellite signals are unavailable, such as in urban canyons, indoors, parking garages, or when GNSS jamming signals are present. For fleet asset tracking and supply chain management, it’s unacceptable. On the other hand, cellular network cells and Wi-Fi access points are widely available, even in areas where GNSS signals are poor or absent. Network-based location using cellular and short-range radio attributes provides an alternative to no position fix at all.
CellLocate is a robust network-based location service that delivers location data where you need it, in the cloud, even in areas where GNSS is poor or absent, by using cellular and Wi‑Fi network attributes. It is ready to use since it is embedded in u-blox cellular and short-range modems. You can manage entire fleets with our easy-to-use IoT platform and flexible predictable plans. This end-to-end solution is proven, scalable, and ready to virtually eliminate any “no position” scenario.
In a nutshell
CellLocate provides an estimated location based on visible network cell information reported by the cellular module. When CellLocate is activated, a data connection to the CellLocate server is established and the network cell information is passed to the server which provides an estimation of the device position based on the cell information.
CellLocate is fully integrated into u-blox GSM/GPRS, HSPA/UMTS, LTE-M, and LTE Cat 1 cellular modules and works in parallel to normal module functionality. The technology enables stand-alone location data based on surrounding mobile network information as well as hybrid technology that works in conjunction with GNSS. Through the single AT command interface, it is possible to define all the location settings for optimized performance.
When using CellLocate, the position accuracy is not predictable and is determined by the availability in the database of previous observations within the same area. CellLocate does not require a GNSS receiver to be present or active.
In this section
Still need help?
If you need more help or have any questions, please send an email to services-support@u-blox.com.
Operator independent solution
It is a clever strategy to take advantage of the location attributes available via mobile networks to overcome the challenges of poor or absent GNSS, but this should not create vulnerable dependencies on the network operators themselves. Cellular networks evolve continuously, with changes made by network operators during network maintenance, to add capacity, spectrum, and even evolutionary advancements to infrastructure. Despite this, CellLocate delivers robust performance by leveraging location attributes belonging to both the serving cell network and the cells of other network operators, working equally well in both cases. This provides a robustness against network changes, as well as multiplicity in the number of cells observed.
Hardware requirements
CellLocate is supported by following u-blox Cellular products:
SARA-R5 series multi-band LTE-M/NB-IoT cellular modules
SARA-R4 series LTE-M/NB-IoT/EGPRS cellular modules
LARA-R2 series LTE Cat 1 cellular modules
LARA-R6 series LTE Cat 1 modules (with 3G fallback)
LENA-R8 series LTE Cat 1 modules
LARA-L6 series LTE Cat 4 modules (with 3G fallback)
TOBY-R2 series LTE Cat 1 cellular modules
SARA-U2 series UMTS/HSPA cellular modules
LISA-U2 series UMTS/HSPA cellular modules
SARA-G4 series GSM/GPRS cellular modules
SARA-G3 series GSM/GPRS cellular modules
SARA-R10 series LTE Cat1bis cellular modules (include passive Wi-Fi scanner)
LEXI-R10 series LTE Cat1bis cellular modules (include passive Wi-Fi scanner)
Pre-requisites
To use the service you need:
a valid CellLocate token which you can generate via the Thingstream service platform (explained in the next two sections)
An Evaluation Kit (EVK) for one of the supported modules which can be ordered from the u-blox website. You can, of course, use the module instead of the EVK if you already have it in your testing environment.
u-blox m-center software or a direct connection to the module to send AT commands
a working SIM with a valid data plan
An active data connection in the module. You can find some basic information that drives you on a quick connection set-up at this section. For additional information you can look at Internet applications development guide.
a u-blox Wi-Fi module if you want to implement also Wi-Fi Location
u-blox Thingstream service platform sign-up
u-blox Thingstream is a service delivery platform providing a management console that you can use to enable and manage the entire suite of u-blox services, including IoT Location-as-a-Services and CellLocate
Sign-up is free, quick and easy. Just go to the management console and register with your company information. If you already have a Thingstream domain you do not need to register again.
Service configuration - obtain a token
To use the service you need a valid token (an alphanumeric string) generated by the Thingstream platform. The token needs to be configured on each module as explained in a later section, to grant the access to the service.
To get a token:
Sign-in to the Thingstream platform
Go to Location services > Location Things and click on the Add Location Thing button
Select CellLocate > Generate Token and follow the wizard
For further information check the token management section for more information on creating and managing your tokens.
NOTE: the token is used to authorize your device to access to the service and it's valid for the entire fleet. During the wizard, you are requested to associate to the token a price plan (it can be a developer or a paid plan).
Device configuration
Configuring the device and use the service is extremely simple. You just need
to set the server URL and the authentication token
to set the cell scan mode as normal or deep
This configuration is persistent and need only be done once.
Configuring server settings
To configure the service endpoints and the token use this AT command
AT+UGSRV="primaryServer","secondaryServer","your_auth_token"
where:
primary and secondary server shall be set as cell-live1.services.u-blox.com and cell-live2.services.u-blox.com unless you need to work in Server to Server mode as explained in one of the following section
your_auth_token is the authentication token that you generated on the Thingstream platform
AT+UGSRV="cell-live1.services.u-blox.com","cell-live2.services.u-blox.com","abcdefg123456"
For LENA-R8 use lscellapi.services.ublox.com as primary server and ignore the secondary server.
Configuring the cell scan mode
There are two modes to choose from:
normal scan: the cellular module reports the serving cell and the neighboring visible cells designated by the network operator, which are normally collected by the module during its “network” activity. This configuration is suggested for a quick update of location
deep scan: the cellular module scans and reports all visible cells providing in addition to serving and neighboring cells by the serving network operator, also the cells of all other available (visible) network operators, thus increasing the probability of obtaining a successful position estimation. Although this takes a bit longer (approximately 30 sec to 2 minutes is needed to perform a deep scan), uses more data (each reported cell requires a few bytes), and more power, coverage and reliability are potentially better in corner cases.
Note: Deep scan configuration is generally recommended only for corner cases that must be individually considered and tested
Scan mode can be configured using the AT+ULOCCELL= <value> where:
<value> = 0 for normal scan
<value> = 1 for deep scan
Note: deep scan is not supported by all the modules. Refer to the module AT manual to verify compatibility
Note: Both settings AT+UGSRV and AT+ULOCCELL are persistent.
The scan mode influences the time needed to complete the scan, so the timeout value (explained in the next section) should be set accordingly. Be aware that the cell information is sent to the server only when the scan is completed, so setting a small value for the timeout means that the scan information may not be used.
Using the service
The AT+ULOC command is used every time that the device application wants to get a position using CellLocate. The command syntax is:
AT+ULOC=<mode>,<sensor>,<response_type>,<timeout>,<accuracy>
Where recommended settings are:
<mode> = 2 (single-shot position)
<sensor> = 2, (CellLocate)
<response_type> (see section below)
0 - standard response type
1 - detailed response
2 - multi-hypothesis response
<timeout> = 30 (normal scan). The timeout value defines the maximum amount of time in seconds allocated for the cell scan operation.
If timeout is exceeded, the module sends the list of cells that it was able to collect before the timeout is reached. The timer is particularly important for deep scan mode because, as described previously, setting a short value does not allow a complete collection of cell ID of other operators than the serving one.
In the event that the timeout is reached before the scan is complete, the output of normal scan will be sent to service endpoint to fulfill the request.
most of the time, the scan is completed in few seconds; in such case the request is sent to the service without waiting the timeout expiration
<accuracy> = 30. This parameter (expressed in meters) specifies the target accuracy when using hybrid positioning (CellLocate + GNSS).
If you are not using hybrid positioning (that is only Cellular positioning without GNSS) you shall set a low value (1-30) so that at any location request sent in the AT interface corresponds to a request to the service and thus a cloud position estimation.
If you setting an high value of <accuracy> (for example 150), the logic inside the modem, evaluates if it is possible to provide a solution without contacting the server to minimize the data and energy consumption.
Note: to know more about the logic implemented in the CellLocate client inside the u-blox cellular module, send a request to services-support@u-blox.com providing also the cellular model that you are using.
Here below the typical location request
AT+ULOC=2,2,0,30,30
Note: Please check the AT command manual for your module type in the product documentation section of the u-blox website to find the full set of available parameters.
Once the device application has sent the command to the module, the module autonomously:
collects all the information required to get the position
request the position estimation to the service, using a proprietary protocol
waits for the response from the server
provides back to the application, date, time and location information
An example of response (when response_type=0) is:
+UULOC: 13/04/2011,09:54:51.000,45.6334520,13.0618620,35,115
that complies to this format
+UULOC: <date>,<time>,<lat>,<long>,<alt>,<uncertainty>
where :
<date> is a String that represents UTC date(DD/MM/YY) of the estimated position coming from the CellLocate server
<time> is a String that represents UTC time (hh:mm:ss.sss) of the estimated position coming from the CellLocate server
<lat> and <lon> are strings representing the estimated latitude and longitude
<alt> is a number reporting the estimated altitude, in meters. This is available only for hybrid positioning using GNSS and thus it is set to 0 when using CellLocate as the sensor
<uncertainty> is a number that represents the estimated 50% confidence level error, in meters (0 - 20000000). For a higher confidence level, read the relevant section below
Extended responses
There is the possibility to get an extended response to obtain additional useful parameters, by setting it properly in the request.
AT+ULOC=<mode>,<sensor>,<response_type>,<timeout>,<accuracy>
Standard response type
The standard response type described above is obtained by using the value <response_type>=0. As explained above the response is provided in the following format
+UULOC: <date>,<time>,<lat>,<long>,<alt>,<uncertainty>
where <uncertainty> provides the uncertainty of the position estimation at 50th percentile.
Detailed response
This is obtained by setting <response_type>=1.
The resposne is in the following format
+UULOC: <date>,<time>,<lat>,<long>,<alt>,<uncertainty>,<speed>,<direction>,<vertical_acc>,<sensor_used>,<SV_used>,<antenna_status>,<jamming_status>
Most of these additional parameters (compared to standard response) are relevant only in case of hybrid positioning (CellLocate + GNSS) , but the <sensor_used> parameter is useful to understand if the location response is provided by the server (sensor_used = 2) or by the module (sensor_used=0) becuse of the client logic in the module.
Multi-hypothesis response type
By setting <response_type>=2, as explained in the following "Confidence level" section, you can obtain additional information like
Sensor used
uncertainty at 50th and 95th percentile (major50 and major95)
+UULOC: <sol>,<num>,<sensor_used>,<date>,<time>,<lat>,<long>,<alt>,<lat50>,<long50>,<major50>,<minor50>,<orientation50>,<confidence50>,<lat95>,<long95>,<major95>,<minor95>,<orientation95>,<confidence95>
It is worth noting that
the parameters minor and orientation are not used in the current FW releases, and the reported value should not be considered
the lat50, lon50, lat95 and lon95 will be used in future FW releases. In the current FW these values are always a replica of lat, lon parameters
the sol and num parameters are useful to indicate respectively the solution index and the total number of hypothesis, in case you would have specified the optional <num_hypothesis> as reported below. This feature allows you to receive from CellLocate service multiple possible location estimation. The default value of sol and num parameter is 1
AT+ULOC=<mode>,<sensor>,<response_type>,<timeout>,<accuracy>,<num_hypothesis>
Understanding errors
It's recommended to always activate the ULOC URCs to understand how the location request is progressing and if there is any issue.
To activate the URC, you can use AT+ULOCIND=<mode> where mode can be 0 or 1 to disable or enable URCs. The response is in the format
+UULOCIND: <step>,<result>
where steps indicate which is the on-going task of the Cellular modem, while result represent the result of the task.
Notes:
Once the +ULOC AT command is sent, the user/application should wait for the corresponding +UULOC URC before issuing the command again. If a new +ULOC AT command is sent before the +UULOC URC, is returned, the previous command is aborted and replaced by the new one.
If no position is available (no network information and no previous data available) then the <lat> latitude and <long> longitude will be set to '0'. Older FW might have a different default value than 0.
The use of the CellLocate sensor requires a data connection, which must be active until the +UULOC URC is received.
Service endpoints
CellLocate offers multiple service endpoints that can be configured in the AT+UGSRV command:
cell-live1.services.u-blox.com
cell-live2.services.u-blox.com
Payload Size
Data size exchanged between the module and the service end-point depends on the number of cells and are in the range of:
uplink: 100-200 bytes
Downlink: 150 bytes
Estimation uncertainty and confidence level
The position uncertainty cannot be predetermined because it depends on several factor like the region, the technology (2G, 3G, 4G). At global level it spans from 100 m to 2.7Km. If you need additional information about your region and/or technology you can contact the support at services-support@u-blox.com.
As described in the previous section, the ULOC response provides the <uncertainty> parameter that represents the estimated 50% confidence level error, in meters.
It is possible to get also the 95% confidence level by setting a different response type (parameter 2 as highlighted in bold here below)
AT+ULOC=2,2,2,60,1000
The format of the answer provided is reported below with the relevant parameters highlighted in bold
+UULOC:<sol>,<num>,<sensor_used>,<date>,<time>,<lat>,<long>,<alt>,<lat50>,<long50>,<major50>,<minor50>,<orientation50>,<confidence50>[,<lat95>,<long95>,<major95>,<minor95>,<orientation95>,<confidence95>]
where
major50 and major95 report the uncertainty of the position estimation at 50% and 95% confidence level
confidence50 and confidence95 report the value respectively of 50 and 95 to indicate which is the confidence level
Here below an example of an extended answer
+UULOC:1,1,2,15/09/2021,14:49:21.000,45.3747522,11.8611112,0,45.3747522,11.8611112,490,490,0,50,45.3747522,11.8611112,1806,1806,0,95
Summary
As short summary, to do the initial test:
Verify that the module is registered to the network as described in the Module connection setup guide
Configure the service with the token
AT+UGSRV="cell-live1.services.u-blox.com","cell-live2.services.u-blox.com","your_token"
Request the position estimation with detailed response
AT+ULOC=2,2,1,30,30
And verify that the location estimation comes form the service by checking that the parameter <sensor_used> = 2 as explained in the above section
+UULOC: <date>,<time>,<lat>,<long>,<alt>,<uncertainty>,<speed>,<direction>,<vertical_acc>,<sensor_used>,<SV_used>,<antenna_status>,<jamming_status>
Wi-Fi location
CellLocate includes the capability to locate a device using the nearby Wi-Fi access points. Especially in urban environments, this greatly improves the accuracy of the solution provided. To know more, visit the Wi-Fi location section.
Other ways to access the service
Service to Service access
Some use cases impose that the device communicates only with your application server. To address this requirement it is possible also to work in Service to Service mode where the device sends the raw data to the your application server that will then provide these raw data to the CellLocate endpoints using a REST API; the service returns the position estimation directly to your server in JSON format.
Detailed information about this option are available in the Service to Service guide.
Location in the Cloud
This is the most straightforward and simple way to estimate the device location and get it directly on the cloud saving data, reducing latency and minimizing the battery drain.
Detailed information about this option are available in the Location in the Cloud documentation.
Pricing
The service is charged on the number of location request on fleet basis without any limitation on the number of devices that compose the fleet.
You can select between multiple plans depending according to the monthly volume of request that you plan to have. Each plan has a fixed monthly fee and an overage fee (per request) that is applied in case you exceed the quota in a particular month.
You can change, in self-service mode, your plan using the Thingstream platform, accordingly to your forecast and use case. The platform will never change the plan automatically on a usage basis. Before moving to higher tier, evaluate if it is more cost effective to continue with a lower plan plus the overage cost.
The pricing plan is linked to a token. You can have multiple tokens each one with a different plan
Pricing plans are available in the IoT Location-as-a-Service section, on the CellLocate tab.
Invoicing
Invoices are raised on the 1st of each month and will include usage for any services configured via the Thingstream platform. Only completed subscriptions will be included so a plan which starts on 5th May, renewing on 5th June, would be included in the invoice raised on 1st July. Any usage from the renewed plan would not be invoiced until 1st August.
Invoices are sent by email from accounts@thingstream.io. Please add this address to your safe senders list to avoid invoices being lost in your junk folder.
Reference documentation
Additional information are available in the following documents: