Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: these settings are not persistent, if a hub is physically reset (reset button pushed for 10+ sec) the settings needs to be applied again

 

Summary

  1. Make sure you have putty installed https://www.putty.org/

  2. Connect your pc via ethernet to one of the black ethernet ports

  3. Copy firmware image and scp to Hub ( Frimeware image is available in the TEAMS Cobundu Sharepoint channel )

  4. Run the update

  5. Set CUPS MTUN and TC uri information

  6. Disconnect PC from ethernet cable

! whenever there is a blanc space in below instructions, please use the space in the tools described

Detailed steps

  1. Make sure you have putty installed https://www.putty.org/

  2. Connect your pc via ethernet to one of the black ethernet ports

  3. Copy firmware image and scp to Hub

    1. Open command prompt (cmd)

    2. Go to the firmware folder cd …/1.29.01/ (copy the whole path of where you have extracted the firmware; make sure to type cd + blanc + use "...")

      Image Modified
    3. type: scp  * root@192.168.66.1:/mnt/data/tracknet

      1. if you encounter an error, check 3.f (may require removing existing fingerprints from ssh file)

    4. type yes to add the ssh fingerprint to the known hosts (typing in cmd will not show, just type "yes" (even if you cannot see it) and confirm by pressing enter)

    5. Password: tracknet (typing in cmd will not show, just type "tracknet" (even if you cannot see it) and confirm by pressing enter)

...

    1. Image Added


      Wait until firmware.img has loaded to 100%

    2. Note: may require removing existing fingerprints from ssh file when encountering this error: (see step 5.a)

...

    1. Image Added
  1. Run the update

    1. open putty

    2. ssh into the unit (ssh root@192.168.66.1): enter "192.168.66.1" in the Host Name field and press "Open" button

...

    1. Image Added
    2. if below warning pops-up, accept

...

    1. Image Added
    2. login as root

    3. Password:tracknet

...

    1. Image Added
    2. cd /mnt/data/tracknet

...

    1. Image Added
    2. make file executable "chmod +x doupdate.sh"

      Image Modified
    3. Run "./doupdate.sh"

...

    1. Image Added
    2. (device will run the update and reboot) = "Network Error: Software caused connection abort"

...

    1. close cmd and putty

  1. Set CUPS MTUN and TC uri information

    1. Remove the ssh fingerprint from your pcs config file

      1. Go to the .ssh folder of your user

...

      1. Image Added
      2. Open the known_hosts file

      3. Delete the record for the hub (line starting with 192.168.66.1)

      4. Save the file

    1. Open command prompt (cmd)

    2. Go to the bootstrap folder cd …/bootstrap/

      Image Modified
    3. scp  * root@192.168.66.1:/etc

    4. type yes to add the ssh fingerprint to the known hosts

    5. Password: tracknet

    6. open putty

    7. ssh into the unit (ssh root@192.168.66.1)

    8. Edit file (nano /mnt/data/config/mfg)

...

    1. Image Added


      this will open below screen

...

    1. Image Added

      1. Modify tcuri to 

        1. EU: 'ws://spacewell.eu1.cloud.thethings.industries:7000'

        2. US: 'ws://spacewell.nam1.cloud.thethings.industries:7000'
          (mind that in Putty, you can only move with your arrow keys (as if you don't have a mouse) and not use your number pad)

      2. Remove option cupsuri 'https://cups2.trackio.ch:8888'

      3. Save and exit the file (ctrl + x)

    2. Edit file (nano /mnt/data/config/reverse-ssh)

...

    1. Image Added

      1. Modify server to 'mtun.cobundu.com'

      2. Save and exit the file (ctrl + x)

    2. Edit file (nano /etc/init.d/mtuns)

...

    1. Image Added
      1. In the last line of the start() { } block add the following line (you might have to use the arrows to scroll down if not immediately visible; use ctrl+right click to paste into putty; make sure the text starts 4 spaces indented):
        /usr/bin/mtuns mtun.cobundu.com $HWMODEL-$MTUNID.gw.cobundu.com 22

      2. Save and exit the file (ctrl + x)

    2. Edit file (nano /etc/dropbear/authorized_keys)  → (NOTE: if there is no file “authorized_keys” in /etc/dropbear or even an /etc/dropbear directory, use /mnt/data/s2/idu/etc/dropbear instead)

...

    1. Image Added

      1. Go back to the Migration file in Windows Explorer. Copy the contents of the id_cobundu.pub to the second line of this file (paste = shift + insert or use ctrl+right click to paste into putty); even though you're still at the beginning of the 1st line, the pasted line will jump to the end. Use the arrows to make sure the copy/paste action was successful

      2. Save and exit the file (ctrl + x)

    2. Run “sync” command

    3. Run “reboot” command

  1. Disconnect PC from ethernet cable

...