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.

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”.

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.

--------
Dan Wilcox
EDP Visiting Teaching Assistant Professor
Shwayder 215
@danomatika <https://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
> On Feb 6, 2016, at 10:56 AM, Ingo <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> OK, found it!
> 
> Using         stty raw -F /dev/ttyACM0        did the trick!
> All numbers - incl. "13" are back as expected.
> Now I'll have to look at how to save it to disk ...
> 
> Thanks again, Jan for directing me to the right place!
> 
> Ingo
> 
> 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Pd-list [mailto:[email protected] 
>> <mailto:[email protected]>] Im Auftrag von Ingo
>> Gesendet: Samstag, 6. Februar 2016 18:06
>> An: 'Fred Jan Kraan'; [email protected] <mailto:[email protected]>
>> Betreff: Re: [PD] arduino ProMicro problem with no. "13" coming in as
>> "10"(Ubuntu 11.10)
>> 
>> Thanks Jan!
>> 
>> I just did that but have no clue what these parameters mean or how to
>> change
>> them. I have already created a /etc/init/ttyACM0.conf but don't know how
>> to
>> enter any correct values.
>> 
>> Here are (only) the differences of the two outputs:
>> 
>> good midi in unit:   bad midi in unit:
>> 
>> -cstopb                      cstopb
>> -clocal                      clocal
>> ixon                         -ixon
>> ixoff                                -ixoff
>> opost                                -opost
>> isig                         -isig
>> icanon                       -icanon
>> -iexten                      iexten
>> echo                         -echo
>> echoe                                -echoe
>> 
>> If you (or anybody else) could give me a hint which of these settings
>> might
>> cause "13" to come out as "10" problem and how to change those settings
>> I'd
>> be extremely grateful!
>> 
>> Ingo
>> 
>> 
>> 
>> 
>>> -----Ursprüngliche Nachricht-----
>>> Von: Pd-list [mailto:[email protected] 
>>> <mailto:[email protected]>] Im Auftrag von Fred
>> Jan
>>> Kraan
>>> Gesendet: Samstag, 6. Februar 2016 16:33
>>> An: [email protected] <mailto:[email protected]>
>>> Betreff: Re: [PD] arduino ProMicro problem with no. "13" coming in as
>> "10"
>>> (Ubuntu 11.10)
>>> 
>>> On 2016-02-06 03:00 PM, Ingo wrote:
>>>> 
>>>> Does anybody have an idea how to fix this?
>>> 
>>> You might try to compare the output of 'stty -a -F /dev/ttyACM0' on both
>>> systems. It might be the newer Linux has a different idea about the
>>> terminal type of /dev/ttyACM0.
>>>> 
>>>> Thanks!
>>>> Ingo
>>>> 
>>> Greetings & success,
>>> 
>>> Fred Jan
>>> 
>>> _______________________________________________
>>> [email protected] <mailto:[email protected]> mailing list
>>> UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list 
>>> <http://lists.puredata.info/listinfo/pd-list>
>> 
>> 
>> 
>> I'm having a strange problem with the transmission of my Arduino ProMicro
>> MIDI interface on Ubuntu 11.10 (kernel 3.13).
>> 
>> It shows up as ttyacm0 in the system.
>> 
>> Every number "13" that I transmit which could be controller number "13" or
>> a
>> value like program change "13" comes in as number "10".
>> 
>> I suppose it is being recognized as a carriage return (13) which is being
>> executed and then followed by a line feed (10) that actually gets
>> transmitted to the [comport] object for some reason.
>> 
>> Does anybody have an idea how to fix this?
>> Is there a ttyacm.conf (or similar) somewhere in the system that I could
>> edit for a normal (non modem) behavior?
>> Or can I set up the arduino to show up as a different device other than
>> ttyacm?
>> 
>> On my other operating system everything is working fine with the same
>> arduino and programming coming in as ttyacm0 - no special changes. Just
>> another Ubuntu 11.10 with an older (original 2.6) kernel.
>> 
>> Thanks!
>> Ingo
>> 
>> 
>> _______________________________________________
>> [email protected] <mailto:[email protected]> mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list 
>> <http://lists.puredata.info/listinfo/pd-list>
> 
> 
> 



--------
Dan Wilcox
@danomatika <https://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to