aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isobus-vt.c
blob: b093714e4a12bf68f7ebadf6f5c8e7f4991fda3d (plain)
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
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
/* packet-isobus-vt.c
 * Routines for ISObus VT dissection (Based on CANOpen Dissector)
 * Copyright 2016, Jeroen Sack <jsack@lely.com>
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#include "config.h"

#include <epan/packet.h>
#include <epan/prefs.h>
#include <wsutil/file_util.h>

#define MAX_OBJECT_ID_DB_SIZE 10000

void proto_register_isobus_vt(void);
void proto_reg_handoff_isobus_vt(void);

static guint8 current_vt_version = 0;

/* Initialize the protocol and registered fields */
static int proto_vt = -1;
static int hf_isobus_vt = -1;
static int hf_isobus_vt_command = -1;
static int hf_isobus_vt_objectid = -1;
static int hf_isobus_vt_softkey_keyactcode = -1;
static int hf_isobus_vt_softkey_objectid = -1;
static int hf_isobus_vt_softkey_parentobjectid = -1;
static int hf_isobus_vt_softkey_keynumber = -1;
static int hf_isobus_vt_button_keyactcode = -1;
static int hf_isobus_vt_button_objectid = -1;
static int hf_isobus_vt_button_parentobjectid = -1;
static int hf_isobus_vt_button_keynumber = -1;
static int hf_isobus_vt_pointing_xposition = -1;
static int hf_isobus_vt_pointing_yposition = -1;
static int hf_isobus_vt_pointing_touchstate = -1;
static int hf_isobus_vt_vtselectinputobject_objectid = -1;
static int hf_isobus_vt_vtselectinputobject_selection = -1;
static int hf_isobus_vt_vtselectinputobject_openforinput = -1;
static int hf_isobus_vt_vtescmessage_objectid = -1;
static int hf_isobus_vt_vtescmessage_errorcodes = -1;
static int hf_isobus_vt_vtchgnumval_objectid = -1;
static int hf_isobus_vt_vtchgnumval_value = -1;
static int hf_isobus_vt_vtchgactivemask_maskobjectid = -1;
static int hf_isobus_vt_vtchgactivemask_errorcodes = -1;
static int hf_isobus_vt_vtchgactivemask_errorobjectid = -1;
static int hf_isobus_vt_vtchgactivemask_errorobjectidparent = -1;
static int hf_isobus_vt_vtchgstrval_objectid = -1;
static int hf_isobus_vt_vtchgstrval_length = -1;
static int hf_isobus_vt_vtchgstrval_value = -1;
static int hf_isobus_vt_vtonuserlayouthideshow_objectid_1 = -1;
static int hf_isobus_vt_vtonuserlayouthideshow_status_1 = -1;
static int hf_isobus_vt_vtonuserlayouthideshow_objectid_2 = -1;
static int hf_isobus_vt_vtonuserlayouthideshow_status_2 = -1;
static int hf_isobus_vt_vtcontrolaudiosignaltermination_terminationcause = -1;
static int hf_isobus_vt_endofobjectpool_errorcodes = -1;
static int hf_isobus_vt_endofobjectpool_faultyobjectid = -1;
static int hf_isobus_vt_endofobjectpool_faultyparentobjectid = -1;
static int hf_isobus_vt_endofobjectpool_objectpoolerrorcodes = -1;
static int hf_isobus_vt_auxiliaryassignmenttype1_sourceaddressauxinputdevice = -1;
static int hf_isobus_vt_auxiliaryassignmenttype1_auxinputnumber = -1;
static int hf_isobus_vt_auxiliaryassignmenttype1_objectidauxinputdevice = -1;
static int hf_isobus_vt_auxiliaryinputtype1status_inputnumber = -1;
static int hf_isobus_vt_auxiliaryinputtype1status_analyzevalue = -1;
static int hf_isobus_vt_auxiliaryinputtype1status_numberoftransitions = -1;
static int hf_isobus_vt_auxiliaryinputtype1status_booleanvalue = -1;
static int hf_isobus_vt_preferredassignment_numberofinputunits = -1;
static int hf_isobus_vt_preferredassignment_auxinputunit_name = -1;
static int hf_isobus_vt_preferredassignment_auxinputunit_modelidentificationcode = -1;
static int hf_isobus_vt_preferredassignment_auxinputunit_numberofpreferredfunctions = -1;
static int hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxfunctionobjectid = -1;
static int hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxinputobjectid = -1;
static int hf_isobus_vt_preferredassignment_errorcodes = -1;
static int hf_isobus_vt_preferredassignment_faultyauxiliaryfunctionobjectid = -1;
static int hf_isobus_vt_auxiliaryinputtype2maintenance_modelidentificationcode = -1;
static int hf_isobus_vt_auxiliaryinputtype2maintenance_status = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_name = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_flags = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_flags_preferredassignment = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_flags_auxiliaryfunctiontype = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_auxinputobjectid = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_auxfunctionobjectid = -1;
static int hf_isobus_vt_auxiliaryassignmenttype2_errorcodes = -1;
static int hf_isobus_vt_auxiliaryinputstatustype2enable_auxiliaryinputobjectid = -1;
static int hf_isobus_vt_auxiliaryinputstatustype2enable_enable = -1;
static int hf_isobus_vt_auxiliaryinputstatustype2enable_status = -1;
static int hf_isobus_vt_auxiliaryinputstatustype2enable_errorcodes = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_auxiliaryinputobjectid = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_value1 = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_value2 = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_operatingstate = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_operatingstate_learnmodeactive = -1;
static int hf_isobus_vt_auxiliaryinputtype2status_operatingstate_inputactivatedinlearnmode = -1;
static int hf_isobus_vt_auxiliarycapabilities_requesttype = -1;
static int hf_isobus_vt_auxiliarycapabilities_numberofauxiliaryunits = -1;
static int hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_name = -1;
static int hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_numberofdifferentsets = -1;
static int hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_numberofinstances = -1;
static int hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_functionattribute = -1;
static int hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_assignedattribute = -1;
static int hf_isobus_vt_esc_objectid = -1;
static int hf_isobus_vt_esc_errorcodes = -1;
static int hf_isobus_vt_hideshowobj_objectid = -1;
static int hf_isobus_vt_hideshowobj_action = -1;
static int hf_isobus_vt_hideshowobj_errorcodes = -1;
static int hf_isobus_vt_enabledisableobj_objectid = -1;
static int hf_isobus_vt_enabledisableobj_enabledisable = -1;
static int hf_isobus_vt_enabledisableobj_errorcodes = -1;
static int hf_isobus_vt_selectinputobject_objectid = -1;
static int hf_isobus_vt_selectinputobject_option = -1;
static int hf_isobus_vt_selectinputobject_response = -1;
static int hf_isobus_vt_selectinputobject_errorcodes = -1;
static int hf_isobus_vt_controlaudiosignal_activations = -1;
static int hf_isobus_vt_controlaudiosignal_frequency = -1;
static int hf_isobus_vt_controlaudiosignal_ontime = -1;
static int hf_isobus_vt_controlaudiosignal_offtime = -1;
static int hf_isobus_vt_controlaudiosignal_errorcodes = -1;
static int hf_isobus_vt_setaudiovolume_volume = -1;
static int hf_isobus_vt_setaudiovolume_errorcodes = -1;
static int hf_isobus_vt_changechildlocation_parentobjectid = -1;
static int hf_isobus_vt_changechildlocation_objectid = -1;
static int hf_isobus_vt_changechildlocation_relativexpos = -1;
static int hf_isobus_vt_changechildlocation_relativeypos = -1;
static int hf_isobus_vt_changechildlocation_errorcodes = -1;
static int hf_isobus_vt_changesize_objectid = -1;
static int hf_isobus_vt_changesize_newwidth = -1;
static int hf_isobus_vt_changesize_newheight = -1;
static int hf_isobus_vt_changesize_errorcodes = -1;
static int hf_isobus_vt_changebackgroundcolour_objectid = -1;
static int hf_isobus_vt_changebackgroundcolour_colour = -1;
static int hf_isobus_vt_changebackgroundcolour_errorcodes = -1;
static int hf_isobus_vt_chgnumval_objectid = -1;
static int hf_isobus_vt_chgnumval_errorcodes = -1;
static int hf_isobus_vt_chgnumval_value = -1;
static int hf_isobus_vt_changeendpoint_objectid = -1;
static int hf_isobus_vt_changeendpoint_width = -1;
static int hf_isobus_vt_changeendpoint_height = -1;
static int hf_isobus_vt_changeendpoint_linedirection = -1;
static int hf_isobus_vt_changefontattributes_objectid = -1;
static int hf_isobus_vt_changefontattributes_fontcolour = -1;
static int hf_isobus_vt_changefontattributes_fontsize = -1;
static int hf_isobus_vt_changefontattributes_fonttype = -1;
static int hf_isobus_vt_changefontattributes_fontstyle = -1;
static int hf_isobus_vt_changefontattributes_errorcodes = -1;
static int hf_isobus_vt_changelineattributes_objectid = -1;
static int hf_isobus_vt_changelineattributes_linecolour = -1;
static int hf_isobus_vt_changelineattributes_linewidth = -1;
static int hf_isobus_vt_changelineattributes_lineart = -1;
static int hf_isobus_vt_changelineattributes_errorcodes = -1;
static int hf_isobus_vt_changefillattributes_objectid = -1;
static int hf_isobus_vt_changefillattributes_filltype = -1;
static int hf_isobus_vt_changefillattributes_fillcolour = -1;
static int hf_isobus_vt_changefillattributes_fillpatternobjectid = -1;
static int hf_isobus_vt_changefillattributes_errorcodes = -1;
static int hf_isobus_vt_changeactivemask_workingset = -1;
static int hf_isobus_vt_changeactivemask_newactivemask = -1;
static int hf_isobus_vt_changeactivemask_errorcodes = -1;
static int hf_isobus_vt_changesoftkeymask_masktype = -1;
static int hf_isobus_vt_changesoftkeymask_datamaskobjectid = -1;
static int hf_isobus_vt_changesoftkeymask_newsoftkeymaskobjectid = -1;
static int hf_isobus_vt_changesoftkeymask_errorcodes = -1;
static int hf_isobus_vt_changeattributes_objectid = -1;
static int hf_isobus_vt_changeattributes_attributeid = -1;
static int hf_isobus_vt_changeattributes_newvalue = -1;
static int hf_isobus_vt_changeattributes_errorcodes = -1;
static int hf_isobus_vt_changepriority_objectid = -1;
static int hf_isobus_vt_changepriority_newpriority = -1;
static int hf_isobus_vt_changepriority_errorcodes = -1;
static int hf_isobus_vt_changelistitem_listobjectid = -1;
static int hf_isobus_vt_changelistitem_listindex = -1;
static int hf_isobus_vt_changelistitem_newobjectid = -1;
static int hf_isobus_vt_changelistitem_errorcodes = -1;
static int hf_isobus_vt_deleteobjectpool_errorcodes = -1;
static int hf_isobus_vt_chgstrval_objectid = -1;
static int hf_isobus_vt_chgstrval_length = -1;
static int hf_isobus_vt_chgstrval_errorcodes = -1;
static int hf_isobus_vt_chgstrval_value = -1;
static int hf_isobus_vt_changechildposition_parentobjectid = -1;
static int hf_isobus_vt_changechildposition_objectid = -1;
static int hf_isobus_vt_changechildposition_xpos = -1;
static int hf_isobus_vt_changechildposition_ypos = -1;
static int hf_isobus_vt_changechildposition_errorcodes = -1;
static int hf_isobus_vt_changeobjectlabel_objectid = -1;
static int hf_isobus_vt_changeobjectlabel_stringobjectid = -1;
static int hf_isobus_vt_changeobjectlabel_fonttype = -1;
static int hf_isobus_vt_changeobjectlabel_graphicobjectid = -1;
static int hf_isobus_vt_changeobjectlabel_errorcodes = -1;
static int hf_isobus_vt_changepolygonpoint_objectid = -1;
static int hf_isobus_vt_changepolygonpoint_pointindex = -1;
static int hf_isobus_vt_changepolygonpoint_xvalue = -1;
static int hf_isobus_vt_changepolygonpoint_yvalue = -1;
static int hf_isobus_vt_changepolygonpoint_errorcodes = -1;
static int hf_isobus_vt_changepolygonscale_objectid = -1;
static int hf_isobus_vt_changepolygonscale_newwidth = -1;
static int hf_isobus_vt_changepolygonscale_newheight = -1;
static int hf_isobus_vt_changepolygonscale_errorcodes = -1;
static int hf_isobus_vt_graphicscontext_objectid = -1;
static int hf_isobus_vt_graphicscontext_subcommandid = -1;
static int hf_isobus_vt_graphicscontext_setgraphicscursor_xposition = -1;
static int hf_isobus_vt_graphicscontext_setgraphicscursor_yposition = -1;
static int hf_isobus_vt_graphicscontext_movegraphicscursor_xoffset = -1;
static int hf_isobus_vt_graphicscontext_movegraphicscursor_yoffset = -1;
static int hf_isobus_vt_graphicscontext_setforegroundcolour_colour = -1;
static int hf_isobus_vt_graphicscontext_setbackgroundcolour_colour = -1;
static int hf_isobus_vt_graphicscontext_setlineattributesobjectid_objectid = -1;
static int hf_isobus_vt_graphicscontext_setfillattributesobjectid_objectid = -1;
static int hf_isobus_vt_graphicscontext_setfontattributesobjectid_objectid = -1;
static int hf_isobus_vt_graphicscontext_eraserectangle_width = -1;
static int hf_isobus_vt_graphicscontext_eraserectangle_height = -1;
static int hf_isobus_vt_graphicscontext_drawpoint_xoffset = -1;
static int hf_isobus_vt_graphicscontext_drawpoint_yoffset = -1;
static int hf_isobus_vt_graphicscontext_drawline_xoffset = -1;
static int hf_isobus_vt_graphicscontext_drawline_yoffset = -1;
static int hf_isobus_vt_graphicscontext_drawrectangle_width = -1;
static int hf_isobus_vt_graphicscontext_drawrectangle_height = -1;
static int hf_isobus_vt_graphicscontext_drawclosedellipse_width = -1;
static int hf_isobus_vt_graphicscontext_drawclosedellipse_height = -1;
static int hf_isobus_vt_graphicscontext_drawpolygon_numberofpoints = -1;
static int hf_isobus_vt_graphicscontext_drawpolygon_point_xoffset = -1;
static int hf_isobus_vt_graphicscontext_drawpolygon_point_yoffset = -1;
static int hf_isobus_vt_graphicscontext_drawtext_background = -1;
static int hf_isobus_vt_graphicscontext_drawtext_numberofbytes = -1;
static int hf_isobus_vt_graphicscontext_drawtext_textstring = -1;
static int hf_isobus_vt_graphicscontext_panviewport_viewportx = -1;
static int hf_isobus_vt_graphicscontext_panviewport_viewporty = -1;
static int hf_isobus_vt_graphicscontext_zoomviewport_zoomvalue = -1;
static int hf_isobus_vt_graphicscontext_panandzoomviewport_viewportx = -1;
static int hf_isobus_vt_graphicscontext_panandzoomviewport_viewporty = -1;
static int hf_isobus_vt_graphicscontext_panandzoomviewport_zoomvalue = -1;
static int hf_isobus_vt_graphicscontext_changeviewportsize_newwidth = -1;
static int hf_isobus_vt_graphicscontext_changeviewportsize_newheight = -1;
static int hf_isobus_vt_graphicscontext_drawvtobject_objectid = -1;
static int hf_isobus_vt_graphicscontext_copycanvastopicturegraphic_objectidpicturegraphic = -1;
static int hf_isobus_vt_graphicscontext_copyviewporttopicturegraphic_objectidpicturegraphic = -1;
static int hf_isobus_vt_getattributevalue_objectid = -1;
static int hf_isobus_vt_getattributevalue_attributeid = -1;
static int hf_isobus_vt_getattributevalue_value = -1;
static int hf_isobus_vt_getattributevalue_errorcodes = -1;
static int hf_isobus_vt_selectcolourmap_objectid = -1;
static int hf_isobus_vt_selectcolourmap_errorcodes = -1;
static int hf_isobus_vt_executeextendedmacro_objectid = -1;
static int hf_isobus_vt_executeextendedmacro_errorcodes = -1;
static int hf_isobus_vt_lockunlockmask_command = -1;
static int hf_isobus_vt_lockunlockmask_objectid = -1;
static int hf_isobus_vt_lockunlockmask_locktimeout = -1;
static int hf_isobus_vt_lockunlockmask_errorcodes = -1;
static int hf_isobus_vt_executemacro_objectid = -1;
static int hf_isobus_vt_executemacro_errorcodes = -1;
static int hf_isobus_vt_getmemory_memoryrequired = -1;
static int hf_isobus_vt_getmemory_vtversion = -1;
static int hf_isobus_vt_getmemory_status = -1;
static int hf_isobus_vt_getsupportedwidechars_codeplane = -1;
static int hf_isobus_vt_getsupportedwidechars_firstwidechar = -1;
static int hf_isobus_vt_getsupportedwidechars_lastwidechar = -1;
static int hf_isobus_vt_getsupportedwidechars_errorcodes = -1;
static int hf_isobus_vt_getsupportedwidechars_numberofranges = -1;
static int hf_isobus_vt_getsupportedwidechars_firstavailablewidechar = -1;
static int hf_isobus_vt_getsupportedwidechars_lastavailablewidechar = -1;
static int hf_isobus_vt_getnumberofsoftkeys_navigationsoftkeys = -1;
static int hf_isobus_vt_getnumberofsoftkeys_xdots = -1;
static int hf_isobus_vt_getnumberofsoftkeys_ydots = -1;
static int hf_isobus_vt_getnumberofsoftkeys_virtualsoftkeys = -1;
static int hf_isobus_vt_getnumberofsoftkeys_physicalsoftkeys = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font8x8 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font8x12 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font12x16 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font16x16 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font16x24 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font24x32 = -1;
static int hf_isobus_vt_gettextfontdata_smallfontsizes_font32x32 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font32x48 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font48x64 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font64x64 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font64x96 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font96x128 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font128x128 = -1;
static int hf_isobus_vt_gettextfontdata_largefontsizes_font128x192 = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_boldtext = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_crossedouttext = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_underlinedtext = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_italicstext = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_invertedtext = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_flashinverted = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_flashhidden = -1;
static int hf_isobus_vt_gettextfontdata_typeattributes_proportionalfontrendering = -1;
static int hf_isobus_vt_getwindowmaskdata_backgroundcolourdatamask = -1;
static int hf_isobus_vt_getwindowmaskdata_backgroundcoloursoftkeymask = -1;
static int hf_isobus_vt_getsupportedobjects_numberofbytes = -1;
static int hf_isobus_vt_getsupportedobjects_objecttype = -1;
static int hf_isobus_vt_gethardware_boottime = -1;
static int hf_isobus_vt_gethardware_graphictype = -1;
static int hf_isobus_vt_gethardware_hardware = -1;
static int hf_isobus_vt_gethardware_hardware_touchscreen = -1;
static int hf_isobus_vt_gethardware_hardware_pointingdevice = -1;
static int hf_isobus_vt_gethardware_hardware_multifreqaudiooutput = -1;
static int hf_isobus_vt_gethardware_hardware_adjustvolumeaudiooutput = -1;
static int hf_isobus_vt_gethardware_hardware_simultaneousactivationphysicalsoftkeys = -1;
static int hf_isobus_vt_gethardware_hardware_simultaneousactivationbuttons = -1;
static int hf_isobus_vt_gethardware_hardware_dragoperation = -1;
static int hf_isobus_vt_gethardware_hardware_intermediatecoordinatesdrag = -1;
static int hf_isobus_vt_gethardware_xpixels = -1;
static int hf_isobus_vt_gethardware_ypixels = -1;
static int hf_isobus_vt_storeversion_versionlabel = -1;
static int hf_isobus_vt_storeversion_errorcodes = -1;
static int hf_isobus_vt_loadversion_versionlabel = -1;
static int hf_isobus_vt_loadversion_errorcodes = -1;
static int hf_isobus_vt_deleteversion_versionlabel = -1;
static int hf_isobus_vt_deleteversion_errorcodes = -1;
static int hf_isobus_vt_extendedgetversions_numberofversions = -1;
static int hf_isobus_vt_extendedgetversions_versionlabel = -1;
static int hf_isobus_vt_extendedstoreversion_versionlabel = -1;
static int hf_isobus_vt_extendedstoreversion_errorcodes = -1;
static int hf_isobus_vt_extendedloadversion_versionlabel = -1;
static int hf_isobus_vt_extendedloadversion_errorcodes = -1;
static int hf_isobus_vt_extendeddeleteversion_versionlabel = -1;
static int hf_isobus_vt_extendeddeleteversion_errorcodes = -1;
static int hf_isobus_vt_getversions_numberofversions = -1;
static int hf_isobus_vt_getversions_versionlabel = -1;
static int hf_isobus_vt_unsupportedvtfunction_unsupportedvtfunction = -1;
static int hf_isobus_vt_vtstatus_workingsetmaster = -1;
static int hf_isobus_vt_vtstatus_objectiddatamask = -1;
static int hf_isobus_vt_vtstatus_objectidsoftkeymask = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_updatingvisiblemask = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_savingdata = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_executingcommand = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_executingmacro = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_parsingobjectpool = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_auxcontrolsactive = -1;
static int hf_isobus_vt_vtstatus_vtbusycodes_outofmemory = -1;
static int hf_isobus_vt_vtstatus_vtfunctioncodes = -1;
static int hf_isobus_vt_wrksetmain_bitmask = -1;
static int hf_isobus_vt_wrksetmain_version = -1;


