Comments (6)
Sorry for the slow response; I was distracted by IETF 115.
I cannot reproduce it at this point, even though I tried two flavours of hardware (USB to RS-485) tokens.
I made many changes, but not to this core, so this leaves me a bit dissatisfied. Alas, I suppose we should close for now, and perhaps I can reopen the issue if I run into this again. I will then also supply the mbusd debugging output.
from mbusd.
It's very instructive to remove the power from one device while scanning multiple.
from mbusd.
This is an example where I rip the power from one device and the other seems to end up queued forever while mbusd
blocks on the powerless one and continues to try to send transaction 000e. Not ideal from a stability viewpoint :-)
Connected. Me Happy.
Entering loop. Should exit when mbusd disconnects.
DEBUG: Modbus TCP send = 00 00 00 00 00 06 03 03 00 32 00 04 -> #12
DEBUG: Modbus TCP send = 00 01 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 00 00 00 00 0b 03 03 08 00 00 00 15 00 12 00 01 -> #17
Device temperatures: 0 21 18 1
DEBUG: Modbus TCP recv = 00 01 00 00 00 07 10 04 04 00 d4 02 5a -> #13
Temperature 21.200000, moist 60.200000%
DEBUG: Modbus TCP send = 00 02 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 02 00 00 00 07 10 04 04 00 d4 02 5a -> #13
Temperature 21.200000, moist 60.200000%
DEBUG: Modbus TCP send = 00 03 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 03 00 00 00 07 10 04 04 00 d4 02 5a -> #13
Temperature 21.200000, moist 60.200000%
DEBUG: Modbus TCP send = 00 04 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 04 00 00 00 07 10 04 04 00 d4 02 5a -> #13
Temperature 21.200000, moist 60.200000%
DEBUG: Modbus TCP send = 00 05 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 05 00 00 00 07 10 04 04 00 d4 02 59 -> #13
Temperature 21.200000, moist 60.100000%
DEBUG: Modbus TCP send = 00 06 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 07 00 00 00 06 03 03 00 32 00 04 -> #12
DEBUG: Modbus TCP recv = 00 06 00 00 00 07 10 04 04 00 d4 02 5a -> #13
Temperature 21.200000, moist 60.200000%
DEBUG: Modbus TCP recv = 00 07 00 00 00 0b 03 03 08 00 00 00 15 00 12 00 01 -> #17
Device temperatures: 0 21 18 1
DEBUG: Modbus TCP send = 00 08 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 08 00 00 00 07 10 04 04 00 d3 02 59 -> #13
Temperature 21.100000, moist 60.100000%
DEBUG: Modbus TCP send = 00 09 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 09 00 00 00 07 10 04 04 00 d4 02 59 -> #13
Temperature 21.200000, moist 60.100000%
DEBUG: Modbus TCP send = 00 0a 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0a 00 00 00 07 10 04 04 00 d4 02 59 -> #13
Temperature 21.200000, moist 60.100000%
DEBUG: Modbus TCP send = 00 0b 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0b 00 00 00 07 10 04 04 00 d4 02 59 -> #13
Temperature 21.200000, moist 60.100000%
DEBUG: Modbus TCP send = 00 0c 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 0d 00 00 00 06 03 03 00 32 00 04 -> #12
DEBUG: Modbus TCP recv = 00 0c 00 00 00 07 10 04 04 00 d4 02 59 -> #13
Temperature 21.200000, moist 60.100000%
DEBUG: Modbus TCP recv = 00 0d 00 00 00 0b 03 03 08 00 00 00 15 00 12 00 01 -> #17
Device temperatures: 0 21 18 1
DEBUG: Modbus TCP send = 00 0e 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 0f 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 10 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP send = 00 11 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 12 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 13 00 00 00 06 03 03 00 32 00 04 -> #12
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP send = 00 14 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 15 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP send = 00 16 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 17 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP send = 00 18 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP send = 00 19 00 00 00 06 03 03 00 32 00 04 -> #12
DEBUG: Modbus TCP send = 00 1a 00 00 00 06 10 04 00 01 00 02 -> #12
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP recv = 00 0e 00 00 00 03 10 84 0b -> #9
DEBUG: Modbus TCP send = 00 1b 00 00 00 06 10 04 00 01 00 02 -> #12
from mbusd.
In case you find it useful, this is the generating code for the output above.
from mbusd.
Interestingly, the return of power does not recover the interaction. The state of mbusd
appears disturbed, and it cranks out only those failures for the once-failed transaction.
from mbusd.
Could you also provide the mbusd debug log file, as described here?
from mbusd.
Related Issues (20)
- Error when building on Raspberry Pi HOT 2
- Docker build failing HOT 1
- Docker-compose.yaml file ? HOT 4
- segv on high frequent register fetch
- usr/bin/mbusd: line 1: syntax error: unexpected "(" when running docker
- help
- /dev/ttyUSB0 is starting like /dev/ttyS0 HOT 1
- Crash due to missing `logw()` argument HOT 3
- '/W' requires an argument HOT 1
- version 0.5.1. HOT 1
- Modbus RTU - 6 Digit Holding Register HOT 2
- publish docker image to ghcr & auto-build in github actions
- Add support to modbus ascii
- /dev/ttyS0? HOT 5
- Help with usb to RS485 - SH-U11 HOT 1
- CRC Enable/Disable HOT 3
- mbusd can support modbus function 20 (0x14) Read File Record and function 21 (0x15) Write File Record ..
- Using IOCTL for GPIO control HOT 4
- Make use of Linux RS-485 Support HOT 2
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 mbusd.