Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kanto-dev] Kanto Getting Started Clarification
  • From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
  • Date: Wed, 8 May 2024 13:12:19 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fpt.com; dmarc=pass action=none header.from=fpt.com; dkim=pass header.d=fpt.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6LtORv29myyXXSdtpESLfLk2BSpa8WvXOr7ONyxunXw=; b=e15xMz0kvBenQ009l1an+nNRjyA0EbVxKniJx8okzqDh/xGSX1jNpom2v77wdf6rx9lkJczj/wrDd7/F7fhXzEsHvFIGpyqh5tJNF0zsgnxEHrQf/TixOXSo6Kj9yFFKIvAO3QC9SkEeEy98oo4ZtB9sBrIgQ5iWNRA2H4jH0LlWe1cVrovt17e9PgKBmSniqh5ij/upiSZS44++KUkykd9NV/1Y0ud8YkWvl8jOD7fLCneOWutbQcWglqg4+l3jjVwsyuIU7jb/VIXbkkUkOn8BkRbpKU9UKv8De8IMujzWg23PvRGGSIjCpDm3hw7Ng886BxZkksWtxHF7g4bBNA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KXzDgho70jHViD2PL75G9jdCeHkEEedjoO29CypoHaK4grcLTaXetflifCqrjhR8/SoDaNLFNw5JFtYj5lPCxZjRFV7PErrwBqMGDpfjsE/a52tQ+qUKTQ7eZTh1xentYHAb0XXWekrI9oAMvCU7HTTdvrEeypwbnSA2ZeIYFudqD1VmCqv1tBGEpKsqZgJ1YHq7bKMq2QhmuYLjrOAWifQDMhy23CZ/LJzz0mVxSK8RyRMRoIq80D4tTvPfQzEzupvPg8gTKcDbz4JeKw+DiXNGkItfnMz1jEMrGiG4GuqoIgKRxTLFzJguidykZ6G80l6mJUT0nOqkWPX5BVp2AQ==
  • Delivered-to: kanto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/kanto-dev/>
  • List-help: <mailto:kanto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/kanto-dev>, <mailto:kanto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/kanto-dev>, <mailto:kanto-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHakXT4f/64DrW5sEGygIwGa8xMx7Ft2TDrgAFIDbiAAAFxJoAGKonPgACHBpGAAW3+hoAH8hXrgA35H/GAABv5qoAADxct
  • Thread-topic: Kanto Getting Started Clarification
  • Undefined: 3

Hi Dimitrov/Kanto Team,

Yes. local-digital-twins and software-update services are running and suite-connector service is stopped.

Running mosquitto_pub -t edge/thing/request -m "".
The response in mosquitto_sub -t "#" -v:

I can now do software update.. 😄 😄
The issue is in my correlation-id.
I used this correlation id to the mqtt message (underlined with red).

My question is where should I get the command (underlined with blue)?
Is this a correlation-id?

Thank you so much for your patience Sweat grinningSweat grinningSweat grinningSweat grinning

Best Regards, 

 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 08 May 2024 7:10 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Eduleen,