#define VT_SOFT_KEY_ACTIVATION                  0
#define VT_BUTTON_ACTIVATION                    1
#define VT_POINTING_EVENT                       2
#define VT_VT_SELECT_INPUT_OBJECT               3
#define VT_VT_ESC_MESSAGE                       4
#define VT_VT_CHANGE_NUMERIC_VALUE              5
#define VT_VT_CHANGE_ACTIVE_MASK                6
#define VT_VT_CHANGE_SOFT_KEY_MASK              7
#define VT_VT_CHANGE_STRING_VALUE               8
#define VT_VT_ON_USER_LAYOUT_HIDE_SHOW          9
#define VT_VT_CONTROL_AUDIO_SIGNAL_TERMINATION  10
#define VT_OBJECT_POOL_TRANSFER                 17
#define VT_END_OF_OBJECT_POOL                   18
#define VT_AUXILIARY_ASSIGNMENT_TYPE_1          32
#define VT_AUXILIARY_INPUT_TYPE_1_STATUS        33
#define VT_PREFERRED_ASSIGNMENT                 34
#define VT_AUXILIARY_INPUT_TYPE_2_MAINTENANCE   35
#define VT_AUXILIARY_ASSIGNMENT_TYPE_2          36
#define VT_AUXILIARY_INPUT_STATUS_TYPE_2_ENABLE 37
#define VT_AUXILIARY_INPUT_TYPE_2_STATUS        38
#define VT_AUXILIARY_CAPABILITIES               39
#define VT_ESC                                  146
#define VT_HIDE_SHOW_OBJECT                     160
#define VT_ENABLE_DISABLE_COMMAND               161
#define VT_SELECT_INPUT_OBJECT                  162
#define VT_CONTROL_AUDIO_SIGNAL                 163
#define VT_SET_AUDIO_VOLUME                     164
#define VT_CHANGE_CHILD_LOCATION                165
#define VT_CHANGE_SIZE                          166
#define VT_CHANGE_BACKGROUND_COLOUR             167
#define VT_CHANGE_NUMERIC_VALUE                 168
#define VT_CHANGE_END_POINT                     169
#define VT_CHANGE_FONT_ATTRIBUTES               170
#define VT_CHANGE_LINE_ATTRIBUTES               171
#define VT_CHANGE_FILL_ATTRIBUTES               172
#define VT_CHANGE_ACTIVE_MASK                   173
#define VT_CHANGE_SOFT_KEY_MASK                 174
#define VT_CHANGE_ATTRIBUTES                    175
#define VT_CHANGE_PRIORITY                      176
#define VT_CHANGE_LIST_ITEM                     177
#define VT_DELETE_OBJECT_POOL                   178
#define VT_CHANGE_STRING_VALUE                  179
#define VT_CHANGE_CHILD_POSITION                180
#define VT_CHANGE_OBJECT_LABEL                  181
#define VT_CHANGE_POLYGON_POINT                 182
#define VT_CHANGE_POLYGON_SCALE                 183
#define VT_GRAPHICS_CONTEXT                     184
#define VT_GET_ATTRIBUTE_VALUE                  185
#define VT_SELECT_COLOUR_MAP                    186
#define VT_IDENTIFY_VT                          187
#define VT_EXECUTE_EXTENDED_MACRO               188
#define VT_LOCK_UNLOCK_MASK                     189
#define VT_EXECUTE_MACRO                        190
#define VT_GET_MEMORY                           192
#define VT_GET_SUPPORTED_WIDECHARS              193
#define VT_GET_NUMBER_OF_SOFT_KEYS              194
#define VT_GET_TEXT_FONT_DATA                   195
#define VT_GET_WINDOW_MASK_DATA                 196
#define VT_GET_SUPPORTED_OBJECTS                197
#define VT_GET_HARDWARE                         199
#define VT_STORE_VERSION                        208
#define VT_LOAD_VERSION                         209
#define VT_DELETE_VERSION                       210
#define VT_EXTENDED_GET_VERSIONS                211
#define VT_EXTENDED_STORE_VERSION               212
#define VT_EXTENDED_LOAD_VERSION                213
#define VT_EXTENDED_DELETE_VERSION              214
#define VT_GET_VERSIONS_MESSAGE                 223
#define VT_GET_VERSIONS_RESPONSE                224
#define VT_UNSUPPORTED_VT_FUNCTION              253
#define VT_VT_STATUS                            254
#define VT_WORKING_SET_MAINTENANCE              255

static const value_string vt_function_code[] = {
    { VT_SOFT_KEY_ACTIVATION                 , "Soft Key Activation" },
    { VT_BUTTON_ACTIVATION                   , "Button Activation" },
    { VT_POINTING_EVENT                      , "Pointing Event" },
    { VT_VT_SELECT_INPUT_OBJECT              , "VT Select Input Object" },
    { VT_VT_ESC_MESSAGE                      , "VT ESC message" },
    { VT_VT_CHANGE_NUMERIC_VALUE             , "VT Change Numeric Value" },
    { VT_VT_CHANGE_ACTIVE_MASK               , "VT Change Active Mask" },
    { VT_VT_CHANGE_SOFT_KEY_MASK             , "VT Change Soft Key Mask" },
    { VT_VT_CHANGE_STRING_VALUE              , "VT Change String Value" },
    { VT_VT_ON_USER_LAYOUT_HIDE_SHOW         , "VT On User-Layout Hide/Show" },
    { VT_VT_CONTROL_AUDIO_SIGNAL_TERMINATION , "VT Control Audio Signal Termination" },
    { VT_OBJECT_POOL_TRANSFER                , "Object pool transfer" },
    { VT_END_OF_OBJECT_POOL                  , "End of Object Pool" },
    { VT_AUXILIARY_ASSIGNMENT_TYPE_1         , "Auxiliary Assignment Type 1" },
    { VT_AUXILIARY_INPUT_TYPE_1_STATUS       , "Auxiliary Input Type 1" },
    { VT_PREFERRED_ASSIGNMENT                , "Preferred Assignment" },
    { VT_AUXILIARY_INPUT_TYPE_2_MAINTENANCE  , "Auxiliary Input Type 2 Maintenance" },
    { VT_AUXILIARY_ASSIGNMENT_TYPE_2         , "Auxiliary Assignment Type 2" },
    { VT_AUXILIARY_INPUT_STATUS_TYPE_2_ENABLE, "Auxiliary Input Status Type 2 Enable" },
    { VT_AUXILIARY_INPUT_TYPE_2_STATUS       , "Auxiliary Input Type 2 Status" },
    { VT_AUXILIARY_CAPABILITIES              , "Auxiliary Capabilities" },
    { VT_ESC                                 , "ESC" },
    { VT_HIDE_SHOW_OBJECT                    , "Hide/Show Object" },
    { VT_ENABLE_DISABLE_COMMAND              , "Enable/Disable Object" },
    { VT_SELECT_INPUT_OBJECT                 , "Select Input Object" },
    { VT_CONTROL_AUDIO_SIGNAL                , "Control Audio Signal" },
    { VT_SET_AUDIO_VOLUME                    , "Set Audio Volume" },
    { VT_CHANGE_CHILD_LOCATION               , "Change Child Location" },
    { VT_CHANGE_SIZE                         , "Change Size" },
    { VT_CHANGE_BACKGROUND_COLOUR            , "Change Background Colour" },
    { VT_CHANGE_NUMERIC_VALUE                , "Change Numeric Value" },
    { VT_CHANGE_END_POINT                    , "Change End Point" },
    { VT_CHANGE_FONT_ATTRIBUTES              , "Change Font Attributes" },
    { VT_CHANGE_LINE_ATTRIBUTES              , "Change Line Attributes" },
    { VT_CHANGE_FILL_ATTRIBUTES              , "Change Fill Attributes" },
    { VT_CHANGE_ACTIVE_MASK                  , "Change Active Mask" },
    { VT_CHANGE_SOFT_KEY_MASK                , "Change Soft Key Mask" },
    { VT_CHANGE_ATTRIBUTES                   , "Change Attribute" },
    { VT_CHANGE_PRIORITY                     , "Change Priority" },
    { VT_CHANGE_LIST_ITEM                    , "Change List Item" },
    { VT_DELETE_OBJECT_POOL                  , "Delete Object Pool" },
    { VT_CHANGE_STRING_VALUE                 , "Change String Value" },
    { VT_CHANGE_CHILD_POSITION               , "Change Child Position" },
    { VT_CHANGE_OBJECT_LABEL                 , "Change Object Label" },
    { VT_CHANGE_POLYGON_POINT                , "Change Polygon Point" },
    { VT_CHANGE_POLYGON_SCALE                , "Change Polygon Scale" },
    { VT_GRAPHICS_CONTEXT                    , "Graphics Context" },
    { VT_GET_ATTRIBUTE_VALUE                 , "Get Attribute Value" },
    { VT_SELECT_COLOUR_MAP                   , "Select Colour Map" },
    { VT_IDENTIFY_VT                         , "Identify VT" },
    { VT_EXECUTE_EXTENDED_MACRO              , "Execute Extended Macro" },
    { VT_LOCK_UNLOCK_MASK                    , "Lock/Unlock Mask" },
    { VT_EXECUTE_MACRO                       , "Execute Macro" },
    { VT_GET_MEMORY                          , "Get Memory" },
    { VT_GET_SUPPORTED_WIDECHARS             , "Get Supported Widechars" },
    { VT_GET_NUMBER_OF_SOFT_KEYS             , "Get Number of Soft Keys" },
    { VT_GET_TEXT_FONT_DATA                  , "Get Text Font Data" },
    { VT_GET_WINDOW_MASK_DATA                , "Get Window Mask Data" },
    { VT_GET_SUPPORTED_OBJECTS               , "Get Supported Objects" },
    { VT_GET_HARDWARE                        , "Get Hardware" },
    { VT_STORE_VERSION                       , "Store Version" },
    { VT_LOAD_VERSION                        , "Load Version" },
    { VT_DELETE_VERSION                      , "Delete Version" },
    { VT_EXTENDED_GET_VERSIONS               , "Extended Get Versions" },
    { VT_EXTENDED_STORE_VERSION              , "Extended Store Version" },
    { VT_EXTENDED_LOAD_VERSION               , "Extended Load Version" },
    { VT_EXTENDED_DELETE_VERSION             , "Extended Delete Version" },
    { VT_GET_VERSIONS_MESSAGE                , "Get Versions message" },
    { VT_GET_VERSIONS_RESPONSE               , "Get Versions response" },
    { VT_UNSUPPORTED_VT_FUNCTION             , "Unsupported VT Function" },
    { VT_VT_STATUS                           , "VT Status" },
    { VT_WORKING_SET_MAINTENANCE             , "Working Set Maintenance" },
    { 0, NULL }
};
static value_string_ext vt_function_code_ext = VALUE_STRING_EXT_INIT(vt_function_code);

#define SET_GRAPHICS_CURSOR              0
#define MOVE_GRAPHICS_CURSOR             1
#define SET_FOREGROUND_COLOUR            2
#define SET_BACKGROUND_COLOUR            3
#define SET_LINE_ATTRIBUTES_OBJECT_ID    4
#define SET_FILL_ATTRIBUTES_OBJECT_ID    5
#define SET_FONT_ATTRIBUTES_OBJECT_ID    6
#define ERASE_RECTANGLE                  7
#define DRAW_POINT                       8
#define DRAW_LINE                        9
#define DRAW_RECTANGLE                   10
#define DRAW_CLOSED_ELLIPSE              11
#define DRAW_POLYGON                     12
#define DRAW_TEXT                        13
#define PAN_VIEWPORT                     14
#define ZOOM_VIEWPORT                    15
#define PAN_AND_ZOOM_VIEWPORT            16
#define CHANGE_VIEWPORT_SIZE             17
#define DRAW_VT_OBJECT                   18
#define COPY_CANVAS_TO_PICTURE_GRAPHIC   19
#define COPY_VIEWPORT_TO_PICTURE_GRAPHIC 20

static const value_string graphics_context_sub_command_id[] = {
    { SET_GRAPHICS_CURSOR              , "Set Graphics Cursor" },
    { MOVE_GRAPHICS_CURSOR             , "Move Graphics Cursor" },
    { SET_FOREGROUND_COLOUR            , "Set Foreground Colour" },
    { SET_BACKGROUND_COLOUR            , "Set Background Colour" },
    { SET_LINE_ATTRIBUTES_OBJECT_ID    , "Set Line Attributes Object ID" },
    { SET_FILL_ATTRIBUTES_OBJECT_ID    , "Set Fill Attributes Object ID" },
    { SET_FONT_ATTRIBUTES_OBJECT_ID    , "Set Font Attributes Object ID" },
    { ERASE_RECTANGLE                  , "Erase Rectangle" },
    { DRAW_POINT                       , "Draw Point" },
    { DRAW_LINE                        , "Draw Line" },
    { DRAW_RECTANGLE                   , "Draw Rectangle" },
    { DRAW_CLOSED_ELLIPSE              , "Draw Closed Ellipse" },
    { DRAW_POLYGON                     , "Draw Polygon" },
    { DRAW_TEXT                        , "Draw Text" },
    { PAN_VIEWPORT                     , "Pan Viewport" },
    { ZOOM_VIEWPORT                    , "Zoom Viewport" },
    { PAN_AND_ZOOM_VIEWPORT            , "Pan and Zoom Viewport" },
    { CHANGE_VIEWPORT_SIZE             , "Change Viewport Size" },
    { DRAW_VT_OBJECT                   , "Draw VT Object" },
    { COPY_CANVAS_TO_PICTURE_GRAPHIC   , "Copy Canvas to Picture Graphic" },
    { COPY_VIEWPORT_TO_PICTURE_GRAPHIC , "Copy Viewport to Picture Graphic" },
    { 0, NULL }
};
static value_string_ext graphics_context_sub_command_id_ext = VALUE_STRING_EXT_INIT(graphics_context_sub_command_id);

static const value_string vt_hide_show_action[] = {
    { 0, "Hide" },
    { 1, "Show" },
    { 0, NULL }
};

static const value_string vt_hide_show_action_info[] = {
    { 0, "hidden" },
    { 1, "shown" },
    { 0, NULL }
};

static const value_string vt_enable_disable_action[] = {
    { 0, "Disable" },
    { 1, "Enable" },
    { 0, NULL }
};

static const range_string vt_colours[] = {
    { 0  , 0  , "Black" },
    { 1  , 1  , "White" },
    { 2  , 2  , "Green" },
    { 3  , 3  , "Teal" },
    { 4  , 4  , "Maroon" },
    { 5  , 5  , "Purple" },
    { 6  , 6  , "Olive" },
    { 7  , 7  , "Silver" },
    { 8  , 8  , "Grey" },
    { 9  , 9  , "Blue" },
    { 10 , 10 , "Lime" },
    { 11 , 11 , "Cyan" },
    { 12 , 12 , "Red" },
    { 13 , 13 , "Magenta" },
    { 14 , 14 , "Yellow" },
    { 15 , 15 , "Navy" },
    { 16 , 231, "Colour code defined" },
    { 232, 255, "Proprietary" },
    { 0  , 0  , NULL }
};

#define KEY_RELEASED 0
#define KEY_PRESSED 1
#define KEY_STILL_PRESSED 2
#define KEY_PRESS_ABORTED 3

static const value_string key_activation_codes[] = {
    { KEY_RELEASED, "Key has been released (state change)" },
    { KEY_PRESSED, "Key has been pressed (state change)" },
    { KEY_STILL_PRESSED, "Key is still pressed" },
    { KEY_PRESS_ABORTED, "Key press aborted" },
    { 0, NULL }
};

static const value_string key_activation_codes_info_postfix[] = {
    { KEY_RELEASED, "has been released" },
    { KEY_PRESSED, "has been pressed" },
    { KEY_STILL_PRESSED, "is still held" },
    { KEY_PRESS_ABORTED, "press aborted" },
    { 0, NULL }
};

#define BUTTON_RELEASED 0
#define BUTTON_PRESSED 1
#define BUTTON_STILL_HELD 2
#define BUTTON_PRESS_ABORTED 3

static const value_string button_activation_codes[] = {
    { BUTTON_RELEASED, "Button has been unlatched or released (state change)" },
    { BUTTON_PRESSED, "Button has been \"pressed\" or latched (state change)" },
    { BUTTON_STILL_HELD, "Button is still held (latchable buttons do not repeat)" },
    { BUTTON_PRESS_ABORTED, "Button press aborted" },
    { 0, NULL }
};

#define TOUCH_RELEASED 0
#define TOUCH_PRESSED 1
#define TOUCH_HELD 2

static const value_string pointing_touch_state[] = {
    { TOUCH_RELEASED, "Released" },
    { TOUCH_PRESSED, "Pressed" },
    { TOUCH_HELD, "Held" },
    { 0, NULL }
};

static const value_string pointing_touch_state_info_postfix[] = {
    { TOUCH_RELEASED, "has been released" },
    { TOUCH_PRESSED, "has been pressed" },
    { TOUCH_HELD, "is still held" },
    { 0, NULL }
};

static const value_string selection[] = {
    { 0, "Object is deselected" },
    { 1, "Object is selected (has focus)" },
    { 0, NULL }
};

static const range_string vt_versions[] = {
    { 0, 2, "Reserved" },
    { 3, 3, "Compliant with VT Version 3" },
    { 4, 4, "Compliant with VT Version 4" },
    { 5, 5, "Compliant with VT Version 5" },
    { 6, 254, "Reserved" },
    { 255, 255, "Compliant with VT Version 2" },
    { 0, 0, NULL }
};

static const value_string line_direction[] = {
    { 0, "Top left to bottom right" },
    { 1, "Bottom left to top right" },
    { 0, NULL }
};

#define MASK_UNLOCK 0
#define MASK_LOCK 1

static const value_string lock_unlock[] = {
    { MASK_UNLOCK, "Unlock Data Mask or User-Layout Data Mask" },
    { MASK_LOCK  , "Lock Data Mask or User-Layout Data Mask" },
    { 0, NULL }
};

#define ENOUGH_MEMORY 0
#define NOT_ENOUGH_MEMORY 1

static const value_string memory_status[] = {
    { ENOUGH_MEMORY    , "There can be enough memory." },
    { NOT_ENOUGH_MEMORY, "There is not enough memory available. Do not transmit Object Pool." },
    { 0, NULL }
};

