Fedora Linux Support Community & Resources Center
  #1  
Old 31st January 2010, 06:57 PM
confuz Offline
Registered User
 
Join Date: Jan 2010
Posts: 2
linuxfirefox
Arrow hello, did you work on embeded linux?

hello everyone,

the thing is, i run into a problem when i tried on linux to communicate a printer through a serial port.

i found there is noway to setting up hardware flow control in termios struct. so i tried the software control, that is, use x-on/x-off. pls see flowing code segment:

Quote:
options.c_iflag |= (IXON | IXOFF | IXANY);
options.c_cc[VSTART] = VSTART_MACRO;
//disable hardware control
options.c_cflag &= ~CRTSCTS;
but, when i try to listen to the serial port, there is nothing coming out and in, whatever i write. i use select interface to monitor the serial port file descrpt.i can see my input on terminal window, but the printer did not answer it.

could you help to check, is there anything wrong in my code? is it not a possible way to work on serial port like this?

cheers,

confuz

Last edited by confuz; 1st February 2010 at 09:24 AM.
Reply With Quote
  #2  
Old 7th February 2010, 05:21 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,857
linuxfedorafirefox
Why did you put "embedded" in the title of your post? Does your attempt to communicated with a serial port work on an ordinary PC or not?

If you want someone to check your code, I think you need to post an example that can be complied and run.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #3  
Old 1st March 2010, 01:44 PM
confuz Offline
Registered User
 
Join Date: Jan 2010
Posts: 2
windows_vistasafari
Quote:
Originally Posted by tashirosgt View Post
Why did you put "embedded" in the title of your post? Does your attempt to communicated with a serial port work on an ordinary PC or not?

If you want someone to check your code, I think you need to post an example that can be complied and run.
no, it will be ported to an embeded utclinux.

yes, i want people who have similar working experiences to give some suggestions. i do not have a working code. what i've done is just same as in my first post.

thanks for your attentions.

---------- Post added at 05:44 AM CST ---------- Previous post was at 05:39 AM CST ----------

the problem is kinda solved by another guy, and i do not know how exactly.

the post could be closed.

still i do not how to set the terminos struct to talk to a device through serial pins.

thanks, guys.
Reply With Quote
Reply

Tags
embeded, linux, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send embeded videos to play in VLC. ACiD GRiM Using Fedora 0 4th August 2009 04:24 PM
links in embeded glade of anjuta does not work gong Programming & Packaging 0 26th January 2009 05:25 AM
fedora core 5 browser embeded video java125 Using Fedora 8 16th June 2006 03:11 PM
Embeded .wav files in firefox jsimmonds Using Fedora 4 17th October 2005 01:46 AM


Current GMT-time: 00:33 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat