0

Audio across Linux machines : Failure

asked 2014-06-03 20:41:39 -0700

snap_networks gravatar image

Starting a new thread from https://ask.allseenalliance.org/question/554/how-to-play-audio-across-linux-machines/ Have done exactly what bspencer had told me, but unable to get audio stream across machines. Here are the logs.

Linux Machine #1 (192.168.5.37) : Terminal 1

$ ./alljoyn-daemon

Linux Machine #1 (192.168.5.37) : Terminal 2

$ ./SinkService

AllJoyn Library version: v0.0.1 AllJoyn Library build info: AllJoyn Library v0.0.1 (Built Tue May 27 14:23:28 UTC 2014 by snap - Git: alljoyn.git branch: 'master' tag: 'v14.02' (+262 changes) commit ref: 70e6fc1905dd847b8bdc3b4d5940b237b3f20ffb) AllJoyn Audio version: v0.0.1 AllJoyn Audio build info: AllJoyn Audio v0.0.1 (Built Tue May 27 14:28:31 UTC 2014 by snap - Git: audio.git branch: 'master' tag: '<none>' commit ref: bdb70e475b6c51b8381e47c23e749051fda588b5)</none>

Linux Machine #2 (192.168.5.67) : Terminal 1

$ ./alljoyn-daemon

18.248 * ERROR NETWORK JoinS-2 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 57) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR 18.248 ERROR TCP JoinS-2 ...outer/TCPTransport.cc:2813 | TCPTransport::Connect(): Failed: ER_OS_ERROR 18.248 ERROR ALLJOYN_OBJ JoinS-2 ...e/router/AllJoynObj.cc:859 | trans->Connect(tcp:r4addr=192.168.5.37,r4port=9955) failed: ER_OS_ERROR 18.248 ERROR TIMER sessionless ...mmon/os/posix/Timer.cc:635 | TimerThread::Run(): Timer "sessionless" alarm is late by 1762 ms: ER_TIMER_FALLBEHIND 21.248 ERROR NETWORK JoinS-3 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 57) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR 21.248 ERROR TCP JoinS-3 ...outer/TCPTransport.cc:2813 | TCPTransport::Connect(): Failed: ER_OS_ERROR 21.248 ERROR ALLJOYN_OBJ JoinS-3 ...e/router/AllJoynObj.cc:859 | trans->Connect(tcp:r4addr=192.168.5.37,r4port=9955) failed: ER_OS_ERROR 21.248 ERROR TIMER sessionless ...mmon/os/posix/Timer.cc:635 | TimerThread::Run(): Timer "sessionless" alarm is late by 3794 ms: ER_TIMER_FALLBEHIND 24.248 ERROR NETWORK JoinS-4 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 57) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR 24.248 ERROR TCP JoinS-4 ...outer/TCPTransport.cc:2813 | TCPTransport::Connect(): Failed: ER_OS_ERROR 24.248 ERROR ALLJOYN_OBJ JoinS-4 ...e/router/AllJoynObj.cc:859 | trans->Connect(tcp:r4addr=192.168.5.37,r4port=9955) failed: ER_OS_ERROR 24.248 ERROR TIMER sessionless ...mmon/os/posix/Timer.cc:635 | TimerThread::Run(): Timer "sessionless" alarm is late by 6364 ms: ER_TIMER_FALLBEHIND 27.248 ERROR NETWORK JoinS-5 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 57) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR 27.248 ERROR TCP JoinS-5 ...outer/TCPTransport.cc:2813 | TCPTransport::Connect(): Failed: ER_OS_ERROR 27.248 ERROR ALLJOYN_OBJ JoinS-5 ...e/router/AllJoynObj.cc:859 | trans->Connect(tcp:r4addr=192.168.5.37,r4port=9955) failed: ER_OS_ERROR 27.248 ERROR TIMER sessionless ...mmon/os/posix/Timer.cc:635 | TimerThread::Run(): Timer "sessionless" alarm is late by 8979 ms: ER_TIMER_FALLBEHIND 30.248 ERROR NETWORK JoinS-6 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 57) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR 30.248 ERROR TCP ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-06 14:06:10 -0700

bspencer gravatar image

Have you tried now typing 'play'? There is no need to open once you start the SinkClient. The open call is done when it is discovered, it will return an error correctly as you see.

You should be able to type 'play' now and hear audio on both Sinks. If you wanted you can type 'close' then 'open' in order to see the open command working.

edit flag offensive delete publish link more

Comments

Have tried 'play', no success. Are you saying that play in machine #2 (in reference to above post) would result in audio on machine #1 ? I don't see that happen. Also I still see this error .... trans->Connect(tcp:r4addr=192.168.5.37,r4port=9955) failed: ER_OS_ERROR

snap_networks ( 2014-06-08 20:31:42 -0700 )edit

Let's backtrack a little here and confirm that you can do the following: 1) Start the SinkService on Linux Machine 1 2) Start the SinkClient on Linux Machine 2 3) Type play and hear audio on Linux Machine 1. If the above works lets then focus on adding SinkService to machine 2. If the above fails, then we have another problem, which is that your system setup disallows the ability to form a session between the two linux machines.

bspencer ( 2014-06-09 14:38:09 -0700 )edit

play doesn't work :-( .... get the below errors on Machine #2 (SlingClient) .......... 179.940 ****** ERROR NETWORK JoinS-24 ...mon/os/posix/Socket.cc:219 | Connecting (sockfd = 50) to 192.168.5.37 9955: 113 - No route to host: ER_OS_ERROR

snap_networks ( 2014-06-09 22:22:41 -0700 )edit

Can you explain the network setup now. The problem is not with the sample but the fact that a TCP connection cannot be made between 192.168.5.37 and the other machine. Are these two separate machines or virtual machines? Are you using a commercial router or are you in a corporate setup?

bspencer ( 2014-06-10 11:35:07 -0700 )edit

The 2 machines are on the same network (192.168.5.37 and .67). Yes, it is connected to a router which has many more machines as well. However these two machines are able to communicate effectively over TCP (have other sample programs working).

snap_networks ( 2014-06-10 16:28:32 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-03 20:41:39 -0700

Seen: 234 times

Last updated: Jun 06 '14