Nightscout

The Nightscout logo and motto/ hashtag.

Today’s weblog post focuses on Nightscout, a social movement for Type 1 diabetics, and their parents, that enables them to access and work with continuous glucose monitor (CGM) data and open-source tools, so they are better able to manage their condition. They describe themselves as CGM in the Clouds,

In healthy people the pancreas regulates blood sugar. It works continuously without intervention. Diabetics have to take control, and inject insulin using syringes, although in recent years it has become more common to use an insulin pump connected to the body and providing an even base dose. It is difficult for people to adjust insulin levels which have to continuously monitored and adjusted for the rest of the patient’s life.

There are three main types of diabetes mellitus (DM): 1) Type 1 results from the pancreas’s failure to produce enough insulin due to a loss of beta cells; 2) Type 2 begins with insulin resistance, a condition in which cells fail to respond to insulin properly, but may result in a lack of insulin, as the disease progresses; 3) Gestational diabetes occurs when pregnant women, without a previous history of diabetes, develop high blood sugar levels.

According to the IDF Diabetes Atlas, 9th edition, an estimated 463 million people had DM worldwide (8.8% of the adult population), in 2019, with type 2 making up about 90% of the cases.

Legacy medical equipment companies, much like legacy automotive companies, perpetuate their market share by making it intolerably expensive for new companies to become established. In the automotive world, this is in part because of the extreme cost of setting up manufacturing facilities. With medical equipment, it is the cost of gaining approval in assorted jurisdictions. In the USA, for example, the Food and Drug Administration (FDA) regulates the sale of medical device products. Manufacturers (or their sales agents) must present evidence that the device is reasonably safe and effective for a particular use.

The high cost of market participation, means that legacy manufacturers can avoid/ discourage innovation, which helps improve profit margins, but denies patients access to improved technology. This is what nerds, patients and relatives have now managed to solve with Nightscout, for diabetics. It is a do-it-yourself DM tech community. It first developed data-sharing tools. More recently, an open-source closed loop artificial pancreas system has been developed.

Wikipedia says that Nightscout began in 2013-02 , when the parents of a 4-year-old boy newly diagnosed with type 1 diabetes began using a CGM system. When the child was at school there was way to access this data in real time. The boy’s father, John Costik, a software engineer, developed software to access and transfer CGM data to cloud computing infrastructure. Lane Desborough and Ross Naylor added a blood glucose chart display. A community of developers emerged to make the software generally accessible. Because this software amounted to an unlicensed medical device, it was not released immediately as open source code to address legal concerns. After this was done, the combined code was released in 2014 as the Nightscout Project.

In another part of cyberspace, Loop started off as an Apple-only framework and algorithm that runs on an iPhone, worked with older Medtronic insulin pumps and requires a small box, the RileyLink, to communicate between the pump and smartphone. It was created in large part by Pete Schwamb. An unknown number of people use this technology.

OpenAPS

The Open Artificial Pancreas System project (OpenAPS) is an open and transparent effort to make safe and effective basic artificial pancreas system technology widely available. It began in 2013, when Dana M. Lewis and Scott Leibrand became aware of the software created by John Costik. The OpenAPS software can run on a single-board computer, such as a Raspberry Pi.

Lewis, who has a DM Type 1 condition, was dissatisfied with her commercial device, because its hypoglycemic status alarm was too quiet to wake her. To address this, Lewis and Leibrand extended the CGM-in-the-cloud software to create a custom high volume alarm. They then used the same CGM-in-the-cloud software to create Do-It-Yourself Pancreas System (DIYPS) software, which provided a decision assist system for insulin delivery. This become a closed loop system using open-source decoding-carelink software created by Ben West to communicate with Medtronic insulin pumps, enabling data retrieval and issuance of insulin-dosing commands to pumps that support it. With this update, the DIYPS system became OpenAPS.

Its stated aim of OpenAPS is “to more quickly improve and save as many lives as possible and reduce the burden of Type 1 diabetes.” Their website states that “community efforts will be open source and free for use for other people, open source projects, researchers, and non-profits to use, and available on an open and non-discriminatory basis for all commercial manufacturers to use in proprietary products if desired.”

OpenAPS differs from other APS currently in clinical trials in two significant ways: 1, it is designed to use existing approved medical devices, commodity hardware, and open source software, and 2. it is designed primarily for safety, understandability, and interoperability with existing treatment approaches and existing devices. Those concerned about safety issues are encouraged to read this statement of principles.

An aside: In researching this post, one article in particular highlighted the need for professionalism in the production of code. In this case, the anonymous coder was unable to understand contextual issues. Obviously, many of the projects mentioned here have been professionally run. However, it is very common to encounter code written by amateurs, that is unsuitable for real-world use. The advantage of using people with a medical condition is that they have internalized much of the contextual information needed to produce appropriate code, even if they are amateurs.

Closed loop artificial pancreas systems integrate a glucose monitor with an insulin pump, using connecting controller software (such as assorted varieties of Loop). The system’s purpose is to keep blood glucose levels within a specified desired range for as long as possible. This can reduce damage to kidneys, retinas and nerves.

Since Nightscout is Do-It-Yourself (DIY), the onus is on the user to provide and deploy any and all resources needed, such as the MongoDB database, a web host and other software. This can result in many barriers, that prevent potential users from enjoying Nightscout’s benefits.

Recently, on 2020-11-20, Medical Data Systems LLC met with and formally petitioned the FDA for clearance of the service product “T1Pal.com.” T1Pal.com is a hosted Nightscout platform that runs copies of the latest Nightscout software on its servers for the benefit of individual subscribers.T1Pal is a hosted Nightscout platform running the latest version of Nightscout on its servers. It provides subscribers with Nightscout as a Service. This means that Medical Data Systems LLC takes responsibility for maintaining and updating the site. T1Pal was designed by Ben West, a member of the original CGM in the Cloud team and lead core developer for the Nightscout Project. A subscription costs US$ 12/ month and upwards, depending on the services provided.

Tidepool

Originally, this post had intended to focus on Tidepool, a Palo Alto, California based nonprofit company founded by Howard Look in 2013. The company works with medical equipment manufacturers, such as Dexcom and Medtronic, to create interoperable automated insulin pump systems, communicating with iPhone and Android apps.

Tidepool wanted to build a database where people with insulin-dependent diabetes could store and analyse data about their condition. Its iOS and Android apps and web system, allow users to add and view CGM related data to gain better insights into their condition. This data can be shared with health personell.

As stated in the previous weblog post on telemedicine, some equipment and software providers assume they own patient data. These companies have very disturbing privacy policies. Tidepool encouraged equipment manufacturers to develop systems that would work with Tidepool software. They elminated some of the friction, by setting up a (not-for-profit) foundation to administrate collected data.

Tidepool Loop will be its next big step, What I have been unable to discover is wny users would prefer yet another open-source closed loop artificial pancrease system, where the openAPS already seems to feature one, not to mention the RileyLook.

Developing open-source software can be messy. Sometimes, work is duplicated, and at other times, nobody is doing the work at all. The people who have a vested interest in mitigating a health condition, or in the case of Type 1 diabetes, their parents, will develop breakthrough improvements that manufacturers seldom prioritize. Software is cheap to produce, especially if development time is freely given. My expectation is that additional improvements in hardware will also come in the future, as open-hardware, as increasing numbers of people invest in CNC hardware, that can build precise equipment inexpensively.

Some sources:

Off topic: Wyze Watch

This blogger has pre-ordered two Wyze smart watches using a facilitator in the United States, for delivery in 2020-03. This pre-order opportunity is restricted to addresses in USA, and is ending a week after the planned publication of this weblog post, on 2020-12-22. The unit price is about US$ 20, excluding taxes, shipping, non-black watch strap and who knows what else. These two watches will be used initially for experimental purposes.

The Mother of All Demos

The Mother of All Mice. Wooden and with two wheels, first demonstrated publicly 1968-12-08. Image: SRI International.

Fifty-three years ago today, 1968-12-09, is one of several dates that can be regarded as the start of the personal computer age, when a computer demonstration, A research center for augmenting human intellect, retrospectively called The Mother of All Demos, was presented by Douglas Engelbart (1925 – 2013) in the Civic Auditorium, San Francisco. The technical aspects of the presentation were managed by Bill English (1928 – 2020). About one thousand computer professionals attended the event there.

The demo featured a computer system called NLS, oN-Line System. The 90-minute presentation essentially demonstrated almost all the fundamental elements of modern personal computing: collaborative real-time editing, command input, dynamic file linking, graphics, hypertext, a mouse, navigation, revision control, video conferencing, windows and word processing – all in a single system.

The San Francisco terminal was linked to an Eidophor large-format video projection system loaned by the NASA Ames Research Center, so attendees could watch what was happening on the NLS on a 6.7 metres high screen. The terminal was also connected to an SDS 940 computer (designed specifically for time-sharing among multiple users) located at the Augmentation Research Center (ARC) headquarters, 48 km away in Menlo Park using a pair of 1 200 baud-modems. There, a second (but smaller) group of attendees could experience the demo as it was live-streamed.

Engelbart was best known for founding the field of human – computer interaction. He also made notes describing a computer mouse. These were made into a functioning prototype by Bill English in 1963. Thus, both of these two people can be said to have jointly invented the computer mouse.

The demonstration was highly influential, most especially the development of Xerox PARC (Palo Alto Research Center) that flourished in the 1970s.

The original demo is available as a video on YouTube. Note: Modern viewers may be disappointed by its low fidelity. New Atlas has an article that provides additional insights, and photographs.

Dexterity/ Mobility impairment

This weblog post is targeted at older (60+) readers. It examines motor issues, with a focus on dexterity, which Merriam-Webster defines as “skill and ease in using the hands”; and mobility, defined as “ability or capacity to move”. As usual, computers are central to the story presented here.

The two computers, an Asus PN50 (back left) and an Asus VC65 (from 2017, back right) are attached to an Aten Petite CS692 KVM, (from 2013) with dongles for both the Logitech ERGO K860 keyboard and the Logitech MX Vertical mouse. Also attached is a Logitech G Pro X headset. On the left is an unattached AOC Q27P2Q display. The Samsung Syncmaster S27B350 (from 2012) is attached directly to the KVM, and indirectly to the two computers. A button behind the keyboard on its right, is used to transition between the two systems. Equipment without a date indicates an acquisition date in 2020.

Ergonomic Input Devices

Many older people have issues with their hands, making it difficult for them to type or use a mouse. An ergonomic keyboard and mouse may improve the situation. For example, this blogger uses a Logitech MX Vertical mouse and a Logitech ERGO K860 keyboard because of their ergonomic characteristics.

Since ergonomic equipment is expensive, it is appropriate for assorted machines to use the same peripherals. A keyboard-video-mouse (KVM) switch, an Aten Petite CS692 from 2013, reduces desk clutter by allowing two computers to share peripheral equipment: keyboard, display, mouse and headset (or even separate earphones and microphone). Depressing a selector button switches between computers.

Since this particular KVM has resolution issues with a new display, a new KVM is being considered. Instead of cabling directly to the machine, This new system will use Internet Protocol (IP) to connect with machines located anywhere in the world.

Using conventional keyboards with hand-held devices is impractical. Instead, one may use a Bluetooth keyboard. This blogger used a Logitech K380 Bluetooth keyboard for many years, and has found it to be very comfortable and convenient. However, this keyboard lacks a slot to hold handheld devices, which distinguishes it from a Logitech K480 keyboard that does have this capability. Both keyboards allow easy interaction with up to three different devices. It is shown in the photo below.

The Logitech K480 keyboard has a slot to place a hand-held device, such as a smartphone or tablet. The keyboard communicates with the device using Bluetooth. The yellow dial on the upper left allows users to choose between three devices. It can also be used with desktop/ laptop computers, that support Bluetooth. Photo: Logitech

To draw in a program such as Krita, Inkscape or even GIMP, I use a Wacom One (CTF-430) tablet with a stylus. It is a very simple tool, that some claim is available only in Europe and now discontinued. However, it can be still found new in many online stores. It automatically becomes operative whenever the tablet is plugged into a computer running Linux Mint.

Mobility Impairment

Many people have serious mobility issues. The University of Washington operates DO-IT (Disabilities, Opportunities, Internetworking, and Technology) which is technology and solution oriented. Their video, describes how mobility issues can by addressed by computers, and assistive technology. Most of the people are young. It lasts about 13 minutes.

Some out-takes from the video:

  • Solutions for the mobility impaired are most often unique.
  • It is the user who has to decide if the technology is working or if there is something better.
  • Pay attention to the individual and what (s)he needs, through observation in the operational environment, as well as through consultation.
  • A computer can’t be used if it can’t be accessed, this involves physical access to a building, through it, and at a workstation.
  • Flexibility is needed in terms of keyboards trays, computer screens, desk height
  • Alternatives are built into operating systems, using accessibility control panels. For example, people using a mouth stick or a single finger to type with, would be unable to press two keys simultaneously, unless these were provided for in accessibility options.
  • Auto-correct, can simplify data input. tandard keyboards should be considered
  • Keyguards have holes for each key, and prevents people from typing an unintended key, if their movements are uncontrolled.
  • Mini-keyboards can be useful for people who have a limited range of (hand) motion. There are also one-handed keyboards for both left and right hands, for people with only one hand. There are also keyboards with extra large keys.
  • Virtual keyboards that appear on a computer screen can be activated with a mouse, trackball or alternate pointing system. Some may include alternative layouts, and word-prediction systems.
  • Some input devices are foot activated, others are head controlled with air pressure activated buttons. There are switches that can be activated by different parts of the body. These can involve scanning and/or morse code. Sip and puff switches can be used with morse-code. There are also switches activated by blinking.
  • Speech recognition is another option that allows users to bypass keyboards, but requires a good voice along with breath stamina.
  • Reading systems can translate written text into synthetic speech.

An indulgence

Sometimes humour is the best way to deal with an issue. Two of the people I interact with most, my wife and my son, have a good geographical sense. They seem to know where they are, and can invariably identify the cardinal compass directions. I presume they are truthing when they say this, but I have no real way of knowing, since I have a very limited sense of geographical position. In general, I have to take with me either another person, or a hand-held device with a GPS mapping system, when out in strange places, so that I can return to my point of origin.

In the distant past, in some dis-remembered source, I read that people with a good sense of geography are much more subject to motion sickness than those without it. It is definitely the case, with the three of us. I have never suffered from any form of motion sickness, unlike the other two.

I would not be human if I didn’t try to explain away my inabilities. Fortunately, one is at hand. The streets of New Westminster, where I grew up, run from the south-east to the north-west; avenues from the north-east to the south-west. Yet, they are referred to as running south to north, and east to west, respectively. Unfortunately for my ego, this geographical anomaly has no impact on my geographical inabilities. I would have had similar challenges if I had grown up in Vancouver, where – in most of the residential areas – avenues run east to west.

Thus, I am very thankful that modern hand-held devices, with build-in GPS-receivers, can tell me precisely where I am. In keeping with my open-source policy, I use Open Street Map, more than Google Maps, though both are installed and in use on assorted devices.

Sensory Impairment

This weblog post looks at impairments related to the senses, hearing and seeing, in particular. It is targeted at older (60+) readers. Younger people are more adaptive when it comes to using technology to reduce the consequences of their impairments. They quickly master technological innovations. Many will receive systematic, professional follow-up and assistance throughout their lives. Those with serious hearing impairments learn sign language and to lip-read. Those with serious visual impairments, especially the blind, learn Braille, and attend special classes. Both groups will have professional help to choose technology that will make their impairments less debilitating. Such is not always the case with people who develop impairments later in life.

Technological overload is a very real problem for older people, even those living without an obvious impairment. There may be several different ways in which such a situation can be improved using technology, but older people with an impairment frequently lack the (cognitive) ability and/ or will to use them all. There are too many choices. The key, then, is to select the one or two different technologies that will maximize their return on time invested.

Web accessibility is increasingly important. It involves making the use of the internet, and the World Wide Web in particular, easier. The World Wide Web’s (w3.org) Web Accessibility Initiative (WAI) provides not only resources but also web content accessibility guidelines and checklists. Here are links to some of the resources. The resources section is a good place to start. This can be followed up by consulting these resources: Strategies, standards, resources to make the Web accessible to people with disabilities; Web Content Accessibility Guidelines 2.0; Web Content Accessibility Guidelines 2.0 quick reference.

Sight

One major aid to sight impairment, is the use of eyeglasses. These are typically made to correct the specific imperfections of each user’s eyeballs. Glasses are made specifically for screen usage. This blogger used such a pair for several years. They do ease eye strain and the unnatural head contortions that result from using progressive lenses. Currently, the use of a large (27″) screen, appropriately positioned, is now allowing this blogger to avoid having to wear glasses at all.

