Matching data sent over TCP to saved BDF data
Posted: Mon Jun 26, 2023 6:24 am
Hi all,
I'm having trouble testing my code for receiving ActiveTwo data over the TCP connection and making sure it matches the saved BDF data.
I've seen the forum threads on how to convert the three bytes of data sent over TCP into an unsigned int, and then converting that unsigned into into a signed int with twos complement.
What's unclear to me is what this integer actually represents in terms of the raw data, and what manipulations need to be done on this signed int to get it to match the data saved for that timestamp in the BDF file.
If anyone has experience with this or advice, let me know!
Alex
I'm having trouble testing my code for receiving ActiveTwo data over the TCP connection and making sure it matches the saved BDF data.
I've seen the forum threads on how to convert the three bytes of data sent over TCP into an unsigned int, and then converting that unsigned into into a signed int with twos complement.
What's unclear to me is what this integer actually represents in terms of the raw data, and what manipulations need to be done on this signed int to get it to match the data saved for that timestamp in the BDF file.
If anyone has experience with this or advice, let me know!
Alex