getting closer, BlueTool init does not work yet

This commit is contained in:
matthias.ringwald 2009-05-20 21:35:19 +00:00
parent 99d2dda33e
commit d3865d4eec
3 changed files with 7 additions and 2 deletions

View File

@ -42,6 +42,7 @@ $(SRCS): $(HEADERS)
$(NAME): $(SRCS)
$(CXX) $(CXXFLAGS) -o $(NAME) $(filter %.mm,$^) $(filter %.m,$^) $(filter %.c,$^) $(LDFLAGS)
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ; ldid -S $(NAME)
ssh root@192.168.3.102 rm BTdaemon
scp $(NAME) root@192.168.3.102:.
.PHONY: all clean

View File

@ -148,6 +148,10 @@ static int iphone_on (void *config){
fflush(outputFile);
pclose(outputFile);
// pause
sleep(3);
return 0;
}

View File

@ -31,9 +31,9 @@ void event_handler(uint8_t *packet, int size){
// bt stack activated, set authentication enabled
if (packet[0] == BTSTACK_EVENT_HCI_WORKING) {
// hci_send_cmd(&hci_write_authentication_enable, 1);
hci_send_cmd(&hci_write_authentication_enable, 1);
// hci_send_cmd(&hci_host_buffer_size, 400, 255, 1, 0, 0);
hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0);
// hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0);
}
if ( COMMAND_COMPLETE_EVENT(packet, hci_write_authentication_enable) ) {