Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Soneca-ii
    @Soneca-ii
    Hi, a quick question. If creating an iotivity-lite server with CLOUD=1 ( secure and pki also) and placing the certificate from the PLGD I manage to onboard the device. Is there some workflow that I can do the same with an iotivity-lite server created with CLOUD=0 and configure it during the onboard?
    Ondrej Tomcik
    @ondrejtomcik
    @Soneca-ii do you mean with plgd mobile app? CLOUD=0 has nothing to do with ownership transfer. It enables capability to onboard device to the cloud.
    Wouter van der Beek
    @WAvdBeek
    Hi Ondrej, the onboarding securely to the cloud now works.. I tried it out with a fresh instance of docker & device and it worked seamlessly!
    i can now control the device securely from the cloud.
    the app can't control the device?
    Ondrej Tomcik
    @ondrejtomcik
    Hey @WAvdBeek
    No, the application is just transfering the ownership to the authenticated user and setting the coapcloudconf resource. The API of the plgd.mobile supports it, but UI would have to be developed. To have at least easy onboarding we did this simple one button plgd app :)
    Wouter van der Beek
    @WAvdBeek
    Ok thanks, I hoped I missed something. I agree that the app is simple and works correctly and simple for onboarding.
    the issue that i have now is that I have to onboard devices that are talking to the cloud proxy, hence I need an OBT that does cloud setup and onboarding.. reading the email of Kishen that does not yet exist. So i will add that code in the iotivity OBT (commandline).
    to make this work I need to have the data to onboard the plgd cloud, e.g. what is the security information (I only supplied the unsecure info as work around in the device that talks to the plgd cloud)
    Ondrej Tomcik
    @ondrejtomcik
    @WAvdBeek could you please describe the flow, what needs to be done to onboard devices that are talking to the cloud proxy? How are these devices discovered? Are they onboarded separately or is it enough to onboard cloud proxy itself?
    I didn’t track this topic in the OCF, so feel free to point me to some sequence diagram in the KAVI.
    Wouter van der Beek
    @WAvdBeek
    It is CR2599
    the cloud proxy (my own code, not yet released) can be onboarded to plgd with plgd app.
    the issue is then that the client of the cloud proxy that talks to the OCF devices needs to be configured, hence the plgd app is not doing that.
    reading Kishens email (you are cc'ed) Kishen indicates that this code does not yet exists.
    Ondrej Tomcik
    @ondrejtomcik

    You could extend mobile app, or write your own console app which does the same as mobile app + additional required requests. It's fairly simple, but not sure if you want to use our OCF CoAP Client.

    This is the library (for now we call it SDK but it will be sooner or later renamed) - https://github.com/plgd-dev/sdk
    and here is the simple client using that SDK, which methods are invoked by the mobile app.
    https://github.com/plgd-dev/plgd.mobile/blob/master/ocfclient/OCFClient.go

    Soneca-ii
    @Soneca-ii
    @ondrejtomcik Hi, thanks for the answer. Sorry for the late reply but had some trouble with the local setup. I have successfully connected the cloud device (non-secure and secured). Meantime I have another question, could you please share some example where it would be possible to use cloud2cloud between two PLGD bundle deployments? Is this even possible using the test bundle provided?
    Ondrej Tomcik
    @ondrejtomcik
    @Soneca-ii Hello. C2C is not part of the bundle. Currently the priority is pretty low to include it there as we are working on another topics.If you want to speed it up rapidly, you can contribute or we can assign one developer to this task, but this would be considered as paid support.
    Ondrej Tomcik
    @ondrejtomcik
    @WAvdBeek are you around?
    Wouter van der Beek
    @WAvdBeek
    Hi Ondrej, i am around, but not working on this right now.
    I have created the mediator in lite (obt) as preliminary code. however I still have issues with having the correct access and something else is wrong (e.g. code crashes)
    does the go code work somehow in command line mode? adapting the android app is currently too much work to proof that the full chain : local device - cloud proxy - plgd can be set up. we know that all individual components already can be set up.
    Ondrej Tomcik
    @ondrejtomcik
    @WAvdBeek have a different topic. IoTivity Lite MRs. Any idea when somebody will find some time to review them?
    @WAvdBeek small wrapping in main will make it running in console.
    Wouter van der Beek
    @WAvdBeek
    hopefully next week, I have asked Kishen to find time tomorrow to release 2.2.2. that will unblock quite a bit of that backlog.
    if we merge now, then we need to do a full run of CTT tests again, hence there is order involved to avoid creating work.
    David Márquez Fàbrega
    @DavidMarquezF
    Hello, I'm starting to develop an app and was looking at using plgd with the esp32. I set the OC_DEBUG flag in order to see if I could find any information on why PKI certificates were not working. However, once I turned on OC_DEBUG, the plgd mobile phone app couldn't discover the device (while the OTGC app did). Could it have something to do with timeouts (since while debugging it's writing a lot of stuff in the serial port, so it wastes more time) or do you think it's something else?
    Ondrej Tomcik
    @ondrejtomcik
    @DavidMarquezF are you sure your device didn't crash due to insufficient memory? I doubt default ESP32 is able to run with OC_DEBUG unless you installed additional PSRAM.
    Discovery is in the mobile app hardcoded to 5seconds - https://github.com/plgd-dev/plgd.mobile/blob/master/lib/services/ocfClient.dart#L87 .
    What you can try is to build a simple go client to call the discovery on your own with bigger timeout.
    This can help you. Just create your own go file and do some copypasting.
    https://github.com/plgd-dev/plgd.mobile/blob/master/ocfclient/OCFClient.go#L29-L87
    Wouter van der Beek
    @WAvdBeek
    Ondrej are you using https://hub.docker.com/u/ocfcloud user id for pldg?
    Ondrej Tomcik
    @ondrejtomcik
    we used ocfcloud org on the dockerhub 7months ago. But not anymore.
    David Márquez Fàbrega
    @DavidMarquezF
    @ondrejtomcik Thanks for the info, i'll give it a try. It does crash, but it did already before turning DEBUG it on (when onboarding with PKI certificates). I'm trying to find out the reason why
    Ondrej Tomcik
    @ondrejtomcik
    @DavidMarquezF Try to log your heapsize; or disable reboot when the heap is fully consumed.
    David Márquez Fàbrega
    @DavidMarquezF
    Yup, done that, it has 136964bytes of memory and then it just crashes with LoadProhibited error (it looks like oc_server_api.c tries to access request->response and its null)
    Ondrej Tomcik
    @ondrejtomcik
    @WAvdBeek are you around please? Would need some support with device builder :)
    Wouter van der Beek
    @WAvdBeek
    i am now... what needs to be added?
    Ondrej Tomcik
    @ondrejtomcik
    wrote you private message.
    Martin Eliáš
    @melias122
    Hey guys, let me know if I can help with some small tasks.
    Ondrej Tomcik
    @ondrejtomcik
    Hello Martin :) Do you have experience with the MongoDB?
    Martin Eliáš
    @melias122
    I know just basics, what is the problem?
    Ondrej Tomcik
    @ondrejtomcik
    @melias122 sorry Martin, had a busy morning. Okay, so let’s skip MongoDB. @Trishia started to refactor our configuration to yaml files from env variables. Tests needs to be adapted and it needs to be rebased to current v2. Would you be interested in this? You would co-author Trishias work.
    Wouter van der Beek
    @WAvdBeek
    about: This is the library (for now we call it SDK but it will be sooner or later renamed) - https://github.com/plgd-dev/sdk
    and here is the simple client using that SDK, which methods are invoked by the mobile app.
    https://github.com/plgd-dev/plgd.mobile/blob/master/ocfclient/OCFClient.go
    I have now written a mediator, what info need I to pass to coapcloudconfig resource to talk securely to the local plgd cloud?
    Ondrej Tomcik
    @ondrejtomcik
    @melias122 or deletion of devices would be perfect. In the authorization service, new endpoint to delete user device and handle this action also in gateways - disconnect the tcp connection for the device. (Very briefly explained)
    @WAvdBeek are you using secure or unsecure device?
    Wouter van der Beek
    @WAvdBeek
    secure devices
    Wouter van der Beek
    @WAvdBeek
    test
    plgd
    coaps+tcp://192.168.178.85:8443
    00000000-0000-0000-0000-000000000001
    and then the callback indicates failure of the registration.
    ok at least the mediator that I have coded up is now working.