<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Here you can download the recompiled version of ScenePlayer
    including some additional externals (see README.txt for the list),
    together with a simple example of communication between a computer
    and a mobile phone.<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.csc.kth.se/~dubus/Android/NetTest.zip">http://www.csc.kth.se/~dubus/Android/NetTest.zip</a><br>
    <br>
    In this example, the phone sends some accelerometer data to a
    [tcpserver] in the patch running on the computer, and uses values
    received from the computer to control a [osc~].<br>
    <br>
    Regards,<br>
    Ga&euml;l<br>
    <br>
    <br>
    On 3/6/12 11:52 AM, berenger recoules wrote:
    <blockquote
cite="mid:CAM1BBLaZMDWHZvABF1wSU1r0OPwS2mSmcBRBbjALCRqXOiA21g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <br>
      <br>
      <div class="gmail_quote">2012/2/29 Ga&euml;l Dubus <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:dubus@kth.se">dubus@kth.se</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div>
              <div class="h5"><br>
                <blockquote type="cite"> </blockquote>
              </div>
            </div>
            Hi,<br>
            I am facing kind of the same problem with ScenePlayer on
            Android.<br>
            <br>
            For some time ago, I wanted to make another phone
            application communicate with ScenePlayer. My idea was to
            inject the data into ScenePlayer via localhost using
            networking utilities of Pd. For this purpose, I recompiled
            ScenePlayer including externals from the mrpeach library,
            then I tried several configurations in order to test the
            different network protocols between the phone and my
            computer.&nbsp;</div>
        </blockquote>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> <br>
            My conclusion is that there is only one way to have a
            working bidirectional data exchange: [tcpclient] on the
            phone and [tcpserver] on the computer. In all the other
            configurations (simple [netsend]/[netreceive] or
            [tcpsend]/[tcpreceive] for example) it was possible to send
            data from phone to computer but not from computer to phone.
            When I tried to invert the working configuration (putting a
            [tcpserver] on the phone), the following happened: the
            [tcpclient] on the computer seemed to be connected (outlet 2
            was set to 1) but could not send (nor receive) any data to
            the phone.<br>
            <br>
            Unfortunately, this does not enable me to have a direct
            connection between an external mobile application and
            ScenePlayer as I had hoped. I gave up momentarily with the
            idea of using network utilities, but I think that this is a
            question of interest for people working with Pd on Android:
            is there a reason for incoming TCP and UDP streams to be
            blocked?<br>
          </div>
        </blockquote>
        <div><br>
        </div>
        <div>
          <div>Could you share you recompiled version of the ScenePlayer
            &nbsp;with mrpeach ? I would like to see if I could reproduce
            your observations, and establish communication between two
            phones.</div>
          <br class="Apple-interchange-newline">
        </div>
        <div>Cheers</div>
        <div><br>
        </div>
        <div>B&eacute;renger</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>&nbsp;</div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> <br>
            Cheers<span class="HOEnZb"><font color="#888888"><br>
                <pre cols="72">-- 
Ga&euml;l Dubus
Ph. D. student at KTH, Speech, Music and Hearing
Lindstedtsv. 24
S-10044         Stockholm (Sweden)
Mobile:          <a moz-do-not-send="true" href="tel:%2B46%280%2976%20096%203411" value="+46760963411" target="_blank">+46(0)76 096 3411</a>
Office:                <a moz-do-not-send="true" href="tel:%2B46%280%298%20790%207577" value="+4687907577" target="_blank">+46(0)8 790 7577</a>
Fax:                 <a moz-do-not-send="true" href="tel:%2B46%280%298%20790%207854" value="+4687907854" target="_blank">+46(0)8 790 7854</a>
</pre>
              </font></span></div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>