Multicell using Here

The multicell loaction has been working fine for a long time. About 8 days ago, I started to receive an error when requesting the location through "Here"

Any help would be very much appreciated.

[00:05:42.749,237] [0m<inf> MODULE: Current cell:[0m
[00:05:42.749,603] [0m<inf> MODULE: MCC: 530[0m
[00:05:42.749,969] [0m<inf> MODULE: MNC: 005[0m
[00:05:42.750,366] [0m<inf> MODULE: Cell ID: 430191[0m
[00:05:42.750,762] [0m<inf> MODULE: TAC: 18121[0m
[00:05:42.751,159] [0m<inf> MODULE: EARFCN: 9310[0m
[00:05:42.751,556] [0m<inf> MODULE: Timing advance: 592[0m
[00:05:42.751,953] [0m<inf> MODULE: Measurement time: 342057[0m
[00:05:42.752,410] [0m<inf> MODULE: Physical cell ID: 132[0m
[00:05:42.752,838] [0m<inf> MODULE: RSRP: 15[0m
[00:05:42.753,204] [0m<inf> MODULE: RSRQ: 14[0m
[00:05:42.753,570] [0m<inf> MODULE: *** No neighbor cells found ***[0m
Sending location request...
[00:06:08.233,612] [1;31m<err> rest_client: Receive buffer too small, 1026 bytes are required[0m
[00:06:08.234,161] [1;31m<err> rest_client: rest_client_do_api_call() failed, err -105[0m
[00:06:08.235,656] [1;31m<err> multicell_location_here: Error from rest client lib, err: -105[0m
Failed to acquire location, error: -105

Parents
  • rest_client: Receive buffer too small, 1026 bytes are required

    I'm guessing HERE returns a "404 position could not be retrieved... yaddayadda", it's a rather long message (1026 bytes in this case). The location default buffer is 512 1024 (at least for sdk v2.6.1), which results in the error message you see there.

    You can fix this error by setting the buffer size larger, e.g

    CONFIG_LOCATION_SERVICE_CLOUD_RECV_BUF_SIZE=1152

    This is at least fixes that error, but it'll just let you see the full error response from the HERE API, which happens when you try to get cellular position with NB-IoT cells.
    The nRF HERE implementation isn't fully up to date, it's providing cell data as "lte" objects, regardless of modem mode. HERE API has been updated and has support for separate "lte", "lteCatM" and "nbiot" objects now.

    (EDIT: corrected default buffer size to 1024, as per dejans's comment below)

Reply
  • rest_client: Receive buffer too small, 1026 bytes are required

    I'm guessing HERE returns a "404 position could not be retrieved... yaddayadda", it's a rather long message (1026 bytes in this case). The location default buffer is 512 1024 (at least for sdk v2.6.1), which results in the error message you see there.

    You can fix this error by setting the buffer size larger, e.g

    CONFIG_LOCATION_SERVICE_CLOUD_RECV_BUF_SIZE=1152

    This is at least fixes that error, but it'll just let you see the full error response from the HERE API, which happens when you try to get cellular position with NB-IoT cells.
    The nRF HERE implementation isn't fully up to date, it's providing cell data as "lte" objects, regardless of modem mode. HERE API has been updated and has support for separate "lte", "lteCatM" and "nbiot" objects now.

    (EDIT: corrected default buffer size to 1024, as per dejans's comment below)

Children
Related