![]() |
![]() |
![]() |
#1 |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 19
|
Serial port problem
Hello all,
i can't seem to get my serial connection with WinUAE 4.4.0 to work as it should - maybe someone can give me hint. I need to send data to a piece of hardware using the following settings: baudrate 31250, 1 start bit, 8 data bits, parity even, 1 stop bit, no handshaking (not supported by hardware). Everything works fine on windows but i can't get it to work from within WinUAE. For debugging i've set up com0com (com1 <=> com2). WinUAE IO-port settings: com0com (com1) selected in Serial Port dropdown Shared - unticked RTS/CTS - unticked Direct - unticked uaeserial.device - unticked WB serial preferences: baudrate: 31250 input buffer size: 8192 Handshaking: none Parity: even Bits/char: 8 Stop Bits: 1 Applied "Use" and "Save" echo "hello" >ser: gives the following ascii output in a terminal on windows connected to com2: A9, 68='h', A8, 65='e', A8, 6C='l', A8, 6C='l', A8, 6F='o', A8, 0A='\n' Tried various settings, none worked except if i switch to parity 'None'. Unfortunately this is not an option, since this setting is not supported by my hardware ('even', 'odd', 'mark', 'space' - all supported, but 'none' isn't). What am i doing wrong? Is parity not supported / buggy? Any alternatives? I need to send data to the serial port from within the amiga shell... Any help appreciated. Michael |
![]() |
![]() |
#2 |
Registered User
Join Date: Nov 2010
Location: Sweden
Posts: 471
|
What odd hardware are you using that doesn't support parity = none?
|
![]() |
![]() |
#3 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 24,625
|
uaeserial.device supports parity. (But probably was never tested..)
Paula serial port emulation can't because Paula serial port parity is Amiga-side serial.device software feature so there is no way for emulator to know if data written to SERDAT is actually 8/9 bits or 7/8+parity bit. |
![]() |
![]() |
#4 |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 19
|
Thanks Toni,
so if i understand correctly, then sending data with parity is impossible from within WinUAE using serial.device due to this Paula thing? Maybe using uaeserial.device? I read somewhere, that it's directly connected to PC-side comports (unit == portnumber). Is it possible to use uaeserial.device from the shell (classic WBs 1.3 ... 3.1)? Is there a "compatible" handler to mount it e.g. as aux or whatever? I'd like to use shell scripts to compile code and send the ouput via serial to the connected hardware. Googled quite a bit for uaeserial.device but there's not much information... Michael |
![]() |
![]() |
#5 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 45
Posts: 24,625
|
uaeserial.device unit 0 is first PC port, 1 second and so on. Otherwise it works just like normal serial.device.
But I am not sure if all PC serial ports support 8 + 1 parity bit mode. 7+1 would have worked even with emulated serial.device because there is no hardware level difference between 7+1 and 8+0. I think there was some way to customize serial device name and unit to AUX handler via extra mount list entries but I don't remember it now. Or just hex edit l:aux-handler ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Serial Port? | EugeneNine | support.FS-UAE | 5 | 23 February 2017 02:09 |
Debugging over Serial-Port | sigma63 | support.WinUAE | 1 | 14 March 2016 20:02 |
Serial port, parallel port, and pipe device mount errors | Samurai_Crow | support.FS-UAE | 4 | 13 March 2014 01:04 |
Serial Port Questions | iainnitro | support.Hardware | 10 | 21 April 2012 17:03 |
How to test serial port? | mmikko | support.Hardware | 2 | 05 February 2008 09:43 |
|
|