SET DLI LINES=3SET DLI ENABLEDSET DLO ENABLEDATTACH DLI Line=1,Connect=ser2
set dz enabled
set dz lines=8
attach dz -V line=1,connect=/dev/ttyUSB0
set vh lines=16
set vh dhu
set vh nomodem
set vh enable
; Note that these are "shuffled" so the cabling matches the panel
attach vh line=0,connect=/dev/ttyUSB3
attach vh line=1,connect=/dev/ttyUSB1
attach vh line=2,connect=/dev/ttyUSB0
attach vh line=3,connect=/dev/ttyUSB2
echo "test" > /dev/tty00
Ah, Ok. It might be be making more sense to me now.
The command 'show serial' at the simh prompt will show all available serial ports.
Ports are listed (for me) as ...Serial devices:ser0 /dev/ttyAMA0ser1 /dev/ttyS0ser2 /dev/ttyUSB0So using those serial port numbers as in the example from Tom Lake above,
I added 'attach dz -V line=0,connect=ser2' to connect my USB serial port and booted 211bsd into multi user mode.aaand, I still got no response on that port, but I suspect I need to configure something in the BSD operating system.I tried 'echo "test" > /dev/tty00' as Nathan mentioned above and it just hangs. It works if I echo to /dev/tty instead.
Must be something else I'm missing in the OS.
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/bf6c31c9-1950-4189-ba3d-48e9109d115b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/55a41a18-0594-44e1-93c3-7d9b44b18c0a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "[PiDP-11]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/082e7643-6a67-45fe-af2f-dfe121cbba09%40googlegroups.com.
> an email to pid...@googlegroups.com
> <mailto:pid...@googlegroups.com>.
--
You received this message because you are subscribed to a topic in the Google Groups "[PiDP-11]" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pidp-11/mOqKQ8tchG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/94790f55-782c-9dd1-8dcb-1216e90903bf%40softjar.se.
> pid...@googlegroups.com
> <mailto:pidp-11%2B...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pidp-11/94790f55-782c-9dd1-8dcb-1216e90903bf%40softjar.se.
>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pid...@googlegroups.com
> <mailto:pid...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/53f9004e-b9e0-4053-8c31-59f020ccfe76o%40googlegroups.com.
Clem’s suggestions are good and 100% appropriate if you’re working with real hardware.
Meanwhile, I’m pretty sure that only the DZ and VH devices will, in general, be well behaved when connected to physical serial ports.
Meanwhile both the DZ and VH simh DEVICEs pre-existed the richer MUX behaviors that are available now and they only use all of the rich behaviors if the ATTACH command for these devices specifies a –M switch. Various published recipes for PDP11 (and VAX) setup exist from days before the new functionality was added, so the prior behavior exists for switches –A and –M is preserved.
Bottom line, try your DZ attach commands specifying –M (and –A).
- Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/CAC20D2NqvWcnpCTC-aB2qHQoijP7JoQ6HPPRnTSfax%2BCeHpNqQ%40mail.gmail.com.
- the switch from 8n1 for login to 7e1 for getty as already observed above is there and can be seen with simh show serial and with stty -F on the linux side
- getty/gettytab has no option to set the number of bits
- the gettytab manual and the getty source give the impression that setting ap (for any parity) should disable this switching to 7e1. this is what is set for the default gettytab entry. but as has seen above it has no effect for a dz serial port.
- this happens only if /dev/ttyS0 is connected as a dz serial port device. it does not happen if it is connected to the simh console. there getty stays at 8n1
- the 7b/8b option for dz seems not to have any influence or make a difference
- i could not find a better solution as the mark/zero workaround from above. but it works considerably less reliable for raspberry build in serial port as it does for a usb serial port.
as far as i have seen the 2.11 bsd and kernel and getty configuration for the console and for the dz serial ports should be identical and should behave the same. but they do not.
some questions:
- would al real live dz port be used as 7 or 8 bit in the days?
- what exactly ist the simh 8b option for dz supposed to do?
- do the 2.11 drivers for the newer serial port hardware work? is the simh emulation better?
- is anyone using a real vt terminal successfully with 2.11 bsd and has login, shell, top and vi working without changing the com seittings in between? if so: how is the simh side configured? raspberry build in serial or usb serial?
thanks
andre
i tried to switch to the raspberry build in serial port and have started to look a little more into this but i think there is something strange. maybe even a bug in simh.
- the switch from 8n1 for login to 7e1 for getty as already observed above is there and can be seen with simh show serial and with stty -F on the linux side
- getty/gettytab has no option to set the number of bits
- the gettytab manual and the getty source give the impression that setting ap (for any parity) should disable this switching to 7e1. this is what is set for the default gettytab entry. but as has seen above it has no effect for a dz serial port.
- this happens only if /dev/ttyS0 is connected as a dz serial port device. it does not happen if it is connected to the simh console. there getty stays at 8n1
- the 7b/8b option for dz seems not to have any influence or make a difference
- i could not find a better solution as the mark/zero workaround from above. but it works considerably less reliable for raspberry build in serial port as it does for a usb serial port.as far as i have seen the 2.11 bsd and kernel and getty configuration for the console and for the dz serial ports should be identical and should behave the same. but they do not.
some questions:
- would al real live dz port be used as 7 or 8 bit in the days?
- what exactly ist the simh 8b option for dz supposed to do?
--
You received this message because you are subscribed to a topic in the Google Groups "[PiDP-11]" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pidp-11/mOqKQ8tchG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pidp-11+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pidp-11/545020de-e93d-9752-e675-0b8846703ce5%40softjar.se.
On 2020-08-03 21:33, justme1968 wrote:
> i tried to switch to the raspberry build in serial port and have started to look a little more into this but i think there is something strange. maybe even a bug in simh.
I don't think I fully follow what you are seeing/doing...
> - the switch from 8n1 for login to 7e1 for getty as already observed above is there and can be seen with simh show serial and with stty -F on the linux side
This does not make sense. getty is the first thing that is running, and
which is talking to the terminal.
getty then starts login. Not the other way around.
And getty defaults to 7e1 if nothing else is specified.
I would not expect login to change anything, so that should just
continue in whatever mode getty have set.
> - getty/gettytab has no option to set the number of bits
Not explicitly, but implicitly.
To quote the man-page:
np bool false terminal uses no parity (i.e. 8-bit
characters)
/*
* If "any" parity do nothing otherwise set even parity unless OP is
* set. Since 'ap' is set in the "default" entry of /etc/gettytab this
* has the effect of disabling parity on output without having to change
* the kernel.
*/
Any other option (ap, ep, op) means you'll have 7-bit characters. There
is no way to get 8 bits plus parity in getty, or 7 bit with no parity.
It might be a mistake to use "stty -F" on the Linux side and think that
tells you anything. If done properly, parity processing should be done
inside simh, and the actual serial line should probably be set to 8n1
under all circumstances by simh, no matter what parity the software
inside simh uses.
> - the gettytab manual and the getty source give the impression that setting ap (for any parity) should disable this switching to 7e1. this is what is set for the default gettytab entry. but as has seen above it has no effect for a dz serial port.
That is incorrect. ap does not mean you get 8n1. It means it will use 7
bits for data. For output, the parity bit might be anything. For input,
it is ignored, and stripped.
So, 7e1 is a perfectly acceptable setup for "ap", as long as it just
strips and ignores the parity on input. Essentially, you cannot get
parity errors with "ap".
> - this happens only if /dev/ttyS0 is connected as a dz serial port device. it does not happen if it is connected to the simh console. there getty stays at 8n1
Some simh strangeness going on here...
> - the 7b/8b option for dz seems not to have any influence or make a difference
Not sure what 7b/8b option you are talking about now, nor how you are
making the assertion.
> - i could not find a better solution as the mark/zero workaround from above. but it works considerably less reliable for raspberry build in serial port as it does for a usb serial port.
>
> as far as i have seen the 2.11 bsd and kernel and getty configuration for the console and for the dz serial ports should be identical and should behave the same. but they do not.
Agreed. Console and dz serial ports should be the same.
> some questions:
> - would al real live dz port be used as 7 or 8 bit in the days?
I saw both. It sortof depended on the terminal, and the era.
If we just talk about DEC OSes, they commonly used 7 bits in the early
days with old terminals, but by the time of the VT200, you migrated to
mostly having things be 8-bit clean, using DEC MCS. The DZ was still
extremely common, and you of course then had them running with 8 bit data.
> - what exactly ist the simh 8b option for dz supposed to do?
Mark?
> - do the 2.11 drivers for the newer serial port hardware work? is the simh emulation better?
The 2.11BSD drivers generally work. simh only supports the DZ and the
DHU/DHV if I remember right. Is that working better in simh? No idea.
> To unsubscribe from this group and stop receiving emails from it, send an email to pid...@googlegroups.com.
My final post on this subject:This is the DZ device setup that makes 2 serial ports work with BSD2.11 (so login prompt gets output everywhere):
set dz enabled
set dz lines=8
set dz 7b
att dz -m 4000
att -v dz line=1,connect=/dev/ttyUSB1
att -v dz line=2,connect=/dev/ttyUSB0Note the -m for the first attach -- that makes the entire DZ device use the modem signaling.Also note that both serial ports must be configured 9600 7 bits with even parity to work correctly (garbage on screen if e.g. 8N1) without any hardware flow control.(Compared to much simpler and more straightforward setup for RSX, IMO, it's quite different.)sim> show ser
Serial devices:
ser0 /dev/ttyAMA0
ser1 /dev/ttyS0
ser2 /dev/ttyUSB0
ser3 /dev/ttyUSB1
Open Serial Devices:
DZ Ln-1 /dev/ttyUSB1 {) Config: 9600-7E1DZ Ln-2 /dev/ttyUSB0 {) Config: 9600-7E1sim> show dz
DZ address=17760100-17760107*, vector=310-314*, BR5, lines=8attached to 4000,Line=1,Connect=/dev/ttyUSB1;9600-7E1,Line=2,Connect=/dev/ttyUSB0;9600-7E1, 7b, 4 current connectionssim> show dz conn
line 0: Connection from IP address ::1
Connection [::1]:4000->[::1]:36288
Connected 00:05:05
Modem Bits: DTR RTS DCD CTS DSR
Telnet protocol
line 1: Connected to serial port /dev/ttyUSB1Connected 00:15:26
Modem Bits: DTR RTS DCD RNG CTS DSR
line 2: Connected to serial port /dev/ttyUSB0Connected 00:15:26
Modem Bits: DTR RTS DCD RNG CTS DSR
line 3: Connection from IP address 192.168.1.2
Connection [192.168.1.11]:4000->[192.168.1.2]:60777
Connected 00:03:41
Modem Bits: DTR RTS DCD CTS DSR
Telnet protocol
line 4: Line disconnected
Modem Bits: DTR RTS DSR
line 5: Line disconnected
Modem Bits: DTR RTS DSR
line 6: Line disconnected
Modem Bits: DTR RTS DSR
line 7: Line disconnected
Modem Bits: DTR RTS DSRsim> show mux
Multiplexer device: DZ, lines=8, ModemControl=enabled, Output Unit: DZ-XMT,
Input Polling Unit: DZ-RCV-CON,
attached to 4000,Line=1,Connect=/dev/ttyUSB1;9600-7E1,Line=2,Connect=/dev/ttyUSB0;9600-7E1, 4 current connections, sessions=2
Line: 0, Speed=9600 bps
Connection from IP address ::1
Connection [::1]:4000->[::1]:36288
Connected 00:05:20
Modem Bits: DTR RTS DCD CTS DSR
Telnet protocol
input (on) queued/total = 0/21
output (on) queued/total = 0/127
speed = 9600 bps
bytes in buffer = 127
Line: 1 - notelnet, Speed=9600 bps
Connected to serial port /dev/ttyUSB1Connected 00:15:41
Modem Bits: DTR RTS DCD RNG CTS DSR
input (on) queued/total = 0/66
output (on) queued/total = 0/1967
speed = 9600 bps
bytes in buffer = 256
Line: 2 - notelnet, Speed=9600 bps
Connected to serial port /dev/ttyUSB0Connected 00:15:40
Modem Bits: DTR RTS DCD RNG CTS DSR
input (on) queued/total = 0/40
output (on) queued/total = 0/1849
speed = 9600 bps
bytes in buffer = 256
Line: 3, Speed=9600 bps
Connection from IP address 192.168.1.2
Connection [192.168.1.11]:4000->[192.168.1.2]:60777
Connected 00:03:56
Modem Bits: DTR RTS DCD CTS DSR
Telnet protocol
input (on) queued/total = 0/25
output (on) queued/total = 0/238
speed = 9600 bps
bytes in buffer = 238
Line: 4, Speed=9600 bps
Line disconnected
Modem Bits: DTR RTS DSR
Line: 5, Speed=9600 bps
Line disconnected
Modem Bits: DTR RTS DSR
Line: 6, Speed=9600 bps
Line disconnected
Modem Bits: DTR RTS DSR
Line: 7, Speed=9600 bps
Line disconnected
Modem Bits: DTR RTS DSR# who
root tty00 Mar 19 04:55
root tty01 Mar 19 04:48
root tty02 Mar 19 04:48
root tty03 Mar 19 04:56HTH,AntonOn Thu, Dec 19, 2019 at 8:00 AM Anton Lavrentiev <anton.la...@gmail.com> wrote:> Apart from that, you seem to have some weird problems. :-)Well, have you tried a serial line or two in simh with bsd2.11 from the "systems" tarball? 'Cause if you do, there's gonna be the three of us having those weird problems LOLOn Thu, Dec 19, 2019, 3:36 AM Johnny Billquist <b...@softjar.se> wrote:There is a difference between enabling modem control, and trying to use
modem control as a way of managing flow control. :-)
DEC used modem control lines for modem control. That is, if you
configure a line as remote in a DEC OS, you will not get any reaction on
it until it signals on DCD that there is a remote terminal connected.
That is what DCD means.
In addition, it also cares about CTS. If no CTS, transmitter will not
transmit.
And of course, the computer side will have RTS and DTR active, so that
the terminal sees that there is a computer, and it is ready to receive.
It's just that trying to use these for flow control is not what they
were meant for, and it can lead to unexpected results.
But I'd say for local terminals, it's easier to just set things up as
local, and skip all the modem signalling.
Apart from that, you seem to have some weird problems. :-)
Johnny
On 2019-12-19 02:06, Anton Lavrentiev wrote:
> BSD2.11 included in PiDP11 systems is already configured correctly:
>
> /etc/ttys lists all ttys where getty would be spawned for, and the
> terminals types used there match the terminal descriptions found in
> /etc/gettytab.
>
> BTW, the terminal story is getting (getty?) weirder :-) If I add second
> serial line, so that boot.ini looks like this:
>
> set dz enabled
> set dz lines=8
> set dz 7b
> att dz 4000
> att -v dz line=1,connect=/dev/ttyUSB1,modem
> att -v dz line=2,connect=/dev/ttyUSB0,modem
>
> then line=1 (used in previous setup alone) stops working! But line=2
> works. Interestingly enough, SimH reports the setup as following:
>
> sim> show serial
> Serial devices:
> ser0 /dev/ttyAMA0
> ser1 /dev/ttyS0
> ser2 /dev/ttyUSB0
> ser3 /dev/ttyUSB1
> Open Serial Devices:
> DZ Ln-1 /dev/ttyUSB1 {) Config: 9600-7E1
> DZ Ln-2 /dev/ttyUSB0 {) Config: 9600-8N1
> sim> show dz conn
> line 1: Connected to serial port /dev/ttyUSB1
> Connected 00:06:44
> line 2: Connected to serial port /dev/ttyUSB0
> Connected 00:06:43
> Modem Bits: DCD RNG DSR
> sim> show dz
> DZ address=17760100-17760107*, vector=310-314*, BR5, lines=8
> attached to
> 4000,Line=1,Connect=/dev/ttyUSB1;9600-7E1,Line=2,Modem,Connect=/dev/ttyUSB0,
> 7b, 2 current connections
>
> And line=2 is a VT320 that I did not yet had a chance to reconfigure, so
> it's 8N1 and no hardware flow control (Johnny must be happy!) and
> everything works!
>
> I'm sure it's another SimH bug here, unfortunately. I'll report it in
> my open ticket with them (or another one). OTOH, maybe I don't
> understand the whole picture here, so comments are welcome.
>
>
> On Wed, Dec 18, 2019 at 7:51 PM Chuck Hutchins <ch...@hutchins1.net
> <mailto:ch...@hutchins1.net>> wrote:
>
> Thanks Anton,
> Can you point me to some more detail on setting up /etc/ttys and getty ?
> I've done it on Raspbian but I'm sure the procedure is more complex
> on BSD 211
>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to pidp-11+u...@googlegroups.com
> <mailto:pidp-11+u...@googlegroups.com>.
> To view this discussion on the web visit
>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pidp-11+u...@googlegroups.com
> <mailto:pidp-11+u...@googlegroups.com>.
> To view this discussion on the web visit