TTY comms via serial link support

Problems or feedback about the NO$PSX emulator by Martin Korth
Post Reply
User avatar
gwald
Verified
Net Yaroze Enthusiast
Net Yaroze Enthusiast
Posts: 342
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Contact:

TTY comms via serial link support

Post by gwald » April 27th, 2025, 1:21 pm

Hi Martin.

There is someone making a Net Yaroze game with serial link cable communication between two PS1's.
And there is no support for the serial link cable in NY, apart from the TTY functions, ie ioctl and open/close, read/write etc.
Seem to have managed to do it and it's working on hardware! :clap :dance
TMK, this is the first time it's has been done! :D

Not sure how trivial TTY is to implement basic TTY (open/close, read/write char, etc) on no$psx, but it would make it easier in the future if someone else is game to do it! :mrgreen:

User avatar
nocash
Verified
PSX Aficionado
PSX Aficionado
Posts: 643
Joined: November 12th, 2012, 2:36 pm
Contact:

Post by nocash » April 27th, 2025, 10:48 pm

I have no idea what you are talking about... a tty text output hardware game that was made by someone?
But whatever you mean, I have probably already emulated that.

User avatar
MasterLink
Serious PSXDEV User
Serious PSXDEV User
Posts: 82
Joined: July 20th, 2024, 9:53 am

Post by MasterLink » April 28th, 2025, 4:28 am

I don't think he's talking about TTY text output, but rather like how Doom lets you link two PS1's to play a multiplayer game on two separate TV's. I guess that wasn't supported with the Net Yaroze (with the NY libraries I assume).

What game is this, so we can look it up?

User avatar
gwald
Verified
Net Yaroze Enthusiast
Net Yaroze Enthusiast
Posts: 342
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Contact:

Post by gwald » April 29th, 2025, 12:05 pm

nocash wrote: April 27th, 2025, 10:48 pm I have no idea what you are talking about... a tty text output hardware game that was made by someone?
But whatever you mean, I have probably already emulated that.
Sorry, I often can't find the right words to explain things, MasterLink is correct.

TTY is a two way protocol (typically over a serial interface) and it's being used between two real playstations to communicate input and position, so opening a TTY device and using putchar into the other PSX and getchar to read the other's data etc. Because Net Yaroze doesn't have serial cable lib support.
When using No$PSX with two PSX connected via serial, TTY char's are sent, but never received.

MasterLink wrote: April 28th, 2025, 4:28 am What game is this, so we can look it up?
I guess it's in development, so I don't know.
Just talking and sending info I know about how serial/TTY was used via NY, apart from Siocons PC transfer related stuff, wasn't much.

User avatar
gwald
Verified
Net Yaroze Enthusiast
Net Yaroze Enthusiast
Posts: 342
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Contact:

Post by gwald » May 2nd, 2025, 8:44 pm

Here is a video of it working! :clap :dance
https://www.youtube.com/watch?v=vEgT5Susqt0




And source code :praise :
https://github.com/logi-26/YarIO

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2717
Joined: December 31st, 2012, 5:37 pm
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » May 16th, 2025, 4:52 pm

Great video showing the demonstration of the software. The car demo was impressive.

I had a very, very quick look at the code. It looks like console 1 sends the controller data to console 2 and vice versa. It's just bit-banging the controller input data. I think a better method would be console 1 sends its position first and then console 2 sends its position data to console 1 after an update request is issued. That way in the event of a single bit being dropped or corrupted, the position will be consistent as they are both kept in sync. If a timeout occurs, the connection can be retried 3 times before a disconnection event is triggered. Otherwise, another idea is every 1000 frames or so, they automatically resync.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests