Writing onto an external SD card - Printable Version +- Ewon Technical Forum (https://techforum.ewon.biz) +-- Forum: Development (https://techforum.ewon.biz/forum-50.html) +--- Forum: Ewon Embedded Technology (https://techforum.ewon.biz/forum-51.html) +---- Forum: Ewon Core Features (https://techforum.ewon.biz/forum-3.html) +---- Thread: Writing onto an external SD card (/thread-2345.html) |
Writing onto an external SD card - vfourastie - 24-07-2023 Hello, I have copied and pasted a comment that I wrote on an older post that explains how to write to an SD card. This is the comment. simon Wrote: Wrote:Ok :-) Is it possible to just change the /RTLogs.txt to something else in order to write to the Alarm history? if so how would this be done. I am trying to write information to the SD extension, in the event that I lose my communications. For example, I had an issue with a cell network extension card, and I had to take one from a less important site and put it into the more important site. So we did not have any communications with the less important site. So I was thinking of using the SD card to extend the memory and write values to it. Is that also possible? that we can write sensor values from the tags? I do not have a lot of knowlege in writing code. But I work with someone that can write and read code well. So with everything said, I am wondering if it is possible to write tag values like a historian to an SD card? It would be used in a temporary situation. For example, the situation above. Or if say we lose communications to a site via power outage or just bad internet equipment. Thanks in advance. RE: Writing onto an external SD card - AngelaT - 24-07-2023 The most important part to change is the "$dtRE" piece. That is what is called an export block descriptor (EBD). It is a way to tell your device to export a specific type of data. There is an export block descriptor for Alarm history - $dtAH. However, there are some other parameters you will probably want to add so that you are only exporting the portion of the Alarm history that is most important to you. You can find out more about export block descriptors and how to use them here. RE: Writing onto an external SD card - vfourastie - 25-07-2023 (24-07-2023, 06:58 PM)AngelaT Wrote: The most important part to change is the "$dtRE" piece. That is what is called an export block descriptor (EBD). It is a way to tell your device to export a specific type of data. There is an export block descriptor for Alarm history - $dtAH. However, there are some other parameters you will probably want to add so that you are only exporting the portion of the Alarm history that is most important to you. You can find out more about export block descriptors and how to use them here. EBD_STRING$ = "$dtAH$ftT$et" + LAST_TIME$ + "$st" + LASTTMS$ So by the logic you sent me, this would write my alarm history to the sd card? |