Re: Scubapro Galileo 2 (G2)

2017-06-26 Thread Linus Torvalds
On Mon, Jun 26, 2017 at 11:37 PM, Linus Torvalds wrote: > > Anyway, right now that "custom_io_t" only has the packet size as a way > to discriminate with, but that clearly is not sufficient. But neither > is it good enough to say what type it is - it's also not sufficient to > say "USB vs USB HID

Re: Scubapro Galileo 2 (G2)

2017-06-26 Thread Linus Torvalds
On Mon, Jun 26, 2017 at 10:06 PM, Jef Driesen wrote: > > I don't think it's that easy to completely get rid of the serial > communication stuff. There are several backends that need to change the > serial line settings and DTR/RTS lines during the communication. That's why > those functions are pr

Re: More Bluetooth LE work

2017-06-26 Thread Linus Torvalds
On Mon, Jun 26, 2017 at 10:07 PM, Dirk Hohndel wrote: >> >> Right now that third patch is a disgusting hack that can not be >> committed, because it will break *other* LE dive computers (ie Suunto >> EON Steel and Scubapro G2). > > That's... disappointing. It's technically easy to fix, the only i

Re: More Bluetooth LE work

2017-06-26 Thread Dirk Hohndel
Yeah, yeah, yeah, I should have studied the commit messages more closely and tried this under Linux (which doesn't work for me right now because I don't run Linux on the hardware, but run it in a VM under Mac OS and there is no BLE pass through into the VM). > On Jun 27, 2017, at 2:07 PM, Dirk Ho

Re: More Bluetooth LE work

2017-06-26 Thread Dirk Hohndel
> On Jun 27, 2017, at 12:48 PM, Linus Torvalds > wrote: > > So attached are three patches that currently allow me to download > dives from my Shearwater Perdix AI, and that I assume works with the > regular Perdix too (which has some newer versions that are BLE-only > and no longer support rfco

Re: Scubapro Galileo 2 (G2)

2017-06-26 Thread Jef Driesen
On 2017-06-22 02:49, Linus Torvalds wrote: On Tue, Jun 20, 2017 at 11:59 PM, Jef Driesen wrote: You are right that the USB HID packets are vendor specific, and we can't incorporate that in the usbhid code. But that's not really what the I/O refactoring is about. It only handles how those pa

More Bluetooth LE work

2017-06-26 Thread Linus Torvalds
So attached are three patches that currently allow me to download dives from my Shearwater Perdix AI, and that I assume works with the regular Perdix too (which has some newer versions that are BLE-only and no longer support rfcomm). HOWEVER. BIG CAVEAT! Right now that third patch is a disgusting

Re: BLE download from EON Steel on Android

2017-06-26 Thread Matt Thompson
On Sun, Jun 25, 2017 at 1:02 AM, Dirk Hohndel wrote: > Linus, > > I pushed out your changes to master. > With the latest Subsurface master and libdc Subsurface-branch I was able > to download dives from my EON Steel via BLE on Android. > > > http://subsurface-divelog.org/downloads/test/Subsurface

Re: Error: "Must construct a QApplication before a QWidget"

2017-06-26 Thread Tomaz Canabrava
On Sat, Jun 24, 2017 at 10:28 PM, Lubomir I. Ivanov wrote: > On 24 June 2017 at 21:29, Dirk Hohndel wrote: > > > >> On Jun 24, 2017, at 11:16 AM, Lubomir I. Ivanov > wrote: > >> > >> i've updated to Qt 5.9.0 today and after building Subsurface on > >> Windows i'm getting a: > >> > >> QWidget: M