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

Asset_tracker example, transmission protocol

Hi 

I am using nRF9160DK board and need transmit gps data to web site, I am trying with udp but have problems with that, I would like to know what protocol use asset_tracker example to transmit to nrfcloud? I try discover reading the example code but it's hard to me identify how its works, any documentation about the protocol and how its works will be very usefull to me.

thanks in advance 

Julio

Parents
  • > I would like to know what protocol use asset_tracker example to transmit to nrfcloud?

    Just mention:

    if you use CAT-M1 connectivity (availability/costs), MQTT/TLS is a choice.

    If you use CAT-NB, just the TLS handshake may take longer, than you want/expect.

    > I am trying with udp but have problems with that

    If you use "plain" UDP, then encryption and the data modelling is up to you. If you use CoAP/DTLS, then you may use some libraries, which do a lot for you. Since a short time, there are third-party cloud-service offerings for that (you may find at least one in this forum :-) ). Depending on the time you want to spend for implementation, there are also some open source offerings (e.g. coap/dtls in zephyr, or libcoap, and for the cloud may be Eclipse/Californium). Using these libraries requires, that you build your "service" on the top of them. LwM2M is additionally an option, you may find also commercial and open source offerings.

    The choice of the protocol may also be a question of the energy to spend.

    I'm not sure, how many providers offer you eDRX (or similar energy saving modes) and how good they really work for TCP.

    I use CAT-NB, with CoAP/DTLS-1.2 CID and PSM, and for me the results are very promising. (But for sure, I do this now for a couple of years, I'm involved in the development of that stack, and so it may be not too surprising, that I also recommend that :-) ):  

Reply
  • > I would like to know what protocol use asset_tracker example to transmit to nrfcloud?

    Just mention:

    if you use CAT-M1 connectivity (availability/costs), MQTT/TLS is a choice.

    If you use CAT-NB, just the TLS handshake may take longer, than you want/expect.

    > I am trying with udp but have problems with that

    If you use "plain" UDP, then encryption and the data modelling is up to you. If you use CoAP/DTLS, then you may use some libraries, which do a lot for you. Since a short time, there are third-party cloud-service offerings for that (you may find at least one in this forum :-) ). Depending on the time you want to spend for implementation, there are also some open source offerings (e.g. coap/dtls in zephyr, or libcoap, and for the cloud may be Eclipse/Californium). Using these libraries requires, that you build your "service" on the top of them. LwM2M is additionally an option, you may find also commercial and open source offerings.

    The choice of the protocol may also be a question of the energy to spend.

    I'm not sure, how many providers offer you eDRX (or similar energy saving modes) and how good they really work for TCP.

    I use CAT-NB, with CoAP/DTLS-1.2 CID and PSM, and for me the results are very promising. (But for sure, I do this now for a couple of years, I'm involved in the development of that stack, and so it may be not too surprising, that I also recommend that :-) ):  

Children
No Data
Related