[SD Commucation] add slave into main function