static const value_string vt_versions_extended[] = {
    { 0, "Hannover Agritechnica 2001 limited feature set" },
    { 1, "FDIS Version ISO11783-6:2004(E), (Final Draft International Standard)" },
    { 2, "IS Version ISO11783-6:2004(E), First Edition, 2004-06-15" },
    { 3, "IS Version ISO11783-6:2010(E), Second Edition, (ISO11783-6:2004(E) and features specifically noted with version 3 reference)" },
    { 4, "IS Version ISO11783-6:2010(E), Second Edition, (ISO11783-6:2004(E) and features specifically noted with version 4 reference)" },
    { 5, "IS Version ISO11783-6:2014(E), Third Edition" },
    { 0, NULL }
};

static const range_string vt_object_types[] = {
    /* Top level objects */
    { 0,   0,   "Working Set object" },
    { 1,   1,   "Data Mask object" },
    { 2,   2,   "Alarm Mask object" },
    { 3,   3,   "Container object" },
    { 34,  34,  "Window Mask object" },
    /* Key objects */
    { 4,   4,   "Soft Key Mask object" },
    { 5,   5,   "Key object" },
    { 6,   6,   "Button object" },
    { 35,  35,  "Key Group object" },
    /* Input field objects */
    { 7,   7,   "Input Boolean object" },
    { 8,   8,   "Input String object" },
    { 9,   9,   "Input Number object" },
    { 10,  10,  "Input List object" },
    /* Output field objects */
    { 11,  11,  "Output String object" },
    { 12,  12,  "Output Number object" },
    { 37,  37,  "Output List object" },
    /* Output shape objects */
    { 13,  13,  "Output Line object" },
    { 14,  14,  "Output Rectangle object" },
    { 15,  15,  "Output Ellipse object" },
    { 16,  16,  "Output Polygon object" },
    /* Output graphic objects */
    { 17,  17,  "Output Meter object" },
    { 18,  18,  "Output Linear Bar Graph object" },
    { 19,  19,  "Output Arched Bar Graph object" },
    { 36,  36,  "Graphics Context object" },
    { 44,  44,  "Animation object" },
    /* Picture graphic object */
    { 20,  20,  "Picture Graphic object" },
    /* Variable objects */
    { 21,  21,  "Number Variable object" },
    { 22,  22,  "String Variable object" },
    /* Attribute Objects */
    { 23,  23,  "Font Attributes object" },
    { 24,  24,  "Line Attributes object" },
    { 25,  25,  "Fill Attributes object" },
    { 26,  26,  "Input Attributes object" },
    { 38,  38,  "Extended Input Attributes object" },
    { 39,  39,  "Colour Map object" },
    { 40,  40,  "Object Label Reference List object" },
    /* Pointer objects */
    { 27,  27,  "Object Pointer object" },
    { 41,  41,  "External Object Definition object" },
    { 42,  42,  "External Reference NAME object" },
    { 43,  43,  "External Object Pointer object" },
    /* Macro object */
    { 28,  28,  "Macro object" },
    /* Auxiliary control */
    { 29,  29,  "Auxiliary Function Type 1 object" },
    { 30,  30,  "Auxiliary Input Type 1 object" },
    { 31,  31,  "Auxiliary Function Type 2 object" },
    { 32,  32,  "Auxiliary Input Type 2 object" },
    { 33,  33,  "Auxiliary Control Designator Type 2 Object Pointer" },
    /* Proprietary Objects */
    { 240, 254, "Manufacturer Defined Objects" },
    /* Reserved Objects */
    { 45,  239, "Reserved" },
    { 255, 255, "Reserved" },
    { 0, 0, NULL }
};

static const value_string graphic_types[] = {
    { 0, "Monochrome" },
    { 1, "16 Colour" },
    { 2, "256 Colour" },
    { 0, NULL }
};

static const value_string auxiliary_boolean_value[] = {
    { 0, "Disabled" },
    { 1, "Enabled" },
    { 2, "non-latched Boolean held" },
    { 0xFF, "Analog" },
    { 0, NULL }
};

static const value_string auxiliary_maintenance_status[] = {
    { 0, "Initializing, pool is not currently available for assignment." },
    { 1, "Ready, pool has been loaded into the VT and is available for assignments." },
    { 0, NULL }
};

static const value_string auxiliary_capabilities_request_type[] = {
    { 0, "Request capabilities of Auxiliary Input Unit(s)" },
    { 1, "Request capabilities of Auxiliary Function Unit(s)" },
    { 0, NULL }
};

static const value_string auxiliary_assigned_attributes[] = {
    { 0, "auxiliary input" },
    { 1, "auxiliary function" },
    { 2, "Input is assigned" },
    { 0, NULL }
};

static const value_string select_input_object_option[] = {
    { 0xFF, "Set Focus to object referenced by Object ID " },
    { 0   , "Activate for data-input the object reference by Object ID" },
    { 0, NULL },
};

static const value_string select_input_opject_response[] = {
    { 0, "Object referenced by Object ID is not selected or Object ID is the NULL object" },
    { 1, "Object referenced by Object ID is Selected" },
    { 2, "Object referenced by Object ID is Opened for Edit" },
    { 0, NULL }
};

static const value_string draw_text_background[] = {
    { 0, "Opaque" },
    { 1, "Transparant" },
    { 0, NULL }
};

static value_string object_id_strings[MAX_OBJECT_ID_DB_SIZE];

/* Initialize the subtree pointers */
static gint ett_isobus_vt = -1;
static gint ett_isobus_vt_vtstatus_busycodes_subtree = -1;
static gint ett_isobus_vt_getsupportedwidechars_range = -1;
static gint ett_isobus_vt_gettextfontdata_smallfontsizes = -1;
static gint ett_isobus_vt_gettextfontdata_largefontsizes = -1;
static gint ett_isobus_vt_gettextfontdata_typeattributes = -1;
static gint ett_isobus_vt_gethardware_hardware = -1;
static gint ett_isobus_vt_preferredassignment_inputunit = -1;
static gint ett_isobus_vt_preferredassignment_inputunit_preferredfunction = -1;
static gint ett_isobus_vt_auxiliarycapabilities_inputunit = -1;
static gint ett_isobus_vt_auxiliarycapabilities_inputunit_set = -1;
static gint ett_isobus_vt_auxiliaryassignmenttype2_flags = -1;
static gint ett_isobus_vt_auxiliaryinputtype2status_operatingstate = -1;

static const char *object_id_translation = "";

enum vt_direction
{
    vt_to_ecu,
    ecu_to_vt
};

static const gchar* get_object_id_string(guint16 object_id)
{
    const gchar* translated_string;
    if(object_id == 0xFFFF)
    {
        return "NULL Object ID";
    }

    translated_string = val_to_str(object_id, object_id_strings, "Object ID 0x%04X");
    return translated_string;
}

