Skip to content

Commit

Permalink
Added DeviceTimeReq certification protocol handling to ClassA and Cla…
Browse files Browse the repository at this point in the history
…ssC examples.
  • Loading branch information
mluis1 committed Jul 16, 2019
1 parent 49edc04 commit b5d7ff0
Show file tree
Hide file tree
Showing 18 changed files with 198 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/B-L072Z-LRWAN1/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/NAMote72/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/NucleoL073/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/NucleoL152/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/NucleoL476/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/SAML21/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/SKiM880B/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/SKiM881AXL/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classA/SKiM980A/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/B-L072Z-LRWAN1/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/NAMote72/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/NucleoL073/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/NucleoL152/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/NucleoL476/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/SAML21/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/SKiM880B/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/SKiM881AXL/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down
11 changes: 11 additions & 0 deletions src/apps/LoRaMac/classC/SKiM980A/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,17 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
ComplianceTest.State = 1;
}
break;
case 8: // Send DeviceTimeReq
{
MlmeReq_t mlmeReq;

mlmeReq.Type = MLME_DEVICE_TIME;

LoRaMacStatus_t status = LoRaMacMlmeRequest( &mlmeReq );
printf( "\r\n###### ===== MLME-Request - MLME_DEVICE_TIME ==== ######\r\n" );
printf( "STATUS : %s\r\n", MacStatusStrings[status] );
}
break;
default:
break;
}
Expand Down

0 comments on commit b5d7ff0

Please sign in to comment.