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
  Identifying Valid and Invalid Phone Contact KiranKandavalli 3 270 Apr-03-2025, 07:12 PM
Last Post: deanhystad
  RPi and smartphone Bluetooth communication GigiG 0 336 Mar-18-2025, 09:54 AM
Last Post: GigiG
  sharepoint: Access has been blocked by Conditional Access policies CAD79 0 2,061 Jul-12-2024, 09:36 AM
Last Post: CAD79
  Microsoft text phone verifying account cito 2 1,691 Jul-21-2022, 12:16 PM
Last Post: cito
  Read data via bluetooth frohr 9 7,682 Jul-10-2022, 09:51 AM
Last Post: frohr
  Connect to HC-05 Bluetooth (NOT BLE) korenron 0 2,123 Jun-26-2022, 09:06 AM
Last Post: korenron
  Read buffer from bluetooth frohr 2 3,203 Jun-01-2022, 01:31 PM
Last Post: frohr
  Scan for Bluetooth device korenron 0 3,459 Jan-10-2022, 01:06 PM
Last Post: korenron
  Sending string commands from Python to a bluetooth device Rovelin 13 15,508 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'bluetooth' Error Rovelin 4 14,773 Aug-31-2021, 04:04 PM
Last Post: Rovelin

Forum Jump:

User Panel Messages

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