static int
dissect_vt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, enum vt_direction direction)
{
    int offset = 0;
    guint32 function_id;
    proto_item *ti;

    ti = proto_tree_add_item(tree,
        hf_isobus_vt, tvb, 0, 0, ENC_NA);
    PROTO_ITEM_SET_HIDDEN(ti);

    proto_tree_add_item_ret_uint(tree,
        hf_isobus_vt_command, tvb, offset, 1, ENC_LITTLE_ENDIAN, &function_id);
    offset += 1;

    switch(function_id)
    {
    case VT_SOFT_KEY_ACTIVATION:
    {
        guint32 key_activation_code, object_id, parent_object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_softkey_keyactcode, tvb, offset, 1, ENC_LITTLE_ENDIAN, &key_activation_code);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_softkey_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_softkey_parentobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &parent_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item(tree,
            hf_isobus_vt_softkey_keynumber, tvb, offset, 1, ENC_LITTLE_ENDIAN);

        col_append_fstr(pinfo->cinfo, COL_INFO, "Key %s of parent %s %s",
            get_object_id_string(object_id), get_object_id_string(parent_object_id),
            val_to_str(key_activation_code, key_activation_codes_info_postfix, "unknown action"));
    }
        break;
    case VT_BUTTON_ACTIVATION:
    {
        guint32 key_activation_code, object_id, parent_object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_button_keyactcode, tvb, offset, 1, ENC_LITTLE_ENDIAN, &key_activation_code);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_button_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_button_parentobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &parent_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item(tree,
            hf_isobus_vt_button_keynumber, tvb, offset, 1, ENC_LITTLE_ENDIAN);

        col_append_fstr(pinfo->cinfo, COL_INFO, "Button %s of parent %s %s",
            get_object_id_string(object_id), get_object_id_string(parent_object_id),
            val_to_str(key_activation_code, key_activation_codes_info_postfix, "unknown action"));
    }
        break;
    case VT_POINTING_EVENT:
    {
        guint32 x_position, y_position, touch_state = 0;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_pointing_xposition, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_position);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_pointing_yposition, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_position);
        offset += 2;

        if(current_vt_version >= 4)
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_pointing_touchstate, tvb, offset, 1, ENC_LITTLE_ENDIAN, &touch_state);
        }

        col_append_fstr(pinfo->cinfo, COL_INFO, "Touch at [%d;%d]",
            x_position, y_position);

        if(current_vt_version >= 4)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, " %s", val_to_str(touch_state, pointing_touch_state_info_postfix, "unknown action"));
        }
    }
        break;
    case VT_VT_SELECT_INPUT_OBJECT:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtselectinputobject_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item(tree,
            hf_isobus_vt_vtselectinputobject_selection, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        offset += 1;

        if(current_vt_version >= 4)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_vtselectinputobject_openforinput, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        }

        col_append_fstr(pinfo->cinfo, COL_INFO, "%s was selected by VT", get_object_id_string(object_id));
    }
        break;
    case VT_VT_ESC_MESSAGE:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtescmessage_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtescmessage_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "No input field is selected ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            col_append_fstr(pinfo->cinfo, COL_INFO, "ESC button was pressed while %s was selected", get_object_id_string(object_id));
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "ESC button press was successfully received");
        }
    }
        break;
    case VT_VT_CHANGE_NUMERIC_VALUE:
    {
        guint32 object_id, value;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtchgnumval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        offset += 1; /* byte 4 is reserved */

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtchgnumval_value, tvb, offset, 4, ENC_LITTLE_ENDIAN, &value);

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT Numeric value of %s has changed to 0x%X",
                get_object_id_string(object_id), value);
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT Numeric value of %s should change to 0x%X",
                get_object_id_string(object_id), value);
        }
    }
        break;
    case VT_VT_CHANGE_ACTIVE_MASK:
    {
        guint32 mask_object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtchgactivemask_maskobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &mask_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            guint32 error_object_id, error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtchgactivemask_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Missing object ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Mask or child object has errors ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
            if (error_codes & 0x20)
                proto_item_append_text(ti, "Pool being deleted ");
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtchgactivemask_errorobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &error_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtchgactivemask_errorobjectidparent, tvb, offset, 2, ENC_LITTLE_ENDIAN, &error_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "VT Active mask changed to %s",
                    get_object_id_string(mask_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "VT Active mask changed to %s because of error in %s",
                    get_object_id_string(mask_object_id), get_object_id_string(error_object_id));
            }
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT Active mask change to %s acknowledged",
                get_object_id_string(mask_object_id));
        }
    }
        break;
    case VT_VT_CHANGE_STRING_VALUE:
    {
        if(direction == vt_to_ecu)
        {
            guint encoding = ENC_ASCII|ENC_NA;
            guint32 object_id, str_length;
            guint16 firstTwoBytesString;
            const guint8* value;
            guint bomOffset = 0;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtchgstrval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_vtchgstrval_length, tvb, offset, 1, ENC_LITTLE_ENDIAN, &str_length);
            offset += 1;

            firstTwoBytesString = tvb_get_letohs(tvb,offset);
            if(firstTwoBytesString == 0xFEFF)
            {
                encoding = ENC_UCS_2;
                bomOffset = 2;
            }

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_vtchgstrval_value, tvb, offset + bomOffset, str_length - bomOffset, encoding,
                wmem_packet_scope(), &value);

            col_append_fstr(pinfo->cinfo, COL_INFO, "VT String value of %s should change to %s",
                get_object_id_string(object_id), value);
        }
        else
        {
            guint32 object_id;

            offset += 2;    /* first two bytes are reserved */

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgstrval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);

            col_append_fstr(pinfo->cinfo, COL_INFO, "VT String value change of %s acknowledged",
                get_object_id_string(object_id));
        }
    }
        break;
    case VT_VT_ON_USER_LAYOUT_HIDE_SHOW:
    {
        guint32 object_id[2], status[2];

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtonuserlayouthideshow_objectid_1, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id[0]);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtonuserlayouthideshow_status_1, tvb, offset, 1, ENC_LITTLE_ENDIAN, &status[0]);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtonuserlayouthideshow_objectid_2, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id[1]);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtonuserlayouthideshow_status_2, tvb, offset, 1, ENC_LITTLE_ENDIAN, &status[1]);

        col_append_fstr(pinfo->cinfo, COL_INFO, "VT On User-Layout Hide/Show. %s is %s, %s is %s",
            get_object_id_string(object_id[0]), val_to_str(status[0], vt_hide_show_action_info, "unknown"),
            get_object_id_string(object_id[1]), val_to_str(status[1], vt_hide_show_action_info, "unknown"));
    }
        break;
    case VT_VT_CONTROL_AUDIO_SIGNAL_TERMINATION:
    {
        guint32 termination_cause;

        ti = proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtcontrolaudiosignaltermination_terminationcause, tvb, offset, 1, ENC_LITTLE_ENDIAN, &termination_cause);

        proto_item_append_text(ti, ": ");
        if (termination_cause & 0x01)
            proto_item_append_text(ti, "Audio was terminated ");

        if (termination_cause & 0x01)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT Control audio signal termination: Audio was terminated");
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT Control audio signal termination: Error in message");
        }
    }
        break;
    case VT_END_OF_OBJECT_POOL:
    {
        if(direction == vt_to_ecu)
        {
            guint32 error_codes, obj_pool_error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_endofobjectpool_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "There are errors in the Object Pool ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "VT ran out of memory during transfer ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_endofobjectpool_faultyparentobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item(tree,
                hf_isobus_vt_endofobjectpool_faultyobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_endofobjectpool_objectpoolerrorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &obj_pool_error_codes);
            proto_item_append_text(ti, ": ");
            if (obj_pool_error_codes & 0x01)
                proto_item_append_text(ti, "method or Attribute not supported by the VT ");
            if (obj_pool_error_codes & 0x02)
                proto_item_append_text(ti, "unknown object reference (missing object) ");
            if (obj_pool_error_codes & 0x04)
                proto_item_append_text(ti, "any other error ");
            if (obj_pool_error_codes & 0x08)
                proto_item_append_text(ti, "object pool was deleted from volatile memory ");

            if(error_codes & 0x01)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "End of object pool received, object pool contains errors");
            }
            else if(error_codes & 0x02)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "End of object pool received, but VT ran out of memory");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "End of object pool received, object pool accepted");
            }
        }
    }
        break;
    case VT_AUXILIARY_ASSIGNMENT_TYPE_1:
    {
        guint32 source_address, aux_input_number, object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryassignmenttype1_sourceaddressauxinputdevice, tvb, offset, 1, ENC_LITTLE_ENDIAN, &source_address);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryassignmenttype1_auxinputnumber, tvb, offset, 1, ENC_LITTLE_ENDIAN, &aux_input_number);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryassignmenttype1_objectidauxinputdevice, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Assign auxiliary input type 1 number %u of device %u to %s",
                aux_input_number, source_address, get_object_id_string(object_id));
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Auxiliary input type 1 number %u of device %u has been assigned to %s",
                aux_input_number, source_address, get_object_id_string(object_id));
        }
    }
        break;
    case VT_AUXILIARY_INPUT_TYPE_1_STATUS:
    {
        guint32 input_number, boolean_value, analyze_value;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype1status_inputnumber, tvb, offset, 1, ENC_LITTLE_ENDIAN, &input_number);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype1status_analyzevalue, tvb, offset, 2, ENC_LITTLE_ENDIAN, &analyze_value);
        offset += 2;

        proto_tree_add_item(tree,
            hf_isobus_vt_auxiliaryinputtype1status_numberoftransitions, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype1status_booleanvalue, tvb, offset, 1, ENC_LITTLE_ENDIAN, &boolean_value);

        col_append_fstr(pinfo->cinfo, COL_INFO, "State of input %u is analog %u or digital %s",
            input_number, analyze_value, val_to_str(boolean_value, auxiliary_boolean_value, "unknown"));

    }
        break;
    case VT_PREFERRED_ASSIGNMENT:
    {
        if(direction == ecu_to_vt)
        {
            guint32 number_of_input_units, i;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_preferredassignment_numberofinputunits, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_input_units);
            offset += 1;

            for(i = 0; i < number_of_input_units; i++)
            {
                proto_item *input_unit_item;
                proto_tree *input_unit_subtree;
                guint32 number_of_preferred_functions, j, model_identification_code;
                guint64 name;

                input_unit_subtree = proto_tree_add_subtree_format(tree, tvb, offset, 0, ett_isobus_vt_preferredassignment_inputunit, &input_unit_item, "Input Unit");

                proto_tree_add_item_ret_uint64(input_unit_subtree,
                    hf_isobus_vt_preferredassignment_auxinputunit_name, tvb, offset, 8, ENC_LITTLE_ENDIAN, &name);
                offset += 8;

                proto_tree_add_item_ret_uint(input_unit_subtree,
                    hf_isobus_vt_preferredassignment_auxinputunit_modelidentificationcode, tvb, offset, 2, ENC_LITTLE_ENDIAN, &model_identification_code);
                offset += 2;

                proto_tree_add_item_ret_uint(input_unit_subtree,
                    hf_isobus_vt_preferredassignment_auxinputunit_numberofpreferredfunctions, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_preferred_functions);
                offset += 1;

                proto_item_set_text(input_unit_item, "Input Unit name 0x%" G_GINT64_MODIFIER "X model identification code %u", name, model_identification_code);
                proto_item_set_len(input_unit_item, 8 + 2 + 1 + ((2 + 2) * number_of_preferred_functions));

                for(j = 0; j < number_of_preferred_functions; j++)
                {
                    proto_item *preferred_function_item;
                    proto_tree *preferred_function_subtree;
                    guint32 auxiliary_function_object_id, auxiliary_input_object_id;

                    preferred_function_subtree = proto_tree_add_subtree(input_unit_subtree, tvb, offset, 4,
                        ett_isobus_vt_preferredassignment_inputunit_preferredfunction, &preferred_function_item, "Input Unit");

                    proto_tree_add_item_ret_uint(preferred_function_subtree,
                        hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxfunctionobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_function_object_id);
                    ti = proto_tree_add_item(tree,
                        hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                    PROTO_ITEM_SET_HIDDEN(ti);
                    offset += 2;

                    proto_tree_add_item_ret_uint(preferred_function_subtree,
                        hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxinputobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_input_object_id);
                    ti = proto_tree_add_item(tree,
                        hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                    PROTO_ITEM_SET_HIDDEN(ti);
                    offset += 2;

                    proto_item_set_text(preferred_function_item, "Auxiliary Function %s connects to Auxiliary Input %s",
                        get_object_id_string(auxiliary_function_object_id), get_object_id_string(auxiliary_input_object_id));
                }
            }
            col_append_fstr(pinfo->cinfo, COL_INFO, "Create preferred assignment");
        }
        else
        {
            guint32 error_codes, faulty_auxiliary_function_object_id;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_preferredassignment_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Auxiliary Input Unit(s) not valid ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Function Object ID(s) not valid ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Input Object ID(s) not valid ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Duplicate Object ID of Auxiliary Function ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_preferredassignment_faultyauxiliaryfunctionobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &faulty_auxiliary_function_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while creating preferred assignment because of %s", get_object_id_string(faulty_auxiliary_function_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Successfully created preferred assignment");
            }
        }
    }
        break;
    case VT_AUXILIARY_INPUT_TYPE_2_MAINTENANCE:
    {
        if(direction == ecu_to_vt)
        {
            guint32 model_identification_code, status;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryinputtype2maintenance_modelidentificationcode, tvb, offset, 2, ENC_LITTLE_ENDIAN, &model_identification_code);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryinputtype2maintenance_status, tvb, offset, 1, ENC_LITTLE_ENDIAN, &status);

            if(status == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Auxiliary Input Type 2 Maintenance: Model Identification Code %u, Status is Initializing",
                    model_identification_code);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Auxiliary Input Type 2 Maintenance: Model Identification Code %u, Status is Ready",
                    model_identification_code);
            }
        }
    }
        break;
    case VT_AUXILIARY_ASSIGNMENT_TYPE_2:
    {
        guint32 error_codes, auxiliary_input_object_id = 0, auxiliary_function_object_id;
        guint64 name = 0;

        if(direction == ecu_to_vt)
        {
            proto_tree *flags_subtree;

            proto_tree_add_item_ret_uint64(tree,
                hf_isobus_vt_auxiliaryassignmenttype2_name, tvb, offset, 8, ENC_LITTLE_ENDIAN, &name);
            offset += 8;

            ti = proto_tree_add_item(tree,
                hf_isobus_vt_auxiliaryassignmenttype2_flags, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            flags_subtree = proto_item_add_subtree(ti, ett_isobus_vt_auxiliaryassignmenttype2_flags);
            ti = proto_tree_add_item(flags_subtree,
                hf_isobus_vt_auxiliaryassignmenttype2_flags_preferredassignment, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_GENERATED(ti);
            ti = proto_tree_add_item(flags_subtree,
                hf_isobus_vt_auxiliaryassignmenttype2_flags_auxiliaryfunctiontype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_GENERATED(ti);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryassignmenttype2_auxinputobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_input_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;
        }

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryassignmenttype2_auxfunctionobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_function_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryassignmenttype2_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "error, assignment not accepted ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "error, this function is already assigned ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Assign %s of name 0x%" G_GINT64_MODIFIER "X to function %s",
                get_object_id_string(auxiliary_input_object_id), name, get_object_id_string(auxiliary_function_object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while assigning function %s",
                    get_object_id_string(auxiliary_function_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Successfully assigned function %s",
                    get_object_id_string(auxiliary_function_object_id));
            }
        }
    }
        break;
    case VT_AUXILIARY_INPUT_STATUS_TYPE_2_ENABLE:
    {
        guint32 enable, status, error_codes, auxiliary_input_object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputstatustype2enable_auxiliaryinputobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_input_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryinputstatustype2enable_enable, tvb, offset, 1, ENC_LITTLE_ENDIAN, &enable);
        }
        else
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryinputstatustype2enable_status, tvb, offset, 1, ENC_LITTLE_ENDIAN, &status);
            offset += 1;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliaryinputstatustype2enable_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Auxiliary Input Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "any other error ");
        }

        if(direction == ecu_to_vt)
        {
            if(enable == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Auxiliary Input %s should be disabled",
                    get_object_id_string(auxiliary_input_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Auxiliary Input %s should be enabled",
                    get_object_id_string(auxiliary_input_object_id));
            }
        }
        else
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing status for Auxiliary Input %s",
                    get_object_id_string(auxiliary_input_object_id));
            }
            else
            {
                if(status == 0)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Status of Auxiliary Input %s was successfully changed to enabled",
                        get_object_id_string(auxiliary_input_object_id));
                }
                else
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Status of Auxiliary Input %s was successfully changed to enabled",
                        get_object_id_string(auxiliary_input_object_id));
                }
            }
        }
    }
        break;
    case VT_AUXILIARY_INPUT_TYPE_2_STATUS:
    {
        guint32 auxiliary_input_object_id, value_1, value_2;
        proto_tree* operating_state_subtree;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype2status_auxiliaryinputobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &auxiliary_input_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype2status_value1, tvb, offset, 2, ENC_LITTLE_ENDIAN, &value_1);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_auxiliaryinputtype2status_value2, tvb, offset, 2, ENC_LITTLE_ENDIAN, &value_2);
        offset += 2;

        ti = proto_tree_add_item(tree,
            hf_isobus_vt_auxiliaryinputtype2status_operatingstate, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        operating_state_subtree = proto_item_add_subtree(ti, ett_isobus_vt_auxiliaryinputtype2status_operatingstate);
        ti = proto_tree_add_item(operating_state_subtree,
            hf_isobus_vt_auxiliaryinputtype2status_operatingstate_learnmodeactive, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_GENERATED(ti);
        ti = proto_tree_add_item(operating_state_subtree,
            hf_isobus_vt_auxiliaryinputtype2status_operatingstate_inputactivatedinlearnmode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_GENERATED(ti);

        col_append_fstr(pinfo->cinfo, COL_INFO, "State of input %s value 1 = 0x%X value 2 = 0x%X.",
            get_object_id_string(auxiliary_input_object_id), value_1, value_2);
    }
        break;
    case VT_AUXILIARY_CAPABILITIES:
    {
        if(direction == ecu_to_vt)
        {
            guint32 request_type;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliarycapabilities_requesttype, tvb, offset, 1, ENC_LITTLE_ENDIAN, &request_type);

            col_append_fstr(pinfo->cinfo, COL_INFO, "%s ",
                val_to_str(request_type, auxiliary_capabilities_request_type, "Request capabilities of Unknown"));
        }
        else
        {
            guint32 number_of_auxiliary_units, i;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_auxiliarycapabilities_numberofauxiliaryunits, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_auxiliary_units);
            offset += 1;

            for(i = 0; i < number_of_auxiliary_units; i++)
            {
                proto_item *input_unit_item;
                proto_tree *input_unit_subtree;
                guint32 number_of_different_sets, j;
                guint64 name;

                input_unit_subtree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_isobus_vt_auxiliarycapabilities_inputunit, &input_unit_item, "Auxiliary Unit");

                proto_tree_add_item_ret_uint64(input_unit_subtree,
                    hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_name, tvb, offset, 8, ENC_LITTLE_ENDIAN, &name);
                offset += 8;

                proto_tree_add_item_ret_uint(input_unit_subtree,
                    hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_numberofdifferentsets, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_different_sets);
                offset += 1;

                proto_item_set_text(input_unit_item, "Auxiliary unit name 0x%" G_GINT64_MODIFIER "X", name);
                proto_item_set_len(input_unit_item, 8 + 1 + (3 * number_of_different_sets));

                for(j = 0; j < number_of_different_sets; j++)
                {
                    proto_item *auxiliary_unit_set;
                    proto_tree *preferred_function_subtree;
                    guint32 number_of_instances, function_attribute, assigned_attribute;

                    preferred_function_subtree = proto_tree_add_subtree(input_unit_subtree, tvb, offset, 3, ett_isobus_vt_auxiliarycapabilities_inputunit_set, &auxiliary_unit_set, "Auxiliary Unit");

                    proto_tree_add_item_ret_uint(preferred_function_subtree,
                        hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_numberofinstances, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_instances);
                    offset += 1;

                    proto_tree_add_item_ret_uint(preferred_function_subtree,
                        hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_functionattribute, tvb, offset, 1, ENC_LITTLE_ENDIAN, &function_attribute);
                    offset += 1;

                    proto_tree_add_item_ret_uint(preferred_function_subtree,
                        hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_assignedattribute, tvb, offset, 1, ENC_LITTLE_ENDIAN, &assigned_attribute);
                    offset += 1;

                    proto_item_set_text(input_unit_item, "Auxiliary set containing %u instances with function attribute %u assigned to %s",
                        number_of_instances, function_attribute, val_to_str(assigned_attribute, auxiliary_assigned_attributes, "unknown"));
                }
            }
            col_append_fstr(pinfo->cinfo, COL_INFO, "Received Auxiliary Capabilities");
        }
    }
        break;
    case VT_ESC:
        if(direction == vt_to_ecu)
        {
            guint32 object_id, error_codes;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_esc_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_esc_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "No input field is open for input, ESC ignored ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "ESC successful, %s", get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "ESC error");
            }
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "End of object pool received, object pool accepted");
        }
        break;
    case VT_HIDE_SHOW_OBJECT:
    {
        guint32 object_id, action;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_hideshowobj_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_hideshowobj_action, tvb, offset, 1, ENC_LITTLE_ENDIAN, &action);
        offset += 1;

        if(direction == vt_to_ecu)
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_hideshowobj_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Value ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Value in use ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Hide Show Error");
            }
            else
            {
                switch(action)
                {
                case 0:
                    col_append_fstr(pinfo->cinfo, COL_INFO, "%s is now hidden",
                        get_object_id_string(object_id));
                    break;
                case 1:
                    col_append_fstr(pinfo->cinfo, COL_INFO, "%s is now shown",
                        get_object_id_string(object_id));
                    break;
                }
            }
        }
        else
        {
            switch(action)
            {
            case 0:
                col_append_fstr(pinfo->cinfo, COL_INFO, "%s should hide",
                    get_object_id_string(object_id));
                break;
            case 1:
                col_append_fstr(pinfo->cinfo, COL_INFO, "%s should show",
                    get_object_id_string(object_id));
                break;
            }
        }
    }
        break;
    case VT_ENABLE_DISABLE_COMMAND:
    {
        guint32 object_id, enable_disable;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_enabledisableobj_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_enabledisableobj_enabledisable, tvb, offset, 1, ENC_LITTLE_ENDIAN, &enable_disable);
        offset += 1;

        if(direction == ecu_to_vt)
        {
            switch(enable_disable)
            {
            case 0:
                col_append_fstr(pinfo->cinfo, COL_INFO, "%s should disable",
                    get_object_id_string(object_id));
                break;
            case 1:
                col_append_fstr(pinfo->cinfo, COL_INFO, "%s should enable",
                    get_object_id_string(object_id));
                break;
            }
        }
        else
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_enabledisableobj_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Command error ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Could not complete. Operator input is active on this object. ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Enable Disable Error");
            }
            else
            {
                switch(enable_disable)
                {
                case 0:
                    col_append_fstr(pinfo->cinfo, COL_INFO, "%s is now disabled",
                        get_object_id_string(object_id));
                    break;
                case 1:
                    col_append_fstr(pinfo->cinfo, COL_INFO, "%s is now enabled",
                        get_object_id_string(object_id));
                    break;
                }

            }
        }
    }
        break;
    case VT_SELECT_INPUT_OBJECT:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_selectinputobject_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_selectinputobject_option, tvb, offset, 1, ENC_LITTLE_ENDIAN);

            col_append_fstr(pinfo->cinfo, COL_INFO, "%s should be selected for input",
                get_object_id_string(object_id));
        }
        else
        {
            guint32 response, error_codes;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_selectinputobject_response, tvb, offset, 1, ENC_LITTLE_ENDIAN, &response);
            offset += 1;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_selectinputobject_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Object is disabled ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Object is not on the active mask or object is in a hidden container ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Could not complete. Another Input field is currently being modified, or a Button or Soft Key is currently being held. ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
            if (error_codes & 0x20)
                proto_item_append_text(ti, "Invalid option value ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while selecting input object");
            }
            else
            {
                switch(response)
                {
                    case 0:
                        col_append_fstr(pinfo->cinfo, COL_INFO, "%s is not selected",
                            get_object_id_string(object_id));
                        break;
                    case 1:
                        col_append_fstr(pinfo->cinfo, COL_INFO, "%s is selected",
                            get_object_id_string(object_id));
                        break;
                    case 2:
                        col_append_fstr(pinfo->cinfo, COL_INFO, "%s is opened for edit",
                            get_object_id_string(object_id));
                        break;
                }
            }
        }
    }
        break;
    case VT_CONTROL_AUDIO_SIGNAL:
    {
        if(direction == ecu_to_vt)
        {
            guint32 activations, frequency, ontime, offtime;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_controlaudiosignal_activations, tvb, offset, 1, ENC_LITTLE_ENDIAN, &activations);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_controlaudiosignal_frequency, tvb, offset, 2, ENC_LITTLE_ENDIAN, &frequency);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_controlaudiosignal_ontime, tvb, offset, 2, ENC_LITTLE_ENDIAN, &ontime);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_controlaudiosignal_offtime, tvb, offset, 2, ENC_LITTLE_ENDIAN, &offtime);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Control audio signal with %d activations of %d Hz (On-time %d ms, Off-time %d ms.)",
                            activations, frequency, ontime, offtime);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_controlaudiosignal_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Audio device is busy ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Control audio signal Error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Control audio signal successful");
            }
        }
    }
        break;
    case VT_SET_AUDIO_VOLUME:
    {
        if(direction == ecu_to_vt)
        {
            guint32 volume;
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_setaudiovolume_volume, tvb, offset, 1, ENC_LITTLE_ENDIAN, &volume);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Set audio volume to %d%%", volume);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_setaudiovolume_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Audio device is busy, subsequent commands use the new setting ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Command is not supported ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Set audio volume Error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Set audio volume successful");
            }
        }
    }
        break;
    case VT_CHANGE_CHILD_LOCATION:
    {
        guint32 parent_object_id, object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changechildlocation_parentobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &parent_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changechildlocation_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            guint32 rel_x_location, rel_y_location;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildlocation_relativexpos, tvb, offset, 1, ENC_LITTLE_ENDIAN, &rel_x_location);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildlocation_relativeypos, tvb, offset, 1, ENC_LITTLE_ENDIAN, &rel_y_location);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change child location of %s in %s to [%u;%u]",
                            get_object_id_string(object_id), get_object_id_string(parent_object_id), rel_x_location, rel_y_location);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildlocation_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Parent Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Change child location error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Change child location of %s in %s succeeded",
                    get_object_id_string(object_id), get_object_id_string(parent_object_id));
            }
        }
    }
        break;
    case VT_CHANGE_SIZE:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changesize_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            guint32 new_width, new_height;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changesize_newwidth, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_width);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changesize_newheight, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_height);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change size of %s to %u x %u",
                get_object_id_string(object_id), new_width, new_height);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changesize_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Change size error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Change size of %s succeeded",
                    get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_BACKGROUND_COLOUR:
    {
        guint32 object_id, colour;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changebackgroundcolour_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changebackgroundcolour_colour, tvb, offset, 1, ENC_LITTLE_ENDIAN, &colour);
        offset += 1;

        if(direction == vt_to_ecu)
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changebackgroundcolour_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Value ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Value in use ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Background colour change error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Background colour of %s has changed to %s",
                    get_object_id_string(object_id), rval_to_str(colour, vt_colours, "Unknown"));
            }
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Background colour of %s should change to %s",
                get_object_id_string(object_id), rval_to_str(colour, vt_colours, "Unknown"));
        }
    }
        break;
    case VT_CHANGE_NUMERIC_VALUE:
    {
        guint32 object_id, error_codes, value;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_chgnumval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgnumval_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Value ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Value in use ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        } /* no else, byte is reserved for ecu_to_vt */
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_chgnumval_value, tvb, offset, 4, ENC_LITTLE_ENDIAN, &value);

        if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Numeric value change error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Numeric value of %s has changed to 0x%X",
                    get_object_id_string(object_id), value);
            }
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Numeric value of %s should change to 0x%X",
                get_object_id_string(object_id), value);
        }
    }
        break;
    case VT_CHANGE_END_POINT:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changeendpoint_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            guint32 width, height;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeendpoint_width, tvb, offset, 2, ENC_LITTLE_ENDIAN, &width);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeendpoint_height, tvb, offset, 2, ENC_LITTLE_ENDIAN, &height);
            offset += 2;

            proto_tree_add_item(tree,
                hf_isobus_vt_changeendpoint_linedirection, tvb, offset, 1, ENC_LITTLE_ENDIAN);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change end point of line %s to width %d and height %d",
                get_object_id_string(object_id), width, height);
        }
    }
        break;
    case VT_CHANGE_FONT_ATTRIBUTES:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changefontattributes_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_changefontattributes_fontcolour, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changefontattributes_fontsize, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changefontattributes_fonttype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changefontattributes_fontstyle, tvb, offset, 1, ENC_LITTLE_ENDIAN);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change font attributes of %s", get_object_id_string(object_id));
        }
        else
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changefontattributes_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid colour ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid size ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Invalid type ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Invalid style ");
            if (error_codes & 0x20)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Font attributes of %s successfully changed", get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing font attributes of %s", get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_LINE_ATTRIBUTES:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changelineattributes_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_changelineattributes_linecolour, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changelineattributes_linewidth, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changelineattributes_lineart, tvb, offset, 2, ENC_LITTLE_ENDIAN);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change line attributes of %s", get_object_id_string(object_id));
        }
        else
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changelineattributes_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid colour ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid width ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Line attributes of %s successfully changed", get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing line attributes of %s", get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_FILL_ATTRIBUTES:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changefillattributes_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_changefillattributes_filltype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changefillattributes_fillcolour, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changefillattributes_fillpatternobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change fill attributes of %s", get_object_id_string(object_id));
        }
        else
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changefillattributes_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid type ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid colour ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Invalid pattern Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Fill attributes of %s successfully changed", get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing fill attributes of %s", get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_ACTIVE_MASK:
    {
        guint32 working_set_object_id, new_active_mask_object_id, error_codes;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeactivemask_workingset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &working_set_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;
        }
        else
        {
            working_set_object_id = 0;
        }

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changeactivemask_newactivemask, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_active_mask_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeactivemask_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Working Set Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Mask Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Change active mask of working set %s to %s", get_object_id_string(working_set_object_id), get_object_id_string(new_active_mask_object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Active mask successfully changed to %s", get_object_id_string(new_active_mask_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing active mask to %s", get_object_id_string(new_active_mask_object_id));
            }
        }
    }
        break;
    case VT_CHANGE_SOFT_KEY_MASK:
    {
        guint32 error_codes, data_mask_object_id, new_soft_key_mask_object_id;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_changesoftkeymask_masktype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;
        }

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changesoftkeymask_datamaskobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &data_mask_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changesoftkeymask_newsoftkeymaskobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_soft_key_mask_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changesoftkeymask_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Data or Alarm Mask Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Soft Key Mask Object ID ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Missing Objects ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Mask or child object has errors ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Soft key mask of %s should change to %s", get_object_id_string(data_mask_object_id), get_object_id_string(new_soft_key_mask_object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes == 0)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Soft key mask of %s successfully changed to %s", get_object_id_string(data_mask_object_id), get_object_id_string(new_soft_key_mask_object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing soft key mask of %s to %s", get_object_id_string(data_mask_object_id), get_object_id_string(new_soft_key_mask_object_id));
            }
        }
    }
        break;
    case VT_CHANGE_ATTRIBUTES:
    {
        guint32 attribute_id, error_codes, object_id, new_value;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changeattributes_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changeattributes_attributeid, tvb, offset, 1, ENC_LITTLE_ENDIAN, &attribute_id);
        offset += 1;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeattributes_newvalue, tvb, offset, 1, ENC_LITTLE_ENDIAN, &new_value);
        }
        else if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeattributes_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Attribute ID ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid Value ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Value in use ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Attribute ID %u of %s should change to 0x%X", attribute_id, get_object_id_string(object_id), new_value);
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing Attribute ID %u of %s", attribute_id, get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Attribute ID %u of %s has successfully changed", attribute_id, get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_PRIORITY:
    {
        guint32 object_id, new_priority, error_codes;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepriority_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepriority_newpriority, tvb, offset, 1, ENC_LITTLE_ENDIAN, &new_priority);
        offset += 1;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepriority_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid priority ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Priority of alarm mask with %s should change to %u", get_object_id_string(object_id), new_priority);
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing priority of alarm mask with %s to %u", get_object_id_string(object_id), new_priority);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Priority of alarm mask with %s has successfully changed to %u", get_object_id_string(object_id), new_priority);
            }
        }
    }
        break;
    case VT_CHANGE_LIST_ITEM:
    {
        guint32 list_object_id, new_object_id, list_index, error_codes;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changelistitem_listobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &list_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changelistitem_listindex, tvb, offset, 1, ENC_LITTLE_ENDIAN, &list_index);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changelistitem_newobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changelistitem_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Input List object ID or Output List object ID, Animation object, External Object Definition object ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid List Index ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid New List Item Object ID ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Value in user ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "%s should be added to list %s at index %u", get_object_id_string(new_object_id), get_object_id_string(list_object_id), list_index);
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while adding %s to list %s at index %u", get_object_id_string(new_object_id), get_object_id_string(list_object_id), list_index);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "%s was successfully added to %s at index %u", get_object_id_string(new_object_id), get_object_id_string(list_object_id), list_index);
            }
        }
    }
        break;
    case VT_DELETE_OBJECT_POOL:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Object pool should be deleted from volatile memory");
        }
        else
        {
            guint32 error_codes;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_deleteobjectpool_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Deletion Error ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while deleting object pool from volatile memory");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Object pool was successfully deleted from volatile memory");
            }
        }
    }
        break;
    case VT_CHANGE_STRING_VALUE:
    {
        if(direction == ecu_to_vt)
        {
            guint encoding = ENC_ASCII|ENC_NA;
            guint32 object_id, str_length;
            guint16 firstTwoBytesString;
            const guint8* value;
            guint bomOffset = 0;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgstrval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgstrval_length, tvb, offset, 2, ENC_LITTLE_ENDIAN, &str_length);
            offset += 2;

            firstTwoBytesString = tvb_get_letohs(tvb,offset);
            if(firstTwoBytesString == 0xFEFF)
            {
                encoding = ENC_UCS_2;
                bomOffset = 2;
            }

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_chgstrval_value, tvb, offset + bomOffset, str_length - bomOffset, encoding, wmem_packet_scope(), &value);

            col_append_fstr(pinfo->cinfo, COL_INFO, "String value of %s should change to %s",
                get_object_id_string(object_id), value);
        }
        else
        {
            guint32 object_id, error_codes;

            offset += 2;    /*first two bytes are reserved*/

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgstrval_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_chgstrval_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "String too long ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Value in use ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "String value change error");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "String value of %s has changed",
                    get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_CHANGE_CHILD_POSITION:
    {
        guint32 parent_object_id, object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changechildposition_parentobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &parent_object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;


        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changechildposition_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            guint32 rel_x_position, rel_y_position;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildposition_xpos, tvb, offset, 2, ENC_LITTLE_ENDIAN, &rel_x_position);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildposition_ypos, tvb, offset, 2, ENC_LITTLE_ENDIAN, &rel_y_position);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change child position of %s in %s to [%u:%u]",
                get_object_id_string(object_id), get_object_id_string(parent_object_id), rel_x_position, rel_y_position);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changechildposition_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Parent Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing child position of %s", get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Change child position of %s in %s succeeded",
                    get_object_id_string(object_id), get_object_id_string(parent_object_id));
            }
        }
    }
        break;
    case VT_CHANGE_OBJECT_LABEL:
    {
        if(direction == ecu_to_vt)
        {
            guint32 object_id, string_object_id;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeobjectlabel_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeobjectlabel_stringobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &string_object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            proto_tree_add_item(tree,
                hf_isobus_vt_changeobjectlabel_fonttype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_changeobjectlabel_graphicobjectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change object label of %s to string %s",
                            get_object_id_string(object_id), get_object_id_string(string_object_id));
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changeobjectlabel_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);

            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid object id ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid String Variable object id ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Invalid font type ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "No Object Label Reference List object available in object pool ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Designator references invalid objects ");
            if (error_codes & 0x20)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing object label");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Object label successfully changed");
            }
        }
    }
        break;
    case VT_CHANGE_POLYGON_POINT:
    {
        guint32 object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepolygonpoint_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == ecu_to_vt)
        {
            guint32 x_value, y_value, point_index;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepolygonpoint_pointindex, tvb, offset, 1, ENC_LITTLE_ENDIAN, &point_index);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepolygonpoint_xvalue, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_value);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepolygonpoint_yvalue, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_value);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Change point %u of polygon %s to location [%u:%u] ",
                point_index, get_object_id_string(object_id), x_value, y_value);
        }
        else
        {
            guint32 error_codes;
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepolygonpoint_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid point index ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing polygon point");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Polygon point successfully changed");
            }
        }
    }
        break;
    case VT_CHANGE_POLYGON_SCALE:
    {
        guint32 object_id, new_width, new_height, error_codes;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepolygonscale_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepolygonscale_newwidth, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_width);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_changepolygonscale_newheight, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_height);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_changepolygonscale_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Change scale of polygon %s to width %u and height %u ",
                get_object_id_string(object_id), new_width, new_height);
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while changing scale of polygon %s to width %u and height %u ",
                    get_object_id_string(object_id), new_width, new_height);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Scale of polygon %s scale successfully changed to width %u and height %u ",
                    get_object_id_string(object_id), new_width, new_height);
            }
        }
    }
        break;
    case VT_GRAPHICS_CONTEXT:
    {
        guint32 object_id, sub_command_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_graphicscontext_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_graphicscontext_subcommandid, tvb, offset, 1, ENC_LITTLE_ENDIAN, &sub_command_id);
        offset += 1;

        col_append_fstr(pinfo->cinfo, COL_INFO, "Graphic Context of %s: ", get_object_id_string(object_id));

        switch(sub_command_id)
        {
            case SET_GRAPHICS_CURSOR:
            {
                gint32 x_position, y_position;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_setgraphicscursor_xposition, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_position);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_setgraphicscursor_yposition, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_position);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Graphics Cursor to Position [%d;%d] ",
                    x_position, y_position);
            }
                break;
            case MOVE_GRAPHICS_CURSOR:
            {
                gint32 x_offset, y_offset;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_movegraphicscursor_xoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_offset);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_movegraphicscursor_yoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_offset);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Move Graphics Cursor by Offset [%d;%d] ",
                    x_offset, y_offset);
            }
                break;
            case SET_FOREGROUND_COLOUR:
            {
                guint32 colour;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_setforegroundcolour_colour, tvb, offset, 1, ENC_LITTLE_ENDIAN, &colour);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Foreground Colour to %u",
                    colour);
            }
                break;
            case SET_BACKGROUND_COLOUR:
            {
                guint32 colour;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_setbackgroundcolour_colour, tvb, offset, 1, ENC_LITTLE_ENDIAN, &colour);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Background Colour to %u",
                    colour);
            }
                break;
            case SET_LINE_ATTRIBUTES_OBJECT_ID:
            {
                guint32 line_attr_object_id;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_setlineattributesobjectid_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &line_attr_object_id);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Line Attributes to %s",
                    get_object_id_string(line_attr_object_id));
            }
                break;
            case SET_FILL_ATTRIBUTES_OBJECT_ID:
            {
                guint32 fill_attr_object_id;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_setfillattributesobjectid_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &fill_attr_object_id);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Fill Attributes to %s",
                    get_object_id_string(fill_attr_object_id));
            }
                break;
            case SET_FONT_ATTRIBUTES_OBJECT_ID:
            {
                guint32 font_attr_object_id;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_setfontattributesobjectid_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &font_attr_object_id);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Set Font Attributes to %s",
                    get_object_id_string(font_attr_object_id));
            }
                break;
            case ERASE_RECTANGLE:
            {
                guint32 width, height;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_eraserectangle_width, tvb, offset, 2, ENC_LITTLE_ENDIAN, &width);
                offset += 2;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_eraserectangle_height, tvb, offset, 2, ENC_LITTLE_ENDIAN, &height);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Erase Rectangle width %u height %u",
                    width, height);
            }
                break;
            case DRAW_POINT:
            {
                gint32 x_offset, y_offset;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_drawpoint_xoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_offset);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_drawpoint_yoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_offset);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw point at graphics cursor with offset [%d;%d] ",
                    x_offset, y_offset);
            }
                break;
            case DRAW_LINE:
            {
                gint32 x_offset, y_offset;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_drawline_xoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_offset);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_drawline_yoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_offset);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw line from graphics cursor to offset [%d;%d] ",
                    x_offset, y_offset);
            }
                break;
            case DRAW_RECTANGLE:
            {
                guint32 width, height;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawrectangle_width, tvb, offset, 2, ENC_LITTLE_ENDIAN, &width);
                offset += 2;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawrectangle_height, tvb, offset, 2, ENC_LITTLE_ENDIAN, &height);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw Rectangle width %u height %u",
                    width, height);
            }
                break;
            case DRAW_CLOSED_ELLIPSE:
            {
                guint32 width, height;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawclosedellipse_width, tvb, offset, 2, ENC_LITTLE_ENDIAN, &width);
                offset += 2;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawclosedellipse_height, tvb, offset, 2, ENC_LITTLE_ENDIAN, &height);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw Closed Ellipse width %u height %u",
                    width, height);
            }
                break;
            case DRAW_POLYGON:
            {
                guint32 number_of_points, i;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawpolygon_numberofpoints, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_points);
                offset += 1;

                for(i = 0; i < number_of_points; i++)
                {
                    proto_item *point_item;
                    proto_tree *point_subtree;
                    gint32 x_offset, y_offset;

                    point_subtree = proto_tree_add_subtree(tree,
                        tvb, offset, 4, ett_isobus_vt_getsupportedwidechars_range, &point_item, "Point");

                    proto_tree_add_item_ret_int(point_subtree,
                        hf_isobus_vt_graphicscontext_drawpolygon_point_xoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_offset);
                    offset += 2;

                    proto_tree_add_item_ret_int(point_subtree,
                        hf_isobus_vt_graphicscontext_drawpolygon_point_yoffset, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_offset);
                    offset += 2;

                    proto_item_set_text(point_item, "Point with offset [%d;%d]", x_offset, y_offset);
                }

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw Polygon of %u points",
                    number_of_points);
            }
                break;
            case DRAW_TEXT:
            {
                guint encoding = ENC_ASCII|ENC_NA;
                guint16 firstTwoBytesString;
                guint bomOffset = 0;
                guint32 background, number_of_bytes;
                const guint8* value;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawtext_background, tvb, offset, 1, ENC_LITTLE_ENDIAN, &background);
                offset += 1;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawtext_numberofbytes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_bytes);
                offset += 1;

                firstTwoBytesString = tvb_get_letohs(tvb,offset);
                if(firstTwoBytesString == 0xFEFF)
                {
                    encoding = ENC_UCS_2;
                    bomOffset = 2;
                }

                proto_tree_add_item_ret_string(tree,
                    hf_isobus_vt_graphicscontext_drawtext_textstring, tvb, offset + bomOffset, number_of_bytes - bomOffset, encoding, wmem_packet_scope(), &value);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw string \"%s\" at cursor with a %s background",
                    value, val_to_str(background, draw_text_background, "unknown"));
            }
                break;
            case PAN_VIEWPORT:
            {
                gint32 viewport_x, viewport_y;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_panviewport_viewportx, tvb, offset, 2, ENC_LITTLE_ENDIAN, &viewport_x);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_panviewport_viewporty, tvb, offset, 2, ENC_LITTLE_ENDIAN, &viewport_y);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Pan Viewport by [%d;%d] pixels",
                    viewport_x, viewport_y);
            }
                break;
            case ZOOM_VIEWPORT:
            {
                gfloat zoom_value;

                zoom_value = tvb_get_ieee_float(tvb, offset, ENC_LITTLE_ENDIAN);
                proto_tree_add_item(tree,
                    hf_isobus_vt_graphicscontext_zoomviewport_zoomvalue, tvb, offset, 4, ENC_LITTLE_ENDIAN);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Zoom Viewport by %g",
                    zoom_value);
            }
                break;
            case PAN_AND_ZOOM_VIEWPORT:
            {
                gfloat zoom_value;
                gint32 viewport_x, viewport_y;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_panandzoomviewport_viewportx, tvb, offset, 2, ENC_LITTLE_ENDIAN, &viewport_x);
                offset += 2;

                proto_tree_add_item_ret_int(tree,
                    hf_isobus_vt_graphicscontext_panandzoomviewport_viewporty, tvb, offset, 2, ENC_LITTLE_ENDIAN, &viewport_y);
                offset += 2;

                zoom_value = tvb_get_ieee_float(tvb, offset, ENC_LITTLE_ENDIAN);
                proto_tree_add_item(tree,
                    hf_isobus_vt_graphicscontext_panandzoomviewport_zoomvalue, tvb, offset, 2, ENC_LITTLE_ENDIAN);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Pan viewport by [%d;%d] pixels and zoom by %g",
                    viewport_x, viewport_y, zoom_value);
            }
                break;
            case CHANGE_VIEWPORT_SIZE:
            {
                guint32 new_width, new_height;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_changeviewportsize_newwidth, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_width);
                offset += 2;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_changeviewportsize_newheight, tvb, offset, 2, ENC_LITTLE_ENDIAN, &new_height);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Change viewport size to [%ux%u]",
                    new_width, new_height);
            }
                break;
            case DRAW_VT_OBJECT:
            {
                guint32 draw_object_id;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_drawvtobject_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &draw_object_id);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Draw VT %s at graphics cursor",
                    get_object_id_string(draw_object_id));
            }
                break;
            case COPY_CANVAS_TO_PICTURE_GRAPHIC:
            {
                guint32 object_id_picture_graphic;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_copycanvastopicturegraphic_objectidpicturegraphic, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id_picture_graphic);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Copy canvas to picture graphics %s",
                    get_object_id_string(object_id_picture_graphic));
            }
                break;
            case COPY_VIEWPORT_TO_PICTURE_GRAPHIC:
            {
                guint32 object_id_picture_graphic;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_graphicscontext_copyviewporttopicturegraphic_objectidpicturegraphic, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id_picture_graphic);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Copy viewport to picture graphics %s",
                    get_object_id_string(object_id_picture_graphic));
            }
                break;
        }
    }
        break;
    case VT_GET_ATTRIBUTE_VALUE:
    {
        gboolean error_frame;
        guint32 attribute_id, object_id;

        object_id = tvb_get_letohs(tvb, offset);
        if(direction == ecu_to_vt || object_id != 0xFFFF)
        {
            error_frame = FALSE;
            proto_tree_add_item(tree,
                hf_isobus_vt_getattributevalue_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
        }
        else
        {
            error_frame = TRUE;
        }
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_getattributevalue_attributeid, tvb, offset, 1, ENC_LITTLE_ENDIAN, &attribute_id);
        offset += 1;

        if(direction == vt_to_ecu)
        {
            if(error_frame == FALSE)
            {
                guint32 value;
                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_getattributevalue_value, tvb, offset, 4, ENC_LITTLE_ENDIAN, &value);

                col_append_fstr(pinfo->cinfo, COL_INFO, "Return value of attribute %u from %s, value is 0x%X ",
                    attribute_id, get_object_id_string(object_id), value);
            }
            else
            {
                guint32 error_codes;

                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_getattributevalue_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
                ti = proto_tree_add_item(tree,
                    hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
                PROTO_ITEM_SET_HIDDEN(ti);
                offset += 2;

                ti = proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_getattributevalue_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
                proto_item_append_text(ti, ": ");
                if (error_codes & 0x01)
                    proto_item_append_text(ti, "Invalid Object ID ");
                if (error_codes & 0x02)
                    proto_item_append_text(ti, "Invalid Attribute ID ");
                if (error_codes & 0x10)
                    proto_item_append_text(ti, "Any other error ");

                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while requesting value of attribute %u from %s ",
                    attribute_id, get_object_id_string(object_id));
            }
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Get value of attribute %u from %s ",
                attribute_id, get_object_id_string(object_id));
        }
    }
        break;
    case VT_SELECT_COLOUR_MAP:
    {
        guint32 error_codes, object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_selectcolourmap_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_selectcolourmap_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Invalid Object ID ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Invalid Colour Map ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Select colour map %s ",
                get_object_id_string(object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while selecting colour map %s ",
                    get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Colour map %s successfully selected ",
                    get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_IDENTIFY_VT:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Identify VT");
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Reply Identify VT ");
        }
    }
        break;
    case VT_EXECUTE_EXTENDED_MACRO:
    {
        guint32 error_codes, object_id;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_executeextendedmacro_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_executeextendedmacro_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Object ID does not exist ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Object ID is not a Macro object ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Execute extended macro %s ",
                get_object_id_string(object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while executing extended macro %s ",
                    get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Extended macro %s successfully executed ",
                    get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_LOCK_UNLOCK_MASK:
    {
        guint32 command, error_codes, object_id, lock_timeout;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_lockunlockmask_command, tvb, offset, 1, ENC_LITTLE_ENDIAN, &command);
        offset += 1;

        if(direction == ecu_to_vt)
        {
            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_lockunlockmask_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id);
            ti = proto_tree_add_item(tree,
                hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
            PROTO_ITEM_SET_HIDDEN(ti);
            offset += 2;

            if(command == MASK_LOCK)
            {
                proto_tree_add_item_ret_uint(tree,
                    hf_isobus_vt_lockunlockmask_locktimeout, tvb, offset, 2, ENC_LITTLE_ENDIAN, &lock_timeout);
            }
        }
        else
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_lockunlockmask_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Command ignored, no mask is visible or given Object ID does not match the visible mask ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Lock command ignored, already locked ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Unlock command ignored, not locked ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Lock command ignored, an Alarm Mask is active ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Unsolicited unlock, timeout occurred ");
            if (error_codes & 0x20)
                proto_item_append_text(ti, "Unsolicited unlock, this mask is hidden ");
            if (error_codes & 0x40)
                proto_item_append_text(ti, "Unsolicited unlock, operator induced, or any other error ");
            if (error_codes & 0x80)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            if(command == MASK_LOCK)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Lock data mask %s for %ums ",
                    get_object_id_string(object_id), lock_timeout);
            }
            else if(command == MASK_UNLOCK)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Unlock data mask %s ",
                    get_object_id_string(object_id));
            }
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                if(command == MASK_LOCK)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Error while locking ");
                }
                else if(command == MASK_UNLOCK)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Error while unlocking ");
                }
            }
            else
            {
                if(command == MASK_LOCK)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Locking successfull ");
                }
                else if(command == MASK_UNLOCK)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "Unlocking successfull ");
                }
            }
        }
    }
        break;
    case VT_EXECUTE_MACRO:
    {
        guint32 object_id;
        guint32 error_codes;

        /* Other than all object IDs macro object IDs are 1 byte in VT 4 */
        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_executemacro_objectid, tvb, offset, 1, ENC_LITTLE_ENDIAN, &object_id);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 1;

        if(direction == vt_to_ecu)
        {
            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_executemacro_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Object ID does not exist ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Object ID is not a Macro object ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Any other error ");
        }

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Execute macro %s ",
                get_object_id_string(object_id));
        }
        else if(direction == vt_to_ecu)
        {
            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while executing macro %s ",
                    get_object_id_string(object_id));
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Macro %s successfully executed ",
                    get_object_id_string(object_id));
            }
        }
    }
        break;
    case VT_GET_MEMORY:
    {
        if(direction == ecu_to_vt)
        {
            guint32 memory_required;
            offset += 1; /* reserved byte */

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getmemory_memoryrequired, tvb, offset, 4, ENC_LITTLE_ENDIAN, &memory_required);

            col_append_fstr(pinfo->cinfo, COL_INFO, "The amount of memory required is %u ",
                memory_required);
        }
        else
        {
            guint32 vt_version, status;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getmemory_vtversion, tvb, offset, 1, ENC_LITTLE_ENDIAN, &vt_version);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getmemory_status, tvb, offset, 1, ENC_LITTLE_ENDIAN, &status);

            if(status == ENOUGH_MEMORY)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "There can be enough memory, VT Version is %u ",
                    vt_version);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "There is not enough memory available, VT Version is %u ",
                    vt_version);
            }
        }
    }
        break;
    case VT_GET_SUPPORTED_WIDECHARS:
    {
        guint32 code_plane, first_widechar, last_widechar;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_getsupportedwidechars_codeplane, tvb, offset, 1, ENC_LITTLE_ENDIAN, &code_plane);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_getsupportedwidechars_firstwidechar, tvb, offset, 2, ENC_LITTLE_ENDIAN, &first_widechar);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_getsupportedwidechars_lastwidechar, tvb, offset, 2, ENC_LITTLE_ENDIAN, &last_widechar);
        offset += 2;

        if(direction == vt_to_ecu)
        {
            guint32 error_codes, number_of_ranges, i;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getsupportedwidechars_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "Too many ranges ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Error in Code plane ");
            if (error_codes & 0x10)
                proto_item_append_text(ti, "Any other error ");
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getsupportedwidechars_numberofranges, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_ranges);
            offset += 1;

            for(i = 0; i < number_of_ranges; i++)
            {
                guint32 first_avail_widechar, last_avail_widechar;
                proto_tree* subtree;
                proto_item* item;

                subtree = proto_tree_add_subtree_format(tree,
                    tvb, offset, 4, ett_isobus_vt_getsupportedwidechars_range, &item, "Range");

                proto_tree_add_item_ret_uint(subtree,
                    hf_isobus_vt_getsupportedwidechars_firstavailablewidechar, tvb, offset, 2, ENC_LITTLE_ENDIAN, &first_avail_widechar);
                offset += 2;

                proto_tree_add_item_ret_uint(subtree,
                    hf_isobus_vt_getsupportedwidechars_lastavailablewidechar, tvb, offset, 2, ENC_LITTLE_ENDIAN, &last_avail_widechar);
                offset += 2;

                proto_item_set_text(item, "Range 0x%04X - 0x%04X", first_avail_widechar, last_avail_widechar);
            }

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while getting supported widechars for code plane %u ",
                    code_plane);
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Received supported widechars for code plane %u in %u range",
                    code_plane, number_of_ranges);

                if(number_of_ranges > 1)
                {
                    col_append_fstr(pinfo->cinfo, COL_INFO, "s");
                }
            }
        }
        else if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Requesting supported widechars for code plane %u from character 0x%04X till 0x%04X ",
                    code_plane, first_widechar, last_widechar);
        }
    }
        break;
    case VT_GET_NUMBER_OF_SOFT_KEYS:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Requesting number of soft keys");
        }
        else
        {
            guint32 navigation_soft_keys, virtual_soft_keys, physical_soft_keys;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getnumberofsoftkeys_navigationsoftkeys, tvb, offset, 1, ENC_LITTLE_ENDIAN, &navigation_soft_keys);
            offset += 1;

            offset += 2; /* 2 reserved bytes */

            proto_tree_add_item(tree,
                hf_isobus_vt_getnumberofsoftkeys_xdots, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item(tree,
                hf_isobus_vt_getnumberofsoftkeys_ydots, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getnumberofsoftkeys_virtualsoftkeys, tvb, offset, 1, ENC_LITTLE_ENDIAN, &virtual_soft_keys);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getnumberofsoftkeys_physicalsoftkeys, tvb, offset, 1, ENC_LITTLE_ENDIAN, &physical_soft_keys);

            col_append_fstr(pinfo->cinfo, COL_INFO, "VT has %u softkeys, %u virtual soft keys and %u physical soft keys",
                navigation_soft_keys, virtual_soft_keys, physical_soft_keys);
        }
    }
        break;
    case VT_GET_TEXT_FONT_DATA:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Requesting text font data");
        }
        else if(direction == vt_to_ecu)
        {
            proto_tree *ti_smallfonts_subtree, *ti_largefonts_subtree, *ti_typeattribute_subtree;
            proto_item *smallfonts_item, *largefonts_item, *typeattributes_item;

            offset += 4;

            smallfonts_item = proto_tree_add_item(tree,
                hf_isobus_vt_gettextfontdata_smallfontsizes, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            ti_smallfonts_subtree = proto_item_add_subtree(smallfonts_item, ett_isobus_vt_gettextfontdata_smallfontsizes);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font8x8, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font8x12, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font12x16, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font16x16, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font16x24, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font24x32, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_smallfonts_subtree, hf_isobus_vt_gettextfontdata_smallfontsizes_font32x32, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            largefonts_item = proto_tree_add_item(tree,
                hf_isobus_vt_gettextfontdata_largefontsizes, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            ti_largefonts_subtree = proto_item_add_subtree(largefonts_item, ett_isobus_vt_gettextfontdata_largefontsizes);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font32x48, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font48x64, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font64x64, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font64x96, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font96x128, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font128x128, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_largefonts_subtree, hf_isobus_vt_gettextfontdata_largefontsizes_font128x192, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            typeattributes_item = proto_tree_add_item(tree,
                hf_isobus_vt_gettextfontdata_typeattributes, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            ti_typeattribute_subtree = proto_item_add_subtree(typeattributes_item, ett_isobus_vt_gettextfontdata_typeattributes);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_boldtext, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_crossedouttext, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_underlinedtext, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_italicstext, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_invertedtext, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_flashinverted, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_flashhidden, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(ti_typeattribute_subtree, hf_isobus_vt_gettextfontdata_typeattributes_proportionalfontrendering, tvb, offset, 1, ENC_LITTLE_ENDIAN);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Text font data received");
        }
    }
        break;
    case VT_GET_WINDOW_MASK_DATA:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Request window mask data");
        }
        else
        {
            guint32 background_colour_data_mask, background_colour_soft_key_mask;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getwindowmaskdata_backgroundcolourdatamask, tvb, offset, 1, ENC_LITTLE_ENDIAN, &background_colour_data_mask);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getwindowmaskdata_backgroundcoloursoftkeymask, tvb, offset, 1, ENC_LITTLE_ENDIAN, &background_colour_soft_key_mask);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Background colour of data mask is %s, soft key mask is %s",
                rval_to_str(background_colour_data_mask, vt_colours, "Unknown"),
                rval_to_str(background_colour_soft_key_mask, vt_colours, "Unknown"));
        }
    }
        break;
    case VT_GET_SUPPORTED_OBJECTS:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Request supported objects");
        }
        else
        {
            guint32 number_of_bytes, i;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getsupportedobjects_numberofbytes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_bytes);
            offset += 1;

            for(i = 0; i < number_of_bytes; i++)
            {
                guint8 object_type;

                object_type = tvb_get_guint8(tvb, offset);
                if(object_type == 0xFF)
                {
                    break;
                }

                proto_tree_add_item(tree,
                    hf_isobus_vt_getsupportedobjects_objecttype, tvb, offset, 1, ENC_LITTLE_ENDIAN);
                offset += 1;
            }

            col_append_fstr(pinfo->cinfo, COL_INFO, "Supported objects received");
        }
    }
        break;
    case VT_GET_HARDWARE:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Request hardware info");
        }
        else
        {
            guint32 graphic_type, x_pixels, y_pixels;
            proto_item *hardware_item;
            proto_tree *hardware_subtree;

            proto_tree_add_item(tree,
                hf_isobus_vt_gethardware_boottime, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_gethardware_graphictype, tvb, offset, 1, ENC_LITTLE_ENDIAN, &graphic_type);
            offset += 1;

            hardware_item = proto_tree_add_item(tree,
                hf_isobus_vt_gethardware_hardware, tvb, offset, 1, ENC_LITTLE_ENDIAN);

            hardware_subtree = proto_item_add_subtree(hardware_item, ett_isobus_vt_gethardware_hardware);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_touchscreen, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_pointingdevice, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_multifreqaudiooutput, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_adjustvolumeaudiooutput, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_simultaneousactivationphysicalsoftkeys, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_simultaneousactivationbuttons, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_dragoperation, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            proto_tree_add_item(hardware_subtree, hf_isobus_vt_gethardware_hardware_intermediatecoordinatesdrag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
            offset += 1;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_gethardware_xpixels, tvb, offset, 2, ENC_LITTLE_ENDIAN, &x_pixels);
            offset += 2;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_gethardware_ypixels, tvb, offset, 2, ENC_LITTLE_ENDIAN, &y_pixels);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Hardware info received. Graphic type is %s, screen is %u by %u pixels",
                val_to_str(graphic_type, graphic_types, "unknown"), x_pixels, y_pixels);
        }
    }
        break;
    case VT_STORE_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8 *version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_storeversion_versionlabel, tvb, offset, 7, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Store version under label %s", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_storeversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Insufficient memory available ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while storing version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Version successfully stored");
            }
        }
    }
        break;
    case VT_LOAD_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8* version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_loadversion_versionlabel, tvb, offset, 7, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Load version stored under label \"%s\"", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_loadversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "File system error or pool data corruption ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct or Version label unknown ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Insufficient memory available ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while loading version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Version successfully loaded");
            }
        }
    }
        break;
    case VT_DELETE_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8* version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_deleteversion_versionlabel, tvb, offset, 7, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Delete version stored under label \"%s\"", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_deleteversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct or Version label unknown ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while deleting version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Version successfully deleted");
            }
        }
    }
        break;
    case VT_EXTENDED_GET_VERSIONS:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Request a list of extended versions");
        }
        else
        {
            guint32 number_of_versions, i;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_extendedgetversions_numberofversions, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_versions);
            offset += 1;

            for(i = 0; i < number_of_versions; i++)
            {
                proto_tree_add_item(tree,
                    hf_isobus_vt_extendedgetversions_versionlabel, tvb, offset, 32, ENC_ASCII|ENC_NA);
                offset += 32;
            }

            col_append_fstr(pinfo->cinfo, COL_INFO, "Extended versions received");
        }
    }
        break;
    case VT_EXTENDED_STORE_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8* version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_extendedstoreversion_versionlabel, tvb, offset, 32, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Store extended version under label \"%s\"", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_extendedstoreversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Insufficient memory available ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while storing extended version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Extended version successfully stored");
            }
        }
    }
        break;
    case VT_EXTENDED_LOAD_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8* version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_extendedloadversion_versionlabel, tvb, offset, 32, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Store extended version under label \"%s\"", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_extendedloadversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x01)
                proto_item_append_text(ti, "File system error or pool data corruption ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct or Version label unknown ");
            if (error_codes & 0x04)
                proto_item_append_text(ti, "Insufficient memory available ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while loading extended version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Extended version successfully loaded");
            }
        }
    }
        break;
    case VT_EXTENDED_DELETE_VERSION:
    {
        if(direction == ecu_to_vt)
        {
            const guint8* version_label;

            proto_tree_add_item_ret_string(tree,
                hf_isobus_vt_extendeddeleteversion_versionlabel, tvb, offset, 32, ENC_ASCII|ENC_NA, wmem_packet_scope(), &version_label);

            col_append_fstr(pinfo->cinfo, COL_INFO, "Delete version stored under label %s", version_label);
        }
        else
        {
            guint32 error_codes;
            offset += 4;

            ti = proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_extendeddeleteversion_errorcodes, tvb, offset, 1, ENC_LITTLE_ENDIAN, &error_codes);
            proto_item_append_text(ti, ": ");
            if (error_codes & 0x02)
                proto_item_append_text(ti, "Version label is not correct or Version label unknown ");
            if (error_codes & 0x08)
                proto_item_append_text(ti, "Any other error ");

            if(error_codes)
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Error while deleting extended version");
            }
            else
            {
                col_append_fstr(pinfo->cinfo, COL_INFO, "Extended version successfully deleted");
            }
        }
    }
        break;
    case VT_GET_VERSIONS_MESSAGE:
    {
        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Extended version successfully deleted");
        }
        /*no else as this message can only be used from ecu to vt*/
    }
        break;
    case VT_GET_VERSIONS_RESPONSE:
    {
        if(direction == vt_to_ecu)
        {
            guint32 number_of_versions, i;

            proto_tree_add_item_ret_uint(tree,
                hf_isobus_vt_getversions_numberofversions, tvb, offset, 1, ENC_LITTLE_ENDIAN, &number_of_versions);
            offset += 1;

            for(i = 0; i < number_of_versions; i++)
            {
                proto_tree_add_item(tree,
                    hf_isobus_vt_getversions_versionlabel, tvb, offset, 7, ENC_ASCII|ENC_NA);
                offset += 7;
            }

            col_append_fstr(pinfo->cinfo, COL_INFO, "Versions received");
        }
        /*no else as this message can only be used from vt to ecu*/
    }
        break;
    case VT_UNSUPPORTED_VT_FUNCTION:
    {
        guint32 unsupported_vt_function;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_unsupportedvtfunction_unsupportedvtfunction, tvb, offset, 1, ENC_LITTLE_ENDIAN, &unsupported_vt_function);

        if(direction == ecu_to_vt)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT function %s (%u) is not supported by ECU",
                val_to_str_ext(unsupported_vt_function, &vt_function_code_ext, "unknown"), unsupported_vt_function);
        }
        else
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "VT function %s (%u) is not supported by VT",
                val_to_str_ext(unsupported_vt_function, &vt_function_code_ext, "unknown"), unsupported_vt_function);
        }
    }
        break;
    case VT_VT_STATUS:
    {
        proto_tree *ti_busycodes_subtree;
        proto_item *busycodes_item;
        guint32 working_set_master, object_id_data_mask, object_id_soft_key_mask;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtstatus_workingsetmaster, tvb, offset, 1, ENC_LITTLE_ENDIAN, &working_set_master);
        offset += 1;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtstatus_objectiddatamask, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id_data_mask);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        proto_tree_add_item_ret_uint(tree,
            hf_isobus_vt_vtstatus_objectidsoftkeymask, tvb, offset, 2, ENC_LITTLE_ENDIAN, &object_id_soft_key_mask);
        ti = proto_tree_add_item(tree,
            hf_isobus_vt_objectid, tvb, offset, 2, ENC_LITTLE_ENDIAN);
        PROTO_ITEM_SET_HIDDEN(ti);
        offset += 2;

        busycodes_item = proto_tree_add_item(tree,
            hf_isobus_vt_vtstatus_vtbusycodes, tvb, offset, 1, ENC_LITTLE_ENDIAN);

        ti_busycodes_subtree = proto_item_add_subtree(busycodes_item, ett_isobus_vt_vtstatus_busycodes_subtree);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_updatingvisiblemask, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_savingdata, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_executingcommand, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_executingmacro, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_parsingobjectpool, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_auxcontrolsactive, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        proto_tree_add_item(ti_busycodes_subtree, hf_isobus_vt_vtstatus_vtbusycodes_outofmemory, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        offset += 1;

        proto_tree_add_item(tree,
            hf_isobus_vt_vtstatus_vtfunctioncodes, tvb, offset, 1, ENC_LITTLE_ENDIAN);

        col_append_fstr(pinfo->cinfo, COL_INFO, "Status: Current master is %d data mask is %s soft key mask is %s",
        working_set_master, get_object_id_string(object_id_data_mask), get_object_id_string(object_id_soft_key_mask));
    }
        break;
    case VT_WORKING_SET_MAINTENANCE:
    {
        guint8 bitmask = tvb_get_guint8(tvb, offset);
        guint8 version = tvb_get_guint8(tvb, offset + 1);
        if(version == 0xFF)
        {
            version = 2;
        }
        if(version > 3)
        {
            proto_tree_add_item(tree,
                hf_isobus_vt_wrksetmain_bitmask, tvb, offset, 1, ENC_LITTLE_ENDIAN);
        }
        offset += 1;

        proto_tree_add_item(tree,
            hf_isobus_vt_wrksetmain_version, tvb, offset, 1, ENC_LITTLE_ENDIAN);

        if(version > 3 && bitmask & 0x80)
        {
            col_append_fstr(pinfo->cinfo, COL_INFO, "Initiate ");
        }
        col_append_fstr(pinfo->cinfo, COL_INFO, "Working Set Maintenance, VT version is %d",
            version);

        current_vt_version = version;
    }
        break;
    }
	return tvb_captured_length(tvb);
}

