How to Store the Memory Indexes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to Store the Memory Indexes

'Neal Singh
Administrator
image.png

Now say there are 100 Command being used by the MQTT to download data to the Master Controller.

When Command 0x02 download it packet, it will know that this is the first Memory Indexes and it will look at the Initialization Table and get the Start Address and let say its 0x00100 and we need to cater for 100 Commands.


image.png

So the question is how do we store address for the 100 command and for that we have commands 0x02 – 0x15 to do this. Now if we are only using 100 commands and lets say each payload can hold 25 Addresses. This means we only need to use 4 of these special commands (4x25= 100).

In the example we then store addresses for 4 commands when we use command 0x02

image.png

Command 0x03 it will store the address for Command 0x16 onwards to Command 0x3B

Command 0x04 it will store the address for Command 0x3C onwards to Command 0x61

Command 0x05 it will store the address for Command 0x62 onwards to Command 0x87


image.png



How to Store the Memory Indexes.docx (124K) Download Attachment