Design of CAN Bus Communication Interfaces for Forestry Machines

: This paper presents the initial developments of new hardware devices targeted for CAN (Controller Area Network) bus communications in forest machines. CAN bus is a widely used protocol for communications in the automobile area. It is also applied in industrial vehicles and machines due to its robustness, simplicity, and operating ﬂexibility. It is ideal for forestry machinery producers who need to couple their equipment to a machine that allows the transportation industry to recognize the importance of standardizing communications between tools and machines. One of the problems that producers sometimes face is a lack of ﬂexibility in commercialized hardware modules; for example, in interfaces for sensors and actuators that guarantee scalability depending on the new functionalities required. The hardware device presented in this work is designed to overcome these limitations and provide the ﬂexibility to standardize communications while allowing scalability in the development of new products and features. The work is being developed within the scope of the research project “SMARTCUT—Remote Diagnosis, Maintenance and Simulators for Operation Training and Maintenance of Forest Machines”, to incorporate innovative technologies in forest machines produced by the CUTPLANT S.A. It consists of an experimental system based on the PIC18F26K83 microcontroller to form a CAN node to transmit and receive digital and analog messages via CAN bus, tested and validated by the communication between different nodes. The main contribution of the paper focuses on the presentation of the development of new CAN bus electronic control units designed to enable remote communication between sensors and actuators, and the main controller of forest machines.


