LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2012, 05:38 PM   #1
failte200
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
SOLVED: DOSEMU serial port problems


Took DAYS to chase this down:

In the latest (and probably last) DOSEMU version, there's a bug that sets com ports to 2400 baud. You can get around this by adding a "system" command to the ~/.dosemu/drive_c/autoexec.bat file: "system stty 9600 -F /dev/ttyWhichever" ("whichever" being the device you specified in
/etc/dosemu/dosemu.conf to be $_com1 (or whichever com port).

So in summary, to allow DOSEMU to send to a serial port as NON-ROOT user:

1) be sure your DOSEMU user belongs to the same group as the /dev/ttyX device you want does.

2) modify /etc/dosemu/dosemu.conf to set $_com1=/dev/ttyX

3) modify the autoexec.bat file as above because every time DOSEMU is started it will set it's com port to 2400, and the autoexec.bat will reset it to what you want.

Aside: you can check (from the Linux side) the port's speed with "stty -a -F /dev/ttyX" to make sure.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems addressing the serial port donwny Linux - Software 6 05-26-2011 07:54 AM
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 01:19 PM
Serial port abstraction problems prushik Linux - Hardware 8 09-17-2009 02:46 PM
Serial port configuration problems? Dims Linux - Newbie 3 06-18-2009 04:45 AM
Serial port or Modem problems ugol Linux - Hardware 2 07-26-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration