Bluetooth usb mass storage

Mass storage device over bluetooth

I have a small portable usb recording camera which when connected to usb it shows the recorded files as mass storage device.
Now would like to connect the camera over Bluetooth using a module such as BL600.
Anyone knows if its possible?

arbj2

Full Member level 3

Joined Apr 10, 2012 Messages 166 Helped 10 Reputation 20 Reaction score 10 Trophy points 1,298 Activity points 2,697

you need to connect the camera to a USB host device. The host device will communicate with the usb device and make it possible for you to access the system.

There could be two options for you.

1. You can use the PIC24 series micro-controller to make a USB host system, bit this will involve a lot of work (USB part),the bluetooth part is relatively easy, but the USB host part will be a bit difficult, but Microchip provides tools and code for this, you see their site for more info.

2. If size is not a constraint, you could use a raspberry pi computer, or a beaglebone black computer. These are full fledged computers running on linux operating system, with support for numerous functions like, wireless , ethernet, USB etc.

But you do need to invest in a computer, either beaglebone black or raspberry (I use beaglebone black). And you also have to learn to interface the BL module to the computer, apart from that if you are not familiar with linux, also learn to use the linux OS. But then that should not be a problem as there are many tutorials and help pages for both the systems.

The raspberry has better user support than the beaglebone black, so you may consider going for that.If you need moe I/Os use the beaglebone black. Interfacing either of that should not be a problem.

But make sure the USB camera module is supported on linux, many manufacturers do not provide support for linux OS.

Источник

Team 2: Bluetooth Mass Storage Device

Presentation on theme: «Team 2: Bluetooth Mass Storage Device»— Presentation transcript:

1 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Patent Liability Analysis 1 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

2 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Bluetake’s Bluetooth USB 2.0 Pen Drive 2 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

3 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Patent Liability Analysis BT009M does have Bluetooth and storage capability Bluetake’s device cannot transfer files remotely BT009M is a Bluetooth adapter with separate storage capability 3 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

Читайте также:  Hp probook 6570b драйвера bluetooth

4 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Memsen’s Click n’ Share Flash Drive 4 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

5 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Patent Liability Analysis Memsen does not use Bluetooth for data transfer Memsen uses infra-red Cannot wirelessly connect to host PC directly Only connects to other Memsen devices 5 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

6 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Patent Liability Analysis Our device transfers data using Bluetooth to connect to a host device (i.e. PC) Our device can retain data on nonvolatile NAND Flash 6 Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

7 Team 2: Bluetooth Mass Storage Device
Team 2: Portable Bluetooth Storage Device Team 2: Bluetooth Mass Storage Device By Ryan Weaver Questions? Ryan Weaver Scott Pillow Yucel Parsak Yuri Kubo

Источник

Bluetooth usb mass storage

A short introduction.
Some older car audio systems allow USB connection to play music from mobile devices. The protocol used in older systems is Mass Storage Device.
Since Android 4, Android phones no longer support that without rooting and modding. (Thank you Google ). Now they implemented Media Transfer Protocol and Photo Transfer Protocol (MTP and PTP) which is not supported by older car audio systems.

Now I saw the Pi Zero W. That brought me to the following idea.

Have a pi zero w connected to the usb connection of the car audio system acting as a mass storage device.
Let the same pi zero w connect as a headless device to one (or more) smartphones and automount their media folders to a smartlinked folder on the pi zero w. 1. fully headless pass key is fixed, to be typed or checked on the phone only.

Now googling around gives me a huge bunch of results. At least I found some on the Mass Storage, but I could not find anything useful (yet) on the bluetooth connectivity.

If someone could point me into the right direction, I would be very happy.

scruss Posts: 5449 Joined: Sat Jun 09, 2012 12:25 pm Location: Toronto, ON

Re: Headless Blue tooth access point as USB Mass Storage Device

I think you’re looking for the File Transfer Profile Bluetooth Profile. I don’t know how widely supported it is.

thagrol Posts: 9498 Joined: Fri Jan 13, 2012 4:41 pm Location: Darkest Somerset, UK

Re: Headless Blue tooth access point as USB Mass Storage Device

The mass storage gadget doesn’t safely support access from both sides of the USB link unless both devices are accessing it read only.

This is because neither side can tell the other that it has made changes, both sides use caching, both expect exclusive access, and both require low level access.

As well as the above, the filesystem you’re exporting must be one that the USB host can understand. For most consumer devices that’s FAT32 (possibly xFAT, or NTFS but not as likely).

Читайте также:  Характеристика наушников sony беспроводные bluetooth

Also, the mass storage gadget uses a backing store that must be either a disk partition or a file (which presents to the USB host as a disk/partition). It can’t be passed a directory.

So, to do what you want, you need to present the phone’s storage to the mass storage gadget as a FAT32 formatted block device. That’s not impossible but isn’t trivial either

