WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why is it so difficult to connect to bluetooth via java

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
Globule



Joined: 23 Dec 2007
Posts: 5

Digg It
PostPosted: Sat Dec 29, 2007 5:52 pm    Post subject: Why is it so difficult to connect to bluetooth via java

I dont have a widcomm stack for my usb bluetooth key (MSI PC2PC BT)

I manage to make it work fine using bluesoleil or the Microsoft stack
I can lauch GlovePie and use my wiimote as a mouse pointer for example without any problem

Since I wanted to connect to my wiimote via java,
I downloaded wiimotej and discovered the joy of bluetooth via java : NOTHING WORKS
I tried a lot of combination
- bluecove + bluesoleil => KO
- bluecove + MS Stack => KO
- javabluethooth full java stack => KO

I don't understand why it is so difficult to connect to bluetooth when GlovePie seems to do it so easyly
Other examples, Johnny Chung-Lee developped very nice C# programs which are connecting to his wiimote. His programm are using only a few instruction to get to the wiimote...

Why in java everything is always complicated !!!
Everything is always clumbsy, the lib are always partialy fonctionnal, you always have compatibilities issues. A developper NIGHTMARE
Back to top
View user's profile Send private message
Cha0s
Site Admin


Joined: 17 Jan 2007
Posts: 493

Digg It
PostPosted: Sat Dec 29, 2007 6:01 pm    Post subject:

Javabluetooth is outdated and is intended for serial connections only. The Microsoft stack does not support L2CAP connections (required by the Wii Remote). BlueSoleil and BlueCove are both free projects undergoing massive growth right now. What that means is that a lot is changing; there are bound to be bugs for a while. They will be fixed eventually. Until then, just relax and wait it out. I'm having problems with BlueCove myself, but it'll get resolved eventually. You just need to be patient.

We found a workaround to your problem which will let you use WiiRemoteJ in a few days, so be thankful you got it working. You have to keep in mind that Java is a relatively new platform and cross-platform to boot. Stick it out a little longer and you'll see that it's all worth it: Java can do some truly amazing things if you give it the chance.
_________________
Cha0s
Back to top
View user's profile Send private message
mharkus



Joined: 15 Jan 2008
Posts: 7

Digg It
PostPosted: Tue Jan 15, 2008 5:55 am    Post subject:

Hi Globule,

I also have the same problem with you, my BT device has a Bluesoleil drivers included and I've been using it before and works perfectly until I tried using wiiremotej and bluecove, it didn't work well. So I search for a WIDCOMM driver and I found one that is compatible with my device and it is now working perefectly with BlueCove and WiiRemoteJ. My device has no manufacturer indicated anywhere so I don't know what is it.

Thanks,
Marc
Back to top
View user's profile Send private message Yahoo Messenger
mharkus



Joined: 15 Jan 2008
Posts: 7

Digg It
PostPosted: Tue Jan 15, 2008 6:04 am    Post subject:

Also, other non-Java implementations specifically C communicates directly with HID (Human Interface Device) service. C allows them to communicate directly with the underlying system, while in Java, it relies on the vendor implementation of JSR-82 which could be sometimes buggy.

I don't if there are JAVA Api's out there that allows you to communicated directly with HID through JNI calls. Question
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group