0

Messages from Thin Client to Standard Client

asked 2014-07-31 08:35:07 -0800

AllJoyner gravatar image

Hello,

I have the AJSCL app running on Android phone and AJTCL running on embedded device. I have been able to pass messages from the phone to the embedded device and get back the requested information.

My question now is, is it possible to get information from AJTCL app automatically (for example when input has changed) without me requesting it from the phone?

I know I could implement Notification Service framework and then send notifications to the phone when such events happen on the AJTCL side, but I was wondering if it is possible to do it in any other way.

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-31 10:18:50 -0800

mitchw gravatar image

It sounds like you've been using an AllJoyn BusMethod to make a synchronous call from the AJSCL app running on the Android phone to the AJTCL app running on the embedded device to retrieve some data.

Since you already have an AllJoyn session established between the two applications, you could use an AllJoyn Signal to 'push' an update/data from the embedded app to the Android app. AllJoyn Signals are asynchronous and one way. In order to achieve this, you would need to modify the AllJoyn interface spec that you are using between your two applications to add one or more signals that you want to send. You would then need code on the AJTCL app to emit the signal, and code on the AJSCL app to handle the signal.

edit flag offensive delete publish link more

Comments

Thanks for the answer Mitch! You are right, i am using BusMethod. Is there any examples I could use as a reference? I know I would have to use @BusSignal in the interface spec and I know how to code ajscl app but I am not really certain how to go about coding ajtcl app to do that. Thanks again.

AllJoyner ( 2014-07-31 10:44:19 -0800 )edit

Take a look at the 'signal service' thin library sample: https://git.allseenalliance.org/cgit/core/ajtcl.git/tree/samples/basic/signal_service.c

mitchw ( 2014-07-31 15:36:02 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-07-31 08:35:07 -0800

Seen: 72 times

Last updated: Jul 31 '14