Previous Thread
Next Thread
Print Thread
Setting the baud rate of the null_modem, Apple II #113075
04/09/18 03:58 PM
04/09/18 03:58 PM
Joined: Mar 2018
Posts: 4
Skipton, UK
J
John Newcombe Offline OP
Member
John Newcombe  Offline OP
Member
J
Joined: Mar 2018
Posts: 4
Skipton, UK
I am a MAME newbie and am using the following commands to launch Socat and MAME as part of a development workflow. The application running on the Apple II emulation talks to the tty using Socat. This all works well at 9600 baud, which is the default for the null_modem. How can I update my command line to change the null_modem speed to 2400 baud?

Any help would be greatly appreciated.



I first run Socat

# Launch socat, this will connect the localhost port 2023 to bash shell on the local machine
socat tcp-l:2023,reuseaddr,fork exec:/bin/bash,pty,setsid,setpgid,stderr,ctty &

Then MAME

# Start MAME with a serial port hooked up to the localhost port 2023, i.e. the bash shell provided by socat
./mame64 apple2p -noreadconfig -skip_gameinfo -verbose -uimodekey CAPSLOCK -window -nomax -sl2 ssc -sl2:ssc:ssc_rs232 null_modem -bitbanger socket.127.0.0.1:2023 -sl3 videoterm -sl4 applicard -flop1 ../TestDisk.po

Re: Setting the baud rate of the null_modem, Apple II [Re: John Newcombe] #113076
04/09/18 04:18 PM
04/09/18 04:18 PM
Joined: Mar 2001
Posts: 16,007
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,007
USA
I'm not actually sure if you can control the null modem's baud rate from the command line. You may need to just change it in the Tab menu and then exit cleanly so the .cfg saves.

Re: Setting the baud rate of the null_modem, Apple II [Re: John Newcombe] #113088
04/10/18 02:34 PM
04/10/18 02:34 PM
Joined: Feb 2004
Posts: 1,986
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,986
Sydney, Australia
Yeah, no way to set machine configuration on the command line - have to edit XML or use the internal UI.

Re: Setting the baud rate of the null_modem, Apple II [Re: Vas Crabb] #113094
04/10/18 07:47 PM
04/10/18 07:47 PM
Joined: Mar 2018
Posts: 4
Skipton, UK
J
John Newcombe Offline OP
Member
John Newcombe  Offline OP
Member
J
Joined: Mar 2018
Posts: 4
Skipton, UK
Thanks both, appreciated.


Moderated by  R. Belmont 

Who's Online Now
1 registered members (sof-max), 81 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,575
Posts112,038
Members4,812
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.023s Queries: 14 (0.009s) Memory: 5.6037 MB (Peak: 5.7752 MB) Zlib enabled. Server Time: 2018-09-23 12:00:46 UTC