Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Automatically translated by Lango

* No longer available

When a tab hub (not mini) does not come online, you might be requested to manually update the hub firmware on site (please ALWAYS discuss with Spacewell Hardware Manager before doing this).

If you cannot go on site, it's best to set up a technical call with someone that has physical access to the hubs and where we can take over the pc.

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

...

Niet langer beschikbaar

Wanneer een tabbladhub (niet mini) niet online komt, kan u worden gevraagd de hubfirmware ter plaatse handmatig bij te werken (a.u.b. ALTIJD Bespreek dit eerst met de Spacewell Hardware Manager).

Als je niet ter plaatse kunt komen, kun je het beste een technisch gesprek opzetten met iemand die fysieke toegang heeft tot de hubs en waar we de pc kunnen overnemen.

Opmerking: deze instellingen zijn niet blijvend, als een hub fysiek wordt gereset (resetknop 10+ sec ingedrukt houden) moeten de instellingen opnieuw worden toegepast.

Samenvatting

  1. Zorg ervoor dat je putty hebt geïnstalleerd https://www.putty.org/

  2. Connect your Sluit je pc via ethernet to one of the black ethernet portsCopy firmware image and scp to aan op een van de zwarte ethernetpoorten

  3. Kopie firmware-afbeelding en scp naar Hub ( Frimeware image is available beschikbaar in the het TEAMS Cobundu Sharepoint channel kanaal )

  4. Run the De update uitvoeren

  5. Set CUPS MTUN and en 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 informatie instellen

  2. Koppel de pc los van de ethernetkabel

Wanneer er een lege ruimte staat in de onderstaande instructies, gebruik dan de ruimte in de beschreven gereedschappen.

