mkk1981
Posts: 3
Joined: Tue Apr 04, 2017 7:39 am

Automating file transfer with Bluetooth from RPi3 to Smartphone

Tue Aug 29, 2017 4:21 am

Hi,

I've trying to create a bash script in order to automate file transfer using the Raspberry Pi 3 Bluetooth to a smartphone which has already been paired. I would highly appreciate it if someone could provide me with help regarding this script.

Cheers
Karim

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Automating file transfer with Bluetooth from RPi3 to Smartphone

Tue Aug 29, 2017 10:42 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

mkk1981
Posts: 3
Joined: Tue Apr 04, 2017 7:39 am

Re: Automating file transfer with Bluetooth from RPi3 to Smartphone

Tue Aug 29, 2017 12:34 pm

Hi Rattus,

I do appreciate the help, but I've been able to send and receive files both from the RPi3 unit to the smartphone and vice versa.

What I'm trying to understand is to be able to automate the process by running a automated script? :) :D

jahboater
Posts: 5825
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Automating file transfer with Bluetooth from RPi3 to Smartphone

Tue Aug 29, 2017 2:13 pm

Start by putting the commands you usually type into a file.

The first line should be "#!/bin/dash", then your commands one by one after that.

When you have finished, make the file executable with "chmod +x myscript".

If its not on your path (echo $PATH) you can run it with "./myscript".

You can use the nano editor to create the file.

Return to “General programming discussion”