             print("code: \(arrCode) par:\(arrParameter)")
             
             connected?.eventReadDataConnection()
+        }
+        else if step == 2
+        {
+            step = 3
+            
+            let header = data.withUnsafeBytes {
+                
+                Array(UnsafeBufferPointer<UInt32>(start: $0, count: 4))
+            }
+            
+            //[size:14, response:9 // PTPIP_START_DATA_PACKET, transactionId:2, payload]
+            
+            print("header:\(header)")
         }
     }
     

            
            connected?.commandAckRead()
        }
        else
        {
            let header = data.withUnsafeBytes {
                
                Array(UnsafeBufferPointer<UInt32>(start: $0, count: 2))

    func socket(_ sock: GCDAsyncSocket, didRead data: Data, withTag tag: Int) {
        print("command did read")
        
        if step == 0
        {
            step = 1
            
            if data.count != 12
            {
