Łukasz Walukiewicz

Results 20 comments of Łukasz Walukiewicz

I'd like to, but not any time soon (first I'd have to test, document and publish all other projects).

That would be great!

It's exposed in the `RtuTransport` as the [`eofTimeout`](https://github.com/morkai/h5.modbus/blob/c051b6cbce4ae6c8cc81f9989081f5b773d19c87/lib/transports/RtuTransport.js#L305) option - a number of milliseconds after the last received byte after which end of frame is assumed. It's Node.js so you...

Hey! I've added a few examples to the [example/](https://github.com/morkai/h5.modbus/tree/master/example) directory. Check out the [verbose-init-tcp-ip.js](https://github.com/morkai/h5.modbus/blob/a23612890afcea7ec8d239d01bbb18579dbc3edb/example/verbose-init-tcp-ip.js) especially, as it also has some comments. The automated tests are not finished, so there may...

You'll need [node-serialport](https://github.com/voodootikigod/node-serialport): ``` npm install serialport ``` Then, create the master like so: ``` js var SerialPort = require('serialport').SerialPort; var modbus = require('h5.modbus'); var serialPort = new SerialPort('/dev/ttyUSB0', {...

You have to listen for the `error` events on the transaction object returned by the `readHoldingRegisters()` or set the master's `supressTransactionErrors` to `true` (master and transaction objects are node.js EventEmitters...

``` js master.readHoldingRegisters(0, 1, {unit: 1}) ``` What Connection and Transport are you using? Serial RTU?

Why don't you pass `0` as the first argument? ``` js // readHoldingRegisters(address, quantity, options) master.readHoldingRegisters(1, 1, {unit: 1}) // results in frame // 01 - unit // 03 -...

Modbus RTU separates frames by not sending anything for a specific amount of time ("at least 3 1⁄2 character times of silence between frames", [see Wikipedia](http://en.wikipedia.org/wiki/Modbus#Frame_format)). I don't think you...

Hey! Try increasing the master's `defaultTimeout` option or transaction's `timeout` option. See https://gist.github.com/morkai/f7b11f971682fc8e5598