summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1606344_ldr_communication_module/config/commands.xml
blob: d37a13e93c6800833140ac309b3cd5b5d452a8bb (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
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Copyright (C) ST-Ericsson SA 2011
* License terms: 3-clause BSD license
-->
<?xml-stylesheet type="text/xml" href="command_ids_h.xsl"?>
<?xml-stylesheet type="text/xml" href="command_marshal.xsl"?>
<?xml-stylesheet type="text/xml" href="commands_h.xsl"?>
<?xml-stylesheet type="text/xml" href="commands_impl_h.xsl"?>
<?xml-stylesheet type="text/xml" href="common.xsl"?>


<commandspec>

  <typedef>
    <interface type="loader" name="SupportedCommand"/>
    <value type="uint32" name="Group">Application Group number</value>
    <value type="uint32" name="Command">Command number</value>
    <value type="uint32" name="Permitted">Permission value</value>
  </typedef>

  <typedef>
    <interface type="loader" name="ListDevice"/>
    <value type="string" name="Path_p">Absolute device path pointing of the described device</value>
    <value type="string" name="Type_p">Type of the device</value>
    <value type="uint64" name="BlockSize">Size of the smallest addressable unit in the device in bytes</value>
    <value type="uint64" name="Start">Offset in bytes of the start of the device relative to its parents offset 0 with a granularity of its parents block size</value>
    <value type="uint64" name="Length">Length of the device in bytes</value>
  </typedef>

  <typedef>
    <interface type="loader" name="DirEntry"/>
    <value type="string" name="Name_p">Name of file or directory</value>
    <value type="uint64" name="Size">Size of file or directory</value>
    <value type="uint32" name="Mode">Indicator if it is file or directory</value>
    <value type="uint32" name="Time">Time of last modification</value>
  </typedef>

  <typedef>
    <interface type="loader" name="Cipher"/>
    <value type="string" name="Name_p">supported ciphers</value>
  </typedef>

  <AuthenticationList>
    <value number="1" name="A1">A1</value>
    <value number="2" name="CA">CA</value>
  </AuthenticationList>
  
  <PermissionList>
    <value number="0" name="ServiceModeLevel">ServiceModeLevel</value>
    <value number="1" name="FlashModeLevel">FlashModeLevel</value>
    <value number="64" name="AdvanceServiceModeLevel">AdvanceServiceModeLevel</value>
    <value number="65" name="LimitedProductionModeLevel">LimitedProductionModeLevel</value>
    <value number="66" name="VeryLimitedProductionModeLevel">VeryLimitedProductionModeLevel</value>
    <value number="127" name="ProductionModeLevel">ProductionModeLevel</value>
  </PermissionList>

<!--
  Predefine generic type of data are: uint32, string and buffer.
  !!!!! IMPORTANT !!!!!
  All new types of data (structures or vectors of structures) that need to be defined should first be reviewed and approved by:
  Hans Holmberg (QHANHOL) for loaders, Mikael Sjolen XX for PTK and Daniel Chong for PA.
 -->

  <group number="01" name="System application" supportedcmdtype="longrunning,shortrunning">
    <documentation>
      System commands group (0x01)
    </documentation>
    <interface type="loader" name="System"/>
    
    <command number="1" name="Loader Start-up Status" ADbg="false" source="ME">
      <interface type="loader" name="LoaderStartUpStatus"/>
      <documentation>
        The Loader Start-up Status command is sent by the ME to notify the host that it has started. The Status parameter indicates in what mode the Loader started.
      </documentation>
      <input>
        <value type="uint32" name="Status">0 = started successfully, 1 = failed to start (lack of permissions), 2 = software module failed to initialize</value>
        <value type="string" name="LoaderVersion_p">Loader version identifier</value>
        <value type="string" name="ProtocolVersion_p">Protocol version identifier</value>
      </input>
      <output>
      </output>
    </command>

    <command number="3" name="System Reboot" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="Reboot"/>
      <documentation>
        The Reboot command is used to instruct the Loader to reset the ME. Upon receiving this command, the Loader shuts down in a controlled fashion and restarts the ME. The Mode parameter is used to select the mode of reset.
      </documentation>
      <input>
        <value type="uint32" name="Mode">0 = normal restart, 1 = restart in service mode, 2 = restart with JTAG debugging enabled, 3 = restart in service mode and with JTAG debugging enabled</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="System Shutdown" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="ShutDown"/>
      <documentation>
        The Loader shuts down in a controlled fashion and proceeds to shut down the ME itself.
      </documentation>
      <input>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="System Supported Command" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="SupportedCommands"/>
      <documentation>
        The Loader returns a list of implemented commands and whether they are permitted to execute in the current Loader state. Further fine-grained permission controls might also deny execution of a specific command.
      </documentation>
      <input>
      </input>
      <output>
        <value type="uint32" name="CommandCount">Number of implemented commands</value>
        <value type="SupportedCommand" name="Commands" length="CommandCount">An array of command identifiers. The Permitted field indicates whether the command can be executed at the current time (non-zero value means allowed)</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="6" name="System Execute Software" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="ExecuteSoftware"/>
      <documentation>
        Receive, verify and execute software, which can be a signed Loader. After having sent this command, the ME will attempt to read the software payload data from the host using the Bulk protocol or from the flash file system depending on the selected path.
      </documentation>
      <input>
        <value type="uint32" name="ExecuteMode">Execute mode: 1 = execution from specified address, 2 = first load the software then execute.</value>
        <value type="string" name="SourcePath_p">File system or Bulk id path</value>
        <value type="uint64" name="Length">Total length of the execute software file</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="7" name="System Authenticate" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="Authenticate"/>
      <documentation>
        This command is used to escalate the privileges of the operator. Two modes of authentication are available by default; Control Key authentication and Certificate based authentication. The authentication command sets the loader in a specific authentication context when it takes control over the command flow. After receiving the authentication command, the Loader will send the appropriate request for information to the PC.
      </documentation>
      <input>
        <value type="uint32" name="Type">Authentication type: 0 = Control Key authentication, 1 = Certificate authentication.</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="8" name="System Get Control Keys" ADbg="false" source="ME">
      <interface type="loader" name="GetControlKeys"/>
      <documentation>
        This command is used by the Loader to retrieve the SimLock Control Keys from the host in order to authenticate a user. The command is used in authentication context.
      </documentation>
      <input>
      </input>
      <output>
        <value type="string" name="NLCKLock_p"/>
        <value type="string" name="NSLCKLock_p"/>
        <value type="string" name="SPLCKLock_p"/>
        <value type="string" name="CLCKLock_p"/>
        <value type="string" name="PCKLock_p"/>
        <value type="string" name="ESLCKLock_p"/>
        <value type="string" name="NLCKUnlock_p"/>
        <value type="string" name="NSLCKUnlock_p"/>
        <value type="string" name="SPLCKUnlock_p"/>
        <value type="string" name="CLCKUnlock_p"/>
        <value type="string" name="PCKUnlock_p"/>
        <value type="string" name="ESLCKUnlock_p"/>
      </output>
    </command>

    <command number="9" name="System Authentication Challenge" ADbg="false" source="ME">
      <interface type="loader" name="AuthenticationChallenge"/>
      <documentation>
        This command is used by the Loader to perform a certificate authentication. The command is only used in authentication context.
      </documentation>
      <input>
        <value type="uint32" name="ChallengeBlockLength">Authentication Challenge buffer length</value>
        <value type="buffer" name="ChallengeBlock_p" length="ChallengeBlockLength">Authentication Challenge that must be signed using the correct certificate and returned to the Loader</value>
      </input>
      <output>
        <value type="uint32" name="ResponseBlockLength">Updated authentication challenge buffer length</value>
        <value type="buffer" name="ResponseBlock_p" length="ResponseBlockLength">Signed authentication challenge together with the requested permissions.</value>
      </output>
    </command>
    
    <command number="10" name="System Collect Data" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="CollectData"/>
      <documentation>
        This command is used to collect printouts (debug data) and measurements results. 
      </documentation>
      <input>
        <value type="uint32" name="Type">Type of requested data.</value>
      </input>
      <output>
        <value type="uint32" name="DataLenght">Length of output buffer.</value>
        <value type="buffer" name="CollectedData_p" length="DataLenght">Output data buffer. Contain debug data (printouts) or measurement data.</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>
    
    <command number="11" name="System Get Progress Status" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="GetProgressStatus"/>
      <documentation>
        This command is used by the Loader to get the minimal progress status from all running commands.
      </documentation>
      <input>
      </input>
      <output>
        <value type="uint32" name="ProgressStatus">Command progress status presented in percent.</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>  
    
    <command number="12" name="Set System Time" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="SetSystemTime"/>
      <documentation>
        The Set System Time command is used to instruct the Loader to use real world time and date during its run time. Upon receiving this command, the Loader sets internal Real Time Clock. This command can be issued more then once by PC tool.
      </documentation>
      <input>
        <value type="uint32" name="EpochTime">Number of seconds since January 1, 1970 (midnight UTC/GMT).</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="13" name="Switch Communication Device" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="SwitchCommunicationDevice"/>
      <documentation>
        This command is used to instruct the Loader to switch to a new communication device.
      </documentation>
      <input>
        <value type="uint32" name="Device">Communication device number to switch to.</value>
        <value type="uint32" name="DeviceParam">Communication device parameters.</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
        <value ref="A1"/>
        <value ref="CA"/>
      </authentication>
      <permissions>
        <value ref="ServiceModeLevel"/>
        <value ref="FlashModeLevel"/>
        <value ref="AdvanceServiceModeLevel"/>
        <value ref="ProductionModeLevel"/>
        <value ref="LimitedProductionModeLevel"/>
        <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="14" name="System Get Control Keys Data" ADbg="false" source="ME">
      <interface type="loader" name="GetControlKeysData"/>
      <documentation>
        This command is used by the Loader to retrieve the SimLock Control Keys data buffer from the host in order to authenticate a user. The command is used in authentication context.
      </documentation>
      <input>
      </input>
      <output>
        <value type="uint32" name="iDataSize">Length of output buffer.</value>
        <value type="buffer" length="iDataSize" name="SIMLockKeysData_p">Data buffer with all SIMLock keys.</value>
      </output>
    </command>

    <command number="15" name="System Start Communication Relay" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <interface type="loader" name="StartCommRelay"/>
      <documentation>
        The Loader shuts down the global communication and enters in a Relay working mode.
      </documentation>
      <input>
        <value type="uint32" name="HostDeviceId">Communication device number of the relay input (host device).</value>
        <value type="uint32" name="TargetDeviceId">Communication device number of the relay ouptut (target device).</value>
        <value type="uint32" name="ControlDeviceId">Communication device number for the loader commands (control device).</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>
  </group>

  <group number="02" name="Flash application" supportedcmdtype="longrunning,shortrunning">
    <documentation>
    Flash Commands group (0x02)
    </documentation>
    <interface type="loader" name="Flash"/>
    <command number="1" name="Process File" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        This command is used to initiate a flashing session.  The Type argument is used to select the type of file to process and Length parameter defines the total size of the file.
      </documentation>
      <interface type="loader" name="ProcessFile"/>
      <input>
        <value type="uint64" name="Length">Total length of the opened file</value>
        <value type="string" name="Type_p">Type of the opened file. Currently the only supported type is    x-empflash/flasharchive   </value>
        <value type="string" name="SourcePath_p">File system or Bulk id path</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="2" name="List Devices" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        The Loader returns a list of detected block devices. A block device can be a physical device (   flash0   ,    mmc0   ,    usb0   ), a logical device (   cabs0   ,    mbbs0   ) or a file system volume (   boot   ,    sys   ). Together they form paths on the form     /flash0/mbbs0    or    /flash1/cabs1/vfat   .
      </documentation>
      <interface type="loader" name="ListDevices"/>
      <input>
      </input>
      <output>
        <value type="uint32" name="DeviceCount">Indicates the number of returned devices</value>
        <value type="ListDevice" name="Devices" length="DeviceCount">Absolute device path, Type of the device, Block Size, Start address of the device, Length of the device</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Dump Area" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        This command is used to initiate a Dump session.
      </documentation>
      <interface type="loader" name="DumpArea"/>
      <input>
        <value type="string" name="Path_p">Path to the device to dump.</value>
        <value type="uint64" name="Start">Start of the dump relative to the start of the device indicated by Path in bytes. Actual start is determined by the Mode parameter.</value>
        <value type="uint64" name="Length">Length of the dump in bytes. Actual length is determined by the Mode parameter.</value>
        <value type="string" name="TargetPath_p">File system or bulk id path.</value>
        <value type="uint32" name="RedundantArea">If set to 0 dump flash including redundant area, if set to 1 dump flash without redundant area.</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="Erase Area" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        This command is used to erase a flash device or part of a flash device.
      </documentation>
      <interface type="loader" name="EraseArea"/>
      <input>
        <value type="string" name="Path_p">Path to the device to erase.</value>
        <value type="uint64" name="Start">Start of the dump relative to the start of the device indicated by Path in bytes. This must be a multiple of the block size of the device.</value>
        <value type="uint64" name="Length">Length of the dump in bytes. This must be a multiple of the block size of the device.</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="Flash RAW" ADbg = "false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        This command is used to flash raw flash image.
      </documentation>
      <interface type="loader" name="FlashRaw" />
      <input>
        <value type="uint64" name="Start">Address where RAW image should be written. This must be a multiple of the block size of the device.</value>
        <value type="uint64" name="Length">Length of RAW data in bytes</value>
        <value type="uint32" name="Device">Target flash device.[0,1]</value>
        <value type="string" name="SourcePath_p">Bulk id path</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref ="A1"/>
       <value ref ="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

  </group>

  <group number="03" name="File system operations" supportedcmdtype="longrunning,shortrunning">
    <documentation>
      File System Commands Group (0x03)
    </documentation>
    <interface type="loader" name="File_System_Operations"/>
    <command number="2" name="Volume Properties" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Retrieve properties of the specified file system volume
      </documentation>
      <interface type="loader" name="VolumeProperties"/>
      <input>
        <value type="string" name="DevicePath_p">Path of file system volume</value>
      </input>
      <output>
        <value type="string" name="FS_Type_p">File system type</value>
        <value type="uint64" name="Size">Total size of the file system (in bytes)</value>
        <value type="uint64" name="Free">Available space (in bytes)</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Format Volume" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Formats an unmounted file system volume. This operation fails if the volume is currently in use.
      </documentation>

      <interface type="loader" name="FormatVolume"/>
      <input>
        <value type="string" name="DevicePath_p">Device path of the file system volume</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="List Directory" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        List files and directories residing in a specified path
      </documentation>
      <interface type="loader" name="ListDirectory"/>
      <input>
        <value type="string" name="Path_p">File system path</value>
      </input>
      <output>
        <value type="uint32" name="EntriesCount">Number of directory entries</value>
        <value type="DirEntry" name="Entries" length="EntriesCount">Name and Size of file or directory, Mode as indicator if it is file or directory, Time of last modification</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="Move File" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Moves or renames a file.
      </documentation>
      <interface type="loader" name="MoveFile"/>
      <input>
        <value type="string" name="SourcePath_p">File system path (source)</value>
        <value type="string" name="DestinationPath_p">File system path (destination)</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="6" name="Delete File" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Deletes the specified file or directory. The Loader will only delete empty directories.
      </documentation>
      <interface type="loader" name="DeleteFile"/>
      <input>
        <value type="string" name="TargetPath_p">File system path</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="7" name="Copy File" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Copies a file from the PC to the ME, between two directories or file systems on the ME or from the ME to the PC.
      </documentation>
      <interface type="loader" name="CopyFile"/>
      <input>
        <value type="string" name="SourcePath_p">File system or bulk id path (source)</value>
        <value type="string" name="DestinationPath_p">File system or bulk id path (destination)</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="8" name="Create Directory" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Creates a directory
      </documentation>
      <interface type="loader" name="CreateDirectory"/>
      <input>
        <value type="string" name="TargetPath_p">File system path</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="9" name="Properties (Stat)" ADbg="false" source="PC,ME" supportedcmdtype="longrunning">
      <documentation>
        Retrieves the properties of a file or directory
      </documentation>
      <interface type="loader" name="Properties"/>
      <input>
        <value type="string" name="TargetPath_p">File system path</value>
      </input>
      <output>
        <value type="uint32" name="Mode">File Type and Access restrictions descriptor (see 5.1)</value>
        <value type="uint64" name="Size">File size in bytes</value>
        <value type="uint32" name="MTime">Last modification time stamp</value>
        <value type="uint32" name="ATime">Last access time stamp</value>
        <value type="uint32" name="CTime">Creation time stamp</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
        <value ref="A1"/>
        <value ref="CA"/>
      </authentication>
      <permissions>
        <value ref="ServiceModeLevel"/>
        <value ref="FlashModeLevel"/>
        <value ref="AdvanceServiceModeLevel"/>
        <value ref="ProductionModeLevel"/>
        <value ref="LimitedProductionModeLevel"/>
        <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="10" name="Change Access (Chmod)" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Changes the access permissions of a path
      </documentation>
      <interface type="loader" name="ChangeAccess"/>
      <input>
        <value type="string" name="TargetPath_p">File system path</value>
        <value type="uint32" name="Access">New access permissions</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="11" name="Read Load Modules Manifests" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Read all manifests in elf files and send it to PC
      </documentation>
      <interface type="loader" name="ReadLoadModulesManifests"/>
      <input>
        <value type="string" name="TargetPath_p">File system path</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

  </group>

  <group number="04" name="OTP" supportedcmdtype="longrunning,shortrunning">
    <documentation>
      OTP handling commands Group (0x04)
    </documentation>
    <interface type="loader" name="OTP"/>

    <command number="1" name="Read Bits" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Reads the specified bits from the OTP
      </documentation>
      <interface type="loader" name="ReadBits"/>
      <input>
        <value type="uint32" name="OTP_id">Indicates which OTP memory is to be read</value>
        <value type="uint32" name="Start">Starting offset in bits</value>
        <value type="uint32" name="Length">Length of read in bits</value>
      </input>
      <output>
        <value type="uint32" name="BitsLength">Length of read bits</value>
        <value type="uint32" name="DataBitsLength">Length of the DataBits buffer</value>
        <value type="buffer" name="DataBits_p" length="DataBitsLength">A left-adjusted buffer of the read data. Padded with zeroes. Length of returned value (in bytes), equal to floor((Length + 7) / 8). </value>
        <value type="uint32" name="LockStatusBitsLength">Length of the LockStatus of read bits</value>
        <value type="uint32" name="LockStatusLength">Length of the LockStatus buffer</value>
        <value type="buffer" name="LockStatus_p" length="LockStatusLength">A left-adjusted buffer of the lock status of each read bit. Padded with zeroes. Length of returned value (in bytes), equal to floor((Length + 7) / 8). </value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="2" name="Set Bits" flagbitsset="trueset" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Writes and locks the specified bits in the OTP
      </documentation>
      <interface type="loader" name="SetBits"/>
      <input>
        <value type="uint32" name="OTP_id">Indicates which OTP memory is to be read</value>
        <value type="uint32" name="Start">Starting offset in bits</value>
        <value type="uint32" name="BitsLength">Length of write in bits</value>
        <value type="uint32" name="DataBitsLength">Length of DataBits buffer</value>
        <value type="buffer" name="DataBits_p" length="DataBitsLength">Left-adjusted byte buffer containing the data to be written. Only Length bits will be written.</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Write and Lock OTP" flagbitsset="trueset" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Writes and locks the specified bits in the OTP
      </documentation>
      <interface type="loader" name="WriteAndLock"/>
      <input>
        <value type="uint32" name="OTP_id">Indicates which OTP memory is to be written and locked</value>
        <value type="uint32" name="ForceWrite">If = 0 - Write only complete lockable areas. If != 0 Write complete lockable areas even if not all bit are received in cache. </value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>
    
    <command number="4" name="Store Secure Object" flagbitsset="trueset" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Installs Secure objects into OTP or Flash
      </documentation>
      <interface type="loader" name="StoreSecureObject"/>
      <input>
        <value type="string" name="SourcePath">File system or bulk id path</value>
        <value type="uint32" name="SecureObjectDestination">Secure Object destination address</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

  </group>

  <group number="05" name="Parameter Storage" supportedcmdtype="longrunning,shortrunning">
    <documentation>
      Parameter Storage Commands Group (0x05)
    </documentation>
    <interface type="loader" name="ParameterStorage"/>

    <command number="1" name="Read Global Data Unit" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Reads the specified unit from Global Data area
      </documentation>
      <interface type="loader" name="ReadGlobalDataUnit"/>
      <input>
        <value type="string" name="DevicePath_p">GD storage area to read from (gdfs, trim area)</value>
        <value type="uint32" name="Unit_id">Unit id to read</value>
      </input>
      <output>
        <value type="uint32" name="DataBuffLength">Length of the Data buffer</value>
        <value type="buffer" name="DataBuff_p" length="DataBuffLength">The read data</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="2" name="Write Global Data Unit" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Writes the specified unit to Global Data area
      </documentation>
      <interface type="loader" name="WriteGlobalDataUnit"/>
      <input>
        <value type="string" name="DevicePath_p">GD storage area to write to (gdfs, trim area)</value>
        <value type="uint32" name="Unit_id">Unit id to write</value>
        <value type="uint32" name="DataBuffLength">Length of the Data buffer</value>
        <value type="buffer" name="DataBuff_p" length="DataBuffLength">The data to write</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Read Global Data Set" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Reads a complete Global Data area
      </documentation>
      <interface type="loader" name="ReadGlobalDataSet"/>
      <input>
        <value type="string" name="DevicePath_p">GD storage area to read (gdfs, trim area)</value>
        <value type="string" name="TargetPath_p">File system or bulk id path indicating the destination of the read operation</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="Write Global Data Set" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Writes a complete Global Data area
      </documentation>
      <interface type="loader" name="WriteGlobalDataSet"/>
      <input>
        <value type="string" name="DevicePath_p">GD storage area to write (gdfs, trim area)</value>
        <value type="uint64" name="DataLength">Data Length when is used bulk transfer </value>
        <value type="string" name="SourcePath_p">File system or bulk id path indicating the source of the write operation</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="Erase Global Data Set" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Erases a complete Global Data area
      </documentation>
      <interface type="loader" name="EraseGlobalDataSet"/>
      <input>
        <value type="string" name="DevicePath_p">GD storage area to erase (gdfs, trim area)</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

  </group>

  <group number="06" name="Security" supportedcmdtype="longrunning,shortrunning">
    <documentation>
      Security settings Commands Group (0x06)
    </documentation>
    <interface type="loader" name="Security"/>

    <command number="1" name="Set Domain" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Set the ME domain
      </documentation>
      <interface type="loader" name="SetDomain"/>
      <input>
        <value type="uint32" name="Domain">Target domain</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="2" name="Get Domain" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Get the ME domain
      </documentation>
      <interface type="loader" name="GetDomain"/>
      <input>
      </input>
      <output>
        <value type="uint32" name="CurrentDomain">The ME Domain</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Get Properties" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Reads a security data unit (such as a secure static or dynamic data unit)
      </documentation>
      <interface type="loader" name="GetProperties"/>
      <input>
        <value type="uint32" name="Unit_id">Unit id to read</value>
      </input>
      <output>
        <value type="uint32" name="DataBuffLength">Length of the Data buffer</value>
        <value type="buffer" name="DataBuff_p" length="DataBuffLength">The unit data</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="Set Properties" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Writes a security data unit (such as a secure static or dynamic data unit)
      </documentation>
      <interface type="loader" name="SetProperties"/>
      <input>
        <value type="uint32" name="Unit_id">Unit id to write</value>
        <value type="uint32" name="DataBuffLength">Length of the Data buffer</value>
        <value type="buffer" name="DataBuff_p" length="DataBuffLength">The data to write</value>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="Bind Properties" ADbg="false" source="PC" supportedcmdtype="longrunning">
      <documentation>
        Associates all security data units with the current ME
      </documentation>
      <interface type="loader" name="BindProperties"/>
      <input>
      </input>
      <output>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
      </permissions>
    </command>

  </group>

  <group number="08" name="ADbg application" supportedcmdtype="shortrunning">
    <documentation>
      ADbg test suite (automatic test tool)
    </documentation>

    <interface type="loader" name="ADbg"/>

    <command number="1" name="List all modules, test cases and its parameters " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="ListCase"/>
      <documentation>
        List all modules, test cases and its parameters
      </documentation>
      <input>
      </input>
      <output>
        <value type="uint32" name="CmdDataLength"/>
        <value type="buffer" name="CmdDataPayLoad_p" length="CmdDataLength">CmdData</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="2" name="List all modules, interface groups, interface functions and its parameters " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="ListInterface"/>
      <documentation>
        List all modules, interface groups, interface functions and its parameters
      </documentation>
      <input>
      </input>
      <output>
        <value type="uint32" name="CmdDataLength"/>
        <value type="buffer" name="CmdDataPayLoad_p" length="CmdDataLength">CmdData</value>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="3" name="Set test case precondition " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="SetPrecondition"/>
      <documentation>
        Set test case precondition
      </documentation>
      <input>
        <value type="uint32" name="ModuleId">ModuleId</value>
        <value type="uint32" name="IntGroupId">IntGroupId</value>
        <value type="uint32" name="IntFunctionId">IntFunctionId</value>
        <value type="uint32" name="RecoveryFlag">RecoveryFlag</value>
        <value type="uint32" name="PreconditionLength"/>
        <value type="buffer" name="Precondition_p" length="PreconditionLength">Precondition_p</value>
      </input>
      <output>


      </output>
     <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="4" name="Recovery test case condition " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="RecoveryCondition"/>
      <documentation>
        Recovery test case condition
      </documentation>
      <input>
        <value type="uint32" name="ModuleId">ModuleId</value>
        <value type="uint32" name="IntGroupId">IntGroupId</value>
        <value type="uint32" name="IntFunctionId">IntFunctionId</value>
      </input>
      <output>


      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>

    <command number="5" name="Run test case " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="Run"/>
      <documentation>
        Run test case
      </documentation>
      <input>
        <value type="uint32" name="ModuleId">ModuleId</value>
        <value type="uint32" name="CaseId">CaseId</value>
        <value type="uint32" name="PreconditionLength"/>
        <value type="buffer" name="Precondition_p" length="PreconditionLength">Precondition_p</value>
      </input>
      <output>
        <value type="uint32" name="AssertStatus"/>

      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>
      </permissions>
    </command>
    
    <command number="6" name="Protocol test case " flag="true" ADbg="true" source="PC">
      <interface type="loader" name="ProtocolTest"/>
      <documentation>
        Protocol test case
      </documentation>
      <input>
        <value type="uint32" name="NrOfRetransmission">NrOfRetransmission</value>
        <value type="uint32" name="Type">Type</value>
      </input>
      <output>
        <value type="uint32" name="ProtocolTestStatus"/>
      </output>
      <authentication depandancy="or" factory="TRUE" rd="TRUE" product="TRUE" service="TRUE">
       <value ref="A1"/>
       <value ref="CA"/>
      </authentication>
      <permissions>
       <value ref="ServiceModeLevel"/>
       <value ref="FlashModeLevel"/>
       <value ref="AdvanceServiceModeLevel"/>
       <value ref="ProductionModeLevel"/>
       <value ref="LimitedProductionModeLevel"/>
       <value ref="VeryLimitedProductionModeLevel"/>       
      </permissions>
    </command>

  </group>
</commandspec>