-
Been debugging and the duty-cycle restriction slows down the iterations. Tried CFLAGS =-DDISABLE_LORAMAC_DUTYCYCLE make ..
and also adding CFLAGS +=-DISABLE...
on the program Makefile. Any suggestions to disable the restriction for faster debugging?
-
Got some outputs of a working join otaa
test:
Shell console:
[semtech-loramac] initializing loramac
main(): This is RIOT! (Version: 2021.04)
All up, running the shell now
> loramac set appeui
loramac set appeui
> loramac set deveui
loramac set deveui
> loramac set appkey
loramac set appkey
> loramac set dr 0
loramac set dr 0
> loramac set adr on
loramac set adr on
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MLME confirm event
[semtech-loramac] MLME confirm msg received
[semtech-loramac] join not successful
Join procedure failed!
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MLME confirm event
[semtech-loramac] MLME confirm msg received
[semtech-loramac] join not successful
Join procedure failed!
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac set tx_power 2
loramac set tx_power 2
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MLME confirm event
[semtech-loramac] MLME confirm msg received
[semtech-loramac] join not successful
Join procedure failed!
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] join otaa: duty cycle restricted
[semtech-loramac] join status msg received
Cannot join: dutycycle restriction
> loramac join otaa
loramac join otaa
[semtech-loramac] Starting join procedure: 0
[semtech-loramac] loramac cmd msg
[semtech-loramac] starting OTAA join
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MLME confirm event
[semtech-loramac] MLME confirm msg received
[semtech-loramac] join succeeded
Join procedure succeeded!
> loramac tx RIOTOS
loramac tx RIOTOS
[semtech-loramac] loramac cmd msg
[semtech-loramac] send frame RIOTOS
[semtech-loramac] MCPS request: confirmed TX
[semtech-loramac] MCPS request: OK
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] RX timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] Transmission completed
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MAC timer timeout
[semtech-loramac] MCPS confirm event
[semtech-loramac] MCPS indication event
[semtech-loramac] MCPS confirm msg received
[semtech-loramac] MCPS confirm event OK
[semtech-loramac] MCPS confirm event: CONFIRMED
[semtech-loramac] forward TX status to sender thread
[semtech-loramac] MCPS indication msg received
[semtech-loramac] MCPS indication Unconfirmed
[semtech-loramac] MCPS indication: ACK received
[semtech-loramac] received something
Received ACK from network
Message sent with success
Along TTN gateway logs:
"name": "as.up.data.forward",
"time": "2021-05-24T20:40:21.790171104Z",
"identifiers": [
{
"device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
}
}
},
{
"device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
},
"dev_eui": "00E3835063728DBE",
"join_eui": "70B3D57ED0040CCE",
"dev_addr": "260D4EE9"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationUp",
"end_device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
},
"dev_eui": "00E3835063728DBE",
"join_eui": "70B3D57ED0040CCE",
"dev_addr": "260D4EE9"
},
"correlation_ids": [
"as:up:01F6G1PT8HGHXZC2TMX6W9NYHV",
"gs:conn:01F6FQKSYH761Q2D5B7VVG9TB8",
"gs:up:host:01F6FQKT6QH0RBDK1KRH9WW5R2",
"gs:uplink:01F6G1PT22RSXH82YP20YEBR8N",
"ns:uplink:01F6G1PT237Q898YMH4ES4NPJY",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01F6G1PT232EM87XYYWJBDTW21",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01F6G1PT8GW68KMK2YR0R1N511"
],
"received_at": "2021-05-24T20:40:21.522586291Z",
"uplink_message": {
"session_key_id": "AXmgGv35tXWvYQ1ANbVd1Q==",
"f_port": 2,
"frm_payload": "UklPVA==",
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "clevertek-wan",
"eui": "A84041FFFF1BB6D8"
},
"time": "2021-05-24T20:40:21.130653Z",
"timestamp": 1997968452,
"rssi": -105,
"channel_rssi": -105,
"snr": 5,
"uplink_token": "ChsKGQoNY2xldmVydGVrLXdhbhIIqEBB//8bttgQxKjauAcaDAi1nrCFBhCW2tSVASCg08yBk7QC",
"channel_index": 3
}
],
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 12
}
},
"coding_rate": "4/5",
"frequency": "917400000",
"timestamp": 1997968452,
"time": "2021-05-24T20:40:21.130653Z"
},
"received_at": "2021-05-24T20:40:21.315511484Z",
"confirmed": true,
"consumed_airtime": "1.318912s"
}
},
"correlation_ids": [
"as:up:01F6G1PT8HGHXZC2TMX6W9NYHV",
"gs:conn:01F6FQKSYH761Q2D5B7VVG9TB8",
"gs:up:host:01F6FQKT6QH0RBDK1KRH9WW5R2",
"gs:uplink:01F6G1PT22RSXH82YP20YEBR8N",
"ns:uplink:01F6G1PT237Q898YMH4ES4NPJY",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01F6G1PT232EM87XYYWJBDTW21",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01F6G1PT8GW68KMK2YR0R1N511"
],
"origin": "ip-10-102-13-255.ap-southeast-2.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ",
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"unique_id": "01F6G1PTGYYC7GH84087J283R2"
}
{
"name": "as.up.data.forward",
"time": "2021-05-24T20:40:37.022575614Z",
"identifiers": [
{
"device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
}
}
},
{
"device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
},
"dev_eui": "00E3835063728DBE",
"join_eui": "70B3D57ED0040CCE",
"dev_addr": "260D4EE9"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationUp",
"end_device_ids": {
"device_id": "clevertek-endnode",
"application_ids": {
"application_id": "clevertek"
},
"dev_eui": "00E3835063728DBE",
"join_eui": "70B3D57ED0040CCE",
"dev_addr": "260D4EE9"
},
"correlation_ids": [
"as:up:01F6G1Q9CKNFA5RFNGN87V2QG4",
"gs:conn:01F6FQKSYH761Q2D5B7VVG9TB8",
"gs:up:host:01F6FQKT6QH0RBDK1KRH9WW5R2",
"gs:uplink:01F6G1Q9545Z28S78W896905PB",
"ns:uplink:01F6G1Q963Y4FMA9EQNAG0HJ0X",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01F6G1Q963BW8KG8AWM93D5FPX",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01F6G1Q9CKEJ5PYN7XVZ4CAHVC"
],
"received_at": "2021-05-24T20:40:37.018954718Z",
"uplink_message": {
"session_key_id": "AXmgGv35tXWvYQ1ANbVd1Q==",
"f_port": 2,
"f_cnt": 1,
"frm_payload": "UklPVCE=",
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "clevertek-wan",
"eui": "A84041FFFF1BB6D8"
},
"time": "2021-05-24T20:40:36.593554Z",
"timestamp": 2013428804,
"rssi": -43,
"channel_rssi": -43,
"snr": 11.2,
"uplink_token": "ChsKGQoNY2xldmVydGVrLXdhbhIIqEBB//8bttgQxPiJwAcaDAjEnrCFBhCitIvwAiCg09XNzLQC",
"channel_index": 4
}
],
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 12
}
},
"coding_rate": "4/5",
"frequency": "917600000",
"timestamp": 2013428804,
"time": "2021-05-24T20:40:36.593554Z"
},
"received_at": "2021-05-24T20:40:36.803231266Z",
"confirmed": true,
"consumed_airtime": "1.482752s"
}
},
"correlation_ids": [
"as:up:01F6G1Q9CKNFA5RFNGN87V2QG4",
"gs:conn:01F6FQKSYH761Q2D5B7VVG9TB8",
"gs:up:host:01F6FQKT6QH0RBDK1KRH9WW5R2",
"gs:uplink:01F6G1Q9545Z28S78W896905PB",
"ns:uplink:01F6G1Q963Y4FMA9EQNAG0HJ0X",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01F6G1Q963BW8KG8AWM93D5FPX",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01F6G1Q9CKEJ5PYN7XVZ4CAHVC"
],
"origin": "ip-10-102-13-255.ap-southeast-2.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ",
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"unique_id": "01F6G1Q9CYWCMGYZGP15BM3AD5"
}
Greetings.