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

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Md. Mubarak Hossain
Md. Mubarak Hossain el 13 de Jun. de 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')

Más respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by