本文へスキップ
Docs
English日本語
ログイン

このページはまだ日本語では利用できません。現在は英語版を表示しています。ブラウザの翻訳機能をご利用ください。

ブラウザで翻訳する
  • Chrome / Edge: アドレスバーの翻訳アイコン、またはページを右クリックして「日本語に翻訳」を選択してください。
  • Safari: アドレスバーの「aA」メニューから「翻訳」を選択してください。

翻訳メニューが表示されない場合は、ブラウザ設定で翻訳機能が有効になっているか確認してください。

英語版を見る

Remote Command UDP Usage

With Remote Command, you can use the Soracom API to send UDP data to a device that uses an IoT SIM.

With Remote Command, you can use the Soracom API to send UDP data to a device that uses an IoT SIM.

UDP does not guarantee data delivery or provide a built-in way to confirm it. To verify receipt of UDP data, you must implement your own confirmation method on the device, such as sending an acknowledgment message to the Unified Endpoint when data is received.

Ensure your device is configured to accept incoming UDP data before using this feature.

Programmatic Usage

[block=api]

Soracom API

To access the Soracom API, first use the auth API to obtain an API Key and Token. Refer to the API Usage Guide for instructions on how to use the API Key and Token in API requests.

Then, use the sendDownlinkUdp API to send UDP data to a device that has an IoT SIM:

[ui-tabs theme=code] [ui-tab title=Global]

curl -X POST \
|  -H 'X-Soracom-API-Key: <MY-API-KEY>' \
|  -H 'X-Soracom-Token: <MY-TOKEN>' \
|  -H 'Content-Type: application/json' \
|  -d '{
|        "payload": "FFFFFF",
|        "payloadEncoding": "hex",
|        "port": 5005
|      }' \
|  https://g.api.soracom.io/v1/sims/<SIM_ID>/downlink/udp

[/ui-tab] [ui-tab title=Japan]

curl -X POST \
|  -H 'X-Soracom-API-Key: <MY-API-KEY>' \
|  -H 'X-Soracom-Token: <MY-TOKEN>' \
|  -H 'Content-Type: application/json' \
|  -d '{
|        "payload": "FFFFFF",
|        "payloadEncoding": "hex",
|        "port": 5005
|      }' \
|  https://jp.api.soracom.io/v1/sims/<SIM_ID>/downlink/udp

[/ui-tab] [/ui-tabs] [/block]

[block=cli]

Soracom CLI

To use the Soracom CLI, you must first configure it to authenticate with your account information, authorization key, or SAM user credentials.

Run the following command to send a UDP data to a device that has an IoT SIM:

[ui-tabs theme=code] [ui-tab title=Global]

body='{
|        "payload": "FFFFFF",
|        "payloadEncoding": "hex",
|        "port": 5005
|      }'
soracom sims downlink-udp --sim-id <SIM_ID> --body ${body} --coverage-type g

[/ui-tab] [ui-tab title=Japan]

body='{
|        "payload": "FFFFFF",
|        "payloadEncoding": "hex",
|        "port": 5005
|      }'
soracom sims downlink-udp --sim-id <SIM_ID> --body ${body} --coverage-type jp

[/ui-tab] [/ui-tabs] [/block]

検索 Escで閉じる / Enterで検索結果