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

조회 수: 1 (최근 30일)
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.

채택된 답변

Md. Mubarak Hossain
Md. Mubarak Hossain 2017년 6월 13일
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')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by