Opentrons / buildroot

The Opentrons fork of buildroot for building the OT2 system. Our default branch is opentrons-develop.
http://buildroot.org
Other
10 stars 7 forks source link

SCP with OT-2 as client question #161

Open curtiskennedy opened 2 years ago

curtiskennedy commented 2 years ago

Apologies if this is the wrong place to ask this question.

Our lab currently uses SCP with a windows client to transfer csv files to the OT-2 which are then read by protocols. We are wondering if we could instead use SCP with the OT-2 as the client, as described in the following use case.

Use case

Python API protocols on the OT-2 will be able to fetch csv files from server(s) using scp/ssh. These csv files can then read and used by the protocol, and the protocol can delete them from the OT-2 upon completion.

Question

Is there a way that we could set up such a workflow? We've tried to run ssh and scp commands from the OT-2 and run into the following errors:

ssh command error: -sh: ssh: not found

scp command error:

/usr/bin/dbclient: No such file or directory
lost connection
mcous commented 2 years ago

Apologies if this is the wrong place to ask this question.

This is the best place to ask this question!

The OT-2 does not currently have an SSH client installed. It is, however, able to make HTTP(S) requests. Is your server able to host the files over HTTP?

curtiskennedy commented 2 years ago

Appreciate the response and adding the feature-request!. I do believe we can set up HTTP file hosting and will look into this solution. Thanks!

mcous commented 2 years ago

Chatted this over with some folks here and there's a general sentiment that adding an SSH client to the OS is a good move. It definitely can't happen until after #148, though, so don't hold your breath!

Will post updates in this thread when we've got more to report