As an aside, people wanting to make their own eyeglasses, from scratch, may want to consult this YouTube video. Those preferring to make just the frames would benefit more from this YouTube video. Otherwise, this topic will not be developed further, except to say that the French-Italian vertically integrated EssilorLuxottica Group, has been allowed to develop a near-monopoly when it comes to eye-care products.

Background lighting is another important consideration, when using a computer. General information about lighting has been presented in another weblog post written in 2018. Similarly, some of the factors that should be taken into consideration, regarding displays/ monitors/ screens/ televisions has been discussed more recently in yet another weblog post in this series, Media Player.

In terms of computers and hand-held devices, all (?) operating systems provide assistive features. For visual impairments these include switches to allow high contrast backgrounds, large text, and a screen reader. Usually, there are individual controls that allow each of these to be tweaked.

Many older users are unaware that their computers are equipped with a mechanism that will read screen content, and even allow voice commands . In Windows the reader is called Narrator, while the voice commands are part of Speach Recognition, which can be set up to use a microphone for system input.

Apple has an even more sophisticated product, VoiceOver, that is more than a screen reader. It is used on both MacOS and iOS products. It also provide status information (such as battery level) as well as information related to a specific app being used. Voice Control (and not Siri) is Apple’s equivalent program for voice control.

On Android systems the screen reader is an open-source app called TalkBack. However, it also appears under other names, including: Screen Reader, Voice Assistant, SoundBack and KickBack. Voice Access is the Android app for controlling a device with spoken commands.

Speakup is a screen reader for Linux. It allows users to interact with applications and the OS with audible feedback from the console using a speech synthesizer and to navigate around the screen. As usual for Linux, there are multiple programs for speach control. Those interested in this topic are directed to this introductory Wikipedia article.

There be other reasons than vision impairment, including dyslexia, that may require a person to use speech synthesis for text-to-speech (TTS) purposes. For example, an e-book/ e-mail/ web-page can be read to a person doing a menial task (or anything else that provides a cognitive surplus) on a handheld-device (hopefully in a pocket). It is left as an exercise for interested readers to find a suitable app for their purposes and equipment. This wikipedia article, may provide some hints.

Hearing

For those people who have a hearing impairment that does not require the use of a hearing aid, or choose not to use one, one way to improve hearing is to use over the ear headphones. Recently, this blogger acquired a Logitech G Pro X headset. It comes with several cables and adaptors that allow it to be used with hand-held devices, such as a smartphone, as well as laptop/ desktop devices with assorted characteristics.

One of the first challenges is to keep and maintain order. This means that the headset as well as the cables and adaptors have to have specific locations where they are stored when not in use.

The relevance of the remainder of this webblog post assumes that the hearing impaired person is equipped with a hearing aid, and that it improves their ability to hear in real-life, physical situations such as conversations involving one to a few other people, or other situations such as a store checkout where there can be background noise.

A hearing aid is equipped with a microphone, an amplifier that increases the sound pressure, and a speaker. When the hearing aid is initially set up, or adjusted, the various frequency areas receive differing degrees of amplification.

In addition, many hearing aids contain a telecoil (t-coil) To use an induction hearing loop or the t-coil function on smart phones, a t-coil must be present and activated on the hearing aid.

A t-coil, is a small copper coil in a hearing aid that acts as a wireless antenna that links to a sound system or PA system, delivering customized sound to the hearing aid wearer. It is an option on most hearing aids and is generally in all cochlear implant processors.

Originally used to hear better on the telephone, the t-coil is necessary to hear within a loop system. Just increasing the volume on a hearing aid or cochlear implant doesn’t necessarily improve the clarity. That is the “wow” factor of a t-coil in a hearing loop system. The clarity and understanding is unequaled when listening in a loop.

With a t-coil installed in the hearing aid, the user simply pushes the button or switch for the “T” setting – no additional headsets or receivers are necessary to hear clearly in the induction loop or on the telephone.

The loop system consists of a microphone to pick up the sound (e.g. spoken words) and an amplifier which processes the signal, which is then sent to a loop cable. A loop cable is a fixed wire that is placed around the perimeter of a specific area. This area can be quite large, e.g. a theatre or a church, or quite small, a person’s living room for example or even down to a chair. A loop can even be fitted around the person’s own head (neck loop). The wire then sends the signal directly to the hearing aids of those who are in the room when their hearing aids are set in T-mode.

The telecoil in a hearing aid (also called t-switch or t-coil) is a tiny coil of wire around a core that will induce an electric current in the coil when it is in the presence of an activated loop system. Normally, a hearing aid picks up sound with a microphone and then amplifies the sound. With a telecoil, the hearing aid “hears” the magnetic signal from the loop system and then amplifies that signal.

Other Embedded Systems

Josef Průša is appreciated for his open-source fused deposition 3D printers, He is shown here at the Prusa Research 3D printfarm, in Prague, Czech Republic. Being open-source means that the designs are available for anyone to use or modify. A 3D printer is a typical example of an embedded system, a product with a microprocessor inside. Photo Josef Průša.

In this weblog post, the focus is on you – as a user and maker of products containing microprocessors and software programs, and ensuring that these products meet your specific needs. While people may not currently have all of the skills they need to make what they want, skills can be learned.

Throughout my teaching career, I have had the fortune to meet many disillusioned pupils, both at a conventional secondary school, as well as in a Norwegian prison. While I find these pupils challenging, they have most often not failed themselves, as they have been failed by an educational system that is determined to compartmentalize/ standardize learning experiences, and create cookie cutter automatons out of living and feeling human beings. Thus, I delighted in taking on their specific circumstances to ensure that they could create for themselves something meaningful out of the limited educational opportunity I could provide them.

In particular, I remember two young women who were totally bored with the academic program imposed on them. They just wanted to get through it, so they could take higher education, become nurses and productive members of society. Instead, they were having to spend hours a week studying Norwegian literature, and other equally boring subjects. They decided to enroll in my technology class.

Since they both worked (part-time) at the municipal nursing home, they were well aware of the needs of live-in patients as well as out-patients. In the end they designed a prototype of an automated pill dispenser, for out-patients living at home. This prototype used an Arduino microcontroller. It is my belief that this experience allowed them to preserve their sanity, that had been seriously challenged by, for them, irrelevant writers of a long past, and forgotten age.

One of the most important elements in a technology workshop is the role of design. The essence of design is to specify how something is to be made, even if one cannot make anything oneself,

Suggestion: Spend today, or even longer, thinking of what you need, that is not being provided, or – if it is – has so many defects, that an improved version would suit you better. When you are ready, tomorrow or next year or ???,

STOP the Press! A pandemic has struck, and much of the content written for this post has become irrelevant!

Pre-pandemic considerations

The focus was to be on you using community based, technological workshops. These have many names, including hacker/ maker spaces. The one I know best is the Teknoverksted ved Spiren, the Technology workshop at Spiren = the Sprout.

They may be located inside a school or library. Alternatively, they may a separate entity, that is publicly or privately funded/ operated. Regardless, they provide facilities for learning and making, that use anything from no tech through old tech to high tech tools. These spaces are typically open to youth and adults. In alphabetical order, equipment may include 3D printers, CNC machines, laser cutters, knitting needles, scissors, sewing machines, soldering irons, table saws and welders.

They provide. a collaborative working environment. People spend their time learning and making. Hopefully, they then go on, teaching and helping others to make. Thus, over time, the skill base of the workshop improves, people with experience make more sophisticated products, when these are appropriate.

One of the first of these workshops was Fab Lab started by Neil Gershenfeld at the Massachusetts Institute of Technology (MIT). It is a small-scale workshop offering digital fabrication, or “a technical prototyping platform for innovation and invention, providing stimulus for local entrepreneurship.  It is also a platform for learning and innovation: a place to play, to create, to learn, to mentor, to invent.”One major problem with the Fab Lab concept, is the extensive and costly list of equipment these labs are expected to provide.

Pandemic considerations

During the pandemic, one main concern is mental health. Some people need more help than others to survive through it. Take the weaker sex, men, as an example. Compared with women, men live shorter lives, have worse health, suffer 70% of injuries, commit 75% of suicides, access health services less and delay seeking health services more, spend less time with doctors, focus on physical problems, avoid discussing mental and emotional problems and …. The Men’s Shed movement as a mechanism for resolving some of these issues has been discussed in a previous weblog post.

