Jan-17-2022, 03:17 AM
Hi Jeff_t,
After I changed the order of the bytes being sent from the slave side "....This time instead of sending [255,15,0,0] from slave, I am sending [0,0,15,255] and on RP, I receive data as....", I also received 4094 by using the struct method too.
But as @bowlofred mentioned, it seems like there is some problem in the data transfer...I also feel the same because I am receiving one set of 4 bytes of data as expected and the next set is very different. Instead, they all should be same and should be equal to 4094 after conversion.
I am trying to figure out what might be the problem, but until now no luck.
After I changed the order of the bytes being sent from the slave side "....This time instead of sending [255,15,0,0] from slave, I am sending [0,0,15,255] and on RP, I receive data as....", I also received 4094 by using the struct method too.
But as @bowlofred mentioned, it seems like there is some problem in the data transfer...I also feel the same because I am receiving one set of 4 bytes of data as expected and the next set is very different. Instead, they all should be same and should be equal to 4094 after conversion.
I am trying to figure out what might be the problem, but until now no luck.