<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 Thank you very much martin,<div><br></div><div>Adding a "print" to [comport] I see the list of 12 ascii values.<br><div><br></div><div>Having a single [0...255] number from Arduino would be easier and probably the best way to go. But I also wish to understand if pure data can make the job.</div><div><br></div><div>For that I used a [list prepend] [list append] to obtain a list of my two-digits numbers.</div><div>Putting a [print] after [list append] allows me to see the inline list:</div><div>print: 48 49 48 52 52 53 69 56 66 56</div><div><br></div><div>And that leads me to a more general question:&nbsp;could I compare a list to another list and obtain a BANG as they match?. At first I was thinking of using [select], but I don't know if it can manage lists and how.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>Il giorno 10/dic/09, alle ore 19:36, &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; ">lineacurva wrote:<br><br>&gt; Hi guys,<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; I'm working on my first RFID project, involving Arduino and Pure<span class="Apple-converted-space">&nbsp;</span><br>&gt; Data. I use Innovation Id-20 reader and Arduino 2009. I'm stuck in a<span class="Apple-converted-space">&nbsp;</span><br>&gt; problem with "comport".<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; As I put a transponder near the reader, in Arduino serial monitor I<span class="Apple-converted-space">&nbsp;</span><br>&gt; can see a number like: 495211712056<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; But in the little patch I attach here, comport reads: 53<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; This is a problem since more than one transponder give me a "53"<span class="Apple-converted-space">&nbsp;</span><br>&gt; feedback (but a different 12 digits number in Arduino monitor).<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br><br>53 is the ASCII value of the character '5'. Probably if you add a [print] to the [comport] output you would get a list of 12 ASCII values for each sample.<br><br>In Pd you need to accumulate the list of incoming ASCII codes, subtract 48 (ASCII '0') from each, and route them accordingly. A 12-digit number won't display correctly as a float. Probably it's easier in Arduino to make your numbers ints on [0..255] and send them as BYTE. Then you get one number per sample and don't need to handle lists.<br><br>Martin<br><br></span></blockquote></div><br></div></div></body></html>