1. Introduction
Wireless Sensors and Actuators Networks (WSANs) is an established and challenging technology, with a great potential impact on the measurement, communication and control applications to a variety of activities of the modern postindustrial society. According to market analyses, WSAN node sales will constitute a multi-trillion market in the next few years [
1,
2]. Given the fact, during the last 25 years, the agricultural production sector has been transformed from a traditional labor-intensive sector into a technology-intensive one, it has been strongly considered as a very prosperous potential area for WSAN technology use. Indeed, a vast range of existing and future WSAN applications in agriculture have been identified and reported by many researchers [
3,
4,
5]. Moreover, relatively-new terms have been introduced in current terminology, in order to express the trends in modern agriculture, such as: precision agriculture; precision farming; variable-rate management; etc. On the other hand, the majority of WSAN deployments in agriculture are taking place on a short-scale research and development basis, rather than on a large-scale commercial solutions basis. The massive expansion of WSAN technology in agriculture appears to lag behind the market’s expectations. Many researchers have reported certain technological causes for this, which relate to hardware design issues, such as standardization in protocols and development tools, configurability, expandability, scalability in computing power, and memory capacity [
3,
6,
7,
8,
9].
Examining the idiosyncrasy of the real-world (real-life) WSAN applications, the most common critical features found are: the operation in the real environmental and spatiotemporal conditions (far away from the lab), the systems are on the end-users hands, the energy autonomy, the need for long-term serviceability and management, the maintainability, the expandability, the reconfigurability, the reusability, the robustness and ruggedness, the long-standing reliability and the low cost per WSAN node [
10]. Therefore, any single factor, which can negatively affect one or more of the aforementioned features, could jeopardize the success of the whole WSAN implementation. Regarding agriculture, these features have greater impact to the success of WSAN applications, because, traditionally, this sector requires scalable wireless networks comprised by large number of nodes covering huge physical remote areas, capable of measuring a variety of physical parameters [
11]. Furthermore, very often, the harsh operating environment has been reported, by many experts, as a major source of implementation problems [
12,
13]. Extreme temperatures, humidity, rain, snow, wind, and sunlight radiation, can all seriously threat the normal operation of WSAN hardware systems, which, in their vast majority, have been designed for indoor environments (labs, offices, etc.) [
6,
9,
14,
15,
16]. Unfortunately, the physical agricultural environment cannot successfully be modeled and tested by simulation methods (e.g., [
17]). For example, the behavior of real batteries [
18,
19] or the radio signal propagation [
20,
21] are typical cases of operation parameters that are extremely difficult to model and fully simulate, so the design of hardware WSAN systems for the agricultural domain is more complicated than in other application domains.
Since the early days of the WSAN technology up to today, nodes’ hardware architecture was solely governed according to the block diagram depicted in
Figure 1 [
22,
23]. It is a microcontroller-based system with all the necessary circuitry for sensors, and actuators, equipped with a radio frequency transceiver for data communication and networking. Even recent research attempts to use field-programmable gate arrays (FPGAs), instead of microcontroller units (MCUs), in WSAN nodes are based to the traditional architecture [
24,
25]. In general, such a node can be appropriately software configured to operate either as end-device, router, coordinator, or, with some extra modifications, as coordinator with gateway functionality. The role configuration is dictated by the networking protocol residing into the MCU’s program memory, in the form of a firmware stack. Moreover, there is a power source, commonly not implemented entirely on-board in order to cover the energy needs of the system’s components. Regarding the hardware design of the nodes, several realizations that have been introduced in the last fifteen years are strongly influenced by the doctrine of Smart Dust concept (miniaturization, etc.) [
6,
26]. The majority of them follow the typical architecture (
Figure 1). In practice, all of these nodes enabled the research of WSAN systems in agriculture, because they were mainly used as the development tools, on the basis of which several conglomerate WSAN studies were conducted in the field.
However, the solutions based on the traditional architecture are under question about their effectiveness in real-world WSAN implementations in agriculture, especially, in the light of the continuously changing technological environment, which is influencing this particular domain. From its infancy, WSAN has been a multi-facet technology. Although WSAN hardware solutions have not been ready enough, in order to accommodate the present requirements of real-life applications, new WSAN applications raise new limits for the hardware systems [
27]. Indicatively, wireless multimedia networks (WMNs) [
28,
29,
30]; sensor clouds [
7]; integration of WSAN and radio frequency identification (RFID) systems [
31]; collaboration of WSAN and satellite technology [
32]; internet of things (IoT) [
33]; and so on, are only some of the trends in modern WSAN applications. Further, with regard to the purely technological aspects of this changing environment, there has been an explosion of new challenging technologies that potentially could help towards the design of more reliable, robust and efficient WSAN systems. Among the most interesting of such technologies are energy harvesting and power management [
34]; new networking protocols, such as the IEEE 802.15.4x, LoRa-Net, 6LoWPAN [
35,
36], DASH7 [
37], etc.; big data and data fusion [
13]; new human-machine-interfaces (HMI) powered by smart phones and portable computing and connectivity [
9]; new micro-electromechanical sensors (MEMS) and advanced sensory concepts such as the Lab-on-Chip (LoC) [
38]; new embedded processors such as the low energy and high performance ARM microcontrollers [
39,
40]; and, new energy storage media such as lithium-ion-based batteries and hybrid ultra-capacitors [
41,
42].
Nowadays, the WSAN hardware solutions, as described in [
6], are classified into three classes, namely end-to-end solutions, generic solutions, and research solutions. Furthermore, according to the same study, there are three different WSAN nodes design spaces: the network space, the device space and the application space. Both the preceding and the contemporary nodes are far from meeting all the requirements of real-world applications. In order to ensure the success of WSAN implementations, there must be a close collaboration among the stakeholders, with the focus being on the application requirements. On the other hand, whatever the approach of the design space for WSAN hardware is, there are deficiencies in architectures openness, expandability, and configurability as well as complexities in implementation.
As reported by many experts [
3,
6], in parallel to the lack of effective hardware design architectures, an additional significant barrier to successful systems development is the very long learning curves associated with several different aspects of the WSAN technology. This is the reason why a mix of multi-blended skills is necessary in research teams. A practical respond to overcome the know-how shortages, was the adoption of ready-made hardware solutions available in the market and their integration, in order to build final applications. This is commonly referred to as the commercial-of-the-shelf (COTS) approach. COTS are met either in the form of ready-made WSAN nodes, also known as motes, designed according to the traditional architecture [
43], or in the form of specific-oriented testbeds. Admittedly, COTS-based systems design is an attractive approach for many practical reasons: it helps to reduce the development time, it absolves developers from re-inventing the wheel, it closes knowledge and skills gaps by providing ready-made resources (protocol stacks, etc.), it is relatively lower in cost compared to new prototype systems that suffer from high non-recurring engineering (NRE) costs [
44,
45,
46,
47]. However, the adoption of COTS approach precludes, in many cases, the deliberation of researchers and practitioners to extend their study and application areas. Furthermore, COTS-based solutions have not been designed in order to cope with the harsh external environmental conditions of specific applications, as in the case of agriculture. Therefore, this hardware design approach appears to be one-way, for building pilot and proof of concept units, but due to the limited expandability and reconfigurability imposed by various bounded architectures (in fact, slightly modified alternatives of the traditional architecture of
Figure 1), it is incapable of supporting the requirements of real-world WSAN applications, especially in the agricultural domain [
9,
28,
41,
48].
WSANs’ developers in their persistent search of hardware platforms that allow for reconfigurability and expandability, have often recurred to generic open-source hardware (OSH, or OSHW) solutions such as the Arduino, Raspberry Pi and others [
49,
50,
51]. Such platforms have been mainly created for embedded systems students and hobbyists. In particular, all of these solutions rely on the scenario of a MCU-based board that can be programmed using easy-to-learn C-language functions (through application peripheral interface (API) libraries) and are easily expanded using pass-through pin-headers by connecting additional application-specific boards. A huge number of ready-made firmware applications, examples and other programming resources have been produced and are freely available as open-source code from an extremely big developers’ community. This is very attractive for engineers and researchers who wish to overcome the limitations of embedded systems design and programming [
3,
41,
52]. In agriculture there are already WSAN applications, where the aforementioned multi-board platforms have been used, either in cases of new system designa, or in cases of modifications to expand the functions of existing systems [
9,
14,
49,
53].
Summarizing, all the existing hardware design approaches, namely, the traditional architecture, the COTS-based approach, and the expandable OSH multi-boards platforms, appear to impose significant limitations and they inhibit the expansion of real-world WSAN implementations. Under these circumstances, the end-users in agriculture are very skeptical regarding the benefits-to-cost ratio. Robust and reliable WSAN systems tolerant of real-world applications needs, is a mandatory factor for WSAN credibility [
8]. As it has been highlighted in [
3], there is a lack of complete frameworks capable of allowing the development of systems from data acquisition to modeling and decision support. Therefore, it is obivious that the required new platforms should meet both the research needs and the needs entailed by real-life applications in the field of agriculture.
This paper proposes the SensoTube, as a new open-source-oriented architecture for designing WSAN systems, with emphasis on the real-world implementations in the agricultural domain. SensoTube aims to overcome existing difficulties and problems in systems design and to provide, in a well-standardized and open way for the endeavored expandability, scalability, reconfigurability, reusability, testability, energy efficiency, and encapsulation needed in real-world WSAN applications.
The rest of the paper is structured in eight sections, as follows:
Section 2 presents the contemporary challenges and trends in WSAN node’s hardware design and focuses on the multi-board expandable architectures that are based on open-source-hardware approaches, due to their fundamental advantages. Moreover, several critical issues are identified in this section and they are categorized in five classes: signals management, power management, firmware development, programming and debugging and robustness and reliability. This section essentially aims at pointing out the reasons for which the existing expandable OSH architectures cannot be considered as being the best approach for real-life applications.
Section 3 presents the proposed new scalable multi-tier architecture, namely the SensoTube, for WSAN hardware design. In particular, this section explains the concept of the proposed architecture and it provides the details of its tiers’ operation, with emphasis on real-world WSAN applications in the agricultural domain. The implementation reference model of the SensoTube architecture is reported in
Section 4. In this section, the proposed mechanisms and methods for substantial boards’ expandability and control, in terms of signals, energy, communication, programming and debugging functions are also presented.
Section 5 presents the alternatives that a SensoTube-based WSAN system can support for firmware and software development.
Section 6 discusses the encapsulation approaches in WSAN deployments in the agricultural domain and it provides a critical analysis for the adoption of the tube-based encapsulation of the SensoTube architecture.
Section 7 presents certain use cases in with real measurements and data of three popular open-source hardware platforms, and it demonstrates the benefits for migrating existing open-source designs to SensoTube architecture.
Section 8 quotes the cost implications of the adoption of the proposed architecture. The paper is completed in
Section 9, wherein the key benefits of adopting the SensoTube architecture for stakeholders are discussed and summarized together with future research directions.
2. Challenges, Trends and Constraints in WSAN Hardware Design
Designing hardware systems for WSAN is always an arduous work. Knowledge, skills, and experience have to be demonstrated in fields such as digital and analog electronics, embedded systems, MCUs’ firmware development, power electronics, sensors, radio frequency (RF) communications, wireless networking, printed circuits board (PCB) design, prototyping, testing and evaluation. Furthermore, it is necessary to have a keen awareness of updated solutions launched by the microelectronics industry, which can benefit new systems’ designs (i.e., new integrated semiconductors (ICs), systems-on-chip [
54] and other electronic components, in general). Diving deep into such fields is very often out of scope, for example, in cases where the aim is to monitor a particular physical phenomenon using WSAN technology in-situ. Although the aforementioned requirements are critical preconditions to WSAN systems, they are not included in the training courses for WSAN systems and applications [
55]. The view perspectives of what is a WSAN system may vary among different areas of interest [
6]. In particular, for the agricultural domain, the various differences in perspectives of a WSAN node are summarized in
Table 1.
Design inefficiencies like the fragmentation and limitations caused by the lack of skills can jeopardize the anticipated full-scale commercialization and popularization of WSAN systems. In order to build successful systems that can face the difficulties and the requirements of real-life applications, each stakeholder has to take into consideration other stakeholders’ needs and idiocyncracies. As depicted in
Figure 2, there are five major stakeholder groups, namely the application experts, the systems designers, the end-users, the industry/market, and the authorities (the external circle in
Figure 2). The arrows illustrate the influence between different parts. Practically, this influence is based on the flow of tangibles (e.g., technologies, systems, tools, documents, etc.) and intangibles (e.g., skills, ideas, needs, expectations, etc.).
Obviously, the typical architecture of
Figure 1 or the COTS approach cannot support the design of systems that will meet all the expectations of everyone that has a vested interest in a WSAN application. On the other hand, the reaction of the expandable multi-board systems’ designers and developers signals the direction for future architectures, in order to confront the changing, demanding, and complex applications’ ecosystems.
2.1. Embedded Systems Development Technologies and Market Trends
Embedded systems technology has strongly been influenced by the dramatic changes that have occurred in the mobile phone market. In the last decade, consumer demand for ever more powerful smart phones have driven the electronics industry to design and manufacture high processing and low power MCUs and microprocessors (MPUs). This evolution has helped the introduction of mobile computing devices, e.g., tablets, etc., which in turn has acted as an additional reason for the development of new semiconductors, processors, sensors, batteries, and communication modules. Due to economies of scale of such markets, the cost of embedded systems has significantly diminished, whilst the cost-to-performance ratio has increased notably. Consequently, the design of hardware WSAN solutions has vastly been affected by the aforementioned changes. Ιn
Figure 3, the most important changes in technologies and approaches associated with the sub-parts of the typical WSAN node system, in the last decade, is illustrated. Obviously, nowadays, experienced designers and developers have plenty of choices at their disposal, in order to build either end-to-end generic commercial solutions or optimized application-specific solutions. In particular, in the field of agriculture, there are stanch technologies for energy, communications, processing, etc. that can positively help towards the development of reliable and vigorous outdoor WSAN systems. Of course, the lack of skills and knowledge make these efforts difficult.
On the other hand, this technological breakthrough brings about hurdles race conditions, because the revolutionary technologies have to be quickly assimilated and used, new development tools have to be launched to support designers in the previous effort as well as to produce new technology in their turn, whilst at the same time, under the pressure of stakeholders for robust and standardized solutions, the new solutions have to be commercialized as soon as possible. As a response to this perpetual need, many significant developments have been made by the electronics industry and market, in order to provide new tools, methods and solutions that encapsulate new technology and allow fast prototyping (such as the Mbed [
56] and Codebender [
57], and i-Sense [
58]). The real revolution came from a new area of systems development, the so-called open-source software and hardware. According to this concept, the various design artifacts, i.e., documentation, circuits, software code, hardware project implementations, application case studies, etc. are freely shared among big users’ communities under the license scheme of Creative Commons Attribution Share-Alike, which allows for both personal and commercial derivative works as long as the credit to original creator is granted [
59]. The most successful case of the open-source design approach is the Arduino platform [
60].
The Arduino platform (Arduino SRL, Scarmagno, TO, Italy) is a MCU-based board using an Atmel AVR 8-bit MCU, which provides all of the microcontroller’s pins to pass-through pin-headers. Through these headers, all the major functional peripherals of the MCU are available to users. Users, in their turn, can connect other personal or commercial hardware boards, called shields, to the main Arduino board, in order to build their own specific applications. In order to make easy the firmware development process to users without much experience in embedded systems, Arduino provides a ready-made library of APIs in its integrated development environment (IDE). Thus, developers dispose an open-source hardware and software platform that allows the expandability and reusability they are looking for. Despite the fact that Arduino was originally established for education and hobbyists [
61], it soon became very popular in research and development of real-life applications, even in demanding areas, such as agriculture. In recent years, the electronics industry realized the advantages of the open-source design approach and Arduino concept and it is foreseen as a new prosperous market. The idea of expandable modular hardware development tools and the application-centric programming concepts, of course, cannot be attributed to Arduino or to its successors. Many implementations, such as the Basic Stamp for MCU programming in Basic language at early 1990s [
62,
63], and the e-Blocks modular hardware tools [
64], targeted providing easy-to-build hardware embedded systems. The reason that these efforts didn’t attract the popularity of Arduino concept is probably associated with the fact that they were single-source commercial solutions with negative cost and openness implications. The free support from a vast community of designers and developers, in the case of open-source platforms, has made the big difference, and it seems to be the solution to the way out of the demanding conditions for integration and use of new technology, especially in cases such as WSANs.
Today, there are two popular competitive open-source platforms, namely the Arduino [
60] (
Figure 4a) and the Lauchpad (
Figure 4b) from Texas Instruments (Dallas, TX, USA) [
65]. For each platform, there are several add-on boards aiming to provide application-specific functionality, produced by the original creators or by third parties such as companies or individuals from various users’ communities. Both Arduino and Launchpad provide several alternatives, in terms of processing power, number of input/output pins and peripherals.
In the meantime, all the key-player semiconductor manufacturers decided to launch Arduino-like, or Arduino-compatible, platforms, in order to promote their own new MCUs and microelectronics portfolios. Among these platforms, they are the Nucleo from ST-Microelectronics (Geneva, Switzerland) [
66], the FRDM from Freescale/NXP (Eindhoven, The Netherlands) [
67], the XPresso from NXP [
68], and Blackfin DSP platform from Analog Devices (Analog Devices Inc., Norwood, MA, USA) [
69]. Others, such as Infineon (Infineon Technologies AG, Neubiberg, Germany), have launched application-specific Arduino shields [
70]. As the acceptance of the open-source expandable platforms (OSEP) increased, the introduction of the single-board-computers (SBCs) extended the capabilities of such platforms, regarding the processing and computational power, the use of open-source operating systems such as Linux, interface of low-cost USB communication modules (WiFi, ZigBee, Bluetooth, GSM modules etc.), and the connectivity with cameras and screen displays, interfacing with audio sources and outputs, etc.. The most of these SBCs are miniature in their physical dimensions (i.e., credit-card sized), low-power and low-cost compared to mini computers. The expandable SBCs allow very easily the development of web-based applications that is very useful for WSAN applications in remote areas (common in agriculture). Some of the SBCs provide hosting of Arduino shields, in order to ensure compatibility with all the already existing application shields. Thus, the result of this compatibility is the reusability of hardware implementations.
Among the most popular SBCs are the BeagleBone (BeagleBoard.org Foundation, Oakland Twp, MI, USA) [
71], the Raspberry Pi (Raspberry Pi Foundation, Caldecote, Cambridgeshire, UK) [
72], and the Galileo from Intel (Santa Clara, CA, USA) [
73]. The most recent of these derivatives, namely the Raspberry Pi 2, the BeagleBone Black, and the Galileo Gen2 are illustrated in
Figure 5. Following the introduction of these SBCs, other movements to the same direction took place either from Arduino (e.g., Arduino Tre, Leonardo, and Due) [
74], or from well-known semiconductors industries such as Freescale/NXP (FRDM Kinetis KL64) [
75]. A well-documented presentation and comparison of all the existing SBCs is given in [
76]. In general, the SBCs cannot be considered as a design basis for the build of a WSAN node because of their extended requirement for energy.
The multi-board expandable platform architectures have significantly influenced the typical architecture of WSAN nodes hardware design. The functional blocks that are depicted in
Figure 1, is, now, possible to be physically separated from each other thanks to the boards’ mechanical and physical layer “standardization”.
2.2. Multi-Board Architectures Expandability Mechanisms
In order to connect two printed-circuit boards (PCBs), it is necessary to use board-to-board connectors. On the other hand, in order to connect more than two boards, a solution that ensures boards to be stackable has to be used. Multi-board platforms, such as Arduino, adopted the pass-through pin-headers (see
Figure 6a). There is not an established name for these headers. Sometimes, one refers to them as pin-headers with long pins, or just as Arduino headers. In this work, the term
“boards-expansion-connectors” (BECs) is proposed. BECs are placed and soldered on boards and they usually have a male and a female side, so as to allow for boards stackability. Initially, Arduino architecture used four BECs in total (Arduino Uno Rev. 3) [
77,
78], in order to connect, in a somewhat random way, all the pins of its MCU (
Figure 6b). Practically, the Arduino BECs provide a mechanical and physical access to the on-board MCU. Whilst this technique seems quite simple, in terms of state-of-the-art microelectronics, it freed engineers by giving them a convenient way to design expandable and reusable hardware. Further, this technique is particularly used in radio communication modules that come with BECs, in order to be placed on different MCU-based boards. This capability allows systems designers to plug in and test several alternatives for wireless communication, using the same MCU-based main-board.
Besides its easy way of firmware applications development through high level APIs, Arduino owes its popularity in the BECs approach for expandability. Any third-party board, which hosts the four Arduino BECs in the exact physical places, it can be considered as an Arduino expansion shield. This way, designers are free to develop the application shields for their particular applications.
With regard to the applications in agriculture, the typical architecture of WSAN nodes can take a stackable form, allowing, as much as possible, for facilitating the dramatic technological changes (see
Figure 3).
In
Figure 7a, an illustration of the physical transformation of a WSAN node keeping all the functional parts of the typical architecture together, but mechanically separated from each other, is given. This approach has started to become popular in WSAN applications development in the agricultural domain and appears to be the solution for the sought reconfigurable WSAN nodes [
79,
80,
81,
82].
Figure 7b shows a WSAN node built on one Arduino main-board and two expansion shields, one with Ethernet networking circuitry [
83], and a second one with a IEEE 802.15.4/ZigBee radio module (in particular, XBee module [
84]). In parallel with the increase of acceptance of the expandable platforms, there has been an expansion of the requirements and expectations to be fulfilled by this approach. Consequently, all the key-player electronics industries have launched boards that keep the mechanical compatibility with the Arduino platform, but they have also put more powerful processing units and extra BECs (even Arduino does so). Of course, the mandated increasing need for systems’ expansion negatively impacts any attempt for mechanical and functional standardization. Others provide development platforms that are mechanically compatible with more than one platforms, e.g., the Arduino and Mbed [
66,
68], or Arduino and Launchpad [
85].
In general, there is a race in the industry to provide expandable solutions. In practice, their efforts are focusing on the physical layer design through the introduction of different mechanical expansion mechanisms.
2.3. Open-Source-Hardware Architectures versus Open-Architecture Systems
Undoubtedly, OSH architectures have been seen as a significant way to avoid having to design hardware systems from scratch. For WSANs systems, the adoption of the OSH expandable multi-board architectures is very convenient, due to the fact that the developers (engineers and researchers) can test, evaluate and integrate several wireless connectivity solutions coming in the form of plug-in modules together with several MCUs’ main-boards alternatives. This approach increases the degree of freedom and decreases the development cycle time in sake of the applications deployment.
In the following subsections we identify and present several constraints associated with the existing OSH expandable architectures in order to emphasize the need for new solutions that could help the open-source approach to make the next step, namely the step from the prototyping to the optimization and reliability.
2.3.1. Signals Management Constraints
- (a)
Signal conflicts and short-circuits: According to the expandable multi-board architectures, all the input and output pins (i.e., digital, analog, buses and ports pins) are coming directly from the main-board’s MCU and, through the BECs, are available for use by the rest of the expansion shields. The MCU solely manages every pin regarding its signal direction (i.e., input or output), its function, and its frequency of operation. Expansion shields cannot change the characteristics of the BECs signal-pins. On the other hand, if a pin is declared, for example, as output from the MCU, then, this signal must be an input for the rest of the shields, otherwise serious problems will appear due to electrical short-circuits.
- (b)
Limited multi-MCU development: The egocentric style of pins management by the main-boards does not allow for real multi-processor designs. Thus, it is very difficult to have two or more shields with a MCU in each of them, which, at the same time, are managing some of the signals of the common BECs.
- (c)
Waste of existing system’s resources: In the OSEP-based WSAN hardware implementations it is very common to plug-in a wireless communication module on a MCU-based main-board shield. In this case, the MCU just reads and writes data from/to the wireless module through an embedded serial port or bus (e.g., UART port, I2C-bus, or SPI-bus). In practice, the majority of the wireless modules have their own MCU into which the communication stack is running, while several input and output pins and ports are available to the developer for application use. This means that, in this design, there are two MCUs, but, in practice, just one MCU can be used for the application’s scenario (that of the main-board), so the distribution of processing power among the shields is rather limited and several development resources are left unused.
- (d)
Signal voltage level incompatibilities: Several times, there is incompatibility in terms of the logic levels of the signal pins among the various expansion shields. In the embedded systems circuits, there are two typical logic families, that of +5 Vdc and that of the +3.3 Vdc. In cases where two or more expansion shields, with different voltage logic levels, have to be interconnected through common BECs, then, specific extra logic level translators circuits must be in place. Depending on the direction of the signal pins, i.e., inputs or outputs or both, the voltage level translators should be single-directional or bi-directional. This issue cause extra cost, more physical space on the shields’ boards, and degradation in energy efficiency, as well as reduction of reusability of shields.
- (e)
Unused signal pin conditioning: When the application does not need all of the available pins from the BECs, then, these pins are left floating, in terms of circuit termination. Each particular MCU explicitly defines the signals conditioning for its unused signal pins. The lack of unused pins management can cause significant problems related to the loss of energy, poor electromagnetic noise immunity, low ESD and EMI performance [
86], and application scenario intermittent execution caused by erroneous interrupts activation in the MCU’s firmware. The definition of the unused pins level can be done either by enabling the MCU’s internal pull-up resistors or by connecting external pull-up or pull-down resistors. In both cases, there are energy balance disorders. On the other hand, there is no provision for the external resistors in the main-boards or in the rest of the expansion shield boards [
87].
- (f)
Signal routing inflexibility: There is no mechanism to terminate the route of the BECs signals at the shields level. For instance, when the MCU outputs a signal to a particular shield, then this signal is needlessly forced to be an input to the rest shields due to the common BECs signal pins. On the other hand, the existing BEC style of mechanical standardization limits the full exploitation of the overall system, since any single signal of the BECs, except from the supply voltages and ground pins as well as the data busses pins, can be used only from one shield and the main-board, so the functionality is sacrificed on the altar of the invaluable expandability and reusability.
2.3.2. Power Management Constraints
- (a)
Poor energy conversion efficiency: Due to the fact tha, all the OSH expandable architecture solutions have originally been designed for pilots and proof of concepts in indoor test environment, they disregard the need for efficient power management. For WSAN applications in the field of agriculture where the hardware nodes have to be battery-operated, the existing OSH architectures entail problems, because these solutions are not energy optimized. Arduino-like as well as the SBC hardware solutions require external +5 Vdc power sources, which in most of the cases is coming from the USB port of a personal computer. Some of these solutions also accept external supply voltages above the +5 Vdc, usually ranging from +7 Vdc up to a maximum of +18 Vdc. To keep the manufacturing cost down, the shields designers’ choice, for the external voltage management, is to use linear voltage regulators. These electronic components don’t require much physical space on the boards, but, on the other hand, they suffer from very low energy efficiency. Also, the higher the external supply voltage value is from the base +5 Vdc value, the more energy is lost in form of heat at the regulator’s package. Therefore, the use of this type of voltage regulators, in the multi-board architectures, downgrades the overall energy efficiency of the final system.
- (b)
Inability to ensure the power of the expansion shields: After the regulation of the external voltage, the voltage supply signal of the MCU, e.g., +5 Vdc, is routed to the related BECs pins in order to power the expansion shields. Unfortunately, the amount of power that can be drawn from the expansion shields is limited by the particular voltage regulator of the main-board shield [
88]. When the expansion shields require levels of power higher than that sourced from the main-board, then, some or all of the shields must have their own power source circuits, in order to be able to accept external power.
- (c)
Power cabling ataxia: The high power consuming shields have their own connection terminal blocks or headers separated from the common BECs. In this way, the total shields constructions are suffering, not only from poor energy inefficiency, but also from power cabling ataxia. The power cabling burdens the ESD and EMI performance and makes the system vulnerable to noise interferences. This problem is significantly escalated when, in the multi-board system, there is the need for secondary voltages, e.g., +3.3 Vdc for some shields with low power MCUs.
- (d)
No provision for voltage signals other than logic levels: Various difficulties appear when higher voltages than the basic +5 Vdc and +3.3 Vdc, e.g., +12 Vdc, are required to drive actuators’ loads. In this circumstance, the use of particular external power supply units for the system is mandatory. From the physical layer perspective, none of the existing OSEP mechanisms of expansion is supporting the physical connection of multi-value voltage signals.
- (e)
Energizing unnecessary circuits: In the expandable architectures boards, it is very popular for the main-boards and their shields to have some extra circuitry for general-purpose use, e.g., LEDs, MEMS-based sensors, etc. Actually, this is a very common practice also in WSAN end-solution and COTS solutions [
43]. Such extra circuitry may be useful for testing, during the development phase, but it is totally useless in the final in-situ application, because it wastes significant amounts of energy. For battery-operated WSAN systems in the agricultural environment, this testing circuitry degrades the valuable available energy. Unfortunately, the existing OSEP architectures do not have any provision for this constraint, so there is no mechanism for developers to disengage that extra circuitry, in order to build energy optimized systems. To emphasize this problem, a single LED indicator that is blinking inside of a closed plastic box, installed in the agriculture field, is useless for the users and it consumes more energy than that consumed by e.g., a ZigBee RF transceiver.
2.3.3. Firmware Development Constraints
- (a)
Lack of code optimization: The application scenario that is hosted and running in the program memory of the main-board’s MCU, also called as firmware, normally ought to be optimized and tidily developed, so as to ensure the reliability of the ultimate hardware system. In the case of the Arduino-like expandable architectures, the firmware development is mainly implemented into the particular IDE of the hardware vendors. Whilst such IDEs provide many development facilities to the engineers through the use of extensive ready-made APIs or project templates, they produce firmware that is far from being optimized. For instance, the firmware for just toggling a single LED indicator may involve several kilobytes of program code. Every single line of code in the firmware, when it is executed by the processor, consumes a portion of the available system’s energy. In battery-operated WSAN systems, such in the case of remote agricultural applications, wordy firmware is a well-hidden source of energy wastage. Thus, the ease of firmware development is counteracted by the excess in energy consumption. Today, there are programming tools solutions for the open-source developers that can help to the production of efficient and optimized code (e.g., mbed IDE). Hence the key point is the firmware developers to start thinking about the energy effectiveness.
- (b)
No provision for multi-MCU development: According to the existing OSEP architectures, the application scenario of the system is solely developed with the MCU of the main-board. The OSEPs’ IDEs support only one MCU per application. The concept of multi-MCU aspect is totally absent from the design strategies.
- (c)
Evanescence of the hardware realm: The trend of open-source to use ready-made pieces of firmware or even complete projects from the developers’ community is very catty, because the hardware details are totally ignored, or in the best cases, they are partially acknowledged.
2.3.4. Programming and Debugging Constraints
- (a)
Peripherals and energy charge: One of the most convenient and low cost methods to download the firmware to the program memory of a MCU is the in-circuit programming, or else, in-system programming. The hardware implementation of this programming method requires the usage of a certain number of the MCU’s pins (i.e., Vdd, Vss, Reset, SPI pins, UART pins, etc.), which have to be connected accordingly, in order the MCU to be programmed directly by a personal computer via a USB port or by inserting specific external serial programming devices. Whilst, the programming operation takes place once in-house and lasts for a few minutes, the programming circuitry remains permanently on-board. Furthermore, this circuitry may cause electrical conflicts with other shields, because the programming pins are physically routed to the rest of the shields through the BECs, so in most of the cases, it is mandatory to remove any connected shields before a MCU-based shield programming take place.
- (b)
Limited debugging capabilities: Since, the development of the firmware is mostly based on a combination of ready-made open-source parts of code, written by someone else, it is very critical for the system to be able to support real-time debugging with all the shields engaged.
- (c)
Lack of support for multi-MCU development: OSEP expandable architectures cannot support multi-core developments. Practically, the main-board and each one of the expansion shields which incorporate a MCU must host their own programming and debugging circuits on-board.
2.3.5. Robustness and Reliability Constraints
Of course, all the aforementioned constraints can harm, in a lower or higher degree, the robustness and the reliability of the total system, but there are also some additional issues that relate to the real-life applications:
- (a)
Lack of compliance to norms and regulations: Because the majority of the existing OSEP solutions are considered as prototyping development tools, they are not tested and certified in terms of specific norms and regulations for particular application domains.
- (b)
Poor system’s integrity and reliability: The absence of a central power management mechanism, the erroneous electromagnetic sources from sketchy handling of the unused BECs’ pins (these pins may act as antennae), and the uncontrolled performance in the various shields from different vendors, constitute only some of the issues that are responsible for poor reliability. In addition, certain security issues may arise for some MCUs which are very popular in the OSH platforms [
89].
- (c)
No form factor and encapsulation provision: Any WSAN application domain has its own particular requirements for the form factor and the encapsulation of the systems in order to facilitate the deployment and to ensure the longevity of the systems. The existing OSEP solutions do not care about the physical dimensions of the final implementation.
3. The SensoTube Architecture
Taking into consideration the constraints mentioned in the previous section, the prospect of a new scalable architecture which, on one hand, can maintain the obvious advantages of the OSH expandable architectures, and, on the other hand, can help OSH concept take the next step towards optimization and reliability by provide the mechanisms for avoiding the existing limitations can be reasonably raised. Hence, the OSEP concept can be fully exploited in the WSAN applications even in the demanding domain of agriculture. Therefore, a new architecture, namely the SensoTube, is proposed and described in this section. The grand aim of the SensoTube architecture is to enable a WSAN hardware system to:
- (a)
Escape from the structural restrictions of the existing architectures: The adhesion to the traditional architecturea together with the persistence for miniaturization seems to be rather inappropriate for real-life applications in agriculture. Actually, the size of a WSAN node doesn’t matter [
90], and for the case of agriculture, this is evident from the trend to use large-sized OSH platforms.
- (b)
Keep the advantages of OSH expandable concept: The new architecture should maintain the reasons for which the Arduino-like OSH architectures became popular, i.e., the simplicity, the expandability, the reconfigurability and the reusability of hardware.
- (c)
Avoid existing OSH architectures’ implementation constraints: The new architecture should provide new mechanisms, in order to avoid the constraints of existing expandable architectures (see
Section 2) and, on the other hand, ensure the highest versatility and flexibility.
- (d)
Satisfy all the applications’ stakeholders: The new architecture should allow designers of different design fields (e.g., power electronics, communications, data acquisition etc.) to easily adapt their contributions. Also, the end-users should have clear and reusable building blocks for their present and future integrations.
- (e)
Support the "separation of concern": Regarding the research efforts to study new challenging technologies with potential benefits for WSAN systems, there is a trend for decoupling the WSAN from the application [
91]. Also, several other studies, e.g., for WSAN nodes’ scenario reconfiguration [
92,
93], for strategies on WSAN power management [
94], for data acquisition development, or for implementing technologies like Wakeup-Radio (WuR) [
95], and many others, are indicatory cases where the decoupling from the wireless networking is required. This decoupling is practically achieved either by the addition of more than one MCU on-board, or by the usage of FPGAs, or by the addition of extra RF communication circuits or modules. Such modifications are necessary to overcome the limited boundaries of the traditional architectures, in order to implement the pilots. On the other hand, they may be considered as custom closed-architecture designs. Therefore, the new architecture should ensure the accommodation of research in new and challenging technologies.
- (f)
Support modeling: The new architecture should allow for modeling of the WSAN hardware system. To meet this target the architecture should provide the highest scalability and standardization. In this way, the WSAN systems could be seen from the middleware infrastructure as well-defined functional multi-class objects.
- (g)
Ensure optimization: The systems based on the new architecture should combine the performance level required in real-world WSAN applications [
10] with the vagaries of the agricultural domain. Ideally, the systems should have the optimization level of the commercial end-systems, but with the flexibility of a testbed. Furthermore, a provision should be made in terms of the form factor of the WSAN systems and their encapsulation, in order to cover the specific requirements in the open agricultural field. Actually, the name SensoTube reflects the idea of using plastic tubes for the encapsulation of the WSAN systems in the agricultural fields.
The first step towards the foundation of the SensoTube architecture, was to identify every single possible function that should be exist in an ideal hardware WSAN node and to classify the functions into certain groups according to their similarities and their scope. Next, these groups are considered as seven discrete functional layers (see
Table 2) by which any WSAN hardware system can be studied, designed and built. As it is reported in [
96], any efforts towards the substantial hardware abstraction can increase the fidelity of the characterization and classification of WSAN systems.
According to SensoTube, each one of the suggested functional layers has to be able to be implemented as a separate expansion shield. In particular, such functional shields have to be:
Autonomous: Each functional layer shield should be fabricated on its own PCB.
Dedicated: Each shield should be designed in order to implement the tasks of the functional layer at which it belongs.
Intelligent: Local intelligence in every shield is necessary, in order to take care of its functions and to allow for reasonable reconfiguration.
Uniquely identified: When a system needs to incorporate several shields of different functional layer, as well as more than one shields of the same functional layer, then each shield should be able to be uniquely identified by the system.
Addressable: The system, according to the execution of its application scenario, should consider the functional layer shields as addressable units.
Self-expandable: In cases where the PCB surface area is not enough to host the necessary circuitry of a particular function, then one or more complementary extra PCBs should be able to be added without, at the same time, to disturb the rest of other functional layer shields.
Context aware: Each functional layer shield should be aware of its environment, that is, to be able to interact with other shields.
Testable: Each functional layer shield should provide plain testing facilities, e.g., connection points for signals testing.
Compatible: Each functional shield should be designed with respect to the homogeneity in form factor and expansion mechanisms.
From the above characteristics, which form the profile of the ideal functional layer implementation, it is evident that the WSAN system should be a multi-processor system. In part, this is a mandatory in several COTS approaches which use MCUs together with MCU-controlled radio modules [
97]. On the other hand, the provision of a multi-processor ability will help designers to escape from the egocentrism of the existing multi-board expandable architectures (e.g., Arduino and the like), which whilst theoretically support the concept but in practice only the MCU of the main-board has the total control of the common BECs.
The commercial MCU solutions present in the market today [
40], together with the ongoing research on ultra-low power MCUs can guarantee multi-processor operation, even for battery-operated WSAN nodes [
98,
99]. In particular, among the most significant commercial achievements are the new low-power high performance ARM-based MCUs, which already have found their way into WSAN node implementations [
100,
101] and the ultra-low power 16-bit MSP430FR MCUs based on non-volatile ferro-electric RAM [
102]. At the same time, researchers are striving towards the elimination of MCU leakages [
103], the lowering of the MCUs’ operating voltage level [
104,
105] and the improvement of the internal power management circuits of the MCUs [
106,
107]. In addition, particular techniques for energy saving in WSAN nodes have already been studied and have shown remarkable results. Some of them have focused on the wakeup and idle states of MCUs [
99,
108,
109], or on the behavior of MCUs as normally-off devices [
110,
111].
The realization of functional layers in autonomous shields can help the designers to decide which and how many layers are needed to build a particular WSAN system, to work with discrete functional building blocks, to focus on specific systems’ features, to isolate other functional layers from changes at a particular layer, and to work on an add-and-remove basis, in order to adapt to the specific requirements of implementations.
In order to handle the functional layer shields as autonomous functional blocks, which can occasionally be added and removed from the main system, particular provisions have to be in place, so as to avoid anarchy in the expandability and scalability. All the functional shields have some common characteristics regarding their operation. In particular, they have to share their electrical signals with other shields, they demand either a single or a multi-value voltage source, they have to be in-system programmed and updated, their MCUs must easily communicate with other MCUs from other shields. The proposed SensoTube architecture establishes the necessary mechanism to support these uniformity and openness needs by the introduction of four inter-layer services:
Since the four service layers cannot be implemented as distinct plug-in shields, specific provisions have been made in the form of electrical channels in the BECs of the expansion mechanism of the SensoTube architecture, as explained in the implementation reference model in
Section 4. Actually, the establishment of the inter-layer services is the key enabler for the realization of the proposed functional abstraction. Without the inter-layer services provision, the elimination of the Arduino-like OSH expandable platforms’ constraints could not be avoided at all. Furthermore, the inter-layer services can ensure the building of a sound, expandable and scalable system. For instance, it is possible to have a system comprised of several OSH main-board shields sharing the very same expansion mechanisms, but at the same time each one of them can be self-expandable and autonomous. A complete representation of the SensoTube architecture is given in
Figure 8. At a conceptual level, the presented architecture can satisfy the sub-aims (a) to (g), posed at the beginning of this section.
In the following sub-sections, the usage and benefits of the proposed seven functional layers are described, with particular emphasis on the advantages of the novel mechanisms of the inter-layer services. Additional emphasis is given on the facilitation of challenging WSAN research aspects, and on the solutions to existing design constraints. At the same time, the target is to explain how the WSAN designers can use the SensoTube architecture to adapt their particular requirements.
3.1. Data Acquisition and Control Layer (DCL)
In real-world WSAN implementations, it is very common for the specifications of the data acquisition (DAQ) and control to change [
6]. For example, a new type of sensor may require a higher conversion resolution and a higher sampling rate, or the need for some extra sensors may require extension of the existing analog inputs, or a new actuator may need more energy and special driving circuits in order to be driven, etc. Regarding the field of agriculture, the measuring and monitoring of various physical parameters require, very often, the use of complex sensory devices [
5]. For such reasons, in [
9] it is pointed out that, regarding the agricultural domain, a data acquisition daughter card is required.
Today, the support of the data acquisition and control aspect of the WSAN systems seems to be rather underrated in the existing architectures. For instance, in COTS (e.g., motes), the emphasis has been entirely put on the RF communications. In particular, some of them have a couple of sensors soldered on-board, just as to be able to demonstrate the networking capabilities in measured data from the wireless nodes [
26,
43]. In most of the cases, these on-board sensors are not of the proper type and form, in order to be useful in agricultural applications. In addition, as reported in [
54], there are serious limitations in data sampling periods, when a single MCU is responsible for both the networking protocol and the DAQ functions under an operating system. In general, the COTS-based systems leave the development of the DAQ and actuators circuitry in the users’ hands. On the other hand, the existing expandable OSH architectures provide limited support for a sound DAQ and control function due to their inherent structural constraints (see
Section 2). Furthermore, these solutions are not energy optimized so as to support battery-operated WSAN applications. In particular, the various analog or digital sensors which are connected to an OSH main-board, are always activated, regardless the fact that the sampling rate may be very low. This is particularly evident, for example, in the management of the soil sensors which are based on the SDI-12 bus [
112]. Also, the existing expandable OSH-based systems suffer from scalability, in terms of processing power and communication peripherals. Thus these architectures appear to be convenient only for the limited scope of short-term experimentation.
On the contrary, the SensoTube architecture with its inter-layer services facilitates the design and development of flexible and scalable DAQ and control shields. According to the SensoTube, a WSAN system is capable to use more than one DCL shield. Each DCL shield can employ its own MCU. This ensures the ability for reconfiguration at shield’s level, as well as the capability to undertake the execution of measurements scenarios locally without disturbing other functional layer shields. Regarding the MCU, designers can make their choice either by selecting a commercial ultra-low power one, or by using an FPGA [
113], or an analog mixed-signal processor [
114]. Furthermore, with the introduction of the energy management service, the DCL shield(s) can be entirely powered-ON or OFF, according to the application scenario. In this way, the maximum level of energy consumption control is achieved. Also, a dedicated MCU-enabled shield can help the designers to take all the necessary PCB design precautions for the highest performance in signals integrity (SI) and EMC. Moreover, SensoTube aims to provide the necessary polymorphism, in terms of signal connections, to allow for increased flexibility and versatility. In particular, each of the DCL shields can have its own analog channels and communication interfaces, through the use of the mechanisms of the introduced inter-layer signals management service. For instance, a shield can be self-expanding without disturbing the neighboring functional shields, as well as permit the use of terminal blocks for easy access to signals for connecting external sensors. On the other hand, with SensoTube, there is no limitation of processing, analog channels, and communication interfaces.
3.2. Wireless Networking Layer (WNL)
The establishment of a discrete functional shield for the wireless data communication, firstly, allows designers to focus on the wireless networking aspects (e.g., routing protocols [
115,
116], operating systems [
22], new trends [
117], new technologies [
118,
119,
120], etc.), and, secondly, supports the requirement for the decoupling of applications from the wireless networking field [
91].
According to the SensoTube, a WNL can be implemented in its own PCB with a dedicated MCU on-board. In this way, the WNL shield can collaborate with other functional shields for the sake of any particular application scenario. At this shield, any of the known design practices, i.e., chip-set, SoCs, and modules, can be accommodated, in order to implement the wireless data networking. Contrary to the existing architectures, SensoTube allows for the engagement of numerous WNL shields through its inherent expansion mechanism and its inter-layer services provisions. Thus, challenging implementations, such as for heterogeneous communications, as in the case of [
31], can be seamlessly facilitated to the WSAN system. Additionally, the specific inter-layer service provision for energy management, allows the WNL shield to be energy aware of every single operation of its data radio communication sub-systems. The ability to have a complete control and monitoring of energy is of crucial importance for the real-world WSAN applications in the field. Also, a WNL shield, thanks to the holistic strategy for the energy management that is achieved by the inter-layer energy management service, can be entirely powered-ON or OFF from other functional layer shields, in order to minimize the energy consumption. On the other hand, the inter-layer service for signals management eliminates the resources constraints of the existing OSH architectures, while, at the same time, provide the polymorphism in expansion mechanisms, in order to help towards the maximum scalability, openness and reusability. This is very important, in the case of the usage of the various integrated communication modules (e.g., Bluetooth, WiFi, and ZigBee modules) in the design of WSAN nodes. According to the existing expandable OSH architectures, such modules are serially interfaced with the main-board’s MCU, in order just to transmit and receive data. In this case, these modules are not fully exploited for the sake of the system. Actually, these modules are built around of a reprogrammable MCU, the signals of which are provided at the module’s miniaturized PCB. A WNL shield can fully exploit the capabilities of these modules. In particular, the analog and digital I/O signals of the modules can be routed to the BECs of the system, and also, through the use of the inter-layer service for programming and debugging, to allow for in-system firmware development. Thus, the SensoTube WNL shields can achieve the integration of such modules in a homogeneous and uniform way.
3.3. Data Gateway Layer (DGL)
A WSAN gateway should be able to bridge the local wireless network (e.g., based on ZigBee, etc.) with other communication networks, using proper RF communication modules (e.g., WiFi, GSM/GPRS, GSM 3G/4G, etc.). In contrast to the existing architectures, SensoTube-based WSAN systems can have more than one data gateway channel in the same system through the use of many DGL shields. Thus, SensoTube can effectively support the general domain of the interconnections to external networks [
121]. For example, one DGL shield is used for the Internet access while another DGL shield provides Bluetooth connectivity for local user-interface (Human-Machine Interface—HMI), and another DGL shield provides a wired interface via USB or RS-485 data busses for, e.g., local configurations and reporting. The master MCU of the SensoTube-based WSAN system (e.g., the MCU of the DCL, or the MCU of some other layer’s shield) can direct the operations of the WNL and DGL shields through their MCUs, in order to achieve any data interconnection scenario. Furthermore, as in the case of WNL shields, the DGL shields can fully integrate and exploit the inherent capabilities of the modern integrated communication modules (see
Section 3.2).
Moreover, the DGL entity can support research and experimentation in the challenging application areas such as the Internet-of-Things (IoT) [
33], which at least for now practically appears to be an Internet-of-Gateways (IoG). Similarly, the cyber-physical space (CPS) [
122] research field could also be facilitated in SensoTube-based systems. Towards this direction, the processing and memory resources, required for local embedded web servers and other web technologies, can be exclusively designed in DGL shield without disturbing the operations of the other functional layers of the system.
3.4. Application-Specific Layer (ASL)
The ASL functional layer can be an application specific shield. This discrete shield can accommodate any functional requirements of the overall WSAN system that does not conceptually fit into other functional layers. On the other hand, the ASL entity can be also considered as a reservation for future needs. In practice, designers could use a MCU-based ASL shield as the director of the rest of functional shields, in order to execute the application scenarios. Such a design option can facilitate the reconfiguration of the system’s intelligence and increase the flexibility in development. Another possible use of this layer’s shield could be the accommodation of various types of memory storage media, in order to store various system measurements, data, operating parameters and execution logs. Such capabilities are very useful in the real-world WSAN applications in agriculture, where the nodes’ data has to be stored locally when the RF network is momentarily down.
3.5. Power Management Layer (PML)
Energy is a very critical factor for the real-world WSAN applications, especially in the agricultural environment, and can influence the lifetime and the reliability of the overall application [
18]. As the WSAN technology evolves, the need for power management is increasing [
23]. Unfortunately, there are several trade-offs in the commercial WSAN solutions, regarding the use of energy [
11]. Traditionally, the WSAN hardware solutions being based either on the traditional architecture and COTS, or on OSH architectures, have been designed without paying particular attention to the energy implications. Furthermore, regarding the provisions for the energy sources, these systems just provide some kind of connection through the use of pins or screw-drive terminal blocks and they leave the users to take care of supplying power, under their own responsibility. In practice, this can jeopardize the overall system’s performance and reliability.
Additional pressure for energy management is coming from the need to exploit challenging energy-related technologies [
34]. The WSAN nodes in agriculture, except from the use of photovoltaic panels [
123], can also make use of other, more sophisticated, energy harvesting techniques [
124,
125,
126]. Except for the mature battery types, the harvested energy can be also stored in relatively new media such as the Li-Ion batteries [
127], supercapacitors [
94,
128,
129], hybrid ultracapacitors [
42], or combinations of thin-film batteries and supercapacitors [
130]. The spread of such technologies in real-world WSAN applications entails sound evaluation and modeling. Otherwise they will be limited to pilots and demonstration implementations. In this context, the existence of a separate shield that accommodates all the energy requirements of the overall system is very critical.
A SensoTube-based system could have more than one PML shield, which can be replaced on an occasional basis, in order to fulfill the scalable energy requirements of the system. With PML shields, the power electronics researchers and designers have a discrete functional shield, into which they can contribute towards the design of energy optimized WSAN systems. At the same time, the PML shields ensure a unified and well-organized energy management that can guarantee the reliability and the lifetime of the WWSAN system. Additionally, with the provision of the SensoTube inter-layer service for energy management, an MCU-based PML shield through the use of on-board electronic switches can power-ON and OFF, in real time, all of the other functional shields. The incorporation of an MCU in the PML shield that will manage the overall systems’ energy could uplift the prospects for optimization.
3.6. Program and Debug Layer (PDL)
Programming and debugging are very important functions of a WSAN system [
91]. For this reason, SensoTube has made specific provisions. In particular, one or more of the PDL shields can be installed in a SensoTube-based system, so as to accommodate the electronic circuits associated with the programming and debugging functions of the MCUs of the various functional shields. These can be removed from the WSAN system, when the development has been successfully completed and the system is ready for installation in the field. This facility results in energy saving in the final system. Additionally, when there is no support for programming in the abandoned system, it avoids undesirable access to the firmware of the nodes.
Using the PDL approach also allows one to reduce the cabling complexity in the final system while it permits MUCs of the same technology (e.g., ARM, or MCUs from the same manufacturer), to share the very same PDL shield for their programming and debugging, so designers can provide more compact, energy optimized, and low cost implementations. Another feature, which is very crucial in the cases of remote WSAN applications, is the ability to perform remote upgrades, or else, upgrades over-the-air (OTA) [
131]. According to this function, the network stack inside a MCU can be reprogrammed remotely [
132]. With PDL shields, this function can be extended also to the remote firmware upgrade of each of the on-board MCUs of the functional shields. Of course, in this case, the PDL should not be removed from the final system. Furthermore, the ability of PDL shields to decouple the programming and debugging circuitry from the MCU-enabled shields, allows for the design of particular circuitry in order to facilitate the connection of novel programming devices that also perform various statistics and energy profiling of the target MCU [
133,
134].
3.7. Evaluation and Testing Layer (ETL)
The behavior of WSAN systems is severely differentiated when they are deployed in the real-world applications environment [
21], and practically, this behavior cannot be simulated [
135]. Moreover, the detection of possible faults is of crucial importance for the remote system [
136]. Traditionally, WSAN designers and developers use various tools for evaluation and diagnostics, referred to as testbeds [
29,
137]. Ideally, as reported in [
135], an evaluation tool should be scalable, flexible, accurate, repeatable, visible, cross-environment valid, and re-usable. Unfortunately, there are very few testbeds available today [
138], and, on the other hand, they appear to be inappropriate for in-situ post-deployment testing [
117,
135]. A thorough study of WSAN testbeds is reported in some studies [
139,
140]. Through the use of the ETL shields, the SensoTube architecture allows for real-time in-situ monitoring and testing of every single operation of particular circuits and procedures of the WSAN system. In other words, an ETL shield can be considered as the testbed inside the final system. A SensoTube-based system may incorporate more than one ETL shield. An ETL shield is not intrusive on other functional shields and can be easily removed at any time. Among the most interesting testing operations that can be implemented onto an ETL shield are the in-system energy monitoring, the control over the networking protocol execution, the diagnostics of malfunctions in the firmware of MCUs, energy storage monitoring, reliability and lifetime anomalies detection [
18,
141] etc. Obviously, the ETL entity can open up new horizons for a WSANs’ characterization and modeling based on the systems’ behavior, under real-world deployment conditions.
5. Support for Firmware, Software and Middleware
As it was explained above, the SensoTube architecture can ensure the development of WSAN firmware applications either in a distributed single-master MCU, or in a multi-master collaborative mode. The proposed particular expansion mechanisms facilitate the use of all the popular development tools, such as programmers and debuggers, for any possible MCU. Moreover, the firmware can be remotely maintained and managed with the use of programming and upgrade over-the-air (OTA) techniques, which can be implemented without intervention on the WSAN system. Regarding the development of the MCUs’ firmware, the designers and the developers are free to use the software tool chains of their choice.
Except from the firmware, a WSAN system may include the software development of particular PC software applications for either the in-house testing of the system, or for the rapid control prototyping (RCP) (e.g., by the use of Matlab, or LabVIEW software development suites [
63]), or for the implementation of the final application for the operation and administration of the system. A SensoTube-based WSAN system completely supports these three tasks by the use of its wireless and wired data interconnection. For the RCP, in particular, any ARM-based SensoTube shield, and through the use of a PDL shield, can enable the hardware-in-the-loop technique of Matlab/Simulink. In other words, the developer can build, execute, and test ARM-based MCUs’ firmware using the Matlab platform.
In cases of medium up to very large-scale WSAN deployments, the software application development invokes middleware [
91]. Towards this direction, several promising methodologies have been reported by the research community. Domain-specific modeling languages based on the Model-driven Engineering (MDE) approach [
151] to describe the application, the middleware of systems’ virtualization [
152], are only an indication of the current research trends in this WSAN software aspect. In particular, as it is pointed out in [
153], it is required for the application and services to be decoupled from the WSAN, i.e., the wireless networking technical operations. In addition, as it is enunciated in [
154], the implementation of a substantial middleware would require a layered architecture, through which the overall system could be decomposed into specific modules (layers). Therefore, the abstraction of SensoTube architecture, with the foundation of the seven functional layers appears to be particularly convenient for the development of the middleware. Specifically, the existence of local intelligence in the MCU-based functional shields, together with the inherent support for multi-processor distributed logic, can support the WSAN sub-system’s modeling [
155], and allows for the development of comprehensive and substantial libraries of APIs.
6. Systems Encapsulation and Installation
In the harsh environment of agricultural domain, the WSAN nodes’ housings, as well as the total mechanical structure of them, is a key factor for the total robustness and reliability of the remote WSAN system [
14]. The external influences that a WSAN node may suffer in an agricultural field may include chemical influences (such as acids, etc.), dust, ice, corrosion, air moisture, aggressive constituents of rainwater (such as heavy metals, etc.), solar radiation (UV radiation and high temperature), soil salinity, contamination from birds and insects, contamination from micro-organisms (such as fungi, moss, etc.), and other factors related to air pollution.
In order to protect the electronic circuits of the WSAN system from these external influences, particular enclosures proper for electrical and electronics systems are extensively used by both the commercial systems’ vendors and the researchers. These cases are graded according to their resilience to dust and water (IEC IP Codes) [
156]. In practice, these enclosures are the only solution for water ingress protection at outdoor deployments, but they are quite expensive and they are not so convenient in terms of the interior configuration of the electronics circuits and other electrical parts, such as batteries etc.
Figure 26 shows a typical experimental configuration of a WSAN node for an agricultural application.
In cases where a WSAN node requires a significant amount of energy autonomy, then more than one, or battery cells have to be used on the spot, installed in multiple electrical enclosures at the expense of cost, cabling distribution order, and appearance. Additionally, these enclosures suffer from drilling and cutting, which are frequent functions in experiments, and extra care has to be taken in order to maintain their durability against dust and water. Another issue is the support of the enclosures on the metallic support poles.
Figure 27 shows a typical WSAN node implementation with a solar panel, a water-proof electrical enclosure and a metallic pole. In addition, significant complexity is usually added from the RF antennae installation because the antennae must be installed in such places where the electromagnetic signals are not influenced from the metallic materials of the WSAN node. This is the reason why the antennae are typically installed outside the enclosures or, in many cases, at additional support arms. Very often, all these issues are becoming sources for reduced reliability and durability for the deployed system.
Keeping all the aforementioned issues in mind, the use of ordinary drain and water supply tubes are proposed here as an extremely convenient solution for environmental and agricultural WSAN system enclosures. Tubes of polyvinyl chloride (PVC), or unplastisized polyvinyl chloride (PVC-U) inherently provide the required soil and dust ingress protection. According to the proposed SensoTube architecture, the various expansion shields are placed within a plastic tube (
Figure 28). The PCB of the SensoTube board model has been designed so as to be fitted within tubes of 90 mm in diameter. The technical specifications of the PVC tubes are shown in
Table 3. The selection of the pressure tolerance, e.g., 4 atms or 6 atms, influences the thickness of the tube.
The very same tube acts also as the installation support pole. The height of the tube may vary according to the precise farming application needs. The WSAN system’s boards can be placed at various heights within the tube. Developers can use tubes of smaller diameters under the boards’ synthesis in order to act as a support spacer. For the battery cells, it is suggested they be placed at the bottom of the tube. This helps the centroid of the tube to be underground. Moreover, the rich set of pipe management accessories, e.g., expansion adaptors, fittings, tees, sleeves, connectors, bends, flanges, etc. can be creatively used for sensory installation above the surface or underground.
Figure 29a displays a SensoTube-based WSAN node in an orchard. As it is shown, the plastic tube has been used not only for the encapsulation of the electronic systems but also as a support pole. The solar panel of the node has been easily adapted to the top cap of the plastic tube, as it is shown in
Figure 29b. In contrast with the traditional installation methods, such as that of
Figure 27, in the proposed installation method the RF antenna is encapsulated within the tube and in this way they are fully protected from the external environment.
The advantages of the SensoTube approach for the WSAN hardware enclosures are numerous. Some of them are listed below:
Ruggedness: The drain and water PVC tubes by default assure the coveted resistance to water, chemicals, salinity, acids, etc.
Non-metallic support poles: the use of the plastic tube as the support pole benefits the total system because the weight is greatly reduced. Furthermore; the material is inexpensive compared to traditional metallic constructions. In addition, it provides better lightning protection. Finally, it is not attractive to thieves looking for scrap metal.
Underground installation: It is a robust enclosure solution for WSAN nodes in underground installation where the whole of the node, or the most of it, has to be buried underground [
158].
Internal temperature stability: The temperature of the air mass inside a PVC tube is slightly different from that of the open air, because this plastic material has a very low thermal conductivity. Also, as deeper the tube is installed underground, the temperature difference is increased due to the facts that a certain part of the enclosure are not directly exposed to the external environment, and that the temperature under the surface is almost constant during the day and night periods. Thus for deployments in environments with high temperature and high sunlight radiation it is possible to keep the temperature of the enclosed electronics at a lower level with regard to the open air temperature. Such a feature is of great importance for the energy balance of the WSAN system.
Easy deployment: PVC tubes are easily transported and, due to their convenient centroid, they do not require deep paddles and cableways for their support on the ground.
Larger inner space: e.g., in a 2.5 m PCV tube of 90 mm diameter and 2.7 mm thickness, the total inner useful volume is about 13,723 cm
3 whereas the inner volume of a 170 mm × 170 mm × 75 mm electrical enclosure, such as the one displayed in
Figure 26a, is just about 2100 cm
3.
RF antennae friendliness: the RF antennae are installed within the tube and they are fully protected from the threats of the external environment. Additionally, the ability of using all the internal space of a tube facilitates the encapsulation of very long RF antennae, so it is easy to incorporate antennae from λ/4 up to λ (λ is the wavelength of a radio signal, expressed in units of meters). For example, the wavelength of a 433 MHz RF signal is around 69 cm. In this particular case, the ideal antenna should be a 69 cm long wire. In general, antennae close to the wavelength of the incorporated RF signal can benefit the RF signals propagation performance, and they allow for low-cost and low energy antenna driving circuits.
Zero RF signal attenuation: the PVC material doesn’t block the propagation of radio signals. A typical example is the use of PVC-based constructions to hide the antennae of the cellular networks on the terrace of the block of flats at the cities.
Neat cabling: all the cables of the WSAN system can be tidily routed along the inner side of the tube. Hence, the cabling is protected from the environmental influences.
Greater energy storage units performance: The temperature and solar radiation at the bottom part of the tube, which is buried underground, permits batteries and several other alternative energy storage units to maintain their nominal efficiency, capacity and lifetime.
Farm machine friendliness: tubes do not require shoring and cableways for their support. Thus, they allow the unrestricted movement of the various machines and equipment used in farm management.
9. Discussion and Conclusions
A new architecture for hardware design of WSAN systems was presented in this work. The aims of the SensoTube architecture, as defined in
Section 3, have been rather successfully met. The existing end-solutions and COTS-based WSAN systems in their vast majority have been designed based on the traditional architecture (see
Section 1,
Figure 1), which basically places the emphasis entirely on the wireless networking aspects. This is reasonably explained by the fact that a decade ago the WSAN technology was very new and the efforts had to be diverted towards the design of hardware, which would primarily support the development, the evaluation and the demonstration of that revolutionary technology. Nowadays, when WSANs can be considered as a mature technology and the interest has shifted from the core technology to its embodiment in real-world applications, the rigidity of the traditional architecture appears to constitute a significant barrier for the expansion of WSAN solutions.
The abstraction of the SensoTube architecture provides the necessary design framework with which the real needs of a WSAN system can be accommodated, so each functional aspect of the system can have a clear, predefined space, in order to be tidily implemented without, at the same time, conflicting with other functions of the system. In particular, the seven functional layers proposed are: the data acquisition and control layer (DCL), the wireless networking layer (WNL), the data gateway layer (DGL), the application-specific layer (ASL); the programming and debugging layer (PDL), the power management layer (PML), the evaluation and testing layer (ETL). Thus, the hardware designers, as well as the developers of different specializations, can know in advance how to jump into the WSANs field and at which particular function their design contribution belongs to. Hence, the proposed functional abstraction can support the integration of several challenging technologies that could potentially have a positive impact on the design of real-world application-oriented WSAN systems.
Regarding the practical side of the hardware design, the seven SensoTube functional layers’ ability to be realized in the form of discrete expansion shields ensures that the benefits of the popular open-source hardware platforms will be experienced by all those involved. However, it is totally meaningless to design any of the new functional shields just as another expansion shield for one of the existing expandable platforms, because, although these platforms are very convenient for small-scale prototyping and proof-of-concept implementations, in practice, they cannot be considered as a reliable solution for real-world WSAN applications, such in the case of agriculture (see
Section 2). Also, an insurmountable obstacle in the adoption of the existing expandable OSH platforms is that they do not allow for real scalability and expandability, which actually is a key factor for the accommodation of a hardware abstraction, such as the one proposed by SensoTube. In accordance to the architecture of these platforms, the type and the number of the extension shields is determined by the features of the MCU of the main-board, so it is very common for designers to face resource limitations, such as in the processing power, the program memory size, the input/output signals, or the communication interfaces, and the only way to respond is to replace the main-board with one that has enhanced features, but jeopardizing in this way the compatibility with the already existed expansion shields. Moreover, practically none of the existing main-boards support the engagement of MCU-based shields, they do not care about how the expansion shields will fulfill their particular energy needs, and, they do not pay any attention on the form-factor of the expansion shields. Therefore, there are serious risks and troubles in WSAN systems based on these architectures.
In order to overcome the egocentrism of the existing expandable OSH architectures, SensoTube architecture introduces the concept of the inter-layer services. In particular, there are four inter-layer services, according to the SensoTube: the inter-layer signals management service, the inter-layer communication service, the inter-layer programming and debugging service, and the energy management service. These services are easily implemented by the use of BECs and with some enhancements at the PCB design level (see
Section 4). With these four straightforward and comprehensive supportive mechanisms, it can be guaranteed that a WSAN system can be built not by using partly suitable expansion shields with superfluous circuitry, but with functional dedicated shields. SensoTube, with its seven functional layers shields, together with the four inter-layer services, can really be used to decompose a WSAN system into its vital functions and ensure the desirable separation of concerns. Furthermore, the introduction of polymorphism in the signal connections together with the anticipation of shields’ local intelligence, by supporting the multi-processor collaboration development, allows for the facilitation of the embedding of any challenging technology into the WSAN system. For instance, it was explained how to exploit the SensoTube architecture in order to host, on an occasional basis, challenging features such as energy monitoring and control, over-the-air programming, and so on. Fortunately, the recent progress in MCU technology allows for several ultra-low energy solutions, and there is practically no change either in the system’s energy balance or in the manufacturing budget. On the contrary, through the use of software and hardware techniques for, e.g., idleness, the multi-processor approach can contribute towards energy consumption reduction.
Moreover, the SensoTube architecture can essentially support the modeling of the component functions of a WSAN system not relying on simulation and arbitrary approaches but on the basis of the real behavior of the operational entities under the post-deployment real-world conditions. The ability for a realistic modeling together with the energy management insights of the SensoTube-based systems can lead to the design of really energy- and function-optimized WSAN solutions that will meet the demands of applications not only in the agricultural domain, but also in applications such as the forestry domain, the environmental monitoring domain, the wildlife monitoring domain, and others. To further support the real-world deployments in agriculture, particular emphasis was given in the encapsulation of the systems, so plastic irrigation tubes were chosen to be the system encapsulation, because they constitute a novel, low-cost, and extra durable medium that not only can withstand the harsh agricultural environment, but can also allow for better facilitation of antennae, energy storage media, etc. (see
Section 6).
In conclusion, the SensoTube is an open architecture that allows the design of scalable, flexible, reliable, and optimized WSAN systems, while, at the same time, it ensures enhanced versatility by facilitating novel and challenging technologies by multi-skilled designers. As presented through certain use case examples (see
Section 7), the migration of existing open-source designs to the SensoTube system entails several advantages for energy efficiency, explicit circuitries’ design, multi-MCU concurrent development support, and low cost.
The cost of implementation has been kept to the minimum, because the proposed novelties have been limited just to the system’s physical layer, i.e., to the PCB design. With the SensoTube architecture, the WSAN stakeholders (see
Section 2) can have the maximum expandability, scalability, reconfigurability, reusability, and standardization needed in order to fulfill their particular requirements. Additionally, as it was revealed from the literature review (see
Section 5), the SensoTube architecture can be a significant contribution towards the requested hardware abstraction need for the development of sound middleware.
Future work on the subject includes the design and implementation of an extensive series of functional layer shields and the development of the hardware abstraction layer (HAL) set of APIs with emphasis on the support of middleware requirements.