{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Mbed Os For Device Tracking","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"mbed-os-for-device-tracking","__idx":0},"children":["Mbed Os For Device Tracking"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed OSは、小さなフットプリント内でIoTスタックとして設計されています。Mbed OS環境で作業する際、デバイスから多くの情報を収集できます。収集したデータは、Pelion IoTプラットフォームの一部としてデータ管理を実行するTreasure Data Serviceに配信できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed OSとTreasure Dataを使用したIoT実装を最適にサポートするアーキテクチャを決定する必要があります。以下の図は、典型的なアーキテクチャの例を示しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201433.16d7aff49a248243b1d7309b99f0a18bfbd744a42fd5092b9e16131f5189a8a7.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この記事では、サンプルプログラムを使用して、MbedデバイスをHTTP経由で直接Treasure DataにWifi接続する方法を説明します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロジェクトページはこちらです: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://os.mbed.com/users/JunkoNakajima/code/mbed-os-example-td-rest-online-compiler/"},"children":["https://os.mbed.com/users/JunkoNakajima/code/mbed-os-example-td-rest-online-compiler/"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このプログラムは、STM32L475でテストされています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure アカウント (IoT Platformに関心がある場合はお問い合わせください)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed アカウント - (アカウントをお持ちでない場合は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://os.mbed.com/account/signup/"},"children":["サインアップ"]},"してください)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed OS デバイス (例: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html"},"children":["STM32L475"]},")"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201452.cc8d811b3ba239b7f9e044befb30b6a59b8bbb0cefda7b6d3401ce9587cdd6cc.9854c389.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"pelion-device-management上でプロジェクトを構築する","__idx":2},"children":["Pelion Device Management上でプロジェクトを構築する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルプロジェクトを構築しましょう。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"プラットフォームを選択する","__idx":3},"children":["プラットフォームを選択する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、Online Compilerでデバイスを選択します。Pelion Device Managementポータルにアクセスし、「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Compiler"]},"」をクリックします。ワークスペースで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["no device selected"]}," (初期状態)をクリックし、次に「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Board"]},"」をクリックします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201504.372d0b1d2363ff2493d855d807ee893692920693f0754070c94917d589a57f98.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、ウィンドウで「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["STM32L475"]},"」を検索します。以下のボードが表示されます。次に、「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add to your Mbed Compiler"]},"」をクリックします。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/"},"children":["https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これで、オンラインコンパイラでボードをプラットフォームとして選択できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201514.9e37bb78890dc3d2b8b7c8f6b1c5248a06b7d6591492c9d5744b0d192939daca.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"インポート","__idx":4},"children":["インポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルプロジェクトをワークスペースにインポートします。以下の画像に示すように、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/mbed-os-for-device-tracking"},"children":["Mbed OS example"]},"ページにアクセスし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Import into Compiler"]},"をクリックします。プログラムがオンラインコンパイラにインポートされます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://os.mbed.com/users/JunkoNakajima/code/mbed-os-example-td-rest-online-compiler/"},"children":["https://os.mbed.com/users/JunkoNakajima/code/mbed-os-example-td-rest-online-compiler/"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201623.73267f164dbe9039129d82df5ca1d2ceae743693409fc96fb5b59af8140f93f5.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"パラメータを設定する","__idx":5},"children":["パラメータを設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の3つのパラメータを設定する必要があります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["wifi-ssid"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["wifi-password"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["api-key"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートされたファイルの1つであるmbed_app.jsonファイルでパラメータを設定します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["wifi-ssid: お使いのWifi SSID"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["wifi-password: お使いのWifiパスワード"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/getting-your-api-keys"},"children":["api-key"]},": お使いのTreasure アカウント"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201633.a18cae998f95f05f8e78733c40813af215056ea7939c9436d923c8ffb7ce4f4f.9854c389.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["main.cppのTreasureData_RESTAPI関数でDatabaseとTableを編集します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201641.a9f59ce67a53e94e93512525c01ed327533961397239010666f1927293d8f593.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"アプリケーションを起動する","__idx":6},"children":["アプリケーションを起動する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed OSデバイスが(WIFI経由で)PCに接続されていることを確認します。接続にはSTLINKコネクタを使用します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アプリケーションをコンパイルし、.binファイルをターゲットボード(以前にプラットフォームとして選択したボード)にコピーします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アプリケーションを起動するには、回路基板上のリセットボタンを押します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201649.67eddebf7fe8318b12398296811926cc63282323a8c88ebe4d09c16a3c836461.9854c389.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Mbed OSデバイスから配信されたレコードがTreasure Dataに表示されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191021-201659.4219878cb232d5e4ab0ad81a18369e5a68a47c24b72bdab24aaa6b445e652df6.9854c389.png","alt":""},"children":[]}]}]},"headings":[{"value":"Mbed Os For Device Tracking","id":"mbed-os-for-device-tracking","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"Pelion Device Management上でプロジェクトを構築する","id":"pelion-device-management上でプロジェクトを構築する","depth":1},{"value":"プラットフォームを選択する","id":"プラットフォームを選択する","depth":2},{"value":"インポート","id":"インポート","depth":2},{"value":"パラメータを設定する","id":"パラメータを設定する","depth":2},{"value":"アプリケーションを起動する","id":"アプリケーションを起動する","depth":2}],"frontmatter":{"seo":{"title":"Mbed Os For Device Tracking"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/mbed-os-for-device-tracking","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}