File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Device 2 Device communication

 
leonard eli
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
leonard eli
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic