     func eventReadDataConnection()
     {
         connect?.stopBroadcast()
+        
+        
+        var code:UInt16 = 38161 //PTP_OC_VITA_GetVitaInfo
+        let type:UInt32 = 6 // PTPIP_CMD_REQUEST
+        let dataPhase:UInt32 = 1//ptpip_cmd_dataphase
+        let tranId:UInt32 = 2//ptpip_cmd_transid
+        
+        var request:[UInt32] = [22,type,dataPhase]
+        var trans:[UInt32] = [tranId]
+        
+        var data = Data(buffer: UnsafeBufferPointer(start: &request, count: request.count))
+        
+        data.append(UnsafeBufferPointer(start:&code, count:1))
+        data.append(UnsafeBufferPointer(start: &trans, count: trans.count))
+        
+        socketCommand?.write(data, withTimeout:100, tag:0)
+        socketCommand?.readData(withTimeout:1000, tag:0)
     }
 }
 
 class SocketCommandDelegate:NSObject, GCDAsyncSocketDelegate
 {
-    var first:Bool = true
+    var step:Int = 0
     weak var connected:MConnectConnected?
     
     func socketDidCloseReadStream(_ sock: GCDAsyncSocket) {

            print("code: \(arrCode) par:\(arrParameter)")
            
            connected?.eventReadDataConnection()
        }
    }
    

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