• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Bluetooth Development

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What MIDP version are you using?
 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and alos note that not every jsr-82 implementation on handsets includes obex!
 
Alexander Traud
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Series 60 phones do
 
Alexander Traud
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic