{"id":31700,"date":"2021-03-29T15:41:35","date_gmt":"2021-03-29T20:41:35","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=31700"},"modified":"2021-04-30T15:49:06","modified_gmt":"2021-04-30T20:49:06","slug":"supercap-feature","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/supercap-feature\/","title":{"rendered":"Supercap Feature"},"content":{"rendered":"<p><em>This feature applies to MTCDTIP2 devices.<\/em><\/p>\n<p>The supercap feature allows the device to perform an orderly shutdown of the CPU if power goes offline. This prevents loss of data.<\/p>\n<p>Currently, the system waits up to 3 minutes for the supercap to charge during boot.<\/p>\n<p>The 3 minutes is configured in <strong>\/etc\/default\/mts-io<\/strong>:<\/p>\n<pre data-stringify-type=\"pre\"># Supercap Feature\r\n# Do not let boot proceed until supercap is full.\r\n# Prevents loss of data when power is out.\r\nSUPERCAPFULL=1\r\n# Maximum wait time for SUPERCAPFULL\r\n#\r\nSUPERCAPFULL_MAXWAIT=180<\/pre>\n<p data-stringify-type=\"pre\">If SUPERCAPFULL is not set to 1, the wait is skipped.<\/p>\n<p data-stringify-type=\"pre\">If power is lost and the supercap is sufficiently charged, a graceful shutdown is attempted.\u00a0But if the supercap is not charged enough, the device may run out of power before shutdown is complete, and data could be lost.\u00a0 The supercap should always be able to charge in less than three minutes, and this is done before user programs are initiated during boot.<\/p>\n<p><strong>NOTE:<\/strong>\u00a0 It is possible custom code that executes too slowly in shutdown could cause a data loss.\u00a0You should test any code you write that executes during shutdown to ensure that there is not a performance bottleneck. More specifically, a bottleneck that will prevent shutdown from completing before the supercap runs out of power.<\/p>\n<p><strong>Firmware Upgrades<\/strong><\/p>\n<p data-stringify-type=\"pre\">Also, if the power is out, a firmware update will be skipped when doing mlinux-firmware-upgrade.<\/p>\n<p data-stringify-type=\"pre\">If the power is on, but the supercap isn&#8217;t sufficiently charged, the firmware upgrade will be delayed up to 3 minutes before attempted, so the supercap may charge.\u00a0 This is not configurable.<\/p>\n<p><span style=\"color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; background-color: #ffffff;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This feature applies to MTCDTIP2 devices. The supercap feature allows the device to perform an orderly shutdown of the CPU if power goes offline. This prevents loss of data. Currently, the system waits up to 3 minutes for the supercap to charge during boot. The 3 minutes is configured in \/etc\/default\/mts-io: # Supercap Feature # [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":9184,"menu_order":20,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-31700","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/31700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=31700"}],"version-history":[{"count":7,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/31700\/revisions"}],"predecessor-version":[{"id":31705,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/31700\/revisions\/31705"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9184"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=31700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}