Due to the tunable interplay between magnetism and superconductivity the CenTmIn3n+2m (n, m = 1, 2; T = Co, Ir, Rh, Pd, Pt) family of heavy fermion compounds has been attractive for thorough studies of the two cooperative phenomena. However, the inelastic neutron scattering (INS) measurement of crystalline electric field (CEF) has been done only on compounds with the 115 (n=1, m=1) stoichiometry. Several indirect methods like thermal expansion or specific heat were used to clarify the CEF levels in other compounds of the family, but no direct measurement was performed yet. The aim of the proposed experiment is to reveal the CEF energy scheme of Ce2RhIn8 and CePt2In7, which is very important for the heavy fermion ground states in these materials.