Re: [casper] borph interface question

2008-03-31 Thread David MacMahon
On Mar 31, 2008, at 13:47 , John Ford wrote: You can set the ioreg_mode parameter to accept either ascii hex or binary. But using the binary interface with your incantation does work! Here's a handy way to make things (at least the IP address part) more readable... echo -ne `printf '\\x

Re: [casper] borph interface question

2008-03-31 Thread John Ford
ow block" >>>> for the >>>> register. If you use fwrite() in C to write to the /proc register >>>> file it >>>> works though; you need to explicitly use an unsigned variable type >>>> though. >>>> >>>> Peter >

Re: [casper] borph interface question

2008-03-31 Thread David MacMahon
1 March 2008 11:48 AM To: John Ford Cc: casper@lists.berkeley.edu Subject: Re: [casper] borph interface question Peter was having this same problem using 'echo >' this past weekend. I do not see this issue with the UDP_framework on the correlator, so i suspect the problem is that some underlying

Re: [casper] borph interface question

2008-03-31 Thread John Ford
;> -Original Message- >> From: casper-boun...@lists.berkeley.edu >> [mailto:casper-boun...@lists.berkeley.edu] On Behalf Of Jason Manley >> Sent: 31 March 2008 11:48 AM >> To: John Ford >> Cc: casper@lists.berkeley.edu >> Subject: Re: [casper] borph

Re: [casper] borph interface question

2008-03-31 Thread David MacMahon
rkeley.edu [mailto:casper-boun...@lists.berkeley.edu] On Behalf Of Jason Manley Sent: 31 March 2008 11:48 AM To: John Ford Cc: casper@lists.berkeley.edu Subject: Re: [casper] borph interface question Peter was having this same problem using 'echo >' this past weekend. I do not see this issue

Re: [casper] borph interface question

2008-03-31 Thread Peter McMahon
d variable type though. Peter -Original Message- From: casper-boun...@lists.berkeley.edu [mailto:casper-boun...@lists.berkeley.edu] On Behalf Of Jason Manley Sent: 31 March 2008 11:48 AM To: John Ford Cc: casper@lists.berkeley.edu Subject: Re: [casper] borph interface question Peter was h

Re: [casper] borph interface question

2008-03-31 Thread Jason Manley
Peter was having this same problem using 'echo >' this past weekend. I do not see this issue with the UDP_framework on the correlator, so i suspect the problem is that some underlying code is assuming signed values. C code reading/writing in binary transfer mode to the proc-ioreg filesyst

[casper] borph interface question

2008-03-31 Thread John Ford
Hi all. We're rapidly closing in on a testable version of our system. I'm writing some scripts to set up some variables using the ioreg interface, and I've come across a very strange problem. Trying to set large values through the shell seems to fail. For instance, setting the ip address in a r