Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Fault connecting XDK110 to Bosch IoT Suite

    rafal
    New Poster

    Re: Fault connecting XDK110 to Bosch IoT Suite

    Tenant Id and Device ID are the same on IOT Suite and provisioning file.
    - Some certificate exist (18-lines code)
    - Yes - XDK_APP_CERTIFICATE_NAME is "IoTHub"

    Do I need a public IP address? What ports do I need to have unlocked?

    Mahalingam
    Occasional Contributor

    Re: Fault connecting XDK110 to Bosch IoT Suite

    Hello rafal

    I guess the Issue is not with IP address or Port. Does your wifi wireless network setting is configured to block certain url or port?

    If XDK doesn't able to establish connection with Bosch IoT Suite, the posssible reason could be,

    1. Invalid provisioning.json file

    2. Invalid certificate

    When I looked at your console log, you were getting below events,

    MQTT_CONNECT_SEND_FAILED - This event will be triggered if sending the connect message fails 

    MQTT_CONNECTION_CLOSED - This event is triggered, if the server has not responded to the subscribe message

    One of user was also facing same issue, I suggested the solution which I have suggested to you. The solution worked for him.

    Reference Post -> Solved: MQTT with SNTP error message - Page 2 (bosch.com)

    In Connect the Cross-Domain Development Kit (XDK) to the Bosch IoT Suite (bosch-iot-suite.com) article, it is mentioned that "Connection from the board to Bosch IoT Hub not open →  check the setting in provisioning.json for the right configuration"

    Are you getting mqtt error always, when you switch off and on the XDK multiple times?

    If you are still facing issue, could you please share me the bin file which you have flashed into device?

    I will try to flash the bin file from my end and use my provisioning.json file and check whether I am able to connect successfully or not.

    If I am able to connect successfully with your bin file, then the problem could be in your provisioning.json file.

    rafal
    New Poster

    Re: Fault connecting XDK110 to Bosch IoT Suite

    - Yes I always receive mqtt error. I tried clean project and still the same errors.

    I attached my XDK-Workbench project, can you check it?

    Mahalingam
    Occasional Contributor

    Re: Fault connecting XDK110 to Bosch IoT Suite

    Hello rafal

    I Flashed the bin file (which you have shared to me) into XDK device. I used my own provisioning.json file.

    I am able to send data from XDK to Bosch IoT Suite successfully.

    I am able to view the data in Bosch IoT Suite Things Dashboard.

    This conclude that the problem is not in the bin file which you have flashed. The problem is in your provisioning.json file.

    Can you please once again create a new provisioning.json file by following the procedure as mentioned in Connect the Cross-Domain Development Kit (XDK) to the Bosch IoT Suite (bosch-iot-suite.com) documentation and Place the new provisioning.json file and check whether XDK is able to connect with Bosch IoT suite?

    I have attached my XDK Workbench Console output below for reference,

     

     INFO | XDK DEVICE 1: Preparing for Personal WPA2 connection
     INFO | XDK DEVICE 1: This is a CC3100R device
     INFO | XDK DEVICE 1: CHIP 0x4000000
     INFO | XDK DEVICE 1: MAC 31.1.5.0.2
     INFO | XDK DEVICE 1: PHY 1.0.3.37
     INFO | XDK DEVICE 1: NWP 2.11.0.1
     INFO | XDK DEVICE 1: ROM 0x3333
     INFO | XDK DEVICE 1: HOST 1.0.1.11
     INFO | XDK DEVICE 1: Successfully set IP using DHCP
     INFO | XDK DEVICE 1: Trying to connect with WiFi network...
     INFO | XDK DEVICE 1: Successfully removed obsolete profiles
     INFO | XDK DEVICE 1: Added new WLAN profile
     INFO | XDK DEVICE 1: Successfully reset obsolete connection policy
     INFO | XDK DEVICE 1: Successfully set new connection policy
     INFO | XDK DEVICE 1: Started collecting WLAN Rx Statistic
     INFO | XDK DEVICE 1: IP address of device  192.168.43.50
     INFO | XDK DEVICE 1:               Mask    255.255.255.0
     INFO | XDK DEVICE 1:               Gateway 192.168.43.1
     INFO | XDK DEVICE 1:               DNS     192.168.43.1
     INFO | XDK DEVICE 1: Connected to WPA network successfully
     INFO | XDK DEVICE 1: cert. version     : 3
     INFO | XDK DEVICE 1: serial number     : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
     INFO | XDK DEVICE 1: issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
     INFO | XDK DEVICE 1: subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
     INFO | XDK DEVICE 1: issued  on        : 2000-09-30 21:12:19
     INFO | XDK DEVICE 1: expires on        : 2021-09-30 14:01:15
     INFO | XDK DEVICE 1: signed using      : RSA with SHA1
     INFO | XDK DEVICE 1: RSA key size      : 2048 bits
     INFO | XDK DEVICE 1: basic constraints : CA=true
     INFO | XDK DEVICE 1: key usage         : Key Cert Sign, CRL Sign
     INFO | XDK DEVICE 1: crt content:444  . Setting up the SSL/TLS structure... ok success
     INFO | XDK DEVICE 1:   !  mbedtls_x509_crt_parse Succeeded
     INFO | XDK DEVICE 1: SntpSentCallback : Success
     INFO | XDK DEVICE 1: SntpTimeCallback : received
     INFO | XDK DEVICE 1: Connecting to Mqtt broker... 
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 0
     INFO | XDK DEVICE 1: ServalMqttAgent:SubscribeToTopic - Subscribing to topic: command///req/#, Qos: 1
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 8
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 14
     INFO | XDK DEVICE 1: AppController: New Sensors Enabled Value
     INFO | XDK DEVICE 1: AppController: New Sensor Post Interval: 1000ms
     INFO | XDK DEVICE 1: Connected to Mqtt broker successfully 
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15
     INFO | XDK DEVICE 1: MqttEventHandler : Event - 15

     

     

    rafal
    New Poster

    Re: Fault connecting XDK110 to Bosch IoT Suite

    I followed the instructions in the tutorial again, and still the same fault. Tutorial is really simple and isn't possible to make something wrong.

    I attached my Provisioning file check this out. 

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist