* [Bluez-users] Problem with CreateBonding after update 3.31 -> 3.36 @ 2008-08-20 13:15 Fritz Code 2008-08-20 14:40 ` Fritz Code 0 siblings, 1 reply; 3+ messages in thread From: Fritz Code @ 2008-08-20 13:15 UTC (permalink / raw) To: bluez-users [-- Attachment #1.1: Type: text/plain, Size: 661 bytes --] After the update Im haveing a problem with create a bonding. With 3.31 everything worked fine. With 3.36 after calling CreateBonding I get the following error: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." Anyone an idea what there might go wrong? Reading the ChangeLog I figured out that with v3.33 support for simple pairing was added. I'm not sure what this exactly means, but I guess this means pairing without using a PasskeyAgent. So it shouldn't affect me. -- Regards, --Codefritz [-- Attachment #1.2: Type: text/html, Size: 771 bytes --] [-- Attachment #2: Type: text/plain, Size: 363 bytes --] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ [-- Attachment #3: Type: text/plain, Size: 164 bytes --] _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-users] Problem with CreateBonding after update 3.31 -> 3.36 2008-08-20 13:15 [Bluez-users] Problem with CreateBonding after update 3.31 -> 3.36 Fritz Code @ 2008-08-20 14:40 ` Fritz Code 2008-08-21 22:03 ` [Bluez-users] How to access the RSSI value from the "inquiry_result_format_with_RSSI" (from newbie) thanit sara 0 siblings, 1 reply; 3+ messages in thread From: Fritz Code @ 2008-08-20 14:40 UTC (permalink / raw) To: bluez-users [-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --] Its seems there might be a problem during the registration of my passkey agent: hcid[149]: register_passkey_agent called without any adapter info! As already said, with 3.31 I dont have this problems... thanks On Wed, Aug 20, 2008 at 3:15 PM, Fritz Code <codefritz@googlemail.com>wrote: > After the update Im haveing a problem with create a bonding. > With 3.31 everything worked fine. With 3.36 after calling CreateBonding I > get the following error: > > "Did not receive a reply. Possible causes include: the remote application > did not send a reply, the message bus security policy blocked the reply, the > reply timeout expired, or the network connection was broken." > > Anyone an idea what there might go wrong? > > Reading the ChangeLog I figured out that with v3.33 support for simple > pairing was added. I'm not sure what this exactly means, but I guess this > means pairing without using a PasskeyAgent. So it shouldn't affect me. > > > -- > Regards, > --Codefritz > > > > > -- Regards, --Codefritz [-- Attachment #1.2: Type: text/html, Size: 1443 bytes --] [-- Attachment #2: Type: text/plain, Size: 363 bytes --] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ [-- Attachment #3: Type: text/plain, Size: 164 bytes --] _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bluez-users] How to access the RSSI value from the "inquiry_result_format_with_RSSI" (from newbie) 2008-08-20 14:40 ` Fritz Code @ 2008-08-21 22:03 ` thanit sara 0 siblings, 0 replies; 3+ messages in thread From: thanit sara @ 2008-08-21 22:03 UTC (permalink / raw) To: BlueZ users Dear all, I am trying to implement the code to get rssi values from near by devices. I have successfully changed the inquiry mode to be 0x01 and sent out the inquiry. I can see from the "Hci dump" that it is working, I can see the inquiry result with RSSI values. However, My problem is how can I get(/keep) those rssi values so that I can use them later on.I know there is a struct "inquiry_info_with_rssi", but what should I assign to this to get the response value.Please give me some hint so that I could move on. Your kindness is greatly appreciated.Below is my code.//Set up an event filter looking after the inquiry related events struct hci_filter InqFilter; hci_filter_clear(&InqFilter); hci_filter_set_ptype(HCI_EVENT_PKT, &InqFilter); hci_filter_set_event(EVT_INQUIRY_RESULT, &InqFilter); hci_filter_set_event(EVT_INQUIRY_RESULT_WITH_RSSI, &InqFilter); hci_filter_set_event(EVT_INQUIRY_COMPLETE, &InqFilter); if (setsockopt(sock, SOL_HCI, HCI_FILTER , &InqFilter, sizeof(InqFilter)) < 0) { perror("Fail to setup filter!"); exit(1); } //***************************************************** //inquiry with the RSSI result inquiry_info_with_rssi read_rssi; //Note **I try to define this struct variable here, but not sure what to assign to it. write_inquiry_mode_cp cpp; cpp.mode = 0x01; //set inquiry mode int set_Inquiring = hci_send_cmd(sock, OGF_HOST_CTL, OCF_WRITE_INQUIRY_MODE, WRITE_INQUIRY_MODE_RP_SIZE, &cpp); inquiry_cp cp; cp.lap[0] =0x33; cp.lap[1] =0x8b; cp.lap[2] =0x9e; cp.length = 4; //=4*1.28second = 5seconds cp.num_rsp =0; //do inquiry int Inquiring = hci_send_cmd(sock, OGF_LINK_CTL,OCF_INQUIRY , INQUIRY_CP_SIZE, &cp); if (Inquiring < 0) { printf("starting to inquire: %d\n",Inquiring); exit(1); } else printf ("Done inquiry with RSSI!\n"); printf("rssi value = %d \n", read_rssi.rssi); close( sock );//close socket//***************************************************** Best regards,Newbie _________________________________________________________________ If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one! http://g.msn.ca/ca55/208 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-21 22:03 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-08-20 13:15 [Bluez-users] Problem with CreateBonding after update 3.31 -> 3.36 Fritz Code 2008-08-20 14:40 ` Fritz Code 2008-08-21 22:03 ` [Bluez-users] How to access the RSSI value from the "inquiry_result_format_with_RSSI" (from newbie) thanit sara
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox