Mg_config Explaination

hiranuk

Member
Hi

I was wondering if anyone could explain exactly what the values represent in the mg_cfg file. I am using a Zgemma H2 on a Virgin line, and i keep getting freezing and glitching, i have checked everything from interent connection to wiring. The line provider also state there is no issue with their server.

I am thinking that it may be the mg_cfg file that is causing the freezing. this is what i have in my mg_cfg, and anyone tell what they represent and if i can change any of these values to give the box a more stable conneciton.

M: { 01 }
C: { 01 }
A: { 03 }
U: { 01 } 0x12c0
T: { 00 }
G: { 01 }
N: { 07 } 5 30
K: { 07 }
Q: { 120 }
P: { 00 }
O: { 00 } root password
S: { 00 } 80
L: { 02 } 172.16.1.1 28007 /tmp/mgcamd.log
E: { 15 }
H: { 07 }
R: { 04 }
D: { 00 }
B: { 00 }
F: { 00 }
 
thanks dangerous. I see that your config shows the B = 06 which is for Dreambox, as i have a Zgemma H2 sholud that value be different ?
 
Mine works on on zgemma no problem, just use the same settings, I've found it works on all receivers with a single N line or a C and N.
 
Change L: { 02 } to L: { 00 } that's to stop the mg_cfg file from hogging the router

---------- Post Merged at 01:35 PM ----------

I also have B 06 for box type

---------- Post Merged at 02:10 PM ----------

Lets compare what we have if others have different please post

my mg_cfg file from the zgemma tools section
Code:
M: { 01 }
C: { 01 }
A: { 02 }
U: { 01 } 0x12c0
T: { 00 }
G: { 01 }
N: { 07 } 5 30
K: { 05 }
Q: { 600 }
P: { 00 }
O: { 00 } username password
S: { 03 } 80
L: { 00 } 172.16.1.1 28007 /tmp/mgcamd.log
E: { 15 }
H: { 07 }
R: { 00 }
D: { 00 }
B: { 06 }
F: { 00 }

hiranuk,s mg_cfg file
Code:
M: { 01 } 
C: { 01 } 
A: { 03 } 
U: { 01 } 0x12c0 
T: { 00 } 
G: { 01 } 
N: { 07 } 5 30
K: { 07 } 
Q: { 120 }
P: { 00 } 
O: { 00 } root password 
S: { 00 } 80 
L: { 02 } 172.16.1.1 28007 /tmp/mgcamd.log 
E: { 15 } 
H: { 07 } 
R: { 04 } 
D: { 00 } 
B: { 00 } 
F: { 00 }

dangerous,s mg_cfg file from the cable downloads section
Code:
M: { 01 }
C: { 01 }
A: { 02 }
U: { 01 } 0x12c0
T: { 00 }
G: { 33 }
N: { 07 } 5 30
K: { 10 }
Q: { 600 }
P: { 00 }
O: { 00 } username password
S: { 03 } 80
L: { 00 } 172.16.1.1 28007 /tmp/mgcamd.log
E: { 15 }
H: { 07 }
R: { 00 }
D: { 00 }
B: { 06 }
F: { 00 }
 
Last edited:
thanks i ve changed K and L and now testing. I have also noticed when i activate 1.38 cam i get the following when i FTP to the keys folder.

ignore.list.example.mg
mg_cfg
mg_cfg.example.mg
newcamd.list
peer.cfg.example.mg
priority.list.example.mg
replace.list.example.mg

I thought there should only be the newcamd.list and the mg_cfg in the keys folder, what are all the rest for? it seems they get get generated when activating the 1.38 cam in softcam menu. if i open the mg_cfg.example.mg and compare it to the mg_cfg the K and L values are different as well as some others,. Not sure if this could the be reason for the freezing. im using slyk1 Zgemma H2 image openATV. Any ideas. Thanks
 
Yes, stop faffing and try my file, if you have a problem come back.
Ps delete everything that's been generated, there all example files. I don't use them and have never had a problem

Edit:
I've got a set of the files your talking about stored on my laptop somewhere, I'll send them over if you want to try them, but I'm sure they don't have much impact.
 
Last edited:
I don't know whether you have but a summary file up on purpose to save space, but here is an unedited version.
The number is accumalitve. so if its 7. It includes 1 2 and 4

# EMM messages
# 00 don't show any EMMs (default)
# 01 show only valid EMMs
# 02 show valid and bad EMMs with complete data display
M: { 01 }


# ECM messages
# 00 don't show anything about ecm
# 01 normal mode, show pids processed, decoded ecm and cw
# 02 verbose mode, show valid and bad ECMs with data
C: { 01 }


