Luego de una ardua tarea googleando, me encuentro con esto:
https://web.archive.org/web/20160324052 ... th_Pairing
Que lo tuve que rescatar con web archive, porque el sitio no anda actualmente.
En fin, citando lo que entiendo que hay que hacer:
Bueno, se supone que nos da este código en C, donde simplemente ponemos la Mac address del Wiimote, o del host (dependiendo del método que usemos para sincronizar). Eso de por sí, me suena medio raro, pero en fin.Bluetooth pairing must be initiated by the host by sending a "Require Authentication" HCI command to its bluetooth device. The bluetooth device will ask the host for a link key, which must be rejected so it will ask for a PIN-Code. The PIN-Code is the binary bluetooth address of the wiimote backwards. Following a short piece of C code to calculate the PIN:
Lets assume the Wiimote has the bluetooth address "00:1E:35:3B:7E:6D". If you want the PIN for bluetooth pairing in a simple string, do the following:
char pin[6];
pin[0] = 0x6D;
pin[1] = 0x7E;
pin[2] = 0x3B;
pin[3] = 0x35;
pin[4] = 0x1E;
pin[5] = 0x00;
Now "pin" contains your bluetooth pin that should be used for pairing your devices.
If connecting by holding down the 1+2 buttons, the PIN is the bluetooth address of the wiimote backwards, if connecting by pressing the "sync" button on the back of the wiimote, then the PIN is the bluetooth address of the host backwards
Primero que nada, el código así como está no es reconocido, entonces googleando encontré a uno que lo "C-ificó":
Código: Seleccionar todo
#include <stdio.h>
int main(void)
{
char pin[6];
pin[0] = 0x6D;
pin[1] = 0x7E;
pin[2] = 0x3B;
pin[3] = 0x35;
pin[4] = 0x1E;
pin[5] = 0x00;
printf("the password is:\n"); printf("%s \n", pin );
}
Entonces, la primera duda es si la MAC está bien ingresada con ese método. Suponiendo que el código en C esté bien escrito y definido.
Luego, lo que resta es definir si el código te da algo que sea legible por humanos, y por lo tanto que sirva para ser ingresado como PIN, o si es solamente un código interpretado por computadoras. En tal caso me cabe, y tengo que instalar una app, cosa que no voy a hacer
En fin, a ver los capos de la programación del foro tienen alguna idea para aclararme un poco el panorama.
Gracias.