Previous Thread
Next Thread
Print Thread
#112114 - 01/09/18 07:22 PM KayproII OSX serial output  
Joined: Nov 2017
Posts: 4
k-Tracker Offline
Member
k-Tracker  Offline
Member

Joined: Nov 2017
Posts: 4
Hello MAME team, sorry I'm newbie and learning MAME.
I'm interested in KayproII (or 4) emulation, and I got one running just fine:
http://www.progettoemma.net/mess/system.php?machine=kayproii
I learned to use right floppy format and loaded the program I need for the communication to other gear. Unfortunately I need a serial communication enabled somehow, sorry, I was not able to figure out how to enable it or it ever exists. I'm with mame0191b_macOS. I downloaded QMC2 yesterday, in case I find any configuration otpions in a GUI for the Serial Port redirection. But I only see Centronics emulation called Serial Printer. Not sure if it's what I need, as Kaypro has parallel printer port too.
Would you please help me to figure out if Serial Port redirection exists and how to use it with KayproII emualtion?

#112125 - 01/10/18 12:12 PM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: May 2008
Posts: 4,865
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,865
Germany
Note that QMC2 currently doesn't support this (due to earlier changes in MAME), but you can use the "-listslots" command to find what you're looking for:

Code
rene@marvin:~/src/mame-git> ./mame64 -listslots kayproii
SYSTEM           SLOT NAME        SLOT OPTIONS     SLOT DEVICE NAME
---------------- ---------------- ---------------- ----------------------------
kayproii         centronics       ap2000           Epson ActionPrinter 2000
                                  covox            Covox Speech Thing
                                  covox_stereo     Covox (Stereo-in-1)
                                  ex800            Epson EX-800
                                  lx800            Epson LX-800
                                  lx810l           Espon LX-810L
                                  p72              NEC PinWriter P72
                                  pl80             COMX PL-80
                                  printer          Centronics Printer

                 serial           ie15             IE15 Terminal
                                  keyboard         Serial Keyboard
                                  loopback         RS232 Loopback
                                  null_modem       RS232 Null Modem
                                  printer          Serial Printer
                                  pty              Pseudo terminal
                                  sunkbd           Sun Keyboard Adaptor
                                  terminal         Serial Terminal

                 fdc:0            525dd            5.25" double density floppy drive
                                  525qd            5.25" quad density floppy drive
                                  525ssdd          5.25" single-sided double density floppy drive

                 fdc:1            525dd            5.25" double density floppy drive
                                  525qd            5.25" quad density floppy drive
                                  525ssdd          5.25" single-sided double density floppy drive

Then just add "-serial <slot_option>" to the MAME command line, i. e.:

Code
rene@marvin:~/src/mame-git> ./mame64 kayproii -serial null_modem


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#112126 - 01/10/18 12:24 PM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Aug 2004
Posts: 1,345
Robbbert Offline
Very Senior Member
Robbbert  Offline
Very Senior Member

Joined: Aug 2004
Posts: 1,345
Also, you should use the latest version of MAME (0.193).

#112136 - 01/10/18 08:42 PM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Nov 2017
Posts: 4
k-Tracker Offline
Member
k-Tracker  Offline
Member

Joined: Nov 2017
Posts: 4
Thank you for suggestions. I've realized only 0.193 gives me a serial slot option, which is not available in 0.192.
So I run it with a floppy image, but what does it do? creates a pipe? How I can figure out where does it go? Especially if I need to forward it to hardware serial port.
Please, advise.

#112144 - 01/11/18 04:16 AM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Feb 2004
Posts: 1,889
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,889
Sydney, Australia
Well, typically people use it to forward to a TCP socket. You can probably use the pty device to forward to a serial port, or you can use another program to bridge a listening socket to the serial port.

#112145 - 01/11/18 08:07 AM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Nov 2017
Posts: 4
k-Tracker Offline
Member
k-Tracker  Offline
Member

Joined: Nov 2017
Posts: 4
I understand, thank you!
I tried following - running a terminal app inside Kaypro with null_modem option:

sudo ./mame64 kayproii -flop1 ./KAYPRO1.IMD -serial null_modem -bitbanger socket.127.0.0.1:1001 -window -mouse

and connect it with "telnet 127.0.0.1 1001"

Telnet finds it and connects, but there is nothing coming onto the screen. Just to verify that, - if I change serial to "loopback", I see characters on Kaypro terminal app, so it's working.
I think maybe I didn't configure Serial port properly inside MAME, but I don't know how to invoke a combination of ScrollLock+TAB on the Mac. Please, help.

I know I'm somewhere close... according to other guide, it should work smoothly on other ROMs.
https://frakaday.blogspot.com/2016/09/mame-esselte-100-and-serial-support.html

#112147 - 01/11/18 10:00 AM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Feb 2004
Posts: 1,889
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,889
Sydney, Australia
You use Forward Delete (rather than Scroll Lock) to toggle full/partial keyboard mode on OSX by default (fn-delete on a MacBook or miniature keyboard, dedicated key on a full desktop keyboard). Then you can use tab to bring up the menu. In the menu, go to Machine Configuration and set up the serial options.

#112150 - 01/11/18 04:37 PM Re: KayproII OSX serial output [Re: k-Tracker]  
Joined: Nov 2017
Posts: 4
k-Tracker Offline
Member
k-Tracker  Offline
Member

Joined: Nov 2017
Posts: 4
Thanks!
If I run MAME as following:
sudo ./mame64 kayproii -flop1 ./KAYPRO1.IMD -serial null_modem -bitbanger out.file -window -mouse

and set up serial port as 19200 + one stop/start byte for every character I type, the out coming file has just zeros which basically means only start/stop bytes are transferred and not the data. If I disable start/stop bytes, then there is nothing at all inside a file. So, this test shows, there is no actual data transmitted to the serial port.
I'm not clear where I'm failing now, appreciate for any advise.


Moderated by  R. Belmont 

Who's Online Now
4 registered members (ted, Monotremata, R. Belmont, 1 invisible), 26 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,480
Posts110,308
Members4,770
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.027s Queries: 14 (0.006s) Memory: 4.9887 MB (Peak: 5.1962 MB) Zlib enabled. Server Time: 2018-01-18 19:56:40 UTC