ensea2017:
I tried to reset but nothing has changed.
How did you try to reset it? Pressing and holding the "WLAN RST" button for 30 seconds should return it back to factory defaults. But be aware that it will only work when the Yun is fully booted. Make sure it is up and running (white USB LED is on) and give it a little more time. Then press and hold it for more than 30 seconds. When you release it, wait for the flashing lights to stop (could take a long time - many minutes) and wait for the white USB LED to come on again solid. Then try the default "arduino" password again.
Then through the sketch, I also tried to communicate but a password is necessary
I'm guessing you're trying to load a sketch by selecting the Yun's network address on the Arduino IDE's Port menu. This does indeed require the password for the Yun. Instead, plug the Yun into your computer using the micro-USB connector, and select the corresponding serial port in the Arduino IDE Port menu. That won't require a password.
So if anyone have an idea
Try plugging in the micro-USB port to your computer, and load the YunSerialTerminal sketch. Then connect to it with the Serial Monitor. (One tip: I've found that with the latest IDE, after loading a sketch over USB, the Port menu changes to a different port number, and I have to switch it back to the original port number before I can open the Serial Monitor.)
Once you have the YunSerialTerminal sketch loaded, you can access the Linux command line through the Serial Monitor and the micro-USB port, and no password is required. Once connected, and using the Serial Monitor:
- Click the "Send" button, and you should see the Linux command prompt.
- Enter "passwd" (without quotes) in the edit box and click send. You will see a prompt to enter a new password.
- Enter your new password in the edit box and click send. You will be prompted to re-enter the password.
- Enter the same password in the edit box and click send. It should save the new password.
At this point, the password should be reset, and you should be able to access the Yun using any of the normal methods. Note that after entering the password the first time, it may complain about it being a bad password for various reasons. This is only a warning, and it will still let you set that password if you confirm it - while it's a good idea to choose a strong password, it is not required.
Note that if you had a sketch loaded that was using the Bridge, you may have to cycle the power on the Yun after loading the YunSerialTerminal sketch, and before connecting with the Serial Monitor.