FTDI

Dirk Hohndel dirk at hohndel.org
Thu Jun 28 08:48:30 PDT 2018


> On Jun 28, 2018, at 8:37 AM, Anton Lundin <glance at acc.umu.se> 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


More information about the subsurface mailing list