Skip to content

Introduced PlatformIO stack with couple of samples#2887

Merged
skabashnyuk merged 3 commits into
masterfrom
pio
Nov 7, 2016
Merged

Introduced PlatformIO stack with couple of samples#2887
skabashnyuk merged 3 commits into
masterfrom
pio

Conversation

@skabashnyuk
Copy link
Copy Markdown
Contributor

@skabashnyuk skabashnyuk commented Oct 25, 2016

What does this PR do?

In collaboration with @ivankravets this PR introduce integration with lead platform for embedded device development.
http://platformio.org/ It include two simple samles.

Samples usability is related to #2883

How it works.
Example: EmonTX connected to RaspberryPi3 with PlatformIO remote agent + Eclipse Che PlatformIO stack.

20161104_232141

  1. Connect EmonTX to USB To RS232 TTL Converter Adapter Module and then connect ot RaspberryPi3
  2. Install PlatformIO sudo pip install https://github.com/platformio/platformio/archive/develop.zip
  3. Login to your PIO account - pio account login
  4. Start PIO agent pio remote agent start&
  5. Go to Che dashboard and create workspace from PlatformIO stack

2016-11-04 23 33 00

6. Import emonTX firmware https://github.com/openenergymonitor/emonTxFirmware.git

2016-11-04 23 36 56

  1. Set C++ project type.
  2. Open /emonTxFirmware/emonTxV3/RFM/emonTxV3.4/emonTxV3_4_DiscreteSampling and convert it to C++ project.

2016-11-04 23 41 33

  1. Open terminal and login pio account login you need to do it once per workspace
  2. Run command Remote device list. Make sure your device is listed.

2016-11-04 23 53 49

  1. Now you can run and upload remotely. You can call this commands from menu.

2016-11-04 23 56 09

  1. After that you can track your device with serial monitor. Just enter pio remote device monitor --baud 115200

2016-11-04 23 57 57

"components": [
{
"name": "Python",
"version": "3.5.1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PlatformIO requires Python 2.7 and doesn't work with Python 3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste-error. Will change to 2.7.(correct one)

"attributes": {
"previewUrl": ""
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have here "Remote: Serial Port Monitor" mapped to pio remote device monitor command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. Will do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed. Since we not support tty in commands right now. User can enter this command from terminal. See docs.

@codenvy-ci
Copy link
Copy Markdown

Build # 794 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/794/ to view the results.

@codenvy-ci
Copy link
Copy Markdown

Build # 800 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/800/ to view the results.

@codenvy-ci
Copy link
Copy Markdown

Build # 825 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/825/ to view the results.

@codenvy-ci
Copy link
Copy Markdown

Build # 856 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/856/ to view the results.

@codenvy-ci
Copy link
Copy Markdown

@codenvy-ci
Copy link
Copy Markdown

"tags": [
"Platformio",
"pio",
"Arduino"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to add these tags:

    "PlatformIO",
    "IoT",
    "embedded",
    "arduino",
    "mbed"

{
"name": "run",
"type": "custom",
"commandLine": "cd ${current.project.path} && pio run",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified with pio run -d ${current.project.path}

@codenvy-ci
Copy link
Copy Markdown

@codenvy-ci
Copy link
Copy Markdown

Build # 900 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/900/ to view the results.

@codenvy-ci
Copy link
Copy Markdown

@codenvy-ci
Copy link
Copy Markdown

@skabashnyuk skabashnyuk changed the title [WIP] Introduced PlatformIO stack with couple of samples Introduced PlatformIO stack with couple of samples Nov 4, 2016
@skabashnyuk
Copy link
Copy Markdown
Contributor Author

PR is ready. Please review who is interested.

@codenvy-ci
Copy link
Copy Markdown

@skabashnyuk skabashnyuk merged commit aaefd28 into master Nov 7, 2016
@skabashnyuk skabashnyuk deleted the pio branch November 7, 2016 07:19
@bmicklea bmicklea added this to the 5.0.0 milestone Jan 11, 2017
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
Introduced PlatformIO stack with couple of samples
See how to use eclipse-che#2887
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants