Comments (5)
No, I use this module quite a lot on arm devices so I need a simpler serialport module. I'm not sure why I added the <7
but perhaps it was because of the errors.
Does version >=7
work with the module?
from stream.
I've not tested it with serialport 7.x because I haven't any serial modbus device but only tcp.
from stream.
Then you should be fine without that dependency at all.
from stream.
No, I use this module quite a lot on arm devices so I need a simpler serialport module. I'm not sure why I added the
<7
but perhaps it was because of the errors.Does version
>=7
work with the module?
I've just tested it with 8.0.5. It mostly works. writeSingleCoil() and writeSingleRegister() look ok, readHoldingRegisters() and readInputRegisters() too. But readCoils() and readDiscreteInputs() are not. They always return array of length Math.ceil(quantity/8)*8 and trails with zeros, so if { address: 1, quantity: 5 } even if all 8 coils are 1s it returns [1,1,1,1,1,0,0,0].
from stream.
No, I use this module quite a lot on arm devices so I need a simpler serialport module. I'm not sure why I added the
<7
but perhaps it was because of the errors.
Does version>=7
work with the module?I've just tested it with 8.0.5. It mostly works. writeSingleCoil() and writeSingleRegister() look ok, readHoldingRegisters() and readInputRegisters() too. But readCoils() and readDiscreteInputs() are not. They always return array of length Math.ceil(quantity/8)*8 and trails with zeros, so if { address: 1, quantity: 5 } even if all 8 coils are 1s it returns [1,1,1,1,1,0,0,0].
hmm.. I've switched back to 7 and i see the same. Is that expected?
from stream.
Related Issues (20)
- Error on install
- I Don't understanding is problem, please recommend to me. Thanks HOT 2
- How to set socket options for ModbusTCP connection? (e.g. keep-alive) HOT 1
- no connection timeout adjustment? HOT 1
- TypeScript error when using node 14 type definitions
- ReadCoils returns IllegalDataAddress if the value of the address is over 1016 HOT 1
- Keep getting GatewayTargetDeviceFailedToRespond HOT 18
- Can we split modbus-stream into modbus-stream-core and modbus-stream HOT 13
- Won't install [email protected] dependency on Mac OS 11.3.1 HOT 2
- Query three different registers HOT 12
- Error reading Modbus TCP/IP on a network HOT 1
- Convert response from ReadHoldingRegisters to Decimal HOT 2
- Problems with reconnect HOT 4
- How to catch tcp transport errors HOT 5
- Modbus ERROR: GatewayPathUnavailable HOT 7
- Question: Trying to reset a count function HOT 5
- TypeError: serialport is not a constructor
- Documentation HOT 2
- How does requests work with ReadFile and WriteFile? HOT 1
- How to set up a keepalive for client connections?
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 stream.