C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-08-2002, 01:15 PM   #1
Unregistered
Guest
 
Posts: n/a
Need help or info about serial port communication

Hello all,

I have to port some C code from windows to linux, this code will comunicate with a filter wheel on the serial port( this a simple step motor that moves the wheel around, to differant positions and has a home position.)

I do not know how to do this, so some information on how I would go about this would be helpful. The windows source code was written in C.

It first sets the device(number of filters,steps etc...)
Opens the port
Gets the port config
Has 2 functions to write and read data to the port
Closes the port
Sets the filterposition and has a stepmotor function

Any help from similiar serial port projects or code that I could view that would help with these 6 tasks would be most helpful.

thanks a lot.

David Walker
  Reply With Quote
Old 01-08-2002, 01:48 PM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
This should get you started
http://www.ibiblio.org/mdw/HOWTO/Serial-HOWTO.html
Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplex communication thro serial port Priyachu Networking/Device Communication 1 05-30-2009 04:24 AM
Duplex communication thro serial port Priyachu Linux Programming 1 05-30-2009 04:03 AM
Serial port Communication vin_pll C++ Programming 23 01-07-2009 09:32 AM
Serial Port Communication maxorator C++ Programming 11 04-27-2006 03:13 PM
DOS, Serial, and Touch Screen jon_nc17 A Brief History of Cprogramming.com 0 01-08-2003 04:59 PM


All times are GMT -6. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22