This commit contains a deeply reworked version of gbox connectivity module, originally written by user leloup.
His patch was added @r6159 and rejected almost immediately because of many issues. This reworked version was developed to fix these issues.
In its current state the code works with gbox and gbox.net, and does not work with mbox (but it seems user pointer2 knows how to add mbox compatibility).
The following threads contain info about rework process and decisions made during the development:
http://www.streamboard.tv/wbb2/thread.php?postid=437281
http://www.streamboard.tv/wbb2/thread.php?postid=451886
http://www.streamboard.tv/wbb2/thread.php?postid=437103
The biggest THANK YOU goes to leloup, original author of the gbox patch.
Many thank to people who helped me during development: felixka, pointer2, Gorgone, gfto, felix2, veskop, Bit, Admin, today, Bruty, sypo, draus, breitscheitel, thatave, Eggy123, scader, dkey, Misterfx and others.
The WebIF support and some other small features were stripped from the original patch.
Also names of configuration parameters were changed - the new config documentation follows:
<code>
================================================================================================================
Parameter Default Requ- Value for example Description
name value ired?
================================================================================================================
===========================
oscam.conf, [gbox] section:
===========================
gbox_hostname Yes 192.168.1.123 My IP or host name (accessible by peers)
gbox_local_cards No 17020000,01003311 Comma-separated list of local card(s) reported to peers
Note: max list size is 16 cards
gbox_reconnect 300 No 3600 Send "Hello" message to peers every <gbox_reconnect> seconds
===================================================
oscam.server, [reader] section with protocol = gbox
===================================================
device Yes 192.168.1.101,3820,3819 Comma-separated list of 3 values:
peer's IP or host name,peer's port,my port
password Yes A123BCDE Password I use to connect to peer (4 hex bytes, 8 chars)
gbox_my_password Yes 98AF3E25 Password peer uses to connect to me (4 hex bytes, 8 chars)
gbox_reshare 0 No 1 Reshare level of local card(s)
gbox_max_distance 2 No 2 Max distance to receive peer cards
gbox_max_ecm_send 3 No 3 Send ecm to max <gbox_max_ecm_send> peer cards
gbox_group No gbox own list of groups, same syntax as "group" parameter
==============================================================================================================
</code>
Minimal working configuration example
=====================================
Let's say gbox server runs on host 192.168.1.101 and OSCam is on 192.168.1.123.
In file cwshare.cfg on gbox side we have, for example, the following lines:
M: { 192.168.1.101 { A123BCDE }}
D: { 192.168.1.123 { 3820 3819 { 98AF3E25 { A3 A3 }}}}
Then we may configure OSCam as follows:
oscam.conf:
===========
[gbox]
gbox_hostname = 192.168.1.123
oscam.server:
=============
[reader]
protocol = gbox
group = 1
device = 192.168.1.101,3820,3819
password = A123BCDE
gbox_my_password = 98AF3E25
Migration guide for old users of leloup's patch:
================================================
Just rename parameters as follows.
<code>
====================================
In oscam.conf, [gbox] section:
gbox_hostname <- hostname
gbox_local_cards <- localcard
gbox_reconnect <- servgreconnect
In oscam.server, [reader] section:
gbox_my_password <- my_password
gbox_reshare <- greshare
gbox_max_distance <- maxdist
gbox_max_ecm_send <- maxecmsend
gbox_group <- groupclg
====================================
</code>
|