Results 1 to 15 of 1070

Thread: new $EE tuning thing!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,056
    we can do it. do you use debian/ubuntu or something else? i need a distribution to make an official port/package for to start with.

  2. #2
    Fuel Injected! fbody_Brian's Avatar
    Join Date
    Mar 2013
    Location
    Biloxi MS
    Posts
    166
    Quote Originally Posted by steveo View Post
    we can do it. do you use debian/ubuntu or something else? i need a distribution to make an official port/package for to start with.
    I currently use openSuse. I usually install most stuff from source, but if we get it to work I can build an rpm package for my distro.
    I'll try to compile qtserialport 5.6 tonight and see if it behaves differently.
    1994 LT1/4L60E Formula

  3. #3
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,056
    qt is a real clusterfluck sometimes. it's the most gigantic library ever. sometimes it's like using a 10 pound sledgehammer to push a tack into a wall.

    anyways qt's serial driver probably isn't the issue, it's well tested on linux.

    what kernel are you running, what serial driver and chipset do you use?

    the ultimate solution in linux or freebsd (which i used in my old aldl-io program) was to completely disable the kernel's serial driver and use libftdi to just send/recieve raw usb commands directly to the chip from userland. a bit more overhead, but that way you don't have a universal serial driver that needs to interface with ttys and junk telling you that a baud rate is no good, you can command the chip to do whatever it's capable of doing.. i found it rediculously stable.

    unfortunately qserialport does not support libftdi, but if i had to write a version that DID use libftdi, it would be a no brainer, i could just port the serial layer from aldl-io, as the api is fairly similar.

    edit: also what version of QT are you building against?

  4. #4
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,056
    i read the termios patch for QT and it seems like it might solve the problem. 5.6 is due for release soon too so we could make it a requirement for linux support..

  5. #5
    Fuel Injected! fbody_Brian's Avatar
    Join Date
    Mar 2013
    Location
    Biloxi MS
    Posts
    166
    Quote Originally Posted by steveo View Post
    qt is a real clusterfluck sometimes. it's the most gigantic library ever. sometimes it's like using a 10 pound sledgehammer to push a tack into a wall.

    anyways qt's serial driver probably isn't the issue, it's well tested on linux.

    what kernel are you running, what serial driver and chipset do you use?

    the ultimate solution in linux or freebsd (which i used in my old aldl-io program) was to completely disable the kernel's serial driver and use libftdi to just send/recieve raw usb commands directly to the chip from userland. a bit more overhead, but that way you don't have a universal serial driver that needs to interface with ttys and junk telling you that a baud rate is no good, you can command the chip to do whatever it's capable of doing.. i found it rediculously stable.

    unfortunately qserialport does not support libftdi, but if i had to write a version that DID use libftdi, it would be a no brainer, i could just port the serial layer from aldl-io, as the api is fairly similar.

    edit: also what version of QT are you building against?
    qt5.5.x at work right now so I can't be super precise, but it's definitely 5.5
    I've written a program using QT before, it was gigantic at qt3, I can only imagine it's just gotten bigger.
    The thing is, I can connect using winflash, datamaster, tunercats, all using wine in linux, so I know that it can work in linux. Not sure how wine talks to the serial device. I'm using the ftdi arduino setup. the $10 setup.

    Quote Originally Posted by steveo View Post
    i read the termios patch for QT and it seems like it might solve the problem. 5.6 is due for release soon too so we could make it a requirement for linux support..
    That's what I'm hoping for
    1994 LT1/4L60E Formula

  6. #6
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,056
    qt5.5.x at work right now so I can't be super precise, but it's definitely 5.5
    i think there's only 5.5.0 and 5.5.1

    i read all the 5.6 changelogs and eehack should build against it with no problems. qt is pretty good with backwards compatibility.

    Quote Originally Posted by fbody_Brian View Post
    Not sure how wine talks to the serial device.
    me either but i betcha it's either using termios (which has been around for ages) or it just knows how to deal with bitchy divisor complaints in a better way than me and qserialport do.

    I'm using the ftdi arduino setup. the $10 setup.
    good, same here.

    I've written a program using QT before, it was gigantic at qt3, I can only imagine it's just gotten bigger.
    it does depend how you build it. 5.4 bundled with qt creator was built with internationalization and webkit junk and required like 20mb+ of libraries for your average program.

    getting qt to recompile on windows can be a nightmare, so i just left it alone, also it's GPL so even changing some #defines means technically i'd have to host the entire source for it.. at least if it's unmodified, i can just link people to the qt windows source if i get called on it.

    5.5, though, seems slimmer in it's default windows binary form, it doesn't seem to require linking against internationalization shit, which is just awesome. that's how i managed to get eehack+libraries+installer down to around 6mb (uncompresses to like 12mb, no big deal)

  7. #7
    LT1 specialist steveo's Avatar
    Join Date
    Aug 2013
    Posts
    4,056
    i should mention every single other developer i talked to before writing my own aldl software (and that includes quite a few) told me that setting the serial baud rate to 8192 in a way that works on most configurations can be the hardest part of the entire development. im glad qt did all the nasty work for me on windows.

Similar Threads

  1. 1badcell and thats not the only thing
    By 1badcell in forum Introductions
    Replies: 2
    Last Post: 12-31-2013, 02:25 AM
  2. Replies: 6
    Last Post: 11-27-2012, 09:03 PM
  3. Replies: 2
    Last Post: 11-07-2012, 05:26 PM
  4. Minor thing.
    By historystamp in forum GearHead EFI Forum Support
    Replies: 7
    Last Post: 01-22-2012, 12:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •