Hi everybody,
I’ve been trying to use Cellular.command() to fetch the cellular location. The ublox chips on the electron have a nifty feature called CellLocate, which can return an approximate GPS location using triangulation.
Unfortunately, all my calls to Cellular.command() return -1 (timeout).
I followed the documentation example. My code is very simple:
Any updates on the Cellular.command? Getting the ICCID and being able to access the AT commands in general for sending sms messages or other stuff should be basic functionality?
I think the particle SIM is only provisioned to connect to the particle servers. Hence we can’t reach the ublox cell locate servers. These will have an algorithm to estimate location using cell signal strength.
Hmmm. Maybe, but that seems like a silly limitation, especially in light of the built-in TCP and UDP classes that support connectivity to anywhere. Or does any of that traffic flow through the Particle servers before it goes to its real destination? If so, that seems terribly inefficient, not to mention adding an extra failure point to the network path.
ICCID code works for me, but while I can call ULOC / ULOCCELL and get an ‘OK’ (-2) reply, i never get a URC with the actual location information in
edit: Enabling a debug firmware shows that the UULOC URC is actually returned, but at least a couple of seconds after the call to Cellular.command() returns with OK.
Looks like maybe support for UULOC needs to be put into mdm_hal.cpp?
edit 2: In fact, hacking another entry into MDMParser::waitFinalResp does work to pick up the UULOC URC but I have no idea what to do with it at that point to get the info back to my app