Re: [PD] Arduino/Raspberry comport issue
baud rate _should_ be the same in your arduino code and in your comport object, otherwise you get messed up characters. i dont have rpi here, but i didnt noticed any chenges between running comport on rpi, or standard pc. when you send [devices( you usually get list of connected serial devices - arduinos with usb2serial and com ports if you have. also check, ig your user is in uucp group, i think it is necessary, and maybe also dialout group can be important. probably it depense if you are using debian fedora or arch on this rpi kub On 11.11.2013 18:13, Alexandros Drymonitis wrote: Are you sure the baud rate you set to [comport] is the same as the code you load on your Arduino? That could be a problem.. If you send the [devices( message to [comport] what do you get in the console? On Mon, Nov 11, 2013 at 11:19 AM, kubriel kubr...@servus.at mailto:kubr...@servus.at wrote: It won?t receive data. Hi! i was using RPi plenty of times headless without any problems with comport in pd, but usually running armarch linux. but i was not using device name, but device nr, like [comport 0 9600] for uno, or [comport 4 9600] for duemilanove. kub -- http://kubriel.servus.at ___ Pd-list@iem.at mailto:Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- http://kubriel.servus.at ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino/Raspberry comport issue
If I didn't mention I'm actually using a Teensy 3.0 not an arduino. Read on pjrc.comhttp://pjrc.com that the teensy runs at full USB speed all the time unlike arduino. So that seems like the comport speed should be irrelevant? In any case yesterday I turned the rip and teensy on and pd was reading from it immediately every time I opened a patch. Maybe it worked itself out? I'm using ccrma satellite which is a raspbian distro. I'll check the user permissions also On Nov 12, 2013, at 2:38 AM, kubriel kubr...@servus.atmailto:kubr...@servus.at wrote: baud rate _should_ be the same in your arduino code and in your comport object, otherwise you get messed up characters. i dont have rpi here, but i didnt noticed any chenges between running comport on rpi, or standard pc. when you send [devices( you usually get list of connected serial devices - arduinos with usb2serial and com ports if you have. also check, ig your user is in uucp group, i think it is necessary, and maybe also dialout group can be important. probably it depense if you are using debian fedora or arch on this rpi kub On 11.11.2013 18:13, Alexandros Drymonitis wrote: Are you sure the baud rate you set to [comport] is the same as the code you load on your Arduino? That could be a problem.. If you send the [devices( message to [comport] what do you get in the console? On Mon, Nov 11, 2013 at 11:19 AM, kubriel kubr...@servus.atmailto:kubr...@servus.at wrote: It won?t receive data. Hi! i was using RPi plenty of times headless without any problems with comport in pd, but usually running armarch linux. but i was not using device name, but device nr, like [comport 0 9600] for uno, or [comport 4 9600] for duemilanove. kub -- http://kubriel.servus.at ___ Pd-list@iem.atmailto:Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- http://kubriel.servus.at ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino/Raspberry comport issue
Hi, Allen, Michael wrote: I’m using a Teensy to get data from Pots and switches into PD on a RPi. The teensy sketch is set to open serial at 9600 baud. In PD I have [comport devicename 9600]. It won’t receive data. When I change the object to [comport devicename 115200] it immediately opens and starts receiving data. I’m specifying the device name since it seems to be switching between port 1 and 0 for unknown reasons upon power cycling or unplugging, etc. for the device name you can use the [devicename ( message instead with port name rather than a port number. Then use it like that: [loadbang] | [devicename /dev/serial/by-id/the-id-of-you-teensy, baud 9600 ( | [comport] This may solve the other problem. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino/Raspberry comport issue
It won?t receive data. Hi! i was using RPi plenty of times headless without any problems with comport in pd, but usually running armarch linux. but i was not using device name, but device nr, like [comport 0 9600] for uno, or [comport 4 9600] for duemilanove. kub -- http://kubriel.servus.at ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino/Raspberry comport issue
Are you sure the baud rate you set to [comport] is the same as the code you load on your Arduino? That could be a problem.. If you send the [devices( message to [comport] what do you get in the console? On Mon, Nov 11, 2013 at 11:19 AM, kubriel kubr...@servus.at wrote: It won?t receive data. Hi! i was using RPi plenty of times headless without any problems with comport in pd, but usually running armarch linux. but i was not using device name, but device nr, like [comport 0 9600] for uno, or [comport 4 9600] for duemilanove. kub -- http://kubriel.servus.at ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list