# Unable to Register Raspberry Pi 3 B+ to Cumulocity Platform

**URL:** <https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [August 31, 2019, 5:56pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530 "2019-08-31T17:56:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manoj\_Verma](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/manoj_verma/32/19721_2.png) [@Manoj\_Verma](https://community.cumulocity.com/u/Manoj_Verma)\
**Post date:** [August 31, 2019, 5:56pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/1 "2019-08-31T17:56:23Z")

</div>

Hello,

I followed the available guidelines to register Raspberry PI to c8y platform  
[https://cumulocity.com/guides/devices/raspberry-pi/](https://cumulocity.com/guides/devices/raspberry-pi/)  
But couldn’t successfully register it. On C8Y platform the device status shows as “WAITING FOR CONNECTION”.  
Followed some forums on stackoverflow which suggested that until Raspberry Pi has some sensors attached to it the connectivity won’t activate.

Therefore, attached PIR HC-SR501 sensor to RPI and tested if the GPIO pins are working and I could get the readings successfully through a simple python program.

But to my dismay still the Cumulocity platform didn’t buzz and status stuck to “WAITING FOR CONNECTION”.

Checking system logs on RPI i could see some logs for agent trying to connect but complaining about missing properties file:

Aug 31 21:22:16 raspberrypi root: 21:22:16.540 [main] WARN c8y.lx.agent.PropUtils - Configuration file ./cfg/device.properties cannot be read, assuming empty configuration  
Aug 31 21:22:17 raspberrypi root: Unable to open SPI device: No such file or directory  
Aug 31 21:22:18 raspberrypi root: Running the Cumulocity Linux Agent…

Need help here, if i am missing any configuration or doing something wrong.

Regards,  
Manoj

---

<div class="post-metadata">

**Author:** ![Michael\_Welsing](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Michael\_Welsing](https://community.cumulocity.com/u/Michael_Welsing)\
**Post date:** [September 9, 2019, 12:55pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/2 "2019-09-09T12:55:21Z")

</div>

Hi Manoj,

sorry to hear that you have issues. Can you let me know on which tenant you try to connect the device? Also can you provide me the device log?

Cheers  
Michael

---

<div class="post-metadata">

**Author:** ![Manoj\_Verma](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/manoj_verma/32/19721_2.png) [@Manoj\_Verma](https://community.cumulocity.com/u/Manoj_Verma)\
**Post date:** [September 9, 2019, 1:21pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/3 "2019-09-09T13:21:26Z")

</div>

Hello Michael,  
Tenant I am trying to connect to is: [https://ctssagcoedev1.cumulocity.com](https://ctssagcoedev1.cumulocity.com)  
As for device logs, I am not sure how to get it. I could find system logs which i can provide again:  
Aug 31 21:22:16 raspberrypi root: 21:22:16.540 [main] WARN c8y.lx.agent.PropUtils - Configuration file ./cfg/device.properties cannot be read, assuming empty configuration  
Aug 31 21:22:17 raspberrypi root: Unable to open SPI device: No such file or directory  
Aug 31 21:22:18 raspberrypi root: Running the Cumulocity Linux Agent.

Please let me know if there exists some other logs, where i can find them, then i can share them.

Regards,  
Manoj

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 13, 2019, 1:41am UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/4 "2019-09-13T01:41:06Z")

</div>

Hi Manoj,  
I got it working on an RPi 4 recently. Including getting Apama to monitor data from Sensehat into Cumulocity.  
I had to look at logs and fix one error at a time. Create the properties file, enable SPI etc. Eventually it works.  
Cheers,  
Prithvi

---

<div class="post-metadata">

**Author:** ![Manoj\_Verma](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/manoj_verma/32/19721_2.png) [@Manoj\_Verma](https://community.cumulocity.com/u/Manoj_Verma)\
**Post date:** [September 13, 2019, 6:11am UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/5 "2019-09-13T06:11:45Z")

</div>

Thanks Prithvi for sharing it!  
I too got it working a couple of days ago. Steps I did:

1. Re-installed Raspian Buster with Desktop (Might be not relevant for all).
2. Set the JAVA\_HOME
3. Enabled SPI: [Enable SPI Interface on the Raspberry Pi - Raspberry Pi Spy](https://www.raspberrypi-spy.co.uk/2014/08/enabling-the-spi-interface-on-the-raspberry-pi/)
4. Restarted device.

Then it worked fine!

One question about SenseHeat, are you using simulator present in RPI or actual SenseHeat device.  
Please share some details around it.

Regards,  
Manoj

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 13, 2019, 7:08am UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/6 "2019-09-13T07:08:55Z")

</div>

Hi Manoj, i’m using the actual sensehat, the simulator in the OS did not work.  
Cheers,  
Prithvi

---

<div class="post-metadata">

**Author:** ![Linh\_Nguyen2](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@Linh\_Nguyen2](https://community.cumulocity.com/u/Linh_Nguyen2)\
**Post date:** [December 19, 2019, 7:49am UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/7 "2019-12-19T07:49:27Z")

</div>

Hi Manoj,  
I am still having problems to create a connection between my raspberry pi and c8m platform.  
I tried to set JAVA\_HOME but somehow it just mentioned in the syslog that c8m said that JAVA\_HOME is not set.

How did you do it in particular?

Also for the configuration of device.properties and cumulocity.properties,…  
does the host have following format: https://.cumulocity.com in cumulocity.properties?  
Also does user means the , which is also the or does it mean the registration name of the device?  
I am new to c8m and though I am a bit confused.

Looking forward for some support 🙂

---

<div class="post-metadata">

**Author:** ![Manoj\_Verma](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/manoj_verma/32/19721_2.png) [@Manoj\_Verma](https://community.cumulocity.com/u/Manoj_Verma)\
**Post date:** [December 19, 2019, 10:45am UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/8 "2019-12-19T10:45:51Z")

</div>

Hello Linh,  
You have to go to the logged in user profile home directory ~/  
Create a .profile file if it doesn’t exist.  
Then paste below command:  
export JAVA\_HOME=/location/to/java  
Save the file and then check if variable is set correctly using echo $JAVA\_HOME

Now restart your RPI and then log-in again to check if JAVA\_HOME still exist.

If all works fine then RPI should be able to connect to Cumulocity platform.

Regards,  
Manoj

---

<div class="post-metadata">

**Author:** ![Michael\_Welsing](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Michael\_Welsing](https://community.cumulocity.com/u/Michael_Welsing)\
**Post date:** [April 21, 2020, 1:57pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/9 "2020-04-21T13:57:52Z")

</div>

Hi Linh,

did Manoj tipps help?

best regards  
Michael

---

<div class="post-metadata">

**Author:** ![Linh\_Nguyen2](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@Linh\_Nguyen2](https://community.cumulocity.com/u/Linh_Nguyen2)\
**Post date:** [April 22, 2020, 1:09pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/10 "2020-04-22T13:09:12Z")

</div>

Hi,

Unfortunately it didn’t work for me.  
What worked for my was to delete the whole folder where I saved the c8y.  
Redownload everything and follow all the steps from scratch. I couldn’t figure out the problem but it worked for me that way.

Kind regards  
Linh

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 2, 2021, 3:43pm UTC](https://community.cumulocity.com/t/unable-to-register-raspberry-pi-3-b-to-cumulocity-platform/2530/11 "2021-04-02T15:43:28Z")

</div>

Closed on April 2, 2021, 3:43pm UTC


