Francis Gulotta
76b71913f4
fix(docs): Add a note about windows support
...
Closes #1299
2017-08-11 19:24:22 -04:00
Francis Gulotta
e83ec4e585
fix(docs): correct default highWaterMark to 65536 bytes
2017-08-10 16:30:33 -04:00
Francis Gulotta
335ede97fa
6.0.0-beta1
...
### Bug Fixes
* **linux:** The productID should be a number not a description string ([#1279 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1279 )) ([bf46f68 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/bf46f68 ))
* **tests:** fixup for [#1279 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1279 ) ([#1285 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1285 )) ([56074f6 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/56074f6 ))
* **windows:** Add option to disable RTS ([#1277 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1277 )) ([5b8d163 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/5b8d163 ))
* **windows:** Parse more types of pnpIds ([#1288 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1288 )) ([0b554d7 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/0b554d7 )), closes [#1220 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1220 )
### Chores
* **binaries:** Lets switch to prebuild! ([#1282 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1282 )) ([8c36e99 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/8c36e99 ))
### Features
* **test:** tone down codecov comments ([#1289 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1289 )) ([749ffac ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/749ffac ))
### BREAKING CHANGES
* **binaries:** I'm considering the switch to `prebuild` a breaking change because it's substantially changes our install processes. It's also possible the install flags to ensure downloading or building from source has changed slightly. That's not our api per say, but it's enough.
* **windows:** We previously hard coded to have RTS on for windows at all times it now default to off.
2017-08-07 18:38:00 -04:00
Francis Gulotta
749ffacd53
feat(test): tone down codecov comments ( #1289 )
2017-08-06 23:35:33 -04:00
Francis Gulotta
0b554d7368
fix(windows): Parse more types of pnpIds ( #1288 )
...
This should give us more serial numbers on windows.
fixes #1220
2017-08-06 23:21:37 -04:00
Francis Gulotta
5662df04b7
chore(changelog): Try out conventional-changelog ( #1287 )
...
Works great!
2017-08-06 22:22:52 -04:00
Francis Gulotta
902a62c8af
chore(docs): Update info about prebuild and contributing ( #1286 )
2017-08-06 21:37:25 -04:00
Francis Gulotta
56074f606f
fix(tests): fixup for #1279 ( #1285 )
2017-08-06 20:49:51 -04:00
Erik Kallen
bf46f682d4
fix(linux): The productID should be a number not a description string ( #1279 )
...
fix : #1278
2017-08-06 20:28:53 -04:00
greenkeeper[bot]
648a7f556a
chore(package): update sinon to version 3.0.0 ( #1280 )
2017-08-06 20:26:32 -04:00
Francis Gulotta
8c36e99694
chore(binaries): Lets switch to prebuild! ( #1282 )
...
- Build once on each platform (win32, win64, linux32, linux64, osx)
- upload to github
- Binaries for windows are megabytes smaller!
- Now 60 binaries per release!?!?!?!?
- Builds are much easier to manage
- Removes the bundled node-pre-gyp which was big `npm i --production` went from 11mb to 4.9Mb. `prebuild-install` is still larger than all our binaries but smaller than `node-pre-gyp` none the less.
BREAKING CHANGE: I'm considering this a breaking change because it's substantially changes our install processes. It's also possible the install flags to ensure downloading or building from source has changed slightly. That's not our api per say, but it's enough.
2017-08-06 20:26:19 -04:00
Joshua Shireman
5b8d163861
fix(windows): Add option to disable RTS ( #1277 )
...
* Add option to disable RTS on Windows
* Add support for XON / XOFF on Windows. This is probably not feature complete in terms of missing the XonChar, XoffChar, XonLim fields of DCB, but I am not as familiar with this aspect of serial comms.
BREAKING CHANGE:
We previously hard coded to have RTS On for windows at all times.
2017-08-06 14:57:33 -04:00
Francis Gulotta
92c7dd4bfd
docs: Fix missing new thanks to @patrykkalinowski
2017-07-31 23:05:40 -04:00
Francis Gulotta
c90ffbbb28
add a keyword
2017-07-30 12:35:18 -04:00
Francis Gulotta
88b701cc3f
Bump to 5.0.0 🎉
2017-07-30 00:34:26 -04:00
Francis Gulotta
af82d40cdb
Remove console.log from regex parser
2017-07-29 20:28:39 -04:00
Francis Gulotta
9c964c2acf
bump to 5.0.0-beta9
2017-07-29 20:20:11 -04:00
Francis Gulotta
c65bfc310e
Show MockBinding.reset() in examples
2017-07-29 20:02:03 -04:00
Francis Gulotta
4fc1404c8c
[all] Unify the serialport.list output ( #1266 )
...
- [osx] remove the 0x from productID and locationId and vendorId
- [linux] remove the starting 0x from any values, small refactor
- [linux] Fixup output using the hex encoded fields
- [windows] Grab the serial number from the pnp id
- Isolate list functions to their own platform files (c++)
- Better ensure our serialports fields are present
closes #1220
2017-07-29 19:40:39 -04:00
Francis Gulotta
8b07a48576
[all] Change parsers to be es6 classes
...
- Reduces code a bit
- Provides a better code example
- clean up options passing into transform streams
2017-07-29 17:41:53 -04:00
Francis Gulotta
ae898304c7
Add a timeout for the open/close integration test
2017-07-29 12:55:50 -04:00
Francis Gulotta
63c5554fee
[unix] fix a bug when poller errors would be unhandled
...
They will now be handled by the reads and writes that use it.
2017-07-29 01:37:09 -04:00
Francis Gulotta
cc779624db
[all] Add promise support to serialport-repl and improve docs
2017-07-29 01:32:43 -04:00
John Whittington
90931ddb04
Move parser object into port open
2017-07-27 10:34:02 -07:00
John Whittington
bbeac32614
Use parser not data callback without time and linting
2017-07-27 10:34:02 -07:00
John Whittington
7816f29607
Comments and number of bytes to send
2017-07-27 10:34:02 -07:00
John Whittington
72a461f0cf
Drain receive manual test added
2017-07-27 10:34:02 -07:00
Francis Gulotta
c69536915d
Update template
2017-07-26 15:45:30 -07:00
Amila Welihinda
71b744dbac
Fixed const typo
2017-07-26 15:44:25 -07:00
Francis Gulotta
f69407dc6a
[all] Change the default high water mark to 64k ( #1255 )
...
The 16k water mark was set a long time ago, 64k is the default for `fs.ReadStream` You should experiment with your application and baudrate.
We also now allocate a buffer pool during object initialization because 99% of the time we'll be doing during runtime and why not take the perf hit upfront instead on first byte.
A side note: The source behind `Buffer.poolSize` and how buffers are allocated and the `ReadStream`'s `BufferList` are fascinating reads. It's obvious a lot of work has gone into these systems.
2017-07-24 18:24:40 -07:00
Francis Gulotta
470afbcae6
Queue drains
...
Drains don't make any sense if called on a closed port or before any writes. I'm queuing drains so they run one the port opens, just like `write()` this allows for a much easier time ensuring all data is written in a script.
- `drain()` waits for an open event if the port is closed
- mock-bindings now cancel pending reads
closes #1229
2017-07-24 17:03:05 -07:00
greenkeeper[bot]
38606f492a
fix(package): update bindings to version 1.3.0
2017-07-24 13:43:19 -07:00
Jesus
2e45249078
lint & fixes
2017-07-23 08:19:39 -07:00
Jesus
c32ea9b5dd
readline parser
2017-07-23 08:19:39 -07:00
Jesus
caffe7167a
tests
2017-07-23 08:19:39 -07:00
Jesus
d55979d42a
linted
2017-07-23 08:19:39 -07:00
Jesus
6de1d2bc28
call udevadm single time
2017-07-23 08:19:39 -07:00
Francis Gulotta
61cbcb39fe
gussy up the docs and keywords describing uses
2017-07-22 17:46:27 -07:00
Francis Gulotta
e8d9d2b16c
Add write recording capabilities to the mock bindings ( #1249 )
...
- change echo default
- add a bunch of logging and serialport serialnumbers
2017-07-22 10:42:32 -07:00
Rick Waldron
fb86820e4e
Lift arguments object reference up to origin scope
...
See explanation: https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1245
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-21 14:44:06 -04:00
Francis Gulotta
468dfc29d7
[osx] Return the tty instead of the cu for osx serialports
...
For the record, tty's are `DialinDevice`s and cu's are `CalloutDevice`s
Thanks to @kishinmanglani for helping me solve this!
The closest we could come to docs. https://opensource.apple.com/source/IOSerialFamily/IOSerialFamily-7/IOSerialFamily.kmodproj/IOSerialKeys.h
2017-07-18 21:14:25 -04:00
Rick Waldron
45ea93a9b2
Add more npm ignorable things to the .npmignore file
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-18 18:01:09 -04:00
Francis Gulotta
6f3d5e1cae
Bump to beta8
2017-07-17 09:28:24 -04:00
Francis Gulotta
c47b924aa1
Baudrate.250000 ( #1239 )
...
* Test for 250k baud rate
2017-07-16 22:42:51 -04:00
Francis Gulotta
9a826e5011
add a little to the upgrade guide
2017-07-16 22:28:48 -04:00
Francis Gulotta
61e23d0907
[all] Have drain wait for pending JS write operations before calling system drain
...
This should allow drain to be a lot easier to use.
Bonus:
- More logging!
- Bluebird in tests with it's great long stack traces!
2017-07-16 22:05:58 -04:00
Francis Gulotta
b822721855
refactor some test logic
2017-07-16 16:21:08 -04:00
Francis Gulotta
f97ea3aec3
notes on port.write error callback
2017-07-16 15:19:08 -04:00
Francis Gulotta
9c67ee2a43
[unix] Move setting up the baudrate to the end of the open()
...
- Test 1000000 baud
2017-07-15 13:06:44 -04:00
Francis Gulotta
2361fa599a
Add the ttyAP subsystem to serialport list
2017-07-15 12:53:36 -04:00