I'm working on a project intending to use the wiimote as a user input device controlling a small embedded controller. I have a basic stack that is able to connect.
I have two modes that I'd like to support:
First, a pairing mode: press the sync button under the wiimote battery cover, then command my local controller to inquire, connect, and finally pair with the wiimote. This seems to work. I think it is actually establishing a bond because after this process, and disconnecting the wiimote, a single button press on the wiimote causes a Connection Request event on my local controller. I presume that indicates that the Pin/BD_ADDR has been stored in the wiimote - indicating a successful pairing.
However, after the (ostensible) pairing, the LEDs on the wiimote continue to blink. Is that because the pairing is not complete, or because I am required to send an output report to the wiimote after connecting to stop the LEDs from flashing?
Second, a reconnect mode: after successfully pairing the wiimote once, I'd like to be able to have it initiate a connection with my local controller using a single button press. This also seems to be working, but the LEDs on the wiimote continue to blink after the connection is established.
Is there some additional configuration/handshake required to complete the pairing and single-button reconnect modes? Or, is it expected that the LEDs will continue to blink until some report is sent?
Thanks.
Edited 3 time(s). Last edit at 07/15/2013 05:26PM by ags000.