Skip to content

Commit

Permalink
api: Add cipher id to the MAC state
Browse files Browse the repository at this point in the history
  • Loading branch information
halimi committed Aug 28, 2024
1 parent ad8ea3b commit 62d74b5
Show file tree
Hide file tree
Showing 11 changed files with 795 additions and 698 deletions.
2 changes: 2 additions & 0 deletions api/ttn/lorawan/v3/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4362,6 +4362,7 @@ This is used internally by the Network Server.
| `last_adr_change_f_cnt_up` | [`uint32`](#uint32) | | Frame counter of uplink, which confirmed the last ADR parameter change. |
| `recent_mac_command_identifiers` | [`MACCommandIdentifier`](#ttn.lorawan.v3.MACCommandIdentifier) | repeated | MAC command identifiers sent by the end device in the last received uplink. The Network Server may choose to store only certain types of MAC command identifiers in the underlying implementation. |
| `pending_relay_downlink` | [`RelayForwardDownlinkReq`](#ttn.lorawan.v3.RelayForwardDownlinkReq) | | Pending relay downlink contents. The pending downlink will be scheduled to the relay in either Rx1 or Rx2. The pending downlink will be cleared after the scheduling attempt. |
| `cipher_id` | [`uint32`](#uint32) | | Used cipher suite for the device. |

#### Field Rules

Expand All @@ -4374,6 +4375,7 @@ This is used internally by the Network Server.
| `rejected_adr_data_rate_indexes` | <p>`repeated.max_items`: `15`</p><p>`repeated.items.enum.defined_only`: `true`</p> |
| `rejected_adr_tx_power_indexes` | <p>`repeated.max_items`: `15`</p><p>`repeated.items.uint32.lte`: `15`</p> |
| `rejected_frequencies` | <p>`repeated.items.uint64.gte`: `100000`</p> |
| `cipher_id` | <p>`uint32.lte`: `64`</p> |

### <a name="ttn.lorawan.v3.MACState.DataRateRange">Message `MACState.DataRateRange`</a>

Expand Down
5 changes: 5 additions & 0 deletions api/ttn/lorawan/v3/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -26088,6 +26088,11 @@
"pending_relay_downlink": {
"$ref": "#/definitions/v3RelayForwardDownlinkReq",
"description": "Pending relay downlink contents.\nThe pending downlink will be scheduled to the relay in either Rx1 or Rx2.\nThe pending downlink will be cleared after the scheduling attempt."
},
"cipher_id": {
"type": "integer",
"format": "int64",
"description": "Used cipher suite for the device."
}
},
"description": "MACState represents the state of MAC layer of the device.\nMACState is reset on each join for OTAA or ResetInd for ABP devices.\nThis is used internally by the Network Server."
Expand Down
3 changes: 3 additions & 0 deletions api/ttn/lorawan/v3/end_device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ message MACState {
// The pending downlink will be scheduled to the relay in either Rx1 or Rx2.
// The pending downlink will be cleared after the scheduling attempt.
RelayForwardDownlinkReq pending_relay_downlink = 24;

// Used cipher suite for the device.
uint32 cipher_id = 25 [(validate.rules).uint32.lte = 64];
}

// Power state of the device.
Expand Down
1,407 changes: 709 additions & 698 deletions pkg/ttnpb/end_device.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions pkg/ttnpb/end_device.pb.paths.fm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions pkg/ttnpb/end_device.pb.setters.fm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pkg/ttnpb/end_device.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions pkg/ttnpb/end_device_flags.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions pkg/ttnpb/end_device_json.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pkg/ttnpb/qrcodegenerator.pb.paths.fm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions sdk/js/generated/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -18943,6 +18943,26 @@
"isoneof": false,
"oneofdecl": "",
"defaultValue": ""
},
{
"name": "cipher_id",
"description": "Used cipher suite for the device.",
"label": "",
"type": "uint32",
"longType": "uint32",
"fullType": "uint32",
"ismap": false,
"isoneof": false,
"oneofdecl": "",
"defaultValue": "",
"options": {
"validate.rules": [
{
"name": "uint32.lte",
"value": 64
}
]
}
}
]
},
Expand Down

0 comments on commit 62d74b5

Please sign in to comment.