# How to send file from edge action to remote asset?

**URL:** <https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572>\
**Category:** Octave\
**Created:** [March 16, 2022, 1:32am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572 "2022-03-16T01:32:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 16, 2022, 1:32am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/1 "2022-03-16T01:32:46Z")

</div>

Hi,

I have a question about file transfer from ORP to remote asset.

How to I do this I can’t find the document about ORP send files to remote device by RS232 to serial USB?

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 16, 2022, 2:53am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/2 "2022-03-16T02:53:15Z")

</div>

You can find the information on the online help.

> **[Configuring ORP for File Transfers](https://docs.octave.dev/docs/configuring-orp-for-file-transfers)**
>
> Octave's file-sending functionality involves the use of Octave Resource Protocol (ORP) to manage file transfers using ORP packets. For more information see ORP and File Transfer Overview in the ORP reference guide.

---

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 16, 2022, 3:22am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/3 "2022-03-16T03:22:37Z")

</div>

Hi @djudkins ,

Thanks for your reply,

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/9/979c2ceb1d68e12fc27d1fd8a1d0eadcaeb4ab7e.png)

I already find the online help, but I can’t open “ORP and File Transfer Overview”.

And I find other help like [Sending Files to your Asset](https://docs.octave.dev/docs/sending-files-1)

![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/0/01eb5cecebd46527d44f369903ea15a8d71f3260.png)  
I want to do step 3, but I have no idea.  
Can you help me how to do this? (My device is FX30s and use RS232 to usb)

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 16, 2022, 2:00pm UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/4 "2022-03-16T14:00:51Z")

</div>

Hello Larry,

I also got the 404 error, we will correct this ASAP., Thanks for this post!

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 16, 2022, 2:14pm UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/5 "2022-03-16T14:14:21Z")

</div>

Larry,

You can get to the problematic link here:

> **[Octave Resource Protocol Reference Guide](https://docs.octave.dev/docs/octave-resource-protocol#orp-transfer-sequence)**
>
> This topic describes the Octave Resource Protocol, which is the protocol that facilitates communications between your assets, Octave edge device, and the cloud. What is the Octave Resource Protocol? Octave Resource Protocol (ORP) is a simple...

---

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 17, 2022, 2:34am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/6 "2022-03-17T02:34:20Z")

</div>

Hi @djudkins ,

I study the link [Octave Resource Protocol Reference Guide](https://docs.octave.dev/docs/octave-resource-protocol)

but I still understand how to do it (Send file from Octave to Remote device: like ubuntu)

Does it have a sample to do this ?  
Octave send to remote asset?

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 17, 2022, 12:13pm UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/7 "2022-03-17T12:13:39Z")

</div>

Hello Larry,

The send file is documented here

