Skip to content

Commit d4408ec

Browse files
authored
Merge branch 'develop' into feat/blcu-board-registration
2 parents 36ba04d + acaeba6 commit d4408ec

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

backend/cmd/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ type Transport struct {
1818
PropagateFault bool
1919
}
2020

21+
type Blcu struct {
22+
IP string
23+
DownloadOrderId uint16
24+
UploadOrderId uint16
25+
}
26+
2127
type Config struct {
2228
Vehicle vehicle.Config
2329
Server server.Config
2430
Adj Adj
2531
Network Network
2632
Transport Transport
33+
Blcu Blcu
2734
}

backend/cmd/config.toml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,48 @@
1+
# Hyperloop UPV Backend Configuration
2+
# Configuration file for the H10 Control Station backend server
3+
4+
# Vehicle Configuration
15
[vehicle]
2-
boards = ["HVSCU", "PCU"]
6+
boards = ["HVSCU", "PCU", "BLCU"]
7+
8+
# BLCU (Boot Loader Control Unit) Configuration
9+
[blcu]
10+
ip = "127.0.0.1" # TFTP server IP address
11+
download_order_id = 1 # Packet ID for download orders (0 = use default)
12+
upload_order_id = 2 # Packet ID for upload orders (0 = use default)
13+
14+
# Server Configuration
315
[server.ethernet-view]
416
address = "127.0.0.1:4040"
517
static = "./ethernet-view"
18+
619
[server.ethernet-view.endpoints]
720
pod_data = "/podDataStructure"
821
order_data = "/orderStructures"
922
programable_boards = "/uploadableBoards"
1023
connections = "/backend"
1124
files = "/"
25+
1226
[server.control-station]
1327
address = "127.0.0.1:4000"
1428
static = "./control-station"
29+
1530
[server.control-station.endpoints]
1631
pod_data = "/podDataStructure"
1732
order_data = "/orderStructures"
1833
programable_boards = "/uploadableBoards"
1934
connections = "/backend"
2035
files = "/"
36+
37+
# ADJ (Architecture Description JSON) Configuration
2138
[adj]
22-
branch = "main" # Leave blank when using ADJ as a submodule (like this: "")
23-
test = true
39+
branch = "software" # Leave blank when using ADJ as a submodule (like this: "")
40+
test = true # Enable test mode
41+
42+
# Network Configuration
2443
[network]
25-
manual = false
44+
manual = true # Manual network device selection
45+
46+
# Transport Configuration
2647
[transport]
27-
propagate_fault = true
48+
propagate_fault = true # Propagate fault messages like VCU

0 commit comments

Comments
 (0)