Author Topic: Generic Network Driver  (Read 1891 times)

Paul_Sharrock

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Generic Network Driver
« on: September 11, 2011, 11:42:05 pm »
I am using this driver to communicate with an RS232 Ethernet adapter, and receiving and sending data works great.

However, at times the connection resets, and disconnects the connection. The debug log shows that the connection has been reset, and on some occasions it shows a new connection has been made and on some occasions it does not. Even when the log states a connection is made the device stops receiving data and NETSTAT shows no open port to the IP address.

To cure the problem I need to restart the driver and then the connection is remade.

Config below:-

Display Name: Generic Network Driver
Scripting Identifier: PoolController
Driver Name: Generic Network Driver
Enabled: Yes
Record History: No
Log: Yes
Status: Running

Configuration Settings:
  Delimiter: \r\n
  Host Name: 10.237.0.22
  New Line String: \r
  Port: 5000

Regards
Paul

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Generic Network Driver
« Reply #1 on: September 12, 2011, 09:30:16 pm »
The generic network driver currently only supports reconnecting when data is sent. So if the connection is lost, the driver will not attempt to reconnect until one of the Send actions is executed.

I don't think that this a bug but more of a limitation of the driver.

I'll take a look at what it will take to enable automatic reconnection tries immediately after a disconnect.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Generic Network Driver
« Reply #2 on: September 12, 2011, 09:46:28 pm »
I was able to add support for this, so it will be available in the next beta release.
John Hughes
Codecore Technologies