1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Modbus TCP/IP "PSH" Command |
From: | Michael Davidsaver <[email protected]> |
To: | [email protected] |
Date: | Fri, 05 Sep 2014 20:19:43 +0200 |
Hello Tobin,
First, I think you may be mixing your protocol layers. The only "PSH" I see in your packet dump is the TCP flag, which is a hint to the receiver's IP stack to deliver data to the user application. Unless Acromag is using a custom IP stack this is probably of no consequence. The exception are modbus/tcp errors, in this case indicating that an illegal function code (1) is being used. Most modbus devices implement only a few of the defined function codes (aka types of operations). Looking at your packet capture I see several strange things. 1) The duplicate acks with 300ms delay are an indication of packet loss incurring a TCP retransmit. 2) The host .182 is sending a truncated/invalid request of only 6 bytes (or wireshark is dropping packets). I'm guessing this has something to do with a missing drvModbusAsynConfigure() iocsh command, which is how the modbus driver is instructed as to which function code to use. An example using a modbus RTU serial device. drvAsynSerialPortConfigure("A", "/dev/ttyACM0", 0, 0, 0) dbLoadRecords("../../db/asynRecord.db","P=test:,R=portr,PORT=AREAD,ADDR=0,IMAX=40,OMAX=40") Defines asyn ports "AREAD" and "AWRITE" which use function codes 3 and 6 respectively. See the modbus driver documentation for the meaning of the other arguments. Michael On 09/05/2014 06:11 PM, Tobin Weber wrote:
|