0

Cannot send Broadcast signal to other daemon.

asked 2014-06-24 21:05:41 -0800

congngale gravatar image

Dear all,

I'm developing an application can send and receive message on Alljoyn. If i run 2 applications on 1 alljoyn-daemon then i work correctly. When i 2 applications on 2 difference alljoyn-daemon then it can't send message to other but still found bus name of each other. I use functions signal and send by pass sessionId equal 0, i also try to send by busName but it still not working. Thanks

edit retag flag offensive close merge delete

Comments

I see that in chat application they have to join session to send broadcast message. I didn't do that, does it is the reason.

congngale ( 2014-06-24 21:47:03 -0800 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-26 10:10:02 -0800

waynelee gravatar image

You can use sessionless signals to broadcast information to all devices on the network that are listening for AllJoyn sessionless signals without manually doing a JoinSession. You can get a better idea of what to do by looking at the AllJoyn Development Guide, search for "Sessionless Signals"

edit flag offensive delete publish link more

Comments

Thank you so much, I found that i miss option sessionless='t' in matching to capture sessionless message. Thanks again.

congngale ( 2014-06-26 11:49:14 -0800 )edit
0

answered 2014-06-25 18:15:37 -0800

mitchw gravatar image

You need to have one of your apps host a session, and the other app join a session, if you're trying to use Bus Methods or Bus Signals to communicate between your two applications. The Chat sample provides an example of how to communicate between apps using a session and signals. The Basic Client/Service sample shows how to communicate between 2 apps using a session and bus methods.

If you're using a Sessionless signal to communicate, then you don't need to have a session setup.

edit flag offensive delete publish link more
0

answered 2014-06-25 19:57:39 -0800

congngale gravatar image

updated 2014-06-25 21:29:57 -0800

Thank mitchw,

I know what you say, but i looking for something more that is how to send bus signal to every applications on 2 alljoin-daemons without Joinsession. I can broadcast message to every applications in same alljoyn-daemon by using signal but it's not work with two daemons. I found a flag is ALLJOYN_MESSAGE_FLAG_GLOBAL_BROADCAST, it says "Global (bus-to-bus) broadcast" then I think that I could use it to broadcast message to other alljoyn-daemon. Why alljoyn-daemon can found application's bus name from other alljoyn-daemon but can't send broadcast message for them. I only want you help me make sure that: Can i send broadcast message to other application on other alljoyn-daemon without joinsession? Thanks.

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

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-24 21:05:41 -0800

Seen: 434 times

Last updated: Jun 26 '14