How to send command like "ls" to FX30 by Octave?

Hi,

How could I send command to FX30 by Octave ?

Hi Larry,
You can’t send terminal commands over Octave.
Can you tell us more about what you are trying to achieve?
Best
Nicolas

Hi @njoyeux ,

I want to control device which connect on FX30 maybe by USB or other, so how can I do it?

Hello Larry,

The standard services offered via Octave/FX30 to interact with connected devices are the following:

GPIOs
Modbus TCP or Modbus RS485/RS232
CanOpen
Universal Serial Parser
Octave Resource Protocol

Browse to this link for more information on Octave services

Octave will also allow you to transfer files through the FX30 and your connected assets.

Sending OS commands to the FX30 OTA can expose the device to security risks. Octave Services are protected by security of the Octave platform and infrastructure described here:

I hope this helps.

Hi @djudkins ,

My think is that I use ORP to send file the read file on FX30 to trigger device do something, does it work ?

Hi Larry,

Can you give me details on what you would like the trigger the device to do?

Hi @djudkins ,

I just want to like camera to take photo.
Can it work ?

Hi Larry,

I assume there is a specific OS command or API to have the camera take a photo?

Hi Larry,

Think of ORP as a protocol to communicate (push, pull, monitor sensor values or control file transfer between the FX30/Octave and a connected sensor or asset. As long as can you write a python , BASH C++ , etc script that can execute the commands on the FX30 that you require and use ORP as the protocol to transfer data, you can accomplish your use case.

The ORP tutorial is here:

Hi @djudkins ,

Thanks for your reply.

As I know ORP is used in Linux and Can I send file or data to FX30 by Octave?

BTW I know use ORP to get file, but I don’t know where the file store in FX30.

Can you give me an example by using ORP or OCTAVE to FX30 and using script
or python to read the file ?

Hello Larry,

Files are located at /data/le_fs/fileStream/files

See Introduction to the File Transfer Service

Example C code can be downloaded here:

The use case for this service was originally designed for customers who required a secure method to accomplish firmware or application updates on the remote asset.

Please keep in mind, this service is designed so that files can be transferred from your server to the Octave platform (manually or programmatically) and then transferred down to the Octave branded FX30/FX30S and then to the remote asset.

The remote asset should support a programmatic method to update it’s firmware or application when the new update file has been transferred from the FX30 to the remote asset via ORP.

Currently, the file transfer service does not support pulling files from the remote asset to the FX30 and sending them up to the Octave Platform.

Furthermore, because the Octave device can only communicate with the Octave platform, the Octave enabled FX30/FX30S cannot communicate (or send files) to an external platform (use of SFTP/FTP, SCP, HTTP Post, etc).

So, if you are taking a picture, and the file is stored on the FX30/FX30S, and you wish to push the picture files up to the Octave platform and then over to your platform, I don’t think this is possible at this time. I will take a closer look at how this might be accomplished.

Hi @djudkins

Thanks for your reply.

Other question:

How can I build UVC driver in FX30s ?

use leaf ? or download WP77xx legato source ?

Hi Larry,

How can I build UVC driver in FX30s ?

No, you cannot on an Octave FX30, but you could on a generic (open source) FX30 . Open source FX30s cannot communicate with Octave.

use leaf ? or download WP77xx legato source ?

Same as above, you cannot on an Octave FX30. The reason is that anytime you upgraded the firmware on Octave FX30, your modifications would be lost. You could on a generic FX30, but again yo could not utilize Octave.