Problem with G4 based machines
Problem with G4 based machines
- Subject: Problem with G4 based machines
- From: "Jasen Jacobsen" <email@hidden>
- Date: Sun, 25 Feb 2007 16:48:06 -0500
I'm one of the developers of DarwiinRemote
(http://sourceforge.net/projects/darwiin-remote/) a/the Nintendo
Wiimote framework for the Mac. Recently G4 based users have been
complaining that the framework does not work for them. I tried the
framework on a G4 based mini running Leopard and have had the same
problem. Unfortunately, I don't have a 10.4 G4 machine to test on.
(I have an Intel iMac and I've tested the framework with no problem on
a MacBook Pro).
The Wiimote is discovered using [IOBlutoothDeviceInquiry
inquiryWithDelegate:]. Then the sequence is something like:
[wiimoteDevice openConnection]
...
[wiimoteDevice performSDPQuery:nil]
...
[wiimoteDevice openL2CAPChannelSync:&ichan withPSM:19 delegate:self]
// open input channel
...
[wiimoteDevice openL2CAPChannelSync:&cchan withPSM:17 delegate:self]
// open output channel
Then various methods use [cchan writeSync:buf length:length] to send
commands to the wiimote and there is an l2capChannelData: method to
handle incoming data from the Wiimote.
The problem is that the wiimote is discovered, the input and output
channels appear to be opened, but then once commands start being sent
to the Wiimote the connection is dropped/goes away. I've tried
sprinkling "usleep(10000); // wait 10ms" liberally throughout the
code to keep from overwhelming the wiimote with traffic, but it
doesn't seem to help (on my Leopard machine).
Any hints on how I might go about debugging this problem? Anything
obviously wrong with the technique we're using to communicate?
- Jasen.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden