The idea for this posting started when I read New approaches to dominate in embedded development article. Then I found some ther related articles and here is the result: long article.
Embedded devices, or embedded systems, are specialized computer systems that constitute components of larger electromechanical systems with which they interface. The advent of low-cost wireless connectivity is altering many things in embedded development: With a connection to the Internet, an embedded device can gain access to essentially unlimited processing power and memory in cloud service – and at the same time you need to worry about communication issues like breaks connections, latency and security issues.
Those issues are espcecially in the center of the development of popular Internet of Things device and adding connectivity to existing embedded systems. All this means that the whole nature of the embedded development effort is going to change. A new generation of programmers are already making more and more embedded systems. Rather than living and breathing C/C++, the new generation prefers more high-level, abstract languages (like Java, Python, JavaScript etc.). Instead of trying to craft each design to optimize for cost, code size, and performance, the new generation wants to create application code that is separate from an underlying platform that handles all the routine details. Memory is cheap, so code size is only a minor issue in many applications.
Historically, a typical embedded system has been designed as a control-dominated system using only a state-oriented model, such as FSMs. However, the trend in embedded systems design in recent years has been towards highly distributed architectures with support for concurrency, data and control flow, and scalable distributed computations. For example computer networks, modern industrial control systems, electronics in modern car,Internet of Things system fall to this category. This implies that a different approach is necessary.
Companies are also marketing to embedded developers in new ways. Ultra-low cost development boards to woo makers, hobbyists, students, and entrepreneurs on a shoestring budget to a processor architecture for prototyping and experimentation have already become common.If you look under the hood of any connected embedded consumer or mobile device, in addition to the OS you will find a variety of middleware applications. As hardware becomes powerful and cheap enough that the inefficiencies of platform-based products become moot. Leaders with Embedded systems development lifecycle management solutions speak out on new approaches available today in developing advanced products and systems.
Traditional approaches
C/C++
Tradionally embedded developers have been living and breathing C/C++. For a variety of reasons, the vast majority of embedded toolchains are designed to support C as the primary language. If you want to write embedded software for more than just a few hobbyist platforms, your going to need to learn C. Very many embedded systems operating systems, including Linux Kernel, are written using C language. C can be translated very easily and literally to assembly, which allows programmers to do low level things without the restrictions of assembly. When you need to optimize for cost, code size, and performance the typical choice of language is C. Still C is today used for maximum efficiency instead of C++.
C++ is very much alike C, with more features, and lots of good stuff, while not having many drawbacks, except fror it complexity. The had been for years suspicion C++ is somehow unsuitable for use in small embedded systems. At some time many 8- and 16-bit processors were lacking a C++ compiler, that may be a concern, but there are now 32-bit microcontrollers available for under a dollar supported by mature C++ compilers.Today C++ is used a lot more in embedded systems. There are many factors that may contribute to this, including more powerful processors, more challenging applications, and more familiarity with object-oriented languages.
And if you use suitable C++ subset for coding, you can make applications that work even on quite tiny processors, let the Arduino system be an example of that: You’re writing in C/C++, using a library of functions with a fairly consistent API. There is no “Arduino language” and your “.ino” files are three lines away from being standard C++.
Today C++ has not displaced C. Both of the languages are widely used, sometimes even within one system – for example in embedded Linux system that runs C++ application. When you write a C or C++ programs for modern Embedded Linux you typically use GCC compiler toolchain to do compilation and make file to manage compilation process.
Most organization put considerable focus on software quality, but software security is different. When the security is very much talked about topic todays embedded systems, the security of the programs written using C/C++ becomes sometimes a debated subject. Embedded development presents the challenge of coding in a language that’s inherently insecure; and quality assurance does little to ensure security. The truth is that majority of today’s Internet connected systems have their networking fuctionality written using C even of the actual application layer is written using some other methods.
Java
Java is a general-purpose computer programming language that is concurrent, class-based and object-oriented.The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them. Java is intended to let application developers “write once, run anywhere” (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is one of the most popular programming languages in use, particularly for client-server web applications. In addition to those it is widely used in mobile phones (Java apps in feature phones, ) and some embedded applications. Some common examples include SIM cards, VOIP phones, Blu-ray Disc players, televisions, utility meters, healthcare gateways, industrial controls, and countless other devices.
Some experts point out that Java is still a viable option for IoT programming. Think of the industrial Internet as the merger of embedded software development and the enterprise. In that area, Java has a number of key advantages: first is skills – there are lots of Java developers out there, and that is an important factor when selecting technology. Second is maturity and stability – when you have devices which are going to be remotely managed and provisioned for a decade, Java’s stability and care about backwards compatibility become very important. Third is the scale of the Java ecosystem – thousands of companies already base their business on Java, ranging from Gemalto using JavaCard on their SIM cards to the largest of the enterprise software vendors.
Although in the past some differences existed between embedded Java and traditional PC based Java solutions, the only difference now is that embedded Java code in these embedded systems is mainly contained in constrained memory, such as flash memory. A complete convergence has taken place since 2010, and now Java software components running on large systems can run directly with no recompilation at all on design-to-cost mass-production devices (consumers, industrial, white goods, healthcare, metering, smart markets in general,…) Java for embedded devices (Java Embedded) is generally integrated by the device manufacturers. It is NOT available for download or installation by consumers. Originally Java was tightly controlled by Sun (now Oracle), but in 2007 Sun relicensed most of its Java technologies under the GNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java (bytecode compiler), GNU Classpath (standard libraries), and IcedTea-Web (browser plugin for applets).
My feelings with Java is that if your embedded systems platform supports Java and you know hot to code Java, then it could be a good tool. If your platform does not have ready Java support, adding it could be quite a bit of work.
Increasing trends
Databases
Embedded databases are coming more and more to the embedded devices. If you look under the hood of any connected embedded consumer or mobile device, in addition to the OS you will find a variety of middleware applications. One of the most important and most ubiquitous of these is the embedded database. An embedded database system is a database management system (DBMS) which is tightly integrated with an application software that requires access to stored data, such that the database system is “hidden” from the application’s end-user and requires little or no ongoing maintenance.
There are many possible databases. First choice is what kind of database you need. The main choices are SQL databases and simpler key-storage databases (also called NoSQL).
SQLite is the Database chosen by virtually all mobile operating systems. For example Android and iOS ship with SQLite. It is also built into for example Firefox web browser. It is also often used with PHP. So SQLite is probably a pretty safe bet if you need relational database for an embedded system that needs to support SQL commands and does not need to store huge amounts of data (no need to modify database with millions of lines of data).
If you do not need relational database and you need very high performance, you need probably to look somewhere else.Berkeley DB (BDB) is a software library intended to provide a high-performance embedded database for key/value data. Berkeley DB is written in Cwith API bindings for many languages. BDB stores arbitrary key/data pairs as byte arrays. There also many other key/value database systems.
RTA (Run Time Access) gives easy runtime access to your program’s internal structures, arrays, and linked-lists as tables in a database. When using RTA, your UI programs think they are talking to a PostgreSQL database (PostgreSQL bindings for C and PHP work, as does command line tool psql), but instead of normal database file you are actually accessing internals of your software.
Software quality
Building quality into embedded software doesn’t happen by accident. Quality must be built-in from the beginning. Software startup checklist gives quality a head start article is a checklist for embedded software developers to make sure they kick-off their embedded software implementation phase the right way, with quality in mind
Safety
Traditional methods for achieving safety properties mostly originate from hardware-dominated systems. Nowdays more and more functionality is built using software – including safety critical functions. Software-intensive embedded systems require new approaches for safety. Embedded Software Can Kill But Are We Designing Safely?
IEC, FDA, FAA, NHTSA, SAE, IEEE, MISRA, and other professional agencies and societies work to create safety standards for engineering design. But are we following them? A survey of embedded design practices leads to some disturbing inferences about safety.Barr Group’s recent annual Embedded Systems Safety & Security Survey indicate that we all need to be concerned: Only 67 percent are designing to relevant safety standards, while 22 percent stated that they are not—and 11 percent did not even know if they were designing to a standard or not.
If you were the user of a safety-critical embedded device and learned that the designers had not followed best practices and safety standards in the design of the device, how worried would you be? I know I would be anxious, and quite frankly. This is quite disturbing.
Security
The advent of low-cost wireless connectivity is altering many things in embedded development – it has added to your list of worries need to worry about communication issues like breaks connections, latency and security issues. Understanding security is one thing; applying that understanding in a complete and consistent fashion to meet security goals is quite another. Embedded development presents the challenge of coding in a language that’s inherently insecure; and quality assurance does little to ensure security.
Developing Secure Embedded Software white paper explains why some commonly used approaches to security typically fail:
MISCONCEPTION 1: SECURITY BY OBSCURITY IS A VALID STRATEGY
MISCONCEPTION 2: SECURITY FEATURES EQUAL SECURE SOFTWARE
MISCONCEPTION 3: RELIABILITY AND SAFETY EQUAL SECURITY
MISCONCEPTION 4: DEFENSIVE PROGRAMMING GUARANTEES SECURITY
Some techniques for building security to embedded systems:
Use secure communications protocols and use VPN to secure communications
The use of Public Key Infrastructure (PKI) for boot-time and code authentication
Establishing a “chain of trust”
Process separation to partition critical code and memory spaces
Leveraging safety-certified code
Hardware enforced system partitioning with a trusted execution environment
Plan the system so that it can be easily and safely upgraded when needed
Flood of new languages
Rather than living and breathing C/C++, the new generation prefers more high-level, abstract languages (like Java, Python, JavaScript etc.). So there is a huge push to use interpreted and scripting also in embedded systems. Increased hardware performance on embedded devices combined with embedded Linux has made the use of many scripting languages good tools for implementing different parts of embedded applications (for example web user interface). Nowadays it is common to find embedded hardware devices, based on Raspberry Pi for instance, that are accessible via a network, run Linux and come with Apache and PHP installed on the device. There are also many other relevant languages
One workable solution, especially for embedded Linux systems is that part of the activities organized by totetuettu is a C program instead of scripting languages (Scripting). This enables editing operation simply script files by editing without the need to turn the whole system software again. Scripting languages are also tools that can be implemented, for example, a Web user interface more easily than with C / C ++ language. An empirical study found scripting languages (such as Python) more productive than conventional languages (such as C and Java) for a programming problem involving string manipulation and search in a dictionary.
Scripting languages have been around for a couple of decades Linux and Unix server world standard tools. the proliferation of embedded Linux and resources to merge systems (memory, processor power) growth has made them a very viable tool for many embedded systems – for example, industrial systems, telecommunications equipment, IoT gateway, etc . Some of the command language is suitable for up well even in quite small embedded environments.
I have used with embedded systems successfully mm. Bash, AWK, PHP, Python and Lua scripting languages. It works really well and is really easy to make custom code quickly .It doesn’t require a complicated IDE; all you really need is a terminal – but if you want there are many IDEs that can be used. High-level, dynamically typed languages, such as Python, Ruby and JavaScript. They’re easy—and even fun—to use. They lend themselves to code that easily can be reused and maintained.
There are some thing that needs to be considered when using scripting languages. Sometimes lack of static checking vs a regular compiler can cause problems to be thrown at run-time. But it is better off practicing “strong testing” than relying on strong typing. Other ownsides of these languages is that they tend to execute more slowly than static languages like C/C++, but for very many aplications they are more than adequate. Once you know your way around dynamic languages, as well the frameworks built in them, you get a sense of what runs quickly and what doesn’t.
Bash and other shell scipting
Shell commands are the native language of any Linux system. With the thousands of commands available for the command line user, how can you remember them all? The answer is, you don’t. The real power of the computer is its ability to do the work for you – the power of the shell script is the way to easily to automate things by writing scripts. Shell scripts are collections of Linux command line commands that are stored in a file. The shell can read this file and act on the commands as if they were typed at the keyboard.In addition to that shell also provides a variety of useful programming features that you are familar on other programming langauge (if, for, regex, etc..). Your scripts can be truly powerful. Creating a script extremely straight forward: It can be created by opening a separate editor such or you can do it through a terminal editor such as VI (or preferably some else more user friendly terminal editor). Many things on modern Linux systems rely on using scripts (for example starting and stopping different Linux services at right way).
The most common type of shell script is a bash script. Bash is a commonly used scripting language for shell scripts. In BASH scripts (shell scripts written in BASH) users can use more than just BASH to write the script. There are commands that allow users to embed other scripting languages into a BASH script.
There are also other shells. For example many small embedded systems use BusyBox. BusyBox providesis software that provides several stripped-down Unix tools in a single executable file (more than 300 common command). It runs in a variety of POSIX environments such as Linux, Android and FreeeBSD. BusyBox become the de facto standard core user space toolset for embedded Linux devices and Linux distribution installers.
Shell scripting is a very powerful tool that I used a lot in Linux systems, both embedded systems and servers.
Lua
Lua is a lightweight cross-platform multi-paradigm programming language designed primarily for embedded systems and clients. Lua was originally designed in 1993 as a language for extending software applications to meet the increasing demand for customization at the time. It provided the basic facilities of most procedural programming languages. Lua is intended to be embedded into other applications, and provides a C API for this purpose.
Lua has found many uses in many fields. For example in video game development, Lua is widely used as a scripting language by game programmers. Wireshark network packet analyzer allows protocol dissectors and post-dissector taps to be written in Lua – this is a good way to analyze your custom protocols.
There are also many embedded applications. LuCI, the default web interface for OpenWrt, is written primarily in Lua. NodeMCU is an open source hardware platform, which can run Lua directly on the ESP8266 Wi-Fi SoC. I have tested NodeMcu and found it very nice system.
PHP
PHP is a server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic websites but can also be used as a general-purpose programming language. Nowadays it is common to find embedded hardware devices, based on Raspberry Pi for instance, that are accessible via a network, run Linux and come with Apache and PHP installed on the device. So on such enviroment is a good idea to take advantage of those built-in features for the applications they are good – for building web user interface. PHP is often embedded into HTML code, or it can be used in combination with various web template systems, web content management system and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in the web server or as a Common Gateway Interface (CGI) executable.
Python
Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. Its design philosophy emphasizes code readability. Python interpreters are available for installation on many operating systems, allowing Python code execution on a wide variety of systems. Many operating systems include Python as a standard component; the language ships for example with most Linux distributions.
Python is a multi-paradigm programming language: object-oriented programming and structured programming are fully supported, and there are a number of language features which support functional programming and aspect-oriented programming, Many other paradigms are supported using extensions, including design by contract and logic programming.
Python is a remarkably powerful dynamic programming language that is used in a wide variety of application domains. Since 2003, Python has consistently ranked in the top ten most popular programming languages as measured by the TIOBE Programming Community Index. Large organizations that make use of Python include Google, Yahoo!, CERN, NASA. Python is used successfully in thousands of real world business applications around globally, including many large and mission-critical systems such as YouTube.com and Google.com.
Python was designed to be highly extensible. Libraries like NumPy, SciPy and Matplotlib allow the effective use of Python in scientific computing. Python is intended to be a highly readable language. Python can also be embedded in existing applications and hasbeen successfully embedded in a number of software products as a scripting language. Python can serve as a scripting language for web applications, e.g., via mod_wsgi for the Apache web server.
Python can be used in embedded, small or minimal hardware devices. Some modern embedded devices have enough memory and a fast enough CPU to run a typical Linux-based environment, for example, and running CPython on such devices is mostly a matter of compilation (or cross-compilation) and tuning. Various efforts have been made to make CPython more usable for embedded applications.
For more limited embedded devices, a re-engineered or adapted version of CPython, might be appropriate. Examples of such implementations include the following: PyMite, Tiny Python, Viper. Sometimes the embedded environment is just too restrictive to support a Python virtual machine. In such cases, various Python tools can be employed for prototyping, with the eventual application or system code being generated and deployed on the device. Also MicroPython and tinypy have been ported Python to various small microcontrollers and architectures. Real world applications include Telit GSM/GPRS modules that allow writing the controlling application directly in a high-level open-sourced language: Python.
Python on embedded platforms? It is quick to develop apps, quick to debug – really easy to make custom code quickly. Sometimes lack of static checking vs a regular compiler can cause problems to be thrown at run-time. To avoid those try to have 100% test coverage. pychecker is a very useful too also which will catch quite a lot of common errors. The only downsides for embedded work is that sometimes python can be slow and sometimes it uses a lot of memory (relatively speaking). An empirical study found scripting languages (such as Python) more productive than conventional languages (such as C and Java) for a programming problem involving string manipulation and search in a dictionary. Memory consumption was often “better than Java and not much worse than C or C++”.
JavaScript and node.js
JavaScript is a very popular high-level language. Love it or hate it, JavaScript is a popular programming language for many, mainly because it’s so incredibly easy to learn. JavaScript’s reputation for providing users with beautiful, interactive websites isn’t where its usefulness ends. Nowadays, it’s also used to create mobile applications, cross-platform desktop software, and thanks to Node.js, it’s even capable of creating and running servers and databases! There is huge community of developers. JavaScript is a high-level language.
Its event-driven architecture fits perfectly with how the world operates – we live in an event-driven world. This event-driven modality is also efficient when it comes to sensors.
Regardless of the obvious benefits, there is still, understandably, some debate as to whether JavaScript is really up to the task to replace traditional C/C++ software in Internet connected embedded systems.
It doesn’t require a complicated IDE; all you really need is a terminal.
JavaScript is a high-level language. While this usually means that it’s more human-readable and therefore more user-friendly, the downside is that this can also make it somewhat slower. Being slower definitely means that it may not be suitable for situations where timing and speed are critical.
JavaScript is already in embedded boards. You can run JavaScipt on Raspberry Pi and BeagleBone. There are also severa other popular JavaScript-enabled development boards to help get you started: The Espruino is a small microcontroller that runs JavaScript. The Tessel 2 is a development board that comes with integrated wi-fi, an ethernet port, two USB ports, and companion source library downloadable via the Node Package Manager. The Kinoma Create, dubbed the “JavaScript powered Internet of Things construction kit.”The best part is that, depending on the needs of your device, you can even compile your JavaScript code into C!
JavaScript for embedded systems is still in its infancy, but we suspect that some major advancements are on the horizon.We for example see a surprising amount of projects using Node.js.Node.js is an open-source, cross-platform runtime environment for developing server-side Web applications. Node.js has an event-driven architecture capable of asynchronous I/O that allows highly scalable servers without using threading, by using a simplified model of event-driven programming that uses callbacks to signal the completion of a task. The runtime environment interprets JavaScript using Google‘s V8 JavaScript engine.Node.js allows the creation of Web servers and networking tools using JavaScript and a collection of “modules” that handle various core functionality. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world. Modern desktop IDEs provide editing and debugging features specifically for Node.js applications
JXcore is a fork of Node.js targeting mobile devices and IoTs. JXcore is a framework for developing applications for mobile and embedded devices using JavaScript and leveraging the Node ecosystem (110,000 modules and counting)!
Why is it worth exploring node.js development in an embedded environment? JavaScript is a widely known language that was designed to deal with user interaction in a browser.The reasons to use Node.js for hardware are simple: it’s standardized, event driven, and has very high productivity: it’s dynamically typed, which makes it faster to write — perfectly suited for getting a hardware prototype out the door. For building a complete end-to-end IoT system, JavaScript is very portable programming system. Typically an IoT projects require “things” to communicate with other “things” or applications. The huge number of modules available in Node.js makes it easier to generate interfaces – For example, the HTTP module allows you to create easily an HTTP server that can easily map the GET
method specific URLs to your software function calls. If your embedded platform has ready made Node.js support available, you should definately consider using it.
Future trends
According to New approaches to dominate in embedded development article there will be several camps of embedded development in the future:
One camp will be the traditional embedded developer, working as always to craft designs for specific applications that require the fine tuning. These are most likely to be high-performance, low-volume systems or else fixed-function, high-volume systems where cost is everything.
Another camp might be the embedded developer who is creating a platform on which other developers will build applications. These platforms might be general-purpose designs like the Arduino, or specialty designs such as a virtual PLC system.
This third camp is likely to become huge: Traditional embedded development cannot produce new designs in the quantities and at the rate needed to deliver the 50 billion IoT devices predicted by 2020.
Transition will take time. The enviroment is different than computer and mobile world. There are too many application areas with too widely varying requirements for a one-size-fits-all platform to arise.
Sources
Most important information sources:
New approaches to dominate in embedded development
A New Approach for Distributed Computing in Embedded Systems
New Approaches to Systems Engineering and Embedded Software Development
Embracing Java for the Internet of Things
Embedded Linux – Shell Scripting 101
Embedded Linux – Shell Scripting 102
Embedding Other Languages in BASH Scripts
PHP Integration with Embedded Hardware Device Sensors – PHP Classes blog
JavaScript: The Perfect Language for the Internet of Things (IoT)
Anyone using Python for embedded projects?
JavaScript: The Perfect Language for the Internet of Things (IoT)
MICROCONTROLLERS AND NODE.JS, NATURALLY
Node.JS Appliances on Embedded Linux Devices
The smartest way to program smart things: Node.js
Embedded Software Can Kill But Are We Designing Safely?
DEVELOPING SECURE EMBEDDED SOFTWARE
1,677 Comments
Tomi Engdahl says:
https://www.linkedin.com/pulse/embedded-operating-systems-market-size-competitive-nvwlc/
https://www.linkedin.com/pulse/embedded-operating-systems-market-findings-united-states-scqwc/
Tomi Engdahl says:
https://www.gminsights.com/industry-analysis/embedded-system-market
https://www.maximizemarketresearch.com/market-report/global-embedded-software-market/25283/
https://www.researchnester.com/reports/real-time-operating-system-market/5696
https://www.globenewswire.com/en/news-release/2024/01/08/2805532/0/en/IoT-Operating-Systems-Market-Size-Worth-USD-4-06-Billion-in-2032-Emergen-Research.html
Tomi Engdahl says:
https://www.windriver.com/solutions/learning/what-are-cots-mots-gots-nots
https://www.trentonsystems.com/en-us/resource-hub/blog/what-is-cots-commercial-off-the-shelf
https://en.wikipedia.org/wiki/Commercial_off-the-shelf
Tomi Engdahl says:
https://www.viewpointusa.com/IE/wp/comparing-off-the-shelf-to-custom-designs-for-industrial-embedded-systems/
https://www.viewpointusa.com/IE/wp/comparing-off-the-shelf-to-custom-designs-for-industrial-embedded-systems/
Tomi Engdahl says:
https://embeddedcomputing.com/application/industrial/industrial-computing/should-i-use-off-the-shelf-or-custom-hardware-in-my-electronic-product
https://www.digi.com/blog/post/choose-the-starting-point-embedded-system-design
https://www.velvetech.com/blog/embedded-system-design-guide/
https://www.sensiblemicro.com/blog/3-reasons-to-use-system-on-modules-som-in-embedded-system-design
https://www.viewpointusa.com/IE/ar/comparing-ots-and-custom-design-for-embedded-controllers/
https://electronics.stackexchange.com/questions/95073/when-do-we-need-an-operating-system-in-embedded-system-design
Tomi Engdahl says:
Pienin Linux sopii kolmeen megatavuun
https://etn.fi/index.php/13-news/16596-pienin-linux-sopii-kolmeen-megatavuun
Erilaisia Linux-versioita on käytössä satoja, aktiivisena joidenkin tietojen mukaan yli 600 erilaista. Pienimmillään Linux sopii vain 11 megatavuun, kuten Tiny Core Linux. Ilman graafista ympäristöä paketti kutistuu vain 3 megatavuun.
Koodistoltaan toiseksi pienimmäksi on listattu Damn Small Linux, jonka koko asennettuna on 50 megatavua. Se perustuu Knoppixiin, joka puolestaan perustuu Debianiin. DSL:ää ei kuitenkaan enää aktiivisesti ylläpidetä.
Kolmanneksi tiukimmaksi on arvioitu SliTaz, joka on niin ikään noin 50 megatavun paketti. Sitä voidaan ajaa ns. liveversiona suoraan SUB-tikulta, jos käytössä on 256 megatavua RAM-muistia.
Tiny Core Linux on kuitenkin tässä vertailussa omaa luokkaansa. Sen tarkoituksena on tarjota vain perustavanlaatuinen ympäristö, johon käyttäjä voi asentaa juuri ne ohjelmistot, joita hän tarvitsee. Sitäkin voidaan ajaa suoraan RAM-muistissa liver-versiona, joten periaatteessa käyttöjärjestelmää voi kantaa tikulla mukanaan.
TCL vaatii noin 48 megatavua RAM-muistia. Sitä voi käyttää myös graffisen käyttöliittymän yli, jolloin RAM-tarve kasvaa huikeaan 128 megatavuun. Perusversiossa on kuitenkin erittäin vähän esiasennettuja ohjelmia: vain komentorivityökalut ja kevyt ikkunaohjelma (GUI), kuten FLWM tai JWM.
Koska TCL toimii suoraan RAM-muistista, se on erittäin nopea, varsinkin vanhalla tai vähäisillä resursseilla varustetulla laitteistolla. Tiny Core Linux käyttää omaa TCE-pakettihallintajärjestelmää (Tiny Core Extensions)
http://tinycorelinux.net/
Tomi Engdahl says:
https://etn.fi/index.php/13-news/16609-tpm-turvamoduulien-suojaus-kovenee
Yhdysvaltain valtionhallinnossa vaaditaan, että arkaluonteista dataa sisältävät laitteet pitää suojata erilliseen TPM-turvamoduuliin. STMicroelectronics on nyt esitellyt ensimmäisen TPM-moduulin, joka tukee syyskuussa 2026 pakolliseksi tulevaa FIPS 140-3-sertifiointia.
FIPS 140-3 tuo useita parannuksia verrattuna edeltäjäänsä FIPS 140-2 -standardiin, erityisesti tietoturvan kannalta. Ensinnäkin FIPS 140-3 on linjassa kansainvälisen ISO/IEC 19790 -standardin kanssa, mikä tekee siitä yhteensopivan kansainvälisillä markkinoilla ja parantaa moduulien turvallisuutta maailmanlaajuisesti. Lisäksi fyysisiä turvallisuusvaatimuksia on tiukennettu, erityisesti tasoilla 3 ja 4, joissa vaaditaan parempaa suojaa mm. ympäristövaurioilta ja luvattomilta fyysisiltä hyökkäyksiltä.
Tomi Engdahl says:
https://etn.fi/index.php/new-products/16615-dfi-n-korttimoduulit-laajasti-mespekiltae
Tomi Engdahl says:
https://www.gartner.com/reviews/market/embedded-operating-systems
Tomi Engdahl says:
https://daily.dev/blog/embedded-software-development-comprehensive-guide-2024
Tomi Engdahl says:
https://www.lynx.com/embedded-systems-learning-center/most-popular-real-time-operating-systems-rtos
Tomi Engdahl says:
https://www.linkedin.com/pulse/future-embedded-systems-2024-beyond-unveiling-emerging-trends-technologies-2j7qe
Tomi Engdahl says:
https://www.innovate.hardworx.io/post/how-hardware-startups-can-protect-their-intellectual-property
Tomi Engdahl says:
https://fastercapital.com/topics/what-is-hardware-ip-and-how-to-protect-it.html
Tomi Engdahl says:
https://www.hackster.io/news/spec5-s-nomad-lora-handheld-packs-a-raspberry-pi-5-for-meshtastic-compatible-computing-and-comms-e55d2f1cecff
Tomi Engdahl says:
https://www.electronicdesign.com/technologies/embedded/article/55137637/electronic-design-iot-for-dummies-arduinos-new-plug-and-make-kit
Tomi Engdahl says:
Arduino’s CEO on the Commercial Future of Open-Source Hardware
Sept. 6, 2024
Fabio Violante, CEO of Arduino, explains how open-source hardware is moving from the “maker” space into the commercial market.
https://www.electronicdesign.com/technologies/embedded/article/55138420/electronic-design-6-questions-with-arduinos-ceo-on-commercial-open-source-hardware
Tomi Engdahl says:
https://www.raspberrypi.com/news/rust-on-rp2350/
Tomi Engdahl says:
Google says replacing C/C++ in firmware with Rust is easy
Not so much when trying to convert coding veterans
https://www.theregister.com/2024/09/06/google_rust_c_code_language/
Tomi Engdahl says:
https://etn.fi/index.php/tekniset-artikkelit/16622-naein-valitset-sopivan-akun-mobiilirobotille
Tomi Engdahl says:
https://aspencore.com/partner/embedded/
https://www.lynx.com/embedded-systems-learning-center/most-popular-real-time-operating-systems-rtos
Tomi Engdahl says:
https://www.reddit.com/r/embedded/comments/1cdmruz/why_are_34glte_modules_so_expensive/?chainedPosts=t3_s1fs42
Tomi Engdahl says:
https://etn.fi/index.php/13-news/16623-helposti-graafinen-kaeyttoeliittymae-sulautettuihin
Suunnittelijat sisällyttävät graafisia käyttöliittymiä useimpiin elektronisiin laitteisiin parantaakseen käyttökokemusta ja tehdäkseen sovelluksesta visuaalisesti houkuttelevamman. Microchip on nyt esitellyt ohjelmiston, jolla näyttävien käyttöliittymien suunnittelu onnistuu sekä sen omassa MPLAB-kehitysympäristössä että Linuxissa.
Tomi Engdahl says:
https://www.embedded.com/5-roadblocks-to-rust-adoption-in-embedded-systems/
Tomi Engdahl says:
https://tweedegolf.nl/en/blog/96/why-rust-is-a-great-fit-for-embedded-software-2023-update
Tomi Engdahl says:
https://www.reddit.com/r/embedded/comments/dgc0lo/how_to_protect_hardwarefirmwaresoftware_ip_when/
Tomi Engdahl says:
https://paul-walsh.medium.com/my-response-to-people-who-think-open-source-is-the-answer-to-everything-f7803ea514fb
https://www.reddit.com/r/programming/comments/17lemv5/open_source_is_struggling_and_its_not_big_tech/
Tomi Engdahl says:
https://en.wikipedia.org/wiki/Rust_(programming_language)
Tomi Engdahl says:
https://www.rust-lang.org/
https://github.blog/developer-skills/programming-languages-and-frameworks/why-rust-is-the-most-admired-language-among-developers/
Tomi Engdahl says:
https://quantumzeitgeist.com/why-is-the-python-programming-language-so-popular/
https://www.designnews.com/embedded-systems/5-embedded-software-trends-to-watch-in-2024
Tomi Engdahl says:
https://www.amoriabond.com/en/insights/blog/the-top-4-programming-languages-for-embedded-systems/
https://www.tiobe.com/tiobe-index/
Tomi Engdahl says:
TIOBE Index for September 2024
September Headline: Programming language C at lowest position ever
https://www.tiobe.com/tiobe-index/
One of the mothers of all programming languages, C, has dropped one position in the TIOBE index this month. C is currently at position #4, which is its lowest position ever since the start of the TIOBE index in 2001. Is C losing its mojo? C is a relatively small programming language, which generates very performant code. As a consequence, it has been the favorite of embedded systems for a very long time. The only serious drawback of C so far was that it is not designed to scale. Large C programs are hard to maintain because of the lack of object oriented features. Now that embedded systems tend to grow in functionality and thus in code size, and since more and more embedded compilers have good C++ support, there is tendency to switch from C to C++. Recently another threat for C raised its head. The US government wants to put a ban on memory unsafe languages such as C in favor of memory safe languages such as Rust. This is the other tendency I observe. Companies are checking out Rust as an alternative for C. C might lose its mojo, but it will stay in the TIOBE index top 10 for a very long time. Its installed base is incredible and it is part of a zillion of safety-critical systems around the world.
Tomi Engdahl says:
https://etn.fi/index.php/new-products/16659-rutronikin-uusin-sovitinkortti-laittaa-auton-ledit-ojennukseen
Tomi Engdahl says:
IoT-laitteet suoraan pilveen valmiina palveluina
https://etn.fi/index.php/13-news/16660-iot-laitteet-suoraan-pilveen-valmiina-palveluina
Automaatioteknologian ratkaisuja toimittava Advantech on lanseerannut uusia reunapalvelupaketteja esimerkiksi Azure IoT Edge- ja AWS IoT Greengrass -ratkaisuja varten. Palveluja tarjotaan EaaS-mallina (Edge-as-a-Service), jossa laitteisto, reunalaskentaohjelmisto ja niihin liittyvät pilvipalvelut integroidaan tehokkaan orkestroinnin varmistamiseksi
Reaaliaikainen data ja paikalliset säätömahdollisuudet ovat entistä tärkeämpiä teollisissa toimintaympäristöissä. Tämä on vauhdittanut myös reunalaskentaratkaisujen käyttöönottoa. Reunapalvelujen ja pilvipalvelujen on toimittava saumattomasti yhteen, jotta digitalisoinnista on aidosti hyötyä.
Advantechin reunapalvelupaketit on suunniteltu nimenomaan Advantechin laitteistoalustojen ja kolmansien osapuolten ohjelmistosovellusten tarpeisiin parantamaan mukautettavuutta ja käyttäjäkokemusta. Uudet paketit tarjoavat laitehallintaan, reunaälyyn pohjautuvaan valvontaan ja ohjelmistohallintaan liittyviä palveluja, jotka helpottavat saumattomasti skaalautuvaa digitalisointia. Ratkaisut voidaan ottaa nopeasti käyttöön ja integroida olemassa oleviin ratkaisuihin.
Tomi Engdahl says:
https://etn.fi/index.php/13-news/16682-kontron-lisaesi-intelin-tekoaelyn-korttitietokoneelleen
Tomi Engdahl says:
Audioprosesorin voi ensimmäistä kertaa suunnitella Matlabilla ja Simulinkillä
https://etn.fi/index.php/13-news/16688-audioprosesorin-voi-ensimmaeistae-kertaa-suunnitella-matlabilla-ja-simulinkillae
Perinteisesti digitaalisten signaaliprosessorien (DSP) ohjelmistokehitys on ollut monivaiheinen prosessi: ensin kehitetään algoritmi erikoistyökalulla, sitten se mukautetaan tietylle käyttöalueelle ja lopuksi toteutetaan DSP. Cadence tarjoaa nyt työkalua, jolla suunnittelussa voidaan käyttää MathWorksin suosittuja Matlab- ja Simulink-työkaluja.
Cadence on julkistanut ensimmäisen DSP-koodigeneraattorin, joka mahdollistaa Matlab- ja Simulink-mallien nopean siirtämisen Cadence Tensilica HiFi DSP -prosessoreille. Yhtiön mukaan työkalu muuttaa insinöörien ja algoritmien kehittäjien tavan suunnitella ja toteuttaa audiosignaalialgoritmeja.
Tomi Engdahl says:
Wi-Fi-antenni suoraan ethernet-liittimeen
https://etn.fi/index.php/13-news/16690-wi-fi-antenni-suoraan-ethernet-liittimeen
Irlantilainen Taoglas esittelee Austinissa Embedded World North America -näyttelyssä erikoista uutta antenniratkaisua. AntJack-nimellä myytävä FXM100 on tavalliseen RS45- eli ethernet-verkkoliitäntään istuva antennimoduuli.
AntJack voidaan asentaa mihin tahansa RJ45 -liittimeen, jolloin luodaan 2-in-1-tyyppinen liitinratkaisu. Ethernet-liitäntä säilyy käytössä samalla kun laite saa Wi-Fi-yhteyden. Antenni tukee yhteyksiä 2,4 ja 5,8 GHz:n välillä ja lisäksi 7,1 gigahertsin taajuudella.
Asentamalla antenni liittimeen säästetään paljon tilaa laitteet piirilevyllä. Samalla liitintä voidaan käyttää antennin maadoitukseen
Antenni on kooltaan 26,6 x 15,6 x 13,1 millimetriä. Se voidaan ostaa myös yhdessä Taoglasin magneettiliittimien ja huippuluokan Ethernet-kaapeleiden kanssa.
Tomi Engdahl says:
https://www.taoglas.com/news/taoglas-introduces-industry-first-wi-fi-antenna-for-an-rj45-jack/
https://www.businesswire.com/news/home/20241007276094/en/Taoglas-Introduces-%E2%80%9CAntJack%E2%80%9D%E2%80%94an-Industry-first-Wi-Fi-Antenna-for-an-RJ45-Jack
Juni says:
It’s fascinating to see how traditional methods using C/C++ are still relevant, but newer, more abstract languages like Java, Python, and JavaScript are making significant inroads. The shift towards high-level languages, driven by advancements in processing power and cloud connectivity, is certainly changing the game, especially with the rise of IoT.
Tomi Engdahl says:
https://etn.fi/index.php/72-ecf/16691-ecf24-osm-yleistyy-sulautetuissa-suunnitteluissa
Iso osa sulautetuista suunnitteluista perustuu valmiisiin korttimoduuleihin eli COM-moduuleihin. Yksi uusimmista standardeista on OSM eli Open Standard Module. Adlink Technologyn Henrik Petersen esitteli uutta moduuli ECF24-tapahtumassa.
OSM-moduuli eroaa muista korttimoduuleista monella tapaa. Se on kompakti ja vain noin puolet esimerkiksi L-koon SMARC-moduuliin verrattuna. – Yksi tärkeimpiä eroja on se, että OSM on juotettava. Sitä voi käsitellä kuin mitä tahansa BGA-komponenttia tuotannossa, Petersen korosti.
Tomi Engdahl says:
CAN
https://www.typhoon-hil.com/documentation/typhoon-hil-software-manual/References/can_bus_protocol.html
https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/the-basics-of-canopen.html
https://kvaser.com/canking/
https://community.st.com/t5/stm32-mcus-products/bulk-data-transfer-on-can-bus/td-p/417422
Tomi Engdahl says:
LwM2M
https://bcdevices.github.io/coap/udp/dtls/2019/10/28/lwm2m.html
https://www.emnify.com/developer-blog/mqtt-vs-lwm2m?utm_term=&utm_campaign=SEA-EN-EUR_EN-MC-DSA-NoFu-DSA_Pilot&utm_source=google&utm_medium=cpc&hsa_acc=2901734809&hsa_cam=18796424820&hsa_grp=141772873566&hsa_ad=664201841664&hsa_src=g&hsa_tgt=dsa-1877986183819&hsa_kw=&hsa_mt=&hsa_net=adwords&hsa_ver=3&gad_source=1&gclid=EAIaIQobChMIm-KB_siHhQMVdguiAx10AgTtEAAYASAAEgKk6PD_BwE
https://www.softwareag.com/en_corporate/resources/iot/article/lwm2m.html
https://en.wikipedia.org/wiki/OMA_LWM2M
https://github.com/topics/lwm2m
https://github.com/supasate/lwIP/blob/master/src/core/inet_chksum.c
Tomi Engdahl says:
https://github.com/zw-normal/pycallgraph
https://github.com/scottrogowski/code2flow
Tomi Engdahl says:
Rockchip Teases the Next Generation Flagship Processor RK3688 for On-Device Artificial Intelligence
With as-yet unannounced ARMv9.3 processor cores, a powerful GPU, and a 16 TOPS NPU, the RK3688 promises to be a real beast.
https://www.hackster.io/news/rockchip-teases-the-next-generation-flagship-processor-rk3688-for-on-device-artificial-intelligence-0ec0fcd2deef
Rockchip is preparing to launch a new system-on-chip targeting the Artificial Intelligence of Things (AIoT) and machine learning (ML) at the edge: the Rockchip RK3688, which includes both a powerful graphics processor and a dedicated 16 tera-operations per second (TOPS) neural coprocessor.
“for AIoT applications. Advanced processors: CPU ~250k DMIPS [Dhrystone Millions of Instructions Per Second], GPU >1 TGFLOPS [sic, likely Tera-Floating Point Operations Per Second], NPU ~16 TOPS.”
Rockchip has yet to publish any information about the upcoming products on its site, but embedded computing specialist Radxa has already issued a statement pledging to use the RK3688 for a next-generation ROCK 6 single-board computer.
Tomi Engdahl says:
https://www.hackster.io/news/sebastian-lederer-s-tridora-system-is-a-ground-up-pascal-native-microcomputer-on-an-fpga-5c73ae06670f?fbclid=IwY2xjawF1gvRleHRuA2FlbQIxMQABHVww6hAzpe6QXrlJrSHwmzbjrCsK8RcA7xkFIInFLcJTPn0DeaKIKoeOiQ_aem_3J_B2vMvAqHhDZO9TnwsFQ
Tomi Engdahl says:
Arduino Smells the Roses with the Nicla Sense Env — Its First Non-Standalone Nicla Sensor Board
Designed for use with a Portenta or MKR development board, this is the first Nicla to not be programmable for standalone use.
https://www.hackster.io/news/arduino-smells-the-roses-with-the-nicla-sense-env-its-first-non-standalone-nicla-sensor-board-ea8c27628c90
Tomi Engdahl says:
How to Implement PCI Express®-over-Optics in Embedded Systems
June 26, 2024 By Janine Love
Traditionally perceived as a chip-to-chip, single-host interconnect technology, PCIe (PCI Express) over fiber is making inroads into switch fabrics, challenging and potentially replacing previous interconnect technologies in embedded systems.
https://blog.samtec.com/post/how-to-implement-pci-express-over-optics-in-embedded-systems/
Tomi Engdahl says:
Sulautetun koodin kehitys tuli helpommaks
https://etn.fi/index.php/13-news/16705-sulautetun-koodin-kehitys-tuli-helpommaksi
Analog Devices on julkaissut uuden CodeFusion Studio -ohjelmistokehitysympäristön, joka yksinkertaistaa ja nopeuttaa sulautettujen järjestelmien kehitystä erityisesti Intelligent Edge -sovelluksissa. CodeFusion Studio pohjautuu Microsoftin Visual Studio Codeen ja tarjoaa modernin, integroidun kehitysympäristön (IDE), joka sisältää avoimen lähdekoodin konfigurointi- ja profilointityökaluja.
CodeFusion Studio on ADI:n ensimmäinen täysin integroitu ohjelmisto- ja tietoturvaratkaisujen paketti. Se on nyt ladattavissa yhtiön uudesta kehittäjäportaalista (developer.analog.com), joka tarjoaa kattavan resurssikeskuksen kehittäjille. Portaalista löytyy laajasti dokumentaatiota, tukea, kumppanuuksia sekä yhteisön osallistumismahdollisuuksia.
Lisäksi CodeFusion Studio tukee myös ADI Assure Trusted Edge Security Architecturea, joka on yrityksen yleinen tietoturva-arkkitehtuuri sulautetuille laitteille ja ohjelmistoille.
CodeFusion Studio on rakennettu avoimen lähdekoodin ratkaisujen pohjalta ja se tukee useita laitteistoja, mukaan lukien valikoituja ADI-mikro-ohjaimia. Jatkossa tuki laajenee koskemaan lisää digitaaliratkaisuja. Kehitysympäristö sisältää ohjelmistokehityspaketit (SDK) sekä konfigurointi- ja tuottavuustyökalut, joiden avulla kehittäjät voivat yksinkertaistaa projektinsa eri vaiheita.
ADI:n mukaan jopa puolet tuotekehityssyklistä voi kulua virheenkorjaukseen ja järjestelmien käyttöönottovalmiuksien kehittämiseen. CodeFusion Studio tätä aikaa voidaan merkittävästi lyhentää, ADI ennakoi.
Tomi Engdahl says:
ANTIRTOS: no any RTOS needed, you will see
https://hackaday.io/project/196816-antirtos-no-any-rtos-needed-you-will-see
ANTIRTOS is an ultra-lightweight, universal C++ library designed for task management in IoT and embedded applications.
View Gallery
421
0
5
3
Team (1)
aleksei-tertychnyiAleksei Tertychnyi
Join this project’s team
ANTIRTOS
completed project
Software
firmware iot Multitasking TASK management delayed funcctions FUNCTIONAL QUEUES
This project is submitted for
Hackaday.com Tip Line
This project was created on 07/05/2024 and last updated 3 hours ago.
Description
ANTIRTOS is an ultra-lightweight, universal C++ library crafted for task management in IoT and embedded applications. Encapsulated in a single, compact .h file, integrates seamlessly into your projects. Designed to offer a robust, secure, and efficient task management, ANTIRTOS ensures that interrupts remain unblocked. Emphasizing modularity and scalability, it is ideal for a broad range of devices, from basic microcontrollers to complex embedded systems. ANTIRTOS is particularly suited for embedded environments removing the complexity and overhead of RTOS.
Benefits:
Interrupts kept fast and controllable, no blocking anymore.
Easy to debug and understand.
Get an easy way of multitasking.
No dummy waiting/blockings. Wait by doing!
No need to have a deal with critical sections/mutexes/semaphores, no tasks stack memory overflows.
Handle a heavy multitasking without complex finite-state machine
Your project on simple architecture.
Simplicity matter!
Tomi Engdahl says:
https://github.com/rtlabs-com