linux_amd64

This commit is contained in:
admin
2024-05-25 18:04:34 +08:00
+63 -28
View File
@@ -1,34 +1,69 @@
# openpilot-server # openpilot-server
Openpilot server
1. 配置文件 #### 1. 配置文件
(1)在 config.txt 文件中, (1)在 config.txt 文件中,
<ws_bind> 是绑定websocket server 的ip和端口。 <ws_bind> 是绑定websocket server 的ip和端口。
<http_bind> 是绑定http server 的ip和端口。 <http_bind> 是绑定http server 的ip和端口。
<athena_host> 是该服务端公网的域名。 <athena_host> 是该服务端公网的域名。
<upload_url> 是该服务端公网的域名。 <upload_url> 是该服务端公网的域名。
(2) 启动 (2) 启动
在服务器上启动opserver.exe。 在服务器上启动opserver.exe。
2. 设置c3/c3x #### 2. 设置c3/c3x
(1) ssh进入c3/c3x 设备。 (1) ssh进入c3/c3x 设备。
(2) 在/data/continue.sh export 添加 <athena_host> 和 <upload_url>。 (2) 在/data/continue.sh export 添加 <athena_host> 和 <upload_url>。
export ATHENA_HOST='ws://laofolan.tpddns.cn:7899' export ATHENA_HOST='ws://laolang.duckdns.org:7899'
export API_HOST='http://laofolan.tpddns.cn:7898' export API_HOST='http://laolang.duckdns.org:7898'
像这样: 像这样:
/-----/data/continue.sh file----------------- /-----/data/continue.sh file-----------------
#!/usr/bin/bash #!/usr/bin/bash
export ATHENA_HOST='ws://laolang.duckdns.org:7899'
export API_HOST='http://laolang.duckdns.org:7898'
cd /data/openpilot
exec ./launch_openpilot.sh
export ATHENA_HOST='ws://laofolan.tpddns.cn:7899' /----------------------
export API_HOST='http://laofolan.tpddns.cn:7898'
(3) rm -rf /data/params/d/DongleId
sudo reboot #重启你的c3/c3x
#### 3. 下载文件
(1) 浏览器中打开 http://laolang.duckdns.org:7898/op/DongleId
DongleId替换成你的ID。 DongleId可以在你的c3/c3x设备上查看。
cd /data/openpilot # openpilot-server for english
exec ./launch_openpilot.sh
(3) rm -rf /data/params/d/DongleId #### 1. Configuration File
sudo reboot #重启你的c3/c3x (1) In the config.txt file,
/---------------------- <ws_bind> IP and port of the websocket server.
<http_bind> IP and port of the http server.
3. 下载文件 <athena_host> The domain name of the server.
(1) 浏览器中打开 http://laofolan.tpddns.cn:7898/op/<DongleId> <upload_url> The the domain name of the server.
<DongleId>替换成你的ID。 DongleId可以在你的c3/c3x设备上查看。 (2) Launch
Launch opserver.exe on your windows server.
#### 2. Configuration in c3/c3x
(1) SSH into the c3/c3x device.
(2) In "/data/continue.sh" file, export <athena_host> and <upload_url>.
export ATHENA_HOST='ws://laolang.duckdns.org:7899'
export API_HOST=' http://laolang.duckdns.org:7898 '
like this:
/-----/data/continue.sh file-----------------
#!/usr/bin/bash
export ATHENA_HOST='ws://laolang.duckdns.org:7899'
export API_HOST='http://laolang.duckdns.org:7898'
cd /data/openpilot
exec ./launch_openpilot.sh
/----------------------
(3) rm -rf /data/params/d/DongleId
sudo reboot #Restart your c3/c3x
#### 3. Download the file
(1) Open http://laolang.duckdns.org:7898/op/DongleId in your browser
and replace DongleId with your ID. DongleId can be viewed on your c3/c3x device.