Communicating device information

asked 2015-07-07 08:23:41 -0700

boxwood gravatar image

updated 2015-07-07 10:28:15 -0700

Is there a good way to use AllJoyn to gather information on connected devices?

Say I had a Service running and I wanted to see the X number of devices that are connected to it. Is there already some documentation that covers how to do this? Or a place in one of the sample programs that shows it off that I can look to?

To elaborate... I currently have the sample Service (on one device) and Client (on multiple devices) Android applications running. What if I wanted the Service to store information on the X number of devices it has connected to it (with some info on them like ID, device type, time joined, etc.)? Maybe this stuff is already communicated through the bus or the bus can be easily expanded to communicate such information?

I'm just hoping someone can help illuminate the best strategy here before I dive into something silly. I'm honestly not sure what to do but hoping to learn. : )

Thanks for your time, whoever may be reading.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-07-08 03:04:14 -0700

trandatnh gravatar image

You can get the information like

  • AppId
  • DefaultLanguage
  • DeviceName
  • ...

by calling GetAboutData which is implemented in ABOUT FEATURE INTERFACE

For the time joined, you have to program yourself in your client or server code. You can save the current time when you receive an Announcement message from another device.

edit flag offensive delete publish link more


Do you know if about announcements were used in the Simple example apps? Or if there is a strong example that does use the about interface?

boxwood ( 2015-07-10 10:49:12 -0700 )edit

You can check the ConfigService sample

trandatnh ( 2015-07-13 02:56:02 -0700 )edit

I'm really confused about how to use the GetAboutData and how to implemented the org.alljoyn.about interface. I looked at the samples for guidance but I didn't understand where or how to approach calling GetAboutData.

boxwood ( 2015-07-14 17:01:29 -0700 )edit

You don't have to re-implement the org.alljoyn.about interface. Tell me which version of Alljoyn you are using and in which language, I can look for you.

trandatnh ( 2015-07-16 02:26:18 -0700 )edit

I'm using the latest version of AllJoyn with Java.

boxwood ( 2015-07-16 08:25:17 -0700 )edit

answered 2015-07-09 01:55:00 -0700

julianbros gravatar image

In addition to the about data. I'd try to store the connected devices in a list. The current connected devices are equal to the size of the list. By iterating through the list you can easily call and get the AboutData for each device which is currently talking with your server.

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

Question Tools

1 follower


Asked: 2015-07-07 08:23:41 -0700

Seen: 54 times

Last updated: Jul 09 '15