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

Bluetooth Development

Ian Strain
Ranch Hand

Joined: Jun 30, 2004
Posts: 49
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.


"its bad luck to be superstitious....."
Clifford Wong-
Greenhorn

Joined: Mar 22, 2004
Posts: 2
What MIDP version are you using?


Mobile/Distributed java guy, being deprecated since 1996.
Ian Strain
Ranch Hand

Joined: Jun 30, 2004
Posts: 49
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

Joined: Jul 07, 2004
Posts: 16
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

Joined: Oct 05, 2002
Posts: 346
and alos note that not every jsr-82 implementation on handsets includes obex!


MobileBytes blog - Sharing Technology - My Programming Knols
Alexander Traud
Greenhorn

Joined: Jul 07, 2004
Posts: 16
No mobile phone ships with that. Anyway it is quite easy to add it.
Ian Strain
Ranch Hand

Joined: Jun 30, 2004
Posts: 49
Series 60 phones do
Alexander Traud
Greenhorn

Joined: Jul 07, 2004
Posts: 16
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

Joined: Jun 30, 2004
Posts: 49
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

Joined: Jul 07, 2004
Posts: 16
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
 
subject: Bluetooth Development
 
Similar Threads
How to use an optional package
displaying NIC address in MIDlet
Byte[] transfer problems : (
probleam with getDiscoveryAgent()
mapping xml to java using jaxb