Connect to a Meshtastic device: Connection status
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start on the "Connect to a Meshtastic device" screen and the "Add connection" dialog, reproducing the cards with a serial device already open in another tab. Trace how each card's status, connection history and action button are derived, since they currently disagree with the real connection state. The issue mixes bugs with design requests that still need a decision (the "My serial node" drop-down, the Icon (A) meaning), so confirm scope with a maintainer first. Done means the status and history match reality and the serial warning text is fixed.
Written by the indexing model from the issue text.
Description
I observe the following behavior in client.meshtastic.org V0.0.0-#2C409A7 at the "Connect to a Meshtastic device" screen.
For example, I'm looking at a screen with six devices. Two rows, three columns.
My machine curently has two devices connected by USB: B4F8 and A658. Both are advertising a IP on my local net, as are two others. Two others are currently offline.
Connection card
Each device has its own connection card with eight attributes. Here is box [1,2] Device 60C0.
(A) An icon (signficance unknown to me)
(B) Connection title - "My node" (user created)
(C) Connection status
(D) Meatball menu (one selection currently, Delete)
(E) Connection type icon
(F) Device ID (VID:PID)
(G) Connection history
(H) Action button
I believe this box was appropriately named in (B) Connection title. See dicussion in "My node" below. In (C) Connection status, it says "Connected". In the nodes list for the two USB-connected devices, I see one "Direct" connection and one "Unknown." In one case, it was seen an hour ago and in the other, seven. The device in the card above is advertising its IP on the local net, but it is not connected by USB to the web app.
The connection card attribute (F) Device ID is 10c4:ea60 Silicon Labs CP210x UART Bridge, It shares this attribute with three other cards, one of which is using that bridge right now.
The Connection history (G) for 60C0 says "Never connected." This is inaccurate. It has been previously connected.
The Action button (H) for 60C0 says "Disconnect", implying that the device is currently connected. It is not.
====
Now we look at a device that is currently connected: B4F8.
At (C) Connection status, it says "Disconnected". It is connected in another tab.
At (G) Connection history, it says "Never connected." But it is connected, right now.
The Action button (H) says "Connect" implying that the device is not connected. Clicking the Action button results in an error, "Failed to execute 'open' on 'SerialPort': Failed to open serial port." That's entirely logical. The serial port is already in use.
My node
In the "Add connection" dialog box, the user is invited to name the card as he or she chooses. That name will show up in (C) "Connection title". Names need to have signficance to the user. In my view, the name of the LoRa device (owner_long)_ is the logical text to go in this field. Technically, it might be more appropriate if the user were to put in the manufacturer and name of the USB device. That however requires that the user go digging around in a terminal session to cut and paste this name. Here is what it would look like for me.
===
I suggest this would lead to more user errors than it would solve. If this is the naming convention the designer intended, then don't let "Connection title" be a free text entry. Give a drop-down with manufacturer/product from the OS.
When BLE and TCP are enabled in the "Add connection" dialog, presenting the user with a drop-down list of available Bluetooth devices or a list of currently connected IP hosts will prevent the tears from folks who are asked to try an address.
Recommendations/Requests
Document the significance of Icon (A)
Correct the display of (C) "Connection status" or get rid of it.
Correct the display of (G) "Connection history" or get rid of it.
When a connection card has been used in another tab, label it "In use", make it grey, and disable the button.
In the "Add connection" dialog box, change "My serial node" from free text to a drop-down. [more discussion required]
In the "Add connection" dialog box, for the time being, when HTTP is selected, give an error message.
In the "Add connection" dialog box, when Bluetooth is selected, please correct the warning text. I use Chrome and still get the message.
In the "Add connection" dialog box, when Serial is selected, change the blank text warning to "Please select a USB port."
- Dominant language
- TypeScript
- Stars
- 861
- Forks
- 316
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 18
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from meshtastic/web
-
i18n
Difficulty 1/5 Under an hour Newbie friendliness 82/100
meshtastic/web#1187 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
meshtastic/web#1532 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
meshtastic/web#1504 ·
Maintainers usually reply within 1 day
-
[Bug]: Serial connection to nRF52 device (T1000-E) never loads; port opened without DTR assertedOpen
Difficulty 3/5 Half a day Newbie friendliness 45/100
meshtastic/web#1499 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
meshtastic/web#1498 ·
Maintainers usually reply within 1 day
Similar issues
-
P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug L3 level 1 needs-review wocs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
SatyamPandey-07/WorkSphere#10739 · 1 comment ·
Maintainers usually reply within 1 day
-
maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
assistant-ui/assistant-ui#10946 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openclaw/openclaw#206303 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day