Single people are especially exposed. It may be hard keeping one’s sanity living with someone, but it is more difficult when one lives alone, and every effort is being made to eliminate social contacts at work and play. Zoom meetings are not a suitable replacement.

During the pandemic, there are also large groups of people who are suffering more than others because of poverty.

Teaching technical skills works best in small groups, ideally individually. Even if workshops are shut down, small groups can meet. The size of the group can vary from two to, say, five. Outdoor, socially distanced events should be possible, augmented with individual on-line meetings. Those who have the technical skills for making embedded systems, are encouraged to seek out those who are most impacted by the pandemic, and help them learn new skills, or provide them with relevant embedded products.

As noted below, the upcoming post, Tidepool (2020-12-15) is devoted to automated insulin dosing, much of it involving embedded systems designed and made by amateurs.

Post-pandemic considerations

As this is written (2020-11-10) an 90% effective C-19 vaccine has been announced by Pfizer. Its main disadvantage is that it has to be stored at extremely cold temperatures. Then (2020-11-16) Moderna announced a 95% effective C-19 vaccine, with significantly reduced storage requirements. This post will be updated with further information when it is , regarding a post-pandemic world.

Upcoming changes:

Originally, the schedule of weblog posts in this series was: 8. Visual impairment (2020-11-24); 9. Hearing impairment (2020-12-01); 10. Dexterity impairment (2020-12-08); 11. Mobility impairment (2020-12-15), and 12. Computing: A Summary (2020-12-22). This has been changed to the following: Sensory impairing 2020-11-24) – which combines hearing and visual impairment; Dexterity/ Mobility impairment (2020-12-01); Telemedicine (2020-12-08) – which looks at telemedicine generally; Tidepool (2020-12-15) – which examines automated insulin dosing.

Update: On 2020-12-13 at 12:30, Tidepool (2020-12-15) has been changed to Nightscout. It still examines automated insulin dosing.

Smart Home Devices

This charming resident of Cliff Cottage, Hardy, could be taking on new responsibilities as a voice activated room controller. In this role, s/he would need to be fitted with a Raspberry Pi microcontroller, a Power-over-Ethernet circuit, microphone, speaker and other hardware,

Note: The content provided here is an updated, abridged and modified version of a weblog post titled, , that dealt mainly with the use of room controllers.

My preferred term for this subject area is not smart home, but domotics. Yet, not everyone appreciates Latin terms, when perfectly good Anglo-Saxon ones exist.

Part of the reason for my dislike of the term, smart home is the ascription of smart to basic electronic devices that are dependent on sensors and logical circuits, to actuate motors, lights and heaters. Another part of the reason is the use of home. For many people, this is an emotionally loaded term for a residence. I suspect some public relations/ advertising agency imagined that substituting home for residence, house or building would result in increased profits. Admittedly, there are other, more obnoxious phrases than smart home, such as the internet of things, a phrase I increasingly avoid.

Various dictionaries show the noun domus refers to house, home, family, household (with dependents), school (of philosophy). The adjective, domestic, is in common use in a variety of contexts. As a noun, it can refer to a hired household servant. Hopefully, in the future it will refer to a robot offering similar services, although dombot could emerge. If it does, expect puns contrasting dombot with dumbot.

MQTT Broker and clients

At the heart of any domotic device is communication. Andy Stanford-Clark and Arlon Nipper authored the first version of the Message Queuing Telemetry Transport (MQTT) protocol in 1999. The name is a misnomer, as there are no queues with MQTT. Typically, there are numerous clients, and at least one (and potentially more) message brokers. A broker receives all messages published by clients and then routes these messages to subscriber clients. In a household, a client is usually a micro controller, perhaps a Raspberry Pi, while the broker is typically software located on a Network Attached Storage (NAS) server.

In a home automation situation, publisher clients are attached to sensors, and they publish sensor data; subscriber clients are attached to actuators, typically motors, but also heaters, vents lights and much more, that they regulate, at the most basic level – turn on or off.

The two most common open source home automation systems using MQTT are: open Home Automation Bus (openHAB), a project started in 2010, with code written in Java; and, Homa Assistant, started in 2013, with code in Python. While Home Assistant has been praised for its privacy features, it has been criticized for its file-based setup procedure. Recently, it has become more user friendly and accessible, with a simplified, web-based graphical user interface. An iPhone or Android hand-held device, can also be used as controller. This is especially important when one wants to control features remotely.

Brokers and clients manage: lighting, temperature and humidity (indoor climate), audio and video (entertainment), unauthorized access, smoke/ fire detection (security) and related services. Here, it is only considered in terms of a residence, but almost all types of buildings can use these: barns, shops, manufacturing facilties, etc. While it might appear that micro-controllers are in charge, managing these services using algorithms, most systems can have their decisions overridden by humans.

Ethernet

Wireless communication, using Bluetooth or WiFi, should be avoided, if possible, for most domotic/ smart home automation hardware, because there will always be throughput and power issues with these technologies. The one exception to this rule is the use of hand-held devices, including mobile phones and tablets, that use apps to function as remote controls for the system. These apps can be downloaded from the appropriate device app provider.

In the previous millennium, it was not uncommon for people to wire their houses with Ethernet cable. People who did so, and have not removed them, are the real winners. The reason for this is that room controllers need to communicate, and to communicate they need power.

The various Ethernet cables were standardized for different speeds. Cat 3 provided 10 Mbit/s in a standard presented in 1990. Cat 5 increased throughput to 100 Mbit/s in 1995, and then to 1 Gbit/s in 1999. Cat 5e offered 2.5 Gbit/s in 2016, while Cat 6 increased it to 5 Gbit/s, the same year. The Cat6A standard, is actually ten years older, dating from 2006, but provides 10Gbit/s.

The advantage of Power over Ethernet (PoE) is that it eliminates the need to install separate power cables. PoE technology sends the above mentioned 10/100/1000 Mbps of data and 15W, 30W, 60W, and up to 90W of power to devices over Cat5e, Cat6 and Cat6A Ethernet cables for a maximum distance of 100m. Cat3 and Cat5 cable can also be used with restrictions, They supply of 48 V with a maximum current of 400 mA using two of the available four pairs of wires on Cat 3 or Cat 5 cable. While this appears to provide a maximum power of 19.2 W, system losses will normally reduce this to under 13 W.

MQTT Software and supporting hardware

The household’s MQTT broker is typically a software program, housed in a server. Wifi-based handheld devices connect to the broker using Wifi, while Ethernet-based room controllers connect to it through cables, and a switch.

A switch is a box that allows multiple other devices in a local area network to be inter-connected. A typical commercial switch may have up to 48 different ports for cables connected to 48 separate devices. Home oriented switches typically have 8 ports.

Business users commonly sell off their equipment once the warranty period has expired. Servers as well as switches can be purchased by private individuals inexpensively, because businesses won’t buy used (read: out of warranty) equipment, and most people don’t know what the equipment can be used for.

Cables usually run between the switch and other devices through the walls of the house, although there is nothing to prevent more visible wiring, along walls/ ceilings/ floors. If people are considering remodelling their house, adding Ethernet cable is no real issue. Whatever cable is used, it will ultimately pay to use the fastest Ethernet cable type currently available that supports PoE. Cat 6 is more readily available than Cat 6A. Using either means that the cable won’t have to be replaced anytime soon. Hopefully, the cables will last 30 years, or more.

Room Controllers

Control units, like all devices, needs power. Power over Ethernet (PoE) is an ideal way to provide power, since Ethernet connectivity is the preferred approach to wired data communication. PoE eliminates the need to install separate power cables. Each controller is provided with power from the switch itself.

Several different types of microprocessors can be used in controllers, including Arduino, ESP and Raspberry Pi. At Cliff Cotttage, Raspberry Pis are used.

Room controllers, and similar devices, are one of the main categories of devices that need PoE connections. A typical unit could use a Raspberry Pi Model B 3+, sensors connected to general purpose input-output (GPIO) pins. with a PoE hat (hardware on top, which provides extra capabilities) to provide power and cooling, and – in addition – a Pimoroni Automation HAT to provide support for actuators. Some room controllers would have a 7″ touch screen. Others would be fitted for voice communication with microphones and speakers.

A Pimoroni Automation HAR on top of a Raspberry Pi Model B (Photo: Piomoroni)

