0

How to connect to an AllJoyn device using AllJoyn SDK for java?

asked 2015-05-25 01:05:00 -0700

anonymous user

Anonymous

updated 2015-05-25 01:05:52 -0700

Hi,

I am trying to connect to an alljoyn device with alljoyn-15.04.00-win7x64vs2013-sdk running on eclipse. I downloaded SDK and imported the java samples into eclipse. And then I find out that I do not know which sample I should run and how to set it. I want it to scan and connect to my alljoyn device, PowerTech APPSTRIGGER Smart Plug. Please give me some suggestions, thanks.

Regards

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-06-01 04:55:10 -0700

julianbros gravatar image

In my opinion you have to determine the right interface for the smart plug. AllJoyn devices can pair using their announcements or advertisements. This happens using specific interface descriptions.

So if you know the interface of the smart plug you can shout in your network using .whoImplements(..) and you'll get an answer.

This post is my personal point of view. Please hit me, if I misunderstood something! :-)

edit flag offensive delete publish link more

Comments

https://ask.allseenalliance.org/question/1447/find-all-alljoyn-services-exposed-in-a-local-network/ should also help!

julianbros ( 2015-06-02 00:51:24 -0700 )edit
0

answered 2015-06-02 00:28:19 -0700

mayo gravatar image

In addition to julianbros: Use Wireshark (filter:aj&&ajns) to determine what interfaces/objects are announced by your smart plug. Next step then is playing around with the modified (interface and object names) JavaSDKDocAboutClient. That way helped me getting started with my devices having unknown interfaces.

edit flag offensive delete publish link more
0

answered 2015-06-15 17:38:06 -0700

earlenceferns gravatar image

Did you manage to enumerate the interfaces of your Appstrigger device? If so, could you please list them here?

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-25 01:05:00 -0700

Seen: 490 times

Last updated: Jun 15 '15