Type ls-l to verify that you have downloaded this. Obviously, replace AC:B5:7D:E2:52:CD with the address of your laptop We can now download a file from the laptop -Į.g. The output will show folders and files in the laptop Bluetooth exchange shared folder. Type sudo obexftp -b XXXXXXXX (laptop address) -c / -l We are now able to transfer files to and from the bluetooth device and the laptopįrom the same (2nd )putty terminal, firstly get the tree of directories from the laptop. ALSO, SOME LOW SPEC SMART/CELLPHONES DON'T HAVE OBEX FILE TRANSFER PROGRAMS) (NOTE - OTHER BLUETOOTH SERVICES INCLUDE AUDIO AND CAN BE ACCESSED USED APPLICATIONS OTHER THAN OBEXFTP. Service RecHandle: 0x10015 Service Class ID List: "OBEX File Transfer" (0x1106) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 4 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0圆56e encoding: 0圆a base_offset: 0x100 Profile Descriptor List: "OBEX File Transfer" (0x1106) Version: 0x0100 Importantly, you should see something like this which makes a reference to ObexFTP, This displays a list of available bluetooth services. Remember, that you will find the laptop address in the 1st putty session which is running Bluetoothctl. On the 2nd session, type sudo sdptool browse XXXXXXXXXXX - the address of the laptop (e,g, AC:B5:7D:E2:52:CD in my case). Remember that you should still have two RPi putty sessions running 1) for Bluetoothctl and 2) a general one Save the file and execute the following commands Sudo nano /etc/systemd/system//rviceĮxecStart=/usr/lib/bluetooth/bluetoothd -noplugin=sap (note if you can't find this file, type sudo find / -name "rvice") To remove this sap error, change the bluetooth service to ignore Sap by using nano or another editor to access the service file Loaded: loaded (/lib/systemd/system/rvice enabled)Īctive: active (running) since Tue 16:28:15 UTC 4s agoĭocs: man:bluetoothd(8) Main PID: 16899 (bluetoothd) Status: "Running" CGroup: /system.slice/rviceĪug 01 16:28:14 raspberrypi bluetoothd: Bluetooth daemon 5.23Īug 01 16:28:14 raspberrypi bluetoothd: Starting SDP serverĪug 01 16:28:14 raspberrypi bluetoothd: Bluetooth management interface 1.14 initializedĪug 01 16:28:14 raspberrypi bluetoothd: Sap driver initialization failed.Īug 01 16:28:14 raspberrypi bluetoothd: sap-server: Operation not permitted (1)Īug 01 16:28:15 raspberrypi systemd: Started Bluetooth service. I logged on to the Pi using Putty and accessed the command line.Ĭheck the current status of Pi Bluetooth Service from the command line prompt type sudo service bluetooth status Some applications and scripts to automate this process Discover the Rpi and pair it with the laptopĤ. Make the RPi discoverable using Bluetoothctl (RPI Bluetooth Agent)Ģ.2. ![]() Secondly, when this is done, you can use applications such as obexftp for file transfer.ġ.2. When you're setting up bluetooth, firstly,you have to configure and set up the connections with other devices. I installed the RPi as headless, using the image -raspbian-jessie-lite - downloaded from and to keep costs down, I am using a RPi Zero W v 1.1. I have a Lenovo laptop running running Windows 8.1. DO NOT USE THIS METHOD TO TRANSFER PERSONAL OR SENSITIVE DATA OR IN A PUBLIC.OPEN ENVIRONMENT) (PLEASE NOTE THAT I AM USING THIS METHOD WITHIN A CLOSED ENVIRONMENT. To keep it simple, I will show how to transfer photographs but the idea is the same. ![]() I am using the Pi to capture temperature data from a sensor and I want periodically to transfer the log file to the laptop where I can view it using Excel. My objective was to set up a method to transfer files from a RaspberryPi (Rpi) to a Laptop by bluetooth, and vice-wersa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |