Python Forum

Full Version: Access phone via Bluetooth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear all,
I am new to Python, so please, bear with me. I have a PI4 (running Raspbian) with a Raspberry touchscreen which is all working fine. Ultimately, I would like to develop a platform similar to a touchscreen in a car to that you can connect any phone via Bluetooth, displaying the contact list and starting/receiving phone calls.

It would be great if anyone can provide me with a conceptual basis, so that I may start with this project.

Thank you very much!

Max
There's an article on exactly that subject here: https://core-electronics.com.au/tutorial...ython.html
Thank you so much for your reply. I was able to follow the instructions up to the point where I should detect a pressed key. Anyways, I tried everything with my iPhone and it would not detect any tip on the iPhone's screen. What am I missing here? I get the following: device /dev/input/event6, name "XX:XX:XX:XX:XX:XX", phys "" whereas as mentioned before there are no events detected when touching the screen. The script I am using is:

#import evdev
from evdev import InputDevice, categorize, ecodes

#event 6 is dedicated to my iPhone
dev= InputDevice('/dev/input/event6')

#prints out device info at start
print(dev)

for event in dev.read_loop():
    #filters by event type
    if event.type == ecodes.EV_KEY:
        print(event)