Comments (4)
Even Tried RTUBuffer
from node-modbus-serial.
Try the connectRTUBuffered
client.connectRTU("/dev/ttyAMA0", {baudrate: 9600, dataBits: 8, parity: 'even', stopBits: 1})
.then(read)
.catch(console.log)
will become:
client.connectRTUBuffered("/dev/ttyAMA0", {baudrate: 9600, dataBits: 8, parity: 'even', stopBits: 1})
.then(read)
.catch(console.log)
from node-modbus-serial.
can you check using the pymodbus:
a. install ( if you have python and pip )
$ sudo pip install pymodbus
...
b. run python
$ python
Python 2.7.13 (default, Jan 12 2017, 17:59:37)
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymodbus.client.sync import ModbusSerialClient as ModbusClient
>>> client = ModbusClient(method='rtu', port='/dev/ttyAMA0', timeout=1)
>>> client.connect()
True
>>> client.read_holding_registers(5,2).registers
[234, 234]
>>>
from node-modbus-serial.
Checked against ArduinoESP running TCP and RTU modbus, no crc errors.
Arduino code:
https://github.com/yaacov/ArduinoModbusESP
Test used as client:
https://github.com/yaacov/node-modbus-serial/blob/master/examples/simple.js
Fixed in v5.2.6 , closing.
from node-modbus-serial.
Related Issues (20)
- Help needed ECONNREFUSED HOT 2
- Illegal invocation (linux)
- Short requests (invalid length) can cause uncaught exceptions
- Latest version does not compile? HOT 8
- Why is the npm package name modbus-serial? HOT 1
- An abstraction layer over the modbus protocol HOT 2
- Port Not Open HOT 2
- Error after updating to 8.0.15 HOT 3
- Usage of isDebugEnabled to check the PDU raw data HOT 3
- Modbus TCP Connection was closed after 100 Seconds of Inactivity HOT 1
- ServerTCP causes uncaught exception if listen fails
- Permission denied, cannot open /dev/ttyUSB0
- Open-close function HOT 11
- Combination of modbus requests in the same TCP Frame. HOT 13
- Destroy function callback never to be called HOT 4
- Modbus RTU - CRC delay HOT 5
- Strange interaction with PLC when writing strings HOT 2
- multiple modbusRTU open/close will end with "Error Resource temporarily unavailable Cannot lock port" HOT 5
- ServerTCP: readHoldingRegisters throws Modbus exception 4: Slave device failure HOT 5
- Error "Buffer is not defined" during start Angular application HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-modbus-serial.