This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

asset_tracker: Connection was closed by the cloud.

tag v1.1.0 (have done west update)
using SES 4.30c  as suggested by nrf connect  Compiled and flashed using SES
modem firmware mfw_nrf9160_1.1.1
downloaded and updated the certificate
added the device on nrf cloud

the device connects to the cloud.. I can see the details on nrfcloud account but it keeps disconnecting and rebooting and also how do I get the GPS to work ? It is supposed to be anabled by default

[00:00:10.532,714] <inf> aws_fota: Checking for an available job
[00:00:10.539,428] <dbg> aws_fota.get_job_execution: Got only one field: {"clientToken":"
[00:00:10.548,248] <inf> aws_fota: No queued jobs for this device
+CEREG: 5,"1E01","0075BE02",7,,,"11100000","11100000"
[00:00:38.604,949] <err> asset_tracker: LTE link disconnect
[00:00:38.960,723] <err> asset_tracker: Socket error: POLLHUP
[00:00:38.967,376] <err> asset_tracker: Connection was closed by the cloud.
[00:00:38.975,219] <err> asset_tracker: LTE link disconnect
+CEREG: 0,"1E01","0075BE02",7,0,0,"11100000","11100000"
[00:00:40.499,328] <err> asset_tracker: Shutdown modem

  • I do understand your frustration, and we are working on making things easier.

    Yes, the guide is up-to-date.

     

    maaya_tech said:
    and now you would want us to flash a copletely different app and fw to debug what's broken in a different sample application.

     There is no need to flash a different application, and I can not see that mentioned in the guide I linked. It does say that you must have the correct firmware flashed to the board controller, but if you have not touched that, there is no need to flash anything other than the application you want to debug with CONFIG_BSD_LIBRARY_TRACE_ENABLED=y.

    So, if you have not changed the firmware on the board controller, you must do the following:

    1. Add CONFIG_BSD_LIBRARY_TRACE_ENABLED=y in the prj.conf file in the asset_tracker folder.

    2. Build and flash the asset_tracker application.

    3. In the "LTE Link Monitor" application (in nRF Connect for Desktop), connect to you DK, and send the AT%XMONITOR=1,2 command.

    4. Send AT+CFUN=0 to store the command in flash.

    5. Open the "Trace Collector" application (in nRF Connect for Desktop), select your device, reset the device and press the "Start Capture" button.

    6. Send me the captured modem trace along with the log from the "LTE Link Monitor".

    To avoid the device resetting due to your problem in steps 3 and 4, you can remove the SIM card while you are doing those steps, before inserting it again when capturing the modem trace.

    Best regards,

    Didrik

  • Hi, have you been able to connect your DK to nRF Cloud yet?

    One possible reason for your problem is that the certificates you created were for the wrong device ID.

    When you entered the IMEI, did you do it on the form nrf-<IMEI>, or just <IMEI>?

    If it was the latter, could you try to create new certificates, but in the device ID field, enter nrf-<IMEI> (replacing <IMEI> with the IMEI of your DK)?

    Best regards,

    Didrik

  • did you do it on the form nrf-<IMEI>
    Yes.. I did it with nrd-<IMEI> it was very clearly mentioned and was easy not to miss it

  • I use SES.. after making the change.. and when i click on "Build and run".. it starts building and then pops a window asking "the project zephyre/merged.hex" is out of date and needs to be rebuild" Build the project before rebuilding".. I clicked yes and i see 
    "Failed to download application. Undocumented error" is what I get if I make that ONE change and build and run from SES

    Now, if I go back to CONFIG_BSD_LIBRARY_TRACE_ENABLED=n, I see the same exact error.

    Rest assured.. I have NOT touched ANYTHING other than making this one line change

  • and here's the jlink log

    Preparing target for download
    Executing Reset script TargetInterface.resetAndStop()
    Reset: Halt core after reset via DEMCR.VC_CORERESET.
    Reset: Reset device via AIRCR.SYSRESETREQ.
    Downloading ‘merged.hex’ to J-Link
    Programming 34.1 KB of addresses 00000000 — 0000888f
    Programming 223.3 KB of addresses 0000c000 — 00043d6b
    Timeout while erasing sectors, RAMCode did not respond in time. (PC = 0xFFFFFFFF, CPSR = 0x00000000, LR = 0x21000003)!
    Failed to erase sectors.
    Download failed

Related