Controllers need to be placed in the following locations: 1) access control at entrance doors; 2) living room; 3) dining area; 4) kitchen; 5) bedrooms; 6) study, studio and workshop areas. A few people may want to have controllers in 7) bathrooms and/or laundry rooms, while most prefer to avoid this. In addition, there shouldl be 8) PoE access points for WiFi. This allows WiFi connections in parts of the house that are inaccessible for direct signals to and from the server.

Other switches, without PoE, can be used for other devices dependent on higher power levels. These include: 1) a home theatre connections; 2) a printer and/ or scanner; 3) clothes washer and/ or dryer; 4) dishwasher; 5)  refrigerator and/ or freezer; 6) stove top and/ or oven; 7) microwave oven; 8) kettle; 9) hot water tank; 10) heat exchanger; 11) heat pump or solar thermal controller; 12) greenhouse controller. Not everyone has appliances with Ethernet connections, but they are increasingly available.

A front-door access controller will typically have an infra-red camera, proximity sensor and infra-red light connected to it, that will be activated as someone approaches. Video of each event will be sent to an external location, that could be located anywhere in the world. A room controller may have proximity sensors as well as other sensors to register temperature, CO2, humidity levels and more. Data gained from these sensors and others throughout a house, can be used to activate lights, or heating, display time, temperature and other data on a touch screen. It can even listen to verbal instructions with a microphone and answer using a speaker.

Recently, a Compute Module (CM) 4 was released. Unlike more conventional Raspberry Pis, the CM is totally flat, but uses the bottom edge for connection. In the future, I hope to acquire a Compute Module 4 Development Kit to develop suitable applications based on these modules. CM boards are used because they avoid unnecessary components, making products potentially cheaper and smaller.

Update of content in Printers, published 2020-03-24:

Owners of H-P and other ink jet printers, are advised to read what Cory Doctorow has to say in Ink-Stained Wretches: The Battle for the Soul of Digital Freedom Taking Place Inside Your Printer (2020-11-05).

Raspberry Pi 400 Personal Computer Kit

The Raspberry Pi (RPi) 400 Personal Computer kit. The keyboard contains a RPi board running at 1.8 GHz (faster than the 1.5 GHz found in the RPi 4 Model B). There is also a mouse/ rodent, a RPi operating system (OS) on a micro-SD card, a (UK, shown here) USB-C based power adapter, an HDMI cable to connect the video and audio output to a display/ monitor/ screen/ television, and an official RPi Beginner’s Guide. Price, about £/ $/ € 100. Photo: Raspberry Pi Foundation.

The pandemic has increased hunger and homelessness, and prevented some people from attending a physical school. This might be because of a legitimate health reason, but in some cases it might just be political. Affected students need digital equipment to access online schooling. Hopefully, this is being provided by the educational authorities, but where it isn’t an inexpensive solution may be needed.

The Raspberry Pi 400 Personal Computer Kit, may be precisely what the teacher ordered. Of course, the machine can also be used for work and entertainment purposes, in addition to education. At a cost of about £/ €/ $ 100 it contains everything one needs in a basic personal computer (except the display/ monitor/ screen/ television). As long as a proposed display supports a high definition multimedia interface (HDMI) connector, it can be used. Unfortunately, even an inexpensive machine like this will not help if the real problem is a lack of broadband infrastructure.

Specifications:

  • Processor: Quad-core 1.8GHz Cortex-A72 (ARM v8) 64-bit (BCM2711)
  • Random-access memory (RAM): 4GB (LP DDR4-3200)
  • Dual-band (2.4GHz and 5.0GHz) IEEE 802.11b/g/n/ac for wireless local area network (LAN) connectivity,
  • Bluetooth 5.0, BLE
  • Gigabit Ethernet for wired LAN connectivity.
  • 2 × USB 3.0 and 1 × USB 2.0 ports
  • Horizontal 40-pin general-purpose input/ output (GPIO) header
  • 2 × micro HDMI ports (supports up to 4Kp60) for video display
  • Video decoders: H.265 (4Kp60) / H.264 (1080p60 decode, 1080p30 encode)
  • OpenGL ES 3.0
  • microSD card slot for operating system and data storage
  • 78- or 79-key compact keyboard (depending on regional variant)
  • USB-C power connector
  • Dimensions: 286mm × 122mm × 23mm

Currently, the English (UK) keyboard (with UK power supply) is available as is an English (US) keyboard with a North American power supply, and a French keyboard with a European power supply. Soon, these will be augmented with German, Italian and Spanish keyboards, with an EU power supply. Beginner’s guides are provided in the same language as the keyboard type: English, French, German, Italian or Spanish. There is no mention of an official Nordic keyboard.

For the first time a RPi has an on/off power switch, activated by pressing Fn+F10 simultaneously. Pressing these for two seconds will turn on power.

Unusually, the mouse plugs into a USB-port at the back and to the left of the keyboard. This makes it ideal for left-handed people. This appears to be a design issue (read: flaw).

A wireless, Bluetooth mouse will not have any such challenges. These cost about £/ €/ $ 7. If this is needed, then one should probably buy all of the components separately. A universal USB-C power supply costs about £/ €/ $ 9. The keyboard module is about £/ €/ $ 67. The Beginner’s guide can be freely downloaded. This results in a total price of about £/ €/ $ 83.

The RPi 4 series is noted for having temperature issues. The RPi 400 contains a heat spreader to dissipate heat from the entire machine, so no part will be too hot. It is claimed that there is enough thermal capacity to overclock = run faster than the design speed.

The RPi’s GPIO header/ interface/ connector is often used for interacting with electronic components placed on a breadboard = electronics test circuit, such as sensors or actuators (motors, for example). This may be only for educational purposes, or it might even serve real-world needs. It is this capability that makes the RPi a much better machine for learning about computers than a laptop or desktop machine.

The smallest and cheapest RPi model, the Zero, at about £/ €/ $ 5, is being used to provide computing power to ventilators being produced from locally available parts in Columbia, South America. The RPi 400 could also do this, but its capabilities far exceed the computing needs of a ventilator.

The RPi 400 PC kit is following a tradition that emerged in the early 1980s, with Acorn’s BBC Micro (1982), Sinclair’s ZX Spectrum (1982), Commodore’s Amiga 1000 (1985) , and others that integrated the motherboard directly into the keyboard. There was no separate system unit or keyboard cable. Just a computer, a power supply, a cable to a display, and (sometimes) a mouse.

The first RPi was launched 2012-02-29. According to the RPI Foundation, this new RPi 400 model, launched 2020-11-02, is about 40 x more powerful than the original. On launch day, Chris Barnat, on his Explaining Computers YouTube channel, made a video describing the RPi 400 in detail. Other single board computer (SBC) influencers, released similar videos.

Vehicle Devices

The Fisker Ocean will be contract manufactured by the Canadian owned, Austrian located, Magna Steyr facility in Graz, Austria. Photo: Fisker, Inc.

While many Americans will be focused on their presidential election taking place today (2020-11-03), this observer is awaiting the result of the Massachusetts Right to Repair Initiative (2020), a referendum appearing on today’s Massachusetts general election ballot. This could update the state’s right to repair laws to include telematic electronic vehicle data. This was specifically excluded on the 2012 referendum that passed with 86% of the vote.

It comes as no surprise that Elon Musk is opposed to the Massachusetts Right to Repair Initiative (2020), and is actively encouraging people to vote no. Right to repair legislation is generally supported by consumers, independent repair/ after-market companies and associations. It is generally opposed by original equipment manufacturers (OEMs), such as Ford or GM, and dealerships.

The Clean Air Act of 1963, is a United States federal law that with the purpose of controlling air pollution. It has been amended several times since then. The 1990 amendments required all vehicles built after 1994 to include on-board computer systems to monitor vehicle emissions. The bill also required automakers to provide independent repairers the same emissions service information as provided to franchised new car dealers. California further passed legislation requiring that all emissions related service information and tools be made available to independent shops. Unlike the Clean Air Act, the California bill also required the car companies to maintain web sites which contained all of their service information and which was accessible on a subscription basis to repair shops and car owners.

Today, microprocessors control operation-critical vehicle systems: brakes/ ignition (on internal combustion engine (ICE) vehicles) / air bags/ steering/ and more. Repairing/ servicing requires computer diagnostic tools. At the same time, OEMs have taken on gatekeeper roles to control information and parts necessary for service/ repairs. Control, in the above sentence, is particularly aimed at restricting access.

