В Опене 600 ком порт.
Вчера на mpcs_client.exe шару настроил. Триколор пошёл.
Вот настройки:
mpcs.conf
[global]
ClientTimeout=9
LogFile=stdout
MaxLogSize=20
Nice=-15
ClientMaxIdle=999999
[serial]
#Device = tuner@/dev/ttyS0:19200?delay=1&timeout=900
Device = tuner@/dev/ttyS0?deley=1&timeout=300
mpcs.server
[reader]
Label = newcamd
Protocol = newcamd
Key = 0102030405060708091011121314
Device = ukr.xsharing.ru,10010
Account = ******,********
Fallback = 0
Group = 1
ReconnectTimeout = 100
[reader]
Label = newcamd
Protocol = newcamd
Key = 0102030405060708091011121314
Device = ukr.xsharing.ru,10012
Account = ******,********
Fallback = 0
Group = 1
ReconnectTimeout = 100
mpcs.user
[account]
User = tuner
Pwd = tuner
Group = 1
IDENT = 0500:023700;4ae1:000000
Вопрос стоит теперь в том как заставить также работать шару модернизированный под шару модем?
На Опене 820 шарит хорошо.
Не получается настроить работу com-порта. Он работает у 600 на скорости 9200 бит/с
Прописывали в mpcs.conf различные (советуемые) варианты:
Device = tuner@/dev/ttyS0:9600?delay=2&timeout=1200
#Device = bomba://tuner@/dev/tts/0:115200?delay=1&timeout=555
#Device=tuner@/dev/tts/0?delay=1&timeout=777
#Device = auto://tuner@/dev/tts/0?delay=2&timeout=500
Пока не помогло.
Вот лог с mpcs_client.exe рабочий:
2010/05/18 21:08:22 10168 p02 proxy ukr.xsharing.ru:10010 newcamd525 (fd=4)
2010/05/18 21:08:22 9084 s proxy started (pid=8316, server=ukr.xsharing.ru)
2010/05/18 21:08:22 9084 s anti cascading disabled
2010/05/18 21:08:22 8316 p03 proxy ukr.xsharing.ru:10012 newcamd525 (fd=4)
2010/05/18 21:08:23 9084 s serial: initialized (pid=8348, auto@/dev/ttyS0)
2010/05/18 21:08:25 8348 c01 plain sssp-client 127.0.0.1 granted (tuner, au=0)
2010/05/18 21:10:30 8316 p03 server ukr.xsharing.ru:10012 caid: 4AE1
2010/05/18 21:10:30 8316 p03 provider #0: 000000
2010/05/18 21:10:30 8348 c01 tuner (4AE1&000000/61B2/29:F0A2): found (1144 ms)
by newcamd
2010/05/18 21:10:33 10168 p02 server ukr.xsharing.ru:10010 caid: 0500
2010/05/18 21:10:33 10168 p02 provider #0: 023700
2010/05/18 21:10:44 8348 c01 tuner (4AE1&000000/61BC/29:F0A2): cache1 (0 ms)
2010/05/18 21:10:44 8348 c01 tuner (4AE1&000000/61BC/29:73B4): found (505 ms)
by newcamd
2010/05/18 21:10:47 8348 c01 tuner (4AE1&000000/61C6/29:73B4): cache1 (0 ms)
2010/05/18 21:10:59 8348 c01 tuner (4AE1&000000/61C6/29:A63A): found (495 ms)
by newcamd
2010/05/18 21:11:07 8348 c01 tuner (4AE1&000000/61D0/29:A63A): cache1 (0 ms)
2010/05/18 21:11:10 8348 c01 tuner (4AE1&000000/61DA/29:A63A): cache1 (0 ms)
2010/05/18 21:11:13 8348 c01 tuner (4AE1&000000/61E4/29:A63A): cache1 (0 ms)
2010/05/18 21:11:15 8348 c01 tuner (4AE1&000000/61E4/29:DF28): found (989 ms)
by newcamd
2010/05/18 21:11:15 8348 c01 tuner (4AE1&000000/61EE/29:DF28): cache1 (0 ms)
2010/05/18 21:11:17 8348 c01 tuner (4AE1&000000/61F8/29:DF28): cache1 (0 ms)
2010/05/18 21:11:29 8348 c01 tuner (4AE1&000000/61F8/29:4133): found (505 ms)
by newcamd
2010/05/18 21:11:45 8348 c01 tuner (4AE1&000000/61F8/29:913D): found (644 ms)
by newcamd
2010/05/18 21:12:00 8348 c01 tuner (4AE1&000000/61F8/29:C931): found (656 ms)
by newcamd
2010/05/18 21:12:11 8348 c01 tuner (4AE1&000000/6202/29:C931): cache1 (0 ms)
2010/05/18 21:12:15 8348 c01 tuner (4AE1&000000/620C/29:C82C): found (1095 ms)
by newcamd
2010/05/18 21:12:23 8348 c01 tuner (4AE1&000000/6216/29:C82C): cache1 (0 ms)
2010/05/18 21:12:28 10168 p02 proxy ukr.xsharing.ru:10010 newcamd525 (fd=4)
2010/05/18 21:12:28 8348 c01 tuner (4AE1&000000/697D/29:6A40): found (247 ms)
by newcamd
2010/05/18 21:12:29 10168 p02 server ukr.xsharing.ru:10010 caid: 0500
2010/05/18 21:12:29 10168 p02 provider #0: 023700
2010/05/18 21:12:29 8348 c01 tuner (4AE1&000000/697D/29:D0D1): found (343 ms)
by newcamd
2010/05/18 21:12:39 8348 c01 tuner (4AE1&000000/6982/29:D0D1): cache1 (0 ms)
2010/05/18 21:12:43 8348 c01 tuner (4AE1&000000/6987/29:D0D1): cache1 (0 ms)
2010/05/18 21:12:44 8348 c01 tuner (4AE1&000000/6987/29:E9E7): found (343 ms)
by newcamd
2010/05/18 21:12:59 8348 c01 tuner (4AE1&000000/6987/29:9AF2): found (505 ms)
by newcamd
2010/05/18 21:13:11 8348 c01 tuner (4AE1&000000/698C/29:9AF2): cache1 (0 ms)
2010/05/18 21:13:14 8348 c01 tuner (4AE1&000000/698C/29:4680): found (483 ms)
by newcamd
2010/05/18 21:13:29 8348 c01 tuner (4AE1&000000/698C/29:8EDE): found (344 ms)
by newcamd
И не рабочий с модема:
[LOG000]2000/01/01 0:00:02 22 s shared memory initialized (size=167284, id=0)
[LOG001]2000/01/01 0:00:02 22 s Cannot open file "/var/mpcs/mpcs.sid" (errno=2)
[LOG002]2000/01/01 0:00:02 22 s userdb reloaded: 0 accounts freed, 2 accounts loaded
[LOG003]2000/01/01 0:00:02 22 s signal handling initialized (type=sysv)
[LOG004]2000/01/01 0:00:02 22 s can't open file "/var/mpcs/mpcs.srvid" (err=2), no service-id's loaded
[LOG005]2000/01/01 0:00:02 22 s 26 lengths for caid guessing loaded
[LOG006]2000/01/01 0:00:02 24 s monitor: initialized (fd=6, port=988)
[LOG007]2000/01/01 0:00:02 24 s camd 3.3x: disabled
[LOG008]2000/01/01 0:00:02 24 s camd 3.5x: disabled
[LOG009]2000/01/01 0:00:02 24 s cs378x: disabled
[LOG010]2000/01/01 0:00:02 24 s newcamd: disabled
[LOG011]2000/01/01 0:00:02 24 s radegast: disabled
[LOG012]2000/01/01 0:00:02 24 s logger started (pid=25)
[LOG013]2000/01/01 0:00:02 24 s resolver started (pid=31, delay=30 sec)
[LOG014]2000/01/01 0:00:02 24 s proxy started (pid=32, server=ukr.xsharing.ru)
[LOG015]2000/01/01 0:00:02 32 p02 proxy ukr.xsharing.ru:10010 newcamd525 (fd=3)
[LOG016]2000/01/01 0:00:02 24 s proxy started (pid=33, server=ukr.xsharing.ru)
[LOG017]2000/01/01 0:00:02 33 p03 proxy ukr.xsharing.ru:10012 newcamd525 (fd=3)
[LOG018]2000/01/01 0:00:02 24 s serial: initialized (pid=34, auto@/dev/ttyS0)
[LOG019]2000/01/01 0:00:03 31 n can't resolve ukr.xsharing.ru
[LOG020]2000/01/01 0:00:03 31 n can't resolve ukr.xsharing.ru
[LOG021]2000/01/01 0:00:08 34 c01 Stop poll
[LOG022]2000/01/01 0:00:15 34 c01 Stop poll
[LOG023]2000/01/01 0:00:15 34 c01 incomplete request (4 bytes)
[LOG024]2000/01/01 0:00:17 34 c01 Stop poll
[LOG025]2000/01/01 0:00:22 24 s client(2) connect from 192.168.1.99 (pid=307, pipfd=12)
[LOG026]2000/01/01 0:00:22 307 m02 plain monitor-client 192.168.1.99 granted (monitor, lvl=4)
[LOG027]2000/01/01 0:00:35 34 c01 Stop poll
[LOG028]2000/01/01 0:00:35 34 c01 too many errors, reiniting...
[LOG029]2000/01/01 0:00:53 34 c01 Stop poll
[LOG030]2000/01/01 0:00:53 34 c01 incomplete request (4 bytes)
[LOG031]2000/01/01 0:01:11 34 c01 Stop poll
И ещё:
[LOG000]2000/01/01 0:00:02 22 s max. clients=30, client max. idle=120 sec
[LOG001]2000/01/01 0:00:02 22 s max. logsize=unlimited
[LOG002]2000/01/01 0:00:02 22 s client timeout=8 sec, cache delay=0 msec
[LOG003]2000/01/01 0:00:02 22 s shared memory initialized (size=167284, id=0)
[LOG004]2000/01/01 0:00:02 22 s Cannot open file "/var/mpcs/mpcs.sid" (errno=2)
[LOG005]2000/01/01 0:00:02 22 s userdb reloaded: 0 accounts freed, 2 accounts loaded
[LOG006]2000/01/01 0:00:02 22 s signal handling initialized (type=sysv)
[LOG007]2000/01/01 0:00:02 22 s can't open file "/var/mpcs/mpcs.srvid" (err=2), no service-id's loaded
[LOG008]2000/01/01 0:00:02 22 s 26 lengths for caid guessing loaded
[LOG009]2000/01/01 0:00:02 24 s monitor: initialized (fd=6, port=988)
[LOG010]2000/01/01 0:00:02 24 s camd 3.3x: disabled
[LOG011]2000/01/01 0:00:02 24 s camd 3.5x: disabled
[LOG012]2000/01/01 0:00:02 24 s cs378x: disabled
[LOG013]2000/01/01 0:00:02 24 s newcamd: disabled
[LOG014]2000/01/01 0:00:02 24 s radegast: disabled
[LOG015]2000/01/01 0:00:02 24 s logger started (pid=25)
[LOG016]2000/01/01 0:00:02 24 s resolver started (pid=31, delay=30 sec)
[LOG017]2000/01/01 0:00:02 24 s proxy started (pid=32, server=ukr.xsharing.ru)
[LOG018]2000/01/01 0:00:02 32 p02 proxy ukr.xsharing.ru:10010 newcamd525 (fd=3)
[LOG019]2000/01/01 0:00:02 24 s proxy started (pid=33, server=ukr.xsharing.ru)
[LOG020]2000/01/01 0:00:02 33 p03 proxy ukr.xsharing.ru:10012 newcamd525 (fd=3)
[LOG021]2000/01/01 0:00:02 24 s serial: initialized (pid=34, bomba@/dev/tts/0)
[LOG022]2000/01/01 0:00:02 34 c01 ERROR opening /dev/tts/0
[LOG023]2000/01/01 0:00:05 31 n can't resolve ukr.xsharing.ru
[LOG024]2000/01/01 0:00:05 31 n can't resolve ukr.xsharing.ru
[LOG025]2000/01/01 0:00:15 24 s client(2) connect from 192.168.1.99 (pid=247, pipfd=12)
[LOG026]2000/01/01 0:00:15 247 m02 plain monitor-client 192.168.1.99 granted (monitor, lvl=4)
[LOG027]2000/01/01 0:01:02 34 c01 ERROR opening /dev/tts/0
[LOG028]2000/01/01 0:02:02 34 c01 ERROR opening /dev/tts/0
на *****-satе посоветовали вот так попробывать:
Device = tuner@/dev/ttyS0
где ttyS0 - СOM порт 1 вашего компьютера, к которому вы подключаете нуль-модемный кабель;
ttyS1 - СOM порт 2 вашего компьютера, к которому вы подключаете нуль-модемный кабель;
Если вы являетесь обладателем более дохлого интернета, то советуем поставить следующее:
[serial]
Device = tuner@/dev/ttyS0?delay=2&timeout=1000
Советую попробовать даже так
Device = tuner@/dev/ttyS0?delay=2&timeout=2000
или так
Device = tuner@/dev/ttyS0?delay=2&timeout=4000
Тем самым при потерянных пакетах у вас не так часто будет рвать картинку, но и каналы при этом начнут немного медленнее переключаться.