This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multiple cloud connections on Thingy91

Hi,

As per our requirement, we have integrated GCP on thingy91 (PCA20035) and able to send and receive MQTT messages without any issues.

But as part of FOTA implementation, we are planning to use AWS FOTA service (Shadow and Job services) on Thingy91.

For this we have Implemented a independent thread to handle FOTA with AWS cloud but we are facing issue while provisioning certificates.

Only AWS certificates (Public, Private and Root CA) are being provisioned without any issues and on the other hand GCP certificate provision is failed.

 <err> gcloud: GCLOUD_CA_CERTIFICATE err: 13 Permission denied

The following logs are attached below for reference

[00:00:02.679,748] <inf> watchdog: Watchdog timeout installed. Timeout: 30000
[00:00:02.828,155] <inf> watchdog: Watchdog started
[00:00:02.934,082] <inf> watchdog: Watchdog feed enabled. Timeout: 15000
[00:00:03.082,000] <inf> main: Provision Google cloud certificate
new thread fun  is started
MQTT AWS Jobs FOTA Sample, version: v1.1.1
Initializing bsdlib
Initialized bsdlib
************************ WARNING ************************
provision_certificates called do not use this in production!
This will store the certificates in readable flash and leave
them exposed on modem_traces. Only use this once for
provisioning certificates for development to reduce flash tear.
************************ WARNING ************************
nrf_inbuilt_key_delete(12345678, 0) => result=2
nrf_inbuilt_key_delete(12345678, 1) => result=0
nrf_inbuilt_key_delete(12345678, 2) => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
Certificates are provisioned.
LTE Link Connecting ...
Lte_lc_init is getting called
[00:00:08.500,000] <inf> gcloud: key delete: 2 No such file or directory

[00:00:08.981,323] <inf> gcloud: key delete: 2 No such file or directory

[00:00:09.463,897] <inf> gcloud: key delete: 2 No such file or directory

[00:00:09.948,944] <inf> gcloud: key delete: 2 No such file or directory

[00:00:10.439,178] <err> gcloud: GCLOUD_CA_CERTIFICATE err: 13 Permission denied

[00:00:10.494,140] <inf> main: Device ID        <DEVICE ID - IMEI>
[00:00:10.547,912] <inf> main: Device Position  Sta
[00:00:11.505,767] <dbg> lte_lc.parse_nw_reg_status: Network registration status: 2
[00:00:13.716,339] <dbg> lte_lc.parse_nw_reg_status: Network registration status: 5
LTE Link Connected!
Modem is configured.
IPv4 Address 50.18.211.49
client_id: <DEVICE ID - IMEI>
Client is initialized.
aws_fota_init initialized.
[00:00:20.573,730] <inf> ast_ble: Initializing Bluetooth
MQTT AW;33m<wrn> bt_hci_core: opcode 0x0000 pool id 5 pool 0x20030354 != &hci_cmd_pool 0x20030330
[00:00:20.964,447] <inf> ast_ble: Bluetooth Initialized..!!
nrf_inbuilt_key_delete(12345678, 0) => result=13
pinging  mqtt_live.
[00:00:21.494,354] <inf> aws_jobs: Subscribe: $aws/things/<DEVICE ID - IMEI>/jobs/notify-next
[00:00:21.524,780] <inf> aws_jobs: Subscribe: $aws/things/<DEVICE ID - IMEI>/jobs/$next/get/#
[mqtt_evt_handler:179] MQTT client connected!


Please help us with your inputs and let us know, is it possible to maintain two clouds (GCP & AWS) on same thingy91.  

Parents Reply Children
No Data
Related