{"id":8858,"date":"2018-12-20T10:40:25","date_gmt":"2018-12-20T09:40:25","guid":{"rendered":"https:\/\/blogs.mentor.com\/colinwalls\/?p=8858"},"modified":"2026-03-26T16:56:06","modified_gmt":"2026-03-26T20:56:06","slug":"a-scary-moment","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/embedded-software\/2018\/12\/20\/a-scary-moment\/","title":{"rendered":"A scary moment"},"content":{"rendered":"<p>What makes you describe something as \u201cscary\u201d? I guess there are many things. Possibilities include events that are unexpected, sudden, unexplained and spectacular in some way. Although ultimately a minor event, which resulted in no injury and very little damage, something scary happened to me recently \u2026<!--more--><\/p>\n<p>A couple of days ago, I came into my home office and sat down at my desk. I keep my desk fairly clear &#8211; though not quite as clear as I would like &#8211; and what happened next may be an incentive to do a better job. There was a cable on my desk; a micro-USB cable, plugged into a hub [connected to my iMac]; I use it to download pictures from my camera. I moved this cable to one side out of my way to start work. There was suddenly a bang and a flash and the whole house went quiet and the iMac screen went dark. All the power had tripped.<\/p>\n<p><a href=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/51\/2018\/12\/IMG_4088.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-8859\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/51\/2018\/12\/IMG_4088-520x368.jpg\" alt=\"\" width=\"148\" height=\"105\" \/><\/a>When I recovered from my immediate shock, I switched off a couple of things and headed downstairs to restore the power. I found that the upstairs power outlet circuit had tripped and somehow this triggered the RCD that took out the whole house. I switched the circuits back on and various bleeps told me that the house was rebooting. I went back to my office to survey the damage.<\/p>\n<p><a href=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/51\/2018\/12\/IMG_4089.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-8860\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/51\/2018\/12\/IMG_4089-520x499.jpg\" alt=\"\" width=\"283\" height=\"272\" \/><\/a>First off, I switched on the iMac, with fingers crossed. It started up just fine. It seems to be quite resilient to power outages and appeared none the worse for the experience. I plugged in the USB hub. It lit up as usual, but when I tried to use a printer, that was plugged into it, the device showed up as \u201coffline\u201d. Plugging it into the computer directly showed that the printer was OK. The hub was clearly a casualty. I nervously checked the USB power outlet [with a Lightening cable] and it appears to be fine. I inspected both micro-USB plugs and the metal outer part of both [where they came into contact] has a part missing and was charred.<\/p>\n<p>What actually happened? As yet, I am not 100% certain. Clearly there was a voltage difference &#8211; and, from the amount of damage, I would guess that it was the full 240v mains &#8211; between the shells of the two plugs. This is obviously not the way it should be! I suspect the USB power outlet. This is a switched mode power supply [SMPS]. As a humble software engineer, I only [think that I] understand the basics. Instead of using a step-down transformer, as we did in the Good Old Days, an SMPS monitors the input AC voltage and taps off some power for a moment each time it reaches the required output voltage. It seems to me that this has lots of potential [sorry, no pun intended!] for things to go wrong. A knowledgeable friend suggested that whoever installed the socket [that was me ?] may have swapped Live and Neutral; this would often not matter, until it does.<\/p>\n<p>What lessons have I learned? Several, I guess:<\/p>\n<ol>\n<li>Take care moving cables around.<\/li>\n<li>Check out the wiring of the USB power outlet.<\/li>\n<li>Always use a USB hub; a hub is cheap, but an iMac is not.<\/li>\n<\/ol>\n<p>And with this cautionary tale, may I take the opportunity to offer you the season\u2019s greetings. If you celebrate Christmas, have a good one. And may all of us have a peaceful and prosperous New Year! See you in 2019.<\/p>\n<p><a href=\"http:\/\/www.linkedin.com\/in\/colinwalls\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6579\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/linkedin.png\" alt=\"\" width=\"40\" height=\"40\" \/><\/a><a href=\"https:\/\/twitter.com\/colin_walls\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6583\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/twitter.png\" alt=\"\" width=\"40\" height=\"40\" \/><\/a><a href=\"https:\/\/www.facebook.com\/colinwalls.author\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6591\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/facebook.png\" alt=\"\" width=\"40\" height=\"40\" \/><\/a><a href=\"https:\/\/plus.google.com\/116301748426290440139\/posts?hl=en%3Fhl=en\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6587\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/google.png\" alt=\"\" width=\"40\" height=\"40\" \/><\/a><a href=\"http:\/\/www.slideshare.net\/ColinWalls\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6595\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/slideshare.jpg\" alt=\"\" width=\"41\" height=\"41\" \/><\/a><a href=\"http:\/\/blogs.mentor.com\/colinwalls\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-6599\" src=\"http:\/\/s3-blogs.mentor.com\/colinwalls\/files\/2014\/01\/wordpress.jpg\" alt=\"\" width=\"44\" height=\"44\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What makes you describe something as \u201cscary\u201d? I guess there are many things. Possibilities include events that are unexpected, sudden,&#8230;<\/p>\n","protected":false},"author":71677,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[1],"tags":[302],"industry":[],"product":[],"coauthors":[],"class_list":["post-8858","post","type-post","status-publish","format-standard","hentry","category-news","tag-off-topic"],"_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/8858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/users\/71677"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/comments?post=8858"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/8858\/revisions"}],"predecessor-version":[{"id":10748,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/8858\/revisions\/10748"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/media?parent=8858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/categories?post=8858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/tags?post=8858"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/industry?post=8858"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/product?post=8858"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/coauthors?post=8858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}