Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access phone via Bluetooth
#1
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
Reply
#2
There's an article on exactly that subject here: https://core-electronics.com.au/tutorial...ython.html
Reply
#3
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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Microsoft text phone verifying account cito 2 980 Jul-21-2022, 12:16 PM
Last Post: cito
  Read data via bluetooth frohr 9 3,339 Jul-10-2022, 09:51 AM
Last Post: frohr
  Connect to HC-05 Bluetooth (NOT BLE) korenron 0 1,465 Jun-26-2022, 09:06 AM
Last Post: korenron
  Read buffer from bluetooth frohr 2 2,132 Jun-01-2022, 01:31 PM
Last Post: frohr
  Scan for Bluetooth device korenron 0 2,612 Jan-10-2022, 01:06 PM
Last Post: korenron
  Sending string commands from Python to a bluetooth device Rovelin 13 9,435 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'bluetooth' Error Rovelin 4 12,130 Aug-31-2021, 04:04 PM
Last Post: Rovelin
  Send SMS from my phone number aster 3 2,716 Jul-03-2021, 02:34 PM
Last Post: ndc85430
  Bluetooth send message after connecting? korenron 2 2,663 Apr-26-2021, 05:50 AM
Last Post: korenron
  Bluetooth problem Lad 0 1,894 Sep-24-2020, 07:26 PM
Last Post: Lad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020