[Qt-interest] the Data transfered by D-Bus in Qt error?

ying.cheng ying.cheng at sseec.com.cn
Thu Sep 16 02:41:04 CEST 2010


hi,
Please refer to the following content:

//////////////////////A
tmpDeviceInfo.iChannel = 1
tmpDeviceInfo.iDeviceName = 1493172224
tmpDeviceInfo.iDeviceNumber = 0
tmpDeviceInfo.iStationID = 0
tmpDeviceInfo.iType = 1
tmpDeviceInfo.iValue = 68
tmpDeviceInfo.iCount = 1
tmpDeviceInfo.iBit = 0
//////////////////////A

//////////////////////B
method call sender=:1.4 -> dest=com.trolltech serial=9 path=/Com; interface=loca
l.Com; member=getDeviceData
   struct {
      byte 1
      byte 0
      byte 1
      uint16 1
      uint16 0
      uint32 1493172224
      uint32 0
      uint32 68
   }
///////////////////B

///////////////////C
getDeviceData

devInfomation.iChannel = 1
devInfomation.iDeviceName = 89
devInfomation.iDeviceNumber = 17408
devInfomation.iStationID = 0
devInfomation.iType = 1
devInfomation.iValue = 6144
devInfomation.iCount = 0
devInfomation.iBit = 0
/////////////////////C

/////////////////////D
method return sender=:1.3 -> dest=:1.4 reply_serial=9
   array [
      string "error"
   ]
/////////////////////D

explanation about above content:
1.Part A is the content printf in the Process A before transfer;
2.Part B and Part D are the content the dbus-monitor says when transfering;
3.Part C is the content printf in the Process B after transfer. getDeviceData is the name of the method that the Process B provided.
4.if the getDeviceData failed in handling data, it will return "error". 


Thanks very much for any advice!








-----------------
Best Regards & Sincere Appreciation




More information about the Qt-interest-old mailing list