You Are Here:

Community: Developer Discussion Boards

#1 Old javax.bluetooth - 2006-10-10, 09:40

Join Date: Sep 2006
Posts: 14
bobby
Offline
Registered User
Hello,

I want to create a bluetooth server on my laptop to talk to devices. Where do i get/buy the javax.bluetooth package from? I want to create a standard java app

Thanks
Reply With Quote

#2 Old Re: javax.bluetooth - 2006-10-10, 10:14

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
Perhaps avetana will help you: http://sourceforge.net/projects/avetanabt/

Daniel
Reply With Quote

#3 Old Re: javax.bluetooth - 2006-10-10, 13:06

Join Date: Sep 2006
Posts: 14
bobby
Offline
Registered User
Hi Daniel,

Thanks for that, is there a windows version?

Bobby
Reply With Quote

#4 Old Re: javax.bluetooth - 2006-10-10, 13:14

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
I only know of commercial (I mean, $$) solutions for Windows: http://www.avelink.com/Bluetooth/Pro...R-82/index.htm

Daniel
Reply With Quote

#5 Old Re: javax.bluetooth - 2006-10-10, 14:14

Join Date: Sep 2006
Posts: 14
bobby
Offline
Registered User
Hi Danie

Do i really need all that? I just want the javax.bluetooth package. Could I not just copy the class from the package (javax.bluetooth) under netbeams mobility?

Would this work? e.g. LocalDevice being a usb dongle as opposed to a monile device?

(sorry i very little bluetooth knowledge)

Bobby
Reply With Quote

#6 Old Re: javax.bluetooth - 2006-10-10, 14:23

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
For the javax.bluetooth package to work, it must be implemented against the local Bluetooth stack, or it must be a complete Bluetooth stack itself.

If you copy the javax.bluetooth classes from Netbeans or Nokia SDK, they will not communicate with your Bluetooth hardware, as they are just implementations for your emulator. In a real device, let's say, Nokia 6680, javax.bluetooth is implemented on the top of local Bluetooth stack, with native methods and the works.

Summary: JSR 82 is just a spec, it needs to be implemented with native funcionality in order to work. It is special, because it's common to both J2ME and J2SE worlds, but that does not change anything: there's got to be a native part either way.

Let's say for example, if you copied Java 3D package to your device, it would not work, because there would be no native implementation. It would throw something like UnsatisfiedLinkCondition error.

If you search more on Sourceforge perhaps you can find a Java implementation for Windows for free, I haven't looked up much.

Daniel
Reply With Quote

#7 Old Re: javax.bluetooth - 2006-10-11, 16:40

Join Date: Sep 2006
Posts: 14
bobby
Offline
Registered User
Hi Daniel,

Ok I think I understand!

I have a 3com bluetooth adapter which I want to use in a normal java app to act as a bluetooth server.

So i need to install a bluetooth stack that communicates with my 3com adapter, and i access the stack throught javax.bluetooth or another java package.

Is that correct?

Thanks alot for your help?!!!!!!

Bobby
Reply With Quote

#8 Old Re: javax.bluetooth - 2006-10-12, 11:36

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
Quote:
I have a 3com bluetooth adapter which I want to use in a normal java app to act as a bluetooth server.

So i need to install a bluetooth stack that communicates with my 3com adapter, and i access the stack throught javax.bluetooth or another java package.
That's right on!

Daniel
Reply With Quote

#9 Old Re: javax.bluetooth - 2006-10-12, 17:06

Join Date: Sep 2006
Posts: 14
bobby
Offline
Registered User
Hi Daniel,

Finally got there!

Would it not be easier to monitor the com port the device is connected to?

e.g can I in the midlet code send messages to a device on a certain com port?

Bobby
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
javax.bluetooth discoverable by sdptool browse? markushx Bluetooth Technology 1 2006-08-21 16:29
javax.bluetooth; no service found sandrosandrosa Bluetooth Technology 2 2004-09-23 02:02
javax.bluetooth; no service found sandrosandrosa Bluetooth Technology 2 2004-08-20 13:33
javax.bluetooth; no services sandrosandrosa Mobile Java General 0 2004-08-02 11:09
javax.bluetooth jonmccune Mobile Java Tools & SDKs 0 2004-02-10 02:54

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia