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 5 years have passed since last update.

ラズパイでSORACOM SIMを利用方法する AK-020

Last updated at Posted at 2020-11-23

概要

  • SORACOM SIMを利用してラズパイからインターネット経由へアクセスをする。
    • インターネットからラズパイへのアクセスは別途記載する。

事前準備

手順

  1. SIMをUSBドングルへ挿入

  2. USBドングルを利用したいラズパイのUSBポートへ接続

  3. ラズパイでセットアップ用スクリプを取得し自動設定をする。

    • 実行後、SIMの設定が自動で行われ、IPアドレスなども割り当てられる。
    • SORACOMのコンソール画面でもステータスがオンラインに変化する。
    • ステータスがオンライン = 従量課金 が開始するので注意。
    $ curl -O https://soracom-files.s3.amazonaws.com/setup_air.sh
    $ sudo bash setup_air.sh
    
  4. グローバルIPアドレスが割り当てられていることを確認。

    pi@raspberrypi:~ $ curl inet-ip.info
    103.67.***.***
    
  5. ラズパイからインターネットへのアクセスがで来たことを確認。

    pi@raspberrypi:~ $ ping 8.8.8.8 -c 4
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=147 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=85.9 ms
    64 bytes from 8.8.8.8: icmp_seq=3 ttl=116 time=84.2 ms
    64 bytes from 8.8.8.8: icmp_seq=4 ttl=116 time=81.1 ms
    

公式ドキュメント

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?