Invalid LAC/CID when running neighboring cells demo code

I have a mangOH Red board with a WP8548 module. I’m trying to run the “Sample code for Neighboring Cells Information” demo. I’m getting -1 for the Cell ID and 6535 for the LAC. This happens with AF 17.06.0, 17.07.2, 17.08.1 . I’m, using the AirVantage SIM that came with the board. Does anyone have any idea why this is happening?

Here is the sample output. This is repeatable (every time).

Oct 18 13:28:34 swi-mdm9x15 user info Legato: INFO | neighborScan[15948]/neighborScanComponent T=main | neighborScanComponent.c _neighborScanComponent_COMPONENT_INIT() 35 | !#!#! Cell #0, cid.-1, lac.65535, rxLevel.-91dBm, RAT.2
Oct 18 13:28:34 swi-mdm9x15 user info Legato: INFO | neighborScan[15948]/neighborScanComponent T=main | neighborScanComponent.c _neighborScanComponent_COMPONENT_INIT() 41 | !#!#! Cell #0, UMTS EcIo.-0000011.0dB
Oct 18 13:28:34 swi-mdm9x15 user info Legato: INFO | neighborScan[15948]/neighborScanComponent T=main | neighborScanComponent.c _neighborScanComponent_COMPONENT_INIT() 68 | !#!#! Cell #1, cid.-1, lac.65535, rxLevel.-93dBm, RAT.2
Oct 18 13:28:34 swi-mdm9x15 user info Legato: INFO | neighborScan[15948]/neighborScanComponent T=main | neighborScanComponent.c _neighborScanComponent_COMPONENT_INIT() 74 | !#!#! Cell #1, UMTS EcIo.-0000013.0dB

Thanks,
Bill

Hi Bill,

could you enable debug logs are redo the log capture?

log level debug

Thanks

You can get this information for the current cell. LAC is not provided for neighboring cell. Neighboring CID may be available with 2G. What’s the use for requiring this information for the neighboring cell? Thanks

We’re trying to do cellular triangulation. We have a database that allows you to determine a tower’s position based on MCC, MNC, LAC and CID.

Hi @btonnies
Legato 18.06.3 now supports a PCI scan using which you can get MCC/MNC from neighboring cells as well. Please note that this will work only on WP76 and LTE only RAT.

The legato test application that is provided with the 18.06.3 release has sample code that you can refer.
Regards
A