[PD] Comport problem with Arduino: 13 is coming in as 10

Ingo ingo at miamiwave.com
Tue May 14 17:53:59 CEST 2019


How could it be the Arduino code if everything works fine after I manually set 
the ttyACM0 to raw?

I have made myself a workaround by now to set all Arduino ttyACM* to raw by 
sending

stty -F /dev/ttyACM* raw

to a [shell] object after starting up the patch.

So the Arduino cannot be causing the problem. It's the [comport] object that 
does not correctly set to port to raw in "all" cases.
Maye in most cases but not in "all" cases.

Ingo



From: Martin Peach [mailto:chakekatzil at gmail.com]
Sent: Tuesday, May 14, 2019 5:28 PM
To: Ingo
Cc: pd-list at lists.iem.at
Subject: Re: [PD] Comport problem with Arduino: 13 is coming in as 10

I ran this code on an arduino nano and sent it into a comport-print to verify 
that it passes all the values without change:

void setup() {
  Serial.begin(115200);
  while(!Serial);
  Serial.println("OK");
}

void loop() {
  static uint8_t x = 0;
  Serial.write(x);
  delay(25);
  x++;
}

Maybe you could try that to be sure it's not your arduino code that's doing 
it.

Martin

On Tue, May 14, 2019 at 11:14 AM Ingo <ingo at miamiwave.com> wrote:
Whatever version was current in September 2018 is the version I have installed
in the new setup.
I wouldn't have been surprised about this behavior in the old version from
2011 - but 2018?

I don't think there have been too many major changes since September 2018.

As I had mentioned before: Sometimes it works - sometimes it doesn't .

Ingo



From: Pd-list [mailto:pd-list-bounces at lists.iem.at] On Behalf Of Martin Peach
Sent: Tuesday, May 14, 2019 4:20 PM
To: pd-list at lists.iem.at
Subject: Re: [PD] Comport problem with Arduino: 13 is coming in as 10

I just tried it here on both Windows 10 and Ubuntu with no issues. I can print
every value from 0 to 255 from arduino and receive it unchanged in pd. I think
possibly the OP is using an older version of comport.

Martin


On Tue, May 14, 2019 at 10:03 AM IOhannes m zmoelnig <zmoelnig at iem.at> wrote:
On 14.05.19 15:47, Ingo wrote:
> Could it be possible that the operating system does this even before it gets
> to the comport object?

well, those flags are supposed to control exactly what "the operating
system does" in this respect.

fgmasdr
IOhannes

_______________________________________________
Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list








More information about the Pd-list mailing list