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

How to use the latest version of Californium

Hi, 

I am trying to following the instructions at: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.iotsdk.v0.9.0%2Fiot_sdk_user_guides_java_coaps.html

but the directory paths of Californium has deviated quite a bit since this was published. Do you have some updated instructions on how to use Californium with your IoT examples?

Thanks very much. 

Parents Reply Children
  • Thanks Achim! Yup, I started to just use the Californium release to get my feet wet since as you mentioned I ran into some further issues after attempting to fix the path issue.

    I cloned the latest version of californium from github and I was able to successfully run the cf-helloworldserver example and I used Copper (Cu) google chrome extension to access the example hello world resource. This is working fine. 

    Next, I went to run cf-secure example. This seems to run fine also. But is there a way to use Copper to test this? Or I need some other tool? 

    I think it would be nice if there was some getting started guide with the latest release of californium (and preferably with Nordic Thread capable dev kits). I have further questions like where the Key store are defined and how to setup the various modes, PSK, X.509, etc. I haven't tried the californium-proxy2 but also I think this needs to be shown how to integrate with DTLS, etc.Anyway, I am trying to get some basic understanding and take the first baby steps...

  • Update: I used SecureClient.java and am able to connect to my SecureServer.java instance now, which is cool! I'm going to try and connect my nRF52840-DK to this secure server and see what happens. I'm not sure what to expect.

  • In the current 2.3.0 cf-secure example the PSK store is set in the CredentialsUtil.setupCredentials

    InMemoryPskStore pskStore = new InMemoryPskStore();
    pskStore.setKey(PSK_IDENTITY, PSK_SECRET);
    pskStore.setKey(OPEN_PSK_IDENTITY, OPEN_PSK_SECRET);
    config.setPskStore(pskStore);

    > I think it would be nice if there was some getting started guide with the latest release of californium

    Unfortunately, though not too many are actively working "on" Californium, I will not be able to write such a guide for the next release, 2.4.0 planned for Thursday, 27.8.

Related