Most ICE vehicles use a controller area network (CAN bus) to manage microcontrollers, smart sensors and other devices to communicate with each other without a host computer. Each of these components is referred to as a node, with a hierarchical structure in relation to each other. No two nodes are equal, one always ranks above or below the other. The network features a message-based protocol. When two or more nodes transmit simultaneously, it is always the highest ranking node that is allowed to continue.

The electronic control unit (ECU) is typically based on about 70 nodes, each featuring, say, a 32-bit, 40 MHz microprocessor with about 1 MB of memory. This is orders of magnitude less powerful than those used in laptop or desktop computers.

Each node has to be able to handle a large set of processing tasks. These include: Analog-to-digital converters (ADC) – where a physical property usually measured in volts is converted into a digital number; Digital-to-analog converters (DAC) – provide an analog voltage output to drive some component, with a digital number telling the system what analog voltage to supply; signal conditioners make adjustments to input or output data so that it aligns more correctly with real-world needs; communication standards are implemented capable of sending appropriate signals to other nodes. The CAN-bus communication standard allows for speeds of up to 500 kilobits per second (Kbps) using two wires.

The CAN-bus, and similar devices, simplify vehicle wiring through the use of smart sensors and multiplexing. In ancient times (prior to about 1990) a wire ran from each switch to the device it powered. The circuit was completed by grounding one terminal of the battery to the chassis.

Smart sensors are integrated components, that include not only the sensor, but an ADC and a microprocessor. This allows it to read a voltage, make compensations for temperature, pressure or other factors using compensation curves or calculations, and then send digital output signals onto the CAN-bus.

With multiplexing a microprocessor monitors sensors in one area of the vehicle, such as a door. When that a specific window button is pressed “downward”, the microprocessor will activate a relay that will, in turn, provide power to the window motor so it moves downward.

Among the parts carmakers buy assembled from external suppliers are instrument clusters. These are designed by the supplier to the vehicle maker’s specifications. This is advantageous for both for the maker and the supplier. However, it also takes power away from the OEMs, and gives it to suppliers, such as Bosch or Continental.

Some of the nodes include: Battery Management System (BMS); Brake Control Module (BCM) which may also incorporate an Anti-locking an Braking System (ABS) and Electronic Stability Control (ESC); Door control unit (DCU); Electric Power Steering Control Unit (PSCU) or a Motor-driven Power Steering Unit (MPSU); Human-machine interface (HMI); Powertrain control module (PCM): which may combine an Engine Control Unit (ECU) and a transmission control unit (TCU); Seat Control Unit; Speed control unit (SCU);Telematic control unit (TCU).

Confusingly, ECU is also used as an abbreviation for the Engine Control Unit, which is one specific node. Here, and in many other circumstances to avoid confusion, it will be referred to as an ECM = Engine Control Module. It uses closed-loop control. Depending on the intended usage of the vehicle, the ECM will optimize specific goals: maximum torque, maximum fuel efficiency, minimum emissions, etc.

The CAN-bus allows module to communicate faults (errors) to a central module, where they are stored, then sent onwards to an off-board diagnostic tool, when it is connected. This alerts service personnel to system errors.

With electrification already a reality, and autonomous driving becoming one soon, the CAN-bus methodology will be unable the flow of data. Tesla uses a dual (read: duplicate/ redundant) artificial intelligence (AI) based, Samsung produced microprocessor system, running at 2 GHZ, to control vehicles. Compared to the CAN system, these are extremely powerful,

Volkswagen’s ID3 is going the same route, where it is using high-performance computers (HPC) supplied by Continental for control purposes.

Some vehicle designers do not have the capability to set their designs out in life. A notable example is Fisker. Danish-American Henrik Fisker (1963 – ) has made some exciting vehicle designs, but not all of the businesses he has started have survived. The latest manifestation is Fisker Inc., which was started in 2016. It has presented a SUV EV, Ocean, and a pickup proposal, Alaskan. With the Ocean’s design finalized, it is outsourcing vehicle production of its Ocean to Magna Steyr, a Canadian-Austrian contract vehicle manufacturer. For Fisker, this will reduce manufacturing complexities and costs, in contrast to building and operating its own factory. Magna’s electric vehicle platform, Partial payment for this will be in the form of (up to) 6% stake of Fisker Inc.’s equity, currently valued at $3 billion.

Returning to the Massachusetts Right to Repair Initiative (2020), a yes vote can have dramatic consequences for the computing equipment put on vehicles (ICE as well as EVs) in the future. Starting with the model year 2022, all vehicles with telematic systems, sold in Massachusetts (but more likely throughout the United States, if not the world) will have to be equipped with a standardized open access data platform.

On 2020-10-15, Foxconn, the Taiwanese multinational electronics contract manufacturer, responsible for production of an estimated 40% of all consumer electronics sold worldwide, announced its MIH open platform for electric vehicles. If Tesla is the iPhone of electric vehicles, Foxconn wants to be its Android. Foxconn has been involved in automotive manufacturing since 2007.

Currently, according to Foxconn, the battery pack accounts for 30 to 35% of the total production cost of an EV; powertrain = 20 to 25%; Embedded Electronic Architecture (EEA) = 15 to 20%; body = 13 to 15%; otheto develop and establish an open industry standard for automotive electrical-electronic (E/E) architecturer, including wheels & tires = 10 to 12%.

The MIH platform would be prepared for 5G and 6G, comply with AUTomotive Open System ARchitecture (AUTOSAR) and ISO 26262, and be ready for OTA (over-the-air) updates and V2X (vehicle-to-anything) communication.

AUTOSAR has been in operation since 2003 Its founding members include: Bavarian Motor Works (BMW), Robert Bosch GmbH, Continental AG, Daimler AG, Siemens VDO (until its acquisition by Continental in 2008), and Volkswagen. Later members include Ford Motor Company, Groupe PSA, Toyota Motor Corporation (all 2003), General Motors (2004). Thus, it represents a very large proporttion of the automotive industry. Its objective is to create/ establish an open and standardized software architecture for automotive electronic control units (ECUs). Other goals include “the scalability to different vehicle and platform variants, transferability of software, the consideration of availability and safety requirements, a collaboration between various partners, sustainable use of natural resources, and maintainability during the whole product lifecycle.”

ISO 26262, Road vehicles – Functional safety, was defined in 2011, and revised in 2018.

The MIH platform can accommodate wheelbases from 2 750 to 3 100 mm, with tracks from 1 590 to 1 700 mm, ground clearance from 126 to 211 mm. Three battery packs will be available. Vehicles can be rear wheel drive (RWD), front wheel drive (FWD) or all wheel drive (AWD). Motors on the front axle can be: 95 kW, 150 kW or 200 kW. Motors at the rear can be: 150 kW, 200 kW, 240 kW, and 340 kW. This allows a range of vehicles from a FWD with 95 kW to an AWD with 540 kW.

Part of the MIH strategy is to use mega castings. Foxconn cites one example, where they reduced 7 front suspension body panels to a single cast part and 27 rear longitudinal rail components to yet another single cast part, using a 4.2 Gg = 4 200 Mg (commonly called a ton) die-cast machine.

This post will end with a rhetorical question: What is a vehicle device? There may be many answers, but there are three I would like readers to consider. The first, is that there are subcomponents on a vehicle that could be regarded as devices. Second, the vehicle itself is also a device. Indeed, unlike a so-called mobile phone, which is a hand-held device, a vehicle is a true mobile device. Other potential members of this category include robot lawnmowers, electric airplanes and exoskeletons that are sometimes used by people with mobility issues. The third, is that the production platform is the device.

A Practical Server

A QNAP TS-251D A Network Attached Storage Server, suitable for most families. It can hold 2 x 4 TB hard drives. (Photo: QNAP)

Many families do not recognize their need for a server. In this weblog post, this need will be explained.

In almost every residence there is always a need for more storage space, physical as well as digital. A server can increase the effective use of the digital storage space. Some users need/ take more space than others. With a server, users do not need to get allocated the same set amount of space. Instead, the space can be pooled allowing greedier users to use more space than their more restrained counterparts.

People have many ongoing commitments, so it can be easy to forget something that is dependent on human brain power. Perhaps the best example is backup of data. Backup can be automated in several ways. It can involve the act of plugging in an external drive into a laptop, with software activated to upload new/ modified materials to that drive when that occurs. This will work fine until the user forgets to plug it in, or it can’t be found because someone else is using it.

