How to transfer files between Raspberry Pi PLC and your computer

This short tutorial will explain how to use Secure Copy Protocol (SCP) between a industrial Raspberry PLC and your PC
November 11, 2021 by
How to transfer files between Raspberry Pi PLC and your computer
Boot & Work Corp. S.L., Amil Shrivastava

Introduction

The SCP protocol transfers files between two systems on the same network. The host system sends the file to the remote system with added security and authentications. The SCP client can request files or directories that are to be downloaded or upload files to the ssh server.

Requirements

Both the systems should be connected to the same network, either wirelessly or via network cables. 

Note: It is also possible to access files of a system on a public network, though this blog is not covering that.

SCP is already installed in most of the systems. Especially if they are Windows, Linux or MacOs.

Steps

In order to use the SCP protocol, we first need to know the IP address of the PLC

To check which IP of your PLC without accessing it you can run the following scan on your PC:

nmap -sn 192.168.1.0/24

This will give you a complete list of all the devices in your network with their IPs and MAC addresses. 

Once you have the IP of the PLC, you can run the following command to send the desired file to the target client:

scp [email protected]: "Your file" "Location in the PLC where it needs to be saved"
scp [OPTIONS] [SOURCE] [DESTINATION]


This will request the password of the client. (Hence, the security feature)

and Voila, You have just sent a file to your industrial Raspberry Pi PLC using SCP protocol.


Useful links

Raspberry Pi PLC 



​Search in our Blog

How to transfer files between Raspberry Pi PLC and your computer
Boot & Work Corp. S.L., Amil Shrivastava November 11, 2021

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>>