Opened 13 years ago

Closed 13 years ago

#1929 closed enhancement (fixed)

add "sleep" before activating reader

Reported by: RoboSK Owned by:
Priority: Please fill in Component: Reader
Severity: Please fill in Keywords:
Cc: robo.info.mail@… Sensitive: no

Description

Reason for enhancement

into my configuration if oscam init two reader (same type) into "same" (init second reader short time after first) time then one fail - add config for "sleep" to every reader (default 0) fix this problem...

start oscam
sleep 0
init reader A (reader A have sleep 0)
sleep 5
init reader B (reader B have sleep 5)

http://oscam.ump2002.net/board/thread.php?threadid=8035

Possible impacts on other features

none

Attachments (1)

sleep-002.patch (1.6 KB ) - added by RoboSK 13 years ago.
002

Download all attachments as: .zip

Change History (10)

comment:1 by RoboSK, 13 years ago

Cc: RoboSK added

comment:2 by RoboSK, 13 years ago

Cc: RoboSK removed

comment:3 by RoboSK, 13 years ago

Cc: robo.info.mail@… added

comment:4 by Vlado Fogo, 13 years ago

Resolution: invalid
Status: newclosed

invalid .. make correct startup script for start more oscams...

comment:5 by RoboSK, 13 years ago

Resolution: invalid
Status: closedreopened

i make "patch" for this, it works perfect (for me) but i im not "coder"...

Version 0, edited 13 years ago by RoboSK (next)

by RoboSK, 13 years ago

Attachment: sleep-002.patch added

002

comment:6 by Admin, 13 years ago

Does it also happen if you have one reader in mouse mode and the other in smartreader mode or if you have both in mouse mode? I expect, that there's some thread locking missing in smartreader init code and so this sleep is only a workaround and not the correct solution.

comment:7 by RoboSK, 13 years ago

hi, both is smargo in smartreader

[reader]
protocol = smartreader
device = 006:003

[reader]
protocol = smartreader
device = 007:002

and i not expected that it is oscam problem, if i make extra config for smargo-001 reader (dir 001) and for smargo-002 reader (dir 002) and start two oscam (with -c .../001/ & .../002/) into same time then one fail, if run with sleep then it is all ok...

edit: next weekend i try 1x smartmouse and 1x mouse mode...

Last edited 13 years ago by RoboSK (previous) (diff)

comment:8 by RoboSK, 13 years ago

-one week with #5369 + patch and all works
-today fast test (3xPC Off+On) #5419 without patch and works too

thanks

comment:9 by Deas, 13 years ago

Resolution: fixed
Status: reopenedclosed

working with latest rev

Note: See TracTickets for help on using tickets.