I am not sure what the problem is, here are some checks that could be done:
  • the local-digital-twins and software-update services are running
  • the suite-connector service is stopped
  • issue command - mosquitto_pub -t edge/thing/request -m "", and check what device response( you get in the mosquitto_sub terminal, should be like edge/thing/response {"deviceId":"ftp03:device","tenantId":"ftp03"}
  • the /var/log/software-update/software-update.log for errors

Best regards,

Dimitar Dimitrov

(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx 


From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Wednesday, May 8, 2024 13:30
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Dimitrov/Kanto Team,

When I ran mosquitto_sub -t "#" -v command.
I got an error running mosquitto_sub.
I installed it first using apt install mosquitto-clients.

Running mosquitto_sub -t "#" -v command:

I saved the template message in a bash file.

When I ran the bash file:

The response from other window is:

But I observed that it did not download and run install.sh.

Did I miss something in my steps or setup? Sweat grinning

Your guidance is highly appreciated.

Thank you, 

 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928



From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 29 April 2024 8:50 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Eduleen,

Yeah, this is the expected result. In the value field of the text/json is the digital twin representation of your device as Eclipse Ditto things and features.

The architecture of Kanto is as follows, there are suite/aws/azure connector which receive messages from the cloud and then those messages are routed to other Kanto and customer components through a local MQTT broker. So, you should host your own Hono instance(there is no progress on the Hono Sandbox certificate issue), switch to AWS or Azure, or skip the remote connection and send messages directly to the local MQTT broker.

The last alternative is the fastest way to try out the software updates. You can use  '$ mosquitto_sub -t "#" -v' command to follow the local MQTT messages and in another terminal, you can publish a software update message. There is a message template in hono_command_su.py. Adjusted to the device from the screenshot you send, the command should be:
$ mosquitto_pub -t command///req/e58e52ff-4860-41e2-8dec-2495325e19c0/install -m '{
    "topic": "ftp03/device/things/live/messages/install",
    "headers": {
        "content-type": "application/json",
        "correlation-id": "b76e1d2f-7fff-4b48-9648-05ce6d34620f",
        "response-required": true
    },
    "path": "/features/SoftwareUpdatable/inbox/messages/install",
    "value": {
        "softwareModules": [{
            "softwareModule": {
                "name": "install-hello",
                "version": "1.0.0"
            },
            "artifacts": [{
                "checksums": {
                    "SHA256": "db954c633393c1402f145a60fd58d312f5af96ce49422fcfd6ce42a3c4cceeca"
                },
                "download": {
                    "HTTPS": {
                        "url": "https://github.com/eclipse-kanto/kanto/raw/main/quickstart/install_hello.sh"
                    }
                },
                "filename": "install.sh",
                "size": 544
            }]
        }],
        "correlationId": "b76e1d2f-7fff-4b48-9648-05ce6d34620f"
    }
}'

Best regards,

Dimitar Dimitrov

(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx 


From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Wednesday, April 24, 2024 13:35
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Dimitrov/Kanto team,

After adding the steps you've mentioned, it returned a bunch of text 😄.
I guess this is the expected result?

My next question is how to run software update without eclipse hono?

I followed the guide but it seems like connecting to eclipse hono is required.

Your guidance is highly appreciated.

Thank you, 

 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 23 April 2024 8:59 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Eduleen,

I just got through the steps of the guide on a clear system, and I was surprised to get the same result as you - no result. After a quick investigation, I found out that you should do one additional step as the /var/lib/local-digital-twins is not created automatically by the local-digital-twins service. The following commands should fix the problem and the structure of the digital twins should be displayed upon python script execution:
   $ mkdir /var/lib/local-digital-twins
   $ systemctl restart local-digital-twins.service
   $ python3 hono_commands_ldt.py -t demo -d demo:device
I am sorry that you wasted some of your time due to this mistake. The creation of the thingsDB directory will be fixed in the local-digital-twins service.

Best regards,

Dimitar Dimitrov

(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx 

From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Tuesday, April 23, 2024 15:18
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Dimitrov/Kanto team,

We are interested in Software update and Container management features of eclipse kanto.

Thank you for pointing me to how-to-guides/Offline explore edge device. 🙂
I'm following the steps. However, I'm not sure if the results are correct.

Here are the steps I've done.
  1. Install dependencies:
    $ sudo apt install -y wget curl git python3 python3-pip
  2. Install containerd:
  3. Install eclipse kanto:
    $ sudo apt install ./kanto_0.1.0-M3_linux_x86_64.deb
    * There is a note after installation:
      -
  4. Check if eclipse kanto components are running:
    $ systemctl status suite-connector.service container-management.service software-update.service file-upload.service file-backup.service system-metrics.service local-digital-twins.service suite-bootstrapping.service
    - Everything behaves as expected. Only local-digital-twins.service and suite-bootstrapping.service are inactive.
  5. Install requirements:
    $ pip3 install -r requirements.txt
    * Cannot install due to this note:
      - octe: If you believe this is a mistake, please contact Python installation or OS distribution provider. You can override this, 
the risk of breaking Python installation or OS, by passing - -break-system-packages. 
hint: See PEP 668 for the detailed specification. 
at
    * I added --break-system-packages to successfully install.
      - Successfully built python-qpid- paho-rnqtt 
Installing collected packages: python-qpid- paho-rnqtt 
Successfully installed paho-rnqtt-I.6.I python-qpid-proton-a.36.a
  6. Stop suite-connector.service:
    $ sudo systemctl stop suite-connector.service
  7. Download offline exploration python script:
  8. Configure Local digital twin config file /etc/local-digital-twins/config.json:

    {

        "logFile": "/var/log/local-digital-twins/local-digital-twins.log",

        "caCert": "/etc/local-digital-twins/iothub.crt",

        "thingsDb": "/var/lib/local-digital-twins/thing.db",

        "tenantId": "demo",

        "deviceId": "demo:device",

        "authId": "demo_device",

        "password": "secret"

      }

  9. Start and display status of local-digital-twins.service:
    $ sudo systemctl start local-digital-twins.service
    $ systemctl status local-digital-twins.service
    - systemctl status local-digital-twins.service 
local-digital-twins.service - 
Eclipse Kanto - Local Digital Twins 
Loaded 
Active: 
Docs 
main PID: 
Tasks: 
Merrory 
CGmJup 
23 19:14 
loaded ('etc/ systemd/systern/local-digital-twins.service; disabled; preset 
active (running) since Tue 2824-84-23 19:14:42 CST; ss ago 
https //eclipse.org/kanto/docs/ 
3754 (local-digital-t) 
11 (limit: 11853) 
5.am 
/ system. slice/ local-digital-twins . service 
enabled) 
*754 /usr/bin/local-digital-twins -configFiIe / etc/ local-digital-twins/ config.json 
:42 LPpaa273217A systernd[l]: Started local-digital-twins.service - 
Eclipse Kanto - Local Digital Twins.
  10. Run hono_commands_ldt.py:
    $ python3 hono_commands_ldt.py -t demo -d demo:device
    - pythons -t demo -d derno:device 
[starting] demo local digital twins app for tenant [demo], device [derno:device] at [local host] 
[client connected] 
IL stopped] demo local digital twins app for tenant [demo], device [derno:device] at [local host]

My Questions:
  • How can I determine if my local-digital-twins setup is working?
  • Where can I find this shell mentioned in the verify output according to the guide?
  • Can I use this setup for Update software how-to-guide?

Your guidance is highly appreciated.

Thank you, 

 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 19 April 2024 2:57 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hey Eduleen Talledo,

You can go through the Offline explore edge device how-to guide, as it does not require cloud connection. 

There are also other options depending on which Kanto components you are interested in. Eg, If you want to explore the container-management, you can use kanto-cm CLI. You can type kanto-cm --help to check the possible commands. Keep in mind that commands are similar to others container management CLIs(docker, containerd).  Do you have an understanding in which Kanto components you are interested in?

Alternatively, you can use Azure/AWS cloud connectors. Even thought they are not officially released and there is no public documentation, they are functional and can be used. Kanto team could help when configuring them.

Best regards,

Dimitar Dimitrov

(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx 

From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Friday, April 19, 2024 09:27
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hi Dimitrov/Kanto team,

Thank you Dimitrov. 🙂

May I ask if do I really need to use eclipse hono to use eclipse kanto?

I'm trying to deploy eclipse kanto in my local setup (without cloud).
Is there a documentation to follow on how to do it?


Your guidance is highly appreciated.

Thank you, 
 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 18 April 2024 7:12 PM
To: kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
 
Hello Eduleen Talledo,

I have forwarded the issue to the Eclipse Hono team, as the SSL certificate of the Hono Sandbox seems to have expired. I will write back when there is feedback from the Hono team.

Best regards,

Dimitar Dimitrov

(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx 




From: kanto-dev <kanto-dev-bounces@xxxxxxxxxxx> on behalf of Eduleen Talledo via kanto-dev <kanto-dev@xxxxxxxxxxx>
Sent: Thursday, April 18, 2024 12:53
To: kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; Son Dao Thanh <SonDT1@xxxxxxx>
Subject: [kanto-dev] Kanto Getting Started Clarification
 
Hi Kanto Team,

We are investigating if its possible and how can we integrate eclipse kanto in our sdv project.

May I ask for guidance about how to use kanto?

I've been following the kanto getting started guide.
However, I got an error when running hono_provisioning.sh.

This is my hono_provisioning.sh file.

Did I miss something while setting up the host OS(Debian 12)? 🙂

Your guidance is highly appreciated.

Thank you, 
 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


***********************************************************************
IMPORTANT NOTICE
From May 1st, 2023, FPT Software will officially use only one email domain named @fpt.com. Exchanges sent to @fsoft.com.vn will be automatically transferred to this new domain.
This email may contain confidential and/ or privileged information that belongs to FPT Software. If you are not the intended recipient or might have received this email by accident from an unreliable source, please notify the sender from FPT Software immediately and destroy this email. Keep in mind that any unauthorized copying, editing, disclosure or distribution of the material in this email is strictly forbidden, plus against the law by which FPT Software and involved clients abide.

Back to the top