         data.append(UnsafeBufferPointer(start: &transSession, count: transSession.count))
         
         socketCommand?.write(data, withTimeout:100, tag:0)
-        socketCommand?.readData(withTimeout:100, tag:0)
+        socketCommand?.readData(withTimeout:1000, tag:0)
     }
 }
 

        }
        else
        {
            let arr2 = data.withUnsafeBytes {
                Array(UnsafeBufferPointer<UInt32>(start: $0, count: data.count/MemoryLayout<UInt32>.size))
            }
            
            print(arr2)
        }
    }
    

        var code:UInt16 = 4098 //ptpip_cmd_code
        let type:UInt32 = 6 // PTPIP_CMD_REQUEST
        let dataPhase:UInt32 = 1//ptpip_cmd_dataphase
        let tranId:UInt32 = 1//ptpip_cmd_transid
        let par1:UInt32 = 0//ptpip_cmd_param1, session id, 0 to connect
        
        var request:[UInt32] = [22,type,dataPhase]
        var transSession:[UInt32] = [tranId, par1]
        
        var data = Data(buffer: UnsafeBufferPointer(start: &request, count: request.count))
