Closed project-jj closed 3 years ago
Please provide the following two pieces of information:
It looks like you are directly executing a bluescan internal module. Generally, bluescan cannot be used in this way. Please refer to the "Usage" section in README for some examples.
The version of the bluescan is 0.4.1.
I have tried to run the command as below.
sudo bluescan -m br
I got the same error as before.
Oh, I see.
All I encountered were HCI_Extended_Inquiry_Result
events. So even though I wrote the code to parse HCI_Inquiry_Result
events, it hasn't had a chance to be actually tested.
The correct code should be <6sBH3sH
, not <6sBB3sH
. Because the reserved
parameter in HCI_Inquiry_Result
events is 2 octets, instead of 1 octet in HCI_Extended_Inquiry_Result
events.
There are two ways to solve this problem:
Modify the following code:
# br_scan.py
def pp_inquiry_result(self, params):
... ...
# struct.unpack('<6sBB3sH', params[1:])
struct.unpack('<6sBH3sH', params[1:])
... ...
# print('Reserved: 0x%02x'% reserved)
print('Reserved: 0x%04x' % reserved)
... ...
Thank you for your help.
I got an error as below.
Could you please let me know how to solve this error?