Suspend Service - Graceful shutdown: Difference between revisions

From Variscite Wiki
(Created page with "{{DocImage|category1=|category2=}} = Suspend Service - Graceful shutdown= __toc__ Below you can find information on the Suspend service, which enables a graceful shutdown of t...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DocImage|category1=|category2=}}
{{PageHeader|Suspend Service - Graceful shutdown}}
= Suspend Service - Graceful shutdown=
{{DocImage|category1=Windows|category2=}}
__toc__
__toc__
Below you can find information on the Suspend service, which enables a graceful shutdown of the FAT file-system, in case of a power failure.  
Below you can find information on the Suspend service, which enables a graceful shutdown of the FAT file-system, in case of a power failure.  


== Power failure and file-systems<br>  ==
== Power failure and file-systems ==
 
During the device's life-time, power failure may occur. These&nbsp;failures threaten the reliability of the FAT file-system. The use of Windows CE's TFAT (Transaction-safe FAT)&nbsp;/ ExFAT significally reduces the&nbsp;risk of a file-system corruption. However, no file system is 100% fail-safe. Power failure while file-system is actively writing, might rarely cause errors, even while using TFAT. Therefore, a graceful shutdown at power failure incident, when possible, is recommended. The suspend service requires 250ms to complete the File-system shutdown, while SOMs power consumption is 1.32Watt (400ma @3.3v)<br>  
During the device's life-time, power failure may occur. These&nbsp;failures threaten the reliability of the FAT file-system. The use of Windows CE's TFAT (Transaction-safe FAT)&nbsp;/ ExFAT significally reduces the&nbsp;risk of a file-system corruption. However, no file system is 100% fail-safe. Power failure while file-system is actively writing, might rarely cause errors, even while using TFAT. Therefore, a graceful shutdown at power failure incident, when possible, is recommended. The suspend service requires 250ms to complete the File-system shutdown, while SOMs power consumption is 1.32Watt (400ma @3.3v)<br>  


== Suspend service - Graceful shutdown. Usage guidelines ==
== Suspend service - Graceful shutdown. Usage guidelines ==
 
Suspend service is waiting for a falling-edge event of a specific GPIO, at a high-priority task. Once&nbsp;such event is triggered, the Suspend-service&nbsp;gracefully shuts-down the FAT file-system at the highest priority.  
Suspend service is waiting for a falling-edge event of a specific GPIO, at a high-priority task. Once&nbsp;such event is triggered, the Suspend-service&nbsp;gracefully shuts-down the FAT file-system at the highest priority.  


Line 27: Line 25:
   "Order"=dword:40
   "Order"=dword:40
   "GpioId"=dword:6D&nbsp;;GPIO#109
   "GpioId"=dword:6D&nbsp;;GPIO#109
</pre>  
</pre>
[[Category:VAR-SOM-OM35]][[Category:Software]][[Category:WinCE]][[Category:VAR-SOM-OM37]][[Category:VAR-SOM-AM35]]

Latest revision as of 21:57, 12 January 2017

Suspend Service - Graceful shutdown

Below you can find information on the Suspend service, which enables a graceful shutdown of the FAT file-system, in case of a power failure.

Power failure and file-systems

During the device's life-time, power failure may occur. These failures threaten the reliability of the FAT file-system. The use of Windows CE's TFAT (Transaction-safe FAT) / ExFAT significally reduces the risk of a file-system corruption. However, no file system is 100% fail-safe. Power failure while file-system is actively writing, might rarely cause errors, even while using TFAT. Therefore, a graceful shutdown at power failure incident, when possible, is recommended. The suspend service requires 250ms to complete the File-system shutdown, while SOMs power consumption is 1.32Watt (400ma @3.3v)

Suspend service - Graceful shutdown. Usage guidelines

Suspend service is waiting for a falling-edge event of a specific GPIO, at a high-priority task. Once such event is triggered, the Suspend-service gracefully shuts-down the FAT file-system at the highest priority.

Suspend service is available from BSP version 1.3.6 and forth.

Usage Guidelines:

  • To enable the Suspend Service, please set:
set BSP_SSP=1

in VAR_OM35xx_P.bat

  • in FILES\platform.reg you may choose the appropriate GPIO which triggers the event:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SSP]
   "Prefix"="SSP"
   "Dll"="sspdrv.dll"
   "Index"=dword:0
   "Order"=dword:40
   "GpioId"=dword:6D ;GPIO#109