Posted: Sat 02 Oct 2010, 03:09 Post subject:
WINE and Serial Ports Subject description: How to toggle DTR/DTS?
System : Puppy 4.3.1 Embedded system on CF Card in IDE adaptor, WINE 1-3.0 (SFS), Motherboard has COM port (16550A UART)
Hi, I don't know if this is too "hardware" for here, but here goes...
I'm trying to connect my small embedded puppy server to a weather station using the serial port, the everything runs fine under windows but I can't get the serial port to work on WINE under puppy. After a lot of googling, step so far:
1 - create com port in ~/.wine/dosdevices "ln -s /dev/ttyS0 com1"
2 - set serial port with "stty 2400 cs8 –parenb –cstopb -clocal – F /dev/ttyS0"
(Baudrate 2400 Bits 8 Parity None Stopbits 1)
Speaking to the author of the software I think the issue is the weather station requires DTR -ve and RTS +ve. The software does this when it starts - on windows with a meter I can see the pins go high and low - but under WINE it does not.
see: http://sandaysoft.com/forum/viewtopic.php?f=13&t=2977 for more info if interested...
I've never done serial ports under Linux before so am a bit in the dark, Does anyone know how to force the pins states, e.g. write to the UART's registers, and if I do this will it lock the port so the windows software cant use it?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum