Go to advanced search

by yash012
Tue Mar 21, 2017 7:33 am
Forum: Python
Topic: python and bluetoothctl
Replies: 8
Views: 6158

Re: python and bluetoothctl

i was trying the bash command you suggested to connect to bluetoothe device
by yash012
Tue Mar 21, 2017 7:31 am
Forum: Python
Topic: python and bluetoothctl
Replies: 8
Views: 6158

Re: python and bluetoothctl

when i entered

Code: Select all

echo -e "connect 77:XX:XX:XX:XX  \nquit" | bluetoothctl
gives me Glib Critical source ID 24 was not found, i then tried "scan on" and "list" but it gave me same error but with Source ID 29 not found or source ID 25 not found
by yash012
Tue Mar 21, 2017 6:56 am
Forum: Python
Topic: python and bluetoothctl
Replies: 8
Views: 6158

Re: python and bluetoothctl

1. You could use pexpect to control bluetoothctl from Python. 2. You could use subprocess to run the following bash command: echo -e "connect AA:BB:CC:DD:EE \nquit" | bluetoothctl 3. You could run the previous command from a bash script and skip Python altogether. I know this is a very old post but...
by yash012
Thu Mar 16, 2017 4:15 pm
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

i have been trying to figure out this issue but nothing seems to work , it seems that hcitool lescan only works in terminal , it seems that it keeps running until interrupted cltr+c That's what os.kill(process.pid, signal.SIGINT) does, sends Ctrl-C to the process (Ctrl-C sends SIGINT). i learned th...
by yash012
Thu Mar 16, 2017 11:03 am
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

i have been trying to figure out this issue but nothing seems to work , it seems that hcitool lescan only works in terminal , it seems that it keeps running until interrupted cltr+c , well timeout 10s hcitool lescan helps there in the terminal but it does not work when i try to call it in python.i t...
by yash012
Wed Mar 15, 2017 5:09 am
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

Thanks this is good, it seems that this would work very well.
by yash012
Tue Mar 14, 2017 12:13 pm
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

i used the bluepy for detection of BLE devices , the command sudo hcitool lescan works very well but whenever i tried to call that in python using BLE = subprocess.getoutput('sudo hcitool lescan') it always shows me Set scan parameters failed: Input/output error , i tried restarting Bluetooth, but p...
by yash012
Sun Mar 12, 2017 5:40 pm
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

Thank you very much this is very much helpful.
by yash012
Sat Mar 11, 2017 6:49 am
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

thanks but it is not very useful as i need to detect ibeacon using python in Raspberry pi. It tells you what you have to do, what commands you have to send to scan for beacons. You can do all that from Python with system or process calls, or you can look for a Python module that handles those messa...
by yash012
Fri Mar 10, 2017 11:03 am
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

Re: ibeacon detection

thanks but it is not very useful as i need to detect ibeacon using python in Raspberry pi.
by yash012
Fri Mar 10, 2017 5:18 am
Forum: General discussion
Topic: ibeacon detection
Replies: 16
Views: 7312

ibeacon detection

Hi i'm new here i am working on a project , i need to detect a ibeacon on Raspberry pi 3 . it is detected and i can see the MAC address well in Terminal using Bluetooth scan on command but i want to do that in python , i used this: nearby_devices = bluetooth.discover_devices(lookup_names = True) but...
by yash012
Thu Mar 09, 2017 1:12 pm
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 29666

Re: Bluetooth Python script.

Hi i'm new here i am working on a project , i need to detect a ibeacon on Raspberry pi 3 . it is detected and i can see the MAC address well in Terminal using Bluetooth scan on command but i want to do that in python , i used this: nearby_devices = bluetooth.discover_devices(lookup_names = True) but...

Go to advanced search