aspose file tools*
The moose likes Java Micro Edition and the fly likes Device 2 Device communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Device 2 Device communication" Watch "Device 2 Device communication" New topic
Author

Device 2 Device communication

leonard eli
Greenhorn

Joined: Jul 01, 2006
Posts: 7
Hi all,
is possibile to communicate via socket between two devices?

It's easy using the WTK, but
how to locate a device from another device?

Should I use a webserver as a mediator in order to share ip address
(only for the first connection)?

Thanks
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

We are talking about device discovery here ( as far as blue tooth is concerned ). There are some APIs that allow you to discover other bluetooth devices in close proximity. If you want to discover a device over far distances there is no other option to use but the web. Have a look at this...

http://www.java-tips.org/java-me-tips/midp/how-to-get-friendly-name-of-remote-bluetooth-devices.html

Devices are uniquely identified by their bluetooth addresses.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
leonard eli
Greenhorn

Joined: Jul 01, 2006
Posts: 7
Hi John,
I can't use bluetooth.

I have to send simple stream (voice) between two devices.

Devices could be in two different country.

May you please help me?

How can I identify the devices?



Thanks again.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Ahhhh.... i think i know what you are trying to do. You need to host a web server and make both the phones talk with this server. Then... make these phones pass some kind of unique key to the server. The server will compare all the unique keys and link two bluetooth addresses together. Then you could make one of the phones a server and other the client and make them communicate. I wonder what quality can be achieved through this method as far as voice packets are concerned since we will be using gprs.

Oh i forgot to mention that. You ll need GPRS internet connectivity and you have to write code that will open sockets that listen in for a connection.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Device 2 Device communication