Opened 6 years ago

Last modified 5 years ago

#4487 new defect

Restart reader on timeout

Reported by: danman Owned by:
Priority: major Component: Reader
Severity: medium Keywords: timeout reader restart reset
Cc: kucera@… Sensitive: no

Description

Revision

11272

Issue Description

My readers sometimes stops to answer and all following commands get timeout. After restarting reader, it continues normally.

When the issue occurs

Once a time, without clear pattern

How the issue is reproducable

Don't know

2016/07/10 23:09:38 19B36D0 c box (0D97&000004/0000/7662/B8:E40824AD41A77C2B1CEAB17854A45B04): found (178 ms) by usb-mouse
2016/07/10 23:09:48 19B36D0 c box (0D97&000004/0000/7662/B8:620788BA1F690221FE8F102D1FA7C079): found (177 ms) by usb-mouse
2016/07/10 23:09:58 19B36D0 c box (0D97&000004/0000/7662/B8:9771D61FFE7C0DAFB03F716A2C2B180E): found (177 ms) by usb-mouse
2016/07/10 23:10:08 19B36D0 c box (0D97&000004/0000/7662/B8:E25FCA15DEDE25E5896980F23279262A): found (177 ms) by usb-mouse
2016/07/10 23:10:18 19B36D0 c box (0D97&000004/0000/7662/B8:CB4D9EC953512E664B006AAD73F8BEE7): found (177 ms) by usb-mouse
2016/07/10 23:10:28 19B36D0 c box (0D97&000004/0000/7662/B8:1BB39A4C155DC9D5445C3D645F5DBD15): found (178 ms) by usb-mouse
2016/07/10 23:10:38 19B36D0 c box (0D97&000004/0000/7662/B8:AF7B68C45F49BE0714132A968A33E26D): found (177 ms) by usb-mouse
2016/07/10 23:10:48 19B36D0 c box (0D97&000004/0000/7662/B8:FC0AA727BDBEC3829917954A6189309E): found (177 ms) by usb-mouse
2016/07/10 23:11:03 19B36D0 c box (0D97&000004/0000/7662/B8:AE11162FF402A531C25BACD487F337F7): timeout (5000 ms) by usb-mouse
2016/07/10 23:11:13 0 --- Skipped 1 duplicated log lines ---
2016/07/10 23:11:13 19B36D0 c box (0D97&000004/0000/7662/B8:429F7D6B011331B9681185263E8B5208): timeout (5000 ms) by usb-mouse
2016/07/10 23:11:23 19B36D0 c box (0D97&000004/0000/7662/B8:57863A0E0427B98378CB74BB528F122E): timeout (5000 ms) by usb-mouse
2016/07/10 23:11:33 19B36D0 c box (0D97&000004/0000/7662/B8:6570ABAAF94B3FF7B53BEF4786C4E590): timeout (5000 ms) by usb-mouse
2016/07/10 23:11:43 19B36D0 c box (0D97&000004/0000/7662/B8:28CD3EB1437B67BB4557EFAA62B2D7E7): timeout (5000 ms) by usb-mouse
2016/07/10 23:11:53 19B36D0 c box (0D97&000004/0000/7662/B8:3A68575924CD22DF227A15AA5568431F): timeout (5000 ms) by usb-mouse

Resolution

So i created a patch in attachment, which adds option to automatically restart reader on timeout. Just set restartontimeout=1 an it will do the magic for you.

Attachments (2)

restart.patch (3.8 KB ) - added by danman 6 years ago.
ecmtimeoutlimit.patch (3.9 KB ) - added by AbrahaM 6 years ago.
other attempt to fix same issue: ecmtimeoutlimit

Download all attachments as: .zip

Change History (6)

by danman, 6 years ago

Attachment: restart.patch added

comment:1 by danman, 6 years ago

Cc: kucera@… added

comment:2 by AbrahaM, 6 years ago

Nice patch, but it my opinion restarting on ANY timeout is not good idea, becouse timeout on proxy readers could happen accidently. I'm suggesting "cloning" of ecmnotfoundlimit as ecmtimeoutlimit for timeouts handling. So it will be possible to set it up even to 1 in case of (for example) mouse readers and greater value for proxies.

btw: you are not reseting ecmshealthtout and ecmstout variables. So... look again at ecmnotfoundlimit and clone it as ecmtimeoutlimit.

I did it. Alternative patch attached.

Last edited 6 years ago by AbrahaM (previous) (diff)

by AbrahaM, 6 years ago

Attachment: ecmtimeoutlimit.patch added

other attempt to fix same issue: ecmtimeoutlimit

in reply to:  1 comment:3 by vangelm, 5 years ago

Hello, it is possible to modify this patch to restart whole oscam instead of only restart reader?

comment:4 by Poedel, 5 years ago

Restart whole OSCam because of a reader timeout? Why would you want that?

Last edited 5 years ago by Poedel (previous) (diff)
Note: See TracTickets for help on using tickets.