Corrected the smartreader chip type for V2 and Tripple. chiptype emulation is 2232C  Full speed usb 1.1 (not hi speed 2.0 or 3.0)
Added string value instead off enumarated value for chip type in logs.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9762 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Modified some basic logs outputs.
Moved many outputs from basic log to debug IFD (16).

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9763 4b0bc96b-bc66-0410-9d44-ebda105a78c1
smartreader protocol now uses same read timeout as icc_async.c module
This may but not shure solve T1 card problems into v2 and tripple smargo readers.

hopefully it improves problems decsribed in tickets #3761 and #3760 and 
#3738 and #3733
with debug 16 the real read time out used can be seen.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9764 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvbapi: TCP mode and pc-nodmx improvements

patch by perexg:
1) In the TCP listen mode, the communication might stall, because the dvbapi_open_device() tries to open a non-existent linuxdvb device.
2) Handle the connection close file-descriptor event more correctly.
3) Do not create the /tmp/ecm.info for the TCP listen mode and pc-nodmx mode.


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9765 4b0bc96b-bc66-0410-9d44-ebda105a78c1
added a two seconds delay between oscam shutdown and restart.

Valid for restart off oscam out off webif of by an auto restart due to segfault if -r 2 option is used.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9766 4b0bc96b-bc66-0410-9d44-ebda105a78c1
reverting 9766 delay add by restart.

removed the delay between stop and start off oscam if oscam restarted out off webif. It did not bring any more stability.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9767 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Delimit the read timeout to max 2000 ms by smartreader

Now we are using twe calculated timeout out off icc_async.c . But this timeout is for T0 protocol cards to big. it should be between +- 100 ms up to
+- 1000 ms max. The calculated timout into icc_async.c should be reviewed. It looks like it is about 10 to 15 times two big on T0 cards.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9768 4b0bc96b-bc66-0410-9d44-ebda105a78c1
set the max timeout to 15000 instead of 2000 or the calculated lower value.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9769 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Added pidx feature to dvbapi in order to ignore and prio more specifical

P: [CAID]:[provider ID]:[service ID]:[ECM PID]:[CHID] [FORCE] [PIDX] prio
I: [CAID]:[provider ID]:[service ID]:[ECM PID]:[CHID] [PIDX] ignore

Example:

p:0100:00006C 0 3 (prio 0100:00006c if this ecmpid is registered as PID3 in pmt, no force)
i:0100:00006A:::5C00 1 (ignore fakechid 5C00 if this ecmpid is registered as PID1 in pmt)
i:0100:00006A 0 (ignore 0100:0006A if this ecmpid is registered as PID0 in pmt)
p:0100:00006A:::FC10 (prio 0100:00006a if ecm contains fakechid FC10)


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9770 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- DVBAPI fix for broken P:

P: [CAID]:[provider ID]:[service ID]:[ECM PID]:[CHID] [FORCE]:[PIDX] prio
I: [CAID]:[provider ID]:[service ID]:[ECM PID]:[CHID] [PIDX] ignore

Example:

p:0100:00006C 0:3 (prio 0100:00006c if this ecmpid is registered as PID3 in pmt, no force)
p:0100 1 (prio caid 0100, use force)
p:0500 1:5 (prio caid 0500, use force but only if this 0500 caid is listed as 5th pid in the pmt)
i:0100:00006A:::5C00 1 (ignore fakechid 5C00 if this ecmpid is registered as PID1 in pmt)
i:0100:00006A 0 (ignore 0100:0006A if this ecmpid is registered as PID0 in pmt)
p:0100:00006A:::FC10 (prio 0100:00006a if ecm contains fakechid FC10) 



git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9771 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Adapted max timeout by smartreader.

The max timeout for read operation is limited to 14 sec to avoid a device timeout to occur before a oscam timeout. That is because some cards do allow very big timeouts according the atr and in smartreader protocol we are now using the specific max card timeout.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9772 4b0bc96b-bc66-0410-9d44-ebda105a78c1
freebsd