I am experimenting with Class B operation on the V3 servers. Should this be working?
So far I can place my device in Class B operation and receive beacons OK. Uplink packets reach the server. Downlink packets reach the device in Class A but not in Class B. (I generate a single byte payload on port 2 with the “Schedule Downlink” feature in the console.) AFAIK the server is not sending instructions to the gateway to transmit the packet to the device.
There seem to be (at least) two situations: (1) the message is apparently processed but does not reach the gateway (in fact, does not appear in the V3 console Gateway Live Data feed), and (2) the message is rejected (in the V3 Device Live Data feed) because “gateway time is not GPS synchronized” (AFAIK the GPS is working fine).
json messages for each of these cases follow.
Any comments on whether Class B is working, even in beta, and what might be required to make it work for me, would be much appreciated.
case (1) - this message appears in the “End devices” console, but AFAIK no equivalent message shows up in the corresponding “Gateway” console :
{
"name": "as.down.data.forward",
"time": "2021-03-23T07:06:33.407155207Z",
"identifiers": [
{
"device_ids": {
"device_id": "ww120-48-03",
"application_ids": {
"application_id": "wetawatcher-1"
}
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationDownlink",
"f_port": 2,
"frm_payload": "4A==",
"correlation_ids": [
"as:downlink:01F1EYG4HN5G4DC20XPM939J5P",
"rpc:/ttn.lorawan.v3.AppAs/DownlinkQueueReplace:93925844-9c24-4684-bb7b-f2812928aedd"
]
},
"correlation_ids": [
"as:downlink:01F1EYG4HN5G4DC20XPM939J5P",
"rpc:/ttn.lorawan.v3.AppAs/DownlinkQueueReplace:93925844-9c24-4684-bb7b-f2812928aedd"
],
"origin": "ip-10-102-15-15.ap-southeast-2.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"authentication": {
"type": "Bearer",
"token_type": "AccessToken",
"token_id": "NBYXVNEL2IST2MHNLW7WZVC7ZBW3F24HGM5G2CI"
},
"remote_ip": "118.148.81.24",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0",
"unique_id": "01F1EYG4HZJNWHYRYTQQFG8CAX"
}
case (2) - I get a failure message in the “End devices” console, despite the gateway having a decent GPS connection, and the beacons being transmitted from the gateway to the device:
{
"name": "ns.down.data.schedule.fail",
"time": "2021-03-23T06:55:02.859363285Z",
"identifiers": [
{
"device_ids": {
"device_id": "ww120-48-03",
"application_ids": {
"application_id": "wetawatcher-1"
},
"dev_eui": "0080E11500074803",
"join_eui": "70B3D57ED003C8D0",
"dev_addr": "260DA0B7"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/gatewayserver",
"name": "schedule",
"message_format": "failed to schedule",
"correlation_id": "2a2a080fcf164ca79f389dd19b8d99f0",
"code": 10,
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ScheduleDownlinkErrorDetails",
"path_errors": [
{
"namespace": "pkg/gatewayserver",
"name": "schedule_path",
"message_format": "failed to schedule on path `{gateway_uid}`",
"attributes": {
"gateway_uid": "acutetech-rak7244-for-v3@ttn"
},
"cause": {
"namespace": "pkg/gatewayserver/io",
"name": "tx_schedule",
"message_format": "failed to schedule",
"code": 10,
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ScheduleDownlinkErrorDetails",
"path_errors": [
{
"namespace": "pkg/gatewayserver/io",
"name": "rx_empty",
"message_format": "settings empty",
"code": 9
},
{
"namespace": "pkg/gatewayserver/io",
"name": "no_gps_sync",
"message_format": "gateway time is not GPS synchronized",
"code": 9
}
]
}
]
},
"code": 10,
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ScheduleDownlinkErrorDetails",
"path_errors": [
{
"namespace": "pkg/gatewayserver/io",
"name": "rx_empty",
"message_format": "settings empty",
"code": 9
},
{
"namespace": "pkg/gatewayserver/io",
"name": "no_gps_sync",
"message_format": "gateway time is not GPS synchronized",
"code": 9
}
]
}
]
}
]
}
]
},
"correlation_ids": [
"as:downlink:01F1EXV1Y3BTZ4GYRMVSWZ25YN",
"ns:downlink:01F1EXV269D4BS8N8Z4RNCSSE0",
"rpc:/ttn.lorawan.v3.AppAs/DownlinkQueueReplace:fa9d0aec-a20d-4c62-bdec-b6772d33f101"
],
"origin": "ip-10-102-7-115.ap-southeast-2.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"unique_id": "01F1EXV26B6W3G8B0ZK6WPAXJD"
}