Please note that any gainful employment is only permitted with a suitable work permit*! This also includes research without a contract of employment.
*Exceptions may apply to research stays of no more than 90 days within a period of twelve months for persons who can enter the country without a visa (cf. §30 BeschV (Ordinance on the Employment of Foreigners)). This should be confirmed in advance by the responsible embassy.