Gedetailleerde stappen

  1. Zorg ervoor dat je putty hebt geïnstalleerd https://www.putty.org/

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

    Copy firmware image and scp to Hub

    Open command prompt

    aan op een van de zwarte ethernetpoorten

  3. Kopieer firmware-image en scp naar Hub

    1. Opdrachtprompt (cmd) Go to the firmware folder cd …openen

    2. Ga naar de firmwaremap cd .../1.29.01/ (copy the whole path of where you have extracted the firmware; make sure to type cd + blanc + use kopieer het hele pad van waar je de firmware hebt uitgepakt; zorg ervoor dat je cd + typt. blanco + gebruik "...")

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

      1. if you encounter an error, check als er een fout optreedt, controleer dan 3.f (may require removing existing fingerprints from ssh filehiervoor moeten mogelijk bestaande fingerprints uit het ssh-bestand worden verwijderd)

    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)

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

      Image RemovedWait until firmware.img has loaded to 100%
    5. Note: may require removing existing fingerprints from ssh file when encountering this error: (see step 5.a)

      Image Removed

    Run the update

    1. open putty

    2. ssh into the om de ssh-vingerafdruk toe te voegen aan de bekende hosts (typen in cmd wordt niet getoond, typ gewoon "yes" (zelfs als je het niet kunt zien) en bevestig door op enter te drukken)

    3. Wachtwoord: tracknet (typen in cmd wordt niet getoond, typ gewoon "tracknet" (zelfs als je het niet kunt zien) en bevestig door op enter te drukken)

      Image Added


      Wacht tot firmware.img is geladen tot 100%.

    4. Opmerking: het kan nodig zijn om bestaande fingerprints uit het ssh-bestand te verwijderen als deze fout optreedt: (zie stap 5.a)

      Image Added
  4. De update uitvoeren

    1. open stopverf

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

      Image Removed
    3. if below warning pops-up, accept

      Image Removed
    4. login as root

    5. Password:tracknet

      Image Removed

      het veld Hostnaam in en druk op de knop "Openen

      Image Added
    6. als de onderstaande waarschuwing verschijnt, accepteer deze dan

      Image Added
    7. inloggen als root

    8. Wachtwoord:tracknet

      Image Added
    9. cd /mnt/data/tracknet

      Image Removedmake file executable Image Added
    10. maak bestand uitvoerbaar "chmod +x doupdate.sh"

    11. Run Voer "./doupdate.sh" uit

      Image RemovedImage Added
    12. (device will run the update and rebootapparaat zal de update uitvoeren en opnieuw opstarten) = "Network ErrorNetwerkfout: Software caused connection abortveroorzaakt verbindingsonderbreking".

    13. close sluit cmd and en putty

  5. Set CUPS MTUN and en TC uri information

    Remove the ssh fingerprint from your pcs config file

  6. Go to the .ssh folder of your user

    Image Removed
  7. Open the known_hosts file

  8. Delete the record for the hub (line starting with

    informatie instellen

    1. Verwijder de ssh-vingerafdruk uit je pcs config bestand

      1. Ga naar de .ssh-map van je gebruiker

        Image Added
      2. Open het bestand known_hosts

      3. Verwijder het record voor de hub (regel die begint met 192.168.66.1)

      4. Save the file

      Open command prompt
      1. Het bestand opslaan

    2. Opdrachtprompt (cmd) Go to the bootstrap folder cd …openen

    3. Ga naar de bootstrap map cd .../bootstrap/

    4. scp  scp * root@192.168.66.1:/etc

    5. type yes to add the ssh fingerprint to the known hostsPasswordom de ssh-vingerafdruk toe te voegen aan de bekende hosts

    6. Wachtwoord: tracknet

    7. open puttystopverf

    8. ssh into the naar de unit (ssh root@192.168.66.1)

    9. Edit file Bewerk bestand (nano /mnt/data/config/mfg)

      Image Removedthis will open below screen
      Image Removed

      Modify tcuri to Image Added


      onderstaand scherm wordt geopend

      Image Added

      1. Wijzig tcuri in 

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

        2. VS:   '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)

        Remove option cupsuri
        1. denk eraan dat je in Putty alleen kunt bewegen met je pijltjestoetsen (alsof je geen muis hebt) en niet je numerieke toetsenblok kunt gebruiken)

      2. Optie kopjes verwijderen 'https://cups2.trackio.ch:8888'

      3. Save and exit the file Sla het bestand op en sluit het af (ctrl + x)

    10. Edit file Bewerk bestand (nano /mnt/data/config/reverse-ssh)

      Image RemovedImage Added

      1. Modify Wijzig server to in 'mtun.cobundu.com'Save and exit the file .

      2. Sla het bestand op en sluit het af (ctrl + x)

    11. Edit file Bewerk bestand (nano /etc/init.d/mtuns)

      Image RemovedIn the last line of the Image Added
      1. Voeg in de laatste regel van het 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 indentedblok de volgende regel toe (misschien moet je de pijltjes gebruiken om naar beneden te scrollen als dit niet direct zichtbaar is; gebruik ctrl+rechtsklik om te plakken in stopverf; zorg ervoor dat de tekst 4 spaties ingesprongen begint):
        /usr/bin/mtuns mtun.cobundu.com $HWMODEL-$MTUNID.gw.cobundu.com 22

      2. Save and exit the file Sla het bestand op en sluit het af (ctrl + x)

    12. Edit file Bewerk het bestand (nano /etc/dropbear/authorized_keys)   → (NOTE: if there is no file “authorized_keys” OPMERKING: als er geen bestand "authorized_keys" in /etc/dropbear or even an of zelfs maar een map /etc/dropbear directory, use staat, gebruik dan in plaats daarvan /mnt/data/s2/idu/etc/dropbear instead)

      Image Removed

      Go back to the Migration file in Windows Explorer. Copy the contents of the Image Added

      1. Ga terug naar het migratiebestand in Windows Verkenner. Kopieer de inhoud van id_cobundu.pub to the second line of this file (paste naar de tweede regel van dit bestand (plakken = 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 successfulSave and exit the file invoegen of gebruik ctrl+rechtsklik om te plakken in stopverf); ook al sta je nog steeds aan het begin van de 1e regel, de geplakte regel springt naar het einde. Gebruik de pijltjes om te controleren of het kopiëren/plakken gelukt is

      2. Sla het bestand op en sluit het af (ctrl + x)

    13. Run “sync” command

    14. Run “reboot” command

    Disconnect PC from ethernet cable
    1. Voer het commando "sync" uit

    2. Voer het commando "opnieuw opstarten" uit

  9. Koppel de pc los van de ethernetkabel