[commit?] queryAllNodes and SerialPort

View: New views
13 Messages — Rating Filter:   Alert me  

[commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all...

I have posted two things that I think may be good commits before RC.

the SC_Group diff lets queryAllNodes correctly identify audio buss mapping
the PyrSerialPort diff allows higher baud rates 

Opinions on these two? OK to commit? 

Best,

Josh







******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


SC_Group.cpp.diff (943 bytes) Download Attachment
PyrSerialPrim.diff (3K) Download Attachment

Re: [commit?] queryAllNodes and SerialPort

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't object.

I'm not a SerialPort user. But will this change of default rate
surprise any users?

-  baudrate(9600),
+  baudrate(115200),


2009/4/16, Josh Parmenter <josh@...>:

>
> Hi all...
>
> I have posted two things that I think may be good commits before RC.
>
> the SC_Group diff lets queryAllNodes correctly identify audio buss mapping
> the PyrSerialPort diff allows higher baud rates
>
> Opinions on these two? OK to commit?
>
> Best,
>
> Josh


--
http://www.mcld.co.uk

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 17 April 2009 02:38:03 Dan Stowell wrote:

> I don't object.
>
> I'm not a SerialPort user. But will this change of default rate
> surprise any users?
>
> -  baudrate(9600),
> +  baudrate(115200),
>
> 2009/4/16, Josh Parmenter <josh@...>:
> > Hi all...
> >
> > I have posted two things that I think may be good commits before RC.
> >
> > the SC_Group diff lets queryAllNodes correctly identify audio buss
> > mapping the PyrSerialPort diff allows higher baud rates
> >
> > Opinions on these two? OK to commit?

It seems the serial port diff is against an older version of SC than recent
svn.
It reverts changes I made over the past couple of months.

I think only the baudrate setting had to be changed?

I stlil have to test that on my (Linux) system to compile. (sorry for the
delay, but health reasons compel me to not use the computer as much).

Changing the default baudrate is a bad idea too.

sincerely,
Marije

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sure - the baud rate thing makes sense (I am passing along someone  
else's changes from sc-users by the way... I built with it and have  
been using it this week, and all seems fine).

Marije, as far as it being a diff from an older SVN, not sure how that  
could be. I did SVN update just before running the diff. I did send  
the actual .cpp file a few days before.... perhaps try it? I have  
attached it with the baud rate changed to 9600.

Best,

Josh





On Apr 17, 2009, at 2:56 AM, nescivi wrote:

> On Friday 17 April 2009 02:38:03 Dan Stowell wrote:
>> I don't object.
>>
>> I'm not a SerialPort user. But will this change of default rate
>> surprise any users?
>>
>> -  baudrate(9600),
>> +  baudrate(115200),
>>
>> 2009/4/16, Josh Parmenter <josh@...>:
>>> Hi all...
>>>
>>> I have posted two things that I think may be good commits before RC.
>>>
>>> the SC_Group diff lets queryAllNodes correctly identify audio buss
>>> mapping the PyrSerialPort diff allows higher baud rates
>>>
>>> Opinions on these two? OK to commit?
>
> It seems the serial port diff is against an older version of SC than  
> recent
> svn.
> It reverts changes I made over the past couple of months.
>
> I think only the baudrate setting had to be changed?
>
> I stlil have to test that on my (Linux) system to compile. (sorry  
> for the
> delay, but health reasons compel me to not use the computer as much).
>
> Changing the default baudrate is a bad idea too.
>
> sincerely,
> Marije
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
> search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/


PyrSerialPrim.cpp (13K) Download Attachment

Re: [commit?] queryAllNodes and SerialPort

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 17 April 2009 09:10:07 Josh Parmenter wrote:
> sure - the baud rate thing makes sense (I am passing along someone
> else's changes from sc-users by the way... I built with it and have
> been using it this week, and all seems fine).
>
> Marije, as far as it being a diff from an older SVN, not sure how that
> could be. I did SVN update just before running the diff. I did send
> the actual .cpp file a few days before.... perhaps try it? I have
> attached it with the baud rate changed to 9600.

the changed .cpp was from an older svn, so it reverses changes that you have
in your newer version.

sincerely,
Marije

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 17 April 2009 09:10:07 Josh Parmenter wrote:
> sure - the baud rate thing makes sense (I am passing along someone
> else's changes from sc-users by the way... I built with it and have
> been using it this week, and all seems fine).
>
> Marije, as far as it being a diff from an older SVN, not sure how that
> could be. I did SVN update just before running the diff. I did send
> the actual .cpp file a few days before.... perhaps try it? I have
> attached it with the baud rate changed to 9600.

Attached is a clean patch.

It compiles on Linux, can't test it with a device right now though (don't have
one here).
I can do that Monday earliest.

sincerely,
Marije

[attachment removed]

Re: [commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

this builds and runs fine for me on OS X intel.

Thanks Marije,

Josh

On Apr 17, 2009, at 7:13 AM, nescivi wrote:

> <serialport.diff>

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does anyone see and problems with the queryAllNodes fix?

Best,

Josh

On Apr 16, 2009, at 2:35 PM, Josh Parmenter wrote:

Hi all...

I have posted two things that I think may be good commits before RC.

the SC_Group diff lets queryAllNodes correctly identify audio buss mapping
the PyrSerialPort diff allows higher baud rates 

Opinions on these two? OK to commit? 

Best,

Josh


<SC_Group.cpp.diff>
<PyrSerialPrim.diff>

******************************************
/* Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/


******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


Re: [commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, I've committed the queryAllNodes fix.

Josh

On Apr 17, 2009, at 1:54 PM, Josh Parmenter wrote:

Does anyone see and problems with the queryAllNodes fix?

Best,

Josh

On Apr 16, 2009, at 2:35 PM, Josh Parmenter wrote:

Hi all...

I have posted two things that I think may be good commits before RC.

the SC_Group diff lets queryAllNodes correctly identify audio buss mapping
the PyrSerialPort diff allows higher baud rates 

Opinions on these two? OK to commit? 

Best,

Josh


<SC_Group.cpp.diff>
<PyrSerialPrim.diff>

******************************************
/* Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/


******************************************
/* Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/


******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


Re: [commit?] queryAllNodes and SerialPort

by Fredrik Olofsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

applied and did some quick tests with this patch - found no problems.
_f


17 apr 2009 kl. 18.10 skrev Josh Parmenter:

> this builds and runs fine for me on OS X intel.
>
> Thanks Marije,
>
> Josh
>
> On Apr 17, 2009, at 7:13 AM, nescivi wrote:
>
>> <serialport.diff>


   #|
      fredrikolofsson.com     klippav.org     musicalfieldsforever.com
   |#


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

great fredrik, thanks. I'll wait for Marije's OK before applying.

Best,

Josh

On Apr 20, 2009, at 7:30 AM, Fredrik Olofsson wrote:

> applied and did some quick tests with this patch - found no problems.
> _f
>
>
> 17 apr 2009 kl. 18.10 skrev Josh Parmenter:
>
>> this builds and runs fine for me on OS X intel.
>>
>> Thanks Marije,
>>
>> Josh
>>
>> On Apr 17, 2009, at 7:13 AM, nescivi wrote:
>>
>>> <serialport.diff>
>
>
>  #|
>     fredrikolofsson.com     klippav.org     musicalfieldsforever.com
>  |#
>
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
> search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Re: [commit?] queryAllNodes and SerialPort

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 20 April 2009 10:58:03 Josh Parmenter wrote:
> great fredrik, thanks. I'll wait for Marije's OK before applying.

Unfortunately, it does break things on Linux.

It gives the errors:

Error setting cfsetispeed /dev/ttyUSB0 - Invalid argument(22).
Error setting cfsetospeed /dev/ttyUSB0 - Invalid argument(22).

So, it seems that the SerialPort on linux does need the B9600 kind of notation
to set the baudrate. Or maybe the implicit conversion from the input integer,
to speed_t is incorrect.

So, I will not apply the patch for the RC today.

sincerely,
Marije

>
> Best,
>
> Josh
>
> On Apr 20, 2009, at 7:30 AM, Fredrik Olofsson wrote:
> > applied and did some quick tests with this patch - found no problems.
> > _f
> >
> > 17 apr 2009 kl. 18.10 skrev Josh Parmenter:
> >> this builds and runs fine for me on OS X intel.
> >>
> >> Thanks Marije,
> >>
> >> Josh
> >>
> >> On Apr 17, 2009, at 7:13 AM, nescivi wrote:
> >>> <serialport.diff>
> >
> >  #|
> >     fredrikolofsson.com     klippav.org     musicalfieldsforever.com
> >
> >  |#
> >
> > _______________________________________________
> > sc-dev mailing list
> >
> > info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> > http://www.listarc.bham.ac.uk/marchives/sc-dev/
> > search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/
>
> ******************************************
> /* Joshua D. Parmenter
> http://www.realizedsound.net/josh/
>
> “Every composer – at all times and in all cases – gives his own
> interpretation of how modern society is structured: whether actively
> or passively, consciously or unconsciously, he makes choices in this
> regard. He may be conservative or he may subject himself to continual
> renewal; or he may strive for a revolutionary, historical or social
> palingenesis." - Luigi Nono
> */
>
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> http://www.listarc.bham.ac.uk/marchives/sc-dev/
> search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

Parent Message unknown Re: [commit?] queryAllNodes and SerialPort

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 21 April 2009 07:10:24 Hans Samuelson wrote:
> Marije, would you be kind enough to send me a copy of your termios.h
> file, for my edification?

attached.
The one that is 5.3KB is the bits/termios.h

> My understanding is that different machine have slightly different
> hardware (UARTS) which may in some cases require a remapping of the
> purported baud rates (e.g. 38,400) to some other number or byte
> sequence. Since all Apple machines run essentially the same hardware,
> this is not an issue, but Windows and Linux both seem to have this
> kind of device-based variation.

> I  will think about whether there is another solution. As I mentioned
> earlier, the FTDI devices allow one to remap between incoming and
> outgoing speeds - they provide a spot in the plist file where you can
> define 9600 to mean anything you like, so long as the device supports
> it. I didn't test this yet; one working solution sufficed for me.

That seems a bit hacky though, and will only work for that device probably.

> But
> it would be more elegant to have something cross-platform, and
> probably more robust as well.

yes.

sincerely,
Marije

> Regards,
>
> H
>
> On 20-Apr-09, at 6:08 PM, nescivi wrote:
> > On Monday 20 April 2009 10:58:03 Josh Parmenter wrote:
> >> great fredrik, thanks. I'll wait for Marije's OK before applying.
> >
> > Unfortunately, it does break things on Linux.
> >
> > It gives the errors:
> >
> > Error setting cfsetispeed /dev/ttyUSB0 - Invalid argument(22).
> > Error setting cfsetospeed /dev/ttyUSB0 - Invalid argument(22).
> >
> > So, it seems that the SerialPort on linux does need the B9600 kind
> > of notation
> > to set the baudrate. Or maybe the implicit conversion from the input
> > integer,
> > to speed_t is incorrect.
> >
> > So, I will not apply the patch for the RC today.
> >
> > sincerely,
> > Marije
> >
> >> Best,
> >>
> >> Josh
> >>
> >> On Apr 20, 2009, at 7:30 AM, Fredrik Olofsson wrote:
> >>> applied and did some quick tests with this patch - found no
> >>> problems.
> >>> _f
> >>>
> >>> 17 apr 2009 kl. 18.10 skrev Josh Parmenter:
> >>>> this builds and runs fine for me on OS X intel.
> >>>>
> >>>> Thanks Marije,
> >>>>
> >>>> Josh
> >>>>
> >>>> On Apr 17, 2009, at 7:13 AM, nescivi wrote:
> >>>>> <serialport.diff>
> >>>

[attachment removed]
[attachment removed]