Serial Port mapping in Basilisk II with host OS X?

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
Warty
Student Driver
Posts: 12
Joined: Mon Feb 15, 2021 12:41 am

Serial Port mapping in Basilisk II with host OS X?

Post by Warty »

I'm trying to test a program I'm developing for classic Macs that uses the serial port. I see references to being able to Map serial ports to OS X /dev/tty* serial devices, but I can't get anything to stick there. I can get that working in SheepShaver. I don't suppose there's a trick that works?

eg, here's what I would like to get working in BII:
/dev/tty.usbserial-FT53JP031

That will let me talk to my Mac Plus on the other end of the USB<>Serial adapter.
User avatar
adespoton
Forum All-Star
Posts: 3350
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Serial Port mapping in Basilisk II with host OS X?

Post by adespoton »

So this is what I've got my BII config file set to:

seriala /dev/cu.Bluetooth-Modem
serialb /dev/tty.iPhone-Wirelessi

The first lets me connect to bluetooth as if it's a tethered device, BT acting as an external modem for BII on the modem port. The second connects to the Bluetooth serial on my phone, where I can also run a terminal emulator to debug data being sent over this point.

Where are you experiencing your issue?
Warty
Student Driver
Posts: 12
Joined: Mon Feb 15, 2021 12:41 am

Re: Serial Port mapping in Basilisk II with host OS X?

Post by Warty »

No matter what value I put there, in BII, if I open say Zterm, both the modem and serial port will be unavailable (OSErr -23).
"Modem Port is not available. Please select another port:"
### Error: -23 opening port

I get the same -23 in my own code in BII, when calling OpenDriver(). (works fine on SheepShaver, or on a real Mac with modem ports).

basically, I'd like to be able to do the following:
- communicate with physical Mac Plus via USB<>Serial cable. (works in SheepShaver)
- connect via UNIX screen command to the emulated Mac in BII (eg, screen /dev/ttys002 19200,cs8,ixon,-ixoff,-istrip,-parenb0
- connect via a (modern) Mac app I haven't written yet, to the emulated Mac in BII.

Big Sur 11.1.
User avatar
adespoton
Forum All-Star
Posts: 3350
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Serial Port mapping in Basilisk II with host OS X?

Post by adespoton »

Warty wrote: Mon Feb 15, 2021 11:31 pm No matter what value I put there, in BII, if I open say Zterm, both the modem and serial port will be unavailable (OSErr -23).
"Modem Port is not available. Please select another port:"
### Error: -23 opening port

I get the same -23 in my own code in BII, when calling OpenDriver(). (works fine on SheepShaver, or on a real Mac with modem ports).

basically, I'd like to be able to do the following:
- communicate with physical Mac Plus via USB<>Serial cable. (works in SheepShaver)
- connect via UNIX screen command to the emulated Mac in BII (eg, screen /dev/ttys002 19200,cs8,ixon,-ixoff,-istrip,-parenb0
- connect via a (modern) Mac app I haven't written yet, to the emulated Mac in BII.

Big Sur 11.1.
You'll need to run BII with sudo, or it won't actually have access to the tty ports. There's probably a way around this using user extensions, but I haven't read up on how to do that in Big Sur yet.
Warty
Student Driver
Posts: 12
Joined: Mon Feb 15, 2021 12:41 am

Re: Serial Port mapping in Basilisk II with host OS X?

Post by Warty »

I've tried with just "sudo xxx/BasiliskII", but get same results. It seems to be reading the prefs settings (has same disks/screen size/etc) so I don't think it's that the port settings are getting lost. Is there something else I should be putting on the command line for options?
User avatar
adespoton
Forum All-Star
Posts: 3350
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Serial Port mapping in Basilisk II with host OS X?

Post by adespoton »

Not that I'm aware of.
Warty
Student Driver
Posts: 12
Joined: Mon Feb 15, 2021 12:41 am

Re: Serial Port mapping in Basilisk II with host OS X?

Post by Warty »

Hmm. bummer.
Post Reply