use strace to watch a file that's named something like
/opt/OpenPCR/bin/OpenPCR/STATUS.TXT
This is a great thread, I have a similar interest in understanding and using a "standard" API for PCR machines, the OpenPCR approach seems like it has the basis of some good first practices, like articulating thermocycling programs in yaml etc.
Mac
231.313.9062 // @100ideas // sent from my rotary phone
On Mar 22, 2012, at 11:06 AM, Cathal Garvey <cathalgarvey@gmail.com> wrote:
> OK cool, so using the strace info (thanks Nathan!) and directing stuff
> with hard-quoted (' rather than ") echo commands to the "CONTROL.TXT"
> file in /media/OPENPCR, I got it to start a program and stop a program.
>
> It's probable that last time I tried this and failed (ruling it out as a
> possibility thereby), it failed merely because I was using the wrong
> quotation mark: " only ignores spaces, but special characters like
> slashes etc. still screw it up, whereas ' sends the literal enclosed
> string without interference.
>
> So, here's what I sent and had success with:
> To start:
> paragon@Tranquillity:~ echo -n
> 's=ACGTC&c=start&t=50&d=55709&l=96&n=IndieBB MCS
> Check&p=(1[75|95|Initial
> Step])(40[20|95|Step][10|60|Step][32|70|Step])(1[120|70|Final
> Step][0|4|Final Hold])' > /media/OPENPCR/CONTROL.TXT
>
> To stop:
> paragon@Tranquillity:~ echo -n 's=ACGTC&c=stop&t=50&d=55710' >
> /media/OPENPCR/CONTROL.TXT
>
> The program syntax can be deciphered from the first command.
> All commands start with 's=ACGTC'.
> The '&c=start' part says to start with the ensuing program.
> Not sure what '&t=50' or '&d=55709' mean.
> '&l=96' means set lid to 96C.
> '&n=IndieBB MCS Check' means set the displayed name to "IndieBB MCS Check".
> '&p=(<Initial>)(<Cycle>)(<End>)' is the program itself.
>
> On 22/03/12 13:10, Cathal Garvey wrote:
>> Hey all,
>> Of those who own and love their OpenPCR, has anyone tried using Terminal
>> to send programs over the wire, or to get real-time output from the machine?
>>
>> I'm running Ubuntu, and I'm wondering if I can use echo and/or cat with
>> piping to send commands directly to the device (which is currently
>> /dev/sde, mounted as /media/OPENPCR).
>>
>> The end goal would be to translate this totally manual approach into a
>> python script, perhaps with a GUI to match eventually, as a way to
>> replace the Adobe Air interface. Although I got the Air interface
>> working with Tito and Josh's help, really the problem isn't going away;
>> shortly before release of the OpenPCR, Adobe cut support for Air in Linux.
>>
>> Would be nice to have an Open Source language working for my Open Source
>> PCR machine. :)
>>
>
>
> --
> www.indiebiotech.com
> twitter.com/onetruecathal
> joindiaspora.com/u/cathalgarvey
> PGP Public Key: http://bit.ly/CathalGKey
>
> --
> You received this message because you are subscribed to the Google Groups "DIYbio" group.
> To post to this group, send email to diybio@googlegroups.com.
> To unsubscribe from this group, send email to diybio+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/diybio?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "DIYbio" group.
To post to this group, send email to diybio@googlegroups.com.
To unsubscribe from this group, send email to diybio+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/diybio?hl=en.






0 comments:
Post a Comment