Modbus Protocol for RS-232 with 32 bit values

I was finally able to establish some connection between my photon and my data logger. I’ve made everything run at baud rate of 9600 as well (node and serial). I’ve adjusted my datalogger accordingly.

I have a new issue however: my connection is giving me a pattern of errors each reading. Here is the serial output on the photon:

TX: 1 3 0 1 0 8 15 CC
RX: 1 0 8 15 CC
Reading Registers...
Failed, Response Code: E1
TX: 1 3 0 1 0 8 15 CC
RX: 3 0 1 0 8
Reading Registers...
Failed, Response Code: E0
TX: 1 3 0 1 0 8 15 CC
RX: CC 1 3 0 1
Reading Registers...
Failed, Response Code: E0
TX: 1 3 0 1 0 8 15 CC
RX: 8 15 CC 1 3
Reading Registers...
Failed, Response Code: E0
TX: 1 3 0 1 0 8 15 CC
RX: 1 0 8 15 CC
Reading Registers...
Failed, Response Code: E1

This pattern repeats indefinitely. It would appear that the baud rates don’t match perhaps? I’m not exactly sure what that issue could be. Here is the serial output from the photon strung together horizontally for you to help identify a pattern. I’ve separated each request with a pipe symbol “|”

TX (from Photon): 1 3 0 1 0 8 15 CC | 1 3 0 1 0 8 15 CC | 1 3 0 1 0 8 15 CC | 1 3 0 1 0 8 15 CC |

RX (to Photon)  : 1 0 8 15 CC | 3 0 1 0 8 CC | 1 3 0 1 8 15 CC | 1 3 1 0 8 15 CC |

Here is the serial output from my datalogger so you can see what it’s sending and receiving:

It looks like it is receiving the message clearly, but for some reason send back the wrong function address to the photon (the “83”).

What do you think?
-AJ