Comments (6)
Usually this situation arises when the application is run without privileges to bind to port 502 or another application has already bound itself. You can start the application with the debug argument "java -jar ModbusMechanic.jar -debug" from the ModbusMechanic directory to see verbose debugging information. Another helpful command to run is "netstat -an" to see if anything is listening on port 502. Look for LISTENING on the netstat list under port 502.
If another application has already bound itself to port 502, ModbusMechanic will not be able to start a TCP slave simulator. You may have already tried this but can you connect to your Ethernet or WiFi IP?
Iptables or firewall rules can also cause packets to be dropped. I like to use tcpdump for verifying packet flow.
from modbusmechanic.
Thanks for your quick response.
So I tried with -debug
, of course again with sudo
and it just says, that no bytes have been received.
I tried (with root privileges) netstat -an | grep 502
respectively netstat -an | grep LISTENING
, neither show any significant entrys.
When you say connecting to WiFi or Ethernet IP you mean trying to enter my wifi interface's , i.e. inet 192.168.178.68
in the IP field within ModbusMechanic?
EDIT: The following shows merely the Master's ModbusTCP request but no response:
from modbusmechanic.
I was able to reproduce this exact error and it turns out there was a typo in my code. The simulator slave ID was hardcoded to always be 1 so it was not answering on 3. This is fixed in 06df4d7 and version 2.4 which is now available. Thanks for your feedback and data, it looks like the typo had been overlooked for a while.
from modbusmechanic.
Ah that is very good to hear. Was thinking to try SlaveID 1, as 3 is needed for my Hardware but good on you figuring this out. Cheers!
However, the version I used to stumble upon this issue came from the .zip file linked to here, respectively this one (v2.4 via this way works great!).
However I went ahead and cloned the entire project to my local machine after your fix today and tried installing or launching it with linuxlauncher.sh
. Neither worked (I am running KDE Plasme 5), as it created the respective .desktop
when installing, I had to make it executable. But whenever trying to launch it nothing happens.
Not much of a bash semi-professional, but maybe it doesnt find the correct .jar
? At least its not in that directory.
from modbusmechanic.
Not sure I follow on the link. The link from the other website just links to the most recent release - it would have been 2.3 yesterday. As soon as 2.4 was posted it would be 2.4.
If you are cloning the project as opposed to launching the binary from the jar, the binaries will need to be built. I build them with the NetBeans IDE. When NetBeans builds the binaries, they go to the dist subdirectory, so this could be why. If the project is cloned but not built no jar file will exist.
from modbusmechanic.
Yeah didnt explain that to well, doesnt matter however.
Thanks for clearing things up. Everything works well!
from modbusmechanic.
Related Issues (19)
- Display error message when serial port fails to open on RTU scanner function HOT 3
- Just information how to use HOT 1
- Add signed int data types HOT 8
- Function Code 16 (0x10) Preset Multiple Registers mislabeled HOT 3
- RTU Slave Simulator doesn't update watch window HOT 2
- (Preset) Write Single Register (6) incorrect value transmission HOT 3
- [RTU] Allow for higher baud HOT 2
- java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 HOT 4
- Register scan returns inconsistent results HOT 9
- Can't download HOT 1
- Lower Baud Rates as low as 110 [Feature Request] HOT 1
- Using hide zero option also hides negative Float entries HOT 3
- Linux - show only active ports HOT 2
- USB serial ports Linux HOT 7
- Status update in slave simulator HOT 2
- Feature Request: Write single register (0x06) HOT 3
- java.jang.UnsatisfiedLinkError in macOS Monterey (Apple Silicon) HOT 5
- Not work RTU mode when press "Transmit packet" button HOT 3
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 modbusmechanic.