Reply
Thread Tools
Posts: 100 | Thanked: 19 times | Joined on Jan 2010
#1
I was wondering if there's a way to enable bluetooth advertising. I'm no good at coding for any such things :P .. but, what'd be cool is if the n900 was a portable bluetooth advertising server, and in the future, it could probably have a database of all the bluetooth devices it would've sent content to, and possibly avoid them ...

just a thought...
 

The Following User Says Thank You to adalal For This Useful Post:
Posts: 543 | Thanked: 151 times | Joined on Feb 2010 @ Germany
#2
I like the idea
 
klepto's Avatar
Posts: 14 | Thanked: 15 times | Joined on Nov 2010 @ Scotland
#3
I don't like that idea
 

The Following 2 Users Say Thank You to klepto For This Useful Post:
Posts: 227 | Thanked: 51 times | Joined on Feb 2006
#4
Possible and not that hard but it would drain your battery like crazy...

periodically a script would do an hcitool scan of the area then attempt a obex push of your data to the device and then add it to a database of bluetooth MAC's that had been tried.

Obnoxious but in certain environments might be a good idea.

David
__________________
David Smoot
 

The Following 2 Users Say Thank You to djs_tx For This Useful Post:
Posts: 41 | Thanked: 7 times | Joined on Dec 2009 @ Oslo, Norway
#5
You can tweak this.

http://gecco.wordpress.com/2009/04/23/bluespampy/
Code:
#!/usr/bin/python

import os
import string
import time

while 1>0:
	dev_scan = "hcitool scan"

	list_dev=os.popen(dev_scan)
	tot= list_dev.read() 
	tot= tot.split("\n")
	tot.pop(0)
	tot.reverse()
	tot.pop(0)
	for dev in tot:
		dev=dev.split("\t")
		#browse_dev_command="sdptool browse " + dev[1]
		get_channel = "sdptool browse " +dev[1] + " | tr -s ' ' | grep -e \"Channel\" | sed 's/ Channel: /Channel: /g' | cut -d\  -f2" 
		#print dev[1] + " - " + dev[2]
		channel_scan=os.popen(get_channel)
		channel=channel_scan.read()
		send_file="obextool push file.txt " + dev[1] + " " + channel
		print "sending file to " + dev[2]
		send=os.popen(send_file)
	time.sleep(5)
-s-
 

The Following User Says Thank You to smartypants For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#6
i wrote such an app in uiq before. this originated from something called bluejacking. in short, bad idea. battery drain, privacy issues, etc.
 
Posts: 41 | Thanked: 7 times | Joined on Dec 2009 @ Oslo, Norway
#7
Make it use as least power as possible, maybe dbus of bluetooth is the key, i don't know, but moral/privacy issues is not an argument.

Like using it to spread mp3 of the band playing at a concert can be good for humanity.
 
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#8
Originally Posted by droll View Post
i wrote such an app in uiq before. this originated from something called bluejacking. in short, bad idea. battery drain, privacy issues, etc.
And not to mention if you make a nuisance there will be
people with ball-peen hammers
searching for you (your handphone actually)

But that said, of course, it is only code.

How you use it is another thing altogether.

The battery drain issue is the showstopper,
it might be best to let it run only occasionally,
or if you are distributing widely to have a portable charger.

This app could be very useful for some of us.
__________________
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#9
in the app that i wrote before, it was meant as a sort of cheap-thrill. walk into a room and turn on the bluejacking module and enjoy. so yeah, some people would get pissed.

it's easy to write. just do the usual bt scan for devices, get the list of mac addresses, query for services, if obex receive is available, do an obex send. repeat. you can implement your own cache of devices found before to speed up the "query for services" part.
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#10
If anyone was to spam me via bluetooth, I'd take their phone and stamp on repeatedly until it wasn't able to send any more spam.

Assuming that is, that I could find the lil' f**ker in the first place...
 

The Following User Says Thank You to jedi For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 07:55.