Opened 8 years ago

Closed 8 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 8 years ago.
002

Download all attachments as: .zip

Change History (10)

comment:1 Changed 8 years ago by RoboSK

Cc: RoboSK added

comment:2 Changed 8 years ago by RoboSK

Cc: RoboSK removed

comment:3 Changed 8 years ago by RoboSK

Cc: robo.info.mail@… added

comment:4 Changed 8 years ago by Vlado Fogo

Resolution: invalid
Status: newclosed

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

comment:5 Changed 8 years ago by RoboSK

Resolution: invalid
Status: closedreopened

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

how use it:

oscam.server
[reader]
readersleep = 5

...sleep into second...

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

Changed 8 years ago by RoboSK

Attachment: sleep-002.patch added

002

comment:6 Changed 8 years ago by Admin

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 Changed 8 years ago by RoboSK

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 8 years ago by RoboSK (previous) (diff)

comment:8 Changed 8 years ago by RoboSK

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

thanks

comment:9 Changed 8 years ago by Deas

Resolution: fixed
Status: reopenedclosed

working with latest rev

Note: See TracTickets for help on using tickets.