0

Session establishment problem - more than 2 AllJoyn devices

asked 2014-08-27 08:16:29 -0700

AllJoyner gravatar image

Hey everyone,

I have a question regarding joining a session with multiple devices. Right now it works, but not really the way I want.

So, I have an AJTC app which has AJ_StartService() and is joined by Android device (which advertises the well-known name supplied on the AJTC). In this case scenario it works fine, but i have trouble when more than one Android device joins the session. What happens is, as soon as any one of the "joiners" leaves the session, every other device starts re-joining the session.

Also, I have noticed that it takes quite a while for other devices to establish connection again once one of them leaves.

So, what I want is to have multiple users (10-15) to use this app to control the AJTC device, but I definitely don't wanna have everyone's device re-connect when one of them closes the app. If you could tell me what would be the best way to go about this it would be really appreciated!

PS.: Side question; If i want AJTC device to send signal to all users at the same time would it be better to use sessionless or regular signals or it doesn't matter?

Thanks in advance!

edit retag flag offensive close merge delete

Comments

Hi AllJoyner, I may need just a bit more clarification on this one. Does the AJTC app use the routing node of the first joiner ? If that is the case then what you are saying is possible since the routing node to which everyone and the AJTC is connected in a session left.

Nikhil Dabhade ( 2014-08-27 10:43:13 -0700 )edit

Hey Nikhil, thanks for the respose. Yes i think so, but it does not happen only when a routing node leaves the session but when any other node does too Thanks.

AllJoyner ( 2014-08-27 10:49:40 -0700 )edit

Update: I was able to fix the main problem i was having by adding the same SessionOpts to both AJTC and AJSC app and setting isMultipoint = true. Now it is only re-joining session when a first joiner leaves. I hope this is the right way!?

AllJoyner ( 2014-08-27 12:57:18 -0700 )edit

Now, is there any way to fix it so when the first joiner leaves others don't have to join session again? Also joining session is still kinda slow. Thank you.

AllJoyner ( 2014-08-27 12:57:52 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-27 14:26:57 -0700

Nikhil Dabhade gravatar image

Hi AllJoyner,

After getting clarification on your problem the solution is two part. Part one is indeed setting the same session opts for the AJTC and the AJSC app. For part two, the AJTC app seems to be joining the routing node of the first joiner. It explains why all the others try and rejoin the session which the routing node of the AJTC was hosting. The only way to ensure that all others don't rejoin the session when the first joiner leaves is to have the AJTC app connect to a routing node other than that of the first or any other joiner. I do not know your intended setup but if possible you can have the AJTC app connect to a routing node running on an OpenWRT router which will ensure that its routing node is running all the time. If this is not an intended commercial setup then even a routing node running on a desktop machine or a device would suffice. The gist is to not have the service rely on a routing node of any joiner.

Hope that helps. Let me know if you have more questions.

Nikhil

edit flag offensive delete publish link more

Comments

Thanks for confirmation, that's exactly what i was thinking. Now, would you be able to explain me the following: 1. How to setup and run AllJoyn on OpenWRT router 2. What exactly do I need to do to have routing node running on a desktop computer. Thanks for help!

AllJoyner ( 2014-08-28 07:38:22 -0700 )edit

My indented setup is to have one AJTC device always available to multiple clients who can control it and receive msgs from it. So one thing you haven't answered in my original question, is it better for AJTC to send sessionless or regular signals to all users at the same time or it does not matter?

AllJoyner ( 2014-08-28 07:41:14 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-08-27 08:16:29 -0700

Seen: 524 times

Last updated: Aug 27 '14