Skip Menu |
 

This queue is for tickets about the Protocol-Modbus CPAN distribution.

Report information
The Basics
Id: 81115
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Protocol-Modbus

People
Owner: cosimo [...] cpan.org
Requestors: mnni [...] dtu.dk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: RECV bug in transport TCP layer
Date: Mon, 12 Nov 2012 09:36:13 +0000
To: "bug-Protocol-Modbus [...] rt.cpan.org" <bug-Protocol-Modbus [...] rt.cpan.org>
From: Martin Nørby Nielsen <mnni [...] dtu.dk>
Download (untitled) / with headers
text/plain 853b
Hey I found a data receive limit when I was trying to read more than 46 registers at once the limit should be 123 words. I debugged the problem to the receive line in \transport\TCP.pm line 71 $sock->recv(my $data, 100); please correct to: $sock->recv(my $data, 256); This should make it possible to receive 123 registers including the overhead : maximum according to the TCP modbus standard thanks for some sweet code I use it to interface with LAB PLC's kind regards Martin Nørby Nielsen Udviklingsingeniør Department of Energy Conversion and Storage Danmarks Tekniske Universitet [dtu] DTU Risø Campus, P.O. Box 49 Frederiksborgvej 399, P.O. Box 49 Bygning 227 4000 Roskilde Direkte telefon +45 4677 5634 mobile: + 45 2136 3137 mnni@risoe.dtu.dk<mailto:mnni@risoe.dtu.dk> www.risoe.dtu.dk<http://www.risoe.dtu.dk/>
Download image001.gif
image/gif 58b
image001.gif
Download image002.gif
image/gif 1k
image002.gif
Download (untitled) / with headers
text/plain 119b
Martin, thanks for your feedback. Sorry for the late answer, but 0.10 with the suggested change is on its way to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.