Search found 7 matches
- Wed Apr 17, 2024 8:41 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
I got it working. Mostly the problem was that my generic_read() was reading multiple bytes when it should have been reading only byte at a time. If anyone Googles this thread, the corrected code is below. #include <termios.h> #include <stdio.h> #include <errno.h> #include <stdint.h> #include <fcntl....
- Tue Apr 16, 2024 7:13 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
To give an update -- I'm getting closer. I was able to verify sending/receiving from the command line by execute in one terminal window: stty -F /dev/ttyUSB0 115200 raw cat /dev/ttyUSB0 | xxd ...and executing in a second terminal window: echo -ne '\xFE\x00' > /dev/ttyUSB0 ...which gives the output: ...
- Tue Apr 16, 2024 3:36 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
I'm on USB, so is flow control still applicable?
- Tue Apr 16, 2024 2:40 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
It's not resolved -- I'm at a loss as to why no bytes are being read. It appears that bytes can be written -- that's why clearing the screen and drawing a line works -- but that bytes cannot be read, such as to get the protocol version. Do you know why that might be? Do I need to set up the serial d...
- Mon Apr 15, 2024 7:04 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
After further investigation, it appears it's never able to read any input from the device, and that's why it's in an infinite loop waiting. The read() in my generic_read() is always returning -1.
- Mon Apr 15, 2024 12:44 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Re: Linux load bitmap
So this works: gtt_clear_screen(gtt); gtt_draw_line(gtt, 0, 0, 480, 272); ...the screen is cleared and the line is drawn. However, this hangs on the gtt_get_protocol_version(): gtt_clear_screen(gtt); gtt_get_protocol_version_return v = gtt_get_protocol_version(gtt); I tried with and without flow con...
- Sun Apr 14, 2024 12:54 pm
- Forum: GTT Series
- Topic: Linux load bitmap
- Replies: 10
- Views: 1219
Linux load bitmap
Newbie here. Attempting to just display a bitmap on GTT35 under Linux in C. I'm using the driver code found in Firmware\Client\gttclient . Below is my code -- it always hangs in the midst of gtt_load_bitmap(). As you can see from the commented-out code, I also tried the gtt25_ API. #include <termios...