Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use bluetooth!

 
Mateen Dar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i want to make a chat midlet that commnicates between two user with bluetooth. the first problem is that i dont know even the abc of bluettoth. how can i transfer and recieve data using bluettoth. please help.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well there is a bit to it that can't be done in one post. You really need to go to sun's Java site, go to J2ME and go to the technical articles section there are some good papers there showing you how to use Bluetooth.

One thing to note, is that right now there are only about 14 devices on the market that implement the JSR APIs, so your phone choices are limited. Actually one of the device on there the Seimen's S66 you can't find on the market, but you might find it on Ebay.

OK, here are the basics. You have a Device search and a Services Search. You first find the devices in the area, then you have to search those devices to see if it has your service. Then you can make the connection. Then it acts like any other Connection object in which you pass arrays of bytes between the two open "sockets"

Good Luck.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, now here's the thing that I should also say.

Bluetooth has a really short range of about 10 meters, the two could really just speak out loud and have a better faster conversation that through a chat program. Unless, they are both in the same meeting, at the movies, concert or other location where they can't speak out loud.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic