• Home
  • Resources
    • User Guides
    • Concepts Articles
    • API References
    • Client Libraries & SDKs
    • Product Updates
  • FAQs
    • General
    • IoTConnect
      • Device Rules
      • Devices
      • Settings
      • Device Commands
      • Device Templates
      • Device Firmware
      • Device Onboarding
    • Security
  • Contact Us
  • Home
  • Resources
    • User Guides
    • Concepts Articles
    • API References
    • Client Libraries & SDKs
    • Product Updates
  • FAQs
    • General
    • IoTConnect
      • Device Rules
      • Devices
      • Settings
      • Device Commands
      • Device Templates
      • Device Firmware
      • Device Onboarding
    • Security
  • Contact Us

Client Libraries & SDKs

home/Documentation/Client Libraries & SDKs
  • Device SDK Reference
    • Overview
    • Device Authentication Options
    • Data Flow
    • Public Methods
      • Device Connection
      • Send Telemetry
      • Get Attributes
      • Send acknowledgment
      • Update Twin
    • SDKs (Message version 1.0)
      • DOT NET (C#)
      • Node.js
      • Java
      • Python
      • iOS
      • Android
      • Embedded
      • C language
      • Build Your Own SDK
      • Node-RED
        • IoTConnect Node-red 1.0.9
        • IoTConnect Node-red 1.0.8
      • Node-RED Subflow
        • Single Device
        • Multiple Device
    • SDKs (Message version 2.1)
      • Python
      • DOT NET (C#)
      • C language
        • IoTConnect Generic C SDK
          • Linux Build Instructions
          • Windows Build Instructions
      • Python 1.1
    • Code Samples
      • Node.js
        • TPM 3.1
        • Standard SDK 3.0
        • Standard
        • TPM
        • Standard SDK 3.0.1
        • Standard 2.0
      • Java
        • Standard
        • Standard 2.0
        • Standard 3.0
      • Python
        • Standard 2.0
        • TPM 2.1
        • Standard 3.0.1
        • Standard
        • TPM
          • TPM 3.0.1
        • TPM 3.0
        • Standard 3.0.2
        • Standard 3.0.3
        • Standard 3.0.4
        • Python SDK
      • iOS
        • ios1.0.1
      • C Language
        • nRF9160 DK
        • STM32L4
        • ESP32
        • Standard 3.0
        • Standard 2.0
        • Standard 3.1
      • Android
        • Standard 3.0
        • Standard 2.0.6
        • Standard 2.0.0
      • DOT NET (C#)
        • Standard
        • Standard 2.0
        • Standard 3.0
    • Device Message 1.0
      • D2C (Device to Cloud)
        • IoTConnect SDK
        • Custom SDK
      • C2D (Cloud to Device)
        • IoTConnect SDK
        • Custom SDK
      • Troubleshooting & Response codes
      • Know Your Essentials
    • Device Message 2.1
    • AWS Device Message 2.1
    • SDK Deep-diving
Download PDF

Troubleshooting & Response codes

Response code when the device make connections

Response Code Comment
0 – OK
1 – DEVICE_NOT_REGISTERED Change Device from release to acquired
2 – AUTO_REGISTER
3 – DEVICE_NOT_FOUND Deleted/Not found in the platform

Verify your uniqueID and Env

4 – DEVICE_INACTIVE The device is inactive
5 – OBJECT_MOVED
6 – CPID_NOT_FOUND Verify your environment and CPID / Check Subscription expiry date
7 – COMPANY_NOT_FOUND Verify your environment and CPID

Troubleshooting

BaseUrl not found
Message: { status: false, data: null, message: ‘Invalid URI “sync”‘ }
Reason: CPID and ENV not proper.
Solution:
– Make sure you CPID, uniqueID and ENV are proper on the firmware file if it’s proper then make sure internet connect Lost.

CPID not found or Subscription expired
Message: RC CODE : 6 (CPID_NOT_FOUND)
Reason: The wrong CPID entered or your subscription is expired
Solution:
– CPID should be valid. You can take it from here (How to get CPID)
– Check the combination of CPID and ENV (IoTConnect platform environment)
– Verify your subscription expiry date from dashboard
Device not found
Message: RC CODE : 3 (DEVICE_NOT_FOUND)
Reason: Device not registered on IoTConnect cloud
Solution:
– It should be valid and respective to the entered CPID and ENV
– The device should be registered with entered uniqueId on IoTConnect cloud respective to the selected CPID and ENV
– If your device name is wrong then you need to stop the script and run again after uniqueId correction.

Device not registered
Message: RC CODE : 1 (DEVICE_NOT_REGISTERED)
Reason: Device not registered on cloud
Solution:
– If your uniqueId is right and till you getting the above error then verify below process
– It should be registered on IoTConnect Platform respective to the selected CPID and ENV
– Its status should be “Acquired” (registered on the cloud)
– SDK process is running and rechecking till you follow the above two-point then your device will get connected.

A network connection is not available
Message: { status: false, data: [], message: ‘Network connection error.’ }
Reason: Network connection not available.
Solution: Check the network connection and try again.

X.509 authentication device issue (CA-signed or self-signed)
Message: “SDK options:: Set proper certificate file path and try again.”
Reason:
– CA or Self signed certificate not defined properly
Solution:
– Add your device authenticate certificate in SDK options in the device initialize method.
– Check certificate path proper

Logfile create an issue
Message: “<< Exception error >>”
Reason: In proper file path and permission
Solution:
– Give a proper read and write permission to the device folder
– Check log file path

Send data before device connect or after disconnect
Message: “<< cpid_uniqueid >> :: sendData :: The device is not available on the cloud.”
Reason: Device to cloud connection not available
Solution: Check the device to the cloud connection.

Powered by Softweb – An Avnet Company.

Copyright ©2022 Avnet, Inc. All rights reserved.

Human Rights Privacy Terms of Use