> **[Sending Files via the Octave Dashboard](https://docs.octave.dev/docs/sending-files-via-the-octave-dashboard#follow-up-on-the-send-file-operation)**
>
> This topic describes how to send files using the Octave dashboard. File Transfer Campaign Now that the Remote Asset is integrated with the Octave file transfer feature (i.e., start-up, file-sending control (optional), and file-transfer sequences are...

Here is a complete file transfer tutorial with sample code

> **[Sending Files via the Octave Dashboard](https://docs.octave.dev/docs/sending-files-via-the-octave-dashboard#tutorial-orp-file-transfer-using-an-example-program)**
>
> This topic describes how to send files using the Octave dashboard. File Transfer Campaign Now that the Remote Asset is integrated with the Octave file transfer feature (i.e., start-up, file-sending control (optional), and file-transfer sequences are...

If you wish to use the Octave APIs instead of the Octave UI, the API tutorial is here:

> **[Sending Files using the API](https://docs.octave.dev/docs/sending-files-using-the-api)**
>
> This topic describes how to send files using Octave's REST API. File Transfer API Overview When using your Cloud, a file transfer campaign consists of three interactions using three distinct endpoints in Octave’s REST API: File API to download (POST)...

---

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 18, 2022, 3:00am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/8 "2022-03-18T03:00:03Z")

</div>

> [@djudkins](#):
>
> [https://docs.octave.dev/docs/sending-files-via-the-octave-dashboard#tutorial-orp-file-transfer-using-an-example-program](https://docs.octave.dev/docs/sending-files-via-the-octave-dashboard#tutorial-orp-file-transfer-using-an-example-program)

Hi @djudkins ,

Thanks for your reply, I already read these documents, and I also download [GitHub - SierraWireless/octave-orp: Octave Resource Protocol](https://github.com/SierraWireless/octave-orp)

And I try to use the ORP to download file to my Ubuntu.

I want to download file from Octave and the file I upload by Octave dash board.  
So I can see the file in /files/list, like below

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/d/d31cb00121c4ab8fbc436277bb57b9566be53091.png)

How can I download the file to my Ubuntu?

I want to download the file to my PC. Please help me thanks…

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 18, 2022, 4:57pm UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/9 "2022-03-18T16:57:46Z")

</div>

Hi Larry,

Have you implemented the ORP file transfer code on your Ubunto?

This is a part of Step 3  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/0/068f402bff487399aa93b77d15777c0c6c2cc81c.png)

and described in detail in the following link

> **[Sending Files to your Asset](https://docs.octave.dev/docs/sending-files-1)**
>
> Octave can perform over-the-air file transfers down to assets connected with the Octave service via an FX30 or FX30S. This functionality involves connecting the FX30 or FX30S to the asset via Octave Resource Protocol (ORP) over a serial interface....

and more specifically

> **[Octave Resource Protocol Reference Guide](https://docs.octave.dev/docs/octave-resource-protocol#file-operations)**
>
> This topic describes the Octave Resource Protocol, which is the protocol that facilitates communications between your assets, Octave edge device, and the cloud. What is the Octave Resource Protocol? Octave Resource Protocol (ORP) is a simple...

---

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 21, 2022, 12:47am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/10 "2022-03-21T00:47:16Z")

</div>

> [@djudkins](#):
>
> Have you implemented the ORP file transfer code on your Ubunto?

Hi @djudkins ,

How should I do it and what API should I use Edge Action?

Like this ?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/2/229a28d5331a50cc12f4f84f4f2f168fc147e8a5.png)

I can use it and create, add handler, get or set.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/1/1f4aca0c377d7c5b5feebe3c9e853f5e5a3bae3f.png)

But it cannot download the file like below and the file path is “/data/le\_fs/fileStream/files”:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/d/dd393207352adde41cc0917af9fca82f1be85408.png)  
So Can I download the file in the path?

Do you have any examples in edge action that I can refer to?

Q2. I have a question about file transfer?

Following the flow like below:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/5/543350d1e32bc8f3b83872b21d77f8483b74839d.jpeg)

The first step is “SYN” and how do I send the command  
“$ orp\> sync syn XX”

How could I get file info with what command ?

If I want to get file size how do I get the value?

Q3. When I use “file control ready” and “file control start -a ” and my file looks locked

![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/5/5eec5c5e8a518765bdf227b1f49f5f09b3ea5c3d.png)

Do I lose finished command for unlock file?

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [March 21, 2022, 1:47pm UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/11 "2022-03-21T13:47:59Z")

</div>

Hi Larry,

At this link you can a watch a video with step by step detail on how the file transfer from the Octave device to your asset works.

[![](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/2/24bbca0c848fdd30d769dfcddfc3077861bd0055.jpeg "What's New in Octave: ORP File Transfer & Octave Plug & Play Connector to IoT Central - Oct 7 2021") ](https://www.youtube.com/watch?v=aT1AFvnkNHc)

If you are still having issues after this, we can point you to resources who can implement this for you via a service contract

---

<div class="post-metadata">

**Author:** ![larry1](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@larry1](https://forum.sierrawireless.com/u/larry1)\
**Post date:** [March 28, 2022, 4:04am UTC](https://forum.sierrawireless.com/t/how-to-send-file-from-edge-action-to-remote-asset/26572/12 "2022-03-28T04:04:31Z")

</div>

Hi @djudkins ,

Thanks for your reply.

I have looked the video and have some questions

How can I get sync packet

The document says every 5 sec will receive sync packets

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/9/9bcb9446de8a105d63ff6927343c9d681589241f.png)

But in my case I can’t see the information.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/f/ff99fb74c33f8a5782915c2e45e0d5f57d36b02e.png)

And sometimes I can’t get response.  
So my question is “How could I check the client is connected to server in ORP?”
