LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-05-2007, 12:21 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
wine and serial port app


distro: ZW 4.6.1
kernel: 2.6.22.1

I am running wine 0.9.46 with an application Dynamic-C ( a compiler for the rabbit line of embedded processors).

The program loads data to code space on the development board via a serial connection. I have linked: dosdevices/com1 -> /dev/ttyS0 and set up the system.reg entries.

the data seems to be getting sent out:
Code:
root[drive_c]# cat /proc/tty/driver/serial 
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:7032 rx:6
but the information is not getting back to the program in 'wine space' ? I have tried running strace -o ~/dc.log wine <appname> and made some progress by renaming mixed case files to upper or lower case based on file not found errors.

here is the rest of what I've looked at, if anything else is of help please ask.
serial port info: (I have tried tweaking /dev/ttyS0 with the low_latency flag and numerous baud rates)
Code:
root[drive_c]# dmesg | grep tty
00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
root[drive_c]# ls -l /dev/ttyS0
lrwxrwxrwx 1 root root 5 2007-10-05 08:39 /dev/ttyS0 -> tts/0
root[drive_c]# ls -l /dev/tts/0 
crwxrwx-w- 1 root tty 4, 64 2007-10-05 10:04 /dev/tts/0
root[drive_c]# setserial -abGv /dev/ttyS0
/dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_vhi skip_test low_latency
here are the relevant kernel modules:
Code:
root[drive_c]# lsmod | grep ser
serial_cs              21252  0 
8250                   23828  4 serial_cs,8250_pnp
serial_core            20032  1 8250
pcmcia                 37548  2 serial_cs,parport_cs
and interrupts:
Code:
root[drive_c]# cat /proc/interrupts
           CPU0       CPU1       
  0:    1855508          0   IO-APIC-edge      timer
  1:       7494          0   IO-APIC-edge      i8042
  3:          0          0   IO-APIC-edge      parport0
  4:       1321          0   IO-APIC-edge      serial
<snip>
ports:
Code:
root[drive_c]# cat /proc/ioports | grep -2 3f8
<snip>
03f6-03f6 : 0000:00:1f.2
  03f6-03f6 : libata
03f8-03ff : serial
04d0-04d1 : pnp 00:02
0910-091f : pnp 00:08
<snip>
So I'm wondering if there is something in wine or a service that needs to be enabled to receive serial communication properly?

thanks for looking!
 
Old 10-16-2007, 03:09 PM   #2
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
bump

I'm still looking for ideas... Anyone? Even generic nix/wine config tips may be useful, though I've tried to follow the docs for that stuff.

thanks
 
Old 12-04-2008, 05:22 AM   #3
WoB
LQ Newbie
 
Registered: Dec 2008
Location: near vienna
Distribution: Ubuntu 10.8
Posts: 2

Rep: Reputation: 0
Arrow same problem

Hi
I have the same problem with wine and mono.
I have a sub to serial converter ttyUSB0.
I can send and receive data with gtkterm.
I can send data with mono and wine
But I cant receive data with mono and wine.
The program started in mono is written with Sharpdevelop/Monodevelop.
the program started in wine is written in delphi.
any idea ?
thanks
 
Old 12-05-2008, 09:38 AM   #4
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
WoB

Id strongly recommend startng your own thread vs jumping into one that is > 1yr old. You'll likely get much more help.

Alternatively, my final solution was to just use virtualbox, which works very well with usb peripherals, and use a usb->serial converter.

cheers
 
  


Reply

Tags
serial port, wine



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
Wine + Serial Port? bingo Linux - Software 2 08-04-2007 07:18 AM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
serial port stays open after app. closes MuLaZ Linux - Hardware 3 12-31-2005 01:16 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
serial port under Mandrake 10.0 + Wine Andrew Skinner Linux - Hardware 0 11-02-2004 07:15 AM

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

All times are GMT -5. The time now is 03:18 PM.

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