By using one of the storage area network protocols I’ve done something similar to give a TV with USB host access to my NAS (see here: https://www.instructables.com/id/NAS-Ac . d-Devices/). You might be able to adapt that to your use case if you use the bluetooth personal area network profile, you can partition your phone’s storage apropriately, and your phone(s) have server side drivers for the SAN protocol used.

Sorry to rain on your parade, but it’s better that you know this before trying something that may corrupt the data on your phones.

Knowledge, skills, & experience have value. If you expect to profit from someone’s you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

Re: Headless Blue tooth access point as USB Mass Storage Device

As I understand, as the mobile phone does not support Mass Storage Device

1. connect with bluetooth using File Transfer Profile Bluetooth Profile (goop, obex)
2. I should only mount it as read only.
3. The partition should be fat32 at best

but can it actually be powered from the usb to go port? Or does it really need powered using a second connection on the second micro usb socket?

thagrol Posts: 9498 Joined: Fri Jan 13, 2012 4:41 pm Location: Darkest Somerset, UK

Re: Headless Blue tooth access point as USB Mass Storage Device

You should be able to power a pi zerow from a host USB port.

The real problem you’re going to have is taking a file based interface (bluetooh ftp/obex) and presenting it to the host as a block device (FAT32 disk). These are very different things and work in different ways.

  • Client: give me a list of your files
  • Server: here you go
  • Client: give me file f
  • OS: give me n bytes of data starting at address a
  • device: here you go
    OS intreprets data as list of file names, start addresses, and sizes, finds start address and length of desired file (This is a simplification, data in any given file can be spread across the disk rather than in a single block)
  • OS: give me n bytes starting at address f

To do what you want to you’ll to have to convert between these two methods, in both directions, on the fly. It’s not impossible but it is non-trivial. You’d also need to do it fast enough that playback doesn’t suffer.

  • Headunit:give me n bytes of data starting at address a
  • pi: Bluetooth device give me a list of your files
  • Bluetooth device: here you go
    pi converts list to fake FAT32 data
  • pi: headunit, here you go
  • headunit: give me n bytes starting address a
    pi converts a to back to a filename
  • pi: bluetooth, give me file f
  • bluetooth: here you go
  • pi: headunit, here you go

In addition to that, short of faking a remove and re-insert event, there is no way for the zero to inform the head unit (the USB host) that its contentes have changed. I’d expect such a method to stop audio and trigger a full rescan of the storage.

Читайте также:  Ws 858 подключить через блютуз

Frankly, assuming that your phones can act as mass storage devices over USB (and every android phone I’ve used could) you’d find it simpler just to plug the phone into the head unit via a normal micro-USB cable.

Knowledge, skills, & experience have value. If you expect to profit from someone’s you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

Re: Headless Blue tooth access point as USB Mass Storage Device

Frankly, assuming that your phones can act as mass storage devices over USB (and every android phone I’ve used could) you’d find it simpler just to plug the phone into the head unit via a normal micro-USB cable.

as I wrote earlier.. someone at Google/Android decided to remove the mass storage feature and replace with MTP / PTP which by windows is treated as mass storage thanks to some driver.

a somewhat older car audio system with usb connection cannot handle MTP / PTP thus fails at connecting over USB

meanwhile I got hold of an iPhone 6.. same problem. no mass storage device. error messages galore.

to connect to older car audio systems using the USB connect does require mass storage device features.

The only way I can make an android phone act as mass storage device is root it and then I can add the feature. I can do that of course on my own phone, but can hardly ask the soccer team mates of my kids to root their devices.. and that is the goal of all this..

thagrol Posts: 9498 Joined: Fri Jan 13, 2012 4:41 pm Location: Darkest Somerset, UK

Re: Headless Blue tooth access point as USB Mass Storage Device

The only way I can make an android phone act as mass storage device is root it and then I can add the feature. I can do that of course on my own phone, but can hardly ask the soccer team mates of my kids to root their devices.. and that is the goal of all this..

In which case, unless you’re a C/C++ programmer with experience of linux device drivers and low level filesystem access/drivers you’re going to be out of luck.

I’m not one of those, I’m afraid.

And you’re right, MTP/PTP won’t cut it for much the same reason that bluetooth FTP won’t. Sorry for my confusion there.

The only quick and easy solution left that I can think of is to look into bluetooth audio receivers if your head unit has an aux input or fm transmitters if it doesn’t. These won’t allow control from the head unti but will get music from a random phone into it.

As a final thought, if your head unit does have an aux input, you could skip bluetooth entirely and just go with a sufficiently long cable.

Knowledge, skills, & experience have value. If you expect to profit from someone’s you should expect to pay for them.

Источник

Оцените статью
Adblock
detector