You can try working as a software engineer in some research project for a while, say at an industry research lab, then slowly make a transition to a research position (which may require a PhD degree).