Menu

#129 will pay for fix: cannot access cyclades serial ports

pending
nobody
None
5
2012-11-02
2004-11-19
No

I'll pay $250 USD for a fix or workaround if you email
me ahead of time. If anyone does commercial support
please let me know.

I've installed dosemu 1.2.2 on a box with a Cyclades Z
series serial port expander. The DOS session cannot
communicate with the serial ports, either with a
special terminal emulator that we use, or pcplus. The
serial ports work fine from a Linux terminal emulator
-- minicom for example. The statserial command shows no
data activity when the dos terminal emulator is trying
to communicate. The setserial command shows the serial
port like this:

/dev/ttyC14, UART: undefined, Port: 0x000e, IRQ: 0

I've defined the serial port like this in
/etc/dosemu/dosemu.conf

$_com1 = "/dev/ttyC14 irq 4"

or just:

$_com1 = "/dev/ttyC14"

In the boot.log file, it shows this:

SERIAL $Header:
/cvsroot/dosemu/dosemu/src/base/serial/ser_init.c,v
1.1.2.5 2004/02/10 00:36:26 bartoldeman Exp $
registering /dev/ttyC14 for serial

The email for this problem is
dosemu_problem@selectcomm.com.

Thanks for any help. Brandon.

Discussion

  • Stas Sergeev

    Stas Sergeev - 2004-11-20

    Logged In: YES
    user_id=501371

    If anyone does commercial support please let me know.
    You can find the commercial support for dosemu here:
    http://www.findopensourcesupport.com/software/viewsoftware.php?software=dosemu
    Dosemu dev team does not currently provide the commercial
    support, but offering the reward for resolving the particular
    problem may certainly help to speed up the process.

    /dev/ttyC14, UART: undefined, Port: 0x000e, IRQ: 0
    This looks very wrong. Can you provide your dmesg output?

    1.1.2.5 2004/02/10 00:36:26 bartoldeman Exp $
    There are several known problems with ser ports in
    that version. Please upgrade from CVS and see if
    the problem is still there. And if it is, please attach
    the -D9+cs log.

     
  • Anonymous

    Anonymous - 2004-11-20

    dmesg.txt

     
  • Anonymous

    Anonymous - 2004-11-20

    Logged In: YES
    user_id=1162667

    I've attached the dmesg as dmesg.txt. I've compiled the
    latest CVS version (1.3.1.1) as an rpm and installed it. No
    luck with the Cyclades serial ports, however on another
    machine I was able to access the standard serial ports just
    fine. Before I run dosemu, the statserial command shows this:

    Device: /dev/ttyC14

    Signal Pin Pin Direction Status Full
    Name (25) (9) (computer) Name
    ----- --- --- --------- ------ -----
    FG 1 - - - Frame Ground
    TxD 2 3 out - Transmit Data
    RxD 3 2 in - Receive Data
    RTS 4 7 out 1 Request To Send
    CTS 5 8 in 1 Clear To Send
    DSR 6 6 in 0 Data Set Ready
    GND 7 5 - - Signal Ground
    DCD 8 1 in 0 Data Carrier Detect
    DTR 20 4 out 1 Data Terminal Ready
    RI 22 9 in 0 Ring Indicator

    Afterwards I run dosemu and before I run a DOS serial port
    program, statserial shows this:

    Device: /dev/ttyC14

    Signal Pin Pin Direction Status Full
    Name (25) (9) (computer) Name
    ----- --- --- --------- ------ -----
    FG 1 - - - Frame Ground
    TxD 2 3 out - Transmit Data
    RxD 3 2 in - Receive Data
    RTS 4 7 out 1 Request To Send
    CTS 5 8 in 0 Clear To Send
    DSR 6 6 in 0 Data Set Ready
    GND 7 5 - - Signal Ground
    DCD 8 1 in 0 Data Carrier Detect
    DTR 20 4 out 0 Data Terminal Ready
    RI 22 9 in 0 Ring Indicator

    Nothing changes when I run the application inside of dosemu.

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-20

    Logged In: YES
    user_id=501371

    You forgot the -D9+s log (which is start dosemu with -D9+s
    option and attach your ~/.dosemu/boot.log)
    Also please attach the "lspci -v" output.

     
  • Anonymous

    Anonymous - 2004-11-21

    boot.log

     
  • Anonymous

    Anonymous - 2004-11-21

    lspci.txt

     
  • Anonymous

    Anonymous - 2004-11-21

    Logged In: YES
    user_id=1162667

    OK, I've attached the boot.log file and lspci output.

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-21

    Logged In: YES
    user_id=501371

    however on another
    machine I was able to access the standard serial ports just
    fine. Before I run dosemu, the statserial command shows this:
    OK, in this case I think the problem is in the Cyclades
    driver itself. It doesn't seem to handle the CTS right.
    Please try the attached hack. It forces dosemu to think
    it uses the pseudo-tty, maybe that will work around the
    problem. Apply the patch and recreate the log.

     
  • Anonymous

    Anonymous - 2004-11-21

    boot.log3.gz

     
  • Anonymous

    Anonymous - 2004-11-21

    Logged In: YES
    user_id=1162667

    OK, I patched the dosemu source files, recompiled and
    installed. The terminal program that I am trying to get
    working still isn't working, however the pcplus program now
    shows that the serial port is ON-LINE, but that's the only
    difference. Previously, pcplus showed OFF-LINE. The attached
    boot.log3.gz file (249447 bytes uncompressed) is the
    boot.log result when running dosemu -D9+s.

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-21

    Logged In: YES
    user_id=501371

    OK, I patched the dosemu source files, recompiled and
    installed. The terminal program that I am trying to get
    working still isn't working
    Please precise how exactly it isnt working. What does it
    complain at?

    however the pcplus program now
    shows that the serial port is ON-LINE, but that's the only
    difference.
    OK, then please revert the patch and attach the log
    from the working session, as you said on another PC
    you were able to get dosemu to work with the standard
    ser port and your terminal program.

    Previously, pcplus showed OFF-LINE.
    That's normal I suppose. Please specify how exactly
    the pcplus fails.

     
  • Anonymous

    Anonymous - 2004-11-21

    Logged In: YES
    user_id=1162667

    Please precise how exactly it isnt working. What does it
    complain at?

    The terminal emulator program (DLS) just doesn't work. It
    has a standard error message that says "Logon / Logoff
    Error." The terminal program is essentially a TVI925
    terminal emulator running at 38400 bps, and I can also
    emulate the same mode with the pcplus program.

    OK, then please revert the patch and attach the log
    from the working session, as you said on another PC
    you were able to get dosemu to work with the standard
    ser port and your terminal program.

    My apologies -- that's not exactly what I did, and I didn't
    specify exactly what I did before. On the other machine I
    simply tested to make sure the dosemu program would work at
    all. I tested against a different system (pcplus in VT102
    mode, 9600 bps, ttyS0 port). I will attach that boot.log as
    boot.log4.gz. I will have a chance to create a proper
    boot.log file (running dosemu on the same TVI925 device
    using standard serial ports) once I move some cables around
    later tonight.

    That's normal I suppose. Please specify how exactly
    the pcplus fails.

    When I am testing pcplus on the Cyclades system, it displays
    nothing except for the status line at the bottom of the screen.

     
  • Anonymous

    Anonymous - 2004-11-22

    Logged In: YES
    user_id=1162667

    OK, attached is the boot.log file for a session where dosemu
    successfully runs the DLS terminal emulator program
    successfully. It was setup on ttyS0.

     
  • Anonymous

    Anonymous - 2004-11-22

    Logged In: YES
    user_id=1162667

    boot.log file for dosemu session with successful running of
    DLS terminal emulator program on ttyS0 is boot.log5.gz

     
  • Anonymous

    Anonymous - 2004-11-22

    boot.log5.gz

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-22

    Logged In: YES
    user_id=501371

    What I can see from the logs, is the following:
    Dosemu is sending the data in both cases. With the normal
    serial port, it immediately receives the reply, with Cyclades
    it receives nothing at all. Would be nice if you verify whether
    or not your hardware gets what dosemu is trying to send.
    Also Cyclades report CTS=0, while with the normal port it
    is 1.
    I think this is the bug of Cyclades. As you say it works
    with minicom, I suppose it is only dosemu triggers that
    bug. So some work-around might be possible, but in an
    absense of the Cyclades board I can't try anything.
    Try changing ser_init.c:283 from #if1 to #if0 and see
    if it changes something.
    I think you should report this problem to Cyclades team.
    Given that dosemu works for you with the normal
    serial ports, it is really something that Cyclades should
    resolve themselves.

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-30

    Logged In: YES
    user_id=501371

    I think I've found the bug with CTS. Not sure if it will fix the
    entire problem, but please apply the attached patch and
    re-do the log. (revert the previous patch of course)

     
  • Stas Sergeev

    Stas Sergeev - 2004-11-30

    this should fix CTS

     
  • Anonymous

    Anonymous - 2004-12-01

    boot.log6.gz

     
  • Anonymous

    Anonymous - 2004-12-01

    Logged In: YES
    user_id=1162667

    Thanks for the patch. I've tried it and it didn't work. The
    boot.log6.gz file from the latest attempt is below. I
    realize you need access to the system to fix this, so I will
    free up a system with a Cyclades card in it for you to use.
    I hope to do this shortly.

     
  • Stas Sergeev

    Stas Sergeev - 2012-05-20

    See if this is still the problem in current dosemu git.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.