<br><br><div class="gmail_quote">On Wed, Oct 26, 2011 at 6:35 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><br></div><div>The Firmata protocol is built around a one device connection (it was written for Arduino-USB), so having multiple devices sending their data over a single serial port won&#39;t work with the Firmata protocol.  </div>
</div></blockquote><div><br></div><div>what about removing the comport in the arduino object and replacing with with data from an abstraction that would parse all three data streams and send the data that the comport would have sent were it there?  so it could still have most of the guts of the arduino object intact but  where the comport object was, would be a routed stream from an abstraction that would send the patch the data it was expecting, sans comport object. then all three streams could dump to this precursor object which would have the one comport input from the xbee connected to the computer.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><br></div><div>I seem to recall that Xbees can send on different channels.  If so, I think the easiest thing to do is to have one xbee receiver per arduino, each on its own channel, and therefore one serial port per xbee.</div>
</div></blockquote><div><br></div><div>thats what i am doing now.  it works ok, but I&#39;d like to make the system more efficient.  i dont have to do it right now.  this is just a project i want to start getting my head around and would like to know the options. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><br></div><div>If you want to only have one receiver, you&#39;ll have to create your own protocol.  Perhaps an easy way to do that would be to wrap the existing Firmata protocol with some identifier of which arduino is came from. </div>
</div></blockquote><div><br></div><div>yeah, its looking like that.  the good thing is that the system i designed is stable, ie. i dont plan to make any major configuration changes in the hardware for for quite sometime, so it would be feasible to just do simple data sends to pure data and lock the config in. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><br></div><div>You could also look at the xbee object in the pure-data svn, its in externals/io/xbee.  But that also means no Firmata.</div>
</div></blockquote><div><br></div><div>I didnt even know there was an xbee object!  going to download it now!  thanks for the link.  i will check it out now!  cheers </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><br></div><div>.hc</div><br><div><div><div></div><div class="h5"><div>On Oct 26, 2011, at 7:47 AM, <a href="mailto:onyx@onyx-ashanti.com" target="_blank">onyx@onyx-ashanti.com</a> wrote:</div>
<br></div></div><blockquote type="cite"><div><div></div><div class="h5">greetings.  i was wondering, any insight on taking the data from 3 arduinos running firmata and dumping them, using xbee trancievers, to a single comport in in pure data?<div>
<br></div><div>my project uses 3 xbee &quot;transmitter&quot; nodes which communicate directly with its own xbee basestation&quot;reciever&quot;  at my computer.  this works but i seek to refine the system to have one basestation xbee that will recieve all of the data from the 3 nodes.  from what i understand of this process, i need to add a tag like &quot;left&quot; in the arduino code&quot; then parse that data on the computer end.  but it seems as if this will break the arduino object. </div>
 <div><br></div><div>my options, i feel, are to try to either add the tag, parse the data in pure data before the arduino object and somehow send the parsed data to 3 instances of the arduino object or to attempt to rewrite the arduino firmaware and the pd recieving abstraction since i dont foresee the hardware configuration changing all that much.  insight? </div>
 <div><br></div><div>cheers,</div><div><br></div><div>Onyx   <br clear="all"><div><br></div>-- <br><div><div>Help me build the sickest live performance system ever!</div><div><a href="http://www.indiegogo.com/beatjazzsystem" target="_blank">www.indiegogo.com/beatjazzsystem</a></div>
 <div><a href="http://www.onyx-ashanti.com" target="_blank">www.onyx-ashanti.com</a></div>Germany<a href="tel:%2B49%20176%203543%207859" value="+4917635437859" target="_blank">+49 176 3543 7859</a></div><a title="phone number" style="color:rgb(0, 0, 63);background-color:rgb(255, 255, 191)"><br>
</a><br> </div></div></div><div class="im"> _______________________________________________<br><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></blockquote></div><br><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<br><br></div><div><br></div><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>&quot;[T]he greatest purveyor of violence in the world today [is] my own government.&quot; - Martin Luther King, Jr.</div>
<div><br></div></span><br> </div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div>Help me build the sickest live performance system ever!</div><div><a href="http://www.indiegogo.com/beatjazzsystem" target="_blank">www.indiegogo.com/beatjazzsystem</a></div>
<div><a href="http://www.onyx-ashanti.com" target="_blank">www.onyx-ashanti.com</a></div>Germany+49 176 3543 7859</div><a title="phone number" style="color:rgb(0, 0, 63);background-color:rgb(255, 255, 191)"><br></a><br>