IBM WATSON connection using a71ch - axI2CTerm: not implemented and Watson IoT Platform: rc=-15

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IBM WATSON connection using a71ch - axI2CTerm: not implemented and Watson IoT Platform: rc=-15

387 Views
kuldip_kanzariy
Contributor I

We are trying to connect to the IBM WATSON IoT platform using the below-mentioned code :

source: https://github.com/ibm-watson-iot/iot-nxpimxa71ch-c

we followed the steps mentioned in the above code.

1. We are able to compile the code and generate the sample Binaries in the mentioned folder (/opt/iotnxpimxclient/bin)

2. Using generated out facts we are able to create certificates also.

3. We have registered a device, uploaded the certificates and changed the connection policy.

4. While using sample binary with certificates to connect with IBM Iot platform ,we are getting an error as mentioned below:

Initialize logging. LogFile:./iotfclient.log LogLevel:3
I2CInit: opening /dev/i2c-0
I2C driver: PEC flag cleared
I2C driver supports plain i2c-level commands.
I2C driver supports Read Block.
axI2CTerm: not implemented.
ERROR: Failed to connect to Watson IoT Platform: rc=-15

-------  config file -----

org=lxxxxxx
type=NXP-A71CH-D
useClientCertificates=1 -
rootCACertPath=/opt/iotnxpimxclient/certs/IoTFoundation.pem
clientCertPath=/opt/iotnxpimxclient/certs/700281490036xxxxxx_device_ec_pem.crt
clientKeyPath=/opt/iotnxpimxclient/certs/700281490036xxxxxx.key
useNXPEngine=1
useCertsFromSE=1

------------------------------------- LogFile ----------------------------------------

Wed Dec  9 18:13:16 2020 initLogging iotf_utils.c 94: INFO: ----- INITIALIZE LOGGING -----
Wed Dec  9 18:13:16 2020 initLogging iotf_utils.c 95: INFO: Log Level: INFO
Wed Dec  9 18:13:16 2020 get_config config.c 297: INFO: org=lcoxxxxx
Wed Dec  9 18:13:16 2020 get_config config.c 298: INFO: port=8883
Wed Dec  9 18:13:16 2020 get_config config.c 311: INFO: type=internetofthings.ibmcloud.com
Wed Dec  9 18:13:16 2020 get_config config.c 360: INFO: useClientCertificates=1
Wed Dec  9 18:13:16 2020 get_config config.c 343: INFO: rootCACertPath=/opt/iotnxpimxclient/certs/IoTFoundation.pem
Wed Dec  9 18:13:16 2020 get_config config.c 349: INFO: clientCertPath=/opt/iotnxpimxclient/certs/7002814900366xxxx_device_ec_pem.crt
Wed Dec  9 18:13:16 2020 get_config config.c 355: INFO: clientKeyPath=/opt/iotnxpimxclient/certs/70028149003xxxxx.key
Wed Dec  9 18:13:16 2020 get_config config.c 364: INFO: Config: useNXPEngine=1  
Wed Dec  9 18:13:16 2020 get_config config.c 368: INFO: Config: useCertsFromSE=1  
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 51: INFO: org:lcoz8n , type: NXP-A71CH-D , useCerts: 1
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 71: INFO: useCertificates=1
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 72: INFO: useCertsFromSE=1
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 92: INFO: CACertPath=/opt/iotnxpimxclient/certs/IoTFoundation.pem
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 93: INFO: clientCertPath=/opt/iotnxpimxclient/certs/70028149003665990529_device_ec_pem.crt
Wed Dec  9 18:13:16 2020 initialize_configfile config.c 94: INFO: clientKeyPath=/opt/iotnxpimxclient/certs/70028149003665990529.key
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 92: INFO: Library is set to use NXP Openssl Engine.
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 112: INFO: Retrieved client certificate and key for UID: 70028149003665990529
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 133: INFO: Client certificate  from SE: clientCertPath=/opt/iotnxpimxclient/certs/70028149003665990529_device_ec_pem.crt
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 134: INFO: Client refernce key from SE: clientKeyPath=/opt/iotnxpimxclient/certs/70028149003665990529_device_ec_pem.crt/700281490xxxxxx.ref_key
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 170: INFO: messagingUrl=.messaging.internetofthings.ibmcloud.com
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 171: INFO: hostname=lcoz8n.messaging.internetofthings.ibmcloud.com
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 172: INFO: port=8883
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 173: INFO: clientId=d:lcoz8n:NXP-A71CH-D:700281490036xxxxxx
Wed Dec  9 18:13:16 2020 connectiotf iotfclient.c 182: INFO: connectionUrl=ssl://lcoz8n.messaging.internetofthings.ibmcloud.com:8883

----------------------------------------------------------------------------------------------------------------------------------------

is there any solution for error ?

 

0 Kudos
0 Replies