Skip to main content
1 of 2
Maciej
  • 101
  • 3

Detect what exact phone was connected to rpi

I'm trying to develop small app detecting when/which phone was connected / disconnected to rpi and than base on that take some actions it should work with both android and apple phones

I know how to detect if something was connected to USB but I don't know how / if its possible to detect exact phone (unique Id - eg imei or serial)

High level functionality I'm thinking of

  • phone registration (store unique number in local db)
  • phone connected to usb :
    • check if it is "known" phone, then do something
  • if unknown do Notting

Can somebody please advise if this is possible / where to start?

Maciej
  • 101
  • 3