Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pymodbus/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def processIncomingPacket(self, data, callback):
:param data: The new packet data
:param callback: The function to send results to
'''
_logger.debug("IN:"+" ".join([hex(ord(x)) for x in data]))
self.addToFrame(data)
while self.isFrameReady():
if self.checkFrame():
Expand All @@ -550,6 +551,7 @@ def buildPacket(self, message):
message.unit_id,
message.function_code) + data
packet += struct.pack(">H", computeCRC(packet))
_logger.debug("OUT:"+" ".join([hex(ord(x)) for x in packet]))
return packet


Expand Down Expand Up @@ -673,6 +675,7 @@ def processIncomingPacket(self, data, callback):
:param data: The new packet data
:param callback: The function to send results to
'''
_logger.debug(" ".join([hex(ord(x)) for x in data]))
self.addToFrame(data)
while self.isFrameReady():
if self.checkFrame():
Expand Down Expand Up @@ -829,6 +832,7 @@ def processIncomingPacket(self, data, callback):
:param data: The new packet data
:param callback: The function to send results to
'''
_logger.debug(" ".join([hex(ord(x)) for x in data]))
self.addToFrame(data)
while self.isFrameReady():
if self.checkFrame():
Expand Down