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

GPS and accelerometer data to own AWS server

Hi,

I am a little confused between GPS and AGPS sample code provided by nordic. can you help me to understand it?

I just want to send GPS and accelerometer data of thingy91 to my own AWS IOT server. which one would be the easiest way to use to satisfy requirements.

  • Rkidechaa said:
    both are working fine when run individually.

     For GPS and LTE to run concurrently, you need to enable PSM. As far as I can tell, from the CEREG return value PSM is not enabled. What SIM/operator are you using. What location do you try to connect from?

  • What SIM/operator are you using. What location do you try to connect from?

    SIM operator is Ibasis only. Location =  USA -Texas, Arlington.

    I have successfully received the accelerometer data on my AWS server. Now when I am trying to send data from another thingy on the same server getting an error.

    2021-01-12T05:22:18.759Z DEBUG modem << *** Booting Zephyr OS build v2.4.0-ncs1-1710-g5a7b4eb71047  ***
    2021-01-12T05:22:18.760Z DEBUG modem << I: BSDlib is not yet initialized, AT commands not sent
    2021-01-12T05:22:18.761Z DEBUG modem << I: Configuration of MAGPIO and COEX0 is left to drivers
    2021-01-12T05:22:18.762Z DEBUG modem << The AWS IoT sample started, version: v1.0.0
    2021-01-12T05:22:20.656Z DEBUG modem << LTE cell changed: Cell ID: 133272592, Tracking area: 27174
    2021-01-12T05:22:20.659Z DEBUG modem << PSM parameter update: TAU: -1, Active time: -1
    2021-01-12T05:22:20.700Z DEBUG modem << RRC mode: Connected
    2021-01-12T05:22:22.563Z DEBUG modem << Network registration status: Connected - roaming
    2021-01-12T05:22:23.218Z DEBUG modem << DATE_TIME_OBTAINED_NTP
    2021-01-12T05:22:23.222Z DEBUG modem << Next connection retry in 30 seconds
    2021-01-12T05:22:23.224Z DEBUG modem << AWS_IOT_EVT_CONNECTING
    2021-01-12T05:22:23.520Z DEBUG modem << E: mqtt_connect, error: -95
    2021-01-12T05:22:23.523Z DEBUG modem << AWS_IOT_EVT_CONNECTING
    2021-01-12T05:22:29.284Z DEBUG modem << RRC mode: Idle
    2021-01-12T05:22:53.220Z DEBUG modem << Next connection retry in 30 seconds
    2021-01-12T05:22:53.222Z DEBUG modem << AWS_IOT_EVT_CONNECTING
    2021-01-12T05:22:53.320Z DEBUG modem << RRC mode: Connected
    2021-01-12T05:22:53.535Z DEBUG modem << E: mqtt_connect, error: -95
    2021-01-12T05:22:53.537Z DEBUG modem << AWS_IOT_EVT_CONNECTING
    2021-01-12T05:22:59.287Z DEBUG modem << RRC mode: Idle
    

    can we set multiple thingies to send data to the AWS IOT account?

  • Rkidechaa said:
    can we set multiple thingies to send data to the AWS IOT account?

     Yes, that should be possible. You need to set up individual certificates though. Have you done that?

  • Hello ! Were you able to send GPS data to AWS? Thanks :)

Related