Re: Re Comport Question
Winfried Ritsch via Pd-list <[email protected]>
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Organization | Institut für Elektronische Musik und Akustik |
| Message-ID | <12700766.O9o76ZdvQC@schulze> |
A guess: If there is an USB-Chip like the CH240 on the board which communicates with the arduino uC, it is important which baudrate you use between the chip and arduino, therefore you have to set the baudrate in the arduino the same as in the comport using: Serial.begin(baudrate). So set the same in the Arduino sketch and comport like `Serial.begin(115200)` mfg winfried Am Freitag, 27. Juni 2025, 10:00:58 CEST schrieb Dan Wilcox: > To double-check, are you sure the problem is not in the Arduino sketch? > Python exhibiting the same behavior tips to that IMO. A quick search yields > a similar issue due to using an int for larger baud values: > > https://arduino.stackexchange.com/questions/67568/serial-port-fails-with-spe > eds-greater-than-19200 > > On Jun 27, 2025, at 2:51 AM, Jim Ruxton <[email protected]> wrote: > > > > > > I'm not clear how this works. Because if I change the baud rate it > > definitely stops any communication between the laptop and the Arduino so > > baud rate must have some meaning in this case. I also tried using a > > python program I wrote and got the same behaviour of working up to 19200 > > then stopping so I don't think it's an issue with Pure Data. Maybe a > > cable issue?> > >> Note that Arduino is usually (or always?) connected through an USB device > >> which emulates a serial device (hence the comport). > >> > >> In this case the baud rate has no meaning (the baud rate is only used by > >> physical UARTs). > >> > >> Le jeu. 26 juin 2025 à 00:06, Antoine Rousseau <[email protected] > >> <mailto:[email protected]>> a>> > >> écrit : > >> > With the latest comport 1.3 (available on Deken) you can set the baud > >> > rate up to 4000000, if your system allows it. See > >> > https://git.iem.at/pd/comport > >> > > >> > Le mer. 25 juin 2025 à 22:53, Alexandros Drymonitis <[email protected] > >> > <mailto:[email protected]>> a>> > > >> > écrit : > >> >> How did you find such a limitation? You can use it with a 115,200 baud > >> >> rate just fine on any OS (including Linux). > >> >> > >> >> On 6/25/25 23:50, Jim Ruxton wrote: > >> >> > I'm using the comport object to speak to an Arduino. I'm finding the > >> >> > fastest baud rate I could use was 19200. I'm on Linux. Would anyone > >> >> > know if this is a limitation of the object in Linux or if there is > >> >> > something else going on. I'd like to send data faster if possible. > >> >> > > >> >> > --- > >> >> > [email protected] <mailto:[email protected]> - the Pure Data > >> >> > mailinglist>> >> > >> >> https://lists.iem.at/hyperkitty/list/[email protected]/message/DHY4 > >> >> DX545CKEKBHN7OPOYUJHKWDTPRKI/>> >> > >> >> > To unsubscribe send an email to [email protected] > >> >> > <mailto:[email protected]> mailing list UNSUBSCRIBE and > >> >> > account-management -> https://lists.iem.at/ > >> >> > >> >> --- > >> >> [email protected] <mailto:[email protected]> - the Pure Data > >> >> mailinglist > >> >> > >> >> https://lists.iem.at/hyperkitty/list/[email protected]/message/Q6DX > >> >> 25FHMHUEOBX2LR36GWXRM57WEIQS/ > >> >> > >> >> To unsubscribe send an email to [email protected] > >> >> <mailto:[email protected]> mailing list UNSUBSCRIBE and > >> >> account-management -> https://lists.iem.at/ > > -------- > Dan Wilcox > danomatika.com <http://danomatika.com/> > robotcowboy.com <http://robotcowboy.com/> -- - ao.Univ.Prof. DI Winfried Ritsch - [email protected] - http://iem.at/ritsch - Institut fuer Elektronische Musik und Akustik - University of Music and Dramatic Art Graz - Tel. ++43-316-389-3510 (3170) Fax ++43-316-389-3171 - mobile: 0043 664 2439369 --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/UNZT7JACW4T4NF63WIYHE4TBUBPSJYPH/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEbRUABfm9MBFPnX3ZUeJTv9ACad8FAmhk4RkACgkQUeJTv9AC ad8gpwgA1TTE7siCgtHqCtLhdT4bXpe8XIFcZ5r+aOdb3ueC16ydHUv9aomyC/7A Zi+OxgxzJnx7hMV2UjIN3MbR00Q0l1Gi6iA0bom2LuYWz7aew3kH8q0jfTrIvzT1 8xo4LmDWmbPI4ay9uaK2cEHczQexpWauRdw8PbKYWyBL8sX6PVSVb0qjgh6AU8CW mPs4/HpV9Z00BdE2hRLmevrJIcAN7lBzgwdHeIsg5/6d1wwZEzgzKsmxAO26EYe/ rZY4Uxws4jMuQMU/GxLZ78j3g01FUkwPA6OucoTuedul4SZNCJgpXXfqD6T4X3ip ZGVCrDcZ0+ztrWYS1ui+fytr3lAxAw== =VcEh -----END PGP SIGNATURE-----