Skip to content

A tool to connect a COM port to a WebSocket on windows

License

Notifications You must be signed in to change notification settings

ttk/com2web-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COM Port to WebService Proxy Tools

These are some very simple tools to proxy data from a serial port on windows (COM) to a WebSocket so that a html page can read this data and act on them.

The project is written in PHP and consists of two separate programs:

  • com2ip - connects to a COM port and forwards the data to a local TCP port
  • ip2web - Acts as the server. Establishes listening ports for the raw TCP port and a WebSocket server. This should be started first before anything else.

Installation

You need to have php installed (preferrably 7.0+) and composer installed. Then run composer install to download all the dependencies.

You will also need the Direct IO php extension installed. Download it from the pecl site

About

A tool to connect a COM port to a WebSocket on windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages