Country feature table investigation

From Openlgtv
Jump to: navigation, search

Country features table is hardcoded in RELEASE

This data have following names: aCountryList_??, where ?? - country group name (in firmware 3.55 for 2009 year models: EU, KR, US, AU, SG, ID, MY, ZA, VN, TW, 00, ZZ)

So, country feature table for EU group called aCountryList_EU

How to find the address of this structure?

  1. Look in RELEASE.idc file which generated by Decomp.exe from RELEASE.sym
  2. In RELEASE debug menu type: md aCountryList_EU - you will get memory dump

Structure of the data

The structure consists of the structures of 6 double words.

First 24 bytes of aCountryList_EU - data for United Kingdom:

4B 55 00 00 6C AF B6 00 9E 30 80 0D 00 00 00 00 00 00 00 00 70 AF B6 00
4B 55 00 00 - Country ID ("UK")
6C AF B6 00 - Country ID Addr (pointer to string "UK")
9E 30 80 0D - Country features (will describe later)
00 00 00 00 - Unknown. Always 0
00 00 00 00 - gnRmmNumOfCountryInGroup.
70 AF B6 00 - Country Name Addr (pointer to string "United Kingdom")


Country features double word structure rcode command output for UK on 2009 year models:

+< > Country {c[0x474252:UK] 4[0] 5[1] C[1] O[1] L[1] V[0] N[0] D[1] A[0] dvr[0] ttx[0] acms[1] dAboost[1] mono[0] i/ii[0] f[United Kingdom]}

Lets take third dword (don't forget about byte order) 0x0D80309E and present it as binary:

0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 1 1 1 0

I don't know for what first 16 bits, but second 16 bits store data for rcode output:

i/ii	mono	dAboost	acms	??	ttx	dvr	A	D	N	V	L	O	C	5	4
0	0	1	1	0	0	0	0	1	0	0	1	1	1	1	0


Bit Enabled feature support

18 DVB-C

8 Analogue Teletext Disable

7 Closed Captions

6 Disable audio boost option

5 DVB-T

4 Automatic numbering

2 CI interface enable

1 MHEG enable (if you select Ireland, you can select between MHEG/Teletext)


Here are full rcode output tables (second 16 bits in structure) for

In file for LH series yellow marked the country in which there is no accepted standards for broadcasting digital TV (depending on this LG enable/disable these options). All of them has 0 ad "D" column. So, I made the assumption that this parameter is responsible for digital broadcasting.

Then, I know that Ukraine has accepted DVB-T, but no DVB-C. Thus, for DVB-T is responsible option "V", and for DVB-C - "C".

Changing bit C to 1 for Ukraine will enable DVB-C.

How to change this settings

In LGMOD already present patching ability. See How to patch RELEASE and add functionalities on your TV

Why do we need this?

We can make patch with enabled digital broadcasting for different countries. And if we investigate, for what responsible each bit (especially in first 16 bits) we can change more.