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 

Not connecting with guitar
Goto page 1, 2  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote
View previous topic :: View next topic  
Author Message
djuniah



Joined: 06 Nov 2007
Posts: 3

Digg It
PostPosted: Tue Nov 06, 2007 6:10 pm    Post subject: Not connecting with guitar

I'm having some issues getting my GH3 guitar to connect. The wiimote by itself works fine, but if i try connecting it while its plugged into the guitar it refuses to match with it. Also, if i plug it in after having the wiimote connected, no input gets processed at all. Here is some info i gathered about the issue:

Code:
Registering key BTN_RIGHT for button A with code 111
Registering key BTN_LEFT for button B with code 110
Registering key ['KEY_LEFTCTRL', 'KEY_LEFTALT', 'BTN_LEFT'] for button D with code 1d
Registering key ['KEY_LEFTCTRL', 'KEY_LEFTALT', 'BTN_LEFT'] for button D with code 38
Registering key ['KEY_LEFTCTRL', 'KEY_LEFTALT', 'BTN_LEFT'] for button D with code 110
Registering key ['KEY_LEFTALT'] for button L with code 38
Registering key KEY_1 for button 1 with code 2
Registering key KEY_2 for button 2 with code 3
Registering key ['KEY_LEFTCTRL'] for button U with code 1d
Registering key ['KEY_F8'] for button R with code 42
[[1074025828, 2], [1074025830, 0], [1074025830, 1], [1074025828, 1], [1074025828, 0], [1074025829, 273], [1074025829, 272], [1074025829, 29], [1074025829, 56], [1074025829, 272], [1074025829, 56], [1074025829, 2], [1074025829, 3], [1074025829, 29], [1074025829, 66]]
Could not import pygame. Set DISABLE_PYGAME=1
CONNECTING
Looking for Wiimote services at address  00:1A:E9:30:4D:F0
Victory! We have found that Wiimote!
We are now connected to Wiimote at address  00:1A:E9:30:4D:F0
CONNECTED
Traceback (most recent call last):
  File "WMD.py", line 45, in <module>
    wmd = WMD()
  File "WMD.py", line 41, in __init__
    cycles = wm.main_loop()
  File "/home/ricky/Downloads/wmd-0.1.2/wmd/Wiimote/WMManager.py", line 42, in main_loop
    self.parser.parse( data )
  File "/home/ricky/Downloads/wmd-0.1.2/wmd/Wiimote/Input.py", line 102, in parse
    self.split_report( report, type )
  File "/home/ricky/Downloads/wmd-0.1.2/wmd/Wiimote/Input.py", line 119, in split_report
    func( slice )
  File "/home/ricky/Downloads/wmd-0.1.2/wmd/Wiimote/Input.py", line 155, in slice_STAT
    self.process_stats( s )
TypeError: process_stats() takes exactly 1 argument (2 given)


Also, if i use
Code:
sudo hidd --search
sudo hcidump -X


with JUST the wiimote, i get the expected results, but as soon as i plug in the GH adapter it spat out the following lines then stopped responding to key presses (even if i removed the GH adapter).

Code:
> ACL data: handle 6 flags 0x02 dlen 12
    L2CAP(d): cid 0x0041 len 8 [psm 0]
      0000: a1 20 00 00 02 00 00 57                           . .....W


can anyone with a little more experience shed some light on this issue?

Thanks,
DJuniah
Back to top
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: Wed Nov 07, 2007 12:00 am    Post subject:

Don't know, but you shouldn't expect the guitar to work without explicit support for it in WMD. The guitar has it's own unique identifier, and if WMD uses that to determine what type of extension was plugged in (as it should) then it should not recognize it. Unfortunately it seems like it doesn't reset the report mode like it should, so you're not getting any button presses. That's just a weird thing with the wiimote where if an extension is plugged in or removed you need to explicitly tell it you are interested in button presses/accelerometer/IR/etc again or you won't get anything.

I can't think of why removing the guitar would keep it from fixing itself though.. perhaps bad design? I'm not trying to say WMD is bad or anything, it's just old and probably not written with great care for all of these possible contingencies.

People are having success getting the guitar to work in GlovePIE, which is surprising given there was no explicit support for it (hinting at poor design there too, but it worked out in this case). I know it's not linux though :\
Back to top
View user's profile Send private message Visit poster's website
djuniah



Joined: 06 Nov 2007
Posts: 3

Digg It
PostPosted: Wed Nov 07, 2007 3:23 am    Post subject: what can i do

Well i am a decently experienced programmer and if i could start to tackle this problem myself, i would like to. Anyone have any suggestions on where to start?
Back to top
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: Wed Nov 07, 2007 12:35 pm    Post subject:

Look for the part of the code that handles extension events (that's report 0x20). At some point in there it should read some data from address 0x04A400FC. That data is the extension id, it should use that to setup the extension stuff. Pretty much just clone the classic controller code and modify it as needed for the guitar.
Back to top
View user's profile Send private message Visit poster's website
djuniah



Joined: 06 Nov 2007
Posts: 3

Digg It
PostPosted: Thu Nov 08, 2007 6:05 am    Post subject:

OK, got it working. I posted how i did it at the ubuntu forums at the following link:
(ok it looks like this board wont let me post full links yet, so go to the ubuntu forums and search for my username there, or put ?p=3729160 after the showthread.php to get to it)

Its a few posts down that thread.
Back to top
View user's profile Send private message
acapulco



Joined: 05 Feb 2008
Posts: 13

Digg It
PostPosted: Tue Feb 05, 2008 9:55 pm    Post subject:

djuniah wrote:
OK, got it working. I posted how i did it at the ubuntu forums at the following link:
(ok it looks like this board wont let me post full links yet, so go to the ubuntu forums and search for my username there, or put ?p=3729160 after the showthread.php to get to it)

Its a few posts down that thread.


Hi. It's great that you figured that out, so I was wondering if you have any idea on how to toggle the Wiimote LEDs on and off?

I found there's already an event for this, but I can't figure out where do I have to make the event suscription so that I can use the accelerometer data to toggle the LEDs?

BTW, what version of WMD did you work on? I only found one at CircuitDB which was 0.1.2.
Back to top
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: Tue Feb 05, 2008 10:05 pm    Post subject:

acapulco wrote:
Hi. It's great that you figured that out, so I was wondering if you have any idea on how to toggle the Wiimote LEDs on and off?

Do you need to use WMD for any particular reason?
The wiiuse library will let you set LEDs with the wiiuse_set_leds() function. Might be worth checking out? Link is in my sig.
_________________
wiiuse C wiimote library - http://wiiuse.net/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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