static int
dissect_vt_to_ecu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
{
    (void)data;
    return dissect_vt(tvb, pinfo, tree, vt_to_ecu);
}

static int
dissect_ecu_to_vt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
{
    (void)data;
    return dissect_vt(tvb, pinfo, tree, ecu_to_vt);
}

/*
 * Simple "get a line" routine, copied from giop dissector who copied it from somewhere :)
 *
 */

static int vt_getline(FILE *fp, gchar *line, int maxlen)
{
    if (fgets(line, maxlen, fp) == NULL)
    {
        return 0;
    }
    else
    {
        line[strcspn(line, "\n")] = '\0';
        return (int)strlen(line);
    }
}


static void read_object_id_file(void)
{
    gchar   buf[500];
    guint16 item_count = 0;
    FILE     *file;

    if ((file = ws_fopen(object_id_translation, "r")) == NULL)
    {
        object_id_strings[0].value = 0;
        object_id_strings[0].strptr = NULL;

        return;
    }

    while ((vt_getline(file, buf, 500)) > 0)
    {
        gchar **split_string = g_strsplit(buf, ",", 2);

        object_id_strings[item_count].value = (guint32)g_ascii_strtoll(split_string[0], NULL, 10);
        object_id_strings[item_count].strptr = wmem_strdup(wmem_epan_scope(), split_string[1]);

        g_strfreev(split_string);
        item_count++;
    }

    fclose(file);

    object_id_strings[item_count].value = 0;
    object_id_strings[item_count].strptr = NULL;
}