Another approach is to store data on a cloud = someone else’s server, located externally somewhere in the world. Amazon, Google, Microsoft and many others are willing to provide cloud storage. Unfortunately, these services can be expensive, and one will always be uncertain as to how far the cloud service provider will allow others (unauthorized) access to documents. This can be especially important with respect to both personal and commercial documents. Sometimes people working at the cloud make a mistake that destroys all/ some of the stored content. This has recently happened at Adobe, where some users discovered that their entire content had been permanently deleted in error.

A server can be set up to automatically backup content found on other devices, mirroring changes made locally. As soon as a change is made to a document or folder, this change is implemented immediately on the server.

Even families need to collaborate. A server encourages people to work together by allowing users to access common documents, that are held on a server. Software is available that allows group editing of documents, without have to resort to commercial products, such as Google Docs or Microsoft Office 365.

An important benefit of using a server, is that it incorporates software options that allow for remote access, this is, beyond the local area network (LAN), so that users can access files everywhere.

Further considerations

The successful use of a server is dependent on having a useful data/ document management system.

Some documents are very private, and should not be shared. Others may be slightly less private and can be shared with specific individuals. Then there are those that can be freely shared with friends and family. Sometimes there are even public documents that one could potentially share with everyone in the world.

Every user should have their own password protected (and potentially encrypted) area where they can store personal documents.

Common areas are often better organized by file type. There can be text files (including e-books), images (including photographs, reproductions of drawings, paintings and other artworks), videos (including feature films, television episodes and documentaries), audio (including music), and games.

As an example, music tastes can be very personal. Not everyone in our household appreciates Finnish rock/ Suomirock music. Yet, there is no damage done putting Leningrad Cowboys, Nightwish and Sonata Arctica in a common area. Those not wanting to listen to it, can simply ignore it.

A server can also work as a media center / home theater facility. This server is connected to the internet. In addition, it includes a user interface that allows users to navigate through what amounts to a digital media library, search for, and play back media files.

Some other capabilities include: Play, catalog, and store local hard drive, flash drive and memory card music. It should also be able to display digital pictures, including CD album art. With some caveats, it should also be able to stream video and audio files, including those from Netflix, Youtube and Spotify over the LAN. Similar caveats apply to games. It is usually unable to play content found on CDs, DVDs or Blu-ray disks.

Most of the time, individual users will rely on their own personal devises to browse the Internet, check email accounts and access assorted social networking sites. However, these could be made accessible using a server, functioning as a media player. Participating in video conferences can be enabled by connecting a webcam and microphone.

Most families would be adequately served with an off-the-shelf Network Attached Storage (NAS) server, such as a QNAP TS-251D with 2 x 4 TB of storage capacity (eg Toshiba N300), plus 2 x 4 TB external disks (eg Toshiba Canvio Advance) to be located outside the house, and provide “insurance” in case of fire or other event that physically or otherwise destroys the NAS. Setting up and running this device is relatively easy, using a web-based interface.

Cheaper servers can be made using Raspberry Pi based equipment. However, these require a skill set not every family has.

Typically a NAS uses Redundant Arrays of Inexpensive/ Independent Disks (RAID). This is fine for storage up to, say, 10 TB. Beyond this capacity, another approach is more appropriate.

OpenZFS (ZFS) is a file system that provides is an advanced open-source storage platform. It includes protection against data corruption, support for high storage capacities, efficient data compression, content snapshots and copy-on-write clones, continuous integrity checking and automatic repair, and remote device content replication.

Most ZFS system implementations are complex, and require trained personnel. However, a TrueNAS Mini is suitable for families, with a (relatively) easy-to-use FreeNAS/ TrueNAS web interface accessed from any computer or mobile device in the LAN. Note: 2020-10 is a transition period for TrueNAS. The FreeNAS software on these machines is in the process of being replaced with a TrueNAS CORE release. Once this is updated, machines will be able to run TrueNAS.

The ZFS system has been covered previously in more detail. At Cliff Cottage, the rack based Mothership NAS has a storage capacity of about 100 TB, where 1 Terrabyte = 1 trillion (short scale) bytes = 10¹² bytes. Currently 4 of 12 bays are used, with 8 TB disks = 32 TB. For most people, with the exception of some extremists – such as this writer, this is far beyond what is needed.


Media Player

This television set made by Tandberg in Oslo, using the Radionett brand, is a Grand TV kabinett, from 1961. The CRT screen is bowed, as was typrical for the time. The varnished wooden cabinet is mounted on removable legs with white plastic wheels. It features stereo speakers, one on each side. Brass is used decoratively on the feet and around the screen. There are white plastic buttons under the screen, and black knobs on the side, to control the machine. “This is the TV model in greatest demand, with a 23″ large picture tubes, and two large concert speakers”, according to a Tandberg ad from 1961. This machine is in the collection of the Stiklestad National Cultural Center, in Verdal, a neighbouring municipality to Inderøy.

In 2020, a media player is a redundant piece of equipment – if one has a appropriate network attached storage (NAS) server, the topic of next week’s post. Yet, it is its own separate topic because of three different, but related, challenges.

First, people do not understand humankind’s physical capabilities and limitations when it comes to normal seeing and hearing. Normal is the operative term here. Visual impairment will be discussed in its own weblog post: 2020-11-24. Hearing impairment will be the topic one week later: 2020-12-01.

Second, this limited understanding results in the purchase of peripherals, such as speakers and screens, that don’t match user needs. On top of this they will purchase media players or a NAS that are neither suitable nor likeable, from hardware/ software/ operational perspectives.

Third, people tend to make evolutionary, rather than revolutionary, purchasing decisions. They replace components, rather than rethinking the components they need. For example, they may be used to having a television set with an attached recorder for watching video and the accompanying audio content. At the same time, they will have a separate stereo system for reproducing music. Unfortunately, such thinking belongs back in the twentieth century, not the current century that is already more than 20% over.

When we (along with the rest of our local community) updated to broadband, effectively at the beginning of 2019, a number of cable television options were available as a package for about NOK 1 500 a month, with an internet speed of 500 Mbits/s. We declined to have this, and opted for a 50 Mbit/s speed, without cable television, for NOK 600 a month.

A main purpose of a media player is to take content either from an online-source or from a file stored somewhere, including personal handheld devices aka mobile phones, and to send the video content to some form of display/ projector, and the audio content to some form of loudspeaker/ headset. Handheld devices, can be used to control the media player. In essence, they are the 21st century’s remote control.

If people use a particular processor or operating system on their laptop or desktop machine, they will often want to use the same one on their media player. This is understandable, for it keeps them in their comfort zone.

Unfortunately, there are still hardware issues with respect to Intel processors, and – to a lesser degree – those of Advanced Micro Devices (AMD). This design flaw has been known since the beginning of 2018. People are encouraged to use ARM or AMD, rather than Intel processors where these are available. Apple, has recently abandoned Intel and gone over to ARM.

An aside: In 1990 ARM stood for Advanced RISC Machines, a company that started life in 1983 as Acorn RISC Machine, referring to the processor in the Acorn Archimedes computer, used by many schools. From 1998 ARM is simply Arm, not an abbreviation for anything.

Yet, for example, Windows users will often complain about the bloatware on Windows 10, but not do anything about it, either on their personal computer, or a media player. More specifically, they will seldom explore open-source software, including operating systems, as an alternative to the commercial products on offer.

At Cliff Cottage on 2019-04-11, an Asus PN 40 computer was ordered to replace an Asus Tinkerboard, similar to a Raspberry Pi (RPi), as a media player. It is equipped with an Intel Celeron processor, effectively demonstrating that I don’t follow my own advice. The hardware on the PN 40 is more than adequate for its role as a media player. It includes: a Western Digital Green 3D Nand M.2 2280 triple-level cell (TLC) solid-state drive (SSD) providing 240 GB; and, 2 x 4 = 8 GB matched Corsair Vengeance SO DD4 2400 MHz, CL16, 1.2 V DC, non-buffered, non-EEC RAM cards.

The device is low-powered and fanless, but capable of playing videos and music stored on Mothership, the family Network Attached Storage (NAS) server. It is equipped with a LibreELEC = Libre Embedded Linux Entertainment Center, operating system, described as “just enough Linux for Kodi“, an open-source media player, which is also installed.

