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@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@lists.iem.at] On Behalf Of Martin Peach
Sent: Tuesday, May 14, 2019 4:20 PM
To: pd-list@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@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@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list