{"id":72,"date":"2017-11-14T12:08:34","date_gmt":"2017-11-14T11:08:34","guid":{"rendered":"http:\/\/people.unipi.it\/giacomo_tanganelli\/?page_id=72"},"modified":"2017-11-14T12:12:53","modified_gmt":"2017-11-14T11:12:53","slug":"om2m-configuration","status":"publish","type":"page","link":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/","title":{"rendered":"OM2M Configuration"},"content":{"rendered":"<h1 id=\"server-in-cse-configuration\">Server (IN-CSE) configuration<\/h1>\n<ul>\n<li>Go to the IN-CSE product directory:<\/li>\n<\/ul>\n<div class=\"language-bash highlighter-rouge\">\n<pre class=\"highlight\"><code><span class=\"gp\">$ <\/span><span class=\"nb\">cd<\/span> <span class=\"nv\">$HOME<\/span>\/git\/om2m\/org.eclipse.om2m\/org.eclipse.om2m.site.in-cse\/target\/products\/in-cse\/&lt;os&gt;\/&lt;ws&gt;\/&lt;arch&gt;\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Edit the file\u00a0<code class=\"highlighter-rouge\">configuration\/config.ini<\/code>\u00a0to configure the IN-CSE.\u00a0<strong>(You can keep the current configuration for a local demo)<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>org.eclipse.om2m.cseType<\/td>\n<td>CSE type<\/td>\n<td>IN<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseAddress<\/td>\n<td>IN-CSE ip address<\/td>\n<td>127.0.0.1<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.equinox.http.jetty.http.port<\/td>\n<td>IN-CSE HTTP listening port<\/td>\n<td>8080<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.coap.port<\/td>\n<td>IN-CSE CoAP listening port<\/td>\n<td>5683<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseContext<\/td>\n<td>IN-CSE listening context<\/td>\n<td>\/<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbDriver<\/td>\n<td>IN-CSE Database driver<\/td>\n<td>org.h2.Driver<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbUrl<\/td>\n<td>IN-CSE Database file location<\/td>\n<td>jdbc:h2:.\/database\/nscdb<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbUser<\/td>\n<td>IN-CSE Database user name<\/td>\n<td>om2m<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbPassword<\/td>\n<td>IN-CSE Database password<\/td>\n<td>om2m<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbReset<\/td>\n<td>IN-CSE Database reset when starting<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseId<\/td>\n<td>IN-CSE CseBase resource id<\/td>\n<td>in-cse<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseName<\/td>\n<td>IN-CSE CseBase resource name<\/td>\n<td>in-name<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseProtocol.default<\/td>\n<td>IN-CSE Default communication protocol<\/td>\n<td>http<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.maxNrOfInstances<\/td>\n<td>Maximum number of content instances in a Container<\/td>\n<td>1000<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.adminRequestingEntity<\/td>\n<td>IN-CSE Default admin requesting entity. (username \/ password)<\/td>\n<td>admin:admin<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.guestRequestingEntity<\/td>\n<td>IN-CSE Default guest requesting entity. (username \/ password)<\/td>\n<td>guest:guest<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"gateway-mn-cse-configuration\">Gateway (MN-CSE) configuration<\/h1>\n<ul>\n<li>Go to the MN-CSE product directory:<\/li>\n<\/ul>\n<div class=\"language-bash highlighter-rouge\">\n<pre class=\"highlight\"><code><span class=\"gp\">$ <\/span><span class=\"nb\">cd<\/span> <span class=\"nv\">$HOME<\/span>\/git\/om2m\/org.eclipse.om2m\/org.eclipse.om2m.site.mn-cse\/target\/products\/mn-cse\/&lt;os&gt;\/&lt;ws&gt;\/&lt;arch&gt;\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Edit the file\u00a0<code class=\"highlighter-rouge\">configuration\/config.ini<\/code>\u00a0to configure the MN-CSE.\u00a0<strong>(You can keep the current configuration for a local demo)<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>org.eclipse.om2m.cseType<\/td>\n<td>CSE type<\/td>\n<td>MN<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseAddress<\/td>\n<td>MN-CSE ip address<\/td>\n<td>127.0.0.1<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.equinox.http.jetty.http.port<\/td>\n<td>MN-CSE HTTP listening port<\/td>\n<td><strong>8181<\/strong><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.coap.port<\/td>\n<td>MN-CSE CoAP listening port<\/td>\n<td><strong>5684<\/strong><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseContext<\/td>\n<td>MN-CSE listening context<\/td>\n<td>\/<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbDriver<\/td>\n<td>MN-CSE Database driver<\/td>\n<td>org.h2.Driver<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbUrl<\/td>\n<td>MN-CSE Database file location<\/td>\n<td><strong>jdbc:h2:.\/database\/mncsedb<\/strong><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbUser<\/td>\n<td>MN-CSE Database user name<\/td>\n<td>om2m<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbPassword<\/td>\n<td>MN-CSE Database password<\/td>\n<td>om2m<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.dbReset<\/td>\n<td>MN-CSE Database reset when starting<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseId<\/td>\n<td>MN-CSE CseBase resource id<\/td>\n<td><strong>mn-cse<\/strong><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseName<\/td>\n<td>MN-CSE CseBase resource name<\/td>\n<td><strong>mn-name<\/strong><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.cseBaseProtocol.default<\/td>\n<td>MN-CSE Default communication protocol<\/td>\n<td>http<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.maxNrOfInstances<\/td>\n<td>Maximum number of content instances in a Container<\/td>\n<td>1000<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.adminRequestingEntity<\/td>\n<td>MN-CSE Default admin requesting entity. (username \/ password)<\/td>\n<td>admin:admin<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.guestRequestingEntity<\/td>\n<td>MN-CSE Default guest requesting entity. (username \/ password)<\/td>\n<td>guest:guest<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>to specify the remote IN-CSE to which the MN should be authenticated in the same file:<\/p>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>org.eclipse.om2m.remoteCseId<\/td>\n<td>Remote MN Id<\/td>\n<td>in-cse<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.remoteCseBaseName<\/td>\n<td>in-name<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.remoteCseAddress<\/td>\n<td>Remote MN ip address<\/td>\n<td>127.0.0.1<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.remoteCsePort<\/td>\n<td>Remote MN listening port<\/td>\n<td>8080<\/td>\n<\/tr>\n<tr>\n<td>org.eclipse.om2m.remoteCseContext<\/td>\n<td>Remote MN listening context<\/td>\n<td>\/<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>You can configure MN-CSE and IN-CSE to work on distributed machines.<\/li>\n<li>You can configure multiple MN-CSEs by setting different identifiers.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Server (IN-CSE) configuration Go to the IN-CSE product directory: $ cd $HOME\/git\/om2m\/org.eclipse.om2m\/org.eclipse.om2m.site.in-cse\/target\/products\/in-cse\/&lt;os&gt;\/&lt;ws&gt;\/&lt;arch&gt; Edit the file\u00a0configuration\/config.ini\u00a0to configure the IN-CSE.\u00a0(You can keep&hellip;<\/p>\n<p><a class=\"btn btn-dark btn-sm unipi-read-more-link\" href=\"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":450,"featured_media":0,"parent":80,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-72","page","type-page","status-publish","hentry"],"acf":[],"featured_image_src":null,"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OM2M Configuration - Giacomo Tanganelli<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OM2M Configuration - Giacomo Tanganelli\" \/>\n<meta property=\"og:description\" content=\"Server (IN-CSE) configuration Go to the IN-CSE product directory: $ cd $HOME\/git\/om2m\/org.eclipse.om2m\/org.eclipse.om2m.site.in-cse\/target\/products\/in-cse\/&lt;os&gt;\/&lt;ws&gt;\/&lt;arch&gt; Edit the file\u00a0configuration\/config.ini\u00a0to configure the IN-CSE.\u00a0(You can keep&hellip;Read More...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/\" \/>\n<meta property=\"og:site_name\" content=\"Giacomo Tanganelli\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-14T11:12:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/om2m-configuration\\\/\",\"url\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/om2m-configuration\\\/\",\"name\":\"OM2M Configuration - Giacomo Tanganelli\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/#website\"},\"datePublished\":\"2017-11-14T11:08:34+00:00\",\"dateModified\":\"2017-11-14T11:12:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/om2m-configuration\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/om2m-configuration\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/om2m-configuration\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Teaching\",\"item\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OM2M\",\"item\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/teaching\\\/om2m\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"OM2M Configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/#website\",\"url\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/\",\"name\":\"Giacomo Tanganelli\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/people.unipi.it\\\/giacomo_tanganelli\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OM2M Configuration - Giacomo Tanganelli","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/","og_locale":"en_US","og_type":"article","og_title":"OM2M Configuration - Giacomo Tanganelli","og_description":"Server (IN-CSE) configuration Go to the IN-CSE product directory: $ cd $HOME\/git\/om2m\/org.eclipse.om2m\/org.eclipse.om2m.site.in-cse\/target\/products\/in-cse\/&lt;os&gt;\/&lt;ws&gt;\/&lt;arch&gt; Edit the file\u00a0configuration\/config.ini\u00a0to configure the IN-CSE.\u00a0(You can keep&hellip;Read More...","og_url":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/","og_site_name":"Giacomo Tanganelli","article_modified_time":"2017-11-14T11:12:53+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/","url":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/","name":"OM2M Configuration - Giacomo Tanganelli","isPartOf":{"@id":"https:\/\/people.unipi.it\/giacomo_tanganelli\/#website"},"datePublished":"2017-11-14T11:08:34+00:00","dateModified":"2017-11-14T11:12:53+00:00","breadcrumb":{"@id":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/om2m-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/people.unipi.it\/giacomo_tanganelli\/"},{"@type":"ListItem","position":2,"name":"Teaching","item":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/"},{"@type":"ListItem","position":3,"name":"OM2M","item":"https:\/\/people.unipi.it\/giacomo_tanganelli\/teaching\/om2m\/"},{"@type":"ListItem","position":4,"name":"OM2M Configuration"}]},{"@type":"WebSite","@id":"https:\/\/people.unipi.it\/giacomo_tanganelli\/#website","url":"https:\/\/people.unipi.it\/giacomo_tanganelli\/","name":"Giacomo Tanganelli","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/people.unipi.it\/giacomo_tanganelli\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/pages\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/users\/450"}],"replies":[{"embeddable":true,"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":2,"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/pages\/72\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/pages\/72\/revisions\/75"}],"up":[{"embeddable":true,"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/pages\/80"}],"wp:attachment":[{"href":"https:\/\/people.unipi.it\/giacomo_tanganelli\/wp-json\/wp\/v2\/media?parent=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}