Application of mechaphotonics technology for optical communication