Skip to content

After installation, let’s configure your first USV system.

Terminal window
jhusv start

The control platform will start at http://localhost:8080.

In the Web interface:

  1. Click “Add Device”
  2. Enter USV serial number
  3. Select connection method (WiFi/4G/5G)
  4. Click “Connect”

Or use command line:

Terminal window
jhusv device add --serial USV-2024-001 --connection 4g
Terminal window
jhusv device status

Example output:

Device: USV-2024-001
Status: CONNECTED
Battery: 85%
GPS: FIXED
Connection: 4G (Signal: Excellent)
navigation:
mode: "auto" # Navigation mode: auto, manual, waypoint
max_speed: 10 # Maximum speed (knots)
obstacle_distance: 20 # Obstacle avoidance distance (meters)
gps_accuracy: 2.5 # GPS accuracy requirement (meters)
safety:
geofence:
enabled: true
latitude: [31.2, 31.3] # Latitude range
longitude: [121.4, 121.5] # Longitude range
emergency:
low_battery: 20 # Low battery threshold (%)
return_home: true # Auto return home
max_distance: 5000 # Maximum distance (meters)
sensors:
gps:
enabled: true
update_rate: 10 # Hz
imu:
enabled: true
calibration: auto
camera:
enabled: true
resolution: "1920x1080"
fps: 30
Terminal window
jhusv calibrate gps

Wait for GPS signal to stabilize (usually 1-2 minutes).

Terminal window
jhusv calibrate imu

Follow the prompts to place the USV in different orientations for calibration.

Terminal window
jhusv calibrate compass

Rotate the USV 360° on a horizontal surface.

Terminal window
jhusv test all

This will test all subsystems and generate a report.

  1. Motor Test

    Terminal window
    jhusv test motor
  2. Servo Test

    Terminal window
    jhusv test servo
  3. Sensor Test

    Terminal window
    jhusv test sensors

All configurations are automatically saved to:

~/.jhusv/config.yaml

You can also export the configuration for backup:

Terminal window
jhusv config export > my-config.yaml

Restore configuration:

Terminal window
jhusv config import my-config.yaml

After configuration, you can:

:::tip Best Practices

  • Regularly backup configuration files
  • Test in a safe area before actual deployment
  • Keep firmware updated to the latest version :::

:::warning Note

  • All sensor calibrations must be completed before first use
  • Ensure geofence settings are correct
  • Avoid use in severe weather conditions :::