EmonTx5 Serial Web Connection

Trying to connect an EmonTx5 via serial to the web serial tool without success:

I have 3 machines, unfortunately all Manjaro linux so no variation there, 2 laptops and one desktop. I am able to connect the EmonTX via USB C to USB A cable to all, navigate to the web serial tool and connect the the USB device. If the USB cable is removed, the device disappears, when its reconnected it re appears. However after connecting and setting the device listed as “paired”, nothing further happens.

The serial interface just remains at “Waiting for configuration from device…” for over 10min.

I have tried multiple USB cables in multiple ports - though as mentioned, the emonTx5 appears to at least visible to the web serial portal so not sure its a cable issue.

Anyone had success with the serial page and the emonTx5? Anything different you’ve had to do?

OS: Manjaro, linux
Browser: Edge, Opera, Chrome all tried, all connect to device, all wait for configuration

Have you searched the forum here? I can vaguely remember something about a problem with USB-C and USB-A adapters, I can’t remember any details or when. I’ll try looking for you later.

Yep, there was a conversation around people trying to use USB C to USB C - the solution was to use USB C to USB A to USB A to USB C.

But in those instances they weren’t able to see the device at all.

I’m just using standard USB C to USB A cables as is recommended approach, and I can see the device, I can click the connect button and the website appears to be paired to the device, I’m just not getting anything after that point.

I don’t think I can help much. I’ve used Ubuntu Linux for years, I’ve never had a problem with the serial connection, but then I’ve always used either the Arduino IDE or something like Minicom or Picocom.

No worries, appreciated you reaching out.

I guess there’s 2 things you could possibly confirm if you don’t mind:

  1. have you used the EmonTx5 with either arduino or web serial?
  2. do you have a good link or could you share details on your setup for Arduino IDE serial with EmonTx5’s? I’m somewhat experienced with esp8266 dev through arduino IDE but the guidance here: Configuration — OpenEnergyMonitor 0.0.1 documentation
    Isnt really giving me a starting point for board setup etc in Arduino IDE, if its even relevant to Tx5.

Cheers anyway.

I haven’t got an emonTx5, but as far as I know, it’s all but identical to the emonTx4. This won’t be true for the next generation using the “emon32” software on the Microchip ATSAMD family processor.

What are you trying to do, upload a new sketch or ‘on-line’ configure a running emonTx5?

Hmm…

I’ve just tried the on-line tool openenergymonitor.org/serial
Using Firefox, nothing happens, not even when I click “Connect”.
Using Chromium, I click “Connect” and then nothing happens, with “No compatible devices found”.

Running Picocom from the terminal with

picocom /dev/ttyUSB0 --echo --baud 115200 --omap crcrlf,crlf

I get comms as usual, and can send the configuration commands, and get reponses.

Yeah I’m trying to recalibrate CT amperages so online configure out of your options.

Okay well thats a great help!

Firefox isnt supported the docs say, chrome, edge and opra are - ive gone to the effort of tarnishing linux with all three just to ensure thats not the issue with no success.

Ill try picomm thanks. Sounds like this could be a bigger issue if the web serial isnt also working for an experienced user?

“A consignment of elderly shoemakers” would appear to be my classification thereof.

(And I tried the native non-OEM version of WebSerial - same problem.)

Bingo!

Yep coms working fine through picocom, connected to serial and receiving messages.

Rushed conclusion: web serial is borked, will raise with customer support.

Now to learn picocom and how to change CT calibration with it.

Type l and see what you have for the present settings,
Type ? to see the commands - ‘k’ is the one you want, then s to save.

Yeah im a little further behind than that currently.

Figured out the whole Ctrl+A, Ctrl+H thing to see picocom commands and execute those, havent yet figured out to just type l. :slight_smile:

The command to start Picocom maps things so that you shouldn’t need to interact again with Picocom, except to exit [Ctrl-A]+[Ctrl-X].
[Enter] after your ? or l etc works for me, else it’s [Ctrl-J] to end (since Trystan changed it from the time-immemorial cr/lf to lf only.

Just a question (probably irrelevent - I have never used the web tool) - the web tool is documented in the emonTx4 configuration docs but not mentioned in the emonTx5 docs - is there a missing section in the emonTx5 docs, or as above, does the web tool not work on the emonTx5?

It doesn’t work on the emonTx4 for me.

Maybe it’s Windoze-only despite being browser-based?

The web tool can work for the emonTx5, I can access it now - I am using Chrome on Ubuntu 22.04.5 LTS.

Theres something missing then. 2 of us able to use linux and picocom to interface serially but unable to get past “Waiting for configuration from device…” without any error messages and with the device being paired on the web serial.

As far as I can tell usage on linux with chrome using a USB C to USB A cable really doesn’t have any complexity behind it so there’s not much to get wrong from a user perspective.

Youre right I was overcomplicating it.

Thanks.

Ubuntu 24.04.2 LTS, and it doesn’t work to an emonTx4 for me with either Chromium or Firefox.

Same cable, same USB port, Picocom stopped, and Chromium does this

Picocom does this: