• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

IoT Watson Device Management: reboot request fails

50EXE09WN7 gravatar image
Question by Yuriy Olkhovyy  (22) | Apr 11, 2018 at 04:27 AM watsoniotmqttdevicemanagement

A question about IoT device management.

Why this device management reboot request manually initiated in IBM Watson Iot Platform:

iotdm-1/mgmt/initiate/device/reboot:{"reqId":"d406d02e-1b5b-4e75-a9b7-1325e31c535a"}

and response:

iotdevice-1/response:{"rc":200,"message":"Reboot initiated","reqId":"d406d02e-1b5b-4e75-a9b7-1325e31c535a"}

are marked as failed?

Please see attached screenshot. Organization ID is y32gkx.

Thank you.

screenshot-from-2018-04-11-10-21-06.png (22.0 kB)

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
270006B8PR gravatar image
Accepted answer

Answer by MikeRobertson (176) | Apr 15, 2018 at 10:39 AM

The request is being marked as failed due to the return code specified in the message. The device management protocol in Watson IoT Platform specifically expects to receive back a 202 (accepted) message in response to the initiate device reboot message.

This response indicates that the device has accepted the reboot request. At this point, the request is still in-progress according to the request status in Watson IoT Platform. The request will be marked complete after the device has rebooted, reconnected and send a new "manage" message.

Example message flow:

  • IoT Platform publishes initiate message:

    iotdm-1/mgmt/initiate/device/reboot:{"reqId":"d406d02e-1b5b-4e75-a9b7-1325e31c535a"}

  • Device responds with accept message:

    iotdevice-1/response:{"rc":202,"reqId":"d406d02e-1b5b-4e75-a9b7-1325e31c535a"}

  • Device reboots, comes back online and publishes new manage message:

    iotdevice-1/mgmt/manage:{"d":{"supports":{"deviceActions":true}},"reqId":"e406d02e-1b5b-4e75-a9b7-1325e31c535b"}

Further details on the device management protocol can be found here: https://console.bluemix.net/docs/services/IoT/devices/device_mgmt/requests.html#device-actions-reboot

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
50EXE09WN7 gravatar image Yuriy Olkhovyy (22)   Apr 16, 2018 at 03:55 AM 0
Share

Thanks, works fine now.

Follow this question

150 people are following this question.

Answers

Answers & comments

Related questions

Handling connect and disconnects with Watson IoT Platform 3 Answers

Internet of Things – IBM MQTT Servers, IBM IoT Foundation (BlueMix hosted) & IIB 1 Answer

How to communicate to beagle bone black using watson iot platform? 1 Answer

Can't Send Device Action in Watson IOT 1 Answer

IBM IoT output node to websockets end-point 4 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges