ActionScript + Bluetooth: 2-way communication

141 views
Skip to first unread message

Raul Jimenez

unread,
Jan 22, 2009, 8:02:07 AM1/22/09
to The Roomware Project
Hi all,

Anybody knows how can I develop a 2-way communication between two
laptops across bluetooth?

I know how can I detect different devices, but I don't know how can I
send messages.

I have been tried this, without results:

import mx.utils.Delegate;

send_mc.onPress = Delegate.create(this, sendInfo);

function sendInfo()
{
var loader:LoadVars = new LoadVars();
loader.data = "This is data";
loader.name = "Raul";
loader.surname = "Jimenez";
loader.age = "29";

loader.sendAndLoad("http://192.168.2.16:9109", loader, "POST");
loader.onLoad = function(success)
{
debug_txt.text = success + newline;
debug_txt.text += loader;
}
}

The 192.168.2.16 URL it's the direction of the laptop that haves the
server running.

One thing that I can't understand too, it's how can knows the Flash
application that we are sending the message through Bluetooth and not
Internet connection.

Thank you very much! It's a very nice project!

Cheers

Raul

Tijs Teulings

unread,
Jan 22, 2009, 8:16:22 AM1/22/09
to room...@googlegroups.com
Hi Raul,

The current version of the roomware server can only send updates from
one of it's sensors (such as a bluetooth scanner) to an IP address or
make the updates available as XML. It can not yet receive messages
though, nor is it possible to send an actual message over bluetooth.

Basically sensor data is collected and made available through either
of the communicators.

Tom might have some more info on sending messages over bluetooth but
it would require extending the functionality of the roomware server in
the Java code.

Hopefully that clears some things up for you :)

Tijs
--
Tijs Teulings
tel: +31645004824
http://tijs.org




james burke

unread,
Jan 22, 2009, 8:27:43 AM1/22/09
to room...@googlegroups.com
Hi raul,

What Tijs says is correct. What you might be able to do is find a Java friend who is willing to write some extra code to give you the functionality you are looking for. Bluecove which is what the Roomware Server uses supports sending and receiving messages. We just have not implemented those functionalities yet.

Tom could tell you how long these would take to implement. Whoever wrote the code would of course be making a lot of people happy as you are not the first to ask for bluetooth message sending.

james

Vincent Barnhard

unread,
Jan 27, 2009, 2:28:12 PM1/27/09
to room...@googlegroups.com

Dear Guys,

 

Tom has send me some info in the past and my co worker said ‘ow that’s really a piece of cake’ then he installed the Roomware server on his laptop and said nice app posting to devices is really easy to implement you have to do bal bal …blab la .. .and then bla bla. In short he was going to fast for my skills, which are almost none. Sadly this guy is extremely busy with writing java code for our ASP Linux servers / dialers and giving support to our call center clients. So he wasn’t able to make something yet. Besides he is working 10 hours a day so after work he rather spends time with his wife and kids.

 

But in March my friend and co worker Kiran from Napal is in Holland for a few weeks. Kiran is such a brilliant hardcore geek that he scars the living crap out of all my Dutch fellow programmers who work with him. So it would be nice if he could code with us.  

 

He’s 26 and he is learning Dutch, for fun makes multiplayer games with friends or drinks loads of beer in Katmandu. Because he is still single he dances Salsa during office hours (we do not want to lose him). In short a guy who is not only a smart but very entertaining too. Anyway, I promised him already that we will go to some Salsa bars in Amsterdam in the evening. But to intellectually entertain him during the day a Roomware event would be nice. Could we organize such an event, say end of March?

 

Of course when a date for the Event is set I will try to bring some more fellow Nepali (4 of them are staying in NL).  I will also try to bring the (a) experienced Java programmer from our telecommunication department of course. But this specialist is sadly not a drinker and I doubt if he is willing to join us. Anyway he can tell Kiran how it can be build in advance of the event course.

 

Vincent

 

----

 

F.V. Barnhard

 

Jonker Fransstraat 91-d

3031 AP Rotterdam

 

Tel:      +31 (0) 10 213 40 28

Mob:   +31 (0) 6 13 95 9050


Reply all
Reply to author
Forward
0 new messages