# AU
# 00 disable, no emm pids processed
# 01 enable, emm pids always processed for soft-au and shared cards
# 02 auto, emm started only if channel cant be decoded
# 03 process emm pids for network cards update only
A: { 02 }


# key update (sum 01 or 02 with 04)
# 01 update only new keys, default setting
# 02 update all keys (used for valid PMK checking)
# 04 enable TPS au
# + tps SID, which pmt pid contains au pid
U: { 01 } 0x12c0


# config files folder (softcam, autoroll, ignore/priority)
# 00 files in /var/keys
# 01 files in /tmp
T: { 00 }


# network mode, use summ for several clients
# 00 no network (default)
# 01 newcamd netclient
# 02 radegast netclient
# 04 camd3 netclient
# 08 gbox netclient
# 32 cccamd netclient, card list saved as /tmp/cccamd.info
# (ECM only, supported server version up to 2.1.1, later not work)
G: { 33 }


# network retry, use summ for several options
# 00 disable
# 01 retry every new ecm
# 02 try to connect to offline shares every Q: seconds
# 04 try to detect and fast reconnect to lost (and not used atm) server
# + XX messages number and YY seconds to reconnect
# mg will reconnect to server, if no answer to last XX ecm/keepalive ors
# if no answer for last ecm or keepalive sent for YY seconds
# set to 0 to disable
N: { 07 } 5 30


# network ecm timeout in seconds
K: { 05 }


# newcamd dead routes connect retry, sec
Q: { 600 }


# network shares priority
# 00 gbox, newcamd, cccamd, radegast, camd3 (default)
# 01 camd3, radegast, cccamd, gbox, newcamd
# 02 cccamd, newcamd, camd3, gbox, radegast
P: { 00 }


# on screen display type
# 00 No OSD (default)
# 01 neutrino
# 02 enigma
# 03 relook
# + user password for http auth
O: { 00 } username password


# on screen display Options, summ of:
# 01 show emu ecm
# 02 show network shares messages
# 04 show decoding failed / fta
# 08 show emm keys update
# + web port to use for osd
S: { 03 } 80


# Log option, summ of:
# 00 off
# 01 network udp log
# 02 log to console
# 04 file, appended ! delete it by yourself, before it eat all your hdd
# + IP udp-port log-file-name
L: { 00 } 172.16.1.1 28007 /tmp/mgcamd.log


# keep ecm cache, seconds
# every cache entry takes 28 bytes, so 24h cache will take *only* 240-400kb of memory,
# for openbox/elanvision users with remote shares make sense to set it higher than default value,
# to not hammer cards while timeshifting or playing crypted recordings.
E: { 15 }


# cache option, summ of:
# 00 Off (default)
# 01 Ecm pids cache, store pids used to decode in /tmp/ca_cache.list at exit, load at startup, same syntax as restore.list
# 02 Ecm data cache, remember CW for (E:) time
# 04 Emm cache for network cards, do not resend the same emm twice, cache not cleared until restart
H: { 07 }


# reread files, summ of:
# 00 No (default)
# 01 reread config file on channel change (including priority and ignore, but not replace/cache)
# 02 reread SoftCam.Key on channel change
# 04 reread SoftCam.Key if file changed
R: { 00 }


# debug, summ of
# 00 off (default)
# 01 debug ecm
# 02 debug emm
# 04 debug network ecm
# 08 debug network emm
# 16 debug network login
# 32 show mem/cpu stats every 1 min
# 64 add timestamp to log messages
D: { 00 }


# box type
# 00 autodetect, change only if you think wrong type detected.
# 01 dbox2
# 02 dreambox
# 03 triple-dragon
# 04 relook
# 05 openbox
# 06 dreambox/mips
# 08 stapi/kathrein
# 09 stapi/ipbox
# 11 stapi/openbox
B: { 06 }


# map all 180x nagra caids to 1801
# default is 01
F: { 00 }
 
thanks all for your help. It seems that the freezing was not down to the line or the cfg file. I am uising homeplugs with both the H1 and H2, over the last 2 weeks i have had a few power cuts in my area, this seems to have sent a power surge to the homeplugs, so i tried another set of home plugs but the freezing was still there, so it doesnt seem to be faulty homeplugs.

I then tried a wireless adapter and now the freezing has gone. It seems that the LAN port on both boxes are screwed from the power surges. ill be sticking to the wi-fi adapter as this seem to be stable.
 
Interesting [emoji106]

Edit:
I must admit I'm not a fan of homeplugs what so ever, I do here good reports but personally I think they can cause glitches.
 
Last edited:
Congratulations on getting to the bottom of it.

Seems to be a few people suffering with power surges at the minute, things cooking because of it

WiFi is below the order of homeplugs as it goes but desperate times = desperate measures

Sent from my SM-G920F using Tapatalk
 
Back
Top