Comments (4)
I've just noticed that both within FUXA's web UI as well as in fuxa\runtime\devices\modbus\index.js (Lines 640 and 695), the addresses used are 6 decimal digits, and not 5. Apologies if I'm mistaken as I'm not too familiar with JS, or Modbus in the first place, but could this be the source of my issue, as well as some of the other issues submitted on Modbus RTU? From what I see online, Modbus addressing is usually 5 decimal digits as per the below.
This would also explain why my issue is only present for IOT Board and not for Test, as Test is reading from address 000000 (6 digits), and I'd assume reading from address 00000 (5 digits) wouldn't be different, where IOT Board is trying to read from address 400000 (6 digits), but values are stored at 40000 (5 digits).
from fuxa.
Hello @raHa358,
The number of digits in addresses are irrelevant in this case. The table that you sent is classic Modbus, where the devices implement only 1-9999 "memories" for each FC. Modbus today uses 1-65536, with the 4x, 3x, 1x and 0x been only the indication of different memory areas.
Now about your zero length and CRC erros. Can you use Wireshark to investigate how fuxa is forming the request to the devices?
There is a know issue with too fast request and Ethernet por where the requests are not sent correctly.
from fuxa.
Couldn't quite figure out how to monitor USB using wireshark, so here's the logged data packets from a different port sniffer. Polled the device once from FUXA for the first 4 holding registers. Packets 40 and 54 seem to be Tx and Rx.
Edit: It would seem I confused myself reading this device's documentation through google translate from chinese, and I should've been reading from address 40000 within the memory area 4x. So 44000 and onwards. Now that I put in the correct addresses, both of my devices are essentially in the same situation. Values can be read and written, but only one of every few transmissions is actually valid. I'll log the data packets to show both the ones with data length / CRC errors and the successful ones in a bit.
from fuxa.
Polled the device four times. The packets sent at 44:10 and 44:16 resulted in CRC Errors, and the packets at 44:07 and 44:13 were received properly.
from fuxa.
Related Issues (20)
- Security [POSSIBLE ISSUE] HOT 2
- [FEATURE] Manual resizing, by numerical values, of the width and height of a graphic object placed on the svg editor HOT 1
- [FEATURE]support Snap7 protocol in Nodejs 16 or 18 HOT 3
- [BUG] After undo action, zoom with shortkey(shift + wheel) will broken HOT 2
- [BUG] Scripting tag system functions not working properly HOT 4
- [QUESTION OR FEATURE] Mapped Tag value to a string HOT 1
- [BUG] Cannot remote control device using FUXA HOT 2
- [BUG] HOT 2
- [FEATURE] Alarm view without folding
- [FEATURE] About window size self-adaption HOT 6
- [QUESTION] How exactly the Authetication via Token works?
- [FEATURE] "Input value" element - Write on lost focus HOT 3
- [BUG]I While using the same view, the names of the points change by themselves. HOT 4
- damping of mqtt values HOT 1
- scaling formula HOT 1
- [BUG] NodeJs Version Compatibility HOT 2
- [FEATURE] Optimize client dist js for view only pages HOT 1
- Accepts mq messages to control the node values of another device HOT 2
- [BUG]SiemensS7 Plugin HOT 7
- [BUG] Multi view element background color
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 fuxa.