2 Attachment(s)
bluetooth file broadcasting
Hi, by using some python and a command-line utility I found at sourceforge I made a simple app that keeps looking for bluetooth-enabled phones nearby and sends a selected file to them (mp3, jpg, vCard, anything). It's just like those expansive marketig utilities, but free (and with less features...).
You'll need to install Python 2.5 and pyBluez to make it work. Also, you'll need to download OpenOBEX from SourceForge (links on file). This application makes use of the pipe object to get these utilities return.
I tested with a cheap usb bluetooth dongle (Microsoft driver) and Nokia (Symbian an NokiaOS) and Motorola phones, but my testings were not so extensive. Be welcomed to keep testing it.
Some improvements I would love to see would be adding support for Python for .Net so we would not need to use my "ugly" pipe solution - an idea got from DarkKiller. Also, someone could check out the OpenObex dlls so we could directly use them instead the obexftp.exe command line software - this could give us more control over file sending.
Well, I hope you find this useful.
Chokito
Re: bluetooth file broadcasting
People here rarely uses bluetooth devices with their games, and file transfering that way is very uncommonly used in application. I think this is a one-time application that only one person could benefit from and not an entire community.
To be honest, I don't see many people who will find this interesting. Nonetheless it's really great but in a greater view very useless.
Re: bluetooth file broadcasting
Quote:
makes use of the pipe object to get these utilities return.
The console object is a far more elegant (and supported) solution.
Re: bluetooth file broadcasting
Err I think this is a brilliant idea. Bluetooth could be useful for lots of situations.. However, I cant seem to get the program to work :( I've downloaded and installed all the things it says in the comments but it just doesnt seem to work. I have built in bluetooth, cant remember any details about it sorry.
Re: bluetooth file broadcasting
Hi, I imagined to put this online first because I got some trouble to get the pipe object to work (also the console - I used the first one because it seemed easier to use). Besides that, I also would like to add an example with interaction with other softwares, like python. And, finally, I would also like people to check out the possibilities I told about, like using python for .net and the dll object since I didn't find so much information about them... So, the aswer to "why post this" is just "curiosity".
About the console object, it worked ok with it. Are there known problems with pipe object?
digdong, why is it not working? What response do you get from the python script? I came to know that some european carriers were blocking this kind of file transfer on phones they ship...
Re: bluetooth file broadcasting
Not sure. Nothing happened. When I ran the script it just displayed a black console with nothing in it. The mfa didn't do anything either.
Re: bluetooth file broadcasting
great idea!!!!!i might get this, hook my pc up to a bluetooth dongle that has a range of....say the whole world? then, when java mobile comeso out, send my games to EVERYONE BWAHAHAHAAAA
Re: bluetooth file broadcasting
Quote:
Originally Posted by CloudWolf
great idea!!!!!i might get this, hook my pc up to a bluetooth dongle that has a range of....say the whole world? then, when java mobile comeso out, send my games to EVERYONE BWAHAHAHAAAA
First you would have to pair your computer with the cellphones and it would only work on everyone who has their phones set to Bluetooth Discovery mode, which is a fraction of Bluetooth users because it only takes a minute to set it up, and once its connected, you don't have to do it again. And they would have to select your computer on their phones as the device to connect to. But I must admit I got a laugh out of that. :)
Re: bluetooth file broadcasting
one question: is there an way to do it without the downloading of all the other files?
Re: bluetooth file broadcasting
Quote:
Originally Posted by Brandon
Quote:
Originally Posted by CloudWolf
great idea!!!!!i might get this, hook my pc up to a bluetooth dongle that has a range of....say the whole world? then, when java mobile comeso out, send my games to EVERYONE BWAHAHAHAAAA
First you would have to pair your computer with the cellphones and it would only work on everyone who has their phones set to Bluetooth Discovery mode, which is a fraction of Bluetooth users because it only takes a minute to set it up, and once its connected, you don't have to do it again. And they would have to select your computer on their phones as the device to connect to. But I must admit I got a laugh out of that. :)
lol it t'was a joke but i could program it to try the different common pin codes, 0000 1234 1111 2222 ect and then their phone would buzz?!?!
Re: bluetooth file broadcasting
Quote:
Originally Posted by templer
one question: is there an way to do it without the downloading of all the other files?
yeah, isnt there a way to do it without all the extra stuff to download???
Re: bluetooth file broadcasting
No pairing is required for the transmission since it uses the bluetooth OBEX Push service. The phones just receive the file (even a jar) as a standard message after they accept to receive it. No need to enter pin codes. I tested this on Nokia and Motorola phones, but this push service is standard. I'm just using this to send the phones a small j2me software so they can control a comunity game I'm developing.
Re: bluetooth file broadcasting
Re: bluetooth file broadcasting
Quote:
Originally Posted by MechaBowser
People here rarely uses bluetooth devices with their games, and file transfering that way is very uncommonly used in application. I think this is a one-time application that only one person could benefit from and not an entire community.
To be honest, I don't see many people who will find this interesting. Nonetheless it's really great but in a greater view very useless.
Wow how very supportive, I think its a rather cool idea and something I have been wanting to get MMF to do for a long time. People here rarely use bluetooth devices? You are the voice and mind of the community Mecha?
Re: bluetooth file broadcasting
Unfortunately there is no way to use it without the extra stuff, since it uses Python to query bluetooth devices and the Open OBEX to actually send the file.
Re: bluetooth file broadcasting
I'm gonna post up an example of how to use Python.NET soon, most likely. I haven't had much time lately, but it'll get done at some point. :)
Re: bluetooth file broadcasting
That's great! As I said, the Python.net and also the usage of the dll object are two things I'm quite interested in.