Maritim og Marin IIoT - dokumentasjon

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Startup guide

Software

GUI setup

Go to Github gui page and follow the steps in README. 

Troubleshooting:
When running "npm, install" try to do several updates and "npm audit fix --force" commands.
Also try the npm run start a few times before giving up.
Try both alternative A and B.

API setup

Go to Github api page and follow steps in README.
Do the same for the control-api.
Sonar-api is not needed.

Go to api/control-api/app/api/endpoints/commands.py and change the IP

  • Previously used IP is 192.168.0.102:9500
    • Must be the same as towed-rov/RPi/Program/send_and_receive/command_receiver.py

Go to api/control-api/app/api/endpoints/sensors.py and change both IP

  • Previously used IP for ROV is 192.168.0.102:9000
    • Must be the same as towed-rov/RPi/Program/send_and_receive/message_dispatcher.py
  • Previously used IP for SUITCASE is 192.168.0.110:9000
    • Must be same as surface-unit/main.py ->sender

Hardware

Check if the battery has power. (green indicator is good)
Connect battery to the suitcase.


Connect the cable between the suitcase and the cable roll.



Turn on the power. Down is On. Left is for 5V(RPi and switch) right is for 46V(tether cable).

Warning: power supply should not make clicking noises. Turn of and try again if the happens.


Check that the router is connected.

Once the router is powered on:
Connect to the router with WiFi or Ethernet. The password is on the back side of the router.



The Raspberry PIs should now be communicating with the API.

Development guide

Software

realVNC

realVNC is used to control the Raspberry Pi's from a laptop.

Download realVNC viewer.
Make an account or skip.
Open the program and connect to 192.168.0.102 for ROV Rpi and 192.169.0.110 for SUITCASE.

Other

Raspberry pi is not connected to the web. Files can be transferred bertween devices with realVNC. 

All code is on github (link under "code") make sure to open to newest fork by autoHammer and use the branch towrov2022.
Always keep github up to date, as the raspberry pi can easily be corrupted.

Hardware

The suitcase can be connected to a lab power supply. Make sure the voltage is 12V.


  • No labels