I’m having an issue with a system that I’m playing around with. I’m trying to read from a serial port via a tag change gateway script, but every time i try to open it the gateway is crashing.
Gateway version 8.1.7 (b2021060314)
Looking at the wrapper log all I can see is :
INFO | jvm 2 | 2021/07/14 19:40:01 | I [p.DesignSession ] [18:40:01]: Socket connected to session. pageId=session-props session-project=Weighing_Room
ERROR | wrapper | 2021/07/14 19:42:02 | JVM exited unexpectedly.
STATUS | wrapper | 2021/07/14 19:42:07 | Reloading Wrapper configuration…
STATUS | wrapper | 2021/07/14 19:42:08 | Launching a JVM…
INFO | jvm 3 | 2021/07/14 19:42:08 | WrapperManager: Initializing…
I have tried using the system.serial. port script strait from the users manual, but it still does the same thing.
Issues I was seeing with the context manager were user error. It looks like it is working as expected in the 8.1.3+.
@kevin.keefe is there anything else within Ignition that might be connecting to the same serial port? Also, is Windows Device Manager showing everything being ok with the COM port?
I am having a similar issue with Ignition v7.9.16 by accessing the gateway serial port to read modbus data via a usb/RS485 adapter. The serial port is installed in Windows (Server 2019) properly, and a Modbus serial device is created on the gateway. Once I create a tag accessing this device, the gateway crashes. On restarting the gateway from the GCU it restarts and shows running and then crashes immediately and seems to enter a state where it is perpetually trying to do something (don’t know what), the status icon keeps refreshing, but doesn’t come back online. The only way I can restart it is by using the GCU to stop it completely, then manually delete the serial gateway module, then restart the gateway. If I don’t force stop the gateway I can’t delete the serial module as it is being used by java.exe. The serial client module does not have issues and I have used this successfully via the same gateway. This has been observed on multiple gateways so is not hardware specific (although all are similar Dell servers), and affects any type of serial port access on the gateway, modbus, ascii, etc.
Ignition v7.9.x implements serial port support via the jserial library. It is old and poorly maintained. For v8.x, they rewrote their implementation around the jSerial library. Which is well supported and maintained. In this situation, the default answer is “Upgrade Ignition”. Presumably to v8.1, so you’ll still be on a long-term supported version.
However, it so happens that I implemented my Advanced Modbus Driver with the jSerial library, even for v7.9. That might get you out of trouble.