Changes

507 bytes removed ,  07:18, 3 September 2020
no edit summary
Line 1: Line 1: −
[[File:cum.png|right|160px]]
+
#REDIRECT [[Cumulocity Configuration]]
The '''Cumulocity''' is now compatible with RUT routers.
+
The '''Cumulocity''' is now compatible with Teltonika RUT routers.
 
==Description==
 
==Description==
    
Cumulocity is the leading independent Device and Application Management Internet of Things (IoT) Platform since 2010. Our Internet of Things Platform connects and manages your machines effortlessly, so you can focus on your business's value adding activities.
 
Cumulocity is the leading independent Device and Application Management Internet of Things (IoT) Platform since 2010. Our Internet of Things Platform connects and manages your machines effortlessly, so you can focus on your business's value adding activities.
  −
{{Template: trademark disclaimer}}
      
==Summary==
 
==Summary==
Line 30: Line 28:  
[[File:cumulocityportal.png]]
 
[[File:cumulocityportal.png]]
   −
==Preparing firmware with example application==
+
==Installing example application==
 
  −
First, you need to obtain GPL from https://teltonika-networks.com/gpl. Now you need to run “make menuconfig” command inside GPL folder.
  −
 
  −
[[File:cummakeconfig.png]]
     −
You need to add example application so it can be built. Navigate to “Network” section and select “cmstreamapp” with spacebar key. It will show “<*>” once application is added, see below:
+
First, you need to install Cumulocity. Go to System -> Package manager:
   −
[[File:cumnetworksection.png]]
+
[[File:Package manager.jpg]]
   −
Now do the same with “Luci” section,  “Applications → luci-app-iot”. This will enable to configure example package from router control panel, see below for example:
+
When you open package manager you will see a list of packages. You need click install on Cumulocity, see below:
   −
[[File:cumlucisection.png]]
     −
Everything should be ready and you can exit. Now run “make” command and firmware will appear in “bin/ar71xx/tltFws” directory. You can flash “GPL_…._WEBUI.bin” file.
+
[[File:Screenshot from 2019-11-27 16-00-24.png]]
    
==Configuring and launching example application==
 
==Configuring and launching example application==
After you successfully built and flashed firmware, in „Services“ tab there should be an option called „IoT Platforms“.  
+
After you successfully installed Cumulocity, in „Services“ tab there should be an option called „IoT Platforms“.  
    
[[File:cumiot.png]]
 
[[File:cumiot.png]]
Line 199: Line 192:     
Type - 10
 
Type - 10
 +
 
Code - 101
 
Code - 101
 +
 
Method - POST
 
Method - POST
 +
 
URL - /inventory/managedObjects
 
URL - /inventory/managedObjects
 +
 
Content Type - application/json
 
Content Type - application/json
 +
 
Accept - application/json
 
Accept - application/json
 +
 
Placeholder - %%
 
Placeholder - %%
 +
 
Params - STRING STRING
 
Params - STRING STRING
 +
 
Template - JSON
 
Template - JSON
 +
      Line 231: Line 233:     
Type - 11
 
Type - 11
 +
 
Code - 502
 
Code - 502
 +
 
Cond - <none>
 
Cond - <none>
 +
 
Value 1 - $.c8y_Restart
 
Value 1 - $.c8y_Restart
 +
 
Value 2 - $.id
 
Value 2 - $.id
 +
 
Value3 - $.deviceId
 
Value3 - $.deviceId
 +
    
Type – responses are identified by a number 11
 
Type – responses are identified by a number 11
Line 305: Line 313:  
Sending information is quite simple:
 
Sending information is quite simple:
   −
c8y:send('103,'..c8y.ID..','..DEVICE_NAME..','..DEVICE_TYPE)
+
  c8y:send('103,'..c8y.ID..','..DEVICE_NAME..','..DEVICE_TYPE)
    
By using „c8y:send“ function, first string contains request code, which was defined in the template, earlier. Then comma must appear after each value. The above line shows how we update device name and device type with our own.
 
By using „c8y:send“ function, first string contains request code, which was defined in the template, earlier. Then comma must appear after each value. The above line shows how we update device name and device type with our own.
Line 313: Line 321:  
==External Links==
 
==External Links==
 
https://www.cumulocity.com/try-for-free
 
https://www.cumulocity.com/try-for-free
 +
 
https://www.cumulocity.com/guides/reference/smartrest
 
https://www.cumulocity.com/guides/reference/smartrest
 +
 
https://bitbucket.org/m2m/cumulocity-sdk-c/downloads
 
https://bitbucket.org/m2m/cumulocity-sdk-c/downloads
       
{{Template: trademark disclaimer}}
 
{{Template: trademark disclaimer}}
 +
 +
[[Category:IoT]]

Navigation menu