RAK13800 Ethernet: CLI over WebSocket and firmware updates over Ethernet?

Đang mở
#3,983 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
cli, embedded-iot, networking

Hướng nghiên cứu

The issue describes two proposed changes but does not name source files or tests. Read the linked implementation guide, binaries, and test results first, then review the project's Ethernet CLI and OTA entry points. Done means deciding whether to accept the WebSocket CLI with its stated defaults and whether to wait for the Ethernet-capable OTAFIX bootloader before accepting eth.ota.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hey all! I've got a RAK4631 with a RAK13800 Ethernet and a RAK19018 PoE module sitting up on a pole. It used to run Meshtastic and I moved it over to MeshCore. Telnet over Ethernet works great, but two things still had me climbing up there (or standing under it with a phone):

  • the web config tool can't talk to it, because browsers can't open a raw TCP connection to the telnet port;
  • updating the firmware needs USB, or Bluetooth from close by.

So I spent the last few days getting both working on my node, and I'd like to send them as two PRs against dev if you're interested:

  1. WebSocket CLI. Same CLI as telnet, on port 8023, Ethernet builds only (-D ETHERNET_WS_PORT=0 turns it off). By default it only accepts browsers on localhost, so the hosted config site can't use it; you run the config tool locally. It costs about 4.9 KB flash and 2.3 KB RAM on RAK_4631_repeater_ethernet, and nothing on the other builds.
  2. eth.ota. A small Ethernet-only command next to eth.status that reboots the node into the bootloader's Ethernet update mode, so you can push a new firmware over the network. That part needs an Ethernet-capable OTAFIX bootloader, which I'm sending to OTAFIX separately and isn't released yet, so this one would wait for it. About 1.3 KB flash, and it doesn't touch the shared CLI code.

Along the way I hit a bug with long lines in the Ethernet CLI and already sent the fix, in two small parts: #3980 and #3981.

Related: #1161 (an older WebSocket request, closed as stale), #3827 (PoE on the same hardware), #2260.

Two questions for you:

  • Would you take the WebSocket CLI like that, on by default in Ethernet builds?
  • Should I hold the eth.ota PR until the bootloader is out, or is it fine to open it after the WebSocket one?

If you want to try it or see how I tested it, the guide, binaries and test results are here: https://github.com/jpdborgna/ham/tree/main/meshcore/rak

I put this together with some help from Claude Code; I read every line and it's running on the node above.

Ngôn ngữ chính
C
Star
3.9k
Fork
1.5k
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
61

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshcore-dev/MeshCore

Tất cả issue của meshcore-dev/MeshCore

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.