> On Jun 28, 2018, at 8:37 AM, Anton Lundin <[email protected]> wrote:
>> 
>> When the user plugs in a device, Android offers to start Subsurface. Does 
>> Subsurface get a notification? Is there some way that Subsurface could 
>> "know" that an FTDI device is indeed connected to the Android device?
> 
> The app is opened with a intent, because we declare that we would like
> one:
> <intent-filter>
>       <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" 
> />
> </intent-filter>
> 
> 
> How to receive that in Qt and open the right Qml screen, I have no clue.

Dang, I hoped you would. OK, more googling.

> I would also like us to not just print "FTDI" in the drop down. It would
> be way better to say bus / device number, and some other relevant
> strings. We could also use this to open the right device, not just some
> device that we might find. This makes it more inline with now the
> Bluetooth thingie works.

Yes, that's exactly what I was hoping for.
The USB Device Info app is able to extract some info about attached
devices. Having something like this available would be good. And if
no FTDI device is plugged in, don't offer the serial dive computers...

/D
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
  • FTDI Dirk Hohndel
    • Re: FTDI Anton Lundin
      • Re: FTDI Dirk Hohndel

Reply via email to