This topic has 3 replies, 3 voices, and was last updated 1 week, 2 days ago by ukcreatix9. This post has been viewed 401 times

  • Author
    Posts
  • #786
     halftan
    Participant

    Hei, har litt trøbbel med å få min “Arduino MKR NB 1500″ til å funke.

    Er det mulig at noen har et tips? 🙂

    (( Kanskje kunne koden her https://github.com/TelenorStartIoT/arduino-dev-kit-coap været litt bedre kommentert, gitt at dette er FoU -software? 🙂 ))

    AT
    00:15:14.550 -> OK
    00:15:14.550 -> AT
    00:15:14.550 -> OK
    00:15:14.550 -> done.
    00:15:14.550 -> Disconnecting from network…AT
    00:15:14.583 -> OK
    00:15:14.583 -> done.
    00:15:14.583 -> Setting Radio Access Technology to NB-IoT or LTE-M (7 is for LTE-M and 8 is for NB-IoT)…AT+COPS=2
    00:15:14.616 -> OK
    00:15:14.616 -> done.
    00:15:14.616 -> Applying changes and saving configuration…AT+URAT=8
    00:15:15.644 -> OK
    00:15:15.644 -> AT+CFUN=15
    00:15:15.644 -> OK
    00:15:15.644 -> done.
    00:15:15.644 -> Modem ready, turn radio on in order to configure it…done.
    00:15:17.668 -> Check attachment until CSQ RSSI indicator is less than 99…done.
    00:15:20.654 -> Set operator to Telenor…AT+COPS=1,2,”24201″ done.
    00:15:24.668 ->
    00:15:24.668 -> OK
    00:15:26.658 -> Attempting to connect to the cellular network…AT
    00:15:26.758 -> OK
    00:15:26.891 -> AT+CMEE=0
    00:15:26.891 -> OK
    00:15:27.090 -> AT+CFUN=0
    00:15:29.279 -> OK
    00:15:29.478 -> AT+CPIN?
    00:15:29.478 -> +CPIN: READY
    00:15:29.478 ->
    00:15:29.478 -> OK
    00:15:29.678 -> AT+CMGF=1
    00:15:29.678 -> OK
    00:15:29.877 -> AT+UDCONF=1,1
    00:15:29.877 -> OK
    00:15:30.076 -> AT+CTZU=1
    00:15:30.076 -> OK
    00:15:30.308 -> AT+CGDCONT=1,”IP”,”telenor.iotgw”
    00:15:30.308 -> OK
    00:15:30.507 -> AT+UAUTHREQ=1,0
    00:15:30.507 -> OK
    00:15:30.706 -> AT+CFUN=1
    00:15:30.706 -> OK
    00:15:30.905 -> AT+CEREG?
    00:15:30.905 -> +CEREG: 0,0
    00:15:30.905 ->
    00:15:30.905 -> OK
    00:15:31.104 -> AT+CEREG?
    00:15:31.104 -> +CEREG: 0,0
    00:15:31.104 ->
    00:15:31.104 -> OK
    00:15:31.303 -> AT+CEREG?
    00:15:31.303 -> +CEREG: 0,0
    00:15:31.303 ->
    00:15:31.303 -> OK
    00:15:31.502 -> AT+CEREG?
    00:15:31.502 -> +CEREG: 0,0
    00:15:31.502 ->
    00:15:31.502 -> OK
    00:15:31.702 -> AT+CEREG?
    00:15:31.702 -> +CEREG: 0,0
    00:15:31.702 ->
    00:15:31.702 -> OK
    00:15:31.901 -> AT+CEREG?
    00:15:31.901 -> +CEREG: 0,0
    00:15:31.901 ->
    00:15:31.901 -> OK
    00:15:32.100 -> AT+CEREG?
    00:15:32.100 -> +CEREG: 0,0
    00:15:32.100 ->
    00:15:32.100 -> OK
    00:15:32.299 -> AT+CEREG?
    00:15:32.332 -> +CEREG: 0,0
    00:15:32.332 ->
    00:15:32.332 -> OK
    00:15:32.531 -> AT+CEREG?
    00:15:32.531 -> +CEREG: 0,0
    00:15:32.531 ->
    00:15:32.531 -> OK
    00:15:32.730 -> AT+CEREG?
    00:15:32.730 -> +CEREG: 0,0
    00:15:32.730 ->
    00:15:32.730 -> OK
    00:15:32.929 -> AT+CEREG?
    00:15:32.929 -> +CEREG: 0,0
    00:15:32.929 ->
    00:15:32.929 -> OK
    00:15:33.128 -> AT+CEREG?
    00:15:33.128 -> +CEREG: 0,0
    00:15:33.128 ->
    00:15:33.128 -> OK
    00:15:33.327 -> AT+CEREG?
    00:15:33.327 -> +CEREG: 0,0
    00:15:33.327 ->
    00:15:33.327 -> OK
    00:15:33.526 -> AT+CEREG?
    00:15:33.526 -> +CEREG: 0,0
    00:15:33.526 ->
    00:15:33.526 -> OK
    00:15:33.725 -> AT+CEREG?
    00:15:33.725 -> +CEREG: 0,0
    00:15:33.725 ->
    00:15:33.725 -> OK
    00:15:33.924 -> AT+CEREG?
    00:15:33.924 -> +CEREG: 0,0
    00:15:33.924 ->
    00:15:33.924 -> OK
    00:15:34.123 -> AT+CEREG?
    00:15:34.123 -> +CEREG: 0,0
    00:15:34.123 ->
    00:15:34.123 -> OK
    00:15:34.322 -> AT+CEREG?
    00:15:34.322 -> +CEREG: 0,0
    00:15:34.322 ->
    00:15:34.322 -> OK
    00:15:34.521 -> AT+CEREG?
    00:15:34.521 -> +CEREG: 0,0
    00:15:34.521 ->
    00:15:34.521 -> OK
    00:15:34.754 -> AT+CEREG?
    00:15:34.754 -> +CEREG: 0,0
    00:15:34.754 ->
    00:15:34.754 -> OK
    00:15:34.953 -> AT+CEREG?
    00:15:34.953 -> +CEREG: 0,0
    00:15:34.953 ->
    00:15:34.953 -> OK
    00:15:35.152 -> AT+CEREG?
    00:15:35.152 -> +CEREG: 0,0
    00:15:35.152 ->
    00:15:35.152 -> OK
    00:15:35.351 -> AT+CEREG?
    00:15:35.351 -> +CEREG: 0,0
    00:15:35.351 ->
    00:15:35.351 -> OK
    00:15:35.550 -> AT+CEREG?
    00:15:35.550 -> +CEREG: 0,0
    00:15:35.550 ->
    00:15:35.550 -> OK
    00:15:35.749 -> AT+CEREG?
    00:15:35.749 -> +CEREG: 0,0
    00:15:35.749 ->
    00:15:35.749 -> OK
    00:15:35.948 -> AT+CEREG?
    00:15:35.948 -> +CEREG: 0,0
    00:15:35.948 ->
    00:15:35.948 -> OK
    00:15:36.148 -> AT+CEREG?
    00:15:36.148 -> +CEREG: 0,0
    00:15:36.148 ->
    00:15:36.148 -> OK
    00:15:36.347 -> AT+CEREG?
    00:15:36.347 -> +CEREG: 0,0
    00:15:36.347 ->
    00:15:36.347 -> OK
    00:15:36.546 -> AT+CEREG?
    00:15:36.546 -> +CEREG: 0,0
    00:15:36.546 ->
    00:15:36.546 -> OK
    00:15:36.745 -> AT+CEREG?
    00:15:36.745 -> +CEREG: 0,0
    00:15:36.745 ->
    00:15:36.745 -> OK
    00:15:36.977 -> AT+CEREG?
    00:15:36.977 -> +CEREG: 0,0
    00:15:36.977 ->
    00:15:36.977 -> OK
    00:15:37.176 -> AT+CEREG?
    00:15:37.176 -> +CEREG: 0,0
    00:15:37.176 ->
    00:15:37.176 -> OK
    00:15:37.375 -> AT+CEREG?
    00:15:37.375 -> +CEREG: 0,0
    00:15:37.375 ->
    00:15:37.375 -> OK
    00:15:37.574 -> AT+CEREG?
    00:15:37.574 -> +CEREG: 0,0
    00:15:37.574 ->
    00:15:37.574 -> OK
    00:15:37.774 -> AT+CEREG?
    00:15:37.774 -> +CEREG: 0,0
    00:15:37.774 ->
    00:15:37.774 -> OK
    00:15:37.973 -> AT+CEREG?
    00:15:37.973 -> +CEREG: 0,0
    00:15:37.973 ->
    00:15:37.973 -> OK
    00:15:38.172 -> AT+CEREG?
    00:15:38.172 -> +CEREG: 0,0
    00:15:38.172 ->
    00:15:38.172 -> OK
    00:15:38.371 -> AT+CEREG?
    00:15:38.371 -> +CEREG: 0,0
    00:15:38.371 ->
    00:15:38.371 -> OK
    00:15:38.570 -> AT+CEREG?
    00:15:38.570 -> +CEREG: 0,0
    00:15:38.570 ->
    00:15:38.570 -> OK
    00:15:38.769 -> AT+CEREG?
    00:15:38.769 -> +CEREG: 0,0
    00:15:38.769 ->
    00:15:38.769 -> OK
    00:15:38.968 -> AT+CEREG?
    00:15:38.968 -> +CEREG: 0,0
    00:15:38.968 ->
    00:15:38.968 -> OK
    00:15:39.167 -> AT+CEREG?
    00:15:39.167 -> +CEREG: 0,0
    00:15:39.167 ->
    00:15:39.167 -> OK
    00:15:39.400 -> AT+CEREG?
    00:15:39.400 -> +CEREG: 0,0
    00:15:39.400 ->
    00:15:39.400 -> OK
    00:15:39.599 -> AT+CEREG?
    00:15:39.599 -> +CEREG: 0,0
    00:15:39.599 ->
    00:15:39.599 -> OK
    00:15:39.798 -> AT+CEREG?
    00:15:39.798 -> +CEREG: 0,0
    00:15:39.798 ->
    00:15:39.798 -> OK
    00:15:39.997 -> AT+CEREG?
    00:15:39.997 -> +CEREG: 0,0
    00:15:39.997 ->
    00:15:39.997 -> OK
    00:15:40.196 -> AT+CEREG?
    00:15:40.196 -> +CEREG: 0,0
    00:15:40.196 ->
    00:15:40.196 -> OK
    00:15:40.395 -> AT+CEREG?
    00:15:40.395 -> +CEREG: 0,0
    00:15:40.395 ->
    00:15:40.395 -> OK
    00:15:40.594 -> AT+CEREG?
    00:15:40.594 -> +CEREG: 0,0
    00:15:40.594 ->
    00:15:40.594 -> OK
    00:15:40.793 -> AT+CEREG?
    00:15:40.793 -> +CEREG: 0,0
    00:15:40.793 ->
    00:15:40.793 -> OK
    00:15:40.992 -> AT+CEREG?
    00:15:40.992 -> +CEREG: 0,0
    00:15:40.992 ->
    00:15:40.992 -> OK
    00:15:41.191 -> AT+CEREG?
    00:15:41.191 -> +CEREG: 0,0
    00:15:41.191 ->
    00:15:41.191 -> OK
    00:15:41.390 -> AT+CEREG?
    00:15:41.390 -> +CEREG: 0,0
    00:15:41.390 ->
    00:15:41.390 -> OK
    00:15:41.622 -> AT+CEREG?
    00:15:41.622 -> +CEREG: 0,0
    00:15:41.622 ->
    00:15:41.622 -> OK
    00:15:41.822 -> AT+CEREG?
    00:15:41.822 -> +CEREG: 0,1
    00:15:41.822 ->
    00:15:41.822 -> OK
    00:15:42.319 -> AT+CGATT=1
    00:15:42.319 -> OK
    00:15:43.348 -> AT+CGACT?
    00:15:43.348 -> +CGACT: 1,1
    00:15:43.348 ->
    00:15:43.348 -> OK
    00:15:43.348 -> done.
    00:15:43.348 -> Send packet to Telenor MIC…AT+USOST=-1,”0.0.0.0″,0,0,””
    00:15:43.381 -> ERROR
    00:15:43.381 -> done.
    00:15:43.381 -> Wait 10s before sending again…
    00:15:53.366 -> Send packet to Telenor MIC…AT+USOST=-1,”0.0.0.0″,0,0,””
    00:15:53.366 -> ERROR
    00:15:53.366 -> done.
    00:15:53.366 -> Wait 10s before sending again…

    #787
     Pontus
    Keymaster

    Hei!

    Jeg ser fra denne linjen at IP-adressen til IoT Gateway ikke er satt riktig av noen grunn: Send packet to Telenor MIC…AT+USOST=-1,”0.0.0.0″,0,0,””
    Der det står 0.0.0.0 skal det stå 172.16.32.1.

    Du kan prøve å endre på denne linjen: https://github.com/TelenorStartIoT/arduino-dev-kit-coap/blob/master/main.ino#L30
    Bytt ut til dette: IPAddress iotgw_ip(172, 16, 32, 1);

    Gi gjerne beskjed om det virket så skal vi se om vi får fikset eksempelkoden 🙂

    Summary in english:

    It looks like the IoT Gateway IP-address wasn’t defined correctly. Suggested solution is to create the IP-address object like this IPAddress iotgw_ip(172, 16, 32, 1); instead of using a #define from arduino_secrets.h.

    #792
     Pontus
    Keymaster

    Update:

    The example code on GitHub has been updated: https://github.com/TelenorStartIoT/arduino-dev-kit-coap/pull/3
    Thanks halftan for the quick fix! The issue seems to be that the UDP-object wasn’t initialized properly before starting the CoAP client.

    #1038
     ukcreatix9
    Participant

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

© 2020 Telenor Start IoT
 

Log in with your credentials

Forgot your details?