Probing the core of Cepheus A - Millimeter and submillimeter observations