0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

スマホからRaspberryPi上で動いているサービスを止める

Last updated at Posted at 2023-05-16

本記事の前提条件

・RaspberryPiとスマホは同じネットワーク内であること
※外出先から操作する場合は別途設定が必要

想定している使われ方

・モーターを開始、停止
・スイッチのOn/Off
・RaspberryPiの再起動

スマホにterminusを入れる

1.Playストアからterminusを検索し、インストールする
2.+ボタンでNew Hostをタップ
3.以下の項目を埋める
  ・Alias:エリアス名
  ・HostName:ホスト名(IPアドレス)
  ・SSH:チェックを入れる
  ・Port:22を入れる
  ・Username:ラズベリーパイのユーザ名
  ・Password:ラズベリーパイのパスワード
4.Hostエリアスをタップする

ラズベリーパイにログイン成功すると以下の画面が表示される

そこでいろんなコマンドを入力して、RaspberryPiの遠隔操作ができるようになる。

Screenshot_20230516-104346.png

例えば、pinoutを打ち込むと
Screenshot_20230516-105457.png
このようにラズベリーパイのGPIOの配置を知ることができる。

これを見ながら、配線することも可能になります。
※ただし、配線する場合は必ず、ラズベリーパイの電源をOFFにしてください。

サービスの停止と再起動の事例

Screenshot_20230516-135525~2.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?