Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced PlatformIO stack with couple of samples #2887

Merged
merged 3 commits into from
Nov 7, 2016
Merged

Introduced PlatformIO stack with couple of samples #2887

merged 3 commits into from
Nov 7, 2016

Conversation

skabashnyuk
Copy link
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"

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
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": ""
}
}

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
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
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

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

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

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

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

@codenvy-ci
Copy link

"tags": [
"Platformio",
"pio",
"Arduino"

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",

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

@codenvy-ci
Copy link

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

@codenvy-ci
Copy link

@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
Contributor Author

PR is ready. Please review who is interested.

@codenvy-ci
Copy link

@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