WebSerial | Remote Serial monitor for ESP8266 & ESP32
kandi X-RAY | WebSerial Summary
kandi X-RAY | WebSerial Summary
WebSerial is a Serial Monitor for ESP8266 & ESP32 Microcontrollers that can be accessed remotely via a web browser. Webpage is stored in program memory of the microcontroller.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebSerial
WebSerial Key Features
WebSerial Examples and Code Snippets
Community Discussions
Trending Discussions on WebSerial
QUESTION
I am trying to use the WebSerial API on Windows after it worked fine on macOS with no problem. The device was plugged into a Macbook and no extra action was required. When I connect the device (USB to Serial adapter) to a Windows machine and access my Angular website using Google Chrome, I get this error:
DOMException: Failed to open serial port.
When I access chrome://device-log/
I see this error:
[USB][ERROR][17:09:20] Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
Below is the code that I am using, and an error is displayed when code runs line await this.scale.open({ baudRate: 9600 });
.
ANSWER
Answered 2021-Aug-03 at 09:42It was a driver issue.
Most old models USB to Serial adapters are presenting problems on Windows 10. After trying several drivers, I found this one that solved my problem.
It is linked to a Youtube video in a language that I do not understand. However, the steps are easy to follow. After downloading the driver and following the steps, it works just fine.
QUESTION
When retrieving data from a balance using webserial api. I am getting the following
SԬ-000��.96���
When I should be getting
ST,-00027.96 g
I am opening the port with the following
...ANSWER
Answered 2021-Jan-01 at 08:11This isn't a tested answer as I have no way of reading a serial port with actual data coming in.
However, looking at the characters that have been read correctly and those that haven't there is consistency.
Those that have been read correctly will not have a parity bit set (should there be one) and those that have been read incorrectly will have a parity bit set.
for example: lowercase g in ASCII is octal 147 - 01100111 in binary - an odd number of bits set uppercase S in ASCII is octal 123 - 01010011 in binary - an even number of bits set
The suspicion is therefore that different character codings are being used, particularly as there appears to be a merging of the T and , to give a character.
So, is parity being set on the serial device now but not being taken into account when reading the characters for example? Is some sixteen bit encoding being looked for or...
Sorry I cannot investigate further. At least try reading with the parity bit set rather than not as a starter.
QUESTION
I have tried to use the WebSerial API on Ubuntu after it worked on Windows and ChromeOS.
When I try to connect a device, i get this error: DOMException: Failed to open serial port.
Error
I have created a udev rule but it did not work.
...ANSWER
Answered 2020-Sep-01 at 09:16In my case, this problem was solved by adding my user to the "dialout" group with sudo adduser [username] dialout
(take into account that the machine should be restarted after that) and then it worked!.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WebSerial
https://www.buymeacoffee.com/6QGVpSj/e/25091
https://webserial.pro
Go to Sketch > Include Library > Library Manager > Search for "WebSerial" > Install. For Windows: Download the Repository and extract the .zip in Documents>Arduino>Libraries>{Place "WebSerial" folder Here}. For Linux: Download the Repository and extract the .zip in Sketchbook>Libraries>{Place "WebSerial" folder Here}. Include other library https://github.com/me-no-dev/ESPAsyncWebServer https://github.com/me-no-dev/AsyncTCP. Download the Repository, Go to Sketch>Include Library>Add .zip Library> Select the Downloaded .zip File.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page