Bluetooth to wifi pass through, not tethering, and not wifi to bluetooth - android

Im wondering if there's a way of bridging or using a 'pass-thru' to send data from a bluetooth connected device over wifi to another android device.
The real world scenario is;
I have a bluetooth OBD device (for reading your car specs in real-time)
This connects fine over bluetooth to my android phone running any OBD software.
But i also have an android based in car unit (gps, reversing cam, etc) but oddly enough it doesn't have a bluetooth radio/chip in it, only wifi.
So im wondering if it would be possible to run an app on the car unit and my phone to 'in essence' pass on the bluetooth data. Emulating a bluetooth radio on the car unit.
I know it can be done in reverse for tethering a data connection over bluetooth, but why not the other way around?
Other situations could be sharing a bluetooth device connected to one phone over wifi to many different phones???
Sounds plausible to me, but you guys are the experts!
What say you?

Related

Android - Is there a way to share a Wi-Fi connection with a connected peripheral device over BLE seamlessly?

I know that there are ways to share internet via:
Creating a hot spot on the mobile phone
Bluetooth tethering?
NFC tags
However all these processes require some manual effort on the user side.
I am wondering if there is a way to seamlessly do this for the user the moment we pair with their peripheral device over BLE. Is there a way I can programmatically share the Wi-Fi connection the moment we are successfully connected?
Use Case:
I have a new speaker that can connect over BLE
I successfully pair my phone with the speaker over BLE
My speaker after pairing also automatically joins the same wifi network as my phone after

Extract Mobile (android and IOS) Sensor data via Bluetooth without pairing

I know that connection between two Bluetooth devices can be made without pairing and maybe exchange files. My question is how can I extract accelerometer data from a smartphone without pairing? I already have a device that can locate the smartphone using Bluetooth signals only without connection or pairing. So, I don't have control or access over the smartphone, I only sense its location with a sensor.
You might want to use Bluetooth BLE (low energy), which doesn’t need pairing, but I’m not sure if you can access accelerometer data without using classic Bluetooth and pairing.

Why can't use Bluetooth and Wifi simultaneously?

This is hardware related question. But also software related.
I am making an Android app using bluetooth. And I tested my devices with wifi and bluetooth.
And the result is:
1. Wifi ON, connected & Bluetooth ON(possibile)
2. Wifi ON, connected & Bluetooth ON, connecting to bluetooth product such as ear buds (possible)
3. Wifi ON, connected & Bluetooth ON, connecting to other mobile devices (impossible)
4. Wifi ON, disconnected & Bluetooth ON, connecting to other mobile devices (impossible)
When I try 3 and 4 cases. I get a popup message
Can't use Bluetooth tethering while connected to Wi-Fi network
I'd like to make an app that send data between two devices. And each device might be connected to Wifi.
For example, the app uses Bluetooth to connect other mobile phone and also internet for getting & sending data to the server.
At that time, the internet connection could be Wifi. So, It shouldn't be disconnected.
One of the reason that I found says Bluetooth uses 2.4Hz, and it is the same Hz of 802.11.
according to here, It's kind of true.
It says,
802.11 Provides up to 2Mbps transmission in the 2.4GHz band
802.11b Provides up to 11Mbps transmission in the 2.4GHz band
802.11a Provides up to 54Mbps transmission in the 5GHz band
802.11g Provides up to 54Mbps transmission in the 2.4GHz band
802.11n Provides up to 450Mbps transmission in the 2.4/5GHz band
However, I don't get it because we can connect it to wireless ear phones over Wifi.
Could you explain its behaviour? And what can I do? Or should I just make an app that uses only Bluetooth without wifi?

Is it possible to connect BLE sensor device to android watch without a phone nearby?

Is it possible to connect BLE sensor device to android watch if the watch has BLE inside, without a phone nearby in the same manner like with a handheld device, i‘ve seen some questions on stackoverflow like this, for example
Is it possible to connect Android Wear device with another BLE device directly without interaction of phone device?
but they weren‘t answered, or the answers weren‘t clear.
Thanks in advance
BLE protocol only allows communication between a central and a peripheral device. The sensor surely is a peripheral device that advertises BLE packets and expose some services (for example the heart rate).
You need to figure out if the android watch support BLE in central mode.
In that case you will be able to scan for advertisement packets coming from peripheral devices (sensors), and connect to them.

How to build this android app (Bluetooth technology)

I am a little confused on how to build this android app. Here's how it should work. I have a list of paired bluetooth devices. Lets say paired devices are:
1. A bluetooth head set.
2. A mobile phone.
And my app should automatically connect only to my headset when ever it comes in range.
Thats the basic functionality. I have been doing some research on bluetooth technology and its implementation. I came across the bluetooth chat application, when I started using the application I realized that both phones should have the app on it in order to connect and exchange messages. I tried connecting to my headset but it doesnt connect. And also when I removed the bluetooth chat app from one of my device and tried to connect it from a device which had bluetooth chat app, the devices couldnt connect.
If you have already worked on bluetooth this might look very simple. But how can I connect to a bluetooth device from my app when ever its in range even if the other device doesnt have my app.
Thanks.
This will be a 2 sections answer:
-To connect to a Bluetooth Headset, check my answer on here
-To Always connect to that device, you can save device address to memory then create a service with BroadCastReciever that listens for Bluetooth Connectivity. and check which device gets connected and compare it address to the one save in memory once its finds it connected call ibth.connect(device). ibth is inside the above link.

Categories

Resources