PDA

View Full Version : Bluetooth, Android, and nothing more!


Hero
December 1st, 2014, 09:07
Hi guys

Recently I'm trying to code something special in android for Bluetooth connection.
But from what I found in Internet, it seems that there no simple answer to this question.
So I thought to ask it here, maybe someone knows something that I couldn't find in Internet.

Here is my problem:
I want to send data broadcasts via Bluetooth, so people near my device receive that data if they are listening for such broadcast(exactly like wired network broadcasting, but with Bluetooth).
I don't want to search for nearby devices and connect them one by one if possible, but specially I don't want pairing(will not be funny that everone need to pair with a local area messaging device)
Do you think is it possible to this?

On another question, will similar thing be possible via wireless?

Regards

Woodmann
December 1st, 2014, 21:11
It will be up to the people who want to receive the broadcast to link to the device id.
As far as I know there is no way to initiate a bluetooth connection any other way.
I suppose you could hijack an active connection. I have no idea how.

Do I understand you correctly ?

Woodmann

Hero
December 3rd, 2014, 15:34
I just wanted that sender does not need to create a p2p connection to other devices to send data 1 by 1.
But if there is no way for it, at least I don't like that receiver need to pair with sender to receive that data.

Woodmann
December 3rd, 2014, 20:14
Maybe you could "push" the data ?

Woodmann

Hero
December 5th, 2014, 05:54
haha..
do you mean OBEX?
I thought myself too. I didn't see any limitation for pairing in OBEX, but it seems android has applied its own limitations for obex.
I may try to go through OBEX too.
btw, any idea that this approach is possible for wifi?

Regards

Woodmann
December 5th, 2014, 21:11
I dont see any reason why obex over wifi wont work.
It may not be simple but you dont need to be paired.

Woodmann

BanMe_2
December 6th, 2014, 19:40
How to use Android Bluetooth Communication http://www.doepiccoding.com/blog/?p=232

check this out in ida or olly http://www.nirsoft.net/utils/bluetooth_viewer.html