how can I interpret and use the interface got from the service node

asked 2015-04-09 08:02:25 -0700

bling gravatar image

updated 2015-04-12 17:57:22 -0700

If I have got the About Announcement successfully, how can I use it? It seems that there are at least two methods to get the interface mentioned in https://ask.allseenalliance.org/question/1656/auto-discover-devices/ . One is via the About Signal and the other is via the introspection. I get the interface via the About announcement as follow:
/Notification
org.alljoyn.Notification

If I get the interface, how to use it? Can I know how many parameter and the type of the interface?

The About Announcement which I got by the Aboutlistener.exe are as follow:

BusAttachment started.
BusAttachment connect succeeded.
WhoImplements NULL called.
*************************
*
Announce signal discovered
From bus :ffRArQna.140
About version 1
SessionPort 900
ObjectDescription:
/About
org.alljoyn.About
/About/DeviceIcon
org.alljoyn.Icon
/Config
org.alljoyn.Config
/ControlPanel/SmartPlug/rootContainer
org.alljoyn.ControlPanel.ControlPanel
/Onboarding
org.alljoyn.Onboarding
/com/qualcomm/manufactory_test
com.qualcomm.manufactory_test
/com/qualcomm/ota_upgrade
com.qualcomm.ota_upgrade
/emergency
org.alljoyn.Notification
/info
org.alljoyn.Notification
/notificationProducer
org.alljoyn.Notification.Dismisser
org.alljoyn.Notification.Producer
/warning
org.alljoyn.Notification
AboutData:
Key: AppId a7 5f 17 56 c9 18 1b 56 5a ed 84 5d d7 40 59 62
Key: DefaultLanguage en
Key: DeviceId a75f1756c9181b565aed845dd7405962
Key: ModelNumber Smart Plug
Key: AppName Controlee
Key: DeviceName smart plug
Key: Manufacturer Powertech
*************************
*
busName: :ffRArQna.140
port: 900
SessionJoined sessionId = 25911905, status = ER_OK



AboutProxy.GetObjectDescription:
/About
org.alljoyn.About
/About/DeviceIcon
org.alljoyn.Icon
/Config
org.alljoyn.Config
/ControlPanel/SmartPlug/rootContainer
org.alljoyn.ControlPanel.ControlPanel
/Onboarding
org.alljoyn.Onboarding
/com/qualcomm/manufactory_test
com.qualcomm.manufactory_test
/com/qualcomm/ota_upgrade
com.qualcomm.ota_upgrade
/emergency
org.alljoyn.Notification
/info
org.alljoyn.Notification
/notificationProducer
org.alljoyn.Notification.Dismisser
org.alljoyn.Notification.Producer
/warning
org.alljoyn.Notification
*************************

AboutProxy.GetAboutData: (Default Language)
Key: AJSoftwareVersion 14.2.0 Tag "14.02.00"
Key: AppId a7 5f 17 56 c9 18 1b 56 5a ed 84 5d d7 40 59 62
Key: DateOfManufacture 2015-01-06
Key: DefaultLanguage en
Key: DeviceId a75f1756c9181b565aed845dd7405962
Key: HardwareVersion 0.0.1
Key: ModelNumber Smart Plug
Key: SoftwareVersion 0.4.7
Key: SupportUrl www.power-tech.com.tw
Key: SupportedLanguages en
Key: AppName Controlee
Key: Description PT SmartPlug
Key: DeviceName smart plug
Key: Manufacturer Powertech
Key: MaxLength User Defined Value Signature: q
*************************

AboutProxy.GetVersion 1
*************************


Thank you a lot!

edit retag flag offensive close merge delete

Comments

What is it that you actually want to do with your application? Your application needs will determine how you interact with interfaces that you find. Can you update with some details about what you would like to do once you find a device/AllJoyn application?

bspencer ( 2015-04-12 05:35:56 -0700 )edit

I can make a method call successfully now. Thank you!!

bling ( 2015-04-12 18:02:48 -0700 )edit