Csound Csound-dev Csound-tekno Search About

[Csnd] serialRead one value only?

Date2018-06-08 10:46
Fromluis antunes pena
Subject[Csnd] serialRead one value only?

Hi all,

I'm working with a camera that sends data via serial port - a very cool project called OpenMV Cam. And I was wondering if there is a possibility to get two or more values out of serialRead ? As far as I can see from the manual, this opcode can only read one value.

Best,

Luis 


Date2018-06-08 11:20
FromVictor Lazzarini
SubjectRe: [Csnd] serialRead one value only?
Looking at the documentation, I suppose you have one data stream for each open
serial port. So if you want to open for instance the bluetooth and the usb ports,
you use two instances of serialBegin and with the separate handles, read the
data.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 8 Jun 2018, at 10:46, luis antunes pena  wrote:
> 
> Hi all,
> 
> I'm working with a camera that sends data via serial port - a very cool project called OpenMV Cam. And I was wondering if there is a possibility to get two or more values out of serialRead ? As far as I can see from the manual, this opcode can only read one value.
> Best,
> 
> Luis  
> -- 
> http://luisantunespena.eu
> http://sumtone.com
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-06-08 12:25
FromRichard
SubjectRe: [Csnd] serialRead one value only?

As an alternative, maybe you can use Python to read the serial port with pyserial. It has a lot of options.
This could be done by a Python program and then pass the data to csound, or maybe even using python 'inside' csound...

Richard

On 08/06/18 11:46, luis antunes pena wrote:

Hi all,

I'm working with a camera that sends data via serial port - a very cool project called OpenMV Cam. And I was wondering if there is a possibility to get two or more values out of serialRead ? As far as I can see from the manual, this opcode can only read one value.

Best,

Luis 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here