site_archiver@lists.apple.com Delivered-To: Bluetooth-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=i1Q+RS4cAsGP1D+3k5g5eI+pqzW95AZr1F7UFcwbZzic3cHPm2FkoOd28rie33PG8/SpPN7ktvfLH4b6hpJZE3kBhY17CC0FfgSYZIkNSH4rzcPGPY2zOxO2kUCw/HKsOqp/Fv6yKfq8PnWERyqK/Nx5Dm5nQuhSjIOJymkZoJI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FDX3dHzpcOOuucaSRzkzwsgieizNBcv/S/TXQx9/dwh+P5zLqVAKFNHXV7BZNSyH5QHA8Sp8S7xqWMBfO/xtnrCdcZa2nt0mAXlrghJXl5gYm7LF3+hn0j+a2YQ3uuj1zlpxEbnqVjQh5FDE5EoIit6SBPHDvBJYzZGsxn3iIcI= 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jasen Jacobsen