#4 TIOCCBRK not supported by Perle RIO?

closed-wont-fix
nobody
None
5
2004-01-24
2004-01-15
Anonymous
No

Hello,

I am trying to run ser2net with a Perle RIO
Hostadapter. When I connect to the port in telnet or
raw mode, ser2net shows this error:

ser2net[31666]: Could not turn off break for device
/dev/ttySR55 port 3001: Unknown error 515

The corresponding strace output is like this:

stat64("/var/lock", {st_mode=S_IFDIR|0775,
st_size=4096, ...}) = 0
open("/var/lock/LCK..ttySR55", O_RDONLY) = 6
read(6, " 30858\tser2net\n", 64) = 19
close(6) = 0
kill(30858, SIG_0) = -1 ESRCH (No
such process)
unlink("/var/lock/LCK..ttySR55") = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
umask(022) = 022
open("/var/lock/LCK..ttySR55", O_WRONLY|O_CREAT|O_EXCL,
0666) = 6
umask(022) = 022
getpid() = 31049
write(6, " 31049\tser2net\n", 19) = 19
close(6) = 0
open("/dev/ttySR55", O_RDWR|O_NONBLOCK|O_NOCTTY) = 6
ioctl(6, 0x5402, {B9600 -opost -isig -icanon -echo
...}) = 0
ioctl(6, 0x5401, {B9600 -opost -isig -icanon -echo
...}) = 0
ioctl(6, 0x5428, 0x805d09c) = -1
ENOIOCTLCMD (errno 515)
close(3) = 0
close(6) = 0
brk(0x8062000) = 0x8062000
time([1074171498]) = 1074171498
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3,
"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"...,
4096) = 837
close(3) = 0
munmap(0x40018000, 4096) = 0
getpid() = 31049
writev(2, [{"ser2net[31049]: Could not turn o"..., 93},
{"\n", 1}], 2ser2net[31049]: Could not turn off break
for device /dev/ttySR55 port 3001: Unknown error 515
) = 94
rt_sigaction(SIGPIPE, {0x401259e0, [], 0x4000000},
{SIG_IGN}, 8) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
fcntl64(0x3, 0x2, 0x1, 0x401257b0) = 0
connect(3, {sin_family=AF_UNIX, path="/dev/log"}, 16) = 0
send(3, "<27>Jan 15 13:58:18 ser2net[3104"..., 113, 0)
= 113
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0

[...]

Looks like the TIOCCBRK is not supported by the RIO
device driver. The configuration line I use is

3001:raw:0:/dev/ttySR55:9600 NONE 1STOPBIT 8DATABITS XONXOF

mode "telnet" produces the same results. Any hints what
happens here? I have RH 7.2 running.

cu, Steffen

steffenrh@yahoo.de

Discussion

  • Corey Minyard

    Corey Minyard - 2004-01-15
    • status: open --> open-wont-fix
     
  • Corey Minyard

    Corey Minyard - 2004-01-15

    Logged In: YES
    user_id=236278

    There's not much I can do about this in ser2net, the driver
    is missing a required feature. The only thing would be to
    add an option to the config line to not do the TIOCCBRK. If
    you want to do a patch, I'll accept it if it looks good
    (don't forget the docs).

     
  • Nobody/Anonymous

    Logged In: NO

    Hello,

    I have just commented out the code where the TIOCCBRK is set
    and compiled again. Now the program works.

    I have another bug when using the management port, please
    have a look at this different bug , the BREAK thing is not
    important by now.

    Thank You, Steffen

     
  • Corey Minyard

    Corey Minyard - 2004-01-24
    • status: open-wont-fix --> closed-wont-fix