Serial Connections from Computer Ports
Jump to navigation
Jump to search
Sun Workstations
Use command
cu -l /dev/cua/a
where 'a' is port name, can be 'b' etc.
If does not work, run in debug mode:
cu -d -l /dev/cua/a
Observed problems:
- on wolfram after Solaris 10 Update 3 installation port 'a' returned following:
wolfram:/root> cu -l /dev/cua/a Connect failed: NO DEVICES AVAILABLE
In debug mode:
wolfram:/root> cu -d -l /dev/cua/a altconn called Device Type Direct wanted Requested Device Type Not Found getto ret -1 Connect failed: NO DEVICES AVAILABLE call cleanup(1) call _mode(0)
Found on web:
The standard uucp configuration files do not have entries for port ttya. This will cause cu to fail: # /usr/bin/cu -l /dev/cua/a Connect failed: NO DEVICES AVAILABLE The debug mode of cu shows the problem: # cu -d -l /dev/cua/a altconn called Device Type Direct wanted <== no "Direct" in /etc/uucp/Devices Requested Device Type Not Found getto ret -1 Connect failed: NO DEVICES AVAILABLE call cleanup(1) call _mode(0) File /etc/uucp/Devices must have entries (typically at the bottom) for /dev/cua/a and /dev/cua/b: ACU cua/b - Any hayes [not needed] Direct cua/b - Any direct # ACU cua/a - Any hayes Direct cua/a - Any direct The debug mode of cu also shows the missing entry from /etc/uucp/Dialers: # cu -d -l /dev/cua/a altconn called Device Type Direct wanted Trying device entry 'cua/a' from '/etc/uucp/Devices'. <== device exists Devices file OK processdev: calling setdevcfg(cu, Direct) fd_mklock: ok fixline(5, 9600) gdial(direct) called direct not found in Dialers file <== no "direct" in /etc/uucp/Dialers set interface UNIX getto ret -1 Connect failed: CAN'T ACCESS DEVICE call cleanup(1) call _mode(0) File /etc/uucp/Dialers must have a "direct" entry. This is just the single, uncommented, word "direct" on a line by itself: micom "" "" \s\c NAME? \D\r\c GO direct
I added following 2 lines in the end of /etc/uucp/Devices file:
ACU cua/a - Any hayes Direct cua/a - Any direct
Now command cu -l /dev/cua/a works fine.