Skip to content

Connect to a Meshtastic device: Connection status #1045

@roberthadow

Description

@roberthadow

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.

Image ===

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.

Image

(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.

Image

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.

Image

===
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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions