This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bluetooth Development

 
Ian Strain
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've started a Bluetooth project.
I've just started a simlpe midlet to get the phones capabilites.
It runs on the emulator but not the phone and I can't figure out why.

Heres the code for BlueToothMID


and the heres Bluetooth class


Can anyone tell me why its not working? And is there any good tutorials on developing J2ME bluetooth mids about.
 
Clifford Wong-
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What MIDP version are you using?
 
Ian Strain
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know the reason. Phones that have Java and Bluetooth did not bother implementing JSR-82 for some dumb reason, with the exception of Nokia (Hail Nokia!!) Why haven't they done this? It seems stupid to be. Having both technologies on a phone and not being able to use them together.
Any Nokia phone with bluetooth supports JSR-82. Now ain't that a smart idea!!!

Something that surprised me was that Motorola ans Sony Ericsson among other phone developers where part of the Expert Group behind JSR-82 and none of their phones use JSR-82.
 
Alexander Traud
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, only these phones support JSR-82:
- Nokia 6230
- Nokia 6600
- Nokia 6620
- Nokia 7610
- Siemens SX1 (since firmware 10 or 11)
- Siemens S65
- Sony Ericsson P900 (since firmware R1B or somthing like that)

and the Sendo X shall have it. JSR-82 is "quite" new and the mobile phone manufactures needed time to implement it. A good start is Benhui but personally I recommend to read the JSR-82 specification which gives anything you will need - even code examples.
 
Fred Grott
Ranch Hand
Posts: 346
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and alos note that not every jsr-82 implementation on handsets includes obex!
 
Alexander Traud
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No mobile phone ships with that. Anyway it is quite easy to add it.
 
Ian Strain
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Series 60 phones do
 
Alexander Traud
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one does have JSR-82 with the optional OBEX support? Nokia 6260, 6600, 6620, 6630 and 7610 do not. The Nokia 6230 a Series 40 device does not have it, too. The Sony Ericsson P900 does not have it. Not sure for the Siemens and Sendo implementations.
 
Ian Strain
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't think any of them do. Also found out that some phones only support 1 additional connection. Mainly series 40 phones.
 
Alexander Traud
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Nokia 6230 is the only JSR-82 enabled Nokia Series 40 mobile phone. I do not understand you.

You made sure the master/slave configuration is correct in your setup? If you have a server/client configuration within your Java application, you should do a master/slave switch on the Bluetooth link, too. Your server must be the Bluetooth master otherwise you create Bluetooth piconets which are not supported by most Bluetooth chips.

You made sure to use L2CAP layer instead of the Serial Port Profile. I am not sure on that definitely, but I have read it supports only 1:1 communications.
[ September 24, 2004: Message edited by: Alexander Traud ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic