Help Me
Hai Everybody there,
Please tell me how to access serialport(RS232) data using OpenGL. Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data. thankyou in advance. |
There's a typo in your question. There must be - rs232 is a serial protocol, but SDL and OpenGl are libraries for displaying video. The 2 don't mix. This site is useful
http://www.tomshardware.net/ |
KP;
Welcome to LQ!! Please give us some context for your question----If you describe the overall problem you are trying to solve, then it will help us interpret the details. |
Quote:
|
Context
Quote:
We are building a gamecontroller for car racing. User gives input through the steering,built using a potentiometer,that data is sent to PC via RS232 cable. These part is done n working fine. now,We are developing a racing game in OpenGL, we need to access the data coming through the serial port. Is there any API in OpenGL to access the serial port data..? Does SDL will help us..? or Do v have any Library to do so in OpenGL? Please suggest. ThankYou in advance. |
We already told you,
OpenGL has NOTHING to do with serial ports. It's just a graphics library. |
Your development environment will include utilities for dealing with a serial port----I assume that it will be in one of the header files.
I am not a progammer, but if you describe your development environment, I am sure someone will know how to access serial devices. But, meanwhile, look thru your header files to see if anything looks relevant. |
I don't think we will write your program for you.
Data from rs232 lands somewhere. It's your job to find out where it lands, and what addresses it. Install the 'info' pages with your distro, which have a useful page on all C functions. You really need to get to know your system before you go coding for it these days.And don't put serial ports in any new soiftware; they are old, and blow easily. Most new boxes don't even have one. |
Quote:
See below: http://tldp.org/HOWTO/Serial-HOWTO.html http://www.faqs.org/docs/Linux-mini/...ing.html#ss6.3 http://www.comptechdoc.org/os/linux/...pgcserial.html |
All times are GMT -5. The time now is 10:57 PM. |