Audio samples not embedding the AllJoyn daemon

asked 2014-09-15 06:47:13 -0700

germanviscuso gravatar image


I'm successfully compiling the audio samples with BR=on (on a Raspberry Pi with Raspbian) but the SinkService fails to run if I don't run alljoyn-daemon independently.

I use this lince to compile the audio service:

scons OS=linux CPU=arm WS=fix BR=on SERVICES=about,audio BUILD_SERVICES_SAMPLES=on VARIANT=release BINDINGS=core,cpp OE_BASE=/usr

And when I run the SinkService (with no independent daemon) I get:

ERROR ALLJOYN external     ....BusAttachment.cc:512
Failed to connect to "unix:abstract=alljoyn"

If I run the daemon independently then the SinkService runs fine and accepts connections.

Any ideas why the alljoyn daemon is not being embedded in the SinkService? (I want to run the service as an independent daemon so I prefer not to run the alljoyn daemon separately)


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-15 11:49:49 -0700

Nikhil Dabhade gravatar image

Hi germanviscuso,

The line that you seeing as error

ERROR ALLJOYN external     ....BusAttachment.cc:512
Failed to connect to "unix:abstract=alljoyn"

implies that the bus attachment first tried to connect to a standalone routing node which is why it shows "unix:abstract=alljoyn" If it does not find one then it tries to connect to "null:" which should succeed if you had BR=on while building which seems to be true in your case. I would suggest trying and running the SinkService even if it gives you that error since it would have connected to "null:" which is the Null Transport. Give it a try and let me know how it goes.


edit flag offensive delete publish link more


Thanks a lot for answering, but the SinkService exits with error (echo $? returns 93) so it's effectively not running...

germanviscuso ( 2014-09-15 12:25:59 -0700 )edit

Can you post more logs ? Are there other errors indicated in the logs apart from the one you mentioned ?

Nikhil Dabhade ( 2014-09-16 11:22:40 -0700 )edit

Hi. I compiled the SinkService in debug variant but that's all I get, there's no more info to see what the problem could be. Only error code 93. Maybe the SinkService sample is not really prepared to include an embedded daemon? Is that possible?

germanviscuso ( 2014-09-17 09:27:03 -0700 )edit

BTW source is here: https://git.allseenalliance.org/cgit/multimedia/audio.git/tree/samples/posix/SinkService.cc?h=HEAD Looks like it will only try to connect to unix:abstract=alljoyn

germanviscuso ( 2014-09-17 09:33:28 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-09-15 06:47:13 -0700

Seen: 262 times

Last updated: Sep 15 '14