| View previous topic :: View next topic |
| Author |
Message |
mischins
Joined: 12 Dec 2007 Posts: 3
Digg It |
Posted: Wed Dec 12, 2007 5:34 am Post subject: |
|
|
Hi,
on a machine installed with Ubuntu 7.10 I could not pass the accelerator callibration in WRLImpl.java. I tried in on my machine wit Ubuntu 6.06 LTS and it works well with my BToes 2.0 EDR device.
Ubuntu 7.10 uses libbluetooth2 but 6.06 uses instead libbluetooth1. Maybe this could be a hint. |
|
| Back to top |
|
 |
bellwethr
Joined: 05 Nov 2007 Posts: 25
Digg It |
Posted: Tue Dec 18, 2007 5:51 am Post subject: |
|
|
| Anyone with Gutsy (Ubuntu 7.10) gotten WiiRemoteJ to work yet? I'll try using an older bluetooth library and see if that helps... |
|
| Back to top |
|
 |
Perry3D
Joined: 08 Dec 2007 Posts: 4
Digg It |
Posted: Wed Dec 19, 2007 1:38 pm Post subject: |
|
|
I have the same problem. I'm also using Gutsy.
I have compiled libbluetooth.so.1.0.24 (same version as in dapper) but it doesn't work. Maybe i'm doing something wrong.
Does anyone have a solution? |
|
| Back to top |
|
 |
Nemno
Joined: 28 Dec 2007 Posts: 4
Digg It |
Posted: Fri Dec 28, 2007 8:22 pm Post subject: Yez, after about 20 hours code staring and hci-dump watching |
|
|
There is a bug in avetanaBT.
I was working on my on WiiRemoteJ version just to get my java skills up. And than i ran in to same problem and fix it.
I will share it so it will work for WiiRemotej.
Assuming you have the avetana source and know howto compile.
Here we go:
go to your avetana source directory,
in /de/avetana/bluetooth/stack/BlueZ.java
somewhere at line 317
change line
int receiveMTU=672, transmitMTU=672;
to
int receiveMTU=-1, transmitMTU=-1;
do a 'make clean'
make sure your envvariables are correct
do a './install'
copy the files to your WiiRemotej dir
and there you go GO GO...
=======
The problem with the avetana was that when you open a connection the LCAP protocol does some handshake things.
avetana : I request a config
wiimote : Ok set your MTU size on 185
avetana : I am ignorant so i'll use MTU size of 672
wiimote : See Yaa
after fix
avetana : I request a config
wiimote : Ok set your MTU size on 185
avetana : Ok setting MTU size on 185
wiimote : nice doing business
avetana : blabla
wiimote : blala
etc..etc...
and thats it.
Nemno |
|
| Back to top |
|
 |
lamoua76
Joined: 24 Dec 2007 Posts: 14
Digg It |
Posted: Sat Dec 29, 2007 12:06 am Post subject: |
|
|
It works ! Thanks a lot !
this tips + chaos tip = WRImpl class works very well on ubuntu 7.10 (gusty) ! |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 522
Digg It |
Posted: Sat Dec 29, 2007 2:45 am Post subject: |
|
|
Excellent. Good work finding the fix. I'll add it to the WiiRemoteJ tips sticky! _________________ Cha0s |
|
| Back to top |
|
 |
layertwothree
Joined: 24 Feb 2008 Posts: 4
Digg It |
Posted: Sun Feb 24, 2008 4:53 pm Post subject: |
|
|
Hi,
This bug does not seem to be specific to avetanaBT. I am using an svn BlueCove and BlueCove GPL 2.03 snapshot and I get the same pause at the accelerator calibration. I am also using Ubuntu 7.10 system.
I had to apply a similar work around to get it to work, specifically, hard code the receive and transmit MTU values to 185 on lines 62 and 63 to BlueCoveBlueZ_L2CAP.c (located in src/main/c of bluecove-gpl svn trunk)
This is far from the ideal solution. I just started working on WiiRemoteJ the other day and I know nearly nothing about bluetooth so I haven't tested how this may affect other functions.
So is this an Ubuntu or BlueZ issue?
Jim |
|
| Back to top |
|
 |
|