device autoprobing and changig bluetooth handling

Lutz Vieweg lvml at 5t9.de
Mon Mar 4 10:33:27 PST 2013


On 03/04/2013 07:17 PM, Dirk Hohndel wrote:
>> Hmmm... I guess I'll never understand what makes rebreathers so
>> attractive to some people that they are willing to take the
>> about 6 times higher risk for fatal incidents (based on BSAC statistics)
>> in comparison to open circuit diving.  But back on topic..:
>
> I said we ordered the manuals, not that we are going to dive them
> necessarily... :-)

Good, then there's hope Linus will survive until at least linux-4.0.0 -
or even much longer, to see ./drivers/usb/ finally becoming stable ;-)

>> I think one even better approach to "safe autodetecting" would
>> be the following:
>>
>> - Ask user to make sure the DC is _not_ connected.
>> - Enumerate/memorize all existing devices.
>> - Ask user to connect the DC, and if applicable, to tell the
>>     DC to "enter data transfer mode"
>> - Have the user confirm he did the above.
>> - Wait some seconds.
>> - Enumerate all existing devices. "diff" with enumeration
>>     before DC connect.
>>
>> -> Assume DC is "the most recently connected device", if any.
>
> That's certainly a much better approach.
>
> Care to implement it?

Not in 'C'. I'd volunteer to write a Tcl script implementing the above,
if that is considered to be useful.

Regards,

Lutz Vieweg



More information about the subsurface mailing list