static void isobus_vt_init(void)
{
    read_object_id_file();
}

/* Register the protocol with Wireshark */
void
proto_register_isobus_vt(void)
{
    static hf_register_info hf[] = {
        { &hf_isobus_vt,
          { "VT",                       "isobus.vt",
            FT_PROTOCOL, BASE_NONE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_command,
          { "Command",                  "isobus.vt.command",
            FT_UINT8, BASE_DEC | BASE_EXT_STRING, &vt_function_code_ext, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_objectid,
          { "Object ID",                "isobus.vt.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_softkey_keyactcode,
          { "Activation Code",          "isobus.vt.soft_key.act_code",
            FT_UINT8, BASE_DEC, VALS(key_activation_codes), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_softkey_objectid,
          { "Object ID",                "isobus.vt.soft_key.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_softkey_parentobjectid,
          { "Parent Object ID",         "isobus.vt.soft_key.parent_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_softkey_keynumber,
          { "Key Number",               "isobus.vt.soft_key.key_number",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_button_keyactcode,
          { "Activation Code",          "isobus.vt.button.act_code",
            FT_UINT8, BASE_DEC, VALS(button_activation_codes), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_button_objectid,
          { "Object ID",                "isobus.vt.button.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_button_parentobjectid,
          { "Parent Object ID",         "isobus.vt.button.parent_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_button_keynumber,
          { "Key Number",               "isobus.vt.button.key_number",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_pointing_xposition,
          { "X Position",               "isobus.vt.pointing_event.x_position",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_pointing_yposition,
          { "Y Position",               "isobus.vt.pointing_event.y_position",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_pointing_touchstate,
          { "Touch State",              "isobus.vt.pointing_event.touch_state",
            FT_UINT8, BASE_DEC, VALS(pointing_touch_state), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtselectinputobject_objectid,
          { "Object ID",                "isobus.vt.vt_select_input_object.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtselectinputobject_selection,
          { "Selection",                "isobus.vt.vt_select_input_object.selection",
            FT_UINT8, BASE_DEC, VALS(selection), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtselectinputobject_openforinput,
          { "Bitmask",                  "isobus.vt.vt_select_input_object.open_for_input",
            FT_UINT8, BASE_DEC, NULL, 0x80,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtescmessage_objectid,
          { "Object ID",                "isobus.vt.vt_esc_message.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtescmessage_errorcodes,
          { "Error Codes",              "isobus.vt.vt_esc_message.error_codes",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgnumval_objectid,
          { "Object ID",                "isobus.vt.vt_chg_num_val.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgnumval_value,
          { "Value",                    "isobus.vt.vt_chg_num_val.val",
            FT_UINT32, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgactivemask_maskobjectid,
          { "Mask Object ID",           "isobus.vt.vt_chg_active_mask.mask_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgactivemask_errorcodes,
          { "Error Codes",                "isobus.vt.vt_chg_active_mask.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgactivemask_errorobjectid,
          { "Error Object ID",          "isobus.vt.vt_chg_active_mask.error_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgactivemask_errorobjectidparent,
          { "Error Object ID Parent",   "isobus.vt.vt_chg_active_mask.error_object_id_parent",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgstrval_objectid,
          { "Object ID",                "isobus.vt.vt_chg_str_val.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgstrval_length,
          { "Length",                   "isobus.vt.vt_chg_str_val.length",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtchgstrval_value,
          { "Value",                    "isobus.vt.vt_chg_str_val.val",
            FT_STRING, STR_UNICODE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtonuserlayouthideshow_objectid_1,
          { "Object ID 1",                 "isobus.vt.vt_on_user_layout_hide_show.object_id_1",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtonuserlayouthideshow_status_1,
          { "Status 1",                    "isobus.vt.vt_on_user_layout_hide_show.status_1",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtonuserlayouthideshow_objectid_2,
          { "Object ID 2",                 "isobus.vt.vt_on_user_layout_hide_show.object_id_2",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtonuserlayouthideshow_status_2,
          { "Status 2",                    "isobus.vt.vt_on_user_layout_hide_show.status_2",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtcontrolaudiosignaltermination_terminationcause,
          { "Termination Cause",           "isobus.vt.vt_control_audio_signal_termination.termination_cause",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_endofobjectpool_errorcodes,
          { "Error Codes",                 "isobus.vt.end_of_object_pool.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_endofobjectpool_faultyparentobjectid,
          { "Faulty Parent Object ID",     "isobus.vt.end_of_object_pool.faulty_parent_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_endofobjectpool_faultyobjectid,
          { "Faulty Object ID",            "isobus.vt.end_of_object_pool.faulty_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_endofobjectpool_objectpoolerrorcodes,
          { "Object Pool Error Codes",     "isobus.vt.end_of_object_pool.object_pool_error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype1_sourceaddressauxinputdevice,
          { "Source Address Auxiliary Input Device", "isobus.vt.auxiliary_assignment_type_1.source_address_aux_input_device",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype1_auxinputnumber,
          { "Auxiliary Input Number",   "isobus.vt.auxiliary_assignment_type_1.aux_input_number",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype1_objectidauxinputdevice,
          { "Object ID of Auxiliary Function",                "isobus.vt.auxiliary_assignment_type_1.object_id_of_auxiliary_function",
            FT_UINT16, BASE_DEC_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype1status_inputnumber,
          { "Input Number",             "isobus.vt.auxiliary_input_type_1_status.input_number",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype1status_analyzevalue,
          { "Analyze Value",             "isobus.vt.auxiliary_input_type_1_status.analyze_value",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype1status_numberoftransitions,
          { "Number of transitions",     "isobus.vt.auxiliary_input_type_1_status.number_of_transitions",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype1status_booleanvalue,
          { "Boolean Value",             "isobus.vt.auxiliary_input_type_1_status.boolean_value",
            FT_UINT8, BASE_DEC, VALS(auxiliary_boolean_value), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_numberofinputunits,
          { "Number of Input Units",             "isobus.vt.preferred_assignment.number_of_input_units",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_auxinputunit_name,
          { "64-bit NAME of the Auxiliary Input Unit", "isobus.vt.preferred_assignment.auxiliary_input_unit.name",
            FT_UINT64, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_auxinputunit_modelidentificationcode,
          { "Model Identification Code of the Auxiliary Input Unit", "isobus.vt.preferred_assignment.auxiliary_input_unit.model_identification_code",
            FT_UINT16, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_auxinputunit_numberofpreferredfunctions,
          { "Number of Preferred Functions for this Auxiliary Input Unit", "isobus.vt.preferred_assignment.auxiliary_input_unit.number_of_preferred_functions",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxfunctionobjectid,
          { "Object ID of Auxiliary Function", "isobus.vt.preferred_assignment.auxiliary_input_unit.preferred_functions.auxiliary_function_object_id",
            FT_UINT16, BASE_HEX_DEC, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_auxinputunit_preferredfunctions_auxinputobjectid,
          { "Object ID of Auxiliary Input", "isobus.vt.preferred_assignment.auxiliary_input_unit.preferred_functions.auxiliary_input_object_id",
            FT_UINT16, BASE_HEX_DEC, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_errorcodes,
          { "Error Codes", "isobus.vt.preferred_assignment.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_preferredassignment_faultyauxiliaryfunctionobjectid,
          { "Faulty Auxiliary Function Object ID", "isobus.vt.preferred_assignment.faulty_auxiliary_function_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2maintenance_modelidentificationcode,
          { "Model Identification Code", "isobus.vt.auxiliary_input_type_2_maintenance.model_identification_code",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2maintenance_status,
          { "Status", "isobus.vt.auxiliary_input_type_2_maintenance.status",
            FT_UINT8, BASE_DEC, VALS(auxiliary_maintenance_status), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_name,
          { "64-bit NAME of the Auxiliary Input Unit", "isobus.vt.auxiliary_assignment_type_2.name",
            FT_UINT64, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_flags,
          { "Flags", "isobus.vt.auxiliary_assignment_type_2.flags",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_flags_preferredassignment,
          { "Preferred Assignment", "isobus.vt.auxiliary_assignment_type_2.flags.preferred_assignment",
            FT_UINT8, BASE_HEX, NULL, 0x80,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_flags_auxiliaryfunctiontype,
          { "Auxiliary Function Type", "isobus.vt.auxiliary_assignment_type_2.flags.auxiliary_function_type",
            FT_UINT8, BASE_DEC, NULL, 0x1F,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_auxinputobjectid,
          { "Object ID of the Auxiliary Input", "isobus.vt.auxiliary_assignment_type_2.auxiliary_input_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_auxfunctionobjectid,
          { "Object ID of Auxiliary Function", "isobus.vt.auxiliary_assignment_type_2.auxiliary_function_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryassignmenttype2_errorcodes,
          { "Error Codes", "isobus.vt.auxiliary_assignment_type_2.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputstatustype2enable_auxiliaryinputobjectid,
          { "Auxiliary Input Object ID", "isobus.vt.auxiliary_input_status_type_2_enable.auxiliary_input_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputstatustype2enable_enable,
          { "Enable", "isobus.vt.auxiliary_input_status_type_2_enable.enable",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputstatustype2enable_status,
          { "Status", "isobus.vt.auxiliary_input_status_type_2_enable.status",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputstatustype2enable_errorcodes,
          { "Error Codes", "isobus.vt.auxiliary_input_status_type_2_enable.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_auxiliaryinputobjectid,
          { "Auxiliary Input Object ID", "isobus.vt.auxiliary_input_type_2_status.auxiliary_input_object_id",
            FT_UINT8, BASE_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_value1,
          { "Value 1", "isobus.vt.auxiliary_input_type_2_status.value_1",
            FT_UINT16, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_value2,
          { "Value 2", "isobus.vt.auxiliary_input_type_2_status.value_2",
            FT_UINT16, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_operatingstate,
          { "Operating State", "isobus.vt.auxiliary_input_type_2_status.operating_state",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_operatingstate_learnmodeactive,
          { "Operating State", "isobus.vt.auxiliary_input_type_2_status.operating_state.learn_mode_active",
            FT_UINT8, BASE_HEX, NULL, 0x01,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliaryinputtype2status_operatingstate_inputactivatedinlearnmode,
          { "Input activated in learn mode", "isobus.vt.auxiliary_input_type_2_status.operating_state.input_activated_in_learn_mode",
            FT_UINT8, BASE_HEX, NULL, 0x02,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_requesttype,
          { "Request Type", "isobus.vt.auxiliary_capabilities.request_type",
            FT_UINT8, BASE_DEC, VALS(auxiliary_capabilities_request_type), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_numberofauxiliaryunits,
          { "Number of Auxiliary Unit", "isobus.vt.auxiliary_capabilities.number_of_auxiliary_units",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_name,
          { "64-bit NAME of the Auxiliary Unit", "isobus.vt.auxiliary_capabilities.auxiliary_unit.name",
            FT_UINT64, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_numberofdifferentsets,
          { "Number of different sets for this Auxiliary Unit", "isobus.vt.auxiliary_capabilities.auxiliary_unit.number_of_different_sets",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_numberofinstances,
          { "Number of Instances", "isobus.vt.auxiliary_capabilities.auxiliary_unit.set.number_of_instances",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_functionattribute,
          { "Function attribute", "isobus.vt.auxiliary_capabilities.auxiliary_unit.set.function_attribute",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_auxiliarycapabilities_auxiliaryunit_set_assignedattribute,
          { "Assigned attribute", "isobus.vt.auxiliary_capabilities.auxiliary_unit.set.assigned_attribute",
            FT_UINT8, BASE_HEX, VALS(auxiliary_assigned_attributes), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_esc_objectid,
          { "Object ID", "isobus.vt.esc.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_esc_errorcodes,
          { "Error Codes", "isobus.vt.esc.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_hideshowobj_objectid,
          { "Object ID", "isobus.vt.hide_show_object.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_hideshowobj_action,
          { "Action", "isobus.vt.hide_show_object.action",
            FT_UINT8, BASE_DEC, VALS(vt_hide_show_action), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_hideshowobj_errorcodes,
          { "Error Codes", "isobus.vt.hide_show_object.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_enabledisableobj_objectid,
          { "Object ID", "isobus.vt.enable_disable_object.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_enabledisableobj_enabledisable,
          { "Action",                   "isobus.vt.enable_disable_object.enable_disable",
            FT_UINT8, BASE_DEC, VALS(vt_enable_disable_action), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_enabledisableobj_errorcodes,
          { "Error Codes",              "isobus.vt.enable_disable_object.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectinputobject_objectid,
          { "Object ID",                "isobus.vt.select_input_object.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectinputobject_option,
          { "Option",                "isobus.vt.select_input_object.option",
            FT_UINT8, BASE_HEX, VALS(select_input_object_option), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectinputobject_response,
          { "Response",                "isobus.vt.select_input_object.response",
            FT_UINT16, BASE_DEC_HEX, VALS(select_input_opject_response), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectinputobject_errorcodes,
          { "Object ID", "isobus.vt.select_input_object.error_codes",
            FT_UINT16, BASE_DEC_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_controlaudiosignal_activations,
          { "Activations", "isobus.vt.control_audio_signal.activations",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_controlaudiosignal_frequency,
          { "Frequency", "isobus.vt.control_audio_signal.frequency",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_controlaudiosignal_ontime,
          { "On-time duration", "isobus.vt.control_audio_signal.on_time",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_controlaudiosignal_offtime,
          { "Off-time duration", "isobus.vt.control_audio_signal.off_time",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_controlaudiosignal_errorcodes,
          { "Error Codes", "isobus.vt.control_audio_signal.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_setaudiovolume_volume,
          { "Volume", "isobus.vt.set_audio_volume.volume",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_setaudiovolume_errorcodes,
          { "Error Codes", "isobus.vt.set_audio_volume.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildlocation_parentobjectid,
          { "Parent Object ID", "isobus.vt.change_child_location.parent_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildlocation_objectid,
          { "Object ID", "isobus.vt.change_child_location.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildlocation_relativexpos,
          { "Relative X Position", "isobus.vt.change_child_location.relative_x_position",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildlocation_relativeypos,
          { "Relative Y Position", "isobus.vt.change_child_location.relative_y_position",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildlocation_errorcodes,
          { "Errorcode", "isobus.vt.change_child_location.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildposition_parentobjectid,
          { "Parent Object ID", "isobus.vt.chg_child_pos.parent_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildposition_objectid,
          { "Object ID", "isobus.vt.chg_child_pos.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildposition_xpos,
          { "Relative X Position", "isobus.vt.chg_child_pos.rel_x_pos",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildposition_ypos,
          { "Relative Y Position", "isobus.vt.chg_child_pos.rel_y_pos",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changechildposition_errorcodes,
          { "Error codes", "isobus.vt.chg_child_pos.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesize_objectid,
          { "Object ID", "isobus.vt.change_size.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesize_newwidth,
          { "New Width", "isobus.vt.change_size.new_width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesize_newheight,
          { "New Height", "isobus.vt.change_size.new_height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesize_errorcodes,
          { "Errorcode", "isobus.vt.change_size.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgnumval_objectid,
          { "Object ID", "isobus.vt.change_numeric_value.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgnumval_errorcodes,
          { "Error Codes", "isobus.vt.change_numeric_value.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgnumval_value,
          { "Value", "isobus.vt.change_numeric_value.val",
            FT_UINT32, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeendpoint_objectid,
          { "Object ID", "isobus.vt.change_end_point.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeendpoint_width,
          { "Width", "isobus.vt.change_end_point.width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeendpoint_height,
          { "Height", "isobus.vt.change_end_point.height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeendpoint_linedirection,
          { "Line Direction", "isobus.vt.change_end_point.line_direction",
            FT_UINT8, BASE_DEC, VALS(line_direction), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_objectid,
          { "Object ID", "isobus.vt.change_font_attributes.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_fontcolour,
          { "Font Colour", "isobus.vt.change_font_attributes.font_colour",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_fontsize,
          { "Font Size", "isobus.vt.change_font_attributes.font_size",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_fonttype,
          { "Font Type", "isobus.vt.change_font_attributes.font_type",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_fontstyle,
          { "Font Style", "isobus.vt.change_font_attributes.font_style",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefontattributes_errorcodes,
          { "Error Codes", "isobus.vt.change_font_attributes.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelineattributes_objectid,
          { "Object ID", "isobus.vt.change_line_attributes.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelineattributes_linecolour,
          { "Line Colour", "isobus.vt.change_line_attributes.line_colour",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelineattributes_linewidth,
          { "Line Width", "isobus.vt.change_line_attributes.line_width",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelineattributes_lineart,
          { "Line Art", "isobus.vt.change_line_attributes.line_art",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelineattributes_errorcodes,
          { "Error Codes", "isobus.vt.change_line_attributes.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefillattributes_objectid,
          { "Object ID", "isobus.vt.change_fill_attributes.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefillattributes_filltype,
          { "Fill Type", "isobus.vt.change_fill_attributes.fill_type",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefillattributes_fillcolour,
          { "Fill Colour", "isobus.vt.change_fill_attributes.fill_colour",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefillattributes_fillpatternobjectid,
          { "Fill Pattern Object ID", "isobus.vt.change_fill_attributes.fill_pattern_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changefillattributes_errorcodes,
          { "Error Codes", "isobus.vt.change_fill_attributes.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeactivemask_workingset,
          { "Working Set Object ID", "isobus.vt.chg_active_mask.working_set_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeactivemask_newactivemask,
          { "New Active Mask Object ID", "isobus.vt.chg_active_mask.new_active_mask_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeactivemask_errorcodes,
          { "Error Codes", "isobus.vt.chg_active_mask.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesoftkeymask_masktype,
          { "Mask Type", "isobus.vt.change_soft_key_mask.mask_type",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesoftkeymask_datamaskobjectid,
          { "Working Set Object ID", "isobus.vt.change_soft_key_mask.data_mask_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesoftkeymask_newsoftkeymaskobjectid,
          { "New Active Mask Object ID", "isobus.vt.change_soft_key_mask.new_soft_key_mask_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changesoftkeymask_errorcodes,
          { "Error Codes", "isobus.vt.change_soft_key_mask.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeattributes_objectid,
          { "Object ID", "isobus.vt.change_attributes.object_id",
            FT_UINT16, BASE_DEC, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeattributes_attributeid,
          { "Attribute ID", "isobus.vt.change_attributes.attribute_id",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeattributes_newvalue,
          { "New Value For Attribute", "isobus.vt.change_attributes.new_active_mask",
            FT_UINT32, BASE_DEC_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeattributes_errorcodes,
          { "Error Codes", "isobus.vt.change_attributes.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepriority_objectid,
          { "Object ID", "isobus.vt.change_priority.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepriority_newpriority,
          { "New Priority", "isobus.vt.change_priority.new_priority",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepriority_errorcodes,
          { "Error Codes", "isobus.vt.change_priority.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelistitem_listobjectid,
          { "List Object ID", "isobus.vt.change_list_item.list_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelistitem_listindex,
          { "List Index", "isobus.vt.change_list_item.list_index",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelistitem_newobjectid,
          { "New Object ID", "isobus.vt.change_list_item.new_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changelistitem_errorcodes,
          { "Error Codes", "isobus.vt.change_list_item.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_deleteobjectpool_errorcodes,
          { "Error Codes", "isobus.vt.delete_object_pool.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgstrval_objectid,
          { "Object ID", "isobus.vt.change_string_value.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgstrval_length,
          { "Length", "isobus.vt.change_string_value.length",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgstrval_errorcodes,
          { "Error Codes", "isobus.vt.change_string_value.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_chgstrval_value,
          { "Value", "isobus.vt.change_string_value.value",
            FT_STRING, STR_UNICODE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changebackgroundcolour_objectid,
          { "Object ID", "isobus.vt.change_background_colour.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changebackgroundcolour_errorcodes,
          { "Error Codes", "isobus.vt.change_background_colour.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changebackgroundcolour_colour,
          { "Colour", "isobus.vt.change_background_colour.colour",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeobjectlabel_objectid,
          { "Object ID", "isobus.vt.change_object_label.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeobjectlabel_stringobjectid,
          { "String Object ID", "isobus.vt.change_object_label.string_object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeobjectlabel_fonttype,
          { "Colour", "isobus.vt.change_object_label.colour",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeobjectlabel_graphicobjectid,
          { "Graphics Representation Object ID", "isobus.vt.change_object_label.graphic_representation_object_id",
            FT_UINT16, BASE_DEC, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changeobjectlabel_errorcodes,
          { "Error Codes", "isobus.vt.change_object_label.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonpoint_objectid,
          { "Object ID", "isobus.vt.change_polygon_point.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonpoint_pointindex,
          { "Point Index", "isobus.vt.change_polygon_point.point_index",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonpoint_xvalue,
          { "X Value", "isobus.vt.change_polygon_point.x_value",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonpoint_yvalue,
          { "Y Value", "isobus.vt.change_polygon_point.y_value",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonpoint_errorcodes,
          { "Error Codes", "isobus.vt.change_polygon_point.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonscale_objectid,
          { "Object ID", "isobus.vt.change_polygon_scale.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonscale_newwidth,
          { "New Width", "isobus.vt.change_polygon_scale.new_width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonscale_newheight,
          { "New Height", "isobus.vt.change_polygon_scale.new_height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_changepolygonscale_errorcodes,
          { "Error Codes", "isobus.vt.change_polygon_scale.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_objectid,
          { "Object ID", "isobus.vt.graphics_context.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_subcommandid,
          { "Sub Command ID", "isobus.vt.graphics_context.sub_command_id",
            FT_UINT8, BASE_DEC | BASE_EXT_STRING, &graphics_context_sub_command_id_ext, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setgraphicscursor_xposition,
          { "X Position", "isobus.vt.graphics_context.set_graphics_cursor.x_position",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setgraphicscursor_yposition,
          { "Y Position", "isobus.vt.graphics_context.set_graphics_cursor.y_position",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_movegraphicscursor_xoffset,
          { "X Offset", "isobus.vt.graphics_context.move_graphics_cursor.x_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_movegraphicscursor_yoffset,
          { "Y Offset", "isobus.vt.graphics_context.move_graphics_cursor.y_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setforegroundcolour_colour,
          { "Colour", "isobus.vt.graphics_context.set_foreground_colour.colour",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setbackgroundcolour_colour,
          { "Colour", "isobus.vt.graphics_context.set_background_colour.colour",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setlineattributesobjectid_objectid,
          { "Object ID", "isobus.vt.graphics_context.set_line_attributes_object_id.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setfillattributesobjectid_objectid,
          { "Object ID", "isobus.vt.graphics_context.set_fill_attributes_object_id.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_setfontattributesobjectid_objectid,
          { "Object ID", "isobus.vt.graphics_context.set_font_attributes_object_id.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_eraserectangle_width,
          { "Width", "isobus.vt.graphics_context.erase_rectangle.width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_eraserectangle_height,
          { "Height", "isobus.vt.graphics_context.erase_rectangle.height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawpoint_xoffset,
          { "X Offset", "isobus.vt.graphics_context.draw_point.x_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawpoint_yoffset,
          { "Y Offset", "isobus.vt.graphics_context.draw_point.y_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawline_xoffset,
          { "X Offset", "isobus.vt.graphics_context.draw_line.x_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawline_yoffset,
          { "Y Offset", "isobus.vt.graphics_context.draw_line.y_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawrectangle_width,
          { "Width", "isobus.vt.graphics_context.draw_rectangle.width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawrectangle_height,
          { "Height", "isobus.vt.graphics_context.draw_rectangle.height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawclosedellipse_width,
          { "Width", "isobus.vt.graphics_context.draw_closed_rectangle.width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawclosedellipse_height,
          { "Height", "isobus.vt.graphics_context.draw_closed_rectangle.height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawpolygon_numberofpoints,
          { "Number of polygon points", "isobus.vt.graphics_context.draw_polygon.number_of_points",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawpolygon_point_xoffset,
          { "X Offset", "isobus.vt.graphics_context.draw_polygon.point.x_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawpolygon_point_yoffset,
          { "Y Offset", "isobus.vt.graphics_context.draw_polygon.point.y_offset",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawtext_background,
          { "Background", "isobus.vt.graphics_context.draw_text.point.background",
            FT_UINT8, BASE_DEC, VALS(draw_text_background), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawtext_numberofbytes,
          { "Number of Bytes", "isobus.vt.graphics_context.draw_text.point.number_of_bytes",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawtext_textstring,
          { "Text string", "isobus.vt.graphics_context.draw_text.point.text_string",
            FT_STRING, STR_UNICODE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_panviewport_viewportx,
          { "Viewport X", "isobus.vt.graphics_context.pan_viewport.viewport_x",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_panviewport_viewporty,
          { "Viewport Y", "isobus.vt.graphics_context.pan_viewport.viewport_y",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_zoomviewport_zoomvalue,
          { "Zoom Value", "isobus.vt.graphics_context.zoom_viewport.zoom_value",
            FT_FLOAT, BASE_NONE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_panandzoomviewport_viewportx,
          { "Viewport X", "isobus.vt.graphics_context.pan_and_zoom_viewport.viewport_x",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_panandzoomviewport_viewporty,
          { "Viewport Y", "isobus.vt.graphics_context.pan_and_zoom_viewport.viewport_y",
            FT_INT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_panandzoomviewport_zoomvalue,
          { "Zoom Value", "isobus.vt.graphics_context.pan_and_zoom_viewport.zoom_value",
            FT_FLOAT, BASE_NONE, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_changeviewportsize_newwidth,
          { "New Width", "isobus.vt.graphics_context.change_viewport_size.new_width",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_changeviewportsize_newheight,
          { "New Height", "isobus.vt.graphics_context.change_viewport_size.new_height",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_drawvtobject_objectid,
          { "Object ID", "isobus.vt.graphics_context.draw_vt_object.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_copycanvastopicturegraphic_objectidpicturegraphic,
          { "Object ID of Picture Grahpic", "isobus.vt.graphics_context.copy_canvas_to_picture_graphic.object_id_picture_graphic",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_graphicscontext_copyviewporttopicturegraphic_objectidpicturegraphic,
          { "Object ID of Picture Grahpic", "isobus.vt.graphics_context.copy_viewport_to_picture_graphic.object_id_picture_graphic",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getattributevalue_objectid,
          { "Object ID", "isobus.vt.get_attribute_value.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getattributevalue_attributeid,
          { "Attribute ID", "isobus.vt.get_attribute_value.attribute_id",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getattributevalue_value,
          { "Value", "isobus.vt.get_attribute_value.value",
            FT_UINT32, BASE_DEC_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getattributevalue_errorcodes,
          { "Error Codes", "isobus.vt.get_attribute_value.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectcolourmap_objectid,
          { "Object ID", "isobus.vt.select_colour_map.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_selectcolourmap_errorcodes,
          { "Error Codes", "isobus.vt.select_colour_map.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_executeextendedmacro_objectid,
          { "Object ID", "isobus.vt.execute_extended_macro.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_executeextendedmacro_errorcodes,
          { "Error Codes", "isobus.vt.execute_extended_macro.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_lockunlockmask_command,
          { "Command", "isobus.vt.lock_unlock_mask.command",
            FT_UINT8, BASE_DEC, VALS(lock_unlock), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_lockunlockmask_objectid,
          { "Object ID", "isobus.vt.lock_unlock_mask.object_id",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_lockunlockmask_locktimeout,
          { "Lock Timeout", "isobus.vt.lock_unlock_mask.lock_timeout",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_lockunlockmask_errorcodes,
          { "Error Codes", "isobus.vt.lock_unlock_mask.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_executemacro_objectid,
          { "Object ID", "isobus.vt.execute_macro.object_id",
            FT_UINT8, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_executemacro_errorcodes,
          { "Error Codes", "isobus.vt.execute_macro.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getmemory_memoryrequired,
          { "Memory Required", "isobus.vt.get_memory.memory_required",
            FT_UINT32, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getmemory_vtversion,
          { "VT Version", "isobus.vt.get_memory.vt_version",
            FT_UINT8, BASE_DEC, VALS(vt_versions_extended), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getmemory_status,
          { "Status", "isobus.vt.get_memory.status",
            FT_UINT8, BASE_DEC, VALS(memory_status), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_codeplane,
          { "Code Plane", "isobus.vt.get_supported_widechars.code_plane",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_firstwidechar,
          { "First Widechar", "isobus.vt.get_supported_widechars.first_widechar",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_lastwidechar,
          { "Last Widechar", "isobus.vt.get_supported_widechars.last_widechar",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_errorcodes,
          { "Error Codes", "isobus.vt.get_supported_widechars.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_numberofranges,
          { "Number of Ranges", "isobus.vt.get_supported_widechars.number_of_ranges",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_firstavailablewidechar,
          { "First Available Widechar", "isobus.vt.get_supported_widechars.first_available_widechar",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedwidechars_lastavailablewidechar,
          { "Last Available Widechar", "isobus.vt.get_supported_widechars.last_available_widechar",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getnumberofsoftkeys_navigationsoftkeys,
          { "Navigation Soft Keys", "isobus.vt.get_number_of_soft_keys.navigation_soft_keys",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getnumberofsoftkeys_xdots,
          { "X Dots", "isobus.vt.get_number_of_soft_keys.x_dots",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getnumberofsoftkeys_ydots,
          { "Y Dots", "isobus.vt.get_number_of_soft_keys.y_dots",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getnumberofsoftkeys_virtualsoftkeys,
          { "Virtual Soft Keys", "isobus.vt.get_number_of_soft_keys.virtual_soft_keys",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getnumberofsoftkeys_physicalsoftkeys,
          { "Physical Soft Keys", "isobus.vt.get_number_of_soft_keys.physical_soft_keys",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes,
          { "Small Font Sizes", "isobus.vt.get_text_font_data.small_font_sizes",
            FT_UINT8, BASE_HEX, NULL, 0x00,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font8x8,
          { "Font 8 x 8",       "isobus.vt.get_text_font_data.small_font_sizes.font_8x8",
            FT_UINT8, BASE_HEX, NULL, 0x01,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font8x12,
          { "Font 8 x 12",       "isobus.vt.get_text_font_data.small_font_sizes.font_8x12",
            FT_UINT8, BASE_HEX, NULL, 0x02,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font12x16,
          { "Font 12 x 16",       "isobus.vt.get_text_font_data.small_font_sizes.font_12x16",
            FT_UINT8, BASE_HEX, NULL, 0x04,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font16x16,
          { "Font 12 x 16",       "isobus.vt.get_text_font_data.small_font_sizes.font_12x16",
            FT_UINT8, BASE_HEX, NULL, 0x08,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font16x24,
          { "Font 16 x 24",       "isobus.vt.get_text_font_data.small_font_sizes.font_16x24",
            FT_UINT8, BASE_HEX, NULL, 0x10,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font24x32,
          { "Font 24 x 32",       "isobus.vt.get_text_font_data.small_font_sizes.font_24x32",
            FT_UINT8, BASE_HEX, NULL, 0x20,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_smallfontsizes_font32x32,
          { "Font 32 x 32",       "isobus.vt.get_text_font_data.small_font_sizes.font_32x32",
            FT_UINT8, BASE_HEX, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes,
          { "Large Font Sizes",       "isobus.vt.get_text_font_data.large_font_sizes",
            FT_UINT8, BASE_HEX, NULL, 0x00,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font32x48,
          { "Font 32 x 48",       "isobus.vt.get_text_font_data.large_font_sizes.font_32x48",
            FT_UINT8, BASE_HEX, NULL, 0x01,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font48x64,
          { "Font 48 x 64",       "isobus.vt.get_text_font_data.large_font_sizes.font_48x64",
            FT_UINT8, BASE_HEX, NULL, 0x02,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font64x64,
          { "Font 64 x 64",       "isobus.vt.get_text_font_data.large_font_sizes.font_64x64",
            FT_UINT8, BASE_HEX, NULL, 0x04,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font64x96,
          { "Font 64 x 96",       "isobus.vt.get_text_font_data.large_font_sizes.font_64x96",
            FT_UINT8, BASE_HEX, NULL, 0x08,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font96x128,
          { "Font 96 x 128",       "isobus.vt.get_text_font_data.large_font_sizes.font_96x128",
            FT_UINT8, BASE_HEX, NULL, 0x10,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font128x128,
          { "Font 128 x 128",       "isobus.vt.get_text_font_data.large_font_sizes.font_128x128",
            FT_UINT8, BASE_HEX, NULL, 0x20,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_largefontsizes_font128x192,
          { "Font 128 x 192",       "isobus.vt.get_text_font_data.large_font_sizes.font_128x192",
            FT_UINT8, BASE_HEX, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes,
          { "Type Attributes",       "isobus.vt.get_text_font_data.type_attributes",
            FT_UINT8, BASE_HEX, NULL, 0x00,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_boldtext,
          { "Bold text",       "isobus.vt.get_text_font_data.type_attributes.bold_text",
            FT_UINT8, BASE_HEX, NULL, 0x01,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_crossedouttext,
          { "Crossed out text",       "isobus.vt.get_text_font_data.type_attributes.crossed_out_text",
            FT_UINT8, BASE_HEX, NULL, 0x02,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_underlinedtext,
          { "Underlined text",       "isobus.vt.get_text_font_data.type_attributes.underlined_text",
            FT_UINT8, BASE_HEX, NULL, 0x04,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_italicstext,
          { "Italics text",       "isobus.vt.get_text_font_data.type_attributes.italics_text",
            FT_UINT8, BASE_HEX, NULL, 0x08,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_invertedtext,
          { "Inverted text",       "isobus.vt.get_text_font_data.type_attributes.inverted_text",
            FT_UINT8, BASE_HEX, NULL, 0x10,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_flashinverted,
          { "Flash inverted",       "isobus.vt.get_text_font_data.type_attributes.flash_inverted",
            FT_UINT8, BASE_HEX, NULL, 0x20,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_flashhidden,
          { "Flash hidden",       "isobus.vt.get_text_font_data.type_attributes.flash_hidden",
            FT_UINT8, BASE_HEX, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gettextfontdata_typeattributes_proportionalfontrendering,
          { "Proportional font rendering",       "isobus.vt.get_text_font_data.type_attributes.proportional_font_rendering",
            FT_UINT8, BASE_DEC, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getwindowmaskdata_backgroundcolourdatamask,
          { "Background Colour Data Mask",      "isobus.vt.get_window_mask_data.background_colour_data_mask",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getwindowmaskdata_backgroundcoloursoftkeymask,
          { "Background Colour Soft Key Mask",      "isobus.vt.get_window_mask_data.background_colour_soft_key_mask",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_colours), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedobjects_numberofbytes,
          { "Number of bytes",      "isobus.vt.get_supported_objects.number_of_bytes",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getsupportedobjects_objecttype,
          { "Object Type",      "isobus.vt.get_supported_objects.object_type",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_object_types), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_boottime,
          { "Boot time",      "isobus.vt.get_hardware.boot_time",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_graphictype,
          { "Graphic type",      "isobus.vt.get_hardware.graphic_type",
            FT_UINT8, BASE_DEC, VALS(graphic_types), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware,
          { "Hardware",      "isobus.vt.get_hardware.hardware",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_touchscreen,
          { "Touch Screen",      "isobus.vt.get_hardware.hardware.touch_screen",
            FT_UINT8, BASE_HEX, NULL, 0x01,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_pointingdevice,
          { "Pointing Device",      "isobus.vt.get_hardware.hardware.pointing_device",
            FT_UINT8, BASE_HEX, NULL, 0x02,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_multifreqaudiooutput,
          { "Multiple frequency audio output",      "isobus.vt.get_hardware.hardware.multiple_frequency_audio_output",
            FT_UINT8, BASE_HEX, NULL, 0x04,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_adjustvolumeaudiooutput,
          { "Adjustable volume audio output",      "isobus.vt.get_hardware.hardware.adjustable_volume_audio_output",
            FT_UINT8, BASE_HEX, NULL, 0x08,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_simultaneousactivationphysicalsoftkeys,
          { "Simultaneous activation of physical soft keys",      "isobus.vt.get_hardware.hardware.simultaneous_activation_physical_soft_keys",
            FT_UINT8, BASE_HEX, NULL, 0x10,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_simultaneousactivationbuttons,
          { "Simultaneous activation of buttons",      "isobus.vt.get_hardware.hardware.simultaneous_activation_buttons",
            FT_UINT8, BASE_HEX, NULL, 0x20,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_dragoperation,
          { "Reports drag operation",      "isobus.vt.get_hardware.hardware.drag_operation",
            FT_UINT8, BASE_HEX, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_hardware_intermediatecoordinatesdrag,
          { "Intermediate coordinates during drag",      "isobus.vt.get_hardware.hardware.intermediate_coordinates_drag",
            FT_UINT8, BASE_HEX, NULL, 0x80,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_xpixels,
          { "X - Pixels",      "isobus.vt.get_hardware.x_pixels",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_gethardware_ypixels,
          { "Y - Pixels",      "isobus.vt.get_hardware.y_pixels",
            FT_UINT16, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_storeversion_versionlabel,
          { "Version Label",       "isobus.vt.store_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_storeversion_errorcodes,
          { "Error Codes",       "isobus.vt.store_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_loadversion_versionlabel,
          { "Version Label",       "isobus.vt.load_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_loadversion_errorcodes,
          { "Error Codes",       "isobus.vt.load_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_deleteversion_versionlabel,
          { "Version Label",       "isobus.vt.delete_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_deleteversion_errorcodes,
          { "Error Codes",       "isobus.vt.delete_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedgetversions_numberofversions,
          { "Number of versions",  "isobus.vt.extended_get_versions.number_of_versions",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedgetversions_versionlabel,
          { "Version label",  "isobus.vt.extended_get_versions.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedstoreversion_versionlabel,
          { "Version Label",       "isobus.vt.extended_store_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedstoreversion_errorcodes,
          { "Error Codes",       "isobus.vt.extended_store_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedloadversion_versionlabel,
          { "Version Label",       "isobus.vt.extended_load_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendedloadversion_errorcodes,
          { "Error Codes",       "isobus.vt.extended_load_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendeddeleteversion_versionlabel,
          { "Version Label",       "isobus.vt.extended_delete_version.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_extendeddeleteversion_errorcodes,
          { "Error Codes",       "isobus.vt.extended_delete_version.error_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getversions_numberofversions,
          { "Number of versions",  "isobus.vt.get_versions.number_of_versions",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_getversions_versionlabel,
          { "Version label",  "isobus.vt.get_versions.version_label",
            FT_STRING, STR_ASCII, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_unsupportedvtfunction_unsupportedvtfunction,
          { "Unsupported VT function",       "isobus.vt.unsupported_vt_function.unsupported_vt_function",
            FT_UINT8, BASE_DEC | BASE_EXT_STRING, &vt_function_code_ext, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_workingsetmaster,
          { "Working Set Master",       "isobus.vt.vtstatus.working_set_master",
            FT_UINT8, BASE_DEC, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_objectiddatamask,
          { "Object ID Data Mask",      "isobus.vt.vtstatus.object_id_data_mask",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_objectidsoftkeymask,
          { "Object ID Soft Key Mask",  "isobus.vt.vtstatus.object_id_soft_key_mask",
            FT_UINT16, BASE_DEC_HEX, VALS(object_id_strings), 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes,
          { "VT Busy Codes",            "isobus.vt.vtstatus.vt_busy_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_updatingvisiblemask,
          { "VT is busy updating visible mask",            "isobus.vt.vtstatus.vt_busy_codes.updating_visible_mask",
            FT_UINT8, BASE_HEX, NULL, 0x80,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_savingdata,
          { "VT is busy saving data to non-volatile memory","isobus.vt.vtstatus.vt_busy_codes.saving_data",
            FT_UINT8, BASE_HEX, NULL, 0x40,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_executingcommand,
          { "VT is busy executing a command",            "isobus.vt.vtstatus.vt_busy_codes.executing_commands",
            FT_UINT8, BASE_HEX, NULL, 0x20,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_executingmacro,
          { "VT is busy executing a Macro",            "isobus.vt.vtstatus.vt_busy_codes.executing_macro",
            FT_UINT8, BASE_HEX, NULL, 0x10,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_parsingobjectpool,
          { "VT is busy parsing an object pool",            "isobus.vt.vtstatus.vt_busy_codes.parsing_object_pool",
            FT_UINT8, BASE_HEX, NULL, 0x8,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_auxcontrolsactive,
          { "Auxiliary controls learn mode active",        "isobus.vt.vtstatus.vt_function_codes.aux_controls_active",
            FT_UINT8, BASE_HEX, NULL, 0x2,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtbusycodes_outofmemory,
          { "VT is out of memory",        "isobus.vt.vtstatus.vt_function_codes.out_of_memory",
            FT_UINT8, BASE_HEX, NULL, 0x1,
            NULL, HFILL }
        },
        { &hf_isobus_vt_vtstatus_vtfunctioncodes,
          { "VT Function Codes",        "isobus.vt.vtstatus.vt_function_codes",
            FT_UINT8, BASE_HEX, NULL, 0x0,
            NULL, HFILL }
        },
        { &hf_isobus_vt_wrksetmain_bitmask,
          { "Bitmask",                   "isobus.vt.working_set_maintenance.bitmask",
            FT_UINT8, BASE_DEC, NULL, 0x80,
            NULL, HFILL }
        },
        { &hf_isobus_vt_wrksetmain_version,
          { "Version",                  "isobus.vt.working_set_maintenance.version",
            FT_UINT8, BASE_DEC | BASE_RANGE_STRING, RVALS(vt_versions), 0x0,
            NULL, HFILL }
        }
    };

    static gint *ett[] = {
        &ett_isobus_vt,
        &ett_isobus_vt_vtstatus_busycodes_subtree,
        &ett_isobus_vt_getsupportedwidechars_range,
        &ett_isobus_vt_gettextfontdata_smallfontsizes,
        &ett_isobus_vt_gettextfontdata_largefontsizes,
        &ett_isobus_vt_gettextfontdata_typeattributes,
        &ett_isobus_vt_gethardware_hardware,
        &ett_isobus_vt_preferredassignment_inputunit,
        &ett_isobus_vt_preferredassignment_inputunit_preferredfunction,
        &ett_isobus_vt_auxiliarycapabilities_inputunit,
        &ett_isobus_vt_auxiliarycapabilities_inputunit_set,
        &ett_isobus_vt_auxiliaryassignmenttype2_flags,
        &ett_isobus_vt_auxiliaryinputtype2status_operatingstate
    };

    module_t *vt_module;

    register_init_routine(&isobus_vt_init);

    proto_vt = proto_register_protocol("ISObus Virtual Terminal",
                                       "ISObus VT",
                                       "isobus.vt");

    proto_register_field_array(proto_vt, hf, array_length(hf));
    proto_register_subtree_array(ett, array_length(ett));

    /* register preferences */
    vt_module = prefs_register_protocol(proto_vt, NULL);

    /* file to translate opject ids to names, format should be separate line for each object.
     * objects should be specified in the following way: <object ID number>,<object ID name>
     */
    prefs_register_filename_preference(vt_module, "object_ids", "Object ID Translation",
        "File containing a translation from object ID to string", &object_id_translation,
        FALSE);
}

void
proto_reg_handoff_isobus_vt(void)
{
    dissector_handle_t vt_handle_vt_to_ecu;
    dissector_handle_t vt_handle_ecu_to_vt;

    vt_handle_vt_to_ecu = create_dissector_handle( dissect_vt_to_ecu, proto_vt );
    vt_handle_ecu_to_vt = create_dissector_handle( dissect_ecu_to_vt, proto_vt );

    dissector_add_uint("isobus.pdu_format", 230, vt_handle_vt_to_ecu);
    dissector_add_uint("isobus.pdu_format", 231, vt_handle_ecu_to_vt);
}

/*
 * Editor modelines  -  http://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:
 */