Skip to content

Latest commit

 

History

History
67 lines (66 loc) · 2.49 KB

STEPBYSTEP.md

File metadata and controls

67 lines (66 loc) · 2.49 KB
  1. Download Atom Editor (download)
    • Version 1.37.0 or lower
    • Windows: AtomSetup-x64.exe
    • Linux: atom-amd64.deb
  2. Install Atom Editor
    • Windows: run setup
    • Linux:
      sudo dpkg -i atom-amd64.deb
      sudo apt install -f
  3. Start Atom Editor
  4. Open Install Package
    • Enter pymakr in search field
    • Install pymakr
  5. Connect Device via USB
    • watch console window in Atom to see it worked
  6. Download Pycom Upgrader (download)
  7. Download UBIRCH Pycom Firmware (download)
    • select the correct firmware for your device (WiPy, Lopy4, GPy, ...)
  8. CLOSE ATOM or DISCONNECT DEVICE
  9. Run Pycom Upgrader and Flash Firmware
    • select flash from file and use downloaded file from step 6.
  10. Start Atom Editor or CONNECT DEVICE
  11. Download example firmware
    • Menu View -> Toggle Command Palette
    • Enter git clone and press return
    • Paste https://github.com/ubirch/example-micropython and clone it
  12. Create a file boot.json in the src directory
    {
      "networks": {
        "<NETWORK NAME>": "<PASSWORD FOR NETWORK>"
      },
      "timeout": 5000,
      "retries": 10
    }
  13. Create a file settings.json in the src directory
    {
        "type": "pysense",
        "bootstrap": {
            "authorization": "Basic <ASK>",
            "tenant": "ubirch",
            "host": "management.cumulocity.com"
        },
        "interval": 60
    }
  14. Press UPLOAD just above the console window in Atom
  15. Wait for all files to upload until you see a UUID : XXXX output, copy the UUID!
  16. Visit https://ubirch.cumulocity.com
  17. Login with the credentials you have created after your invitation mail!
  18. Select the nine-dots menu (top right) and select Device Management
  19. Click on menu Devices (left) and click on Registration
  20. Click on Register Device and manually add your device entering the UUID copied in step 14
    • also select Pycom as group
  21. Reset the pycom device (button next to RGB LED)
  22. Wait in Cumulocity for your device until an Accept button appears!
  23. Click Accept
  24. Select nine-dots menu (top right) and select Cockpit
  25. Select Groups (left) and click Pycom group
  26. Find your device (check last 4 characters from UUID)
  27. Select Data Explorer and add Data points in right panel

ENJOY!