Try resetting and downloading your tamagotchi. Try it again, and it will work. That incident happened to me, but I fixed it by resetting both of my tamagotchis
Make sure you aren't connecting in direct sunlight. You may not have to download it, just try it again in a cool spot and make sure you are both connecting and you press B when stand by comes on the screen.