If the purchase of a media player had been delayed to now (2020-10) it would have been an Asus PN 50, a similar, low power (read: minimal watts), yet a machine with adequate processing throughput. It would be equipped with an AMD Ryzen 3 processor. At the time of purchase, these were not available in Norway. Cliff Cottage now has an Asus PN 50 with a Ryzen 7 4700U processor, but it is being used for other tasks.

An even cheaper, but perfectly adequate, media player can be constructed from a RPi 4 B with anywhere from 1 to 8 GB of RAM. Because of its tendency to overheat, cooling must be used. One approach is to place the RPi in a Flirc case.

Vision

The human eye is not impressive. For eyes to write home about, examine assorted species of mantis shrimp.

Boomers probably experienced cathode-ray tube black and white televisions in the 1950s with PAL providing 625 lines, and NTSC providing 525 lines, essentially 480i (interlaced). This was then upgraded to colour television in the 1960s.

In the 1990s, flat-screen televisions emerged and now dominate. High definition (HD) = 1920 x 1080 pixel resolution, became a standard with the high definition multimedia interface (HDMI), defined in 2002. A decade later, in 2012, ultra high definition (UHD) = 3840 x 2160, four times the pixel count of HD (hence, 4K) was defined, and in 2020, is now dominant.

Early flat-screen televisions used plasma technology, then came liquid crystal displays (LCD) that needed backlighting. LCD usually refers to the use of cold cathode fluorescent lamps (CCFL) for backlighting. LED screens are LCDs that use light emitting diodes (LED) for backlighting. This technology is actively used today. Organic light emitting diode (OLED) technology uses diodes to generate colour and light, like plasma screens, but they are smaller and thinner than LED-lit panels, and are capable of producing the best black levels available (highest contrast ratios). OLED screens are considerably more expensive than other screens.

A television in 2020 has 4K resolution. HD is out of date, while 8K is not only too expensive, it lacks content. A video refresh rate of 60 Hz is acceptable, 120 Hz is better, while gamers maintain that 144 Hz is best. Yes, this is a real consideration, if one is to avoid having multiple screens in a household. High dynamic range (HDR) refers to a colour standard that provides a more extensive range of colours, greater contrast levels and increased brightness, compared with the colour rendition on standard HD and 4K sets. Some users feel HDR offers more realistic colours. Others disagree, describing them as artificial. Most regard them as an improvement. OLED TVs typically provide better colour rendition than standard LCD sets, but are considerably more expensive. QLED TVs, where Q = Quantum, referring to photo-emissive particles, are a more affordable middle ground. Many reviews state that it is better to have four or more HDMI ports, with one or more in HDMI 2.1 format.

Currently, at Cliff Cottage there is a Samsung 40″ LED HD screen, made in 2010 but purchased used at half the new price (NOK 2 500 vs NOK 5 000) in 2012. We have never used more than two HDMI inputs. One is attached to the media player, the second has an HDMI cable permanently attached, that can be plugged into a laptop. When this screen ceases to function, it is uncertain if it will be replaced with another screen/ monitor. A 4K 55″ television now costs about NOK 5 000. A 4K 65″ is about NOK 7 000.

Projectors vs Screens

One main question is if the quality difference between a screen and a projector outweighs their respective ecological impacts. A large television/ screen/ monitor consumes many kilos of electronic components, that have to be recycled when the novelty/ economic/ physical lifetime of the product is over. My estimate is that a projector weighs < 10% of a television, although I have not undertaken any research to substantiate this claim.

Thus, we will be examining 4K projectors carefully, over the next few years. When our family was living in Molde in 2002-3, we regularly used a projector, borrowed with permission on weekends from the school where we worked. At that time, bulbs were expensive, used a lot of power and had to be replaced regularly. Today, most projectors are either LCD-based, or Digital Light Projection (DLP) based with a laser, LED, or LCOS (liquid crystal on silicon) light source.

If the projector route is taken, a Philips PicoPix Max provides a minimalist solution. It is a wireless native HD projector, running under the Android OS, with a control touchpad on top. Its built-in battery lasts for three hours of projection. It has Wi-Fi, Bluetooth and USB-C connectivity. Its LED projection source should last for 30 000 hours, and project up to a 120″ (3 meter) image. A more expensive alternative is the Aaxatech 4K1 mini-projector, that costs US$ 1 000. It offers 3840 x 2160 (4K) resolution, 1 500 lumens and 30 000 hours of illumination. Another choice is an Xgimi H2 that uses DLP with four channels of LEDs to beam content. Providing 1350 ANSI Lumens of brightness, requires an effective cooling system. This increased light reduces the wash-out of colours and allows daylight viewing. With its own camera, it is able to adjust focus automatically. It also provides auto keystoning. In terms of sound it provides 16 W through two speakers for treble and mid-range, and a diaphragm for the bass. One major problem with many manufacturers is their repeated attempts at vendor lock-in.

Personal comments: 1) For many years, I had hoped that the Gigabyte Brix Projector would evolve into something useful. Currently, it offers a machine with 75 ANSI lumens, which is inadequate for all but the darkest of localities. 2) The use of a projector like the Xgimi H2 will probably mean that the Asus PN 40 can be repurposed, as the projector is its own media player.

Sound

The human audible frequency range stretches from about 20 Hz to 20 000 Hz (20 kHz). The (Harry) Nyquist (1889 – 1976) – (Claude Elwood) Shannon (1916 – 2001) sampling theorem states that sampling must exceed twice the maximum frequency. This means that the rate has to be 40 kHz or more.

In practice, two sampling rates are used. The first, 44.1 kHz used on compact disks (CD) was inherited from pulse code modulation (PCM) adaptors used to transfer data from recording studio tape to CDs, with a sampling depth of 16 bits/ sample. This capability was developed by Philips and Sony, starting in the 1970s. The second, the digital audio tape (DAT) format of 1987, uses a sampling rate of 48 kHz, which is the standard for professional audio.

The HDMI TV standard (2003) allows both 44.1 kHz and 48 kHz standards, although DVD-Video and Blu-ray Discs use only 48 kHz. Most PC sound cards contain a digital-to-analog converter capable of operating native at either 44.1 kHz or 48 kHz. The average human has no need to exceed these capabilities.

Sound reproduction

There are two major ways of getting sound into the ears of listeners: loudspeakers and headsets. The main advantage of loudspeakers is that they distributes sound to multiple people throughout a venue/ house/ room. This is precisely its main disadvantage. There are numerous types and quantities of loudspeaker systems available. Flat-screen displays often come with built-in speakers that are too thin to give a dynamic range people want. Thus, it is common to augment/ replace these speakers with soundbars, mounted either above or, more typically, below the display, to improve acoustics. They are easy to set up, and are usually less expensive than other stereo sound systems. Some soundbars have left, center, and right speakers plus detachable rear-left and rear-right speakers, and a sub-woofer, to provide surround sound. Premium soundbars come equipped with equalizers, which allow the sound to be tuned to compensate for the shortcomings of room dynamics. Despite these augmentations, some people are critical of their small size and/ or position, and opt to use speakers placed throughout the space.

The main advantage of headsets (earphones/ earbuds) is that sound can be individually adapted for each listener. At the same time, people who are not interested in listening to something can avoid it. Perhaps the greatest disadvantage is that every person must have their own headset. Headsets can be wired or wireless. The main advantage of wireless systems is that they allow a person greater mobility. The main disadvantage is their cost.

Appendix: HD vs 4K Displays

Guidelines from the Society of Motion Picture & Television Engineers recommend viewing at a distance where the screen fills up about 30° of the field of vision. Unfortunately, this recommendation does not take screen resolution into account. If one sits too close to a screen, the individual pixels become visible, detracting from the viewing experience. This is also dependent on the size of the pixels. With HD (1920 x 1080), a given size screen requires a person to sit further back, because it is the pixel size that has to be optimized. With UHD/ 4K (3840 x 2160), it is the field of vision that has to be optimized. .

Type/ limiting factor40″45″55″65″
HD/ pixel size1.561.742.142.50
4K/ field of vision0.710.800.981.25
Optimal viewing distance in meters proposed by Rtings

People are creatures of habit. If they are used to one particular viewing position, they will try to keep that constant, preferring to change the size of the screen, rather than moving closer. This means that consumers are often willing to spend more money to buy a larger screen that optimizes their field of vision, when pixel size issues are resolved.

Other considerations include refresh rates which should be 60 Hz for most activities, although gamers prefer 144 Hz. There is no need for anything beyond this. Note: HDMI 2.0 is needed for 4K video at 60 Hz with 24 bit/px colour depth.