How to give a unchangeable, fixed Host name a Rasperry PI 3 like a fixed IP address ?

1 view (last 30 days)
I'm using my Rasperry Pi 3 wirelessly with matlab simulink. But I need to setup my Rasperry Pi if I switch off power connection or reset my wifi router because Host name become changed. I've reserved a IP address from TP-LINK router that is 192.168.0.105 and it does not change.
If i write the command like rpi=raspi() or a=raspberrypi('192.168.0.105'), it shows error but it ping with 0% loss !ping 192.168.0.105
Here all the pictures........... Please could anyone help me
<<
>>
Please could you help about How to give fixed Host name sothat it does not change after resetting or power off my pi.

Accepted Answer

Md. Mubarak Hossain
Md. Mubarak Hossain on 13 Jun 2017
I've solved the problem. mypi = raspi(ipaddress,username,password) overrides the IP address, user name, and password from the previous connection. Use this syntax to connect to a board whose settings are different from the previous successful connection. After changing the password on a board, use this syntax. Or, after connecting from the MATLAB software to a second Raspberry Pi board, use this syntax.
For first time you can connect by raspi() But from next you execute pi = raspi('169.254.0.4','your username of PI','your password')

More Answers (0)

Categories

Find more on Application Deployment in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!