Receiving, sending and saving files through Bluetooth Classic with an ESP32 - bluetooth

I am working on a project right now that can work way better if I am able to receive and save files from an Android app to the flash memory of an ESP32CAM and send said files back.
I have looked around but haven't really found anything on the matter. The Android app sends tthe messages through the Java intents and activities.
Does anyone have any idea how I can receive the file and save it to either flash memory or an SD card?

Related

Create MediaSource from AudioPlaybackConnection

I'm trying to make my windows computer a valid output for bluetooth audio from my phone. Enabling the actual audio was easy enough using the winrt AudioPlaybackConnection, but I'm trying to get metadata working and running into dead ends in the Windows UWP documentation. I'm familiar with the MediaPlayer class, but I can't see how to set the source to the AudioPlaybackConnection. My next thought was to create a MediaPlayer and handle the controls/metadata myself, but I can't see how to access the metadata for the AudioPlaybackConnection either. I tried getting the BluetoothDevice matching the same phone since I see the properties for the actual device list AVRCP Transport and A2DP SNK as two separate hardware "devices" making up the phone device, but I have no more luck accessing metadata with the BluetoothDevice. I know Windows 10 supports Bluetooth's AVRCP and can handle metadata/controls (source), but I'm beginning to think it's under a different device in winrt and I don't have the winrt know-how to track it down.
I've consulted the Bluetooth team about this. But currently, control like this is not supported in Windows at this time. You could submit a feature request about this in the Feedback Hub. Please select Developer Platform->API Feedback as the category when you submit your request. The related team will check the request.

While working, How do you share codes, files between two devices?

While working, I'm always having problems related to data sharing.
For example:
I have a computer connected to the printer but my laptop is not and I want to print a file, how do I easily move that file to the printer computer?
How to share a file from my mobile to laptop?
What I'm doing right now is moving the file using a USB disk, e-mail address or facebook.
You as developers, what are you doing for such purposes?
What I do is using network because its fast and safe.
But if I have a good internet connection I would suggest you to use Ziggs.io - Smoothly Share Content Between Devices.
The bad fact about Ziggs is that you need an internet connection to use it.
What I like about it that you don’t have to register, you can share files up to 500 MB per file and they don’t store messages.
More about Ziggs from their website:
What is Ziggs?
Ziggs is a platform that exists to facilitate peoples communications
Ziggs is like a meeting point with your devices, it helps you to
transfer contents between these devices smoothly.
Drag-and-drop PDFs,
images, videos, APK apps and other files directly into Ziggs.
Messages
are delivered directly from your device to the connected clients.
Ziggs doesn't store any type of data and doesn't require your personal
information.
Ziggs uses smart solutions based on client-side to share channel conversation history with new clients.
Exists channel clients will act as seeds, helps new clients to follow up with the conversation.
I've built my own cloud for this exact function:
https://www.github.com/TheWlr9/LocalCloud
However, this question should've been posted on some forum page, and not Stack Exchange.

Bluetooth: how to send large files

I need to make an Android application that sends large files (100-500 KB) over Bluetooth.
It is very important to preserve the integrity of the data, avoid any corruption of the files sent.
Please should I implement my own protocol?
Is there a suitable profile that I can use? (it seems profiles support is limited in Android...)
Any third party library?
This depends on the profiles that are implemented.
OPP - Object Push Profile can send files, but this is often limited to V-cards and in some case images.
FTP - File Transfer Profile can send larger files.
There is no specific application needed, you should be able to do it from native android as long as both devices supports the profile in question.
For example, enter the gallery and choose to share an image over Bluetooth, then select the receiving party.
Or enter file manager and choose to share file over Bluetooth.
If you want to write your own program that sends files, you can find the specifications for the profiles and protocols on Bluetooth.org or developer information on Bluetooth.com

How to capture Siri's audio data

I'm currently developing a Cydia tweak about speaker recognition on iPhone. This tweak can identify if the current user is the phone owner (after training). This tweak has already be implemented on Android and we have already compiled and tested the core library. The only difficult that we are facing is how to capture the audio data from Siri. We have tried:
hooked function "- (void)_tellSpeechDelegateRecordingWillBegin" and "- (void)_tellSpeechDelegateRecordingDidEnd" and used AvAudioRecorder to record the audio - failed because all the AvAudioSession will be interrupted when Siri is recording.
hooked function "- (void)startSpeechRequestWithSpeechFileAtURL:(id)arg1". This function seemed to be something related to the audio file but we could then get the function hooked with Logos tweak framework.
There are two possible ways we are considering:
Implement a low level audio recorder that can bypass Siri's interruption. (Something like a call recorder.)
Implement a Http(s) proxy server inside iPhone and capture the requests which forwards to the Siri's server.
But we have little experience for those options. Does anyone have ideas to capture the audio from Siri (by the phone but not through a external server)
Update (Feb 12 2014)
Check this.
I found there was a class named "AFSpeechRecorder". It was used in Siri. I guess it must be related to the audio data. But unluckily, this class is removed in the iOS 7. Can't get any idea about the changes.

How can I know what bluetooth stacks are installed in my cellphone and how to they works?

I want to send almost 4k size data to any cellphone by using bluetooth.
Firstly to do this, I need to find what stacks are in my phone and what stacks are acting when I send a data.
I really struggle to find the way; however, it is really hard.
If you know how to find it, please give me some information!!
See http://32feet.NET if you are talking about Windows Mobile. It is a managed library for Bluetooth, OBEX, and IrDA. We support both the Microsoft stack, but also have support for Widcomm. And now also Bluesoleil and Stonestreet One Bluetopia.
You can either send and receive the data as an OBEX message, or over a simple bluetooth connection. See a copy of the user's guide at http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20—%20User’s%20Guide.html
Goto "https://www.bluetooth.org/tpg/listings.cfm" type the name of your mobile. This will give you information on the Bluetooth stack inside and the profiles supported.

Resources