1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
|
/* packet-llrp.c
* Routines for Low Level Reader Protocol dissection
* Copyright 2012, Evan Huus <eapache@gmail.com>
* Copyright 2012, Martin Kupec <martin.kupec@kupson.cz>
* Copyright 2014, Petr Stetiar <petr.stetiar@gaben.cz>
*
* http://www.gs1.org/gsmp/kc/epcglobal/llrp
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/expert.h>
#include "packet-tcp.h"
void proto_register_llrp(void);
void proto_reg_handoff_llrp(void);
static dissector_handle_t llrp_handle;
#define LLRP_PORT 5084
/* Initialize the protocol and registered fields */
static int proto_llrp;
static int hf_llrp_version;
static int hf_llrp_type;
static int hf_llrp_length;
static int hf_llrp_id;
static int hf_llrp_cur_ver;
static int hf_llrp_sup_ver;
static int hf_llrp_req_cap;
static int hf_llrp_req_conf;
static int hf_llrp_rospec;
static int hf_llrp_antenna_id;
static int hf_llrp_gpi_port;
static int hf_llrp_gpo_port;
static int hf_llrp_rest_fact;
static int hf_llrp_accessspec;
static int hf_llrp_vendor;
static int hf_llrp_impinj_msg_type;
static int hf_llrp_tlv_type;
static int hf_llrp_tv_type;
static int hf_llrp_tlv_len;
static int hf_llrp_param;
static int hf_llrp_num_gpi;
static int hf_llrp_num_gpo;
static int hf_llrp_microseconds;
static int hf_llrp_max_supported_antenna;
static int hf_llrp_can_set_antenna_prop;
static int hf_llrp_has_utc_clock;
static int hf_llrp_device_manufacturer;
static int hf_llrp_model;
static int hf_llrp_firmware_version;
static int hf_llrp_max_receive_sense;
static int hf_llrp_index;
static int hf_llrp_receive_sense;
static int hf_llrp_receive_sense_index_min;
static int hf_llrp_receive_sense_index_max;
static int hf_llrp_num_protocols;
static int hf_llrp_protocol_id;
static int hf_llrp_can_do_survey;
static int hf_llrp_can_report_buffer_warning;
static int hf_llrp_support_client_opspec;
static int hf_llrp_can_stateaware;
static int hf_llrp_support_holding;
static int hf_llrp_max_priority_supported;
static int hf_llrp_client_opspec_timeout;
static int hf_llrp_max_num_rospec;
static int hf_llrp_max_num_spec_per_rospec;
static int hf_llrp_max_num_inventory_per_aispec;
static int hf_llrp_max_num_accessspec;
static int hf_llrp_max_num_opspec_per_accressspec;
static int hf_llrp_country_code;
static int hf_llrp_comm_standard;
static int hf_llrp_transmit_power;
static int hf_llrp_hopping;
static int hf_llrp_hop_table_id;
static int hf_llrp_rfu;
static int hf_llrp_num_hops;
static int hf_llrp_frequency;
static int hf_llrp_num_freqs;
static int hf_llrp_min_freq;
static int hf_llrp_max_freq;
static int hf_llrp_rospec_id;
static int hf_llrp_priority;
static int hf_llrp_cur_state;
static int hf_llrp_rospec_start_trig_type;
static int hf_llrp_offset;
static int hf_llrp_period;
static int hf_llrp_gpi_event;
static int hf_llrp_timeout;
static int hf_llrp_rospec_stop_trig_type;
static int hf_llrp_duration_trig;
static int hf_llrp_antenna_count;
static int hf_llrp_antenna;
static int hf_llrp_aispec_stop_trig_type;
static int hf_llrp_trig_type;
static int hf_llrp_number_of_tags;
static int hf_llrp_number_of_attempts;
static int hf_llrp_t;
static int hf_llrp_inventory_spec_id;
static int hf_llrp_start_freq;
static int hf_llrp_stop_freq;
static int hf_llrp_stop_trig_type;
static int hf_llrp_n_4;
static int hf_llrp_duration;
static int hf_llrp_accessspec_id;
static int hf_llrp_access_cur_state;
static int hf_llrp_access_stop_trig_type;
static int hf_llrp_operation_count;
static int hf_llrp_opspec_id;
static int hf_llrp_conf_value;
static int hf_llrp_id_type;
static int hf_llrp_reader_id;
static int hf_llrp_gpo_data;
static int hf_llrp_keepalive_trig_type;
static int hf_llrp_time_iterval;
static int hf_llrp_antenna_connected;
static int hf_llrp_antenna_gain;
static int hf_llrp_receiver_sense;
static int hf_llrp_channel_idx;
static int hf_llrp_gpi_config;
static int hf_llrp_gpi_state;
static int hf_llrp_hold_events_and_reports;
static int hf_llrp_ro_report_trig;
static int hf_llrp_n_2;
static int hf_llrp_enable_rospec_id;
static int hf_llrp_enable_spec_idx;
static int hf_llrp_enable_inv_spec_id;
static int hf_llrp_enable_antenna_id;
static int hf_llrp_enable_channel_idx;
static int hf_llrp_enable_peak_rssi;
static int hf_llrp_enable_first_seen;
static int hf_llrp_enable_last_seen;
static int hf_llrp_enable_seen_count;
static int hf_llrp_enable_accessspec_id;
static int hf_llrp_access_report_trig;
static int hf_llrp_length_bits;
static int hf_llrp_epc;
static int hf_llrp_spec_idx;
static int hf_llrp_peak_rssi;
static int hf_llrp_tag_count;
static int hf_llrp_bandwidth;
static int hf_llrp_average_rssi;
static int hf_llrp_notif_state;
static int hf_llrp_event_type;
static int hf_llrp_next_chan_idx;
static int hf_llrp_roevent_type;
static int hf_llrp_prem_rospec_id;
static int hf_llrp_buffer_full_percentage;
static int hf_llrp_message;
static int hf_llrp_rfevent_type;
static int hf_llrp_aievent_type;
static int hf_llrp_antenna_event_type;
static int hf_llrp_conn_status;
static int hf_llrp_loop_count;
static int hf_llrp_status_code;
static int hf_llrp_error_desc;
static int hf_llrp_field_num;
static int hf_llrp_error_code;
static int hf_llrp_parameter_type;
static int hf_llrp_can_support_block_erase;
static int hf_llrp_can_support_block_write;
static int hf_llrp_can_support_block_permalock;
static int hf_llrp_can_support_tag_recomm;
static int hf_llrp_can_support_UMI_method2;
static int hf_llrp_can_support_XPC;
static int hf_llrp_max_num_filter_per_query;
static int hf_llrp_mode_ident;
static int hf_llrp_DR;
static int hf_llrp_hag_conformance;
static int hf_llrp_mod;
static int hf_llrp_flm;
static int hf_llrp_m;
static int hf_llrp_bdr;
static int hf_llrp_pie;
static int hf_llrp_min_tari;
static int hf_llrp_max_tari;
static int hf_llrp_step_tari;
static int hf_llrp_inventory_state_aware;
static int hf_llrp_trunc;
static int hf_llrp_mb;
static int hf_llrp_pointer;
static int hf_llrp_tag_mask;
static int hf_llrp_aware_filter_target;
static int hf_llrp_aware_filter_action;
static int hf_llrp_unaware_filter_action;
static int hf_llrp_mode_idx;
static int hf_llrp_tari;
static int hf_llrp_session;
static int hf_llrp_tag_population;
static int hf_llrp_tag_transit_time;
static int hf_llrp_sing_i;
static int hf_llrp_sing_s;
static int hf_llrp_sing_a;
static int hf_llrp_match;
static int hf_llrp_tag_data;
static int hf_llrp_access_pass;
static int hf_llrp_word_pointer;
static int hf_llrp_word_count;
static int hf_llrp_write_data;
static int hf_llrp_kill_pass;
static int hf_llrp_kill_3;
static int hf_llrp_kill_2;
static int hf_llrp_kill_l;
static int hf_llrp_privilege;
static int hf_llrp_data_field;
static int hf_llrp_block_pointer;
static int hf_llrp_block_mask;
static int hf_llrp_length_words;
static int hf_llrp_block_range;
static int hf_llrp_enable_crc;
static int hf_llrp_enable_pc;
static int hf_llrp_enable_xpc;
static int hf_llrp_pc_bits;
static int hf_llrp_xpc_w1;
static int hf_llrp_xpc_w2;
static int hf_llrp_crc;
static int hf_llrp_num_coll;
static int hf_llrp_num_empty;
static int hf_llrp_access_result;
static int hf_llrp_read_data;
static int hf_llrp_num_words_written;
static int hf_llrp_permlock_status;
static int hf_llrp_vendor_id;
static int hf_llrp_vendor_unknown;
static int hf_llrp_impinj_param_type;
static int hf_llrp_save_config;
static int hf_llrp_impinj_req_data;
static int hf_llrp_impinj_reg_region;
static int hf_llrp_impinj_search_mode;
static int hf_llrp_impinj_en_tag_dir;
static int hf_llrp_impinj_antenna_conf;
static int hf_llrp_decision_time;
static int hf_llrp_impinj_tag_dir;
static int hf_llrp_confidence;
static int hf_llrp_impinj_fix_freq_mode;
static int hf_llrp_num_channels;
static int hf_llrp_channel;
static int hf_llrp_impinj_reduce_power_mode;
static int hf_llrp_impinj_low_duty_mode;
static int hf_llrp_empty_field_timeout;
static int hf_llrp_field_ping_interval;
static int hf_llrp_model_name;
static int hf_llrp_serial_number;
static int hf_llrp_soft_ver;
static int hf_llrp_firm_ver;
static int hf_llrp_fpga_ver;
static int hf_llrp_pcba_ver;
static int hf_llrp_height_thresh;
static int hf_llrp_zero_motion_thresh;
static int hf_llrp_board_manufacturer;
static int hf_llrp_fw_ver_hex;
static int hf_llrp_hw_ver_hex;
static int hf_llrp_gpi_debounce;
static int hf_llrp_temperature;
static int hf_llrp_impinj_link_monitor_mode;
static int hf_llrp_link_down_thresh;
static int hf_llrp_impinj_report_buff_mode;
static int hf_llrp_permalock_result;
static int hf_llrp_block_permalock_result;
static int hf_llrp_impinj_data_profile;
static int hf_llrp_impinj_access_range;
static int hf_llrp_impinj_persistence;
static int hf_llrp_set_qt_config_result;
static int hf_llrp_get_qt_config_result;
static int hf_llrp_impinj_serialized_tid_mode;
static int hf_llrp_impinj_rf_phase_mode;
static int hf_llrp_impinj_peak_rssi_mode;
static int hf_llrp_impinj_gps_coordinates_mode;
static int hf_llrp_impinj_tid;
static int hf_llrp_phase_angle;
static int hf_llrp_rssi;
static int hf_llrp_latitude;
static int hf_llrp_longitude;
static int hf_llrp_gga_sentence;
static int hf_llrp_rmc_sentence;
static int hf_llrp_impinj_optim_read_mode;
static int hf_llrp_impinj_rf_doppler_mode;
static int hf_llrp_retry_count;
static int hf_llrp_impinj_access_spec_ordering;
static int hf_llrp_impinj_gpo_mode;
static int hf_llrp_gpo_pulse_dur;
static int hf_llrp_impinj_hub_id;
static int hf_llrp_impinj_hub_fault_type;
static int hf_llrp_impinj_hub_connected_type;
/* Initialize the subtree pointers */
static int ett_llrp;
static int ett_llrp_param;
static expert_field ei_llrp_req_conf;
static expert_field ei_llrp_invalid_length;
/* Message Types */
#define LLRP_TYPE_GET_READER_CAPABILITIES 1
#define LLRP_TYPE_GET_READER_CONFIG 2
#define LLRP_TYPE_SET_READER_CONFIG 3
#define LLRP_TYPE_CLOSE_CONNECTION_RESPONSE 4
#define LLRP_TYPE_GET_READER_CAPABILITIES_RESPONSE 11
#define LLRP_TYPE_GET_READER_CONFIG_RESPONSE 12
#define LLRP_TYPE_SET_READER_CONFIG_RESPONSE 13
#define LLRP_TYPE_CLOSE_CONNECTION 14
#define LLRP_TYPE_ADD_ROSPEC 20
#define LLRP_TYPE_DELETE_ROSPEC 21
#define LLRP_TYPE_START_ROSPEC 22
#define LLRP_TYPE_STOP_ROSPEC 23
#define LLRP_TYPE_ENABLE_ROSPEC 24
#define LLRP_TYPE_DISABLE_ROSPEC 25
#define LLRP_TYPE_GET_ROSPECS 26
#define LLRP_TYPE_ADD_ROSPEC_RESPONSE 30
#define LLRP_TYPE_DELETE_ROSPEC_RESPONSE 31
#define LLRP_TYPE_START_ROSPEC_RESPONSE 32
#define LLRP_TYPE_STOP_ROSPEC_RESPONSE 33
#define LLRP_TYPE_ENABLE_ROSPEC_RESPONSE 34
#define LLRP_TYPE_DISABLE_ROSPEC_RESPONSE 35
#define LLRP_TYPE_GET_ROSPECS_RESPONSE 36
#define LLRP_TYPE_ADD_ACCESSSPEC 40
#define LLRP_TYPE_DELETE_ACCESSSPEC 41
#define LLRP_TYPE_ENABLE_ACCESSSPEC 42
#define LLRP_TYPE_DISABLE_ACCESSSPEC 43
#define LLRP_TYPE_GET_ACCESSSPECS 44
#define LLRP_TYPE_CLIENT_REQUEST_OP 45
#define LLRP_TYPE_GET_SUPPORTED_VERSION 46
#define LLRP_TYPE_SET_PROTOCOL_VERSION 47
#define LLRP_TYPE_ADD_ACCESSSPEC_RESPONSE 50
#define LLRP_TYPE_DELETE_ACCESSSPEC_RESPONSE 51
#define LLRP_TYPE_ENABLE_ACCESSSPEC_RESPONSE 52
#define LLRP_TYPE_DISABLE_ACCESSSPEC_RESPONSE 53
#define LLRP_TYPE_GET_ACCESSSPECS_RESPONSE 54
#define LLRP_TYPE_CLIENT_RESQUEST_OP_RESPONSE 55
#define LLRP_TYPE_GET_SUPPORTED_VERSION_RESPONSE 56
#define LLRP_TYPE_SET_PROTOCOL_VERSION_RESPONSE 57
#define LLRP_TYPE_GET_REPORT 60
#define LLRP_TYPE_RO_ACCESS_REPORT 61
#define LLRP_TYPE_KEEPALIVE 62
#define LLRP_TYPE_READER_EVENT_NOTIFICATION 63
#define LLRP_TYPE_ENABLE_EVENTS_AND_REPORTS 64
#define LLRP_TYPE_KEEPALIVE_ACK 72
#define LLRP_TYPE_ERROR_MESSAGE 100
#define LLRP_TYPE_CUSTOM_MESSAGE 1023
static const value_string message_types[] = {
{ LLRP_TYPE_GET_READER_CAPABILITIES, "Get Reader Capabilities" },
{ LLRP_TYPE_GET_READER_CONFIG, "Get Reader Config" },
{ LLRP_TYPE_SET_READER_CONFIG, "Set Reader Config" },
{ LLRP_TYPE_CLOSE_CONNECTION_RESPONSE, "Close Connection Response" },
{ LLRP_TYPE_GET_READER_CAPABILITIES_RESPONSE,"Get Reader Capabilities Response"},
{ LLRP_TYPE_GET_READER_CONFIG_RESPONSE, "Get Reader Config Response" },
{ LLRP_TYPE_SET_READER_CONFIG_RESPONSE, "Set Reader Config Response" },
{ LLRP_TYPE_CLOSE_CONNECTION, "Close Connection" },
{ LLRP_TYPE_ADD_ROSPEC, "Add ROSpec" },
{ LLRP_TYPE_DELETE_ROSPEC, "Delete ROSpec" },
{ LLRP_TYPE_START_ROSPEC, "Start ROSpec" },
{ LLRP_TYPE_STOP_ROSPEC, "Stop ROSpec" },
{ LLRP_TYPE_ENABLE_ROSPEC, "Enable ROSpec" },
{ LLRP_TYPE_DISABLE_ROSPEC, "Disable ROSpec" },
{ LLRP_TYPE_GET_ROSPECS, "Get ROSpecs" },
{ LLRP_TYPE_ADD_ROSPEC_RESPONSE, "Add ROSpec Response" },
{ LLRP_TYPE_DELETE_ROSPEC_RESPONSE, "Delete ROSpec Response" },
{ LLRP_TYPE_START_ROSPEC_RESPONSE, "Start ROSpec Response" },
{ LLRP_TYPE_STOP_ROSPEC_RESPONSE, "Stop ROSpec Response" },
{ LLRP_TYPE_ENABLE_ROSPEC_RESPONSE, "Enable ROSpec Response" },
{ LLRP_TYPE_DISABLE_ROSPEC_RESPONSE, "Disable ROSpec Response" },
{ LLRP_TYPE_GET_ROSPECS_RESPONSE, "Get ROSpecs Response" },
{ LLRP_TYPE_ADD_ACCESSSPEC, "Add AccessSpec" },
{ LLRP_TYPE_DELETE_ACCESSSPEC, "Delete AccessSpec" },
{ LLRP_TYPE_ENABLE_ACCESSSPEC, "Enable AccessSpec" },
{ LLRP_TYPE_DISABLE_ACCESSSPEC, "Disable AccessSpec" },
{ LLRP_TYPE_GET_ACCESSSPECS, "Get AccessSpecs" },
{ LLRP_TYPE_CLIENT_REQUEST_OP, "Client Request OP" },
{ LLRP_TYPE_GET_SUPPORTED_VERSION, "Get Supported Version" },
{ LLRP_TYPE_SET_PROTOCOL_VERSION, "Set Protocol Version" },
{ LLRP_TYPE_ADD_ACCESSSPEC_RESPONSE, "Add AccessSpec Response" },
{ LLRP_TYPE_DELETE_ACCESSSPEC_RESPONSE, "Delete AccessSpec Response" },
{ LLRP_TYPE_ENABLE_ACCESSSPEC_RESPONSE, "Enable AccessSpec Response" },
{ LLRP_TYPE_DISABLE_ACCESSSPEC_RESPONSE, "Disable AccessSpec Response" },
{ LLRP_TYPE_GET_ACCESSSPECS_RESPONSE, "Get AccessSpecs Response" },
{ LLRP_TYPE_CLIENT_RESQUEST_OP_RESPONSE, "Client Resquest OP Response" },
{ LLRP_TYPE_GET_SUPPORTED_VERSION_RESPONSE, "Get Supported Version Response" },
{ LLRP_TYPE_SET_PROTOCOL_VERSION_RESPONSE, "Set Protocol Version Response" },
{ LLRP_TYPE_GET_REPORT, "Get Report" },
{ LLRP_TYPE_RO_ACCESS_REPORT, "RO Access Report" },
{ LLRP_TYPE_KEEPALIVE, "Keepalive" },
{ LLRP_TYPE_READER_EVENT_NOTIFICATION, "Reader Event Notification" },
{ LLRP_TYPE_ENABLE_EVENTS_AND_REPORTS, "Enable Events And Reports" },
{ LLRP_TYPE_KEEPALIVE_ACK, "Keepalive Ack" },
{ LLRP_TYPE_ERROR_MESSAGE, "Error Message" },
{ LLRP_TYPE_CUSTOM_MESSAGE, "Custom Message" },
{ 0, NULL }
};
static value_string_ext message_types_ext = VALUE_STRING_EXT_INIT(message_types);
/* Versions */
#define LLRP_VERS_1_0_1 0x01
#define LLRP_VERS_1_1 0x02
static const value_string llrp_versions[] = {
{ LLRP_VERS_1_0_1, "1.0.1" },
{ LLRP_VERS_1_1, "1.1" },
{ 0, NULL }
};
/* Capabilities */
#define LLRP_CAP_ALL 0
#define LLRP_CAP_GENERAL_DEVICE 1
#define LLRP_CAP_LLRP 2
#define LLRP_CAP_REGULATORY 3
#define LLRP_CAP_AIR_PROTOCOL 4
static const value_string capabilities_request[] = {
{ LLRP_CAP_ALL, "All" },
{ LLRP_CAP_GENERAL_DEVICE, "General Device Capabilities" },
{ LLRP_CAP_LLRP, "LLRP Capabilities" },
{ LLRP_CAP_REGULATORY, "Regulatory Capabilities" },
{ LLRP_CAP_AIR_PROTOCOL, "Air Protocol LLRP Capabilities" },
{ 0, NULL }
};
/* Configurations */
#define LLRP_CONF_ALL 0
#define LLRP_CONF_IDENTIFICATION 1
#define LLRP_CONF_ANTENNA_PROPERTIES 2
#define LLRP_CONF_ANTENNA_CONFIGURATION 3
#define LLRP_CONF_RO_REPORT_SPEC 4
#define LLRP_CONF_READER_EVENT_NOTIFICATION_SPEC 5
#define LLRP_CONF_ACCESS_REPORT_SPEC 6
#define LLRP_CONF_LLRP_CONFIGURATION_STATE 7
#define LLRP_CONF_KEEPALIVE_SPEC 8
#define LLRP_CONF_GPI_PORT_CURRENT_STATE 9
#define LLRP_CONF_GPO_WRITE_DATA 10
#define LLRP_CONF_EVENTS_AND_REPORTS 11
static const value_string config_request[] = {
{ LLRP_CONF_ALL, "All" },
{ LLRP_CONF_IDENTIFICATION, "Identification" },
{ LLRP_CONF_ANTENNA_PROPERTIES, "Antenna Properties" },
{ LLRP_CONF_ANTENNA_CONFIGURATION, "Antenna Configuration" },
{ LLRP_CONF_RO_REPORT_SPEC, "RO Report Spec" },
{ LLRP_CONF_READER_EVENT_NOTIFICATION_SPEC, "Reader Event Notification Spec" },
{ LLRP_CONF_ACCESS_REPORT_SPEC, "Access Report Spec" },
{ LLRP_CONF_LLRP_CONFIGURATION_STATE, "LLRP Configuration State" },
{ LLRP_CONF_KEEPALIVE_SPEC, "Keepalive Spec" },
{ LLRP_CONF_GPI_PORT_CURRENT_STATE, "GPI Port Current State" },
{ LLRP_CONF_GPO_WRITE_DATA, "GPO Write Data" },
{ LLRP_CONF_EVENTS_AND_REPORTS, "Events and Reports" },
{ 0, NULL }
};
static value_string_ext config_request_ext = VALUE_STRING_EXT_INIT(config_request);
/* TLV Parameter Types */
#define LLRP_TLV_UTC_TIMESTAMP 128
#define LLRP_TLV_UPTIME 129
#define LLRP_TLV_GENERAL_DEVICE_CAP 137
#define LLRP_TLV_RECEIVE_SENSE_ENTRY 139
#define LLRP_TLV_ANTENNA_AIR_PROTO 140
#define LLRP_TLV_GPIO_CAPABILITIES 141
#define LLRP_TLV_LLRP_CAPABILITIES 142
#define LLRP_TLV_REGU_CAPABILITIES 143
#define LLRP_TLV_UHF_CAPABILITIES 144
#define LLRP_TLV_XMIT_POWER_LEVEL_ENTRY 145
#define LLRP_TLV_FREQ_INFORMATION 146
#define LLRP_TLV_FREQ_HOP_TABLE 147
#define LLRP_TLV_FIXED_FREQ_TABLE 148
#define LLRP_TLV_ANTENNA_RCV_SENSE_RANGE 149
#define LLRP_TLV_RO_SPEC 177
#define LLRP_TLV_RO_BOUND_SPEC 178
#define LLRP_TLV_RO_SPEC_START_TRIGGER 179
#define LLRP_TLV_PER_TRIGGER_VAL 180
#define LLRP_TLV_GPI_TRIGGER_VAL 181
#define LLRP_TLV_RO_SPEC_STOP_TRIGGER 182
#define LLRP_TLV_AI_SPEC 183
#define LLRP_TLV_AI_SPEC_STOP 184
#define LLRP_TLV_TAG_OBSERV_TRIGGER 185
#define LLRP_TLV_INVENTORY_PARAM_SPEC 186
#define LLRP_TLV_RF_SURVEY_SPEC 187
#define LLRP_TLV_RF_SURVEY_SPEC_STOP_TR 188
#define LLRP_TLV_ACCESS_SPEC 207
#define LLRP_TLV_ACCESS_SPEC_STOP_TRIG 208
#define LLRP_TLV_ACCESS_COMMAND 209
#define LLRP_TLV_CLIENT_REQ_OP_SPEC 210
#define LLRP_TLV_CLIENT_REQ_RESPONSE 211
#define LLRP_TLV_LLRP_CONF_STATE_VAL 217
#define LLRP_TLV_IDENT 218
#define LLRP_TLV_GPO_WRITE_DATA 219
#define LLRP_TLV_KEEPALIVE_SPEC 220
#define LLRP_TLV_ANTENNA_PROPS 221
#define LLRP_TLV_ANTENNA_CONF 222
#define LLRP_TLV_RF_RECEIVER 223
#define LLRP_TLV_RF_TRANSMITTER 224
#define LLRP_TLV_GPI_PORT_CURRENT_STATE 225
#define LLRP_TLV_EVENTS_AND_REPORTS 226
#define LLRP_TLV_RO_REPORT_SPEC 237
#define LLRP_TLV_TAG_REPORT_CONTENT_SEL 238
#define LLRP_TLV_ACCESS_REPORT_SPEC 239
#define LLRP_TLV_TAG_REPORT_DATA 240
#define LLRP_TLV_EPC_DATA 241
#define LLRP_TLV_RF_SURVEY_REPORT_DATA 242
#define LLRP_TLV_FREQ_RSSI_LEVEL_ENTRY 243
#define LLRP_TLV_READER_EVENT_NOTI_SPEC 244
#define LLRP_TLV_EVENT_NOTIF_STATE 245
#define LLRP_TLV_READER_EVENT_NOTI_DATA 246
#define LLRP_TLV_HOPPING_EVENT 247
#define LLRP_TLV_GPI_EVENT 248
#define LLRP_TLV_RO_SPEC_EVENT 249
#define LLRP_TLV_REPORT_BUF_LEVEL_WARN 250
#define LLRP_TLV_REPORT_BUF_OVERFLOW_ERR 251
#define LLRP_TLV_READER_EXCEPTION_EVENT 252
#define LLRP_TLV_RF_SURVEY_EVENT 253
#define LLRP_TLV_AI_SPEC_EVENT 254
#define LLRP_TLV_ANTENNA_EVENT 255
#define LLRP_TLV_CONN_ATTEMPT_EVENT 256
#define LLRP_TLV_CONN_CLOSE_EVENT 257
#define LLRP_TLV_LLRP_STATUS 287
#define LLRP_TLV_FIELD_ERROR 288
#define LLRP_TLV_PARAM_ERROR 289
#define LLRP_TLV_C1G2_LLRP_CAP 327
#define LLRP_TLV_C1G2_UHF_RF_MD_TBL 328
#define LLRP_TLV_C1G2_UHF_RF_MD_TBL_ENT 329
#define LLRP_TLV_C1G2_INVENTORY_COMMAND 330
#define LLRP_TLV_C1G2_FILTER 331
#define LLRP_TLV_C1G2_TAG_INV_MASK 332
#define LLRP_TLV_C1G2_TAG_INV_AWARE_FLTR 333
#define LLRP_TLV_C1G2_TAG_INV_UNAWR_FLTR 334
#define LLRP_TLV_C1G2_RF_CONTROL 335
#define LLRP_TLV_C1G2_SINGULATION_CTRL 336
#define LLRP_TLV_C1G2_TAG_INV_AWARE_SING 337
#define LLRP_TLV_C1G2_TAG_SPEC 338
#define LLRP_TLV_C1G2_TARGET_TAG 339
#define LLRP_TLV_C1G2_READ 341
#define LLRP_TLV_C1G2_WRITE 342
#define LLRP_TLV_C1G2_KILL 343
#define LLRP_TLV_C1G2_LOCK 344
#define LLRP_TLV_C1G2_LOCK_PAYLOAD 345
#define LLRP_TLV_C1G2_BLK_ERASE 346
#define LLRP_TLV_C1G2_BLK_WRITE 347
#define LLRP_TLV_C1G2_EPC_MEMORY_SLCTOR 348
#define LLRP_TLV_C1G2_READ_OP_SPEC_RES 349
#define LLRP_TLV_C1G2_WRT_OP_SPEC_RES 350
#define LLRP_TLV_C1G2_KILL_OP_SPEC_RES 351
#define LLRP_TLV_C1G2_LOCK_OP_SPEC_RES 352
#define LLRP_TLV_C1G2_BLK_ERS_OP_SPC_RES 353
#define LLRP_TLV_C1G2_BLK_WRT_OP_SPC_RES 354
#define LLRP_TLV_LOOP_SPEC 355
#define LLRP_TLV_SPEC_LOOP_EVENT 356
#define LLRP_TLV_C1G2_RECOMMISSION 357
#define LLRP_TLV_C1G2_BLK_PERMALOCK 358
#define LLRP_TLV_C1G2_GET_BLK_PERMALOCK 359
#define LLRP_TLV_C1G2_RECOM_OP_SPEC_RES 360
#define LLRP_TLV_C1G2_BLK_PRL_OP_SPC_RES 361
#define LLRP_TLV_C1G2_BLK_PRL_STAT_RES 362
#define LLRP_TLV_MAX_RECEIVE_SENSE 363
#define LLRP_TLV_RF_SURVEY_FREQ_CAP 365
#define LLRP_TLV_CUSTOM_PARAMETER 1023
static const value_string tlv_type[] = {
{ LLRP_TLV_UTC_TIMESTAMP, "UTC Timestamp" },
{ LLRP_TLV_UPTIME, "Uptime" },
{ LLRP_TLV_GENERAL_DEVICE_CAP, "General Device Capabilities" },
{ LLRP_TLV_RECEIVE_SENSE_ENTRY, "Receive Sensitivity Entry" },
{ LLRP_TLV_ANTENNA_AIR_PROTO, "Antenna Air Protocol" },
{ LLRP_TLV_GPIO_CAPABILITIES, "GPIO Capabilities" },
{ LLRP_TLV_LLRP_CAPABILITIES, "LLRP Capabilities" },
{ LLRP_TLV_REGU_CAPABILITIES, "REGU Capabilities" },
{ LLRP_TLV_UHF_CAPABILITIES, "UHF Capabilities" },
{ LLRP_TLV_XMIT_POWER_LEVEL_ENTRY, "Transmit Power Level Entry" },
{ LLRP_TLV_FREQ_INFORMATION, "Frequency Information" },
{ LLRP_TLV_FREQ_HOP_TABLE, "Frequency Hop Table" },
{ LLRP_TLV_FIXED_FREQ_TABLE, "Fixed Frequency Table" },
{ LLRP_TLV_ANTENNA_RCV_SENSE_RANGE, "Antenna RCV Sensitivity Range" },
{ LLRP_TLV_RO_SPEC, "RO Spec" },
{ LLRP_TLV_RO_BOUND_SPEC, "RO Bound Spec" },
{ LLRP_TLV_RO_SPEC_START_TRIGGER, "RO Spec Start Trigger" },
{ LLRP_TLV_PER_TRIGGER_VAL, "PER Trigger Value" },
{ LLRP_TLV_GPI_TRIGGER_VAL, "GPI Trigger Value" },
{ LLRP_TLV_RO_SPEC_STOP_TRIGGER, "RO Spec Stop Trigger" },
{ LLRP_TLV_AI_SPEC, "AI Spec" },
{ LLRP_TLV_AI_SPEC_STOP, "AI Spec Stop" },
{ LLRP_TLV_TAG_OBSERV_TRIGGER, "Tag Observation Trigger" },
{ LLRP_TLV_INVENTORY_PARAM_SPEC, "Inventory Parameter Spec ID" },
{ LLRP_TLV_RF_SURVEY_SPEC, "RF Survey Spec" },
{ LLRP_TLV_RF_SURVEY_SPEC_STOP_TR, "RF Survey Spec Stop Trigger" },
{ LLRP_TLV_ACCESS_SPEC, "Access Spec" },
{ LLRP_TLV_ACCESS_SPEC_STOP_TRIG, "Access Spec Stop Trigger" },
{ LLRP_TLV_ACCESS_COMMAND, "Access Command" },
{ LLRP_TLV_CLIENT_REQ_OP_SPEC, "Client Request Op Spec" },
{ LLRP_TLV_CLIENT_REQ_RESPONSE, "Client Request Response" },
{ LLRP_TLV_LLRP_CONF_STATE_VAL, "LLRP Configuration State Value" },
{ LLRP_TLV_IDENT, "Identification" },
{ LLRP_TLV_GPO_WRITE_DATA, "GPO Write Data" },
{ LLRP_TLV_KEEPALIVE_SPEC, "Keepalive Spec" },
{ LLRP_TLV_ANTENNA_PROPS, "Antenna Properties" },
{ LLRP_TLV_ANTENNA_CONF, "Antenna Configuration" },
{ LLRP_TLV_RF_RECEIVER, "RF Receiver" },
{ LLRP_TLV_RF_TRANSMITTER, "RF Transmitter" },
{ LLRP_TLV_GPI_PORT_CURRENT_STATE, "GPI Port Current State" },
{ LLRP_TLV_EVENTS_AND_REPORTS, "Events And Reports" },
{ LLRP_TLV_RO_REPORT_SPEC, "RO Report Spec" },
{ LLRP_TLV_TAG_REPORT_CONTENT_SEL, "Tag Report Content Selector" },
{ LLRP_TLV_ACCESS_REPORT_SPEC, "Access Report Spec" },
{ LLRP_TLV_TAG_REPORT_DATA, "Tag Report Data" },
{ LLRP_TLV_EPC_DATA, "EPC Data" },
{ LLRP_TLV_RF_SURVEY_REPORT_DATA, "RF Survey Report Data" },
{ LLRP_TLV_FREQ_RSSI_LEVEL_ENTRY, "Frequency RSSI Level Entry" },
{ LLRP_TLV_READER_EVENT_NOTI_SPEC, "Reader Event Notification Spec" },
{ LLRP_TLV_EVENT_NOTIF_STATE, "Event Notification State" },
{ LLRP_TLV_READER_EVENT_NOTI_DATA, "Reader Event Notification Data" },
{ LLRP_TLV_HOPPING_EVENT, "Hopping Event" },
{ LLRP_TLV_GPI_EVENT, "GPI Event" },
{ LLRP_TLV_RO_SPEC_EVENT, "RO Spec Event" },
{ LLRP_TLV_REPORT_BUF_LEVEL_WARN, "Report Buffer Level Warning Event" },
{ LLRP_TLV_REPORT_BUF_OVERFLOW_ERR, "Report Buffer Overflow Error Event" },
{ LLRP_TLV_READER_EXCEPTION_EVENT, "Reader Exception Event" },
{ LLRP_TLV_RF_SURVEY_EVENT, "RF Survey Event" },
{ LLRP_TLV_AI_SPEC_EVENT, "AI Spec Event" },
{ LLRP_TLV_ANTENNA_EVENT, "ANTENNA Event" },
{ LLRP_TLV_CONN_ATTEMPT_EVENT, "CONN Attempt Event" },
{ LLRP_TLV_CONN_CLOSE_EVENT, "CONN Close Event" },
{ LLRP_TLV_LLRP_STATUS, "LLRP Status" },
{ LLRP_TLV_FIELD_ERROR, "Field Error" },
{ LLRP_TLV_PARAM_ERROR, "Param Error" },
{ LLRP_TLV_C1G2_LLRP_CAP, "C1G2 LLRP Capabilities" },
{ LLRP_TLV_C1G2_UHF_RF_MD_TBL, "C1G2 UHF RF Mode Table" },
{ LLRP_TLV_C1G2_UHF_RF_MD_TBL_ENT, "C1G2 UHF RF Mode Table Entry" },
{ LLRP_TLV_C1G2_INVENTORY_COMMAND, "C1G2 Inventory Command" },
{ LLRP_TLV_C1G2_FILTER, "C1G2 Filter" },
{ LLRP_TLV_C1G2_TAG_INV_MASK, "C1G2 Tag Inventory Mask" },
{ LLRP_TLV_C1G2_TAG_INV_AWARE_FLTR, "C1G2 Tag Inventory State-Aware Filter Action" },
{ LLRP_TLV_C1G2_TAG_INV_UNAWR_FLTR, "C1G2 Tag Inventory State-Unaware Filter Action" },
{ LLRP_TLV_C1G2_RF_CONTROL, "C1G2 RF Control" },
{ LLRP_TLV_C1G2_SINGULATION_CTRL, "C1G2 Singulation Control" },
{ LLRP_TLV_C1G2_TAG_INV_AWARE_SING, "C1G2 Tag Inventory State-Aware Singulation" },
{ LLRP_TLV_C1G2_TAG_SPEC, "C1G2 Tag Spec" },
{ LLRP_TLV_C1G2_TARGET_TAG, "C1G2 Target Tag" },
{ LLRP_TLV_C1G2_READ, "C1G2 Read" },
{ LLRP_TLV_C1G2_WRITE, "C1G2 Write" },
{ LLRP_TLV_C1G2_KILL, "C1G2 Kill" },
{ LLRP_TLV_C1G2_LOCK, "C1G2 Lock" },
{ LLRP_TLV_C1G2_LOCK_PAYLOAD, "C1G2 Lock Payload" },
{ LLRP_TLV_C1G2_BLK_ERASE, "C1G2 Block Erase" },
{ LLRP_TLV_C1G2_BLK_WRITE, "C1G2 Block Write" },
{ LLRP_TLV_C1G2_EPC_MEMORY_SLCTOR, "C1G2 EPC Memory Selector" },
{ LLRP_TLV_C1G2_READ_OP_SPEC_RES, "C1G2 Read Op Spec Result" },
{ LLRP_TLV_C1G2_WRT_OP_SPEC_RES, "C1G2 Write Op Spec Result" },
{ LLRP_TLV_C1G2_KILL_OP_SPEC_RES, "C1G2 Kill Op Spec Result" },
{ LLRP_TLV_C1G2_LOCK_OP_SPEC_RES, "C1G2 Lock Op Spec Result" },
{ LLRP_TLV_C1G2_BLK_ERS_OP_SPC_RES, "C1G2 Block Erase Op Spec Result" },
{ LLRP_TLV_C1G2_BLK_WRT_OP_SPC_RES, "C1G2 Block Write Op Spec Result" },
{ LLRP_TLV_LOOP_SPEC, "Loop Spec" },
{ LLRP_TLV_SPEC_LOOP_EVENT, "Spec loop event" },
{ LLRP_TLV_C1G2_RECOMMISSION, "C1G2 Recommission" },
{ LLRP_TLV_C1G2_BLK_PERMALOCK, "C1G2 Block Permalock" },
{ LLRP_TLV_C1G2_GET_BLK_PERMALOCK, "C1G2 Get Block Permalock Status" },
{ LLRP_TLV_C1G2_RECOM_OP_SPEC_RES, "C1G2 Recommission Op Spec Result" },
{ LLRP_TLV_C1G2_BLK_PRL_OP_SPC_RES, "C1G2 Block Permalock Op Spec Result" },
{ LLRP_TLV_C1G2_BLK_PRL_STAT_RES, "C1G2 Block Permalock Status Op Spec Result" },
{ LLRP_TLV_MAX_RECEIVE_SENSE, "Maximum Receive Sensitivity" },
{ LLRP_TLV_RF_SURVEY_FREQ_CAP, "RF Survey Frequency Capabilities" },
{ LLRP_TLV_CUSTOM_PARAMETER, "Custom parameter" },
{ 0, NULL }
};
static value_string_ext tlv_type_ext = VALUE_STRING_EXT_INIT(tlv_type);
/* TV Parameter Types */
#define LLRP_TV_ANTENNA_ID 1
#define LLRP_TV_FIRST_SEEN_TIME_UTC 2
#define LLRP_TV_FIRST_SEEN_TIME_UPTIME 3
#define LLRP_TV_LAST_SEEN_TIME_UTC 4
#define LLRP_TV_LAST_SEEN_TIME_UPTIME 5
#define LLRP_TV_PEAK_RSSI 6
#define LLRP_TV_CHANNEL_INDEX 7
#define LLRP_TV_TAG_SEEN_COUNT 8
#define LLRP_TV_RO_SPEC_ID 9
#define LLRP_TV_INVENTORY_PARAM_SPEC_ID 10
#define LLRP_TV_C1G2_CRC 11
#define LLRP_TV_C1G2_PC 12
#define LLRP_TV_EPC96 13
#define LLRP_TV_SPEC_INDEX 14
#define LLRP_TV_CLIENT_REQ_OP_SPEC_RES 15
#define LLRP_TV_ACCESS_SPEC_ID 16
#define LLRP_TV_OP_SPEC_ID 17
#define LLRP_TV_C1G2_SINGULATION_DET 18
#define LLRP_TV_C1G2_XPC_W1 19
#define LLRP_TV_C1G2_XPC_W2 20
/* Since TV's don't have a length field,
* use these values instead */
#define LLRP_TV_LEN_ANTENNA_ID 2
#define LLRP_TV_LEN_FIRST_SEEN_TIME_UTC 8
#define LLRP_TV_LEN_FIRST_SEEN_TIME_UPTIME 8
#define LLRP_TV_LEN_LAST_SEEN_TIME_UTC 8
#define LLRP_TV_LEN_LAST_SEEN_TIME_UPTIME 8
#define LLRP_TV_LEN_PEAK_RSSI 1
#define LLRP_TV_LEN_CHANNEL_INDEX 2
#define LLRP_TV_LEN_TAG_SEEN_COUNT 2
#define LLRP_TV_LEN_RO_SPEC_ID 4
#define LLRP_TV_LEN_INVENTORY_PARAM_SPEC_ID 2
#define LLRP_TV_LEN_C1G2_CRC 2
#define LLRP_TV_LEN_C1G2_PC 2
#define LLRP_TV_LEN_EPC96 12
#define LLRP_TV_LEN_SPEC_INDEX 2
#define LLRP_TV_LEN_CLIENT_REQ_OP_SPEC_RES 2
#define LLRP_TV_LEN_ACCESS_SPEC_ID 4
#define LLRP_TV_LEN_OP_SPEC_ID 2
#define LLRP_TV_LEN_C1G2_SINGULATION_DET 4
#define LLRP_TV_LEN_C1G2_XPC_W1 2
#define LLRP_TV_LEN_C1G2_XPC_W2 2
static const value_string tv_type[] = {
{ LLRP_TV_ANTENNA_ID, "Antenna ID" },
{ LLRP_TV_FIRST_SEEN_TIME_UTC, "First Seen Timestamp UTC" },
{ LLRP_TV_FIRST_SEEN_TIME_UPTIME, "First Seen Timestamp Uptime" },
{ LLRP_TV_LAST_SEEN_TIME_UTC, "Last Seen Timestamp UTC" },
{ LLRP_TV_LAST_SEEN_TIME_UPTIME, "Last Seen Timestamp Uptime" },
{ LLRP_TV_PEAK_RSSI, "Peak RSSI" },
{ LLRP_TV_CHANNEL_INDEX, "Channel Index" },
{ LLRP_TV_TAG_SEEN_COUNT, "Tag Seen Count" },
{ LLRP_TV_RO_SPEC_ID, "RO Spec ID" },
{ LLRP_TV_INVENTORY_PARAM_SPEC_ID, "Inventory Parameter Spec ID" },
{ LLRP_TV_C1G2_CRC, "C1G2 CRC" },
{ LLRP_TV_C1G2_PC, "C1G2 PC" },
{ LLRP_TV_EPC96, "EPC-96" },
{ LLRP_TV_SPEC_INDEX, "Spec Index" },
{ LLRP_TV_CLIENT_REQ_OP_SPEC_RES, "Client Request Op Spec Result" },
{ LLRP_TV_ACCESS_SPEC_ID, "Access Spec ID" },
{ LLRP_TV_OP_SPEC_ID, "Op Spec ID" },
{ LLRP_TV_C1G2_SINGULATION_DET, "C1G2 Singulation Details" },
{ LLRP_TV_C1G2_XPC_W1, "C1G2 XPC W1" },
{ LLRP_TV_C1G2_XPC_W2, "C1G2 XPC W2" },
{ 0, NULL }
};
static value_string_ext tv_type_ext = VALUE_STRING_EXT_INIT(tv_type);
/* Protocol IDs */
#define LLRP_PROT_ID_UNSPECIFIED 0
#define LLRP_PROT_ID_EPC_C1G2 1
static const range_string protocol_id[] = {
{ LLRP_PROT_ID_UNSPECIFIED, LLRP_PROT_ID_UNSPECIFIED, "Unspecified protocol" },
{ LLRP_PROT_ID_EPC_C1G2, LLRP_PROT_ID_EPC_C1G2, "EPCGlobal Class 1 Gen 2" },
{ LLRP_PROT_ID_EPC_C1G2 + 1, 255, "Reserved for future use" },
{ 0, 0, NULL }
};
/* Communication standards */
#define LLRP_COMM_STANDARD_UNSPECIFIED 0
#define LLRP_COMM_STANDARD_US_FCC_PART_15 1
#define LLRP_COMM_STANDARD_ETSI_302_208 2
#define LLRP_COMM_STANDARD_ETSI_300_220 3
#define LLRP_COMM_STANDARD_AUSTRALIA_LIPD_1W 4
#define LLRP_COMM_STANDARD_AUSTRALIA_LIPD_4W 5
#define LLRP_COMM_STANDARD_JAPAN_ARIB_STD_T89 6
#define LLRP_COMM_STANDARD_HONG_KONG_OFTA_1049 7
#define LLRP_COMM_STANDARD_TAIWAN_DGT_LP0002 8
#define LLRP_COMM_STANDARD_KOREA_MIC_ARTICLE_5_2 9
static const value_string comm_standard[] = {
{ LLRP_COMM_STANDARD_UNSPECIFIED, "Unspecified" },
{ LLRP_COMM_STANDARD_US_FCC_PART_15, "US FCC Part 15" },
{ LLRP_COMM_STANDARD_ETSI_302_208, "ETSI 302 208" },
{ LLRP_COMM_STANDARD_ETSI_300_220, "ETSI 300 220" },
{ LLRP_COMM_STANDARD_AUSTRALIA_LIPD_1W, "Australia LIPD 1W" },
{ LLRP_COMM_STANDARD_AUSTRALIA_LIPD_4W, "Australia LIPD 4W" },
{ LLRP_COMM_STANDARD_JAPAN_ARIB_STD_T89, "Japan_ARIB STD T89" },
{ LLRP_COMM_STANDARD_HONG_KONG_OFTA_1049, "Hong_Kong OFTA 1049" },
{ LLRP_COMM_STANDARD_TAIWAN_DGT_LP0002, "Taiwan DGT LP0002" },
{ LLRP_COMM_STANDARD_KOREA_MIC_ARTICLE_5_2, "Korea MIC Article 5 2" },
{ 0, NULL }
};
static value_string_ext comm_standard_ext = VALUE_STRING_EXT_INIT(comm_standard);
/* ID type */
#define LLRP_ID_TYPE_MAC 0
#define LLRP_ID_TYPE_EPC 1
static const value_string id_type[] = {
{ LLRP_ID_TYPE_MAC, "MAC" },
{ LLRP_ID_TYPE_EPC, "EPC" },
{ 0, NULL }
};
/* KeepAlive type */
#define LLRP_KEEPALIVE_TYPE_NULL 0
#define LLRP_KEEPALIVE_TYPE_PERIODIC 1
static const value_string keepalive_type[] = {
{ LLRP_KEEPALIVE_TYPE_NULL, "Null" },
{ LLRP_KEEPALIVE_TYPE_PERIODIC, "Periodic" },
{ 0, NULL }
};
/* Notification Event type */
#define LLRP_NOTIFICATION_EVENT_TYPE_UPON_HOPPING_TO_NEXT_CHANNEL 0
#define LLRP_NOTIFICATION_EVENT_TYPE_GPI_EVENT 1
#define LLRP_NOTIFICATION_EVENT_TYPE_ROSPEC_EVENT 2
#define LLRP_NOTIFICATION_EVENT_TYPE_REPORT_BUFFER_FILL_WARNING 3
#define LLRP_NOTIFICATION_EVENT_TYPE_READER_EXCEPTION_EVENT 4
#define LLRP_NOTIFICATION_EVENT_TYPE_RFSURVEY_EVENT 5
#define LLRP_NOTIFICATION_EVENT_TYPE_AISPEC_EVENT 6
#define LLRP_NOTIFICATION_EVENT_TYPE_AISPEC_EVENT_WITH_DETAILS 7
#define LLRP_NOTIFICATION_EVENT_TYPE_ANTENNA_EVENT 8
#define LLRP_NOTIFICATION_EVENT_TYPE_SPEC_LOOP_EVENT 9
static const value_string event_type[] = {
{ LLRP_NOTIFICATION_EVENT_TYPE_UPON_HOPPING_TO_NEXT_CHANNEL, "Upon hopping to next channel" },
{ LLRP_NOTIFICATION_EVENT_TYPE_GPI_EVENT, "GPI event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_ROSPEC_EVENT, "ROSpec event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_REPORT_BUFFER_FILL_WARNING, "Report buffer fill warning" },
{ LLRP_NOTIFICATION_EVENT_TYPE_READER_EXCEPTION_EVENT, "Reader exception event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_RFSURVEY_EVENT, "RFSurvey event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_AISPEC_EVENT, "AISpec event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_AISPEC_EVENT_WITH_DETAILS, "AISpec event with details" },
{ LLRP_NOTIFICATION_EVENT_TYPE_ANTENNA_EVENT, "Antenna event" },
{ LLRP_NOTIFICATION_EVENT_TYPE_SPEC_LOOP_EVENT, "SpecLoop event" },
{ 0, NULL }
};
static value_string_ext event_type_ext = VALUE_STRING_EXT_INIT(event_type);
/* ROSpec event type */
#define LLRP_ROSPEC_EVENT_TYPE_START_OF_ROSPEC 0
#define LLRP_ROSPEC_EVENT_TYPE_END_OF_ROSPEC 1
#define LLRP_ROSPEC_EVENT_TYPE_PREEMPTION_OF_ROSPEC 2
static const value_string roevent_type[] = {
{ LLRP_ROSPEC_EVENT_TYPE_START_OF_ROSPEC, "Start of ROSpec" },
{ LLRP_ROSPEC_EVENT_TYPE_END_OF_ROSPEC, "End of ROSpec" },
{ LLRP_ROSPEC_EVENT_TYPE_PREEMPTION_OF_ROSPEC, "Preemption of ROSpec" },
{ 0, NULL }
};
/* ROSpec event type */
#define LLRP_RF_SURVEY_EVENT_TYPE_START_OF_SURVEY 0
#define LLRP_RF_SURVEY_EVENT_TYPE_END_OF_SURVEY 1
static const value_string rfevent_type[] = {
{ LLRP_RF_SURVEY_EVENT_TYPE_START_OF_SURVEY, "Start of survey" },
{ LLRP_RF_SURVEY_EVENT_TYPE_END_OF_SURVEY, "End of survey" },
{ 0, NULL }
};
/* AISpec event type */
#define LLRP_AISPEC_EVENT_TYPE_END_OF_AISPEC 0
static const value_string aievent_type[] = {
{ LLRP_AISPEC_EVENT_TYPE_END_OF_AISPEC, "End of AISpec" },
{ 0, NULL }
};
/* Antenna event type */
#define LLRP_ANTENNA_EVENT_DISCONNECTED 0
#define LLRP_ANTENNA_EVENT_CONNECTED 1
static const value_string antenna_event_type[] = {
{ LLRP_ANTENNA_EVENT_DISCONNECTED, "Antenna disconnected" },
{ LLRP_ANTENNA_EVENT_CONNECTED, "Antenna connected" },
{ 0, NULL }
};
/* Connection status */
#define LLRP_CONNECTION_SUCCESS 0
#define LLRP_CONNECTION_FAILED_READER_INITIATE_ALREADY_EXISTS 1
#define LLRP_CONNECTION_FAILED_CLIENT_INITIATE_ALREADY_EXISTS 2
#define LLRP_CONNECTION_FAILED_OTHER_REASON_THAN_ALREADY_EXISTS 3
#define LLRP_CONNECTION_ANOTHER_CONNECTION_ATTEMPTED 4
static const value_string connection_status[] = {
{ LLRP_CONNECTION_SUCCESS, "Success" },
{ LLRP_CONNECTION_FAILED_READER_INITIATE_ALREADY_EXISTS, "Failed a reader initiated connection already exists" },
{ LLRP_CONNECTION_FAILED_CLIENT_INITIATE_ALREADY_EXISTS, "Failed a client initiated connection already exists" },
{ LLRP_CONNECTION_FAILED_OTHER_REASON_THAN_ALREADY_EXISTS, "Failed reason other than a connection already exists" },
{ LLRP_CONNECTION_ANOTHER_CONNECTION_ATTEMPTED, "Another connection attempted" },
{ 0, NULL }
};
/* Status code */
#define LLRP_STATUS_CODE_M_SUCCESS 0
#define LLRP_STATUS_CODE_M_PARAMETERERROR 100
#define LLRP_STATUS_CODE_M_FIELDERROR 101
#define LLRP_STATUS_CODE_M_UNEXPECTEDPARAMETER 102
#define LLRP_STATUS_CODE_M_MISSINGPARAMETER 103
#define LLRP_STATUS_CODE_M_DUPLICATEPARAMETER 104
#define LLRP_STATUS_CODE_M_OVERFLOWPARAMETER 105
#define LLRP_STATUS_CODE_M_OVERFLOWFIELD 106
#define LLRP_STATUS_CODE_M_UNKNOWNPARAMETER 107
#define LLRP_STATUS_CODE_M_UNKNOWNFIELD 108
#define LLRP_STATUS_CODE_M_UNSUPPORTEDMESSAGE 109
#define LLRP_STATUS_CODE_M_UNSUPPORTEDVERSION 110
#define LLRP_STATUS_CODE_M_UNSUPPORTEDPARAMETER 111
#define LLRP_STATUS_CODE_P_PARAMETERERROR 200
#define LLRP_STATUS_CODE_P_FIELDERROR 201
#define LLRP_STATUS_CODE_P_UNEXPECTEDPARAMETER 202
#define LLRP_STATUS_CODE_P_MISSINGPARAMETER 203
#define LLRP_STATUS_CODE_P_DUPLICATEPARAMETER 204
#define LLRP_STATUS_CODE_P_OVERFLOWPARAMETER 205
#define LLRP_STATUS_CODE_P_OVERFLOWFIELD 206
#define LLRP_STATUS_CODE_P_UNKNOWNPARAMETER 207
#define LLRP_STATUS_CODE_P_UNKNOWNFIELD 208
#define LLRP_STATUS_CODE_P_UNSUPPORTEDPARAMETER 209
#define LLRP_STATUS_CODE_A_INVALID 300
#define LLRP_STATUS_CODE_A_OUTOFRANGE 301
#define LLRP_STATUS_CODE_R_DEVICEERROR 401
static const value_string status_code[] = {
{ LLRP_STATUS_CODE_M_SUCCESS, "M_Success" },
{ LLRP_STATUS_CODE_M_PARAMETERERROR, "M_ParameterError" },
{ LLRP_STATUS_CODE_M_FIELDERROR, "M_FieldError" },
{ LLRP_STATUS_CODE_M_UNEXPECTEDPARAMETER, "M_UnexpectedParameter" },
{ LLRP_STATUS_CODE_M_MISSINGPARAMETER, "M_MissingParameter" },
{ LLRP_STATUS_CODE_M_DUPLICATEPARAMETER, "M_DuplicateParameter" },
{ LLRP_STATUS_CODE_M_OVERFLOWPARAMETER, "M_OverflowParameter" },
{ LLRP_STATUS_CODE_M_OVERFLOWFIELD, "M_OverflowField" },
{ LLRP_STATUS_CODE_M_UNKNOWNPARAMETER, "M_UnknownParameter" },
{ LLRP_STATUS_CODE_M_UNKNOWNFIELD, "M_UnknownField" },
{ LLRP_STATUS_CODE_M_UNSUPPORTEDMESSAGE, "M_UnsupportedMessage" },
{ LLRP_STATUS_CODE_M_UNSUPPORTEDVERSION, "M_UnsupportedVersion" },
{ LLRP_STATUS_CODE_M_UNSUPPORTEDPARAMETER,"M_UnsupportedParameter" },
{ LLRP_STATUS_CODE_P_PARAMETERERROR, "P_ParameterError" },
{ LLRP_STATUS_CODE_P_FIELDERROR, "P_FieldError" },
{ LLRP_STATUS_CODE_P_UNEXPECTEDPARAMETER, "P_UnexpectedParameter" },
{ LLRP_STATUS_CODE_P_MISSINGPARAMETER, "P_MissingParameter" },
{ LLRP_STATUS_CODE_P_DUPLICATEPARAMETER, "P_DuplicateParameter" },
{ LLRP_STATUS_CODE_P_OVERFLOWPARAMETER, "P_OverflowParameter" },
{ LLRP_STATUS_CODE_P_OVERFLOWFIELD, "P_OverflowField" },
{ LLRP_STATUS_CODE_P_UNKNOWNPARAMETER, "P_UnknownParameter" },
{ LLRP_STATUS_CODE_P_UNKNOWNFIELD, "P_UnknownField" },
{ LLRP_STATUS_CODE_P_UNSUPPORTEDPARAMETER,"P_UnsupportedParameter" },
{ LLRP_STATUS_CODE_A_INVALID, "A_Invalid" },
{ LLRP_STATUS_CODE_A_OUTOFRANGE, "A_OutOfRange" },
{ LLRP_STATUS_CODE_R_DEVICEERROR, "R_DeviceError" },
{ 0, NULL }
};
static value_string_ext status_code_ext = VALUE_STRING_EXT_INIT(status_code);
/* C1G2 tag inventory state aware singulation action */
static const true_false_string tfs_state_a_b = { "State B", "State A" };
static const true_false_string tfs_sl = { "~SL", "SL" };
static const true_false_string tfs_all_no = { "All", "No" };
/* Vendors */
#define LLRP_VENDOR_IMPINJ 25882
static const value_string llrp_vendors[] = {
{ LLRP_VENDOR_IMPINJ, "Impinj" },
{ 0, NULL }
};
/* Vendor subtypes */
/* Impinj custom message types */
#define LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS 21
#define LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS_RESPONSE 22
#define LLRP_IMPINJ_TYPE_SAVE_SETTINGS 23
#define LLRP_IMPINJ_TYPE_SAVE_SETTINGS_RESPONSE 24
static const value_string impinj_msg_subtype[] = {
{ LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS, "Enable extensions" },
{ LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS_RESPONSE, "Enable extensions response" },
{ LLRP_IMPINJ_TYPE_SAVE_SETTINGS, "Save settings" },
{ LLRP_IMPINJ_TYPE_SAVE_SETTINGS_RESPONSE, "Save setting response" },
{ 0, NULL }
};
static value_string_ext impinj_msg_subtype_ext = VALUE_STRING_EXT_INIT(impinj_msg_subtype);
/* Impinj custom parameter types */
#define LLRP_IMPINJ_PARAM_REQUESTED_DATA 21
#define LLRP_IMPINJ_PARAM_SUBREGULATORY_REGION 22
#define LLRP_IMPINJ_PARAM_INVENTORY_SEARCH_MODE 23
#define LLRP_IMPINJ_PARAM_TAG_DIRECTION_REPORTING 24
#define LLRP_IMPINJ_PARAM_TAG_DIRECTION 25
#define LLRP_IMPINJ_PARAM_FIXED_FREQUENCY_LIST 26
#define LLRP_IMPINJ_PARAM_REDUCED_POWER_FREQUENCY_LIST 27
#define LLRP_IMPINJ_PARAM_LOW_DUTY_CYCLE 28
#define LLRP_IMPINJ_PARAM_DETAILED_VERSION 29
#define LLRP_IMPINJ_PARAM_FREQUENCY_CAPABILITIES 30
#define LLRP_IMPINJ_PARAM_TAG_INFORMATION 31
#define LLRP_IMPINJ_PARAM_FORKLIFT_CONFIGURATION 32
#define LLRP_IMPINJ_PARAM_FORKLIFT_HEIGHT_THRESHOLD 33
#define LLRP_IMPINJ_PARAM_FORKLIFT_ZEROMOTION_TIME_THRESHOLD 34
#define LLRP_IMPINJ_PARAM_FORKLIFT_COMPANION_BOARD_INFO 35
#define LLRP_IMPINJ_PARAM_GPI_DEBOUNCE_CONFIGURATION 36
#define LLRP_IMPINJ_PARAM_READER_TEMPERATURE 37
#define LLRP_IMPINJ_PARAM_LINK_MONITOR_CONFIGURATION 38
#define LLRP_IMPINJ_PARAM_REPORT_BUFFER_CONFIGURATION 39
#define LLRP_IMPINJ_PARAM_ACCESS_SPEC_CONFIGURATION 40
#define LLRP_IMPINJ_PARAM_BLOCK_WRITE_WORD_COUNT 41
#define LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK 42
#define LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK_OPSPEC_RESULT 43
#define LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS 44
#define LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS_OPSPEC_RESULT 45
#define LLRP_IMPINJ_PARAM_SET_QT_CONFIG 46
#define LLRP_IMPINJ_PARAM_SET_QT_CONFIG_OPSPEC_RESULT 47
#define LLRP_IMPINJ_PARAM_GET_QT_CONFIG 48
#define LLRP_IMPINJ_PARAM_GET_QT_CONFIG_OPSPEC_RESULT 49
#define LLRP_IMPINJ_PARAM_TAG_REPORT_CONTENT_SELECTOR 50
#define LLRP_IMPINJ_PARAM_ENABLE_SERIALIZED_TID 51
#define LLRP_IMPINJ_PARAM_ENABLE_RF_PHASE_ANGLE 52
#define LLRP_IMPINJ_PARAM_ENABLE_PEAK_RSSI 53
#define LLRP_IMPINJ_PARAM_ENABLE_GPS_COORDINATES 54
#define LLRP_IMPINJ_PARAM_SERIALIZED_TID 55
#define LLRP_IMPINJ_PARAM_RF_PHASE_ANGLE 56
#define LLRP_IMPINJ_PARAM_PEAK_RSSI 57
#define LLRP_IMPINJ_PARAM_GPS_COORDINATES 58
#define LLRP_IMPINJ_PARAM_LOOP_SPEC 59
#define LLRP_IMPINJ_PARAM_GPS_NMEA_SENTENCES 60
#define LLRP_IMPINJ_PARAM_GGA_SENTENCE 61
#define LLRP_IMPINJ_PARAM_RMC_SENTENCE 62
#define LLRP_IMPINJ_PARAM_OPSPEC_RETRY_COUNT 63
#define LLRP_IMPINJ_PARAM_ADVANCE_GPO_CONFIG 64
#define LLRP_IMPINJ_PARAM_ENABLE_OPTIM_READ 65
#define LLRP_IMPINJ_PARAM_ACCESS_SPEC_ORDERING 66
#define LLRP_IMPINJ_PARAM_ENABLE_RF_DOPPLER_FREQ 67
#define LLRP_IMPINJ_PARAM_ARRAY_VERSION 1520
#define LLRP_IMPINJ_PARAM_HUB_VERSIONS 1537
#define LLRP_IMPINJ_PARAM_HUB_CONFIGURATION 1538
static const value_string impinj_param_type[] = {
{ LLRP_IMPINJ_PARAM_REQUESTED_DATA, "Requested Data" },
{ LLRP_IMPINJ_PARAM_SUBREGULATORY_REGION, "Sub regulatory region" },
{ LLRP_IMPINJ_PARAM_INVENTORY_SEARCH_MODE, "Inventory search mode" },
{ LLRP_IMPINJ_PARAM_TAG_DIRECTION_REPORTING, "Tag direction reporting" },
{ LLRP_IMPINJ_PARAM_TAG_DIRECTION, "Tag direction" },
{ LLRP_IMPINJ_PARAM_FIXED_FREQUENCY_LIST, "Fixed frequency list" },
{ LLRP_IMPINJ_PARAM_REDUCED_POWER_FREQUENCY_LIST, "Reduced power frequency list" },
{ LLRP_IMPINJ_PARAM_LOW_DUTY_CYCLE, "Low duty cycle" },
{ LLRP_IMPINJ_PARAM_DETAILED_VERSION, "Detailed version" },
{ LLRP_IMPINJ_PARAM_FREQUENCY_CAPABILITIES, "Frequency capabilities" },
{ LLRP_IMPINJ_PARAM_TAG_INFORMATION, "Tag information" },
{ LLRP_IMPINJ_PARAM_FORKLIFT_CONFIGURATION, "Forklift configuration" },
{ LLRP_IMPINJ_PARAM_FORKLIFT_HEIGHT_THRESHOLD, "Forklift height threshold" },
{ LLRP_IMPINJ_PARAM_FORKLIFT_ZEROMOTION_TIME_THRESHOLD, "Forklift zero motion time threshold" },
{ LLRP_IMPINJ_PARAM_FORKLIFT_COMPANION_BOARD_INFO, "Forklift companion board info" },
{ LLRP_IMPINJ_PARAM_GPI_DEBOUNCE_CONFIGURATION, "Gpi debounce configuration" },
{ LLRP_IMPINJ_PARAM_READER_TEMPERATURE, "Reader temperature" },
{ LLRP_IMPINJ_PARAM_LINK_MONITOR_CONFIGURATION, "Link monitor configuration" },
{ LLRP_IMPINJ_PARAM_REPORT_BUFFER_CONFIGURATION, "Report buffer configuration" },
{ LLRP_IMPINJ_PARAM_ACCESS_SPEC_CONFIGURATION, "Access spec configuration" },
{ LLRP_IMPINJ_PARAM_BLOCK_WRITE_WORD_COUNT, "Block write word count" },
{ LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK, "Block permalock" },
{ LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK_OPSPEC_RESULT, "Block permalock OpSpec result" },
{ LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS, "Get block permalock status" },
{ LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS_OPSPEC_RESULT,"Get block permalock status OpSpec result" },
{ LLRP_IMPINJ_PARAM_SET_QT_CONFIG, "Set QT config" },
{ LLRP_IMPINJ_PARAM_SET_QT_CONFIG_OPSPEC_RESULT, "Set QT config OpSpec result" },
{ LLRP_IMPINJ_PARAM_GET_QT_CONFIG, "Get QT config" },
{ LLRP_IMPINJ_PARAM_GET_QT_CONFIG_OPSPEC_RESULT, "Get QT config OpSpec result" },
{ LLRP_IMPINJ_PARAM_TAG_REPORT_CONTENT_SELECTOR, "Tag report content selector" },
{ LLRP_IMPINJ_PARAM_ENABLE_SERIALIZED_TID, "Enable serialized TID" },
{ LLRP_IMPINJ_PARAM_ENABLE_RF_PHASE_ANGLE, "Enable RF phase angle" },
{ LLRP_IMPINJ_PARAM_ENABLE_PEAK_RSSI, "Enable peak RSSI" },
{ LLRP_IMPINJ_PARAM_ENABLE_GPS_COORDINATES, "Enable GPS coordinates" },
{ LLRP_IMPINJ_PARAM_SERIALIZED_TID, "Serialized TID" },
{ LLRP_IMPINJ_PARAM_RF_PHASE_ANGLE, "RF phase angle" },
{ LLRP_IMPINJ_PARAM_PEAK_RSSI, "Peak RSSI" },
{ LLRP_IMPINJ_PARAM_GPS_COORDINATES, "GPS coordinates" },
{ LLRP_IMPINJ_PARAM_LOOP_SPEC, "LoopSpec" },
{ LLRP_IMPINJ_PARAM_GPS_NMEA_SENTENCES, "GPS NMEA sentences" },
{ LLRP_IMPINJ_PARAM_GGA_SENTENCE, "GGA sentence" },
{ LLRP_IMPINJ_PARAM_RMC_SENTENCE, "RMC sentence" },
{ LLRP_IMPINJ_PARAM_OPSPEC_RETRY_COUNT, "OpSpec retry count" },
{ LLRP_IMPINJ_PARAM_ADVANCE_GPO_CONFIG, "Advanced GPO configuration" },
{ LLRP_IMPINJ_PARAM_ENABLE_OPTIM_READ, "Enable optimized read" },
{ LLRP_IMPINJ_PARAM_ACCESS_SPEC_ORDERING, "AccessSpec ordering" },
{ LLRP_IMPINJ_PARAM_ENABLE_RF_DOPPLER_FREQ, "Enable RF doppler frequency" },
{ LLRP_IMPINJ_PARAM_ARRAY_VERSION, "Array specific HW and version info" },
{ LLRP_IMPINJ_PARAM_HUB_VERSIONS, "Hub specific HW and version info" },
{ LLRP_IMPINJ_PARAM_HUB_CONFIGURATION, "Hub connection and fault state" },
{ 0, NULL }
};
static value_string_ext impinj_param_type_ext = VALUE_STRING_EXT_INIT(impinj_param_type);
/* Impinj requested data */
#define LLRP_IMPINJ_REQ_DATA_ALL_CAPABILITIES 1000
#define LLRP_IMPINJ_REQ_DATA_DETAILED_VERSION 1001
#define LLRP_IMPINJ_REQ_DATA_FREQUENCY_CAPABILITIES 1002
#define LLRP_IMPINJ_REQ_DATA_CONFIGURATION 2000
#define LLRP_IMPINJ_REQ_DATA_SUB_REGULATORY_REGION 2001
#define LLRP_IMPINJ_REQ_DATA_FORKLIFT_CONFIGURATION 2002
#define LLRP_IMPINJ_REQ_DATA_GPI_DEBOUNCE_CONFIGURATION 2003
#define LLRP_IMPINJ_REQ_DATA_READER_TEMPERATURE 2004
#define LLRP_IMPINJ_REQ_DATA_LINK_MONITOR_CONFIGURATION 2005
#define LLRP_IMPINJ_REQ_DATA_REPORT_BUFFER_CONFIGURATION 2006
#define LLRP_IMPINJ_REQ_DATA_ACCESS_SPEC_CONFIGURATION 2007
#define LLRP_IMPINJ_REQ_DATA_GPS_NMEA_SENTENCES 2008
static const value_string impinj_req_data[] = {
{ LLRP_IMPINJ_REQ_DATA_ALL_CAPABILITIES, "All capabilities" },
{ LLRP_IMPINJ_REQ_DATA_DETAILED_VERSION, "Detailed version" },
{ LLRP_IMPINJ_REQ_DATA_FREQUENCY_CAPABILITIES, "Frequency capabilities" },
{ LLRP_IMPINJ_REQ_DATA_CONFIGURATION, "Configuration" },
{ LLRP_IMPINJ_REQ_DATA_SUB_REGULATORY_REGION, "Sub regulatory region" },
{ LLRP_IMPINJ_REQ_DATA_FORKLIFT_CONFIGURATION, "Forklift configuration" },
{ LLRP_IMPINJ_REQ_DATA_GPI_DEBOUNCE_CONFIGURATION, "GPI debounce configuration" },
{ LLRP_IMPINJ_REQ_DATA_READER_TEMPERATURE, "Reader temperature" },
{ LLRP_IMPINJ_REQ_DATA_LINK_MONITOR_CONFIGURATION, "Link monitor configuration" },
{ LLRP_IMPINJ_REQ_DATA_REPORT_BUFFER_CONFIGURATION, "Report buffer configuration" },
{ LLRP_IMPINJ_REQ_DATA_ACCESS_SPEC_CONFIGURATION, "Access spec configuration" },
{ LLRP_IMPINJ_REQ_DATA_GPS_NMEA_SENTENCES, "GPS NMEA sentences" },
{ 0, NULL }
};
static value_string_ext impinj_req_data_ext = VALUE_STRING_EXT_INIT(impinj_req_data);
/* Impinj regulatory region */
#define LLRP_IMPINJ_REG_REGION_FCC_PART_15_247 0
#define LLRP_IMPINJ_REG_REGION_ETSI_EN_300_220 1
#define LLRP_IMPINJ_REG_REGION_ETSI_EN_302_208_WITH_LBT 2
#define LLRP_IMPINJ_REG_REGION_HONG_KONG_920_925_MHZ 3
#define LLRP_IMPINJ_REG_REGION_TAIWAN_922_928_MHZ 4
#define LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ 5
#define LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ_LOW_POWER 6
#define LLRP_IMPINJ_REG_REGION_ETSI_EN_302_208_V1_2_1 7
#define LLRP_IMPINJ_REG_REGION_KOREA_910_914_MHZ 8
#define LLRP_IMPINJ_REG_REGION_MALAYSIA_919_923_MHZ 9
#define LLRP_IMPINJ_REG_REGION_CHINA_920_925_MHZ 10
#define LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ_WITHOUT_LBT 11
#define LLRP_IMPINJ_REG_REGION_SOUTH_AFRICA_915_919_MHZ 12
#define LLRP_IMPINJ_REG_REGION_BRAZIL_902_907_AND_915_928_MHZ 13
#define LLRP_IMPINJ_REG_REGION_THAILAND_920_925_MHZ 14
#define LLRP_IMPINJ_REG_REGION_SINGAPORE_920_925_MHZ 15
#define LLRP_IMPINJ_REG_REGION_AUSTRALIA_920_926_MHZ 16
#define LLRP_IMPINJ_REG_REGION_INDIA_865_867_MHZ 17
#define LLRP_IMPINJ_REG_REGION_URUGUAY_916_928_MHZ 18
#define LLRP_IMPINJ_REG_REGION_VIETNAM_920_925_MHZ 19
#define LLRP_IMPINJ_REG_REGION_ISRAEL_915_917_MHZ 20
static const value_string impinj_reg_region[] = {
{ LLRP_IMPINJ_REG_REGION_FCC_PART_15_247, "Fcc part 15 247" },
{ LLRP_IMPINJ_REG_REGION_ETSI_EN_300_220, "ETSI EN 300 220" },
{ LLRP_IMPINJ_REG_REGION_ETSI_EN_302_208_WITH_LBT, "ETSI EN 302 208 with LBT" },
{ LLRP_IMPINJ_REG_REGION_HONG_KONG_920_925_MHZ, "Hong kong 920-925 MHz" },
{ LLRP_IMPINJ_REG_REGION_TAIWAN_922_928_MHZ, "Taiwan 922-928 MHz" },
{ LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ, "Japan 952-954 MHz" },
{ LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ_LOW_POWER, "Japan 952-954 MHz low power" },
{ LLRP_IMPINJ_REG_REGION_ETSI_EN_302_208_V1_2_1, "ETSI EN 302 208 v1.2.1" },
{ LLRP_IMPINJ_REG_REGION_KOREA_910_914_MHZ, "Korea 910-914 MHz" },
{ LLRP_IMPINJ_REG_REGION_MALAYSIA_919_923_MHZ, "Malaysia 919-923 MHz" },
{ LLRP_IMPINJ_REG_REGION_CHINA_920_925_MHZ, "China 920-925 MHz" },
{ LLRP_IMPINJ_REG_REGION_JAPAN_952_954_MHZ_WITHOUT_LBT, "Japan 952-954 MHz without LBT" },
{ LLRP_IMPINJ_REG_REGION_SOUTH_AFRICA_915_919_MHZ, "South africa 915-919 MHz" },
{ LLRP_IMPINJ_REG_REGION_BRAZIL_902_907_AND_915_928_MHZ, "Brazil 902-907 and 915-928 MHz" },
{ LLRP_IMPINJ_REG_REGION_THAILAND_920_925_MHZ, "Thailand 920-925 MHz" },
{ LLRP_IMPINJ_REG_REGION_SINGAPORE_920_925_MHZ, "Singapore 920-925 MHz" },
{ LLRP_IMPINJ_REG_REGION_AUSTRALIA_920_926_MHZ, "Australia 920-926 MHz" },
{ LLRP_IMPINJ_REG_REGION_INDIA_865_867_MHZ, "India 865-867 MHz" },
{ LLRP_IMPINJ_REG_REGION_URUGUAY_916_928_MHZ, "Uruguay 916-928 MHz" },
{ LLRP_IMPINJ_REG_REGION_VIETNAM_920_925_MHZ, "Vietnam 920-925 MHz" },
{ LLRP_IMPINJ_REG_REGION_ISRAEL_915_917_MHZ, "Israel 915-917 MHz" },
{ 0, NULL }
};
static value_string_ext impinj_reg_region_ext = VALUE_STRING_EXT_INIT(impinj_reg_region);
/* Impinj inventory search type */
#define LLRP_IMPINJ_SEARCH_TYPE_READER_SELECTED 0
#define LLRP_IMPINJ_SEARCH_TYPE_SINGLE_TARGET 1
#define LLRP_IMPINJ_SEARCH_TYPE_DUAL_TARGET 2
#define LLRP_IMPINJ_SEARCH_TYPE_SINGLE_TARGET_WITH_SUPP 3
static const value_string impinj_search_mode[] = {
{ LLRP_IMPINJ_SEARCH_TYPE_READER_SELECTED, "Reader selected" },
{ LLRP_IMPINJ_SEARCH_TYPE_SINGLE_TARGET, "Single target" },
{ LLRP_IMPINJ_SEARCH_TYPE_DUAL_TARGET, "Dual target" },
{ LLRP_IMPINJ_SEARCH_TYPE_SINGLE_TARGET_WITH_SUPP, "Single target with suppression" },
{ 0, NULL }
};
/* Impinj antenna configuration */
#define LLRP_IMPINJ_ANT_CONF_DUAL 1
#define LLRP_IMPINJ_ANT_CONF_QUAD 2
static const value_string impinj_ant_conf[] = {
{ LLRP_IMPINJ_ANT_CONF_DUAL, "Dual antenna" },
{ LLRP_IMPINJ_ANT_CONF_QUAD, "Quad antenna" },
{ 0, NULL }
};
/* Impinj tag direction */
#define LLRP_IMPINJ_TAG_DIR_INDETERMINED 0
#define LLRP_IMPINJ_TAG_DIR_FROM_2_TO_1 1
#define LLRP_IMPINJ_TAG_DIR_FROM_1_TO_2 2
static const value_string impinj_tag_dir[] = {
{ LLRP_IMPINJ_TAG_DIR_INDETERMINED, "Indeterminate" },
{ LLRP_IMPINJ_TAG_DIR_FROM_2_TO_1, "From side2 to side1" },
{ LLRP_IMPINJ_TAG_DIR_FROM_1_TO_2, "From side1 to side2" },
{ 0, NULL }
};
/* Impinj fixed frequency mode */
#define LLRP_IMPINJ_FIX_FREQ_MODE_DISABLED 0
#define LLRP_IMPINJ_FIX_FREQ_MODE_AUTO_SELECT 1
#define LLRP_IMPINJ_FIX_FREQ_MODE_CHANNEL_LIST 2
static const value_string impinj_fix_freq_mode[] = {
{ LLRP_IMPINJ_FIX_FREQ_MODE_DISABLED, "Disabled" },
{ LLRP_IMPINJ_FIX_FREQ_MODE_AUTO_SELECT, "Auto select" },
{ LLRP_IMPINJ_FIX_FREQ_MODE_CHANNEL_LIST, "Channel list" },
{ 0, NULL }
};
/* Impinj enabled/disabled */
#define LLRP_IMPINJ_BOOLEAN_DISABLED 0
#define LLRP_IMPINJ_BOOLEAN_ENABLED 1
static const value_string impinj_boolean[] = {
{ LLRP_IMPINJ_BOOLEAN_DISABLED, "Disabled" },
{ LLRP_IMPINJ_BOOLEAN_ENABLED, "Enabled" },
{ 0, NULL }
};
/* Impinj report buffer mode */
#define LLRP_IMPINJ_REPORT_BUFF_MODE_NORMAL 0
#define LLRP_IMPINJ_REPORT_BUFF_MODE_LOW_LATENCY 1
static const value_string impinj_report_buff_mode[] = {
{ LLRP_IMPINJ_REPORT_BUFF_MODE_NORMAL, "Normal" },
{ LLRP_IMPINJ_REPORT_BUFF_MODE_LOW_LATENCY, "Low latency" },
{ 0, NULL }
};
/* Impinj permalock operation result */
#define LLRP_IMPINJ_PERMALOCK_SUCCESS 0
#define LLRP_IMPINJ_PERMALOCK_INSUFFICIENT_POWER 1
#define LLRP_IMPINJ_PERMALOCK_NONSPECIFIC_TAG_ERROR 2
#define LLRP_IMPINJ_PERMALOCK_NO_RESPONSE_FROM_TAG 3
#define LLRP_IMPINJ_PERMALOCK_NONSPECIFIC_READER_ERROR 4
#define LLRP_IMPINJ_PERMALOCK_INCORRECT_PASSWORD_ERROR 5
#define LLRP_IMPINJ_PERMALOCK_TAG_MEMORY_OVERRUN_ERROR 6
static const value_string impinj_permalock_result[] = {
{ LLRP_IMPINJ_PERMALOCK_SUCCESS, "Success" },
{ LLRP_IMPINJ_PERMALOCK_INSUFFICIENT_POWER, "Insufficient power" },
{ LLRP_IMPINJ_PERMALOCK_NONSPECIFIC_TAG_ERROR, "Nonspecific tag error" },
{ LLRP_IMPINJ_PERMALOCK_NO_RESPONSE_FROM_TAG, "No response from tag" },
{ LLRP_IMPINJ_PERMALOCK_NONSPECIFIC_READER_ERROR, "Nonspecific reader error" },
{ LLRP_IMPINJ_PERMALOCK_INCORRECT_PASSWORD_ERROR, "Incorrect password error" },
{ LLRP_IMPINJ_PERMALOCK_TAG_MEMORY_OVERRUN_ERROR, "Tag memory overrun error" },
{ 0, NULL }
};
static value_string_ext impinj_permalock_result_ext = VALUE_STRING_EXT_INIT(impinj_permalock_result);
/* Impinj get block permalock operation result */
#define LLRP_IMPINJ_BLOCK_PERMALOCK_SUCCESS 0
#define LLRP_IMPINJ_BLOCK_PERMALOCK_NONSPECIFIC_TAG_ERROR 1
#define LLRP_IMPINJ_BLOCK_PERMALOCK_NO_RESPONSE_FROM_TAG 2
#define LLRP_IMPINJ_BLOCK_PERMALOCK_NONSPECIFIC_READER_ERROR 3
#define LLRP_IMPINJ_BLOCK_PERMALOCK_INCORRECT_PASSWORD_ERROR 4
#define LLRP_IMPINJ_BLOCK_PERMALOCK_TAG_MEMORY_OVERRUN_ERROR 5
static const value_string impinj_block_permalock_result[] = {
{ LLRP_IMPINJ_BLOCK_PERMALOCK_SUCCESS, "Success" },
{ LLRP_IMPINJ_BLOCK_PERMALOCK_NONSPECIFIC_TAG_ERROR, "Nonspecific tag error" },
{ LLRP_IMPINJ_BLOCK_PERMALOCK_NO_RESPONSE_FROM_TAG, "No response from tag" },
{ LLRP_IMPINJ_BLOCK_PERMALOCK_NONSPECIFIC_READER_ERROR, "Nonspecific reader error" },
{ LLRP_IMPINJ_BLOCK_PERMALOCK_INCORRECT_PASSWORD_ERROR, "Incorrect password error" },
{ LLRP_IMPINJ_BLOCK_PERMALOCK_TAG_MEMORY_OVERRUN_ERROR, "Tag memory overrun error" },
{ 0, NULL }
};
static value_string_ext impinj_block_permalock_result_ext = VALUE_STRING_EXT_INIT(impinj_block_permalock_result);
/* Impinj data profile parameter */
#define LLRP_IMPINJ_DATA_PROFILE_UNKNOWN 0
#define LLRP_IMPINJ_DATA_PROFILE_PRIVATE 1
#define LLRP_IMPINJ_DATA_PROFILE_PUBLIC 2
static const value_string impinj_data_profile[] = {
{ LLRP_IMPINJ_DATA_PROFILE_UNKNOWN, "Unknown" },
{ LLRP_IMPINJ_DATA_PROFILE_PRIVATE, "Private" },
{ LLRP_IMPINJ_DATA_PROFILE_PUBLIC, "Public" },
{ 0, NULL }
};
/* Impinj access range parameter */
#define LLRP_IMPINJ_ACCESS_RANGE_UNKNOWN 0
#define LLRP_IMPINJ_ACCESS_RANGE_NORMAL_RANGE 1
#define LLRP_IMPINJ_ACCESS_RANGE_SHORT_RANGE 2
static const value_string impinj_access_range[] = {
{ LLRP_IMPINJ_ACCESS_RANGE_UNKNOWN, "Unknown" },
{ LLRP_IMPINJ_ACCESS_RANGE_NORMAL_RANGE, "Normal range" },
{ LLRP_IMPINJ_ACCESS_RANGE_SHORT_RANGE, "Short range" },
{ 0, NULL }
};
/* Impinj persistence parameter */
#define LLRP_IMPINJ_PERSISTENCE_UNKNOWN 0
#define LLRP_IMPINJ_PERSISTENCE_TEMPORARY 1
#define LLRP_IMPINJ_PERSISTENCE_PERMANENT 2
static const value_string impinj_persistence[] = {
{ LLRP_IMPINJ_PERSISTENCE_UNKNOWN, "Unknown" },
{ LLRP_IMPINJ_PERSISTENCE_TEMPORARY, "Temporary" },
{ LLRP_IMPINJ_PERSISTENCE_PERMANENT, "Permanent" },
{ 0, NULL }
};
/* Impinj set QT config result */
#define LLRP_IMPINJ_SET_QT_CONFIG_SUCCESS 0
#define LLRP_IMPINJ_SET_QT_CONFIG_INSUFFICIENT_POWER 1
#define LLRP_IMPINJ_SET_QT_CONFIG_NONSPECIFIC_TAG_ERROR 2
#define LLRP_IMPINJ_SET_QT_CONFIG_NO_RESPONSE_FROM_TAG 3
#define LLRP_IMPINJ_SET_QT_CONFIG_NONSPECIFIC_READER_ERROR 4
#define LLRP_IMPINJ_SET_QT_CONFIG_INCORRECT_PASSWORD_ERROR 5
static const value_string impinj_set_qt_config_result[] = {
{ LLRP_IMPINJ_SET_QT_CONFIG_SUCCESS, "Success" },
{ LLRP_IMPINJ_SET_QT_CONFIG_INSUFFICIENT_POWER, "Insufficient power" },
{ LLRP_IMPINJ_SET_QT_CONFIG_NONSPECIFIC_TAG_ERROR, "Nonspecific tag error" },
{ LLRP_IMPINJ_SET_QT_CONFIG_NO_RESPONSE_FROM_TAG, "No response from tag" },
{ LLRP_IMPINJ_SET_QT_CONFIG_NONSPECIFIC_READER_ERROR, "Nonspecific reader error" },
{ LLRP_IMPINJ_SET_QT_CONFIG_INCORRECT_PASSWORD_ERROR, "Incorrect password error" },
{ 0, NULL }
};
static value_string_ext impinj_set_qt_config_result_ext = VALUE_STRING_EXT_INIT(impinj_set_qt_config_result);
/* Impinj get QT config result */
#define LLRP_IMPINJ_GET_QT_CONFIG_SUCCESS 0
#define LLRP_IMPINJ_GET_QT_CONFIG_NONSPECIFIC_TAG_ERROR 1
#define LLRP_IMPINJ_GET_QT_CONFIG_NO_RESPONSE_FROM_TAG 2
#define LLRP_IMPINJ_GET_QT_CONFIG_NONSPECIFIC_READER_ERROR 3
#define LLRP_IMPINJ_GET_QT_CONFIG_INCORRECT_PASSWORD_ERROR 4
static const value_string impinj_get_qt_config_result[] = {
{ LLRP_IMPINJ_GET_QT_CONFIG_SUCCESS, "Success" },
{ LLRP_IMPINJ_GET_QT_CONFIG_NONSPECIFIC_TAG_ERROR, "Nonspecific tag error" },
{ LLRP_IMPINJ_GET_QT_CONFIG_NO_RESPONSE_FROM_TAG, "No response from tag" },
{ LLRP_IMPINJ_GET_QT_CONFIG_NONSPECIFIC_READER_ERROR, "Nonspecific reader error" },
{ LLRP_IMPINJ_GET_QT_CONFIG_INCORRECT_PASSWORD_ERROR, "Incorrect password error" },
{ 0, NULL }
};
static value_string_ext impinj_get_qt_config_result_ext = VALUE_STRING_EXT_INIT(impinj_get_qt_config_result);
/* Impinj access spec ordering */
#define LLRP_IMPINJ_ACCESS_SPEC_ORDERING_FIFO 0
#define LLRP_IMPINJ_ACCESS_SPEC_ORDERING_ASCENDING 1
static const value_string impinj_access_spec_ordering[] = {
{ LLRP_IMPINJ_ACCESS_SPEC_ORDERING_FIFO, "FIFO" },
{ LLRP_IMPINJ_ACCESS_SPEC_ORDERING_ASCENDING, "Ascending" },
{ 0, NULL }
};
/* Impinj GPO mode */
#define LLRP_IMPINJ_GPO_MODE_NORMAL 0
#define LLRP_IMPINJ_GPO_MODE_PULSED 1
#define LLRP_IMPINJ_GPO_MODE_READER_OPERATIONAL_STATUS 2
#define LLRP_IMPINJ_GPO_MODE_LLRP_CONNECTION_STATUS 3
#define LLRP_IMPINJ_GPO_MODE_READER_INVENTORY_STATUS 4
#define LLRP_IMPINJ_GPO_MODE_NETWORK_CONNECTION_STATUS 5
#define LLRP_IMPINJ_GPO_MODE_READER_INVENTORY_TAGS_STATUS 6
static const value_string impinj_gpo_mode[] = {
{ LLRP_IMPINJ_GPO_MODE_NORMAL, "Normal" },
{ LLRP_IMPINJ_GPO_MODE_PULSED, "Pulsed" },
{ LLRP_IMPINJ_GPO_MODE_READER_OPERATIONAL_STATUS, "Reader operational status" },
{ LLRP_IMPINJ_GPO_MODE_LLRP_CONNECTION_STATUS, "LLRP connection status" },
{ LLRP_IMPINJ_GPO_MODE_READER_INVENTORY_STATUS, "Reader inventory status" },
{ LLRP_IMPINJ_GPO_MODE_NETWORK_CONNECTION_STATUS, "Network connection status" },
{ LLRP_IMPINJ_GPO_MODE_READER_INVENTORY_TAGS_STATUS, "Reader inventory tags status" },
{ 0, NULL }
};
static value_string_ext impinj_gpo_mode_ext = VALUE_STRING_EXT_INIT(impinj_gpo_mode);
/* Impinj Hub connected type */
#define LLRP_IMPINJ_HUB_CTYPE_UNKNOWN 0
#define LLRP_IMPINJ_HUB_CTYPE_DISCONNECTED 1
#define LLRP_IMPINJ_HUB_CTYPE_CONNECTED 2
static const value_string impinj_hub_connected_type[] = {
{ LLRP_IMPINJ_HUB_CTYPE_UNKNOWN, "Unknown" },
{ LLRP_IMPINJ_HUB_CTYPE_DISCONNECTED, "Disconnected" },
{ LLRP_IMPINJ_HUB_CTYPE_CONNECTED, "Connected" },
{ 0, NULL }
};
static value_string_ext impinj_hub_connected_type_ext = VALUE_STRING_EXT_INIT(impinj_hub_connected_type);
/* Impinj Hub fault type */
#define LLRP_IMPINJ_HUB_FTYPE_NO_FAULT 0
#define LLRP_IMPINJ_HUB_FTYPE_RFPOWER 1
#define LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB1 2
#define LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB2 3
#define LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB3 4
#define LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB4 5
#define LLRP_IMPINJ_HUB_FTYPE_NO_INIT 6
#define LLRP_IMPINJ_HUB_FTYPE_SERIAL_OVERFLOW 7
#define LLRP_IMPINJ_HUB_FTYPE_DISCONNECTED 8
static const value_string impinj_hub_fault_type[] = {
{ LLRP_IMPINJ_HUB_FTYPE_NO_FAULT, "No fault" },
{ LLRP_IMPINJ_HUB_FTYPE_RFPOWER, "RF power" },
{ LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB1, "RF power on hub 1" },
{ LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB2, "RF power on hub 2" },
{ LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB3, "RF power on hub 3" },
{ LLRP_IMPINJ_HUB_FTYPE_RFPOWER_HUB4, "RF power on hub 4" },
{ LLRP_IMPINJ_HUB_FTYPE_NO_INIT, "No init" },
{ LLRP_IMPINJ_HUB_FTYPE_SERIAL_OVERFLOW, "Serial overflow" },
{ LLRP_IMPINJ_HUB_FTYPE_DISCONNECTED, "Disconnected" },
{ 0, NULL },
};
static value_string_ext impinj_hub_fault_type_ext = VALUE_STRING_EXT_INIT(impinj_hub_fault_type);
/* Misc */
#define LLRP_ROSPEC_ALL 0
#define LLRP_ANTENNA_ALL 0
#define LLRP_GPI_PORT_ALL 0
#define LLRP_GPO_PORT_ALL 0
#define LLRP_ACCESSSPEC_ALL 0
#define LLRP_TLV_LEN_MIN 4
#define LLRP_HEADER_LENGTH 10
#define LLRP_NO_LIMIT 0
static const value_string unique_no_limit[] = {
{ LLRP_NO_LIMIT, "No Limit" },
{ 0, NULL },
};
static const value_string unique_all_rospecs[] = {
{ LLRP_ROSPEC_ALL, "All ROSpecs" },
{ 0, NULL },
};
static const value_string unique_all_access_specs[] = {
{ LLRP_ACCESSSPEC_ALL, "All Access Specs" },
{ 0, NULL },
};
static const value_string unique_all_antenna[] = {
{ LLRP_ANTENNA_ALL, "All Antenna" },
{ 0, NULL },
};
static const value_string unique_all_gpi_ports[] = {
{ LLRP_GPI_PORT_ALL, "All GPI Ports" },
{ 0, NULL },
};
static const value_string unique_all_gpo_ports[] = {
{ LLRP_GPO_PORT_ALL, "All GPO Ports" },
{ 0, NULL },
};
static unsigned
dissect_llrp_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
unsigned offset, const unsigned end, const unsigned depth);
static unsigned dissect_llrp_utf8_parameter(tvbuff_t * const tvb, packet_info *pinfo,
proto_tree * const tree, const unsigned hfindex, const unsigned offset)
{
int len;
len = tvb_get_ntohs(tvb, offset);
if(tvb_reported_length_remaining(tvb, offset) < len) {
expert_add_info_format(pinfo, tree, &ei_llrp_invalid_length,
"invalid length of string: claimed %u, available %u.",
len, tvb_reported_length_remaining(tvb, offset));
return offset + 2;
}
proto_tree_add_item(tree, hfindex, tvb,
offset, 2, ENC_BIG_ENDIAN | ENC_UTF_8);
return offset + len + 2;
}
static unsigned dissect_llrp_bit_field(tvbuff_t * const tvb,
proto_tree * const tree, const unsigned hfindex, const unsigned offset)
{
unsigned len;
len = tvb_get_ntohs(tvb, offset);
len = (len + 7) / 8;
proto_tree_add_item(tree, hf_llrp_length_bits, tvb,
offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hfindex, tvb,
offset + 2, len, ENC_NA);
return offset + len + 2;
}
static unsigned dissect_llrp_word_array(tvbuff_t * const tvb,
proto_tree * const tree, const unsigned hfindex, const unsigned offset)
{
unsigned len;
len = tvb_get_ntohs(tvb, offset);
len *= 2;
proto_tree_add_item(tree, hf_llrp_length_words, tvb,
offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hfindex, tvb,
offset + 2, len, ENC_NA);
return offset + len + 2;
}
static unsigned dissect_llrp_item_array(tvbuff_t * const tvb, packet_info *pinfo,
proto_tree * const tree, const unsigned hfindex_number,
const unsigned hfindex_item, const unsigned item_size, unsigned offset)
{
unsigned num;
num = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(tree, hfindex_number, tvb,
offset, 2, ENC_BIG_ENDIAN);
offset += 2;
if(tvb_reported_length_remaining(tvb, offset) < ((int)(num*item_size))) {
expert_add_info_format(pinfo, tree, &ei_llrp_invalid_length,
"Array longer than message");
return offset + tvb_reported_length_remaining(tvb, offset);
}
while(num--) {
proto_tree_add_item(tree, hfindex_item, tvb,
offset, item_size, ENC_BIG_ENDIAN);
offset += item_size;
}
return offset;
}
static unsigned
// NOLINTNEXTLINE(misc-no-recursion)
dissect_llrp_impinj_parameter(tvbuff_t *tvb, packet_info *pinfo, proto_tree *param_tree,
unsigned suboffset, const unsigned param_end)
{
uint32_t subtype;
subtype = tvb_get_ntohl(tvb, suboffset);
proto_item_append_text(param_tree, " (Impinj - %s)",
val_to_str_ext(subtype, &impinj_param_type_ext, "Unknown Type: %d"));
proto_tree_add_item(param_tree, hf_llrp_impinj_param_type, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
switch(subtype) {
case LLRP_IMPINJ_PARAM_TAG_INFORMATION:
case LLRP_IMPINJ_PARAM_FORKLIFT_CONFIGURATION:
case LLRP_IMPINJ_PARAM_ACCESS_SPEC_CONFIGURATION:
case LLRP_IMPINJ_PARAM_TAG_REPORT_CONTENT_SELECTOR:
case LLRP_IMPINJ_PARAM_GPS_NMEA_SENTENCES:
case LLRP_IMPINJ_PARAM_HUB_VERSIONS:
/* Just parameters */
break;
case LLRP_IMPINJ_PARAM_REQUESTED_DATA:
proto_tree_add_item(param_tree, hf_llrp_impinj_req_data, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_SUBREGULATORY_REGION:
proto_tree_add_item(param_tree, hf_llrp_impinj_reg_region, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_INVENTORY_SEARCH_MODE:
proto_tree_add_item(param_tree, hf_llrp_impinj_search_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_TAG_DIRECTION_REPORTING:
proto_tree_add_item(param_tree, hf_llrp_impinj_en_tag_dir, tvb, suboffset, 2, ENC_NA);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_impinj_antenna_conf, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 4, ENC_NA);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_TAG_DIRECTION:
proto_tree_add_item(param_tree, hf_llrp_decision_time, tvb, suboffset, 8, ENC_BIG_ENDIAN);
suboffset += 8;
proto_tree_add_item(param_tree, hf_llrp_impinj_tag_dir, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_confidence, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_FIXED_FREQUENCY_LIST:
proto_tree_add_item(param_tree, hf_llrp_impinj_fix_freq_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 2, ENC_NA);
suboffset += 2;
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_channels, hf_llrp_channel, 2, suboffset);
break;
case LLRP_IMPINJ_PARAM_REDUCED_POWER_FREQUENCY_LIST:
proto_tree_add_item(param_tree, hf_llrp_impinj_reduce_power_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 2, ENC_NA);
suboffset += 2;
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_channels, hf_llrp_channel, 2, suboffset);
break;
case LLRP_IMPINJ_PARAM_LOW_DUTY_CYCLE:
proto_tree_add_item(param_tree, hf_llrp_impinj_low_duty_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_empty_field_timeout, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_field_ping_interval, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_DETAILED_VERSION:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_model_name, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_serial_number, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_soft_ver, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_firm_ver, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_fpga_ver, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_pcba_ver, suboffset);
break;
case LLRP_IMPINJ_PARAM_FREQUENCY_CAPABILITIES:
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_freqs, hf_llrp_frequency, 4, suboffset);
break;
case LLRP_IMPINJ_PARAM_FORKLIFT_HEIGHT_THRESHOLD:
proto_tree_add_item(param_tree, hf_llrp_height_thresh, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_FORKLIFT_ZEROMOTION_TIME_THRESHOLD:
proto_tree_add_item(param_tree, hf_llrp_zero_motion_thresh, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_FORKLIFT_COMPANION_BOARD_INFO:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_board_manufacturer, suboffset);
proto_tree_add_item(param_tree, hf_llrp_fw_ver_hex, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_hw_ver_hex, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_GPI_DEBOUNCE_CONFIGURATION:
proto_tree_add_item(param_tree, hf_llrp_gpi_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpi_debounce, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_READER_TEMPERATURE:
proto_tree_add_item(param_tree, hf_llrp_temperature, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_LINK_MONITOR_CONFIGURATION:
proto_tree_add_item(param_tree, hf_llrp_impinj_link_monitor_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_link_down_thresh, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_REPORT_BUFFER_CONFIGURATION:
proto_tree_add_item(param_tree, hf_llrp_impinj_report_buff_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_BLOCK_WRITE_WORD_COUNT:
proto_tree_add_item(param_tree, hf_llrp_word_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_block_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_block_mask, tvb, suboffset, 2, ENC_NA);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_BLOCK_PERMALOCK_OPSPEC_RESULT:
proto_tree_add_item(param_tree, hf_llrp_permalock_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_block_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_block_range, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_GET_BLOCK_PERMALOCK_STATUS_OPSPEC_RESULT:
proto_tree_add_item(param_tree, hf_llrp_block_permalock_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_SET_QT_CONFIG:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_impinj_data_profile, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_impinj_access_range, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_impinj_persistence, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 4, ENC_NA);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_SET_QT_CONFIG_OPSPEC_RESULT:
proto_tree_add_item(param_tree, hf_llrp_set_qt_config_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_GET_QT_CONFIG:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_GET_QT_CONFIG_OPSPEC_RESULT:
proto_tree_add_item(param_tree, hf_llrp_get_qt_config_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_impinj_data_profile, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_impinj_access_range, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 4, ENC_NA);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_ENABLE_SERIALIZED_TID:
proto_tree_add_item(param_tree, hf_llrp_impinj_serialized_tid_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ENABLE_RF_PHASE_ANGLE:
proto_tree_add_item(param_tree, hf_llrp_impinj_rf_phase_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ENABLE_PEAK_RSSI:
proto_tree_add_item(param_tree, hf_llrp_impinj_peak_rssi_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ENABLE_GPS_COORDINATES:
proto_tree_add_item(param_tree, hf_llrp_impinj_gps_coordinates_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_SERIALIZED_TID:
proto_tree_add_item(param_tree, hf_llrp_impinj_tid, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_RF_PHASE_ANGLE:
proto_tree_add_item(param_tree, hf_llrp_phase_angle, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_PEAK_RSSI:
proto_tree_add_item(param_tree, hf_llrp_rssi, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_GPS_COORDINATES:
proto_tree_add_item(param_tree, hf_llrp_latitude, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_longitude, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_LOOP_SPEC:
proto_tree_add_item(param_tree, hf_llrp_loop_count, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_GGA_SENTENCE:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_gga_sentence, suboffset);
break;
case LLRP_IMPINJ_PARAM_RMC_SENTENCE:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_rmc_sentence, suboffset);
break;
case LLRP_IMPINJ_PARAM_OPSPEC_RETRY_COUNT:
proto_tree_add_item(param_tree, hf_llrp_retry_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ADVANCE_GPO_CONFIG:
proto_tree_add_item(param_tree, hf_llrp_gpo_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_impinj_gpo_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpo_pulse_dur, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_IMPINJ_PARAM_ENABLE_OPTIM_READ:
proto_tree_add_item(param_tree, hf_llrp_impinj_optim_read_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ACCESS_SPEC_ORDERING:
proto_tree_add_item(param_tree, hf_llrp_impinj_access_spec_ordering, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ENABLE_RF_DOPPLER_FREQ:
proto_tree_add_item(param_tree, hf_llrp_impinj_rf_doppler_mode, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_IMPINJ_PARAM_ARRAY_VERSION:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_serial_number, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_firm_ver, suboffset);
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_pcba_ver, suboffset);
break;
case LLRP_IMPINJ_PARAM_HUB_CONFIGURATION:
proto_tree_add_item(param_tree, hf_llrp_impinj_hub_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_impinj_hub_connected_type, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_impinj_hub_fault_type, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
default:
return suboffset;
}
/* Each custom parameters ends with optional custom parameter, disscect it */
return dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, 0);
}
static unsigned
// NOLINTNEXTLINE(misc-no-recursion)
dissect_llrp_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
unsigned offset, const unsigned end, const unsigned depth)
{
uint8_t has_length;
uint16_t len, type;
unsigned real_len, param_end;
unsigned suboffset;
unsigned num;
proto_item *ti;
proto_tree *param_tree;
while (((int)(end - offset)) > 0)
{
has_length = !(tvb_get_uint8(tvb, offset) & 0x80);
if (has_length)
{
type = tvb_get_ntohs(tvb, offset);
len = tvb_get_ntohs(tvb, offset + 2);
if (len < LLRP_TLV_LEN_MIN)
real_len = LLRP_TLV_LEN_MIN;
else if (len > tvb_reported_length_remaining(tvb, offset))
real_len = tvb_reported_length_remaining(tvb, offset);
else
real_len = len;
param_end = offset + real_len;
if (depth > 16) {
return param_end;
}
ti = proto_tree_add_none_format(tree, hf_llrp_param, tvb,
offset, real_len, "TLV Parameter: %s",
val_to_str_ext(type, &tlv_type_ext, "Unknown Type: %d"));
param_tree = proto_item_add_subtree(ti, ett_llrp_param);
proto_tree_add_item(param_tree, hf_llrp_tlv_type, tvb,
offset, 2, ENC_BIG_ENDIAN);
offset += 2;
ti = proto_tree_add_item(param_tree, hf_llrp_tlv_len, tvb,
offset, 2, ENC_BIG_ENDIAN);
if (len != real_len)
expert_add_info_format(pinfo, ti, &ei_llrp_invalid_length,
"Invalid length field: claimed %u, should be %u.",
len, real_len);
offset += 2;
suboffset = offset;
increment_dissection_depth(pinfo);
switch(type) {
case LLRP_TLV_RO_BOUND_SPEC:
case LLRP_TLV_UHF_CAPABILITIES:
case LLRP_TLV_ACCESS_COMMAND:
case LLRP_TLV_TAG_REPORT_DATA:
case LLRP_TLV_RF_SURVEY_REPORT_DATA:
case LLRP_TLV_READER_EVENT_NOTI_SPEC:
case LLRP_TLV_READER_EVENT_NOTI_DATA:
case LLRP_TLV_C1G2_UHF_RF_MD_TBL:
case LLRP_TLV_C1G2_TAG_SPEC:
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_UTC_TIMESTAMP:
case LLRP_TLV_UPTIME:
proto_tree_add_item(param_tree, hf_llrp_microseconds, tvb, suboffset, 8, ENC_BIG_ENDIAN);
suboffset += 8;
break;
case LLRP_TLV_GENERAL_DEVICE_CAP:
proto_tree_add_item(param_tree, hf_llrp_max_supported_antenna, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_can_set_antenna_prop, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_has_utc_clock, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_device_manufacturer, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_model, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_firmware_version, suboffset);
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_MAX_RECEIVE_SENSE:
proto_tree_add_item(param_tree, hf_llrp_max_receive_sense, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_RECEIVE_SENSE_ENTRY:
proto_tree_add_item(param_tree, hf_llrp_index, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_receive_sense, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_ANTENNA_RCV_SENSE_RANGE:
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_receive_sense_index_min, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_receive_sense_index_max, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_ANTENNA_AIR_PROTO:
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_protocols, hf_llrp_protocol_id, 1, suboffset);
break;
case LLRP_TLV_GPIO_CAPABILITIES:
proto_tree_add_item(param_tree, hf_llrp_num_gpi, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_num_gpo, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_LLRP_CAPABILITIES:
proto_tree_add_item(param_tree, hf_llrp_can_do_survey, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_report_buffer_warning, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_support_client_opspec, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_stateaware, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_support_holding, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_max_priority_supported, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_client_opspec_timeout, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_max_num_rospec, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_num_spec_per_rospec, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_num_inventory_per_aispec, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_num_accessspec, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_num_opspec_per_accressspec, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_REGU_CAPABILITIES:
proto_tree_add_item(param_tree, hf_llrp_country_code, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_comm_standard, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_XMIT_POWER_LEVEL_ENTRY:
proto_tree_add_item(param_tree, hf_llrp_index, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_transmit_power, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_FREQ_INFORMATION:
proto_tree_add_item(param_tree, hf_llrp_hopping, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_FREQ_HOP_TABLE:
proto_tree_add_item(param_tree, hf_llrp_hop_table_id, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_hops, hf_llrp_frequency, 4, suboffset);
break;
case LLRP_TLV_FIXED_FREQ_TABLE:
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_num_freqs, hf_llrp_frequency, 4, suboffset);
break;
case LLRP_TLV_RF_SURVEY_FREQ_CAP:
proto_tree_add_item(param_tree, hf_llrp_min_freq, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_freq, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_RO_SPEC:
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_priority, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_cur_state, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_RO_SPEC_START_TRIGGER:
proto_tree_add_item(param_tree, hf_llrp_rospec_start_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_PER_TRIGGER_VAL:
proto_tree_add_item(param_tree, hf_llrp_offset, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_period, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_GPI_TRIGGER_VAL:
proto_tree_add_item(param_tree, hf_llrp_gpi_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpi_event, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_timeout, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_RO_SPEC_STOP_TRIGGER:
proto_tree_add_item(param_tree, hf_llrp_rospec_stop_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_duration_trig, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_AI_SPEC:
suboffset = dissect_llrp_item_array(tvb, pinfo, param_tree,
hf_llrp_antenna_count, hf_llrp_antenna, 2, suboffset);
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_AI_SPEC_STOP:
proto_tree_add_item(param_tree, hf_llrp_aispec_stop_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_duration_trig, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_TAG_OBSERV_TRIGGER:
proto_tree_add_item(param_tree, hf_llrp_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rfu, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_number_of_tags, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_number_of_attempts, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_t, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_timeout, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_INVENTORY_PARAM_SPEC:
proto_tree_add_item(param_tree, hf_llrp_inventory_spec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_protocol_id, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_RF_SURVEY_SPEC:
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_start_freq, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_stop_freq, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_RF_SURVEY_SPEC_STOP_TR:
proto_tree_add_item(param_tree, hf_llrp_stop_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_duration, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_n_4, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_LOOP_SPEC:
proto_tree_add_item(param_tree, hf_llrp_loop_count, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_ACCESS_SPEC:
proto_tree_add_item(param_tree, hf_llrp_accessspec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_protocol_id, tvb, suboffset, 1, ENC_BIG_ENDIAN);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_access_cur_state, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_ACCESS_SPEC_STOP_TRIG:
proto_tree_add_item(param_tree, hf_llrp_access_stop_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_operation_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_CLIENT_REQ_OP_SPEC:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_CLIENT_REQ_RESPONSE:
proto_tree_add_item(param_tree, hf_llrp_accessspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_LLRP_CONF_STATE_VAL:
proto_tree_add_item(param_tree, hf_llrp_conf_value, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_IDENT:
proto_tree_add_item(param_tree, hf_llrp_id_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
num = tvb_get_ntohs(tvb, suboffset);
proto_tree_add_item(param_tree, hf_llrp_reader_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += num;
break;
case LLRP_TLV_GPO_WRITE_DATA:
proto_tree_add_item(param_tree, hf_llrp_gpo_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpo_data, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_KEEPALIVE_SPEC:
proto_tree_add_item(param_tree, hf_llrp_keepalive_trig_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_time_iterval, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_ANTENNA_PROPS:
proto_tree_add_item(param_tree, hf_llrp_antenna_connected, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_antenna_gain, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_ANTENNA_CONF:
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_RF_RECEIVER:
proto_tree_add_item(param_tree, hf_llrp_receiver_sense, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_RF_TRANSMITTER:
proto_tree_add_item(param_tree, hf_llrp_hop_table_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_channel_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_transmit_power, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_GPI_PORT_CURRENT_STATE:
proto_tree_add_item(param_tree, hf_llrp_gpi_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpi_config, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_gpi_state, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_EVENTS_AND_REPORTS:
proto_tree_add_item(param_tree, hf_llrp_hold_events_and_reports, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_RO_REPORT_SPEC:
proto_tree_add_item(param_tree, hf_llrp_ro_report_trig, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_n_2, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_TAG_REPORT_CONTENT_SEL:
proto_tree_add_item(param_tree, hf_llrp_enable_rospec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_spec_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_inv_spec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_channel_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_peak_rssi, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_first_seen, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_last_seen, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_seen_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_enable_accessspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_ACCESS_REPORT_SPEC:
proto_tree_add_item(param_tree, hf_llrp_access_report_trig, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_EPC_DATA:
suboffset = dissect_llrp_bit_field(tvb, param_tree, hf_llrp_epc, suboffset);
break;
case LLRP_TLV_FREQ_RSSI_LEVEL_ENTRY:
proto_tree_add_item(param_tree, hf_llrp_frequency, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_bandwidth, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_average_rssi, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_peak_rssi, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_EVENT_NOTIF_STATE:
proto_tree_add_item(param_tree, hf_llrp_event_type, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_notif_state, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_HOPPING_EVENT:
proto_tree_add_item(param_tree, hf_llrp_hop_table_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_next_chan_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_GPI_EVENT:
proto_tree_add_item(param_tree, hf_llrp_gpi_port, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_gpi_event, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_RO_SPEC_EVENT:
proto_tree_add_item(param_tree, hf_llrp_roevent_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_prem_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_REPORT_BUF_LEVEL_WARN:
proto_tree_add_item(param_tree, hf_llrp_buffer_full_percentage, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_REPORT_BUF_OVERFLOW_ERR: break;
case LLRP_TLV_READER_EXCEPTION_EVENT:
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_message, suboffset);
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_RF_SURVEY_EVENT:
proto_tree_add_item(param_tree, hf_llrp_rfevent_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_spec_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_AI_SPEC_EVENT:
proto_tree_add_item(param_tree, hf_llrp_aievent_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_spec_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_ANTENNA_EVENT:
proto_tree_add_item(param_tree, hf_llrp_antenna_event_type, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_CONN_ATTEMPT_EVENT:
proto_tree_add_item(param_tree, hf_llrp_conn_status, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_CONN_CLOSE_EVENT:
break;
case LLRP_TLV_SPEC_LOOP_EVENT:
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_loop_count, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_LLRP_STATUS:
proto_tree_add_item(param_tree, hf_llrp_status_code, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_utf8_parameter(tvb, pinfo, param_tree, hf_llrp_error_desc, suboffset);
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_FIELD_ERROR:
proto_tree_add_item(param_tree, hf_llrp_field_num, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_error_code, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_PARAM_ERROR:
proto_tree_add_item(param_tree, hf_llrp_parameter_type, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_error_code, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_C1G2_LLRP_CAP:
proto_tree_add_item(param_tree, hf_llrp_can_support_block_erase, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_support_block_write, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_support_block_permalock, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_support_tag_recomm, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_support_UMI_method2, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_can_support_XPC, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_max_num_filter_per_query, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_UHF_RF_MD_TBL_ENT:
proto_tree_add_item(param_tree, hf_llrp_mode_ident, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_DR, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_hag_conformance, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_mod, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_flm, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_m, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_bdr, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_pie, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_min_tari, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_max_tari, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_step_tari, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_C1G2_INVENTORY_COMMAND:
proto_tree_add_item(param_tree, hf_llrp_inventory_state_aware, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_C1G2_FILTER:
proto_tree_add_item(param_tree, hf_llrp_trunc, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_C1G2_TAG_INV_MASK:
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_bit_field(tvb, param_tree, hf_llrp_tag_mask, suboffset);
break;
case LLRP_TLV_C1G2_TAG_INV_AWARE_FLTR:
proto_tree_add_item(param_tree, hf_llrp_aware_filter_target, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_aware_filter_action, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_TAG_INV_UNAWR_FLTR:
proto_tree_add_item(param_tree, hf_llrp_unaware_filter_action, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_RF_CONTROL:
proto_tree_add_item(param_tree, hf_llrp_mode_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_tari, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_SINGULATION_CTRL:
proto_tree_add_item(param_tree, hf_llrp_session, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_tag_population, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_tag_transit_time, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_C1G2_TAG_INV_AWARE_SING:
proto_tree_add_item(param_tree, hf_llrp_sing_i, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_sing_s, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_sing_a, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_TARGET_TAG:
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_match, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_bit_field(tvb, param_tree, hf_llrp_tag_mask, suboffset);
suboffset = dissect_llrp_bit_field(tvb, param_tree, hf_llrp_tag_data, suboffset);
break;
case LLRP_TLV_C1G2_READ:
case LLRP_TLV_C1G2_BLK_ERASE:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_word_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_word_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_WRITE:
case LLRP_TLV_C1G2_BLK_WRITE:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_word_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_word_array(tvb, param_tree, hf_llrp_write_data, suboffset);
break;
case LLRP_TLV_C1G2_KILL:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_kill_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
break;
case LLRP_TLV_C1G2_RECOMMISSION:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_kill_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_kill_3, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_kill_2, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_kill_l, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_LOCK:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
suboffset = dissect_llrp_parameters(tvb, pinfo, param_tree, suboffset, param_end, depth+1);
break;
case LLRP_TLV_C1G2_LOCK_PAYLOAD:
proto_tree_add_item(param_tree, hf_llrp_privilege, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_data_field, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_BLK_PERMALOCK:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 4;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_block_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_word_array(tvb, param_tree, hf_llrp_block_mask, suboffset);
break;
case LLRP_TLV_C1G2_GET_BLK_PERMALOCK:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_access_pass, tvb, suboffset, 4, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_mb, tvb, suboffset, 1, ENC_NA);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_block_pointer, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_block_range, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_EPC_MEMORY_SLCTOR:
proto_tree_add_item(param_tree, hf_llrp_enable_crc, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_enable_pc, tvb, suboffset, 1, ENC_NA);
proto_tree_add_item(param_tree, hf_llrp_enable_xpc, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
break;
case LLRP_TLV_C1G2_READ_OP_SPEC_RES:
proto_tree_add_item(param_tree, hf_llrp_access_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_word_array(tvb, param_tree, hf_llrp_read_data, suboffset);
break;
case LLRP_TLV_C1G2_WRT_OP_SPEC_RES:
case LLRP_TLV_C1G2_BLK_WRT_OP_SPC_RES:
proto_tree_add_item(param_tree, hf_llrp_access_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
proto_tree_add_item(param_tree, hf_llrp_num_words_written, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_KILL_OP_SPEC_RES:
case LLRP_TLV_C1G2_RECOM_OP_SPEC_RES:
case LLRP_TLV_C1G2_LOCK_OP_SPEC_RES:
case LLRP_TLV_C1G2_BLK_ERS_OP_SPC_RES:
case LLRP_TLV_C1G2_BLK_PRL_OP_SPC_RES:
proto_tree_add_item(param_tree, hf_llrp_access_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
break;
case LLRP_TLV_C1G2_BLK_PRL_STAT_RES:
proto_tree_add_item(param_tree, hf_llrp_access_result, tvb, suboffset, 1, ENC_NA);
suboffset += 1;
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
suboffset += 2;
suboffset = dissect_llrp_word_array(tvb, param_tree, hf_llrp_permlock_status, suboffset);
break;
case LLRP_TLV_CUSTOM_PARAMETER:
proto_tree_add_item_ret_uint(param_tree, hf_llrp_vendor_id, tvb, suboffset, 4, ENC_BIG_ENDIAN, &num);
suboffset += 4;
switch(num) {
case LLRP_VENDOR_IMPINJ:
suboffset = dissect_llrp_impinj_parameter(tvb, pinfo, param_tree, suboffset, param_end);
break;
default:
proto_tree_add_item(param_tree, hf_llrp_vendor_unknown, tvb, suboffset, len-4-2-2, ENC_NA);
suboffset += len-4-2-2;
break;
}
break;
}
decrement_dissection_depth(pinfo);
/* Have we decoded exactly the number of bytes declared in the parameter? */
if(suboffset != param_end) {
/* Report problem */
expert_add_info_format(pinfo, param_tree, &ei_llrp_invalid_length,
"Incorrect length of parameter: %u bytes decoded, but %u bytes claimed.",
suboffset - offset + 4, real_len);
}
/* The len field includes the 4-byte parameter header that we've
* already accounted for in offset */
offset += real_len - 4;
}
else
{
type = tvb_get_uint8(tvb, offset) & 0x7F;
switch (type)
{
case LLRP_TV_ANTENNA_ID:
real_len = LLRP_TV_LEN_ANTENNA_ID; break;
case LLRP_TV_FIRST_SEEN_TIME_UTC:
real_len = LLRP_TV_LEN_FIRST_SEEN_TIME_UTC; break;
case LLRP_TV_FIRST_SEEN_TIME_UPTIME:
real_len = LLRP_TV_LEN_FIRST_SEEN_TIME_UPTIME; break;
case LLRP_TV_LAST_SEEN_TIME_UTC:
real_len = LLRP_TV_LEN_LAST_SEEN_TIME_UTC; break;
case LLRP_TV_LAST_SEEN_TIME_UPTIME:
real_len = LLRP_TV_LEN_LAST_SEEN_TIME_UPTIME; break;
case LLRP_TV_PEAK_RSSI:
real_len = LLRP_TV_LEN_PEAK_RSSI; break;
case LLRP_TV_CHANNEL_INDEX:
real_len = LLRP_TV_LEN_CHANNEL_INDEX; break;
case LLRP_TV_TAG_SEEN_COUNT:
real_len = LLRP_TV_LEN_TAG_SEEN_COUNT; break;
case LLRP_TV_RO_SPEC_ID:
real_len = LLRP_TV_LEN_RO_SPEC_ID; break;
case LLRP_TV_INVENTORY_PARAM_SPEC_ID:
real_len = LLRP_TV_LEN_INVENTORY_PARAM_SPEC_ID; break;
case LLRP_TV_C1G2_CRC:
real_len = LLRP_TV_LEN_C1G2_CRC; break;
case LLRP_TV_C1G2_PC:
real_len = LLRP_TV_LEN_C1G2_PC; break;
case LLRP_TV_EPC96:
real_len = LLRP_TV_LEN_EPC96; break;
case LLRP_TV_SPEC_INDEX:
real_len = LLRP_TV_LEN_SPEC_INDEX; break;
case LLRP_TV_CLIENT_REQ_OP_SPEC_RES:
real_len = LLRP_TV_LEN_CLIENT_REQ_OP_SPEC_RES; break;
case LLRP_TV_ACCESS_SPEC_ID:
real_len = LLRP_TV_LEN_ACCESS_SPEC_ID; break;
case LLRP_TV_OP_SPEC_ID:
real_len = LLRP_TV_LEN_OP_SPEC_ID; break;
case LLRP_TV_C1G2_SINGULATION_DET:
real_len = LLRP_TV_LEN_C1G2_SINGULATION_DET; break;
case LLRP_TV_C1G2_XPC_W1:
real_len = LLRP_TV_LEN_C1G2_XPC_W1; break;
case LLRP_TV_C1G2_XPC_W2:
real_len = LLRP_TV_LEN_C1G2_XPC_W2; break;
default:
/* ???
* No need to mark it, since the hf_llrp_tv_type field
* will already show up as 'unknown'. */
real_len = 0;
break;
}
ti = proto_tree_add_none_format(tree, hf_llrp_param, tvb,
offset, real_len + 1, "TV Parameter : %s",
val_to_str_ext(type, &tv_type_ext, "Unknown Type: %d"));
param_tree = proto_item_add_subtree(ti, ett_llrp_param);
proto_tree_add_item(param_tree, hf_llrp_tv_type, tvb,
offset, 1, ENC_BIG_ENDIAN);
offset++;
suboffset = offset;
switch (type)
{
case LLRP_TV_ANTENNA_ID:
proto_tree_add_item(param_tree, hf_llrp_antenna_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_FIRST_SEEN_TIME_UTC:
case LLRP_TV_FIRST_SEEN_TIME_UPTIME:
case LLRP_TV_LAST_SEEN_TIME_UTC:
case LLRP_TV_LAST_SEEN_TIME_UPTIME:
proto_tree_add_item(param_tree, hf_llrp_microseconds, tvb, suboffset, 8, ENC_BIG_ENDIAN);
break;
case LLRP_TV_PEAK_RSSI:
proto_tree_add_item(param_tree, hf_llrp_peak_rssi, tvb, suboffset, 1, ENC_NA);
break;
case LLRP_TV_CHANNEL_INDEX:
proto_tree_add_item(param_tree, hf_llrp_channel_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_TAG_SEEN_COUNT:
proto_tree_add_item(param_tree, hf_llrp_tag_count, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_RO_SPEC_ID:
proto_tree_add_item(param_tree, hf_llrp_rospec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
break;
case LLRP_TV_INVENTORY_PARAM_SPEC_ID:
proto_tree_add_item(param_tree, hf_llrp_inventory_spec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_C1G2_CRC:
proto_tree_add_item(param_tree, hf_llrp_crc, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_C1G2_PC:
proto_tree_add_item(param_tree, hf_llrp_pc_bits, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_EPC96:
proto_tree_add_item(param_tree, hf_llrp_epc, tvb, suboffset, 96/8, ENC_NA);
break;
case LLRP_TV_SPEC_INDEX:
proto_tree_add_item(param_tree, hf_llrp_spec_idx, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_CLIENT_REQ_OP_SPEC_RES:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_ACCESS_SPEC_ID:
proto_tree_add_item(param_tree, hf_llrp_accessspec_id, tvb, suboffset, 4, ENC_BIG_ENDIAN);
break;
case LLRP_TV_OP_SPEC_ID:
proto_tree_add_item(param_tree, hf_llrp_opspec_id, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_C1G2_SINGULATION_DET:
proto_tree_add_item(param_tree, hf_llrp_num_coll, tvb, suboffset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(param_tree, hf_llrp_num_empty, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_C1G2_XPC_W1:
proto_tree_add_item(param_tree, hf_llrp_xpc_w1, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
case LLRP_TV_C1G2_XPC_W2:
proto_tree_add_item(param_tree, hf_llrp_xpc_w2, tvb, suboffset, 2, ENC_BIG_ENDIAN);
break;
};
/* Unlike for TLV's, real_len for TV's doesn't include the standard
* header length, so just add it straight to the offset. */
offset += real_len;
}
}
return offset;
}
static unsigned
dissect_llrp_impinj_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset)
{
uint8_t subtype;
subtype = tvb_get_uint8(tvb, offset);
col_append_fstr(pinfo->cinfo, COL_INFO, " (Impinj - %s)",
val_to_str_ext(subtype, &impinj_msg_subtype_ext, "Unknown Type: %d"));
proto_tree_add_item(tree, hf_llrp_impinj_msg_type, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
switch(subtype) {
case LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS:
proto_tree_add_item(tree, hf_llrp_rfu, tvb, offset, 4, ENC_NA);
offset += 4;
break;
case LLRP_IMPINJ_TYPE_ENABLE_EXTENSIONS_RESPONSE:
/* Just parameters */
break;
case LLRP_IMPINJ_TYPE_SAVE_SETTINGS:
proto_tree_add_item(tree, hf_llrp_save_config, tvb, offset, 1, ENC_NA);
offset += 1;
break;
case LLRP_IMPINJ_TYPE_SAVE_SETTINGS_RESPONSE:
/* Just parameters */
break;
}
/* Just return offset, parameters will be dissected by our callee */
return offset;
}
static void
dissect_llrp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
uint16_t type, unsigned offset)
{
bool ends_with_parameters;
uint8_t requested_data;
uint32_t vendor;
proto_item *request_item, *antenna_item, *gpi_item, *gpo_item;
unsigned (*dissect_custom_message)(tvbuff_t *tvb,
packet_info *pinfo, proto_tree *tree, unsigned offset) = NULL;
ends_with_parameters = false;
switch (type)
{
/* Simple cases just have normal TLV or TV parameters */
case LLRP_TYPE_CLOSE_CONNECTION_RESPONSE:
case LLRP_TYPE_GET_READER_CAPABILITIES_RESPONSE:
case LLRP_TYPE_ADD_ROSPEC:
case LLRP_TYPE_ADD_ROSPEC_RESPONSE:
case LLRP_TYPE_DELETE_ROSPEC_RESPONSE:
case LLRP_TYPE_START_ROSPEC_RESPONSE:
case LLRP_TYPE_STOP_ROSPEC_RESPONSE:
case LLRP_TYPE_ENABLE_ROSPEC_RESPONSE:
case LLRP_TYPE_DISABLE_ROSPEC_RESPONSE:
case LLRP_TYPE_GET_ROSPECS_RESPONSE:
case LLRP_TYPE_ADD_ACCESSSPEC:
case LLRP_TYPE_ADD_ACCESSSPEC_RESPONSE:
case LLRP_TYPE_DELETE_ACCESSSPEC_RESPONSE:
case LLRP_TYPE_ENABLE_ACCESSSPEC_RESPONSE:
case LLRP_TYPE_DISABLE_ACCESSSPEC_RESPONSE:
case LLRP_TYPE_GET_ACCESSSPECS:
case LLRP_TYPE_CLIENT_REQUEST_OP:
case LLRP_TYPE_CLIENT_RESQUEST_OP_RESPONSE:
case LLRP_TYPE_RO_ACCESS_REPORT:
case LLRP_TYPE_READER_EVENT_NOTIFICATION:
case LLRP_TYPE_ERROR_MESSAGE:
case LLRP_TYPE_GET_READER_CONFIG_RESPONSE:
case LLRP_TYPE_SET_READER_CONFIG_RESPONSE:
case LLRP_TYPE_SET_PROTOCOL_VERSION_RESPONSE:
case LLRP_TYPE_GET_ACCESSSPECS_RESPONSE:
case LLRP_TYPE_GET_REPORT:
case LLRP_TYPE_ENABLE_EVENTS_AND_REPORTS:
ends_with_parameters = true;
break;
/* Some just have an ROSpec ID */
case LLRP_TYPE_START_ROSPEC:
case LLRP_TYPE_STOP_ROSPEC:
case LLRP_TYPE_ENABLE_ROSPEC:
case LLRP_TYPE_DISABLE_ROSPEC:
case LLRP_TYPE_DELETE_ROSPEC:
proto_tree_add_item(tree, hf_llrp_rospec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
break;
/* Some just have an AccessSpec ID */
case LLRP_TYPE_ENABLE_ACCESSSPEC:
case LLRP_TYPE_DELETE_ACCESSSPEC:
case LLRP_TYPE_DISABLE_ACCESSSPEC:
proto_tree_add_item(tree, hf_llrp_accessspec, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
break;
case LLRP_TYPE_GET_READER_CAPABILITIES:
proto_tree_add_item(tree, hf_llrp_req_cap, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
ends_with_parameters = true;
break;
/* GET_READER_CONFIG is more complicated */
case LLRP_TYPE_GET_READER_CONFIG:
antenna_item = proto_tree_add_item(tree, hf_llrp_antenna_id, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
requested_data = tvb_get_uint8(tvb, offset);
request_item = proto_tree_add_item(tree, hf_llrp_req_conf, tvb,
offset, 1, ENC_BIG_ENDIAN);
offset++;
gpi_item = proto_tree_add_item(tree, hf_llrp_gpi_port, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
gpo_item = proto_tree_add_item(tree, hf_llrp_gpo_port, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
switch (requested_data)
{
case LLRP_CONF_ALL:
break;
case LLRP_CONF_ANTENNA_PROPERTIES:
case LLRP_CONF_ANTENNA_CONFIGURATION:
/* Ignore both GPI and GPO ports */
proto_item_append_text(gpi_item, " (Ignored)");
proto_item_append_text(gpo_item, " (Ignored)");
break;
case LLRP_CONF_IDENTIFICATION:
case LLRP_CONF_RO_REPORT_SPEC:
case LLRP_CONF_READER_EVENT_NOTIFICATION_SPEC:
case LLRP_CONF_ACCESS_REPORT_SPEC:
case LLRP_CONF_LLRP_CONFIGURATION_STATE:
case LLRP_CONF_KEEPALIVE_SPEC:
case LLRP_CONF_EVENTS_AND_REPORTS:
/* Ignore antenna ID */
proto_item_append_text(antenna_item, " (Ignored)");
/* Ignore both GPI and GPO ports */
proto_item_append_text(gpi_item, " (Ignored)");
proto_item_append_text(gpo_item, " (Ignored)");
break;
case LLRP_CONF_GPI_PORT_CURRENT_STATE:
/* Ignore antenna ID */
proto_item_append_text(antenna_item, " (Ignored)");
/* Ignore GPO port */
proto_item_append_text(gpo_item, " (Ignored)");
break;
case LLRP_CONF_GPO_WRITE_DATA:
/* Ignore antenna ID */
proto_item_append_text(antenna_item, " (Ignored)");
/* Ignore GPI port */
proto_item_append_text(gpi_item, " (Ignored)");
break;
default:
/* Ignore antenna ID */
proto_item_append_text(antenna_item, " (Ignored)");
/* Tell the user that we are confused */
expert_add_info_format(pinfo, request_item, &ei_llrp_req_conf,
"Unrecognized configuration request: %u",
requested_data);
/* Ignore both GPI and GPO ports */
proto_item_append_text(gpi_item, " (Ignored)");
proto_item_append_text(gpo_item, " (Ignored)");
break;
};
ends_with_parameters = true;
break;
/* END GET_READER_CONFIG */
/* Misc */
case LLRP_TYPE_SET_READER_CONFIG:
proto_tree_add_item(tree, hf_llrp_rest_fact, tvb, offset, 1, ENC_NA);
offset++;
ends_with_parameters = true;
break;
case LLRP_TYPE_SET_PROTOCOL_VERSION:
proto_tree_add_item(tree, hf_llrp_version, tvb, offset, 1, ENC_BIG_ENDIAN);
break;
case LLRP_TYPE_GET_SUPPORTED_VERSION_RESPONSE:
proto_tree_add_item(tree, hf_llrp_cur_ver, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_llrp_sup_ver, tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
ends_with_parameters = true;
break;
case LLRP_TYPE_CUSTOM_MESSAGE:
vendor = tvb_get_ntohl(tvb, offset);
proto_tree_add_item(tree, hf_llrp_vendor, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
/* Do vendor specific dissection */
switch(vendor) {
case LLRP_VENDOR_IMPINJ:
dissect_custom_message = dissect_llrp_impinj_message;
ends_with_parameters = true;
break;
}
if (dissect_custom_message)
offset = dissect_custom_message(tvb, pinfo, tree, offset);
break;
/* Some have no extra data expected */
case LLRP_TYPE_KEEPALIVE:
case LLRP_TYPE_KEEPALIVE_ACK:
case LLRP_TYPE_CLOSE_CONNECTION:
case LLRP_TYPE_GET_ROSPECS:
case LLRP_TYPE_GET_SUPPORTED_VERSION:
break;
default:
/* We shouldn't be called if we don't already recognize the value */
DISSECTOR_ASSERT_NOT_REACHED();
};
if(ends_with_parameters) {
offset = dissect_llrp_parameters(tvb, pinfo, tree, offset, tvb_reported_length(tvb), 0);
}
if(tvb_reported_length_remaining(tvb, offset) != 0) {
/* Report problem */
expert_add_info_format(pinfo, tree, &ei_llrp_invalid_length,
"Incorrect length of message: %u bytes decoded, but %u bytes available.",
offset, tvb_reported_length(tvb));
}
}
/* Code to actually dissect the packets */
static int
dissect_llrp_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_item *ti;
proto_tree *llrp_tree;
uint16_t type;
uint32_t len;
unsigned offset = 0;
/* Check that there's enough data */
if (tvb_reported_length(tvb) < LLRP_HEADER_LENGTH) {
return 0;
}
/* Make entries in Protocol column and Info column on summary display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLRP");
col_set_str(pinfo->cinfo, COL_INFO, "LLRP Message");
type = tvb_get_ntohs(tvb, offset) & 0x03FF;
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
val_to_str_ext(type, &message_types_ext, "Unknown Type: %d"));
ti = proto_tree_add_item(tree, proto_llrp, tvb, offset, -1, ENC_NA);
llrp_tree = proto_item_add_subtree(ti, ett_llrp);
proto_tree_add_item(llrp_tree, hf_llrp_version, tvb, offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(llrp_tree, hf_llrp_type, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
ti = proto_tree_add_item(llrp_tree, hf_llrp_length, tvb, offset, 4, ENC_BIG_ENDIAN);
len = tvb_get_ntohl(tvb, offset);
if (len != tvb_reported_length(tvb))
{
expert_add_info_format(pinfo, ti, &ei_llrp_invalid_length,
"Incorrect length field: claimed %u, but have %u.",
len, tvb_reported_length(tvb));
}
offset += 4;
proto_tree_add_item(llrp_tree, hf_llrp_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
if (try_val_to_str_ext(type, &message_types_ext))
dissect_llrp_message(tvb, pinfo, llrp_tree, type, offset);
return tvb_captured_length(tvb);
}
/* Determine length of LLRP message */
static unsigned
get_llrp_message_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_)
{
/* Peek into the header to determine the total message length */
return (unsigned)tvb_get_ntohl(tvb, offset+2);
}
/* The main dissecting routine */
static int
dissect_llrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
tcp_dissect_pdus(tvb, pinfo, tree, true, LLRP_HEADER_LENGTH,
get_llrp_message_len, dissect_llrp_packet, data);
return tvb_captured_length(tvb);
}
void
proto_register_llrp(void)
{
/* Setup list of header fields See Section 1.6.1 for details */
static hf_register_info hf[] = {
{ &hf_llrp_version,
{ "Version", "llrp.version", FT_UINT8, BASE_DEC, VALS(llrp_versions), 0x1C,
NULL, HFILL }},
{ &hf_llrp_type,
{ "Type", "llrp.type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &message_types_ext, 0x03FF,
NULL, HFILL }},
{ &hf_llrp_length,
{ "Length", "llrp.length", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_id,
{ "ID", "llrp.id", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_cur_ver,
{ "Current Version", "llrp.cur_ver", FT_UINT8, BASE_DEC, VALS(llrp_versions), 0,
NULL, HFILL }},
{ &hf_llrp_sup_ver,
{ "Supported Version", "llrp.sup_ver", FT_UINT8, BASE_DEC, VALS(llrp_versions), 0,
"The max supported protocol version.", HFILL }},
{ &hf_llrp_req_cap,
{ "Requested Capabilities", "llrp.req_cap", FT_UINT8, BASE_DEC, VALS(capabilities_request), 0,
NULL, HFILL }},
{ &hf_llrp_req_conf,
{ "Requested Configuration", "llrp.req_conf", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &config_request_ext, 0,
NULL, HFILL }},
{ &hf_llrp_rospec,
{ "ROSpec ID", "llrp.rospec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_all_rospecs), 0,
NULL, HFILL }},
{ &hf_llrp_antenna_id,
{ "Antenna ID", "llrp.antenna_id", FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_all_antenna), 0,
NULL, HFILL }},
{ &hf_llrp_gpi_port,
{ "GPI Port Number", "llrp.gpi_port", FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_all_gpi_ports), 0,
NULL, HFILL }},
{ &hf_llrp_gpo_port,
{ "GPO Port Number", "llrp.gpo_port", FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_all_gpo_ports), 0,
NULL, HFILL }},
{ &hf_llrp_rest_fact,
{ "Restore Factory Settings", "llrp.rest_fact", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_accessspec,
{ "Access Spec ID", "llrp.accessspec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_all_access_specs), 0,
NULL, HFILL }},
{ &hf_llrp_vendor,
{ "Vendor ID", "llrp.vendor", FT_UINT32, BASE_DEC, VALS(llrp_vendors), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_msg_type,
{ "Subtype", "llrp.impinj.type", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &impinj_msg_subtype_ext, 0,
"Subtype specified by vendor", HFILL }},
{ &hf_llrp_tlv_type,
{ "Type", "llrp.tlv_type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &tlv_type_ext, 0x03FF,
"The type of TLV.", HFILL }},
{ &hf_llrp_tv_type,
{ "Type", "llrp.tv_type", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &tv_type_ext, 0x7F,
"The type of TV.", HFILL }},
{ &hf_llrp_tlv_len,
{ "Length", "llrp.tlv_len", FT_UINT16, BASE_DEC, NULL, 0,
"The length of this TLV.", HFILL }},
{ &hf_llrp_param,
{ "Parameter", "llrp.param", FT_NONE, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_gpi,
{ "Number of GPI ports", "llrp.param.num_gpi", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_gpo,
{ "Number of GPO ports", "llrp.param.num_gpo", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_microseconds,
{ "Microseconds", "llrp.param.microseconds", FT_UINT64, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_max_supported_antenna,
{ "Max number of antenna supported", "llrp.param.max_supported_antenna", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_can_set_antenna_prop,
{ "Can set antenna properties", "llrp.param.can_set_antenna_prop", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x8000,
NULL, HFILL }},
{ &hf_llrp_has_utc_clock,
{ "Has UTC clock capabilities", "llrp.param.has_utc_clock", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x4000,
NULL, HFILL }},
{ &hf_llrp_device_manufacturer,
{ "Device manufacturer name", "llrp.param.device_manufacturer", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_model,
{ "Model name", "llrp.param.model", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_firmware_version,
{ "Reader firmware version", "llrp.param.firmware_version", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_max_receive_sense,
{ "Maximum sensitivity value", "llrp.param.max_receive_sense", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_index,
{ "Index", "llrp.param.index", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_receive_sense,
{ "Receive sensitivity value", "llrp.param.receive_sense", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_receive_sense_index_min,
{ "Receive sensitivity index min", "llrp.param.receive_sense_index_min", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_receive_sense_index_max,
{ "Receive sensitivity index max", "llrp.param.receive_sense_index_max", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_protocols,
{ "Number of protocols", "llrp.param.num_protocols", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_protocol_id,
{ "Protocol ID", "llrp.param.protocol_id", FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(protocol_id), 0,
NULL, HFILL }},
{ &hf_llrp_can_do_survey,
{ "Can do RF survey", "llrp.param.can_do_survey", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_can_report_buffer_warning,
{ "Can report buffer fill warning", "llrp.param.can_report_buffer_warning", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x40,
NULL, HFILL }},
{ &hf_llrp_support_client_opspec,
{ "Support client request OpSpec", "llrp.param.support_client_opspec", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x20,
NULL, HFILL }},
{ &hf_llrp_can_stateaware,
{ "Can do tag inventory state aware singulation", "llrp.param.can_stateaware", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x10,
NULL, HFILL }},
{ &hf_llrp_support_holding,
{ "Support event and report holding", "llrp.param.support_holding", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x08,
NULL, HFILL }},
{ &hf_llrp_max_priority_supported,
{ "Max priority level supported", "llrp.param.max_priority_supported", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_client_opspec_timeout,
{ "Client request OpSpec timeout", "llrp.param.client_opspec_timeout", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_max_num_rospec,
{ "Maximum number of ROSpecs", "llrp.param.max_num_rospec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
{ &hf_llrp_max_num_spec_per_rospec,
{ "Maximum number of spec per ROSpec", "llrp.param.max_num_spec_per_rospec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
{ &hf_llrp_max_num_inventory_per_aispec,
{ "Maximum number of Inventory Spec per AISpec", "llrp.param.max_num_inventory_per_aispec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
{ &hf_llrp_max_num_accessspec,
{ "Maximum number of AccessSpec", "llrp.param.max_num_accessspec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
{ &hf_llrp_max_num_opspec_per_accressspec,
{ "Maximum number of OpSpec per AccessSpec", "llrp.param.max_num_opspec_per_accressspec", FT_UINT32, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
/* TODO add translation */
{ &hf_llrp_country_code,
{ "Country code", "llrp.param.country_code", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_comm_standard,
{ "Communication standard", "llrp.param.comm_standard", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &comm_standard_ext, 0,
NULL, HFILL }},
{ &hf_llrp_transmit_power,
{ "Transmit power value", "llrp.param.transmit_power", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_hopping,
{ "Hopping", "llrp.param.hopping", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_hop_table_id,
{ "Hop table ID", "llrp.param.hop_table_id", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rfu,
{ "Reserved for future use", "llrp.param.rfu", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_hops,
{ "Number of hops", "llrp.param.num_hops", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_frequency,
{ "Frequency", "llrp.param.frequency", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_freqs,
{ "Number of frequencies", "llrp.param.num_freqs", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_min_freq,
{ "Minimum frequency", "llrp.param.min_freq", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_max_freq,
{ "Maximum frequency", "llrp.param.max_freq", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rospec_id,
{ "ROSpec ID", "llrp.param.rospec_id", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_priority,
{ "Priority", "llrp.param.priority", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_cur_state,
{ "Current state", "llrp.param.cur_state", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rospec_start_trig_type,
{ "ROSpec start trigger type", "llrp.param.rospec_start_trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_offset,
{ "Offset", "llrp.param.offset", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_period,
{ "Period", "llrp.param.period", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_gpi_event,
{ "GPI event", "llrp.param.gpi_event", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_timeout,
{ "Timeout", "llrp.param.timeout", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rospec_stop_trig_type,
{ "ROSpec stop trigger type", "llrp.param.rospec_stop_trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_duration_trig,
{ "Duration trigger value", "llrp.param.duration_trig", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_antenna_count,
{ "Antenna count", "llrp.param.antenna_count", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_antenna,
{ "Antenna ID", "llrp.param.antenna", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_aispec_stop_trig_type,
{ "AISpec stop trigger type", "llrp.param.aispec_stop_trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_trig_type,
{ "Trigger type", "llrp.param.trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_number_of_tags,
{ "Number of tags", "llrp.param.number_of_tags", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_number_of_attempts,
{ "Number of attempts", "llrp.param.number_of_attempts", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_t,
{ "T", "llrp.param.t", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_inventory_spec_id,
{ "Inventory parameter spec id", "llrp.param.inventory_spec_id", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_start_freq,
{ "Start frequency", "llrp.param.start_freq", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_stop_freq,
{ "Stop frequency", "llrp.param.stop_freq", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_stop_trig_type,
{ "Stop trigger type", "llrp.param.stop_trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_n_4,
{ "N", "llrp.param.n_4", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_duration,
{ "Duration", "llrp.param.duration", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_accessspec_id,
{ "AccessSpec ID", "llrp.param.accessspec_id", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_access_cur_state,
{ "Current state", "llrp.param.access_cur_state", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_access_stop_trig_type,
{ "AccessSpec Stop trigger", "llrp.param.access_stop_trig_type", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_operation_count,
{ "Operation count value", "llrp.param.operation_count", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_opspec_id,
{ "OpSpec ID", "llrp.param.opspec_id", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_conf_value,
{ "Configuration value", "llrp.param.conf_value", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_id_type,
{ "ID type", "llrp.param.id_type", FT_UINT8, BASE_DEC, VALS(id_type), 0,
NULL, HFILL }},
{ &hf_llrp_reader_id,
{ "Reader ID", "llrp.param.reader_id", FT_UINT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_gpo_data,
{ "GPO data", "llrp.param.gpo_data", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_keepalive_trig_type,
{ "KeepAlive trigger type", "llrp.param.keepalive_trig_type", FT_UINT8, BASE_DEC, VALS(keepalive_type), 0,
NULL, HFILL }},
{ &hf_llrp_time_iterval,
{ "Time interval", "llrp.param.time_iterval", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_antenna_connected,
{ "Antenna connected", "llrp.param.antenna_connected", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_antenna_gain,
{ "Antenna gain", "llrp.param.antenna_gain", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_receiver_sense,
{ "Receiver sensitivity", "llrp.param.receiver_sense", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_channel_idx,
{ "Channel index", "llrp.param.channel_idx", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_gpi_config,
{ "GPI config", "llrp.param.gpi_config", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_gpi_state,
{ "GPI state", "llrp.param.gpi_state", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_hold_events_and_reports,
{ "Hold events and reports upon reconnect", "llrp.param.hold_events_and_reports", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_ro_report_trig,
{ "RO report trigger", "llrp.param.ro_report_trig", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_n_2,
{ "N", "llrp.param.n_2", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_enable_rospec_id,
{ "Enable ROSpec ID", "llrp.param.enable_rospec_id", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x8000,
NULL, HFILL }},
{ &hf_llrp_enable_spec_idx,
{ "Enable spec index", "llrp.param.enable_spec_idx", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x4000,
NULL, HFILL }},
{ &hf_llrp_enable_inv_spec_id,
{ "Enable inventory spec ID", "llrp.param.enable_inv_spec_id", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x2000,
NULL, HFILL }},
{ &hf_llrp_enable_antenna_id,
{ "Enable antenna ID", "llrp.param.enable_antenna_id", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x1000,
NULL, HFILL }},
{ &hf_llrp_enable_channel_idx,
{ "Enable channel index", "llrp.param.enable_channel_idx", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0800,
NULL, HFILL }},
{ &hf_llrp_enable_peak_rssi,
{ "Enable peak RSSI", "llrp.param.enable_peak_rssi", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0400,
NULL, HFILL }},
{ &hf_llrp_enable_first_seen,
{ "Enable first seen timestamp", "llrp.param.enable_first_seen", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0200,
NULL, HFILL }},
{ &hf_llrp_enable_last_seen,
{ "Enable last seen timestamp", "llrp.param.enable_last_seen", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0100,
NULL, HFILL }},
{ &hf_llrp_enable_seen_count,
{ "Enable tag seen count", "llrp.param.enable_seen_count", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0080,
NULL, HFILL }},
{ &hf_llrp_enable_accessspec_id,
{ "Enable AccessSpec ID", "llrp.param.enable_accessspec_id", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x0040,
NULL, HFILL }},
{ &hf_llrp_access_report_trig,
{ "Access report trigger", "llrp.param.access_report_trig", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_length_bits,
{ "Bit field length (bits)", "llrp.param.length_bits", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_epc,
{ "EPC", "llrp.param.epc", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_spec_idx,
{ "Spec index", "llrp.param.spec_idx", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_peak_rssi,
{ "Peak RSSI", "llrp.param.peak_rssi", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_tag_count,
{ "Tag count", "llrp.param.tag_count", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_bandwidth,
{ "Bandwidth", "llrp.param.bandwidth", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_average_rssi,
{ "Average RSSI", "llrp.param.average_rssi", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_notif_state,
{ "Notification state", "llrp.param.notif_state", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_event_type,
{ "Event type", "llrp.param.event_type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &event_type_ext, 0,
NULL, HFILL }},
{ &hf_llrp_next_chan_idx,
{ "Next channel index", "llrp.param.next_chan_idx", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_roevent_type,
{ "Event type", "llrp.param.roevent_type", FT_UINT8, BASE_DEC, VALS(roevent_type), 0,
NULL, HFILL }},
{ &hf_llrp_prem_rospec_id,
{ "Preempting ROSpec ID", "llrp.param.prem_rospec_id", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_buffer_full_percentage,
{ "Report Buffer percentage full", "llrp.param.buffer_full_percentage", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_message,
{ "Message", "llrp.param.message", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rfevent_type,
{ "Event type", "llrp.param.rfevent_type", FT_UINT8, BASE_DEC, VALS(rfevent_type), 0,
NULL, HFILL }},
{ &hf_llrp_aievent_type,
{ "Event type", "llrp.param.aievent_type", FT_UINT8, BASE_DEC, VALS(aievent_type), 0,
NULL, HFILL }},
{ &hf_llrp_antenna_event_type,
{ "Event type", "llrp.param.antenna_event_type", FT_UINT8, BASE_DEC, VALS(antenna_event_type), 0,
NULL, HFILL }},
{ &hf_llrp_conn_status,
{ "Status", "llrp.param.conn_status", FT_UINT16, BASE_DEC, VALS(connection_status), 0,
NULL, HFILL }},
{ &hf_llrp_loop_count,
{ "Loop count", "llrp.param.loop_count", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_status_code,
{ "Status code", "llrp.param.status_code", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &status_code_ext, 0,
NULL, HFILL }},
{ &hf_llrp_error_desc,
{ "Error Description", "llrp.param.error_desc", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_field_num,
{ "Field number", "llrp.param.field_num", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_error_code,
{ "Error code", "llrp.param.error_code", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &status_code_ext, 0,
NULL, HFILL }},
{ &hf_llrp_parameter_type,
{ "Parameter type", "llrp.param.parameter_type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &tlv_type_ext, 0,
NULL, HFILL }},
{ &hf_llrp_can_support_block_erase,
{ "Can support block erase", "llrp.param.can_support_block_erase", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_can_support_block_write,
{ "Can support block write", "llrp.param.can_support_block_write", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x40,
NULL, HFILL }},
{ &hf_llrp_can_support_block_permalock,
{ "Can support block permalock", "llrp.param.can_support_block_permalock", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x20,
NULL, HFILL }},
{ &hf_llrp_can_support_tag_recomm,
{ "Can support tag recommisioning", "llrp.param.can_support_tag_recomm", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x10,
NULL, HFILL }},
{ &hf_llrp_can_support_UMI_method2,
{ "Can support UMI method 2", "llrp.param.can_support_UMI_method2", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x08,
NULL, HFILL }},
{ &hf_llrp_can_support_XPC,
{ "Can support XPC", "llrp.param.can_support_XPC", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x04,
NULL, HFILL }},
{ &hf_llrp_max_num_filter_per_query,
{ "Maximum number of select filters per query", "llrp.param.max_num_filter_per_query", FT_UINT16, BASE_DEC|BASE_SPECIAL_VALS, VALS(unique_no_limit), 0,
NULL, HFILL }},
{ &hf_llrp_mode_ident,
{ "Mode identifier", "llrp.param.mode_ident", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_DR,
{ "DR", "llrp.param.DR", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_hag_conformance,
{ "EPC HAG T&C Conformance", "llrp.param.hag_conformance", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x40,
NULL, HFILL }},
{ &hf_llrp_mod,
{ "M", "llrp.param.mod", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_flm,
{ "Forward link modulation", "llrp.param.flm", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_m,
{ "Spectral mask indicator", "llrp.param.m", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_bdr,
{ "BDR", "llrp.param.bdr", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_pie,
{ "PIE", "llrp.param.pie", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_min_tari,
{ "Minimum tari", "llrp.param.min_tari", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_max_tari,
{ "Maximum tari", "llrp.param.max_tari", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_step_tari,
{ "Tari step", "llrp.param.step_tari", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_inventory_state_aware,
{ "Tag inventory state aware", "llrp.param.inventory_state_aware", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_trunc,
{ "T", "llrp.param.trunc", FT_UINT8, BASE_DEC, NULL, 0xC0,
NULL, HFILL }},
{ &hf_llrp_mb,
{ "MB", "llrp.param.mb", FT_UINT8, BASE_DEC, NULL, 0xC0,
NULL, HFILL }},
{ &hf_llrp_pointer,
{ "Pointer", "llrp.param.pointer", FT_UINT16, BASE_DEC_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_tag_mask,
{ "Tag mask", "llrp.param.tag_mask", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_aware_filter_target,
{ "Target", "llrp.param.aware_filter_target", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_aware_filter_action,
{ "Action", "llrp.param.aware_filter_action", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_unaware_filter_action,
{ "Action", "llrp.param.unaware_filter_action", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_mode_idx,
{ "Mode index", "llrp.param.mode_idx", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_tari,
{ "Tari", "llrp.param.tari", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_session,
{ "Session", "llrp.param.session", FT_UINT8, BASE_DEC, NULL, 0xC0,
NULL, HFILL }},
{ &hf_llrp_tag_population,
{ "Tag population", "llrp.param.tag_population", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_tag_transit_time,
{ "Tag tranzit time", "llrp.param.tag_transit_time", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_sing_i,
{ "I", "llrp.param.sing_i", FT_BOOLEAN, 8, TFS(&tfs_state_a_b), 0x80,
NULL, HFILL }},
{ &hf_llrp_sing_s,
{ "S", "llrp.param.sing_s", FT_BOOLEAN, 8, TFS(&tfs_sl), 0x40,
NULL, HFILL }},
{ &hf_llrp_sing_a,
{ "S_All", "llrp.param.sing_a", FT_BOOLEAN, 8, TFS(&tfs_all_no), 0x20,
NULL, HFILL }},
{ &hf_llrp_match,
{ "Match", "llrp.param.match", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x20,
NULL, HFILL }},
{ &hf_llrp_tag_data,
{ "Tag data", "llrp.param.tag_data", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_access_pass,
{ "Access password", "llrp.param.access_pass", FT_UINT32, BASE_DEC_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_word_pointer,
{ "Word pointer", "llrp.param.word_pointer", FT_UINT16, BASE_DEC_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_word_count,
{ "Word count", "llrp.param.word_count", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_write_data,
{ "Write data", "llrp.param.write_data", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_kill_pass,
{ "Killpassword", "llrp.param.kill_pass", FT_UINT32, BASE_DEC_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_kill_3,
{ "3", "llrp.param.kill_3", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x04,
NULL, HFILL }},
{ &hf_llrp_kill_2,
{ "2", "llrp.param.kill_2", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x02,
NULL, HFILL }},
{ &hf_llrp_kill_l,
{ "L", "llrp.param.kill_l", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x01,
NULL, HFILL }},
{ &hf_llrp_privilege,
{ "Privilege", "llrp.param.privilege", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_data_field,
{ "Data field", "llrp.param.data_field", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_block_pointer,
{ "Block pointer", "llrp.param.block_pointer", FT_UINT16, BASE_DEC_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_block_mask,
{ "Block mask", "llrp.param.block_mask", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_length_words,
{ "Field Length (words)", "llrp.param.length_words", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_block_range,
{ "Block range", "llrp.param.block_range", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_enable_crc,
{ "Enable CRC", "llrp.param.enable_crc", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_enable_pc,
{ "Enable PC bits", "llrp.param.enable_pc", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x40,
NULL, HFILL }},
{ &hf_llrp_enable_xpc,
{ "Enable XPC bits", "llrp.param.enable_xpc", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x20,
NULL, HFILL }},
{ &hf_llrp_pc_bits,
{ "PC bits", "llrp.param.pc_bits", FT_UINT16, BASE_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_xpc_w1,
{ "XPC-W1", "llrp.param.xpc_w1", FT_UINT16, BASE_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_xpc_w2,
{ "XPC-W2", "llrp.param.xpc_w2", FT_UINT16, BASE_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_crc,
{ "CRC", "llrp.param.crc", FT_UINT16, BASE_HEX, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_coll,
{ "Number of collisions", "llrp.param.num_coll", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_empty,
{ "Number of empty slots", "llrp.param.num_empty", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_access_result,
{ "Result", "llrp.param.access_result", FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_read_data,
{ "Read data", "llrp.param.read_data", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_num_words_written,
{ "Number of words written", "llrp.param.num_words_written", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_permlock_status,
{ "Read data", "llrp.param.permlock_status", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_vendor_id,
{ "Vendor ID", "llrp.param.vendor_id", FT_UINT32, BASE_DEC, VALS(llrp_vendors), 0,
NULL, HFILL }},
{ &hf_llrp_vendor_unknown,
{ "Vendor Unknown", "llrp.param.vendor_unknown", FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_param_type,
{ "Impinj parameter subtype", "llrp.param.impinj_param_type", FT_UINT32, BASE_DEC | BASE_EXT_STRING, &impinj_param_type_ext, 0,
NULL, HFILL }},
{ &hf_llrp_save_config,
{ "Save configuration", "llrp.param.save_config", FT_BOOLEAN, 8, TFS(&tfs_yes_no), 0x80,
NULL, HFILL }},
{ &hf_llrp_impinj_req_data,
{ "Requested data", "llrp.param.impinj_req_data", FT_UINT32, BASE_DEC | BASE_EXT_STRING, &impinj_req_data_ext, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_reg_region,
{ "Regulatory region", "llrp.param.impinj_reg_region", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &impinj_reg_region_ext, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_search_mode,
{ "Inventory search mode", "llrp.param.impinj_search_mode", FT_UINT16, BASE_DEC, VALS(impinj_search_mode), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_en_tag_dir,
{ "Enable tag direction", "llrp.param.impinj_en_tag_dir", FT_BOOLEAN, 16, TFS(&tfs_yes_no), 0x8000,
NULL, HFILL }},
{ &hf_llrp_impinj_antenna_conf,
{ "Antenna configuration", "llrp.param.impinj_antenna_conf", FT_UINT16, BASE_DEC, VALS(impinj_ant_conf), 0,
NULL, HFILL }},
{ &hf_llrp_decision_time,
{ "Decision timestamp", "llrp.param.decision_time", FT_UINT64, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_tag_dir,
{ "Tag direction", "llrp.param.impinj_tag_dir", FT_UINT16, BASE_DEC, VALS(impinj_tag_dir), 0,
NULL, HFILL }},
{ &hf_llrp_confidence,
{ "Confidence", "llrp.param.confidence", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_fix_freq_mode,
{ "Fixed frequency mode", "llrp.param.impinj_fix_freq_mode", FT_UINT16, BASE_DEC, VALS(impinj_fix_freq_mode), 0,
NULL, HFILL }},
{ &hf_llrp_num_channels,
{ "Number of channels", "llrp.param.num_channels", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_channel,
{ "Channel", "llrp.param.channel", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_reduce_power_mode,
{ "Reduced power mode", "llrp.param.impinj_reduce_power_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_low_duty_mode,
{ "Low duty cycle mode", "llrp.param.impinj_low_duty_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_empty_field_timeout,
{ "Empty field timeout", "llrp.param.empty_field_timeout", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_field_ping_interval,
{ "Field ping interval", "llrp.param.field_ping_interval", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_model_name,
{ "Model name", "llrp.param.model_name", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_serial_number,
{ "Serial number", "llrp.param.serial_number", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_soft_ver,
{ "Software version", "llrp.param.soft_ver", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_firm_ver,
{ "Firmware version", "llrp.param.firm_ver", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_fpga_ver,
{ "FPGA version", "llrp.param.fpga_ver", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_pcba_ver,
{ "PCBA version", "llrp.param.pcba_ver", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_height_thresh,
{ "Height threshold", "llrp.param.height_thresh", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_zero_motion_thresh,
{ "Zero motion threshold", "llrp.param.zero_motion_thresh", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_board_manufacturer,
{ "Board manufacturer", "llrp.param.board_manufacturer", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_fw_ver_hex,
{ "Firmware version", "llrp.param.fw_ver_hex", FT_UINT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_hw_ver_hex,
{ "Hardware version", "llrp.param.hw_ver_hex", FT_UINT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_gpi_debounce,
{ "GPI debounce timer Msec", "llrp.param.gpi_debounce", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_temperature,
{ "Temperature", "llrp.param.temperature", FT_INT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_link_monitor_mode,
{ "Link monitor mode", "llrp.param.impinj_link_monitor_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_link_down_thresh,
{ "Link down threshold", "llrp.param.link_down_thresh", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_report_buff_mode,
{ "Report buffer mode", "llrp.param.impinj_report_buff_mode", FT_UINT16, BASE_DEC, VALS(impinj_report_buff_mode), 0,
NULL, HFILL }},
{ &hf_llrp_permalock_result,
{ "Result", "llrp.param.permalock_result", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &impinj_permalock_result_ext, 0,
NULL, HFILL }},
{ &hf_llrp_block_permalock_result,
{ "Result", "llrp.param.block_permalock_result", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &impinj_block_permalock_result_ext, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_data_profile,
{ "Data profile", "llrp.param.impinj_data_profile", FT_UINT8, BASE_DEC, VALS(impinj_data_profile), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_access_range,
{ "Access range", "llrp.param.impinj_access_range", FT_UINT8, BASE_DEC, VALS(impinj_access_range), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_persistence,
{ "Persistence", "llrp.param.impinj_persistence", FT_UINT8, BASE_DEC, VALS(impinj_persistence), 0,
NULL, HFILL }},
{ &hf_llrp_set_qt_config_result,
{ "Result", "llrp.param.set_qt_config_result", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &impinj_set_qt_config_result_ext, 0,
NULL, HFILL }},
{ &hf_llrp_get_qt_config_result,
{ "Result", "llrp.param.get_qt_config_result", FT_UINT8, BASE_DEC | BASE_EXT_STRING, &impinj_get_qt_config_result_ext, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_serialized_tid_mode,
{ "Serialized TID Mode", "llrp.param.impinj_serialized_tid_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_rf_phase_mode,
{ "RF phase angle mode", "llrp.param.impinj_rf_phase_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_peak_rssi_mode,
{ "Peak RSSI mode", "llrp.param.impinj_peak_rssi_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_gps_coordinates_mode,
{ "GPS coordinates mode", "llrp.param.impinj_gps_coordinates_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_tid,
{ "TID", "llrp.param.impinj_tid", FT_UINT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_phase_angle,
{ "Phase angle", "llrp.param.phase_angle", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rssi,
{ "RSSI", "llrp.param.rssi", FT_INT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_latitude,
{ "Latitude", "llrp.param.latitude", FT_INT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_longitude,
{ "Longitude", "llrp.param.longitude", FT_INT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_gga_sentence,
{ "GGA sentence", "llrp.param.gga_sentence", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_rmc_sentence,
{ "RMC sentence", "llrp.param.rmc_sentence", FT_UINT_STRING, BASE_NONE, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_optim_read_mode,
{ "Optimized read mode", "llrp.param.impinj_optim_read_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_rf_doppler_mode,
{ "RF doppler frequency mode", "llrp.param.impinj_rf_doppler_mode", FT_UINT16, BASE_DEC, VALS(impinj_boolean), 0,
NULL, HFILL }},
{ &hf_llrp_retry_count,
{ "Retry count", "llrp.param.retry_count", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_access_spec_ordering,
{ "AccessSpec ordering", "llrp.param.impinj_access_spec_ordering", FT_UINT16, BASE_DEC, VALS(impinj_access_spec_ordering), 0,
NULL, HFILL }},
{ &hf_llrp_impinj_gpo_mode,
{ "GPO mode", "llrp.param.impinj_gpo_mode", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &impinj_gpo_mode_ext, 0,
NULL, HFILL }},
{ &hf_llrp_gpo_pulse_dur,
{ "GPO pulse duration", "llrp.param.gpo_pulse_dur", FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_hub_id,
{ "Hub ID", "llrp.impinj_hub_id", FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_hub_fault_type,
{ "Hub fault type", "llrp.param.impinj_hub_fault_type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &impinj_hub_fault_type_ext, 0,
NULL, HFILL }},
{ &hf_llrp_impinj_hub_connected_type,
{ "Hub connected type", "llrp.param.impinj_hub_connected_type", FT_UINT16, BASE_DEC | BASE_EXT_STRING, &impinj_hub_connected_type_ext, 0,
NULL, HFILL }},
};
/* Setup protocol subtree array */
static int *ett[] = {
&ett_llrp,
&ett_llrp_param
};
static ei_register_info ei[] = {
{ &ei_llrp_invalid_length, { "llrp.invalid_length_of_string_claimed", PI_MALFORMED, PI_ERROR, "invalid length of string: claimed %u, available %u.", EXPFILL }},
{ &ei_llrp_req_conf, { "llrp.req_conf.invalid", PI_PROTOCOL, PI_ERROR, "Unrecognized configuration request: %u", EXPFILL }},
};
expert_module_t* expert_llrp;
/* Register the protocol name and description */
proto_llrp = proto_register_protocol("Low Level Reader Protocol", "LLRP", "llrp");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_llrp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
expert_llrp = expert_register_protocol(proto_llrp);
expert_register_field_array(expert_llrp, ei, array_length(ei));
llrp_handle = register_dissector("llrp", dissect_llrp, proto_llrp);
}
void
proto_reg_handoff_llrp(void)
{
dissector_add_uint_with_preference("tcp.port", LLRP_PORT, llrp_handle);
}
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 4
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
*/
|