//Verison=2.2
//Example,Don't Delete flowing text!
//Button NIMI // Generator NIMI 
//Button NIMI 100 // Generator NIMI and Delay 100ms, 100 not is nessary
//Button INT0 // Generator INT0 and Delay 200ms
//Button RESETAMBE3000
//Button RESET3252
//Send 1 command, Receive 2 response with one is not verify.
//Command ID: CARRIER_LOST // necessary!
//Summary  // not essential, 
//Send command: 61 00 02 00 19 00 // necessary!
//Pause=300 // not essential, unit: ms; Pause 300ms after Send command
//Timeout=100 // not essential, unit: ms; if not receive '84 A9 61 ...' in 100ms after send command, Timeout error will happen!
//*Receive Data: 61 00 02 51 19 00 // not essential, receive but not verify
//Receive Data: 61 00 02 51 19 20 // not essential, receive and verify 
//.Set x = AA B0  -- Define var x ; Added in ver2.2
// ... 61 00 02 00 19 {x}   --- use the defined var, The {x} will be replaced with AA B0 
//

//3918support   /* 0001:voice LC header*//* 1001:idle*//* 0010:Terminatior with LC*/
// /* 0110:data header*//* 0111:rate1/2data*//* 0011:csbk*/
//
.Set READY_VAR = 01

Command ID:	DMR_CC
Send	Command: 84 A9 61 00 02 05 77 0d
Receive	Data:84 A9 61 00 02 05 77 00
//Command ID:	DMR_CALL_OPTION for 3918 controlled RF
//Send	Command: 84 A9 61 00 06 05 79 c1 00 00 00 00 
Command ID:	DMR_CALL_OPTION
Send	Command: 84 A9 61 00 06 05 79 81 00 00 00 00 
Receive	Data:84 A9 61 00 02 05 79 00
Pause 1000
Command ID:	WORK_MODE_TX
Send	Command: 84 A9 61 00 04 00 18 03 00 00 00
Receive	Data:84 A9 61 00 02 00 18 00
Command ID:	PROCESS_MODE
Send	Command: 84 A9 61 00 02 00 1A 02
Receive	Data:84 A9 61 00 02 00 1A 00
Command ID:	DMR_CC
Send	Command: 84 A9 61 00 02 05 77 0d
Receive	Data:84 A9 61 00 02 05 77 00
Command ID:	DMR_FLC
Send	Command: 84 A9 61 00 04 05 76 01 23 45
Receive	Data:84 A9 61 00 02 05 76 00
Command ID:	REPORT_FIELD
Send	Command: 84 A9 61 00 02 00 1D ff
////Send	Command: 84 A9 61 00 02 00 1D 00
Receive	Command:84 A9 61 00 02 00 1D 00
Command ID: DPMR_CALLED_ID
Send command: 84 A9 61 00 05 05 7d  01 23 45 67
Receive Data: 84 A9 61 00 02 05 7d 00
Command ID:	OWNID_BCD
Send	Command: 84 A9 61 00 05 05 7e 01 23 45 67 
Receive	Data:84 A9 61 00 02 05 7e 00



Command ID:	DMR_CARRIER_READY
Send	Command: 84 A9 61 00 02 03 19 {READY_VAR}
Receive	Data:84 A9 61 00 02 03 19 00
Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0c 05 43 01 09 00 00 00 FF FF FF 00 00 01
Receive	Command:84 A9 61 00 01 20 43 
Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0c 05 43 11 09 00 00 00 FF FF FF 00 00 01
Receive	Command:84 A9 61 00 01 20 43 

Receive	Data:84 A9 61 00 02 30 7F 00
Receive	Data:84 A9 61 00 0E 30 77 0D 43 01 09 00 00 00 FF FF FF 00 00 01
Receive	Data:84 A9 61 00 0E 30 77 0D 43 11 09 00 00 00 FF FF FF 00 00 01
PAUSE 2000

