Comments (5)
I also recently got the following error:
1485184870:634270 conn[192.168.2.51]: state CONN_TTY deadlock.
from mbusd.
Hmm, thanks for reporting. Since mbusd is single-threaded application, re-entrancy shouldn't be an issue. I will look into it, but could you provide some context? What OS and hardware are you using (especially tty), also some info about client app and typical requests pattern.
from mbusd.
Linux 2.4.21-rmk1 #1 Mon Mar 5 15:00:39 CET 2012 armv4l unknown
Cirrus Logic ARM EP7312-CBZ http://ca.mouser.com/ProductDetail/Cirrus-Logic/EP7312-CBZ/?qs=bUPhaerQQeGSZ7MA5Dwd%2FA%3D%3D
I am not using RxTx control, it's a full duplex UART.
I am using qModmaster https://sourceforge.net/projects/qmodmaster/ as a client and I am running two of them with 123 register request every second.
Here's a sample request and response:
INFO 2017-02-17T16:33:33.685 ..\qModMaster\src\modbusadapter.cpp @ 379 Rx Data : "26 73 00 00 00 f9 01 03 f6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0d 00 02 00 00 00 00 00 02 00 11 00 11 00 10 00 22 00 18 00 c0 00 a8 00 02 00 3b 00 ff 00 ff 00 00 00 00 00 c0 00 a8 00 02 00 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
INFO 2017-02-17T16:33:33.685 ..\qModMaster\src\modbusadapter.cpp @ 226 Modbus Read Data return value = 123
INFO 2017-02-17T16:33:33.685 ..\qModMaster\src\mainwindow.cpp @ 543 Packets sent / received = 9843 , errors = 4
INFO 2017-02-17T16:33:34.574 ..\qModMaster\src\modbusadapter.cpp @ 161 Modbus Transaction. Function Code = 3
INFO 2017-02-17T16:33:34.574 ..\qModMaster\src\modbusadapter.cpp @ 190 Modbus Read Data
INFO 2017-02-17T16:33:34.574 ..\qModMaster\src\modbusadapter.cpp @ 360 Tx Data : "26 74 00 00 00 06 01 03 13 ec 00 7b "
INFO 2017-02-17T16:33:34.761 ..\qModMaster\src\modbusadapter.cpp @ 379 Rx Data : "26 74 00 00 00 f9 01 03 f6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0d 00 02 00 00 00 00 00 02 00 11 00 11 00 10 00 22 00 19 00 c0 00 a8 00 02 00 3b 00 ff 00 ff 00 00 00 00 00 c0 00 a8 00 02 00 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
INFO 2017-02-17T16:33:34.761 ..\qModMaster\src\modbusadapter.cpp @ 226 Modbus Read Data return value = 123
INFO 2017-02-17T16:33:34.761 ..\qModMaster\src\mainwindow.cpp @ 543 Packets sent / received = 9844 , errors = 4
from mbusd.
@dvader any updates on that?
from mbusd.
@3cky plz close that ticket
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
- service stops working after several hours - looking for help HOT 7
- Support more complex device names HOT 1
- /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
- Missing device is retried forever [and blocks anything else] HOT 6
- 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.