DriverCore SDK

GX and Typhoon hardware, this includes, displays, cables and accessory cards.

Moderator: Mods

Post Reply
Fiery
LCD Geek
Posts: 36
Joined: Wed Jul 09, 2014 2:38 pm
Location: Budapest, Hungary
Contact:

DriverCore SDK

Post by Fiery » Wed Jul 09, 2014 2:41 pm

Hi,

New user here. I'd like to display full-screen bitmaps on a recently purchased GX Typhoon LCD, from my own application. I'm wondering whether it would be possible to gain access to the DriverCore SDK. I'd like to drive the LCD from a regular Windows C++ application, so it's not dotNET.

Thanks,
Fiery

Ray
Matrix Orbital
Matrix Orbital
Posts: 729
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Re: DriverCore SDK

Post by Ray » Thu Jul 10, 2014 12:10 pm

Ever since the 2011 update, driver-core is no longer used, a normal windows driver with an IOCTL interface is used now so calling it from C++ should not be an issue. Now the bad news: we've never written a C++ library to use this driver (just a C# library) I threw together a quick C++ example that displays random noise to the screen, it's not the best code and by no stretch an SDK, but it should be enough to get you going, I only implemented the driver calls i absolutely needed but i've included a file called GXDriver.cs in the zipfile that'll show you what parameters the other calls expect. If you have any problems , questions or issues feel free to bug me :)
Attachments
GX.ZIP
GX msvc C/C++ example
(7.01 KiB) Downloaded 69 times

Fiery
LCD Geek
Posts: 36
Joined: Wed Jul 09, 2014 2:38 pm
Location: Budapest, Hungary
Contact:

Re: DriverCore SDK

Post by Fiery » Fri Jul 11, 2014 5:04 am

Thank you, that's awesome! You guys truly have an outstanding support staff.

I've checked the sources, and managed to make it work already. The only thing doesn't seem to work is IOCTL_GET_DEFAULT_CONTRAST. What sort of calling convention do I have to use for that? I've tried it like IOCTL_GET_DEFAULT_BACKLIGHT, but with a 1-byte long buffer, but it didn't work out. While IOCTL_GET_DEFAULT_BACKLIGHT with a 3-byte buffer works just fine, so as all the other calls I've tried to use.

Ray
Matrix Orbital
Matrix Orbital
Posts: 729
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Re: DriverCore SDK

Post by Ray » Fri Jul 11, 2014 7:46 am

Uhmmz, well this is embarrassing, it seems like IOCTL_GET_DEFAULT_CONTRAST got defined, but didn't get implemented which is why it's failing on you. I'll make a note to get this implemented, but it might be a bit before that'll happen, sorry about that.

Fiery
LCD Geek
Posts: 36
Joined: Wed Jul 09, 2014 2:38 pm
Location: Budapest, Hungary
Contact:

Re: DriverCore SDK

Post by Fiery » Fri Jul 11, 2014 8:04 am

Thank you for the clarification. It's not a huge problem for us, fortunately :) Till it gets implemented, can you please tell me what's the default contrast value for GX Typhoon devices? I'd guess somewhere around 160 (decimal), but I cannot verify that :(

Ray
Matrix Orbital
Matrix Orbital
Posts: 729
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Re: DriverCore SDK

Post by Ray » Fri Jul 11, 2014 8:42 am

The factory values we ship with :

Red: 255
Green: 255
Blue :255
Contrast: 114
IR: On

One more note, please be responsible with the set default and set splash screen calls, they store their data in a little eeprom chip on the module which is rated for 1 Million write cycles. With our normal gui tools it's virtually impossible wear out that little chip, doing 1M writes from code? couple of minutes at best.

Fiery
LCD Geek
Posts: 36
Joined: Wed Jul 09, 2014 2:38 pm
Location: Budapest, Hungary
Contact:

Re: DriverCore SDK

Post by Fiery » Fri Jul 11, 2014 9:46 am

Thank you. The software I'm working on will not modify or alter the default settings. I just want to detect the default values to make sure the software restores them before exiting, since as it seems, when you close a session, the driver will not revert the LCD backlight and contrast settings back to their default values for some reason.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests