This project is a Vue.js web application designed to interact with serial ports. It provides a user-friendly interface for connecting to serial ports, reading data, and sending commands. The tool is particularly useful for interfacing with various devices over serial communication, offering functionalities like setting and getting device attributes.
- Connect to and disconnect from serial ports.
- Display and modify device attributes.
- Send custom commands to the connected device.
- Real-time display of received data from the serial port.
To set up the project on your local machine, follow these steps:
-
Clone the Repository
git clone https://github.com/kongdayan/Web-Serial-API-demo.git cd Web-Serial-API-demo
-
Install Dependencies
Make sure you have Node.js installed, then run:
npm install
-
Run the Application
npm run serve
The application will be available at
http://localhost:8080
.
After launching the application, follow these steps:
- Select the serial port from the dropdown menu.
- Set the desired baud rate and other connection settings.
- Click 'Connect' to establish a connection with the serial port.
- Use the interface to send commands and read data.
- Adjust device attributes as needed.
Contributions to this project are welcome. To contribute:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/AmazingFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
Distributed under the MIT License. See LICENSE
for more information.
Your Name - [email protected]
Project Link: https://github.com/kongdayan/Web-Serial-API-demo