serial-port 1.2.0

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

Authors:
  • NCrashed - Gushcha Anton
  • O3O - Orfeo Da Viá
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
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 807 downloads total

Score:
1.9
Short URL:
serial-port.dub.pm