Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

How to connect Eclipse and raspberry

$
0
0

Hi all,


asitissome time agowritingmy last blog I thoughtitwouldbe a goodthing, tosharesomethinginterestingfortheholidays.


So I'm not goingtosharesomegoodthoughtsorwhatthepastyearhasbroughttousortome.

Thathavedone a lotofotherand I don'thavetoaddtothoseblogs a thing. So whatisthisblogabout. I bought a raspberry a fewweeksagoandstartedtouseitwith different tutorials.

As I learnedthisyear at sitmucthat a lotofusdon'ttakethe time tobuildtoolorbettergetusedtothetoolsto handle things in an easy way. At that time I was a bitskepticalaboutthisfact, but the last few weeks I recognized that this is also true for me.


I was so fascinated of my new playable raspberry with all the sensors and other things plugged in, that I really ignored the fact, that Putty is a nice Tool to connect remote systems in an easy way but is a terrible editor.


Luckily I recognized it some weeks later and started to use Eclipse. As you might know I'm really addicted to it and why not have all together in one place.  It's not just awesome for ABAP, refactoring and ....ok, that's offtopic...

Inserting image...

Today I want to show you how to connect your raspberry to your eclipse installation and additional to that share with you the python-plugin to have the coding presented in a way you want.



Prerequisite:

You have a Eclipse-Installation running (No, have a look here: https://eclipse.org/ )



Let's start with connecting the device:



  1. Open "Window" -> "Open Perspective" -> "Other..."

Image

  1. Choose "Remote System Explorer"
  2. Open "File" -> "New" -> "Other..."
  3. Choose "Remote System Explorer" -> "Connection"
  4. Set up remote connection type
  5. Click "Linux" -->Next
  6. Chooseyourentryyoumadebefore in step "Add yourraspberry" and type in a name->Next
    1. FILES  Click ssh-files at thewindow "Configuration" -->Next
    2. PROCESSES Click processes.shell.linux at thewindow "Configuration" -->Next
    3. SHELLS Click ssh.shells at thewindow "Configuration" --> Next
    4. SSH TERMINALS  Click ssh-terminals at thewindow "Configuration --> Finish
      Nowyoushouldsee at yourlefthandsideyourcreatedconnection
  7. Rightclick on thenameandgotoproperties (Shortcut ALT+Enter:-) )
    1. Lefthandsideclick on host andyoucanaddthe Default User ID. I thinkmostofususes "pi" asshown

 

Nowyourgoodtogoandcanconnecttoyourraspberry via eclipseand browse thefiles.

Image

Next I will try to connect my eclipse to cross-debug on my raspberry. This will take a while cause of different reasons.

So that's it. Maybeit's just me, but I hadmyproblemstostartwithitanddidn't find agooddocumentwhichleadmethroughthewholeprocess.


RightnowI'mdivingintothehttps://github.com/SAP/iot-starterkitandtakemynextsteps (That is also the reason why I posted it in this space).


I'mprettysure I will gettothepoint I needdebuggingcauseof a biggerproject. After I havefiguredit out I will get back hereand also sharethissetupwithyou.


Ifsomeoneofyouhave a runningsetupand a guidehowtogetthere I also would like tosee a blogoreven a link:-)


Cheers

Florian


BTW: I also installed the python-plugin to have a good looking code in front of me.


Viewing all articles
Browse latest Browse all 3285

Trending Articles