0

Notification service with Thin Library: can not connect to bus

asked 2014-09-30 07:52:35 -0700

Marina Gorshkova gravatar image

updated 2014-09-30 07:53:11 -0700

Hello,

I compiled notification service samples for linux x86. They do not work for Thin Library. I execute NotificationConsumerSample/ NotificationProducerSample from services/base_tcl/sample_apps/ServerSample/build and have errors:

Attempting to connect to bus 'org.alljoyn.BusNode' 000.000 aj_net.c:487 MCastUp4(): setsockopt(IP_ADD_MEMBERSHIP) failed. errno="No such device", status=AJ_ERR_READ 000.000 aj_net.c:539 MCastUp6(): setsockopt(IP_ADD_MEMBERSHIP) failed. errno="No such device", status=AJ_ERR_READ Failed attempt to connect to bus with status=AJ_ERR_READ, sleeping for 2 seconds

I run ./alljoyn-daemon --config-file=$HOME/config.xml before. config.xml is correct.

Though ConsumerService/ProducerService from core/alljoyn/build/linux/x86/debug/dist/notification/bin work correctly.

What can be the problem with Thin library examples?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-01 11:34:41 -0700

bspencer gravatar image

It sounds like this linux instance has no valid network interface to use? Can you confirm that you have a network interface (loopback is not supported)? To run the AllJoyn Thin Core Library on a Linux instance you will need an active network interface and a valid IP address.

edit flag offensive delete publish link more

Comments

Yes, network interface is OK. ConsumerService/ProducerService with the same functionality from core/alljoyn/build/linux/x86/debug/dist/notification/bin work correctly.

Marina Gorshkova ( 2014-10-02 07:34:46 -0700 )edit

I added route for multicast traffic: route add -net 224.0.0.0 netmask 224.0.0.0 eth0 to avoid "IP_ADD_MEMBERSHIP: No such device". But the application still does not work. It generates the output message: Attempting to connect to bus 'org.alljoyn.BusNode'. And does not execute anything else.

Marina Gorshkova ( 2014-10-07 04:42:47 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-09-30 07:52:35 -0700

Seen: 370 times

Last updated: Oct 01 '14