Command ID:	READ_DMR_FLC
Send	Command: 84 A9 61 00 01 25 76
Receive	Data:84 A9 61 00 04 25 76 00 00 00
Command ID:	RFAR_DMR_FLC
Send	Command: 84 A9 61 00 01 35 76
Receive	Data:84 A9 61 00 04 35 76 00 00 00
Command ID:	READ_DMR_CC
Send	Command: 84 A9 61 00 01 25 77
Receive	Data:84 A9 61 00 02 25 77 0d
Command ID:	RFAR_DMR_CC
Send	Command: 84 A9 61 00 01 35 77
Receive	Data:84 A9 61 00 02 35 77 0d

Command ID: DPMR_CALLED_ID
Send command: 84 A9 61 00 01 25 7d 
Receive Data: 84 A9 61 00 05 25 7d 01 23 45 67 
Command ID: DPMR_CALLED_ID
Send command: 84 A9 61 00 01 35 7d 
Receive Data: 84 A9 61 00 05 35 7d 00 00 00 00
Command ID:	OWNID_BCD
Send	Command: 84 A9 61 00 01 25 7e
Receive	Data:84 A9 61 00 05 25 7e 01 23 45 67 
Command ID:	OWNID_BCD
Send	Command: 84 A9 61 00 01 35 7e
Receive	Data:84 A9 61 00 05 35 7e 00 00 00 00

Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0c 05 43 02 09 00 00 00 FF FF FF 00 00 01
Receive	Command:84 A9 61 00 01 20 43 
Receive	Data:84 A9 61 00 02 20 17 0A
Receive	Data:84 A9 61 00 0E 30 77 0D 43 02 09 00 00 00 FF FF FF 00 00 01
PAUSE 1000
Command ID: CARRIER_LOSE
Send command: 84 A9 61 00 02 00 19 00
Receive Data: 84 A9 61 00 02 00 19 00



Command ID:	DMR_CARRIER_READY
Send	Command: 84 A9 61 00 02 03 19 {READY_VAR}
Receive	Data:84 A9 61 00 02 03 19 00

Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0d 05 43 06 0A 82 44 01 02 03 01 01 01 84 00
Receive	Command:84 A9 61 00 01 20 43 

Command ID:	DPMR_DATA_FRAME            1/2 _data_n
Send	Command: 84 A9 61 00 0F 05 43 07 0C 45 0A 0A 28 0A 0A 0A 0A 40 11 8D C3
Receive	Command:84 A9 61 00 01 20 43 

Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0F 05 43 07 0C 0C 0A 0A 01 E1 0A 0A 01 0A 0A 0A 0A
Receive	Data:84 A9 61 00 02 30 7F 00
Receive	Data:84 A9 61 00 0F 30 77 0D 43 06 0A 82 44 01 02 03 01 01 01 84 00
Receive	Command:84 A9 61 00 01 20 43 

Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0F 05 43 07 0C 00 14 7F 66 00 0A A0 00 8C 04 0D 00
Receive	Data:84 A9 61 00 11 30 77 0D 43 07 0C 45 0A 0A 28 0A 0A 0A 0A 40 11 8D C3
Receive	Command:84 A9 61 00 01 20 43 

Command ID:	DPMR_DATA_FRAME
Send	Command: 84 A9 61 00 0F 05 43 07 0c 0A 00 31 0A 0A 0A 0A 0A 0A 0A 0A 0A

Receive	Data:84 A9 61 00 11 30 77 0D 43 07 0C 0C 0A 0A 01 E1 0A 0A 01 0A 0A 0A 0A
Receive	Command:84 A9 61 00 01 20 43 
Receive	Data:84 A9 61 00 11 30 77 0D 43 07 0C 00 14 7F 66 00 0A A0 00 8C 04 0D 00
Receive	Data:84 A9 61 00 02 20 17 0A


Command ID:	DMR_CARRIER_LOST
Send	Command: 84 A9 61 00 02 03 19 00
Receive	Data:84 A9 61 00 11 30 77 0D 43 07 0C 0A 00 31 0A 0A 0A 0A 0A 30 7D DC 05
Receive	Data:84 A9 61 00 02 03 19 00