I got the sources and the pom file form https://mvnrepository.com/artifact/com.ghgande/j2mod/2.5.3. I only see the one pom file and none in the sub directories. When I try to build from source using mvn I see the same issue, no classes are generated. I see this warning message: [WARNING] Bundle com.ghgande:j2mod:bundle:2.5.3 : Unused Import-Package instructions: [jSerialComm] [WARNING] Bundle com.ghgande:j2mod:bundle:2.5.3 : The JAR is empty: The instructions for the JAR named com.ghgande.j2mod did...
I am wondering if the server can be set to read only? I do not want any client to use any of the write functions, preventing the spi from being altered from the client. Blocking 0x05,0x06,0x0F,0x10 and 0x16 function codes -- David Hirst hirst689@gmail.com
Hi, I know I asked another question here and find a way around it, and it goes from getting response's transactionId but for some reason whenever i try AbstractModbusMaster udpModbus = blabla... udpModbus.getTransport().readResponse().getTransactionID(); It returns timeout exception. Is there a way to get this?
As the title says, I dont get "No Response" message when the connection is lost But what i want is when the connection is lost response is not null so its not throwing an exception in AbstractModbusMaster class' getAndCheckResponse() method. Because even though the connection is lost, its returning the same response over and over. And program doesnt give me any exceptions or anything. Just repeating over same response. So I had the idea to check the transactionId and if its the same I'd be throwing...
As the title says, I dont get "No Response" message when the connection is lost
I've the below code when the application I get data from is not open, modbus throws no response exception but when I connect to the application first time and then close the application it doesnt send no response exception. It may be cause of buffer thing, I'm not sure but it still gives the data it read from last time. How can I solve this issue? Map<String,String> areaBitVectorMap = new Hashtable<>(); for(Pair<Area,AbstractModbusMaster> AreaModbusPair : area_modbus_pairs){ AbstractModbusMaster...
I've the below code when the application I get data from is not open, modbus throws no response exception but when I connect to the application first time and then close the application it doesnt send no response exception. It may be cause of buffer thing, I'm not sure but it still gives the data it read from last time. How can I solve this issue? Map<String,String> areaBitVectorMap = new Hashtable<>(); for(Pair<Area,AbstractModbusMaster> AreaModbusPair : area_modbus_paris){ AbstractModbusMaster...
Hello All - question about modbus TCP slave. I have the simple tutorial working and masters can connect to it and read/write the process image Question: On my slave device, what's the best way to detect if the process image has been changed (by the master). This is the sample code I used for reference: https://github.com/steveohara/j2mod/wiki/How-to-create-a-Modbus-Slave
This is a new question on what seems to be an old topic, but has this issue been fixed? When I run simple j2mod examples in Windows, I still get socket write errors with the identical symptoms detailed above. And when I run them in Linux, I get connection refused. Windows 10, ARM linux on Toradex iMX7 system on module no firewalls are running V2.3.4 of j2mod (released June 2017) running with loopback address Is there a difference between V2.3.4 for Maven and the jar on this site (1.06)? I saw that...
This issue was on j2mod-1.06. Found it solved in j2mod-2.3.3
I have the same issue. I connected my TCPMasterConnection to the modbus TCP emulator (modsim32). If m_Transaction.setReconnecting(false); then m_Transaction.execute() throw java.lang.NullPointerException at com.ghgande.j2mod.modbus.io.ModbusTCPTransport.writeMessage(ModbusTCPTransport.java:151) at com.ghgande.j2mod.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:218) The higher frequency of requests (lower delays in Thread.sleep() inside loop) - the fasters NullPointerException appears....
I have the same issue. I connected my TCPMasterConnection to the modbus TCP emulator (modsim32). If m_Transaction.setReconnecting(false); then m_Transaction.execute() throw java.lang.NullPointerException at com.ghgande.j2mod.modbus.io.ModbusTCPTransport.writeMessage(ModbusTCPTransport.java:151) at com.ghgande.j2mod.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:218) The higher frequency of requests (lower delays in Thread.sleep() inside loop) - the fasters NullPointerException appears....
I have the same issue. I connected my TCPMasterConnection to the modbus TCP emulator (modsim32). If m_Transaction.setReconnecting(false); then m_Transaction.execute() throw java.lang.NullPointerException at com.ghgande.j2mod.modbus.io.ModbusTCPTransport.writeMessage(ModbusTCPTransport.java:151) at com.ghgande.j2mod.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:218) The higher frequency of requests (lower delays in Thread.sleep() inside loop) - the fasters NullPointerException appears....
The change concerning the number of bytes to be read (from 4 to 5) was wrong.
The change concerning the number of bytes to bre read (from 4 to 5) was wrong.
Hi, since almost a year we see sporadic errors complained by a modbus master on some...
I propose you put the modbusSlaveException.printStackTrace() into the block of the...
Hi All, I'm getting incorrect (some random) values for registers that contain negative...
Also... Log4j version one has been "end of lifed", suggest Version 2. Found some...
To fellow users of this driver, there is a non-intuitive "gotcha" with respect to...
Also... Log4j version one has been "end of lifed", suggest Version 2. Found some...
Also... Log4j version one has been "end of lifed", suggest Version 2
Hello folks, Am building a Raspberry Pi solution and am implementing with your Modbus...
I was wondering if this type of scenario is supported with j2mod, can anyone point...
Hi, I'm compile j2mod on android and I see topics say it's possible. But the first...
Hi Julie, Hi Mark, we're having the same question here. For a plc simulator we'd...
Hi Julie and j2mod community, We are using the library as a gateway to RS232 devices...
Hello: I have an active TCP connection that has been verfied. When I run the code...
Hey there ! I use ModbusTCP, RTU and RTU-TCP daily but not with this library. To...
I am not sure what you mean. As far as I know each request gets a feedback message....
I'm also wondering it there is any general documentation or samples available for...
It's OK. I finally found an example and it actually works if you convert the code...
It's OK. I finally found an example and it actually works. https://github.com/op...
Hey guys, I am new to j2mod and modbus. I need to implement a modbus TCP server and...
Hey guys, I am new to j2mod and modbus. I need to implement a modbus TCP server and...
Hey guys, I am new to j2mod and modbus. I need to implement a modbus TCP server and...
I have completely modified my code but I still get the exact same error. (Most of...
I have completely modified my code but I still get the exact same error. (Most of...
I have completely modified my code but I still get the exact same error. Here it...
Hello ! There is the following exception I can't resolve : com.ghgande.j2mod.modbus.ModbusIOException:...
Hello ! There is the following exception I can't solve : com.ghgande.j2mod.modbus.ModbusIOException:...
slf4j is not supported in compact profiles.
Julie, I have the need for something similar to that presented by Draco Wang . The...
That's not entirely accurate: it depends on slf4j, and there are lighter implementations...
Please note that it isn't Exception 91, but an Exception in line 91 of SerialConnection....
Sorry, nevermind. I created an MCVE and when the issue reproduced I checked the master....
And now I just realized v2.1 uses SLF4J, which isn't supported on the platform I'm...
I now see that that's what Steve O'Hara did already, so one should look there.
I just realized there was a maven repo and am going to try out v2.1 Just in case,...
I'm writing an application that runs a Modbus slave. Within the application, I need...
Hi all, i am not getting any reponse in ModbusTCPTransport.java. when i call readResponse()...
This implementation is forked from jamod, but while that one is already mavenized,...
my jars
Hello. I have code //import java.net.; //import java.io.; import net.wimpi.modbus.;...
Hello all, I started playing initially with the jamod library and enjoyed it for...
v2.0 is now availabe as a production release from Maven <dependency> <groupId>com.ghgande</groupId>...
v2.0 is now availabe as a production release from Maven <dependency> <groupId>com.ghgande</groupId>...
Check out the v2.0 - this is a junit tested scenario so you should find it works...
Same goes for the ModbusCoupler. It has a unit_id field (private), but no way to...
connect/disconnet in a singleton and the rest ist thread-safe: is this also valid...
Thank you! it does compile and works drop-in. Unfortunately (IMO) you decided to...
After very intensive re-development work, I am pleased (and relieved) to announce...
v2.0 is now available on Maven Central - you can also get to the new host here https://github.com/steveohara/j2mod...
Thanks for the confirmation. 'extremely brittle' sounds like 'don't even think about...
Hi Steve, Great to hear about the Apache 2.0 license. My Github username is jhansen2015....
This is fixed in v2.0 where the whole serial interface has been re-written to use...
This has been incorporated in v2.0 - available soon
SourceForge needs emoji's so I can "++" your comments about the "facade" package...
Steve - Thanks. We should be able to remove the modpoll dependency once c2mod has...
I have reverted the license back to Apache 2.0 Modpoll is neccesary as a way of inependently...
Steve - We need to get the ALv2 versus LGPL issue resolved. The Free Software Foundation...
That's correct - if you keep the connect and disconnect methods as part of a startup...
I don't remember all the problems, but remember that the execute() method may have...
The idea is to keep a singleton of a connected ModbusTCPMaster around. The connect...
Josh - Done.
https://sourceforge.net/p/j2mod/tickets/ Josh Joshua Hansen (541) 760-7685 ZAPS Technologies,...
Hi Julie, Can you grant me permission to create tickets in the j2mod project? That...
Hi Steve, Nice work! Q. What's your take on the license? Will you change it back...
Steve - Yes! It was a very maddening experience! The code is also fairly brittle,...
Progress Update: You know how you someties start a job and think, "this won't take...
Progress Update: You know how you someties start a job and thing, "this won't take...
Progress Update: You know how you someties start a job and thing, "this won't take...
Progress Update: You know how you someties start a job and thing, "this won't take...
No, it's not thread safe. The connect and disconnect calls cannot be interleaved....
I thought one more time about "without some lower level exception occuring, you get...
Dear all is it safe to use a single instance (stored in a 'singleton' or static)...
latest code (source) from sourceforge (February 14th). Beeing in the same network...
Glad to hear that!
After a couple of hours getting the unit tests working, I've somewhat changed my...
Steve - There are devices which actually use Modbus/UDP. I've not regularly followed...
As some of you may know, I'm working on j2mod 2.0 and I'm wondering if we should...
Julie,thanks for your kindly help. I am not quite understanding what you mean, i...
It's hard to tell from the code what may be happening, but I'll answer the question...
Hi Steve, Nice to see the "JDK1.6" in there. Was it problematic to downgrade from...
Hi Steve, Regarding logging, do you have any objections to switching to SLF4J? It's...
Hi Steve, That all sounds great except for the license change to LGPL. Anything short...
Retried with a different (simplistic) approach: public static void testSimple() throws...
Dear all I'm trying to interact with an ABB 595 over modbus/tcp. It basically works...
Hi Julie I'm happy to transfer the repo - you will need to get a pull request regime...