Skip to content
This Chrome extension provides serial port access ability for your website.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
release
src fixed serial port receive duplication issue and launched V0.0.3 Mar 8, 2017
.gitignore included release directory Mar 8, 2017
LICENSE
README.md Update README.md Jul 19, 2018

README.md

Web COM

🐹 In fact this is an independent project and works as an utility in irext public console

Version 0.0.3

This Chrome app provides serial port access ability for your website

Installation

Method 1: Go to Chrome's Tools -> Extensions then click "Load unpacked extension...". Then click on Launch to get it working

Method 2: Or, You can install it by dragging and dropping the released crx file in the root directory to chrome://extensions/

Method 3: Visit here for official installation: https://chrome.google.com/webstore/detail/web-com/mbndnomfbkfijpkbmnohmnnbfbhknfba

How to use

  1. Install and start Web COM packaged app, it will listen on port 8301 (or you could change the listen port)
  2. Create a websocket connecting to localhost:8301 with type 'arraybuffer' and add your event callback handlers
    ws = new WebSocket('ws://localhost:8301/');
    ws.binaryType = 'arraybuffer';
    
    ws.addEventListener('open', function() {
        ...
    });
    ws.addEventListener('close', function() {
        ...
    });
    ws.addEventListener('message', function(data){
        ...
    });
  3. Select path and connection options, open the serial port, and then use ws.send() to send string or Uint8Array

alt tag

You can also find the example here: https://jsfiddle.net/strawmanbobi/nt4x3c23/

You can’t perform that action at this time.