Im just going to appologize now, this devlog is not gonna be that great.
I have been working the past few days on packet generation. Specifically on requesting data from a server, and writing that data to a packet as a server. As you can see by the time, this is much harder than it may seem. Though I did predict this a while ago.
When the client request data from the server, a function is invoked that configures the group (data type; digital or analog) and the variation (presentation; packed format or with extra flags).
When the server responds to this request, it invokes a function (technically 2) that refreshes the data it has (currently using a random number generator) and writes that to a packet. The packet is mostly a clone of the request, just with the source and destination switched, and the data added.
Currently, I have both functions completed (or almost completed), but I still need to add crc to the reply form the server, and fix the many bugs that have arrisen from this change.
Bellow I have an example request, no reply becuase the function is currently inoperable :(
05 64 0F C4 01 00 00 00 C8 E2
C1 C0 01 01 01 10 F7 03 00 0F
00 00
This request is asking for data from the server with address 1, data type 30 (digital), and the data points 3-15
Once again, very sorry for the poor quality dev log, but I just wanted to get an update out before I dug myself into an even deeper hole.
See you guys later!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.