serial-port ~issue-10
Minimalistic serial port library. Exctracted from Tango library.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
serial-port
Crossplatform library for operating with serial ports in D programming language. Documentation.
Compilation
With dub:
dub build
with make
make
Or, put in your dub.json dependencies:
"dependencies": {
"serial-port": "~master"
},
To compile tests with dub:
dub build --build=unittest --config=unittest
./serial-port
with make
make test
./serial-port
You should have two serial ports linked to each other (com0com on Windows, socat in linux). For instance, writing to 'COM1' and reading from 'COM2'. On posix you can use socat to create serial port pipe:
socat /dev/ttyS0,raw,echo=0,crnl /dev/ttyS1,raw,echo=0,crnl
References
- Termios man page
- [librs232] (https://github.com/ynezz/librs232)
- D termios header file
- Termbits header file
- Some useful socat commands
- ~issue-10 released 9 years ago
- NCrashed/serial-port
- github.com/NCrashed/serial-port
- Boost
- Copyright © 2013, Gushcha Anton
- Authors:
- Dependencies:
- none
- Versions:
-
1.2.0 2017-Feb-03 1.1.0 2014-Oct-14 1.0.0 2014-Feb-20 1.0.0-docs 2014-Feb-20 ~master 2017-Feb-03 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
1 downloads this month
-
814 downloads total
-
- Score:
- 1.9
- Short URL:
- serial-port.dub.pm