Introduction
Industry digitalization, based on the industry 4.0 concept, has truly revolutionized the way that manufacturers and consumers look for a product and manage their expectations. Companies are confronted by a series of technological challenges related to Industrial Internet of Things (IIoT) platforms, cloud computing, big data, machine learning, and others. These technologies and concepts are increasingly being added to production processes and appearing in the final product. The forestry sector is no exception since it is also adopting the concept of the fourth industrial revolution into its methodology of work. Particularly, manufacturers of forestry tools that need to produce increasingly technologically advanced equipment are now adapting their production lines to respond to today's requirements. Thus arrives the concept of forestry 4.0 or intelligent precision forestry, considering more modular, intelligent, and interoperable products [1]. Machines that operate in the forest can communicate with each other and with the supervisory operate in the forest can communicate with each other and with the supervisory infrastructure, whether they belong to the machine owner, its producer, or repair station. This interoperability allows for more effective management of machine productivity, as well as monitoring equipment and implementing predictive maintenance techniques [2] [3]. This concept, associated with machine to machine (M2M) communications and cyberphysical systems [4], is also beginning to make sense of how forest machines lead to other important issues related to tele-maintenance and tele-assistance [5].
Cutplant Solutions SA (https://envicort.netsigma.pt, accessed on 29 September 2021) is a Portuguese company that produces forestry machines under the VICORT brand, where its forest harvesters stand out. VICORT is already consolidated in the Iberian market and shows increased projection in international markets, such as Brazil and Indonesia. The company seeks an increasingly consolidated expression internationally and, for this, works continuously in the development of products to meet the technological needs of current consumers. Under this premise, a new project is underway to allow remote access to forest machines via a mobile communication network (LTE), for operation monitorization, remote assistance, and maintenance. In this scope, the company is seeking new hardware modules for communication between sensors and actuators installed in the forestry tool and the controller installed in the harvester cabin. The need for these modules is related to the demand for a standardization of communications, enabling remote access to machine sensors and actuators, as well as flexibility and scalability in the installation of new sensors/actuators whenever there is a need to upgrade the machines.
With these hardware modules, the company intends to implement CAN bus communication in the different pieces of equipment it produces, such as processor heads and forestry fillers. Currently, some of these pieces of equipment do not "talk" via any communication protocols, as they are wired connections. Others already communicate via a CAN bus through commercial I/O devices; however, they are devices with a fixed number of I/O, thus not allowing an increase in function with new needs. This aspect conditions the developments, since it is dependent on standard market solutions, not flexible, and misaligned with the needs of this kind of machine. As an example, in a machine where an I/O module with eight ports is installed, if one more input is needed, another module with eight ports needs be installed to use only one port. It is necessary that the modules can grow unit by unit. Figure 1 shows a harvester in operation equipped with a processor head, one of the machines that has benefited from the development of CAN bus modules.   Verifying the need of Cutplant's Solutions SA to interconnect sensors and actuators of its forestry equipment to the machine controller, the study aims to develop CAN bus modules, modular for a unit, capable of allowing the construction of I/O modules in array, as seen below in Figure 2. Verifying the need of Cutplant's Solutions SA to interconnect sensors and actuators of its forestry equipment to the machine controller, the study aims to develop CAN bus modules, modular for a unit, capable of allowing the construction of I/O modules in array, as seen below in Figure 2. These modules will allow the equipment to have greater flexibility when needed to add new sensors/actuators, in addition to standardizing the communication between the controller and the processing machine, also reducing the existing cabling to only four cables; two for power supply, and a twisted-pair wire for communications (CAN high and CAN low). These communication modules also allow remote access to sensors and actuators in tele-maintenance and tele-assistance scenarios. With the machines operating in the forest, access is made through a mobile communications network, where an LTE/CAN bus gateway is used, enabling remote access to the machine devices, communicating with supervision and control platforms through OPC UA or MQTT.
The remainder of this paper is organized as follows: Section 2 describes the state of the art and related works. Section 3 describes the materials and methods for enhanced CAN bus communications and hardware developments. Section 4 presents the experimental results achieved and, finally, Section 5 presents the conclusions and future work.

Related Works
This section is intended to provide an overview of applications that use CAN bus, including market solutions for hardware modules intended for interfacing with sensors and actuators.
The CAN bus is an extremely robust serial communication protocol, based on messages and not addresses, meaning the messages are transmitted by a node on the CAN bus and it is up to a receiving node to determine if it will react to the message or not. It has a multi-master structure, where each node can send and receive messages and allows for a peer-to-peer or master-slave style of communication.
The CAN bus is constituted of a twisted-wire pair, a terminal resistance of 120 Ω and nodes that are formed, in general, by a microcontroller unity (MCU) that is seen as the brain of the node for controlling all procedures and connects electronic devices (sensors and actuators) to the CAN bus. A CAN controller is responsible for the conversion of data provided by the MCU into a CAN message frame or into MCU readable data. It also contains a transceiver that detects and drives data from the bus, converting the single-ended These modules will allow the equipment to have greater flexibility when needed to add new sensors/actuators, in addition to standardizing the communication between the controller and the processing machine, also reducing the existing cabling to only four cables; two for power supply, and a twisted-pair wire for communications (CAN high and CAN low). These communication modules also allow remote access to sensors and actuators in tele-maintenance and tele-assistance scenarios. With the machines operating in the forest, access is made through a mobile communications network, where an LTE/CAN bus gateway is used, enabling remote access to the machine devices, communicating with supervision and control platforms through OPC UA or MQTT.
The remainder of this paper is organized as follows: Section 2 describes the state of the art and related works. Section 3 describes the materials and methods for enhanced CAN bus communications and hardware developments. Section 4 presents the experimental results achieved and, finally, Section 5 presents the conclusions and future work.

Related Works
This section is intended to provide an overview of applications that use CAN bus, including market solutions for hardware modules intended for interfacing with sensors and actuators.
The CAN bus is an extremely robust serial communication protocol, based on messages and not addresses, meaning the messages are transmitted by a node on the CAN bus and it is up to a receiving node to determine if it will react to the message or not. It has a multi-master structure, where each node can send and receive messages and allows for a peer-to-peer or master-slave style of communication.
The CAN bus is constituted of a twisted-wire pair, a terminal resistance of 120 Ω and nodes that are formed, in general, by a microcontroller unity (MCU) that is seen as the brain of the node for controlling all procedures and connects electronic devices (sensors and actuators) to the CAN bus. A CAN controller is responsible for the conversion of data provided by the MCU into a CAN message frame or into MCU readable data. It also contains a transceiver that detects and drives data from the bus, converting the single-ended logic used by the CAN controller to a differential voltage signal transmitted on the CAN bus and vice versa.
CAN bus was initially designed to be applied in the automotive industry to provide better and more efficient communication of automotive networks at a lower cost. However, with the advances of technology, CAN became suitable for many other applications in different branches of technologies. In [6], a master-slave control strategy of a microgrid over CAN bus is presented, to control parallel DC/AC inverters. In [7], CAN is used as a means of communication in the control of velocity and position in motor driver modules, to overcome the limitations of RS-232 and RS-485. In [8], a CAN bus based human motion capture analysis system is presented to provide data support for a motion recognition algorithm to help elderly people walk normally. In [9], a scheme for PLC accessing the CAN bus network is presented, based on a 32 bits microcontroller. In [10], an interface USB module is presented to connect a computer directly to the CAN bus network to provide CAN data analysis. In [11], the authors present a multi-node calibration system for CAN bus networks. In the field of autonomous vehicles, a CAN bus has an important role as a means of communication between sensors and actuators installed on vehicles, and in [12] the authors present electronic control units (ECU) that communicate via CAN bus in tests of self-driving cars. In [13], an electrical control system based on CAN bus for thermoelectric plants is proposed, where sensor signals are collected in real time and the pressure in the network is controlled by a microcontroller. In [14], the authors present a gateway implementation for remote monitoring, management, and fault diagnosis of vehicles, performing the connection between the vehicle CAN bus network and mobile communication network. In [15], CAN bus is used in satellite systems as a means of communication between different modules to provide redundancy and a faulttolerant system.
There are several ECUs and data acquisition modules on the market that allow for interfacing with sensors and actuators through the CAN bus protocol. Parker (https://www.parker.com, accessed on 29 October 2021) and Danfoss (https://www. danfoss.com, accessed on 29 October 2021) are two of the principal manufacturers that have specialized equipment (controllers, sensors, actuators, CAN bus I/O modules) dedicated to industrial machines. However, there are other solutions that can be used, such as modules for digital and analog inputs/outputs, and gateways from different manufacturers (https://esd.eu/en/products/io-modules, accessed on 29 October 2021). The main issue with these commercial modules is that they are built with a fixed number of I/O, limiting expansion when new signals are needed. Another issue is the robustness needed in hostile environments, such as for harvesters. For reasons such as this, the company VICORT wants its own modules to be flexible and modular, according to customer needs.

Materials and Methods
This chapter describes the theoretical concepts of CAN bus communication and the development of the first hardware prototype.

CAN Bus Concepts
The CAN bus standard allows for communication between various electronic control units (ECU), which are machine components capable of detecting or sharing machine component information, such as sensors or central processing units. Each ECU communicates with all other ECUs via the CAN bus system (multicast transmission), based on two wires, CAN low and CAN high, without complex dedicated wiring. All connected nodes must support the same bit rate and bit timing settings, with transmissions up to 1 Mbit/s being the most common.
The ECUs consist of central processing units (microprocessors), CAN controllers, and transceivers. The microprocessor connects sensors, actuators, and other control devices with the CAN network, and decides what the received messages mean and what messages are transmitted. The CAN controller receives bits or data from the bus and sends them to and from the microprocessor. Lastly, the transceiver converts the CAN bus levels to levels that the CAN controller uses and vice versa. Figure 3 exemplifies a CAN bus network architecture for better understanding of the ECU's connections.
Computers 2021, 10, x FOR PEER REVIEW 5 of 16 are transmitted. The CAN controller receives bits or data from the bus and sends them to and from the microprocessor. Lastly, the transceiver converts the CAN bus levels to levels that the CAN controller uses and vice versa. Figure 3 exemplifies a CAN bus network architecture for better understanding of the ECU's connections. CAN bus protocol is described as a data link layer (standard ISO 11898-1) and a physical layer (standard ISO 11898-2), both standing in the two lower layers of the Open Systems Interconnection model (OSI 7-a seven-layer conceptual model for communication functions of a telecommunication or computing system).
In general, the CAN bus physical layer defines cable types, bus length, electrical signal levels, node requirements, and terminal resistance values. Main parameters from the ISO 11898-2 are described below [16,17]: • Baud rate and cable length: The CAN bus handles up to 1 Mbit/s in bit rates (classical CAN) or 5 Mbit/s (CAN FD [18]). The baud rate is inversely proportional to the length of the CAN bus. The maximum cable length allowed when running a baud rate of 1 Mbit/s is 40 m. For 125 kbit/s it is 500 m; • Termination: Two 120 Ohm resistors must be placed at each extremity of the CAN bus to properly terminate it. The resistors guarantee the perfect propagation of electrical signals through the bus cables. Each resistor allows the reflection of signals which is mandatory for the proper functioning of the CAN bus network.
The data link layer specifies the format of the messages, transmission rules, synchronization of the nodes, detection and error control, prevention of failures mechanism, and four types of frames: • Data frame: most commonly used, contains data sent from the transmitter to the receiver; • Remote frame: used to request a message from a node with a designated ID; • Error frame: is transmitted by any node that detects an error on the bus; • Overload frame: generates an extra delay to finish the processing of data frames or remote frames.
The controller area network introduces two standardized types of protocol, the CAN2.0A (standard) and CAN2.0B (extended). Each differ from one another in the number of identifier (ID) bits contained in the data frame. While CAN2.0A contains an 11-bit identifier, CAN2.0B which is an upgraded version of CAN2.0A, contains a 29-bit identifier, completely compatible with CAN2.0A.
The CAN2.0B can either be "active" or "passive", meaning the controllers can transmit and receive extended frames, or they can silently discard received extended frames successively. CAN bus protocol is described as a data link layer (standard ISO 11898-1) and a physical layer (standard ISO 11898-2), both standing in the two lower layers of the Open Systems Interconnection model (OSI 7-a seven-layer conceptual model for communication functions of a telecommunication or computing system).
In general, the CAN bus physical layer defines cable types, bus length, electrical signal levels, node requirements, and terminal resistance values. Main parameters from the ISO 11898-2 are described below [16,17]: • Baud rate and cable length: The CAN bus handles up to 1 Mbit/s in bit rates (classical CAN) or 5 Mbit/s (CAN FD [18]). The baud rate is inversely proportional to the length of the CAN bus. The maximum cable length allowed when running a baud rate of 1 Mbit/s is 40 m. For 125 kbit/s it is 500 m; • Termination: Two 120 Ohm resistors must be placed at each extremity of the CAN bus to properly terminate it. The resistors guarantee the perfect propagation of electrical signals through the bus cables. Each resistor allows the reflection of signals which is mandatory for the proper functioning of the CAN bus network.
The data link layer specifies the format of the messages, transmission rules, synchronization of the nodes, detection and error control, prevention of failures mechanism, and four types of frames: • Data frame: most commonly used, contains data sent from the transmitter to the receiver; • Remote frame: used to request a message from a node with a designated ID; • Error frame: is transmitted by any node that detects an error on the bus; • Overload frame: generates an extra delay to finish the processing of data frames or remote frames.
The controller area network introduces two standardized types of protocol, the CAN2.0A (standard) and CAN2.0B (extended). Each differ from one another in the number of identifier (ID) bits contained in the data frame. While CAN2.0A contains an 11-bit identifier, CAN2.0B which is an upgraded version of CAN2.0A, contains a 29-bit identifier, completely compatible with CAN2.0A.
The CAN2.0B can either be "active" or "passive", meaning the controllers can transmit and receive extended frames, or they can silently discard received extended frames successively.
To better understand the differences between each version, both data frames and corresponding fields are represented in Figures 4 and 5.   Identifier extension: A recessive bit that, when sending an extended CAN message, indicates that more identifier bits follow (18-bit extension follows IDE); • r1: Another bit for possible use in future amendments [19].

CAN Bus Arbitration
CAN is an asynchronous protocol that requires all the nodes to be synchronized to sample every bit at the same time. Therefore, synchronization of all the nodes cannot be performed with an external clock, but with the edge of the first bit of the message (start of frame). A dominant bit '0′ overwrites a recessive bit '1′, meaning that the dominant bit has electrical priority over the recessive bit. Thus, whenever multiples nodes are trying to transmit a message over the CAN bus, the node with higher priority (lower ID) continues the transmission while the other nodes have their transmissions interrupted, as described in Table 1. To better understand the differences between each version, both data frames and corresponding fields are represented in Figures 4 and 5.  Identifier extension: A recessive bit that, when sending an extended CAN message, indicates that more identifier bits follow (18-bit extension follows IDE); • r1: Another bit for possible use in future amendments [19].

CAN Bus Arbitration
CAN is an asynchronous protocol that requires all the nodes to be synchronized to sample every bit at the same time. Therefore, synchronization of all the nodes cannot be performed with an external clock, but with the edge of the first bit of the message (start of frame). A dominant bit '0′ overwrites a recessive bit '1′, meaning that the dominant bit has electrical priority over the recessive bit. Thus, whenever multiples nodes are trying to transmit a message over the CAN bus, the node with higher priority (lower ID) continues the transmission while the other nodes have their transmissions interrupted, as described in Table 1.  Identifier extension: A recessive bit that, when sending an extended CAN message, indicates that more identifier bits follow (18-bit extension follows IDE); • r1: Another bit for possible use in future amendments [19].

CAN Bus Arbitration
CAN is an asynchronous protocol that requires all the nodes to be synchronized to sample every bit at the same time. Therefore, synchronization of all the nodes cannot be performed with an external clock, but with the edge of the first bit of the message (start of frame). A dominant bit '0 overwrites a recessive bit '1 , meaning that the dominant bit has electrical priority over the recessive bit. Thus, whenever multiples nodes are trying to transmit a message over the CAN bus, the node with higher priority (lower ID) continues the transmission while the other nodes have their transmissions interrupted, as described in Table 1.

Advantages and Disadvantages of CAN Bus
Advantages: • Reduction of wires, errors, weight and cost, since there is only one CAN system needed for ECUs to communicate; • Provides a fully centralized network for ECUs, with master-slave and multicast features; • It is a robust system once it is not subject to electrical disturbance and electromagnetic disturbance; • It allows nodes that have lost arbitration to send a message when the bus is free without losing any data and with no interruptions, since CAN has carrier sense multiple access with collision detection (CSMA/CD) and arbitration on message priority (AMP) protocols. Disadvantages: • Limits the number of nodes connected to the CAN bus (maximum 64 nodes); • Possibility of integrity issues; • Undesirable interaction between the nodes; • Limited length and amount of data per message; • High cost for software development and maintenance.

CAN Bus Module Implementation
This subsection describes the theoretical conceptualization of the electronic developments of our ECU module, the microcontroller as transceiver used, as well some programming aspects.
As the MCU for this study, the microcontroller PIC18F26K83, produced by Microchip Technology Inc., was selected due to its low cost, wide variety of compatible chips, and versatility during the inclusion and exclusion of nodes. Beside these characteristics, the PIC was selected mostly for featuring CAN bus technology with a vast library for the protocol and allow the direct connection to the transceiver through CAN_Tx and CAN_Rx pins that can be configured between the 28-pins the PIC contains, dismissing the CAN controller.
The transceiver MCP2551, also produced by Microchip Technology Inc., is included in the node to perform the match of the bus signal level CAN, to work with the PIC18F26K83 [20], support 1Mbps, and can operate with up to 24 V on the CAN bus, including protection against short-circuit and automatic shutdown. Figure 6 shows a representation of the ECU module developed in this work composed by the MCU, the transceiver for access to the bus, and the RS232 module for communication tests via computer.
CAN low and CAN high pins are directly connected to the CAN bus, requiring a terminal resistance of 120 Ω in parallel between the two pins [19].
To develop, configure, debug, and qualify applications for the MCU, we used the MPLAB X Integrated Development Environment v5.45 along with XC8 Compiler responsible for the conversion from the source code used in MPLAB X IDE (.c) and transformed it into machine language (.hex); that is, into readable data for the MCU. CAN low and CAN high pins are directly connected to the CAN bus, req terminal resistance of 120 Ω in parallel between the two pins [19].
To develop, configure, debug, and qualify applications for the MCU, we MPLAB X Integrated Development Environment v5.45 along with XC8 Compile sible for the conversion from the source code used in MPLAB X IDE (.c) and tran it into machine language (.hex); that is, into readable data for the MCU.
The extension MPLAB Code Configurator (MCC) is also used as it allows th enable and configurate the pins of the MCU and set vast peripherals and function project through an intuitive graphical programming interface.

Results
This section presents the experimental results achieved, the first prototyp board for CAN bus 2.0B communications, a set of experiments carried out to val board, and its functionality as a CAN communication node with message priori fication and correct receptions.

First ECU CAN 2.0 B Prototype
The work presented here led to the development of the first printed circu (PCB) "IPCB SMARTCUT V00.2021" of an ECU CAN 2.0 B characterized by flex the acquisition of data from digital and analog inputs/outputs and RS232 commu for data analysis. Figure 7 shows the ECU prototype developed and tested in thi

Results
This section presents the experimental results achieved, the first prototype of the board for CAN bus 2.0B communications, a set of experiments carried out to validate the board, and its functionality as a CAN communication node with message priority identification and correct receptions.

First ECU CAN 2.0 B Prototype
The work presented here led to the development of the first printed circuit board (PCB) "IPCB SMARTCUT V00.2021" of an ECU CAN 2.0 B characterized by flexibility in the acquisition of data from digital and analog inputs/outputs and RS232 communication for data analysis. Figure 7 shows the ECU prototype developed and tested in this work.
Beside a microcontroller, transceiver, MAX RS232, and the RJ45 port included in the board, it also introduces screw terminal blocks with side wire entry angles to connect the wires to the various pins of the microcontroller and to connect: Some pins of the microcontroller are not included in the connector's terminals, since they are reserved for: • Clock-out and clock-in to connect to an external oscillator (RA6 and RA7 respectively); • CAN_Rx and CAN_Tx (RB3 and RB4 respectively); • ICSPCLK an ICSPDAT (RB6 and RB7 respectively); TXPIC and RXPIC (RC6 and RC7 respectively) to be connected to the MAX232CPE+. Beside a microcontroller, transceiver, MAX RS232, and the RJ45 port included in the board, it also introduces screw terminal blocks with side wire entry angles to connect the wires to the various pins of the microcontroller and to connect: Some pins of the microcontroller are not included in the connector's terminals, since they are reserved for: • Clock-out and clock-in to connect to an external oscillator (RA6 and RA7 respectively); • CAN_Rx and CAN_Tx (RB3 and RB4 respectively); • ICSPCLK an ICSPDAT (RB6 and RB7 respectively); TXPIC and RXPIC (RC6 and RC7 respectively) to be connected to the MAX232CPE+.

Second ECU CAN 2.0 B Prototype
The second prototype "IPCB SMARTCUT v02.2021", designed with an SMD component 0805 type for passive components and SOIC for integrated circuits (microcontroller and transceiver), was developed to be worked in the operation joystick of VICORT machines. With this module, the operating commands from the joysticks are encapsulated in a CAN bus 2.0B message that carries the digital and analog signal messages to the master controller of the machine. The multi-wire cable used in the connection with the controller is now made with a cable of only four wires, and the communications standardized for interaction with the controllers of different brands.
This printed circuit board includes some new features, including polarity shift protection and short circuit protection (Figure 8 and Figure 9), as well as pull-down resistance

Second ECU CAN 2.0 B Prototype
The second prototype "IPCB SMARTCUT v02.2021", designed with an SMD component 0805 type for passive components and SOIC for integrated circuits (microcontroller and transceiver), was developed to be worked in the operation joystick of VICORT machines. With this module, the operating commands from the joysticks are encapsulated in a CAN bus 2.0B message that carries the digital and analog signal messages to the master controller of the machine. The multi-wire cable used in the connection with the controller is now made with a cable of only four wires, and the communications standardized for interaction with the controllers of different brands.
This printed circuit board includes some new features, including polarity shift protection and short circuit protection (Figures 8 and 9), as well as pull-down resistance on the inputs. Two terminals are also available to connect a CAN network analyzer for monitoring and analyzing communication messages through a graphical interface.
Computers 2021, 10, x FOR PEER REVIEW on the inputs. Two terminals are also available to connect a CAN network anal monitoring and analyzing communication messages through a graphical interfac    The projected module is shown in Figure 10. It is characterized by 14 digital inputs for the joystick buttons and two groups of two analog inputs, plus two digital inputs for the joystick rollers. It has one CAN bus port, one programming port, and works with a +5 V/GND power supply. The projected module is shown in Figure 10. It is characterized by 14 digital inputs for the joystick buttons and two groups of two analog inputs, plus two digital inputs for the joystick rollers. It has one CAN bus port, one programming port, and works with a +5 V/GND power supply.

CAN Bus Test Communications Case Study
Initially the case study aimed to carry out the transmission of digital and analog signals by using three nodes, where one node was responsible for sending messages carrying an ID with different DLC and data according to the sensor that is activated. The second and third node were designated to receive digital and analog data respectively sent by the transmitter node. The experimental setup for the first case study is shown in Figure 11, and more detailed in Figure 12, where it is used in the first node developed, named "IPCB SMARTCUT v00.2021".

CAN Bus Test Communications Case Study
Initially the case study aimed to carry out the transmission of digital and analog signals by using three nodes, where one node was responsible for sending messages carrying an ID with different DLC and data according to the sensor that is activated. The second and third node were designated to receive digital and analog data respectively sent by the transmitter node. The experimental setup for the first case study is shown in Figure 11, and more detailed in Figure 12, where it is used in the first node developed, named "IPCB SMARTCUT v00.2021".
Initially the case study aimed to carry out the transmission of digital and analog signals by using three nodes, where one node was responsible for sending messages carrying an ID with different DLC and data according to the sensor that is activated. The second and third node were designated to receive digital and analog data respectively sent by the transmitter node. The experimental setup for the first case study is shown in Figure 11, and more detailed in Figure 12, where it is used in the first node developed, named "IPCB SMARTCUT v00.2021". Figure 11. Illustration of the experimental setup. Figure 11. Illustration of the experimental setup.
Initially the case study aimed to carry out the transmission of digital and analog signals by using three nodes, where one node was responsible for sending messages carrying an ID with different DLC and data according to the sensor that is activated. The second and third node were designated to receive digital and analog data respectively sent by the transmitter node. The experimental setup for the first case study is shown in Figure 11, and more detailed in Figure 12, where it is used in the first node developed, named "IPCB SMARTCUT v00.2021".  The experiment in question considered three sensors, two being inductive proximity sensors destined to send digital signals, and a potentiometer to generate and convert an analog signal, the results of which are stored in conversion registers (ADRESL and ADRESH) and then transmitted through the CAN bus.
The first node is the transmitter, thus all the sensors used are connected to it, while the others two nodes are considered as receivers. The second node is configured to receive only digital signals and the third node is configured to receive analog signals with a pulse-width modulation (PWM) output.
The description of the sensors used are shown in the next table, along with their transmission characteristics.

Experimental Results
Considering the PCB design, the transmission and reception of messages through CAN bus are characterized by using LEDs connected to the transmitter and receiver nodes, to signalize the transmission and reception of the messages.
The transmitter node is connected to four LEDs to signalize the activation of the sensors mentioned in Table 2. A red LED is connected to signalize the inactivation of the sensors and that no messages are being transmitted to the CAN bus. While the rest of the LEDs signalize the activation and transmission of a message according to the sensor that is activated, one of the LEDs, beside signalizing the analog conversion, allows for the visualization the conversion results as a pulse-width modulation (PWM). When a message is transmitted the red LED switches to a green LED. For the receiving nodes the same concept is used, this time to signalize the message reception. The first receiving node has four LEDs in groups of two (red and green) to signalize the reception of a digital signal from the two inductive proximity sensors and the second node with two LEDs; however, the LED that signalizes the reception of the analog conversion has an LED configured as a PWM output to be compared to LEDs from the transmitter node. The process of the transmission and reception of CAN messages are described in the following flowchart in Figure 13. Although the activation of the electronic devices causes the LEDs to switch from red to green it does not confirm the transmission of a CAN message, because the LEDs can still switch but no message is transmitted. Therefore, to confirm the transmission and the reception of the messages, a CAN Analyzer from Microchip, a hardware that allows direct access to the CAN_High, CAN_Low, CAN_Tx and CAN_Rx was used and visualized data in the software to monitor the CAN bus and confirm the reception of the messages through CAN bus.
By using this device, it was possible to confirm the reception of the messages transmitted, visualizing the identifier of the message and the data length code. The data that were transmitted are shown in Figures 14-16. Although the activation of the electronic devices causes the LEDs to switch from red to green it does not confirm the transmission of a CAN message, because the LEDs can still switch but no message is transmitted. Therefore, to confirm the transmission and the reception of the messages, a CAN Analyzer from Microchip, a hardware that allows direct access to the CAN_High, CAN_Low, CAN_Tx and CAN_Rx was used and visualized data in the software to monitor the CAN bus and confirm the reception of the messages through CAN bus. By using this device, it was possible to confirm the reception of the messages transmitted, visualizing the identifier of the message and the data length code. The data that were transmitted are shown in Figures 14-16.
Although the activation of the electronic devices causes the LEDs to switch from red to green it does not confirm the transmission of a CAN message, because the LEDs can still switch but no message is transmitted. Therefore, to confirm the transmission and the reception of the messages, a CAN Analyzer from Microchip, a hardware that allows direct access to the CAN_High, CAN_Low, CAN_Tx and CAN_Rx was used and visualized data in the software to monitor the CAN bus and confirm the reception of the messages through CAN bus.
By using this device, it was possible to confirm the reception of the messages transmitted, visualizing the identifier of the message and the data length code. The data that were transmitted are shown in Figures 14-16. .   Besides confirming the reception of the messages in the corresponding nodes and the parameters defined, CAN Analyzer also provided the time stamp that indicated the moment a CAN message was received and the time delta, which indicated the difference from the last message on the bus based on the last message received regardless of the ID (rolling trace configuration).

Conclusions
The focus of this paper was the development of a new hardware module to establish communications via CAN2.0B between devices installed in forest machines. The flexibility of this module allows the construction of ECU arrays useful for building scalable modules for data acquisition that can grow as a function of the number of sensors that need to  Besides confirming the reception of the messages in the corresponding nodes and the parameters defined, CAN Analyzer also provided the time stamp that indicated the moment a CAN message was received and the time delta, which indicated the difference from the last message on the bus based on the last message received regardless of the ID (rolling trace configuration).

Conclusions
The focus of this paper was the development of a new hardware module to establish communications via CAN2.0B between devices installed in forest machines. The flexibility of this module allows the construction of ECU arrays useful for building scalable mod- Besides confirming the reception of the messages in the corresponding nodes and the parameters defined, CAN Analyzer also provided the time stamp that indicated the moment a CAN message was received and the time delta, which indicated the difference from the last message on the bus based on the last message received regardless of the ID (rolling trace configuration).

Conclusions
The focus of this paper was the development of a new hardware module to establish communications via CAN2.0B between devices installed in forest machines. The flexibility of this module allows the construction of ECU arrays useful for building scalable modules for data acquisition that can grow as a function of the number of sensors that need to be installed. The only requirement is to establish different IDs for each ECU. The modules have been successfully tested in communications with the main controller of the harvester, allowing the ability to establish communication between sensors and actuators via a CAN bus instead of multi-wire cables. The modules in their current state are the basis for future developments of new devices that will more compact and capable of meeting all safety and robustness standards to work in hostile environments. The access and the possibility of programming the module make this platform a development and support tool to reach a marketable prototype. Future work in electronics developments will continue, to achieve a more compact device, built with SMD components, that allows the ECUs aggregation in compact arrays. Other developments include the implementation of other communication protocols, such as SAE J1939.