<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Your problem probably stems from the fact that the control characters like carriage return, etc are stripped since they are used for controlling the terminal in a terminal emulation mode. Back in the day, those characters were used to literally move carriage on a teletype machine. Most default terminal serial connections thus don’t transmit them since they are emulating this now lost functionality.<div class=""><br class=""></div><div class="">So setting the terminal connection to raw makes sense to me as it’s saying “pass ALL characters, even the old school terminal control characters”.</div><div class=""><br class=""></div><div class="">It took me about a week one time to figure out this was happening while working with a set of serial barcode scanners as it would drop bytes only *some times*. It turned out to be only when the bytes ended up including control character numbers, which were being stripped out. I ended up almost re-writing everything before finally figuring it out. Oh well.<br class=""><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--------</div><div class="">Dan Wilcox</div><div class="">EDP Visiting Teaching Assistant Professor</div><div class="">Shwayder 215<br class=""><a href="https://twitter.com/danomatika" class="">@danomatika</a><br class=""><a href="http://danomatika.com/" class="">danomatika.com</a><br class=""><div class=""><a href="http://robotcowboy.com/" class="">robotcowboy.com</a></div></div></div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Feb 6, 2016, at 10:56 AM, Ingo <<a href="mailto:ingo@miamiwave.com" class="">ingo@miamiwave.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">OK, found it!<br class=""><br class="">Using<span class="Apple-tab-span" style="white-space:pre">       </span><span class="Apple-tab-span" style="white-space:pre">    </span>stty raw -F /dev/ttyACM0 <span class="Apple-tab-span" style="white-space:pre">   </span>did the trick!<br class="">All numbers - incl. "13" are back as expected.<br class="">Now I'll have to look at how to save it to disk ...<br class=""><br class="">Thanks again, Jan for directing me to the right place!<br class=""><br class="">Ingo<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">-----Ursprüngliche Nachricht-----<br class="">Von: Pd-list [<a href="mailto:pd-list-bounces@lists.iem.at" class="">mailto:pd-list-bounces@lists.iem.at</a>] Im Auftrag von Ingo<br class="">Gesendet: Samstag, 6. Februar 2016 18:06<br class="">An: 'Fred Jan Kraan'; <a href="mailto:pd-list@lists.iem.at" class="">pd-list@lists.iem.at</a><br class="">Betreff: Re: [PD] arduino ProMicro problem with no. "13" coming in as<br class="">"10"(Ubuntu 11.10)<br class=""><br class="">Thanks Jan!<br class=""><br class="">I just did that but have no clue what these parameters mean or how to<br class="">change<br class="">them. I have already created a /etc/init/ttyACM0.conf but don't know how<br class="">to<br class="">enter any correct values.<br class=""><br class="">Here are (only) the differences of the two outputs:<br class=""><br class="">good midi in unit:<span class="Apple-tab-span" style="white-space:pre">      </span>bad midi in unit:<br class=""><br class="">-cstopb<span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>cstopb<br class="">-clocal<span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>clocal<br class="">ixon<span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-ixon<br class="">ixoff<span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-ixoff<br class="">opost<span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-opost<br class="">isig<span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-isig<br class="">icanon<span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-icanon<br class="">-iexten<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>iexten<br class="">echo<span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-echo<br class="">echoe<span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>-echoe<br class=""><br class="">If you (or anybody else) could give me a hint which of these settings<br class="">might<br class="">cause "13" to come out as "10" problem and how to change those settings<br class="">I'd<br class="">be extremely grateful!<br class=""><br class="">Ingo<br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">-----Ursprüngliche Nachricht-----<br class="">Von: Pd-list [<a href="mailto:pd-list-bounces@lists.iem.at" class="">mailto:pd-list-bounces@lists.iem.at</a>] Im Auftrag von Fred<br class=""></blockquote>Jan<br class=""><blockquote type="cite" class="">Kraan<br class="">Gesendet: Samstag, 6. Februar 2016 16:33<br class="">An: <a href="mailto:pd-list@lists.iem.at" class="">pd-list@lists.iem.at</a><br class="">Betreff: Re: [PD] arduino ProMicro problem with no. "13" coming in as<br class=""></blockquote>"10"<br class=""><blockquote type="cite" class="">(Ubuntu 11.10)<br class=""><br class="">On 2016-02-06 03:00 PM, Ingo wrote:<br class=""><blockquote type="cite" class=""><br class="">Does anybody have an idea how to fix this?<br class=""></blockquote><br class="">You might try to compare the output of 'stty -a -F /dev/ttyACM0' on both<br class="">systems. It might be the newer Linux has a different idea about the<br class="">terminal type of /dev/ttyACM0.<br class=""><blockquote type="cite" class=""><br class="">Thanks!<br class="">Ingo<br class=""><br class=""></blockquote>Greetings & success,<br class=""><br class="">Fred Jan<br class=""><br class="">_______________________________________________<br class=""><a href="mailto:Pd-list@lists.iem.at" class="">Pd-list@lists.iem.at</a> mailing list<br class="">UNSUBSCRIBE and account-management -><br class=""><a href="http://lists.puredata.info/listinfo/pd-list" class="">http://lists.puredata.info/listinfo/pd-list</a><br class=""></blockquote><br class=""><br class=""><br class="">I'm having a strange problem with the transmission of my Arduino ProMicro<br class="">MIDI interface on Ubuntu 11.10 (kernel 3.13).<br class=""><br class="">It shows up as ttyacm0 in the system.<br class=""><br class="">Every number "13" that I transmit which could be controller number "13" or<br class="">a<br class="">value like program change "13" comes in as number "10".<br class=""><br class="">I suppose it is being recognized as a carriage return (13) which is being<br class="">executed and then followed by a line feed (10) that actually gets<br class="">transmitted to the [comport] object for some reason.<br class=""><br class="">Does anybody have an idea how to fix this?<br class="">Is there a ttyacm.conf (or similar) somewhere in the system that I could<br class="">edit for a normal (non modem) behavior?<br class="">Or can I set up the arduino to show up as a different device other than<br class="">ttyacm?<br class=""><br class="">On my other operating system everything is working fine with the same<br class="">arduino and programming coming in as ttyacm0 - no special changes. Just<br class="">another Ubuntu 11.10 with an older (original 2.6) kernel.<br class=""><br class="">Thanks!<br class="">Ingo<br class=""><br class=""><br class="">_______________________________________________<br class=""><a href="mailto:Pd-list@lists.iem.at" class="">Pd-list@lists.iem.at</a> mailing list<br class="">UNSUBSCRIBE and account-management -><br class=""><a href="http://lists.puredata.info/listinfo/pd-list" class="">http://lists.puredata.info/listinfo/pd-list</a><br class=""></blockquote><br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></div></div><br class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--------<br class="">Dan Wilcox<br class=""><a href="https://twitter.com/danomatika" class="">@danomatika</a><br class=""><a href="http://danomatika.com" class="">danomatika.com</a><br class=""><div class=""><a href="http://robotcowboy.com" class="">robotcowboy.com</a></div></div>

</div>
<br class=""></body></html>