Skip to content

howardman0209/SerialTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

1. Install required dependencies

npm install express serialport ws -save

2. List all the connected devices

ls /dev/tty.*

3. Config the Serial Port path and baud rate in server.js at line 4 - 10

const serialPort = new SerialPort({
    path: '/dev/tty.usbmodemSP000002153', baudRate: 115200,
    dataBits: 8,
    parity: 'none',
    stopBits: 1,
    flowControl: false
});

4. Start the WebSocket server

npm run start 

5. Go to Tools (Directory) and start the WebServer for the application

cd Tools
http-server

Warning

Make sure http-server is already installed. If not just install it by following command.

npm install -g http-server

6. Open the application in your browser (eg. Chrome)

Open chrome and type http://localhost:8080/ as a URL

Tip

Type raw bytes in the text input and press Send to send to the serial channel SerialHelper

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy