Here is the output. You have to change all these 4545 to the value you want.
firmware/libconn/bt_app.c: log_printf("Pin code request - using '4545'\n\r");
firmware/libconn/bt_app.c: hci_send_cmd(&hci_pin_code_request_reply, &event_addr, 4, "4545");
firmware/latency_tester/main.c: return ConnectionOpenChannelAdb("tcp:4545", &AppCallback);
firmware/app_layer_v1/README:tries to establish an ADB channel with TCP port 4545 of the ADB device.
firmware/app_layer_v1/main.c: return ConnectionOpenChannelAdb("tcp:4545", &AppCallback);
software/IOIOBluetoothBridge/src/ioio/bluetooth_bridge/MainActivity.java: static final int IOIO_PORT = 4545;
software/IOIOLib/src/ioio/lib/impl/SocketIOIOConnectionBootstrap.java: public static final int IOIO_PORT = 4545;
software/IOIOLatencyTester/src/ioio/latency_tester/LatencyTesterActivity.java: "ioio.lib.impl.SocketIOIOConnection", 4545));
felix@ThinkPad-Ubuntu12:~/Dropbox/Desktop/Semesterarbeit2/ytai-ioio-b93dfc7$ grep -R "4545" *
firmware/libconn/bt_app.c: log_printf("Pin code request - using '4545'\n\r");
firmware/libconn/bt_app.c: hci_send_cmd(&hci_pin_code_request_reply, &event_addr, 4, "4545");
firmware/latency_tester/main.c: return ConnectionOpenChannelAdb("tcp:4545", &AppCallback);
firmware/app_layer_v1/README:tries to establish an ADB channel with TCP port 4545 of the ADB device.
firmware/app_layer_v1/main.c: return ConnectionOpenChannelAdb("tcp:4545", &AppCallback);
software/IOIOBluetoothBridge/src/ioio/bluetooth_bridge/MainActivity.java: static final int IOIO_PORT = 4545;
software/IOIOLib/src/ioio/lib/impl/SocketIOIOConnectionBootstrap.java: public static final int IOIO_PORT = 4545;
software/IOIOLatencyTester/src/ioio/latency_tester/LatencyTesterActivity.java: "ioio.lib.impl.SocketIOIOConnection", 4545));
For PIN and device name you have to make changes in the firmware and the java libraries.
Now to the device name. Use again grep:
grep -R "IOIO (" *
The Output:
firmware/libconn/bt_app.c:static char local_name[] = "IOIO (00:00)"; // the digits will be replaced by the MSB of the BD-ADDR
firmware/libconn/bt_app.c: sprintf(local_name, "IOIO (%02X:%02X)", event_addr[4], event_addr[5]);
Then you also have to change the name in the Java library, but at the moment I don't not in which file. If you were successful, please post which file you've edited.
Cheers
Felix